diff --git a/assets/Color-F6OSRLHC-3yXWcasr.js b/assets/Color-F6OSRLHC-XAUxgAEQ.js similarity index 99% rename from assets/Color-F6OSRLHC-3yXWcasr.js rename to assets/Color-F6OSRLHC-XAUxgAEQ.js index bc5048a08..0da4ab1d3 100644 --- a/assets/Color-F6OSRLHC-3yXWcasr.js +++ b/assets/Color-F6OSRLHC-XAUxgAEQ.js @@ -1 +1 @@ -import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./index-D2M---gb.js";import{e as m,r as p}from"./index-DjTz9BGS.js";import"./iframe-DpQGfO6h.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./index-DrFu-skq.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={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]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var 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"]}};l.exports=u;for(let 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);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/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];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,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]=f,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]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*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){let 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]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.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}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.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"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},ur=rr;export{rr as ColorControl,ur as default}; +import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./index-BbxnuoyN.js";import{e as m,r as p}from"./index-DjTz9BGS.js";import"./iframe-BzPUOMAI.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./index-DrFu-skq.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={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]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var 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"]}};l.exports=u;for(let 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);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/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];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,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]=f,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]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*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){let 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]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.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}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.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"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},ur=rr;export{rr as ColorControl,ur as default}; diff --git a/assets/DocsRenderer-CFRXHY34-BqSfuS7W.js b/assets/DocsRenderer-CFRXHY34-qobIGmJH.js similarity index 93% rename from assets/DocsRenderer-CFRXHY34-BqSfuS7W.js rename to assets/DocsRenderer-CFRXHY34-qobIGmJH.js index 2011d70af..ffda26736 100644 --- a/assets/DocsRenderer-CFRXHY34-BqSfuS7W.js +++ b/assets/DocsRenderer-CFRXHY34-qobIGmJH.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Dw69Wm5F.js","./index-DjTz9BGS.js"])))=>i.map(i=>d[i]); -import{_ as h}from"./iframe-DpQGfO6h.js";import{r as a,e as n}from"./index-DjTz9BGS.js";import{ak as E,al as d,am as R,an as v,ao as f}from"./index-D2M---gb.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./index-DrFu-skq.js";var s={},m;function w(){if(m)return s;m=1;var e=E();return s.createRoot=e.createRoot,s.hydrateRoot=e.hydrateRoot,s}var _=w(),i=new Map;function y(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var x=({callback:e,children:t})=>{let r=a.useRef();return a.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var C=async(e,t,r)=>{let o=await D(t,r);if(y()){o.render(e);return}let{promise:u,resolve:c}=Promise.withResolvers();return o.render(a.createElement(x,{callback:c},e)),u},g=(e,t)=>{let r=i.get(e);r&&(r.unmount(),i.delete(e))},D=async(e,t)=>{let r=i.get(e);return r||(r=_.createRoot(e,t),i.set(e,r)),r},M={code:d,a:R,...v},A=class extends a.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:n.createElement(n.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let o={...M,...t==null?void 0:t.components},u=f;return new Promise((c,p)=>{h(async()=>{const{MDXProvider:l}=await import("./index-Dw69Wm5F.js");return{MDXProvider:l}},__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:l})=>C(n.createElement(A,{showException:p,key:Math.random()},n.createElement(l,{components:o},n.createElement(u,{context:e,docsParameter:t}))),r)).then(()=>c())})},this.unmount=e=>{g(e)}}};export{S as DocsRenderer,M as defaultComponents}; +import{_ as h}from"./iframe-BzPUOMAI.js";import{r as a,e as n}from"./index-DjTz9BGS.js";import{ak as E,al as d,am as R,an as v,ao as f}from"./index-BbxnuoyN.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./index-DrFu-skq.js";var s={},m;function w(){if(m)return s;m=1;var e=E();return s.createRoot=e.createRoot,s.hydrateRoot=e.hydrateRoot,s}var _=w(),i=new Map;function y(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var x=({callback:e,children:t})=>{let r=a.useRef();return a.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var C=async(e,t,r)=>{let o=await D(t,r);if(y()){o.render(e);return}let{promise:u,resolve:c}=Promise.withResolvers();return o.render(a.createElement(x,{callback:c},e)),u},g=(e,t)=>{let r=i.get(e);r&&(r.unmount(),i.delete(e))},D=async(e,t)=>{let r=i.get(e);return r||(r=_.createRoot(e,t),i.set(e,r)),r},M={code:d,a:R,...v},A=class extends a.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:n.createElement(n.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let o={...M,...t==null?void 0:t.components},u=f;return new Promise((c,p)=>{h(async()=>{const{MDXProvider:l}=await import("./index-Dw69Wm5F.js");return{MDXProvider:l}},__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:l})=>C(n.createElement(A,{showException:p,key:Math.random()},n.createElement(l,{components:o},n.createElement(u,{context:e,docsParameter:t}))),r)).then(()=>c())})},this.unmount=e=>{g(e)}}};export{S as DocsRenderer,M as defaultComponents}; diff --git a/assets/iframe-DpQGfO6h.js b/assets/iframe-BzPUOMAI.js similarity index 95% rename from assets/iframe-DpQGfO6h.js rename to assets/iframe-BzPUOMAI.js index ebe806a6c..97676960d 100644 --- a/assets/iframe-DpQGfO6h.js +++ b/assets/iframe-BzPUOMAI.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-CpQSRlWu.js","./index-DjTz9BGS.js","./index-Dw69Wm5F.js","./chart.stories-B_n0eSyC.js","./lit-element-Dh4_iwrW.js","./drawtools.stories-BdLbKxLz.js","./geosearch.stories-Db8oGlqR.js","./itemfilter.stories-UnErf577.js","./index-D9BtBJM9.js","./jsonform.stories-CKAE5m0M.js","./core-C4kcdPvA.js","./layercontrol.stories-Bi4XA7Qe.js","./directive-DUGPADuw.js","./layout.stories-S-lERfVa.js","./map.stories-BwK0Aih0.js","./main-CqylYIBO.js","./stacinfo.stories-C616ffbU.js","./storytelling.stories-BaeBWdnw.js","./timecontrol.stories-CyvWINyS.js","./entry-preview-BErytJoa.js","./index-DrFu-skq.js","./entry-preview-docs-rliN-6v9.js","./chunk-L4EGOTBX-BALMY2cf.js","./index-DPS9-N-h.js","./tiny-invariant-CopsF_GD.js","./preview-D77C14du.js","./preview-DEMzn_yN.js","./preview-BWzBA1C2.js","./preview-DvomHhfz.js","./preview-DnOqGKaI.js","./index-D2M---gb.js"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function n(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=n(t);fetch(t.href,o)}})();const R="modulepreload",y=function(r,_){return new URL(r,_).href},d={},e=function(_,n,c){let t=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),O=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));t=Promise.allSettled(n.map(l=>{if(l=y(l,c),l in d)return;d[l]=!0;const a=l.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const E=i[u];if(E.href===l&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":R,a||(m.as="script"),m.crossOrigin="",m.href=l,O&&m.setAttribute("nonce",O),document.head.appendChild(m),a)return new Promise((u,E)=>{m.addEventListener("load",u),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return t.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,p=T({page:"preview"});L.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./.storybook/About.mdx":async()=>e(()=>import("./About-CpQSRlWu.js"),__vite__mapDeps([0,1,2]),import.meta.url),"./elements/chart/stories/chart.stories.js":async()=>e(()=>import("./chart.stories-B_n0eSyC.js"),__vite__mapDeps([3,4]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>e(()=>import("./drawtools.stories-BdLbKxLz.js"),__vite__mapDeps([5,4]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>e(()=>import("./geosearch.stories-Db8oGlqR.js"),__vite__mapDeps([6,4]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>e(()=>import("./itemfilter.stories-UnErf577.js"),__vite__mapDeps([7,8,4]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>e(()=>import("./jsonform.stories-CKAE5m0M.js"),__vite__mapDeps([9,4,10]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>e(()=>import("./layercontrol.stories-Bi4XA7Qe.js"),__vite__mapDeps([11,4,12]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>e(()=>import("./layout.stories-S-lERfVa.js"),__vite__mapDeps([13,4]),import.meta.url),"./elements/map/stories/map.stories.js":async()=>e(()=>import("./map.stories-BwK0Aih0.js"),__vite__mapDeps([14,4,15]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>e(()=>import("./stacinfo.stories-C616ffbU.js"),__vite__mapDeps([16,4]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>e(()=>import("./storytelling.stories-BaeBWdnw.js"),__vite__mapDeps([17,4]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>e(()=>import("./timecontrol.stories-CyvWINyS.js"),__vite__mapDeps([18,4]),import.meta.url)};async function I(r){return P[r]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:h}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(r=[])=>{const _=await Promise.all([r[0]??e(()=>import("./entry-preview-BErytJoa.js").then(n=>n.e),__vite__mapDeps([19,4,20]),import.meta.url),r[1]??e(()=>import("./entry-preview-docs-rliN-6v9.js"),__vite__mapDeps([21,22,19,4,20,23,24]),import.meta.url),r[2]??e(()=>import("./preview-Do5bCMPP.js"),[],import.meta.url),r[3]??e(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??e(()=>import("./preview-D77C14du.js"),__vite__mapDeps([25,20]),import.meta.url),r[5]??e(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??e(()=>import("./preview-DEMzn_yN.js"),__vite__mapDeps([26,24]),import.meta.url),r[7]??e(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([27,20]),import.meta.url),r[8]??e(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??e(()=>import("./preview-DvomHhfz.js"),__vite__mapDeps([28,8]),import.meta.url),r[10]??e(()=>import("./preview-DnOqGKaI.js").then(n=>n.p),__vite__mapDeps([29,22,19,4,20,1,2,30,23,12,15,10]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{e as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-CpQSRlWu.js","./index-DjTz9BGS.js","./index-Dw69Wm5F.js","./chart.stories-B_n0eSyC.js","./lit-element-Dh4_iwrW.js","./drawtools.stories-BdLbKxLz.js","./geosearch.stories-Db8oGlqR.js","./itemfilter.stories-UnErf577.js","./index-D9BtBJM9.js","./jsonform.stories-CKAE5m0M.js","./core-C4kcdPvA.js","./layercontrol.stories-Bi4XA7Qe.js","./directive-DUGPADuw.js","./layout.stories-S-lERfVa.js","./map.stories-BwK0Aih0.js","./main-CqylYIBO.js","./stacinfo.stories-C616ffbU.js","./storytelling.stories-BaeBWdnw.js","./timecontrol.stories-CyvWINyS.js","./entry-preview-BErytJoa.js","./index-DrFu-skq.js","./entry-preview-docs-rliN-6v9.js","./chunk-L4EGOTBX-BALMY2cf.js","./index-DPS9-N-h.js","./tiny-invariant-CopsF_GD.js","./preview-D77C14du.js","./preview-DEMzn_yN.js","./preview-BWzBA1C2.js","./preview-DvomHhfz.js","./preview-eh-ppHRn.js","./index-BbxnuoyN.js"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function n(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=n(t);fetch(t.href,o)}})();const R="modulepreload",y=function(r,_){return new URL(r,_).href},d={},e=function(_,n,c){let t=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),O=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));t=Promise.allSettled(n.map(l=>{if(l=y(l,c),l in d)return;d[l]=!0;const a=l.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const E=i[u];if(E.href===l&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":R,a||(m.as="script"),m.crossOrigin="",m.href=l,O&&m.setAttribute("nonce",O),document.head.appendChild(m),a)return new Promise((u,E)=>{m.addEventListener("load",u),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return t.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,p=T({page:"preview"});L.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./.storybook/About.mdx":async()=>e(()=>import("./About-CpQSRlWu.js"),__vite__mapDeps([0,1,2]),import.meta.url),"./elements/chart/stories/chart.stories.js":async()=>e(()=>import("./chart.stories-B_n0eSyC.js"),__vite__mapDeps([3,4]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>e(()=>import("./drawtools.stories-BdLbKxLz.js"),__vite__mapDeps([5,4]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>e(()=>import("./geosearch.stories-Db8oGlqR.js"),__vite__mapDeps([6,4]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>e(()=>import("./itemfilter.stories-UnErf577.js"),__vite__mapDeps([7,8,4]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>e(()=>import("./jsonform.stories-CKAE5m0M.js"),__vite__mapDeps([9,4,10]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>e(()=>import("./layercontrol.stories-Bi4XA7Qe.js"),__vite__mapDeps([11,4,12]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>e(()=>import("./layout.stories-S-lERfVa.js"),__vite__mapDeps([13,4]),import.meta.url),"./elements/map/stories/map.stories.js":async()=>e(()=>import("./map.stories-BwK0Aih0.js"),__vite__mapDeps([14,4,15]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>e(()=>import("./stacinfo.stories-C616ffbU.js"),__vite__mapDeps([16,4]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>e(()=>import("./storytelling.stories-BaeBWdnw.js"),__vite__mapDeps([17,4]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>e(()=>import("./timecontrol.stories-CyvWINyS.js"),__vite__mapDeps([18,4]),import.meta.url)};async function I(r){return P[r]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:h}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(r=[])=>{const _=await Promise.all([r[0]??e(()=>import("./entry-preview-BErytJoa.js").then(n=>n.e),__vite__mapDeps([19,4,20]),import.meta.url),r[1]??e(()=>import("./entry-preview-docs-rliN-6v9.js"),__vite__mapDeps([21,22,19,4,20,23,24]),import.meta.url),r[2]??e(()=>import("./preview-Cm4FHIOR.js"),[],import.meta.url),r[3]??e(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??e(()=>import("./preview-D77C14du.js"),__vite__mapDeps([25,20]),import.meta.url),r[5]??e(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??e(()=>import("./preview-DEMzn_yN.js"),__vite__mapDeps([26,24]),import.meta.url),r[7]??e(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([27,20]),import.meta.url),r[8]??e(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??e(()=>import("./preview-DvomHhfz.js"),__vite__mapDeps([28,8]),import.meta.url),r[10]??e(()=>import("./preview-eh-ppHRn.js").then(n=>n.p),__vite__mapDeps([29,22,19,4,20,1,2,30,23,12,15,10]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{e as _}; diff --git a/assets/index-D2M---gb.js b/assets/index-BbxnuoyN.js similarity index 99% rename from assets/index-D2M---gb.js rename to assets/index-BbxnuoyN.js index cb3e04296..bdef9d9cd 100644 --- a/assets/index-D2M---gb.js +++ b/assets/index-BbxnuoyN.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CHjK1967.js","./iframe-DpQGfO6h.js","./index-DjTz9BGS.js","./index-DPS9-N-h.js","./index-DrFu-skq.js","./Color-F6OSRLHC-3yXWcasr.js"])))=>i.map(i=>d[i]); -var kT=Object.defineProperty;var AT=(e,t,r)=>t in e?kT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bi=(e,t,r)=>AT(e,typeof t!="symbol"?t+"":t,r);import{_ as Mx}from"./iframe-DpQGfO6h.js";import{r as u,a as _T,g as FT,e as D,j as ke}from"./index-DjTz9BGS.js";import{y as Q3,g as If}from"./index-DPS9-N-h.js";import{d as RT}from"./index-DrFu-skq.js";var IT=Object.create,Px=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,Nx=Object.getOwnPropertyNames,TT=Object.getPrototypeOf,BT=Object.prototype.hasOwnProperty,Jc=(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')}),Oa=(e,t)=>function(){return t||(0,e[Nx(e)[0]])((t={exports:{}}).exports,t),t.exports},LT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Nx(t))!BT.call(e,a)&&a!==r&&Px(e,a,{get:()=>t[a],enumerable:!(n=zT(t,a))||n.enumerable});return e},l2=(e,t,r)=>(r=e!=null?IT(TT(e)):{},LT(t||!e||!e.__esModule?Px(r,"default",{value:e,enumerable:!0}):r,e));function OT(e,t,{signal:r,edges:n}={}){let a,l=null,s=n!=null&&n.includes("leading"),d=n==null||n.includes("trailing"),f=()=>{l!==null&&(e.apply(a,l),a=void 0,l=null)},m=()=>{d&&f(),v()},g=null,E=()=>{g!=null&&clearTimeout(g),g=setTimeout(()=>{g=null,m()},t)},w=()=>{g!==null&&(clearTimeout(g),g=null)},v=()=>{w(),a=void 0,l=null},x=()=>{w(),f()},b=function(...S){if(r!=null&&r.aborted)return;a=this,l=S;let _=g==null;E(),s&&_&&f()};return b.schedule=E,b.cancel=v,b.flush=x,r==null||r.addEventListener("abort",v,{once:!0}),b}function uee(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:l=!0,maxWait:s}=r,d=Array(2);a&&(d[0]="leading"),l&&(d[1]="trailing");let f,m=null,g=OT(function(...v){f=e.apply(this,v),m=null},t,{signal:n,edges:d}),E=function(...v){if(s!=null){if(m===null)m=Date.now();else if(Date.now()-m>=s)return f=e.apply(this,v),m=Date.now(),g.cancel(),g.schedule(),f}return g.apply(this,v),f},w=()=>(g.flush(),f);return E.cancel=g.cancel,E.flush=w,E}function MT(e){return Array.from(new Set(e))}function PT(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,Vd=e=>`set-${e.replace(/\s+/g,"-")}`,qT=Object.create,s2=Object.defineProperty,GT=Object.getOwnPropertyDescriptor,KT=Object.getOwnPropertyNames,YT=Object.getPrototypeOf,ZT=Object.prototype.hasOwnProperty,$=(e,t)=>s2(e,"name",{value:t,configurable:!0}),Qc=(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')}),Ud=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),XT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of KT(t))!ZT.call(e,a)&&a!==r&&s2(e,a,{get:()=>t[a],enumerable:!(n=GT(t,a))||n.enumerable});return e},u2=(e,t,r)=>(r=e!=null?qT(YT(e)):{},XT(t||!e||!e.__esModule?s2(r,"default",{value:e,enumerable:!0}):r,e)),JT=Ud(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,l=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,E=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,x=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,_=t?Symbol.for("react.fundamental"):60117,F=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function k(se){return typeof se=="string"||typeof se=="function"||se===a||se===g||se===s||se===l||se===w||se===v||typeof se=="object"&&se!==null&&(se.$$typeof===b||se.$$typeof===x||se.$$typeof===d||se.$$typeof===f||se.$$typeof===E||se.$$typeof===_||se.$$typeof===F||se.$$typeof===A||se.$$typeof===S)}$(k,"isValidElementType");function R(se){if(typeof se=="object"&&se!==null){var Rt=se.$$typeof;switch(Rt){case r:var Jt=se.type;switch(Jt){case m:case g:case a:case s:case l:case w:return Jt;default:var Qr=Jt&&Jt.$$typeof;switch(Qr){case f:case E:case b:case x:case d:return Qr;default:return Rt}}case n:return Rt}}}$(R,"typeOf");var z=m,T=g,B=f,O=d,H=r,W=E,K=a,Y=b,re=x,ee=n,oe=s,pe=l,q=w,Q=!1;function Z(se){return Q||(Q=!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.")),fe(se)||R(se)===m}$(Z,"isAsyncMode");function fe(se){return R(se)===g}$(fe,"isConcurrentMode");function ve(se){return R(se)===f}$(ve,"isContextConsumer");function Ee(se){return R(se)===d}$(Ee,"isContextProvider");function Se(se){return typeof se=="object"&&se!==null&&se.$$typeof===r}$(Se,"isElement");function le(se){return R(se)===E}$(le,"isForwardRef");function ye(se){return R(se)===a}$(ye,"isFragment");function De(se){return R(se)===b}$(De,"isLazy");function Te(se){return R(se)===x}$(Te,"isMemo");function rt(se){return R(se)===n}$(rt,"isPortal");function hr(se){return R(se)===s}$(hr,"isProfiler");function ut(se){return R(se)===l}$(ut,"isStrictMode");function Pt(se){return R(se)===w}$(Pt,"isSuspense"),e.AsyncMode=z,e.ConcurrentMode=T,e.ContextConsumer=B,e.ContextProvider=O,e.Element=H,e.ForwardRef=W,e.Fragment=K,e.Lazy=Y,e.Memo=re,e.Portal=ee,e.Profiler=oe,e.StrictMode=pe,e.Suspense=q,e.isAsyncMode=Z,e.isConcurrentMode=fe,e.isContextConsumer=ve,e.isContextProvider=Ee,e.isElement=Se,e.isForwardRef=le,e.isFragment=ye,e.isLazy=De,e.isMemo=Te,e.isPortal=rt,e.isProfiler=hr,e.isStrictMode=ut,e.isSuspense=Pt,e.isValidElementType=k,e.typeOf=R})()}),QT=Ud((e,t)=>{t.exports=JT()}),$x=Ud((e,t)=>{var r=QT(),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},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};d[r.ForwardRef]=l,d[r.Memo]=s;function f(S){return r.isMemo(S)?s:d[S.$$typeof]||n}$(f,"getStatics");var m=Object.defineProperty,g=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,x=Object.prototype;function b(S,_,F){if(typeof _!="string"){if(x){var A=v(_);A&&A!==x&&b(S,A,F)}var k=g(_);E&&(k=k.concat(E(_)));for(var R=f(S),z=f(_),T=0;T{(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 $(function r(n,a,l){function s(m,g){if(!a[m]){if(!n[m]){var E=typeof Qc=="function"&&Qc;if(!g&&E)return E(m,!0);if(d)return d(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var v=a[m]={exports:{}};n[m][0].call(v.exports,function(x){var b=n[m][1][x];return s(b||x)},v,v.exports,r,n,a,l)}return a[m].exports}$(s,"s");for(var d=typeof Qc=="function"&&Qc,f=0;f=0)return this.lastItem=this.list[d],this.list[d].val},l.prototype.set=function(s,d){var f;return this.lastItem&&this.isEqual(this.lastItem.key,s)?(this.lastItem.val=d,this):(f=this.indexOf(s),f>=0?(this.lastItem=this.list[f],this.list[f].val=d,this):(this.lastItem={key:s,val:d},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(s){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,s)&&(this.lastItem=void 0),d=this.indexOf(s),d>=0)return this.size--,this.list.splice(d,1)[0]},l.prototype.has=function(s){var d;return this.lastItem&&this.isEqual(this.lastItem.key,s)?!0:(d=this.indexOf(s),d>=0?(this.lastItem=this.list[d],!0):!1)},l.prototype.forEach=function(s,d){var f;for(f=0;f0&&(F[_]={cacheItem:x,arg:arguments[_]},A?s(E,F):E.push(F),E.length>m&&d(E.shift())),v.wasMemoized=A,v.numArgs=_+1,S},"memoizerific");return v.limit=m,v.wasMemoized=!1,v.cache=g,v.lru=E,v}};function s(m,g){var E=m.length,w=g.length,v,x,b;for(x=0;x=0&&(E=m[v],w=E.cacheItem.get(E.arg),!w||!w.size);v--)E.cacheItem.delete(E.arg)}$(d,"removeCachedResult");function f(m,g){return m===g||m!==m&&g!==g}$(f,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var kT=Object.defineProperty;var AT=(e,t,r)=>t in e?kT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bi=(e,t,r)=>AT(e,typeof t!="symbol"?t+"":t,r);import{_ as Mx}from"./iframe-BzPUOMAI.js";import{r as u,a as _T,g as FT,e as D,j as ke}from"./index-DjTz9BGS.js";import{y as Q3,g as If}from"./index-DPS9-N-h.js";import{d as RT}from"./index-DrFu-skq.js";var IT=Object.create,Px=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,Nx=Object.getOwnPropertyNames,TT=Object.getPrototypeOf,BT=Object.prototype.hasOwnProperty,Jc=(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')}),Oa=(e,t)=>function(){return t||(0,e[Nx(e)[0]])((t={exports:{}}).exports,t),t.exports},LT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Nx(t))!BT.call(e,a)&&a!==r&&Px(e,a,{get:()=>t[a],enumerable:!(n=zT(t,a))||n.enumerable});return e},l2=(e,t,r)=>(r=e!=null?IT(TT(e)):{},LT(t||!e||!e.__esModule?Px(r,"default",{value:e,enumerable:!0}):r,e));function OT(e,t,{signal:r,edges:n}={}){let a,l=null,s=n!=null&&n.includes("leading"),d=n==null||n.includes("trailing"),f=()=>{l!==null&&(e.apply(a,l),a=void 0,l=null)},m=()=>{d&&f(),v()},g=null,E=()=>{g!=null&&clearTimeout(g),g=setTimeout(()=>{g=null,m()},t)},w=()=>{g!==null&&(clearTimeout(g),g=null)},v=()=>{w(),a=void 0,l=null},x=()=>{w(),f()},b=function(...S){if(r!=null&&r.aborted)return;a=this,l=S;let _=g==null;E(),s&&_&&f()};return b.schedule=E,b.cancel=v,b.flush=x,r==null||r.addEventListener("abort",v,{once:!0}),b}function uee(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:l=!0,maxWait:s}=r,d=Array(2);a&&(d[0]="leading"),l&&(d[1]="trailing");let f,m=null,g=OT(function(...v){f=e.apply(this,v),m=null},t,{signal:n,edges:d}),E=function(...v){if(s!=null){if(m===null)m=Date.now();else if(Date.now()-m>=s)return f=e.apply(this,v),m=Date.now(),g.cancel(),g.schedule(),f}return g.apply(this,v),f},w=()=>(g.flush(),f);return E.cancel=g.cancel,E.flush=w,E}function MT(e){return Array.from(new Set(e))}function PT(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,Vd=e=>`set-${e.replace(/\s+/g,"-")}`,qT=Object.create,s2=Object.defineProperty,GT=Object.getOwnPropertyDescriptor,KT=Object.getOwnPropertyNames,YT=Object.getPrototypeOf,ZT=Object.prototype.hasOwnProperty,$=(e,t)=>s2(e,"name",{value:t,configurable:!0}),Qc=(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')}),Ud=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),XT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of KT(t))!ZT.call(e,a)&&a!==r&&s2(e,a,{get:()=>t[a],enumerable:!(n=GT(t,a))||n.enumerable});return e},u2=(e,t,r)=>(r=e!=null?qT(YT(e)):{},XT(t||!e||!e.__esModule?s2(r,"default",{value:e,enumerable:!0}):r,e)),JT=Ud(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,l=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,g=t?Symbol.for("react.concurrent_mode"):60111,E=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,x=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,_=t?Symbol.for("react.fundamental"):60117,F=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function k(se){return typeof se=="string"||typeof se=="function"||se===a||se===g||se===s||se===l||se===w||se===v||typeof se=="object"&&se!==null&&(se.$$typeof===b||se.$$typeof===x||se.$$typeof===d||se.$$typeof===f||se.$$typeof===E||se.$$typeof===_||se.$$typeof===F||se.$$typeof===A||se.$$typeof===S)}$(k,"isValidElementType");function R(se){if(typeof se=="object"&&se!==null){var Rt=se.$$typeof;switch(Rt){case r:var Jt=se.type;switch(Jt){case m:case g:case a:case s:case l:case w:return Jt;default:var Qr=Jt&&Jt.$$typeof;switch(Qr){case f:case E:case b:case x:case d:return Qr;default:return Rt}}case n:return Rt}}}$(R,"typeOf");var z=m,T=g,B=f,O=d,H=r,W=E,K=a,Y=b,re=x,ee=n,oe=s,pe=l,q=w,Q=!1;function Z(se){return Q||(Q=!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.")),fe(se)||R(se)===m}$(Z,"isAsyncMode");function fe(se){return R(se)===g}$(fe,"isConcurrentMode");function ve(se){return R(se)===f}$(ve,"isContextConsumer");function Ee(se){return R(se)===d}$(Ee,"isContextProvider");function Se(se){return typeof se=="object"&&se!==null&&se.$$typeof===r}$(Se,"isElement");function le(se){return R(se)===E}$(le,"isForwardRef");function ye(se){return R(se)===a}$(ye,"isFragment");function De(se){return R(se)===b}$(De,"isLazy");function Te(se){return R(se)===x}$(Te,"isMemo");function rt(se){return R(se)===n}$(rt,"isPortal");function hr(se){return R(se)===s}$(hr,"isProfiler");function ut(se){return R(se)===l}$(ut,"isStrictMode");function Pt(se){return R(se)===w}$(Pt,"isSuspense"),e.AsyncMode=z,e.ConcurrentMode=T,e.ContextConsumer=B,e.ContextProvider=O,e.Element=H,e.ForwardRef=W,e.Fragment=K,e.Lazy=Y,e.Memo=re,e.Portal=ee,e.Profiler=oe,e.StrictMode=pe,e.Suspense=q,e.isAsyncMode=Z,e.isConcurrentMode=fe,e.isContextConsumer=ve,e.isContextProvider=Ee,e.isElement=Se,e.isForwardRef=le,e.isFragment=ye,e.isLazy=De,e.isMemo=Te,e.isPortal=rt,e.isProfiler=hr,e.isStrictMode=ut,e.isSuspense=Pt,e.isValidElementType=k,e.typeOf=R})()}),QT=Ud((e,t)=>{t.exports=JT()}),$x=Ud((e,t)=>{var r=QT(),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},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};d[r.ForwardRef]=l,d[r.Memo]=s;function f(S){return r.isMemo(S)?s:d[S.$$typeof]||n}$(f,"getStatics");var m=Object.defineProperty,g=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,x=Object.prototype;function b(S,_,F){if(typeof _!="string"){if(x){var A=v(_);A&&A!==x&&b(S,A,F)}var k=g(_);E&&(k=k.concat(E(_)));for(var R=f(S),z=f(_),T=0;T{(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 $(function r(n,a,l){function s(m,g){if(!a[m]){if(!n[m]){var E=typeof Qc=="function"&&Qc;if(!g&&E)return E(m,!0);if(d)return d(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var v=a[m]={exports:{}};n[m][0].call(v.exports,function(x){var b=n[m][1][x];return s(b||x)},v,v.exports,r,n,a,l)}return a[m].exports}$(s,"s");for(var d=typeof Qc=="function"&&Qc,f=0;f=0)return this.lastItem=this.list[d],this.list[d].val},l.prototype.set=function(s,d){var f;return this.lastItem&&this.isEqual(this.lastItem.key,s)?(this.lastItem.val=d,this):(f=this.indexOf(s),f>=0?(this.lastItem=this.list[f],this.list[f].val=d,this):(this.lastItem={key:s,val:d},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(s){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,s)&&(this.lastItem=void 0),d=this.indexOf(s),d>=0)return this.size--,this.list.splice(d,1)[0]},l.prototype.has=function(s){var d;return this.lastItem&&this.isEqual(this.lastItem.key,s)?!0:(d=this.indexOf(s),d>=0?(this.lastItem=this.list[d],!0):!1)},l.prototype.forEach=function(s,d){var f;for(f=0;f0&&(F[_]={cacheItem:x,arg:arguments[_]},A?s(E,F):E.push(F),E.length>m&&d(E.shift())),v.wasMemoized=A,v.numArgs=_+1,S},"memoizerific");return v.limit=m,v.wasMemoized=!1,v.cache=g,v.lru=E,v}};function s(m,g){var E=m.length,w=g.length,v,x,b;for(x=0;x=0&&(E=m[v],w=E.cacheItem.get(E.arg),!w||!w.size);v--)E.cacheItem.delete(E.arg)}$(d,"removeCachedResult");function f(m,g){return m===g||m!==m&&g!==g}$(f,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ft(gl,--Zt):0,Xi--,et===10&&(Xi=1,Gd--),et}$(Yx,"prev");function Gt(){return et=Zt2||Ji(et)>3?"":" "}$(Zx,"whitespace");function Xx(e,t){for(;--t&&Gt()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return vl(e,Us()+(t<6&&jr()==32&&Gt()==32))}$(Xx,"escaping");function ed(e){for(;Gt();)switch(et){case e:return Zt;case 34:case 39:e!==34&&e!==39&&ed(et);break;case 40:e===41&&ed(e);break;case 92:Gt();break}return Zt}$(ed,"delimiter");function Jx(e,t){for(;Gt()&&e+et!==57&&!(e+et===84&&jr()===47););return"/*"+vl(t,Zt-1)+"*"+Wd(e===47?e:Gt())}$(Jx,"commenter");function Qx(e){for(;!Ji(jr());)Gt();return vl(e,Zt)}$(Qx,"identifier");function e9(e){return v2(qs("",null,null,null,[""],e=g2(e),0,[0],e))}$(e9,"compile");function qs(e,t,r,n,a,l,s,d,f){for(var m=0,g=0,E=s,w=0,v=0,x=0,b=1,S=1,_=1,F=0,A="",k=a,R=l,z=n,T=A;S;)switch(x=F,F=Gt()){case 40:if(x!=108&&ft(T,E-1)==58){Q0(T+=Re(Ws(F),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:T+=Ws(F);break;case 9:case 10:case 13:case 32:T+=Zx(x);break;case 92:T+=Xx(Us()-1,7);continue;case 47:switch(jr()){case 42:case 47:Is(t9(Jx(Gt(),Us()),t,r),f);break;default:T+="/"}break;case 123*b:d[m++]=Pr(T)*_;case 125*b:case 59:case 0:switch(F){case 0:case 125:S=0;case 59+g:_==-1&&(T=Re(T,/\f/g,"")),v>0&&Pr(T)-E&&Is(v>32?pg(T+";",n,r,E-1):pg(Re(T," ","")+";",n,r,E-2),f);break;case 59:T+=";";default:if(Is(z=dg(T,t,r,m,g,a,d,A,k=[],R=[],E),l),F===123)if(g===0)qs(T,t,z,z,k,l,E,d,R);else switch(w===99&&ft(T,3)===110?100:w){case 100:case 108:case 109:case 115:qs(e,z,z,n&&Is(dg(e,z,z,0,0,a,d,A,a,k=[],E),R),a,R,E,d,n?k:R);break;default:qs(T,z,z,z,[""],R,0,d,R)}}m=g=v=0,b=_=1,A=T="",E=s;break;case 58:E=1+Pr(T),v=x;default:if(b<1){if(F==123)--b;else if(F==125&&b++==0&&Yx()==125)continue}switch(T+=Wd(F),F*b){case 38:_=g>0?1:(T+="\f",-1);break;case 44:d[m++]=(Pr(T)-1)*_,_=1;break;case 64:jr()===45&&(T+=Ws(Gt())),w=jr(),g=E=Pr(A=T+=Qx(Us())),F++;break;case 45:x===45&&Pr(T)==2&&(b=0)}}return l}$(qs,"parse");function dg(e,t,r,n,a,l,s,d,f,m,g){for(var E=a-1,w=a===0?l:[""],v=qd(w),x=0,b=0,S=0;x0?w[_]+" "+F:Re(F,/&\f/g,w[_])))&&(f[S++]=A);return bu(e,t,r,a===0?f2:d,f,m,g)}$(dg,"ruleset");function t9(e,t,r){return bu(e,t,r,p2,Wd(Kx()),Zi(e,2,-2),0)}$(t9,"comment");function pg(e,t,r,n){return bu(e,t,r,h2,Zi(e,0,n),Zi(e,n+1,-1),n)}$(pg,"declaration");function ka(e,t){for(var r="",n=qd(e),a=0;a-1},"isIgnoringComment"),hB=$(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 l=!!t.parent,s=l?t.parent.children:n,d=s.length-1;d>=0;d--){var f=s[d];if(f.line=0;r--)if(!o9(t[r]))return!0;return!1},"isPrependedWithRegularRules"),nw=$(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),gB=$(function(e,t,r){o9(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."),nw(e)):mB(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),nw(e)))},"incorrectImportAlarm");function y2(e,t){switch(Ux(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+J0+e+Ft+e+e;case 6828:case 4268:return Ie+e+Ft+e+e;case 6165:return Ie+e+Ft+"flex-"+e+e;case 5187:return Ie+e+Re(e,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return Ie+e+Ft+"flex-item-"+Re(e,/flex-|-self/,"")+e;case 4675:return Ie+e+Ft+"flex-line-pack"+Re(e,/align-content|flex-|-self/,"")+e;case 5548:return Ie+e+Ft+Re(e,"shrink","negative")+e;case 5292:return Ie+e+Ft+Re(e,"basis","preferred-size")+e;case 6060:return Ie+"box-"+Re(e,"-grow","")+Ie+e+Ft+Re(e,"grow","positive")+e;case 4554:return Ie+Re(e,/([^-])(transform)/g,"$1"+Ie+"$2")+e;case 6187:return Re(Re(Re(e,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),e,"")+e;case 5495:case 3959:return Re(e,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return Re(Re(e,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+Ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+e+e;case 4095:case 3583:case 4068:case 2532:return Re(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(Pr(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Re(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+J0+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Q0(e,"stretch")?y2(Re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Pr(e)-3-(~Q0(e,"!important")&&10))){case 107:return Re(e,":",":"+Ie)+e;case 101:return Re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(ft(e,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return Ie+e+Ft+Re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+Ft+Re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+Ft+Re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+Ft+e+e}return e}$(y2,"prefix");var vB=$(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h2:e.return=y2(e.value,e.length);break;case Vx:return ka([Fi(e,{value:Re(e.value,"@","@"+Ie)})],n);case f2:if(e.length)return qx(e.props,function(a){switch(Wx(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ka([Fi(e,{props:[Re(a,/:(read-\w+)/,":"+J0+"$1")]})],n);case"::placeholder":return ka([Fi(e,{props:[Re(a,/:(plac\w+)/,":"+Ie+"input-$1")]}),Fi(e,{props:[Re(a,/:(plac\w+)/,":"+J0+"$1")]}),Fi(e,{props:[Re(a,/:(plac\w+)/,Ft+"input-$1")]})],n)}return""})}},"prefixer"),yB=[vB],wB=$(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(x){var b=x.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var n=e.stylisPlugins||yB;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},l,s=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(x){for(var b=x.getAttribute("data-emotion").split(" "),S=1;S=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)}$(a9,"murmur2");var CB={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},ow=`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';". @@ -700,7 +700,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function Wq(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),s=1;s=0&&a<1?(d=l,f=s):a>=1&&a<2?(d=s,f=l):a>=2&&a<3?(f=l,m=s):a>=3&&a<4?(f=s,m=l):a>=4&&a<5?(d=s,m=l):a>=5&&a<6&&(d=l,m=s);var g=r-l/2,E=d+g,w=f+g,v=m+g;return n(E,w,v)}var cx={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Gq(e){if(typeof e!="string")return e;var t=e.toLowerCase();return cx[t]?"#"+cx[t]:e}var Kq=/^#[a-fA-F0-9]{6}$/,Yq=/^#[a-fA-F0-9]{8}$/,Zq=/^#[a-fA-F0-9]{3}$/,Xq=/^#[a-fA-F0-9]{4}$/,tg=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Jq=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Qq=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eG=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $p(e){if(typeof e!="string")throw new mn(3);var t=Gq(e);if(t.match(Kq))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Yq)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Zq))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Xq)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=tg.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=Jq.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var s=Qq.exec(t);if(s){var d=parseInt(""+s[1],10),f=parseInt(""+s[2],10)/100,m=parseInt(""+s[3],10)/100,g="rgb("+yu(d,f,m)+")",E=tg.exec(g);if(!E)throw new mn(4,t,g);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10)}}var w=eG.exec(t.substring(0,50));if(w){var v=parseInt(""+w[1],10),x=parseInt(""+w[2],10)/100,b=parseInt(""+w[3],10)/100,S="rgb("+yu(v,x,b)+")",_=tg.exec(S);if(!_)throw new mn(4,t,S);return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10),alpha:parseFloat(""+w[4])>1?parseFloat(""+w[4])/100:parseFloat(""+w[4])}}throw new mn(5)}function tG(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),s=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var d,f=a-l,m=s>.5?f/(2-a-l):f/(a+l);switch(a){case t:d=(r-n)/f+(r=1?jd(e,t,r):"rgba("+yu(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?jd(e.hue,e.saturation,e.lightness):"rgba("+yu(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new mn(2)}function X5(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Z5("#"+ga(e)+ga(t)+ga(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Z5("#"+ga(e.red)+ga(e.green)+ga(e.blue));throw new mn(6)}function Wn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=$p(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?X5(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?X5(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new mn(7)}var iG=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},lG=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},uG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function FR(e){if(typeof e!="object")throw new mn(8);if(lG(e))return Wn(e);if(iG(e))return X5(e);if(uG(e))return aG(e);if(sG(e))return oG(e);throw new mn(8)}function RR(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):RR(e,t,n)}}function Hp(e){return RR(e,e.length,[])}function jp(e,t,r){return Math.max(e,Math.min(t,r))}function cG(e,t){if(t==="transparent")return t;var r=_R(t);return FR(hl({},r,{lightness:jp(0,1,r.lightness-parseFloat(e))}))}var dG=Hp(cG),un=dG;function pG(e,t){if(t==="transparent")return t;var r=_R(t);return FR(hl({},r,{lightness:jp(0,1,r.lightness+parseFloat(e))}))}var fG=Hp(pG),va=fG;function hG(e,t){if(t==="transparent")return t;var r=$p(t),n=typeof r.alpha=="number"?r.alpha:1,a=hl({},r,{alpha:jp(0,1,(n*100+parseFloat(e)*100)/100)});return Wn(a)}var mG=Hp(hG),k0=mG;function gG(e,t){if(t==="transparent")return t;var r=$p(t),n=typeof r.alpha=="number"?r.alpha:1,a=hl({},r,{alpha:jp(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Wn(a)}var vG=Hp(gG),$e=vG,yG=M.div(qe,({theme:e})=>({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:$e(.3,e.color.defaultText),fontSize:e.typography.size.s2})),IR=e=>D.createElement(yG,{...e,className:"docblock-emptyblock sb-unstyled"}),wG=M(Qv)(({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"}})),bG=M.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"})),A0=M.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${gg}`]:{margin:0}})),EG=()=>D.createElement(bG,null,D.createElement(A0,null),D.createElement(A0,{style:{width:"80%"}}),D.createElement(A0,{style:{width:"30%"}}),D.createElement(A0,{style:{width:"80%"}})),zR=({isLoading:e,error:t,language:r,code:n,dark:a,format:l=!1,...s})=>{let{typography:d}=d9();if(e)return D.createElement(EG,null);if(t)return D.createElement(IR,null,t);let f=D.createElement(wG,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...s},n);if(typeof a>"u")return f;let m=a?hg.dark:hg.light;return D.createElement(p9,{theme:mg({...m,fontCode:d.fonts.mono,fontBase:d.fonts.base})},f)},at=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,cy=600,xG=M.h1(qe,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${cy}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),CG=M.h2(qe,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${cy}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:$e(.25,e.color.defaultText)})),DG=M.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"?$e(.1,e.color.defaultText):$e(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[at("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}},[at("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}},[at("div")]:t,[at("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}},[at("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[at("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[at("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[at("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[at("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[at("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[at("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[at("img")]:{maxWidth:"100%"},[at("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[at("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[at("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[at("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"}},[at("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"}}},[at("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}},[at("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),SG=M.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${cy}px)`]:{}})),kG=({children:e,toc:t})=>D.createElement(SG,{className:"sbdocs sbdocs-wrapper"},D.createElement(DG,{className:"sbdocs sbdocs-content"},e),t),Vp=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}`}),{window:AG}=globalThis,_G=class extends u.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=AG.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,...l}=this.props;return D.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},TR=u.createContext({scale:1}),{PREVIEW_URL:FG}=globalThis,RG=FG||"iframe.html",J5=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,IG=e=>{let t=u.useRef(),[r,n]=u.useState(!0),[a,l]=u.useState(),{story:s,height:d,autoplay:f,forceInitialArgs:m,renderStoryToElement:g}=e;return u.useEffect(()=>{if(!(s&&t.current))return()=>{};let E=t.current,w=g(s,E,{showMain:()=>{},showError:({title:v,description:x})=>l(new Error(`${v} - ${x}`)),showException:v=>l(v)},{autoplay:f,forceInitialArgs:m});return n(!1),()=>{Promise.resolve().then(()=>w())}},[f,g,s]),a?D.createElement("pre",null,D.createElement(VU,{error:a})):D.createElement(D.Fragment,null,d?D.createElement("style",null,`#${J5(e)} { min-height: ${d}; transform: translateZ(0); overflow: auto }`):null,r&&D.createElement(BR,null),D.createElement("div",{ref:t,id:`${J5(e)}-inner`,"data-name":s.name}))},zG=({story:e,height:t="500px"})=>D.createElement("div",{style:{width:"100%",height:t}},D.createElement(TR.Consumer,null,({scale:r})=>D.createElement(_G,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:pq(RG,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),TG=M.strong(({theme:e})=>({color:e.color.orange})),BG=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?D.createElement(TG,null,"This story mounts inside of play. Set"," ",D.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):D.createElement("div",{id:J5(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?D.createElement(IG,{...e}):D.createElement(zG,{...e}))},BR=()=>D.createElement(dq,null),LG=M(sy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),OG=M.div({display:"flex",alignItems:"center",gap:4}),MG=M.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`})),PG=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...l})=>D.createElement(LG,{...l},D.createElement(OG,{key:"left"},e?[1,2,3].map(s=>D.createElement(MG,{key:s})):D.createElement(D.Fragment,null,D.createElement(Fa,{key:"zoomin",onClick:s=>{s.preventDefault(),n(.8)},title:"Zoom in"},D.createElement(gq,null)),D.createElement(Fa,{key:"zoomout",onClick:s=>{s.preventDefault(),n(1.25)},title:"Zoom out"},D.createElement(vq,null)),D.createElement(Fa,{key:"zoomreset",onClick:s=>{s.preventDefault(),a()},title:"Reset zoom"},D.createElement(yq,null))))),NG=M.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)`}}:{}),dx=M(zR)(({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)":un(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":un(.05,e.background.content)}})),$G=M.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Vp(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),HG=(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:D.createElement(dx,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:D.createElement(dx,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function jG(e){if(u.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var VG=M(PG)({position:"absolute",top:0,left:0,right:0,height:40}),UG=M.div({overflow:"hidden",position:"relative"}),LR=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:s=!1,additionalActions:d,className:f,layout:m="padded",...g})=>{let[E,w]=u.useState(s),{source:v,actionItem:x}=HG(a,E,w),[b,S]=u.useState(1),_=[f].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),F=a?[x]:[],[A,k]=u.useState(d?[...d]:[]),R=[...F,...A],{window:z}=globalThis,T=u.useCallback(async O=>{let{createCopyToClipboardFunction:H}=await Mx(()=>import("./index-CHjK1967.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url);H()},[]),B=O=>{let H=z.getSelection();H&&H.type==="Range"||(O.preventDefault(),A.filter(W=>W.title==="Copied").length===0&&T(v.props.code).then(()=>{k([...A,{title:"Copied",onClick:()=>{}}]),z.setTimeout(()=>k(A.filter(W=>W.title!=="Copied")),1500)}))};return D.createElement($G,{withSource:a,withToolbar:l,...g,className:_.join(" ")},l&&D.createElement(VG,{isLoading:e,border:!0,zoom:O=>S(b*O),resetZoom:()=>S(1),storyId:jG(n),baseUrl:"./iframe.html"}),D.createElement(TR.Provider,{value:{scale:b}},D.createElement(UG,{className:"docs-story",onCopyCapture:a&&B},D.createElement(NG,{isColumn:t||!Array.isArray(n),columns:r,layout:m},D.createElement(LU.Element,{scale:b},Array.isArray(n)?n.map((O,H)=>D.createElement("div",{key:H},O)):D.createElement("div",null,n))),D.createElement(O2,{actionItems:R}))),a&&E&&v)};M(LR)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),mx={amp:"&",apos:"'",gt:">",lt:"<",nbs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>]+@[^ >]+)>/,pK=/^<([^ >]+:\/[^ >]+)>/,fK=/-([a-z])?/gi,VR=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,hK=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,mK=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gK=/^\[([^\]]*)\] ?\[([^\]]*)\]/,vK=/(\[|\])/g,yK=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,wK=/\t/g,bK=/^ *\| */,EK=/(^ *\||\| *$)/g,xK=/ *$/,CK=/^ *:-+: *$/,DK=/^ *:-+ *$/,SK=/^ *-+: *$/,Up="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",kK=new RegExp(`^([*_])\\1${Up}\\1\\1(?!\\1)`),AK=new RegExp(`^([*_])${Up}\\1(?!\\1|\\w)`),_K=new RegExp(`^==${Up}==`),FK=new RegExp(`^~~${Up}~~`),RK=/^\\([^0-9A-Za-z\s])/,IK=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,zK=/^\n+/,TK=/^([ \t]*)/,BK=/\\([^\\])/g,gx=/ *\n+$/,LK=/(?:^|\n)( *)$/,dy="(?:\\d+\\.)",py="(?:[*+-])";function UR(e){return"( *)("+(e===1?dy:py)+") +"}var WR=UR(1),qR=UR(2);function GR(e){return new RegExp("^"+(e===1?WR:qR))}var OK=GR(1),MK=GR(2);function KR(e){return new RegExp("^"+(e===1?WR:qR)+"[^\\n]*(?:\\n(?!\\1"+(e===1?dy:py)+" )[^\\n]*)*(\\n|$)","gm")}var YR=KR(1),ZR=KR(2);function XR(e){let t=e===1?dy:py;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var JR=XR(1),QR=XR(2);function vx(e,t){let r=t===1,n=r?JR:QR,a=r?YR:ZR,l=r?OK:MK;return{match(s,d,f){let m=LK.exec(f);return m&&(d.list||!d.inline&&!d.simple)?n.exec(s=m[1]+s):null},order:1,parse(s,d,f){let m=r?+s[2]:void 0,g=s[0].replace(YG,` +`};function Wq(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),s=1;s=0&&a<1?(d=l,f=s):a>=1&&a<2?(d=s,f=l):a>=2&&a<3?(f=l,m=s):a>=3&&a<4?(f=s,m=l):a>=4&&a<5?(d=s,m=l):a>=5&&a<6&&(d=l,m=s);var g=r-l/2,E=d+g,w=f+g,v=m+g;return n(E,w,v)}var cx={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Gq(e){if(typeof e!="string")return e;var t=e.toLowerCase();return cx[t]?"#"+cx[t]:e}var Kq=/^#[a-fA-F0-9]{6}$/,Yq=/^#[a-fA-F0-9]{8}$/,Zq=/^#[a-fA-F0-9]{3}$/,Xq=/^#[a-fA-F0-9]{4}$/,tg=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Jq=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Qq=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eG=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $p(e){if(typeof e!="string")throw new mn(3);var t=Gq(e);if(t.match(Kq))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Yq)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Zq))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Xq)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=tg.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=Jq.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var s=Qq.exec(t);if(s){var d=parseInt(""+s[1],10),f=parseInt(""+s[2],10)/100,m=parseInt(""+s[3],10)/100,g="rgb("+yu(d,f,m)+")",E=tg.exec(g);if(!E)throw new mn(4,t,g);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10)}}var w=eG.exec(t.substring(0,50));if(w){var v=parseInt(""+w[1],10),x=parseInt(""+w[2],10)/100,b=parseInt(""+w[3],10)/100,S="rgb("+yu(v,x,b)+")",_=tg.exec(S);if(!_)throw new mn(4,t,S);return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10),alpha:parseFloat(""+w[4])>1?parseFloat(""+w[4])/100:parseFloat(""+w[4])}}throw new mn(5)}function tG(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),s=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var d,f=a-l,m=s>.5?f/(2-a-l):f/(a+l);switch(a){case t:d=(r-n)/f+(r=1?jd(e,t,r):"rgba("+yu(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?jd(e.hue,e.saturation,e.lightness):"rgba("+yu(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new mn(2)}function X5(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Z5("#"+ga(e)+ga(t)+ga(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Z5("#"+ga(e.red)+ga(e.green)+ga(e.blue));throw new mn(6)}function Wn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=$p(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?X5(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?X5(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new mn(7)}var iG=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},lG=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},uG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function FR(e){if(typeof e!="object")throw new mn(8);if(lG(e))return Wn(e);if(iG(e))return X5(e);if(uG(e))return aG(e);if(sG(e))return oG(e);throw new mn(8)}function RR(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):RR(e,t,n)}}function Hp(e){return RR(e,e.length,[])}function jp(e,t,r){return Math.max(e,Math.min(t,r))}function cG(e,t){if(t==="transparent")return t;var r=_R(t);return FR(hl({},r,{lightness:jp(0,1,r.lightness-parseFloat(e))}))}var dG=Hp(cG),un=dG;function pG(e,t){if(t==="transparent")return t;var r=_R(t);return FR(hl({},r,{lightness:jp(0,1,r.lightness+parseFloat(e))}))}var fG=Hp(pG),va=fG;function hG(e,t){if(t==="transparent")return t;var r=$p(t),n=typeof r.alpha=="number"?r.alpha:1,a=hl({},r,{alpha:jp(0,1,(n*100+parseFloat(e)*100)/100)});return Wn(a)}var mG=Hp(hG),k0=mG;function gG(e,t){if(t==="transparent")return t;var r=$p(t),n=typeof r.alpha=="number"?r.alpha:1,a=hl({},r,{alpha:jp(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Wn(a)}var vG=Hp(gG),$e=vG,yG=M.div(qe,({theme:e})=>({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:$e(.3,e.color.defaultText),fontSize:e.typography.size.s2})),IR=e=>D.createElement(yG,{...e,className:"docblock-emptyblock sb-unstyled"}),wG=M(Qv)(({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"}})),bG=M.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"})),A0=M.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${gg}`]:{margin:0}})),EG=()=>D.createElement(bG,null,D.createElement(A0,null),D.createElement(A0,{style:{width:"80%"}}),D.createElement(A0,{style:{width:"30%"}}),D.createElement(A0,{style:{width:"80%"}})),zR=({isLoading:e,error:t,language:r,code:n,dark:a,format:l=!1,...s})=>{let{typography:d}=d9();if(e)return D.createElement(EG,null);if(t)return D.createElement(IR,null,t);let f=D.createElement(wG,{bordered:!0,copyable:!0,format:l,language:r,className:"docblock-source sb-unstyled",...s},n);if(typeof a>"u")return f;let m=a?hg.dark:hg.light;return D.createElement(p9,{theme:mg({...m,fontCode:d.fonts.mono,fontBase:d.fonts.base})},f)},at=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,cy=600,xG=M.h1(qe,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${cy}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),CG=M.h2(qe,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${cy}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:$e(.25,e.color.defaultText)})),DG=M.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"?$e(.1,e.color.defaultText):$e(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[at("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}},[at("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}},[at("div")]:t,[at("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}},[at("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[at("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[at("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[at("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[at("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[at("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[at("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[at("img")]:{maxWidth:"100%"},[at("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[at("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[at("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[at("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"}},[at("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"}}},[at("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}},[at("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),SG=M.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${cy}px)`]:{}})),kG=({children:e,toc:t})=>D.createElement(SG,{className:"sbdocs sbdocs-wrapper"},D.createElement(DG,{className:"sbdocs sbdocs-content"},e),t),Vp=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}`}),{window:AG}=globalThis,_G=class extends u.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=AG.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,...l}=this.props;return D.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},TR=u.createContext({scale:1}),{PREVIEW_URL:FG}=globalThis,RG=FG||"iframe.html",J5=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,IG=e=>{let t=u.useRef(),[r,n]=u.useState(!0),[a,l]=u.useState(),{story:s,height:d,autoplay:f,forceInitialArgs:m,renderStoryToElement:g}=e;return u.useEffect(()=>{if(!(s&&t.current))return()=>{};let E=t.current,w=g(s,E,{showMain:()=>{},showError:({title:v,description:x})=>l(new Error(`${v} - ${x}`)),showException:v=>l(v)},{autoplay:f,forceInitialArgs:m});return n(!1),()=>{Promise.resolve().then(()=>w())}},[f,g,s]),a?D.createElement("pre",null,D.createElement(VU,{error:a})):D.createElement(D.Fragment,null,d?D.createElement("style",null,`#${J5(e)} { min-height: ${d}; transform: translateZ(0); overflow: auto }`):null,r&&D.createElement(BR,null),D.createElement("div",{ref:t,id:`${J5(e)}-inner`,"data-name":s.name}))},zG=({story:e,height:t="500px"})=>D.createElement("div",{style:{width:"100%",height:t}},D.createElement(TR.Consumer,null,({scale:r})=>D.createElement(_G,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:pq(RG,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),TG=M.strong(({theme:e})=>({color:e.color.orange})),BG=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?D.createElement(TG,null,"This story mounts inside of play. Set"," ",D.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):D.createElement("div",{id:J5(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?D.createElement(IG,{...e}):D.createElement(zG,{...e}))},BR=()=>D.createElement(dq,null),LG=M(sy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),OG=M.div({display:"flex",alignItems:"center",gap:4}),MG=M.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`})),PG=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...l})=>D.createElement(LG,{...l},D.createElement(OG,{key:"left"},e?[1,2,3].map(s=>D.createElement(MG,{key:s})):D.createElement(D.Fragment,null,D.createElement(Fa,{key:"zoomin",onClick:s=>{s.preventDefault(),n(.8)},title:"Zoom in"},D.createElement(gq,null)),D.createElement(Fa,{key:"zoomout",onClick:s=>{s.preventDefault(),n(1.25)},title:"Zoom out"},D.createElement(vq,null)),D.createElement(Fa,{key:"zoomreset",onClick:s=>{s.preventDefault(),a()},title:"Reset zoom"},D.createElement(yq,null))))),NG=M.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)`}}:{}),dx=M(zR)(({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)":un(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":un(.05,e.background.content)}})),$G=M.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Vp(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),HG=(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:D.createElement(dx,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:D.createElement(dx,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function jG(e){if(u.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var VG=M(PG)({position:"absolute",top:0,left:0,right:0,height:40}),UG=M.div({overflow:"hidden",position:"relative"}),LR=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:s=!1,additionalActions:d,className:f,layout:m="padded",...g})=>{let[E,w]=u.useState(s),{source:v,actionItem:x}=HG(a,E,w),[b,S]=u.useState(1),_=[f].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),F=a?[x]:[],[A,k]=u.useState(d?[...d]:[]),R=[...F,...A],{window:z}=globalThis,T=u.useCallback(async O=>{let{createCopyToClipboardFunction:H}=await Mx(()=>import("./index-CtZvsM5B.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url);H()},[]),B=O=>{let H=z.getSelection();H&&H.type==="Range"||(O.preventDefault(),A.filter(W=>W.title==="Copied").length===0&&T(v.props.code).then(()=>{k([...A,{title:"Copied",onClick:()=>{}}]),z.setTimeout(()=>k(A.filter(W=>W.title!=="Copied")),1500)}))};return D.createElement($G,{withSource:a,withToolbar:l,...g,className:_.join(" ")},l&&D.createElement(VG,{isLoading:e,border:!0,zoom:O=>S(b*O),resetZoom:()=>S(1),storyId:jG(n),baseUrl:"./iframe.html"}),D.createElement(TR.Provider,{value:{scale:b}},D.createElement(UG,{className:"docs-story",onCopyCapture:a&&B},D.createElement(NG,{isColumn:t||!Array.isArray(n),columns:r,layout:m},D.createElement(LU.Element,{scale:b},Array.isArray(n)?n.map((O,H)=>D.createElement("div",{key:H},O)):D.createElement("div",null,n))),D.createElement(O2,{actionItems:R}))),a&&E&&v)};M(LR)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),mx={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qG=["style","script"],GG=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,KG=/mailto:/i,YG=/\n{2,}$/,OR=/^(\s*>[\s\S]*?)(?=\n{2,})/,ZG=/^ *> ?/gm,XG=/^ {2,}\n/,JG=/^(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,vK=/(\[|\])/g,yK=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,wK=/\t/g,bK=/^ *\| */,EK=/(^ *\||\| *$)/g,xK=/ *$/,CK=/^ *:-+: *$/,DK=/^ *:-+ *$/,SK=/^ *-+: *$/,Up="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",kK=new RegExp(`^([*_])\\1${Up}\\1\\1(?!\\1)`),AK=new RegExp(`^([*_])${Up}\\1(?!\\1|\\w)`),_K=new RegExp(`^==${Up}==`),FK=new RegExp(`^~~${Up}~~`),RK=/^\\([^0-9A-Za-z\s])/,IK=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,zK=/^\n+/,TK=/^([ \t]*)/,BK=/\\([^\\])/g,gx=/ *\n+$/,LK=/(?:^|\n)( *)$/,dy="(?:\\d+\\.)",py="(?:[*+-])";function UR(e){return"( *)("+(e===1?dy:py)+") +"}var WR=UR(1),qR=UR(2);function GR(e){return new RegExp("^"+(e===1?WR:qR))}var OK=GR(1),MK=GR(2);function KR(e){return new RegExp("^"+(e===1?WR:qR)+"[^\\n]*(?:\\n(?!\\1"+(e===1?dy:py)+" )[^\\n]*)*(\\n|$)","gm")}var YR=KR(1),ZR=KR(2);function XR(e){let t=e===1?dy:py;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var JR=XR(1),QR=XR(2);function vx(e,t){let r=t===1,n=r?JR:QR,a=r?YR:ZR,l=r?OK:MK;return{match(s,d,f){let m=LK.exec(f);return m&&(d.list||!d.inline&&!d.simple)?n.exec(s=m[1]+s):null},order:1,parse(s,d,f){let m=r?+s[2]:void 0,g=s[0].replace(YG,` `).match(a),E=!1;return{items:g.map(function(w,v){let x=l.exec(w)[0].length,b=new RegExp("^ {1,"+x+"}","gm"),S=w.replace(b,"").replace(l,""),_=v===g.length-1,F=S.indexOf(` `)!==-1||_&&E;E=F;let A=f.inline,k=f.list,R;f.list=!0,F?(f.inline=!1,R=S.replace(gx,` @@ -731,7 +731,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${un(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${va(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${va(.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 ${Wn(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),fI=M.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),qY=M(fI)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),GY=M.div({display:"flex",alignItems:"center",width:"100%"});function KY(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 YY=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:s,onFocus:d,argType:f})=>{var v;let m=x=>{r(aY(x.target.value))},g=t!==void 0,E=u.useMemo(()=>KY(l),[l]),w=!!((v=f==null?void 0:f.table)!=null&&v.readonly);return D.createElement(GY,{"aria-readonly":w},D.createElement(fI,null,n),D.createElement(WY,{id:Kr(e),type:"range",disabled:w,onChange:m,name:e,value:t,min:n,max:a,step:l,onFocus:d,onBlur:s}),D.createElement(qY,{numberOFDecimalsPlaces:E,max:a},g?t.toFixed(E):"--"," / ",a))},ZY=M.label({display:"flex"}),XY=M.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),JY=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:s})=>{var v;let d=x=>{r(x.target.value)},f=!!((v=s==null?void 0:s.table)!=null&&v.readonly),[m,g]=u.useState(!1),E=u.useCallback(()=>{r(""),g(!0)},[g]);if(t===void 0)return D.createElement(qa,{variant:"outline",size:"medium",disabled:f,id:Vd(e),onClick:E},"Set string");let w=typeof t=="string";return D.createElement(ZY,null,D.createElement(Vu.Textarea,{id:Kr(e),maxLength:l,onChange:d,disabled:f,size:"flex",placeholder:"Edit string...",autoFocus:m,valid:w?null:"error",name:e,value:w?t:"",onFocus:n,onBlur:a}),l&&D.createElement(XY,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},QY=M(Vu.Input)({padding:10});function eZ(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var tZ=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var f;let l=u.useRef(null),s=(f=a==null?void 0:a.control)==null?void 0:f.readOnly;function d(m){if(!m.target.files)return;let g=Array.from(m.target.files).map(E=>URL.createObjectURL(E));e(g),eZ(n)}return u.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),D.createElement(QY,{ref:l,id:Kr(t),type:"file",name:t,multiple:!0,disabled:s,onChange:d,accept:r,size:"flex"})},rZ=u.lazy(()=>Mx(()=>import("./Color-F6OSRLHC-3yXWcasr.js"),__vite__mapDeps([5,2,1,3,4]),import.meta.url)),nZ=e=>D.createElement(u.Suspense,{fallback:D.createElement("div",null)},D.createElement(rZ,{...e})),oZ={array:Ax,object:Ax,boolean:XK,color:nZ,date:nY,number:lY,check:_i,"inline-check":_i,radio:_i,"inline-radio":_i,select:_i,"multi-select":_i,range:YY,text:JY,file:tZ},_x=()=>D.createElement(D.Fragment,null,"-"),aZ=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var b;let{key:a,control:l}=e,[s,d]=u.useState(!1),[f,m]=u.useState({value:t});u.useEffect(()=>{s||m({value:t})},[s,t]);let g=u.useCallback(S=>(m({value:S}),r({[a]:S}),S),[r,a]),E=u.useCallback(()=>d(!1),[]),w=u.useCallback(()=>d(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((b=e==null?void 0:e.type)==null?void 0:b.name)!=="function";return n&&S?D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):D.createElement(_x,null)}let v={name:a,argType:e,value:f.value,onChange:g,onBlur:E,onFocus:w},x=oZ[l.type]||_x;return D.createElement(x,{...v,...l,controlType:l.type})},iZ=M.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:qo({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),lZ=({tags:e})=>{let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:D.createElement(D.Fragment,null,D.createElement(iZ,null,D.createElement("tbody",null,n&&D.createElement("tr",{key:"deprecated"},D.createElement("td",{colSpan:2},D.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(l=>D.createElement("tr",{key:l.name},D.createElement("td",null,D.createElement("code",null,l.name)),D.createElement("td",null,l.description))),a&&D.createElement("tr",{key:"returns"},D.createElement("td",null,D.createElement("code",null,"Returns")),D.createElement("td",null,e.returns.description)))))},sZ=l2(kR()),n2=8,Fx=M.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),uZ=M.span(qo,({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}})),cZ=M.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),dZ=M.div(qo,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),pZ=M.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"}})),fZ=M(Aq)({marginLeft:4}),hZ=M(SR)({marginLeft:4}),mZ=()=>D.createElement("span",null,"-"),hI=({text:e,simple:t})=>D.createElement(uZ,{simple:t},e),gZ=(0,sZ.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),vZ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return MT(t)},Rx=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,n2)),r.map(n=>D.createElement(hI,{key:n,text:n===""?'""':n}))},yZ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=u.useState(!1),[s,d]=u.useState(t||!1);if(r==null)return null;let f=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(f))return D.createElement(hI,{text:f});let m=vZ(f),g=m.length;return g>n2?D.createElement(Fx,{isExpanded:s},Rx(m,s),D.createElement(cZ,{onClick:()=>d(!s)},s?"Show less...":`Show ${g-n2} more...`)):D.createElement(Fx,null,Rx(m))}return D.createElement(mW,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:m=>{l(m)},tooltip:D.createElement(pZ,{width:gZ(n)},D.createElement(Qv,{language:"jsx",format:!1},n))},D.createElement(dZ,{className:"sbdocs-expandable"},D.createElement("span",null,f),a?D.createElement(fZ,null):D.createElement(hZ,null)))},sg=({value:e,initialExpandedArgs:t})=>e==null?D.createElement(mZ,null):D.createElement(yZ,{value:e,initialExpandedArgs:t}),wZ=M.span({fontWeight:"bold"}),bZ=M.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),EZ=M.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...qo({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),xZ=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?$e(.1,e.color.defaultText):$e(.2,e.color.defaultText),marginTop:t?4:0})),CZ=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?$e(.1,e.color.defaultText):$e(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),DZ=M.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),SZ=e=>e&&{summary:typeof e=="string"?e:e.name},_0=e=>{var b;let[t,r]=u.useState(!1),{row:n,updateArgs:a,compact:l,expandable:s,initialExpandedArgs:d}=e,{name:f,description:m}=n,g=n.table||{},E=g.type||SZ(n.type),w=g.defaultValue||n.defaultValue,v=(b=n.type)==null?void 0:b.required,x=m!=null&&m!=="";return D.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},D.createElement(DZ,{expandable:s},D.createElement(wZ,null,f),v?D.createElement(bZ,{title:"Required"},"*"):null),l?null:D.createElement("td",null,x&&D.createElement(EZ,null,D.createElement(tI,null,m)),g.jsDocTags!=null?D.createElement(D.Fragment,null,D.createElement(CZ,{hasDescription:x},D.createElement(sg,{value:E,initialExpandedArgs:d})),D.createElement(lZ,{tags:g.jsDocTags})):D.createElement(xZ,{hasDescription:x},D.createElement(sg,{value:E,initialExpandedArgs:d}))),l?null:D.createElement("td",null,D.createElement(sg,{value:w,initialExpandedArgs:d})),a?D.createElement("td",null,D.createElement(aZ,{...e,isHovered:t})):null)},kZ=M.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"})),AZ=M.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),_Z=M.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),FZ=({inAddonPanel:e})=>{let[t,r]=u.useState(!0);return u.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:D.createElement(kZ,{inAddonPanel:e},D.createElement(yR,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:D.createElement(D.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:D.createElement(AZ,null,e&&D.createElement(D.Fragment,null,D.createElement(Yi,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},D.createElement(Eq,null)," Watch 5m video"),D.createElement(_Z,null),D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},D.createElement(G5,null)," Read docs")),!e&&D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},D.createElement(G5,null)," Learn how to set that up"))}))},RZ=M(Sq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?$e(.25,e.color.defaultText):$e(.3,e.color.defaultText),border:"none",display:"inline-block"})),IZ=M(kq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?$e(.25,e.color.defaultText):$e(.3,e.color.defaultText),border:"none",display:"inline-block"})),zZ=M.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),TZ=M.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"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),BZ=M.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),LZ=M.td(()=>({position:"relative"})),OZ=M.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${va(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Ix=M.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"})),ug=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,s]=u.useState(n),d=e==="subsection"?BZ:TZ,f=(r==null?void 0:r.length)||0,m=e==="subsection"?`${f} item${f!==1?"s":""}`:"",g=`${l?"Hide":"Show"} ${e==="subsection"?f:t} item${f!==1?"s":""}`;return D.createElement(D.Fragment,null,D.createElement(OZ,{title:g},D.createElement(d,{colSpan:1},D.createElement(Ix,{onClick:E=>s(!l),tabIndex:0},g),D.createElement(zZ,null,l?D.createElement(RZ,null):D.createElement(IZ,null),t)),D.createElement(LZ,{colSpan:a-1},D.createElement(Ix,{onClick:E=>s(!l),tabIndex:-1,style:{outline:"none"}},g),l?null:m)),l?r:null)},F0=M.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),At=M.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),it=M.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})),_t=[2,4,2,2],MZ=()=>D.createElement(D.Fragment,null,D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"})))),PZ=M.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"?$e(.25,e.color.defaultText):$e(.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}}}}})),NZ=M(Fa)(({theme:e})=>({margin:"-4px -12px -4px 0"})),$Z=M.span({display:"flex",justifyContent:"space-between"}),HZ={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},jZ=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,s])=>{let{category:d,subcategory:f}=(s==null?void 0:s.table)||{};if(d){let m=r.sections[d]||{ungrouped:[],subsections:{}};if(!f)m.ungrouped.push({key:l,...s});else{let g=m.subsections[f]||[];g.push({key:l,...s}),m.subsections[f]=g}r.sections[d]=m}else if(f){let m=r.ungroupedSubsections[f]||[];m.push({key:l,...s}),r.ungroupedSubsections[f]=m}else r.ungrouped.push({key:l,...s})});let n=HZ[t],a=l=>n?Object.keys(l).reduce((s,d)=>({...s,[d]:l[d].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,s)=>({...l,[s]:{ungrouped:r.sections[s].ungrouped.sort(n),subsections:a(r.sections[s].subsections)}}),{})}},VZ=(e,t,r)=>{try{return eO(e,t,r)}catch(n){return Rq.warn(n.message),!1}},o2=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:s="none",isLoading:d}=e;if("error"in e){let{error:F}=e;return D.createElement(IR,null,F," ",D.createElement(Yi,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},D.createElement(G5,null)," Read the docs"))}if(d)return D.createElement(MZ,null);let{rows:f,args:m,globals:g}="rows"in e&&e,E=jZ(PT(f||{},F=>{var A;return!((A=F==null?void 0:F.table)!=null&&A.disable)&&VZ(F,m||{},g||{})}),s),w=E.ungrouped.length===0,v=Object.entries(E.sections).length===0,x=Object.entries(E.ungroupedSubsections).length===0;if(w&&v&&x)return D.createElement(FZ,{inAddonPanel:a});let b=1;t&&(b+=1),n||(b+=2);let S=Object.keys(E.sections).length>0,_={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return D.createElement(B_,null,D.createElement(PZ,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},D.createElement("thead",{className:"docblock-argstable-head"},D.createElement("tr",null,D.createElement("th",null,D.createElement("span",null,"Name")),n?null:D.createElement("th",null,D.createElement("span",null,"Description")),n?null:D.createElement("th",null,D.createElement("span",null,"Default")),t?D.createElement("th",null,D.createElement($Z,null,"Control"," ",!d&&r&&D.createElement(NZ,{onClick:()=>r(),title:"Reset controls"},D.createElement(_q,{"aria-hidden":!0})))):null)),D.createElement("tbody",{className:"docblock-argstable-body"},E.ungrouped.map(F=>D.createElement(_0,{key:F.key,row:F,arg:m&&m[F.key],..._})),Object.entries(E.ungroupedSubsections).map(([F,A])=>D.createElement(ug,{key:F,label:F,level:"subsection",colSpan:b},A.map(k=>D.createElement(_0,{key:k.key,row:k,arg:m&&m[k.key],expandable:S,..._})))),Object.entries(E.sections).map(([F,A])=>D.createElement(ug,{key:F,label:F,level:"section",colSpan:b},A.ungrouped.map(k=>D.createElement(_0,{key:k.key,row:k,arg:m&&m[k.key],..._})),Object.entries(A.subsections).map(([k,R])=>D.createElement(ug,{key:k,label:k,level:"subsection",colSpan:b},R.map(z=>D.createElement(_0,{key:z.key,row:z,arg:m&&m[z.key],expandable:S,..._})))))))))},UZ=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?D.createElement(o2,{...r[0][1],...t}):D.createElement(XW,null,r.map((n,a)=>{let[l,s]=n,d=`prop_table_div_${l}`,f="div",m=a===0?t:{sort:t.sort};return D.createElement(f,{key:d,id:d,title:l},({active:g})=>g?D.createElement(o2,{key:`prop_table_${l}`,...s,...m}):null)}))};M.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});M.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});M.div(qe,({theme:e})=>({...Vp(e),margin:"25px 0 40px",padding:"30px 20px"}));M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));M.div(({theme:e})=>({color:e.base==="light"?$e(.2,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});M.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"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));M.div({display:"flex",flexDirection:"row"});M.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));M.div(({theme:e})=>({...Vp(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"}));M.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});M.div({flex:1,display:"flex",flexDirection:"row"});M.div({display:"flex",alignItems:"flex-start"});M.div({flex:"0 0 30%"});M.div({flex:1});M.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));M.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));M.div(({theme:e})=>({...Vp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));M.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});M.div({display:"flex",flexFlow:"row wrap"});var WZ=e=>`anchor--${e}`,mI=({storyId:e,children:t})=>D.createElement("div",{id:WZ(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=u.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Jr=globalThis?globalThis.__DOCS_CONTEXT__:u.createContext(null),Ga=(e,t)=>u.useContext(Jr).resolveOf(e,t),qZ=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),GZ=e=>{if(e)return typeof e=="string"?e.includes("-")?qZ(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function KZ(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var YZ=Object.create,gI=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,vI=Object.getOwnPropertyNames,XZ=Object.getPrototypeOf,JZ=Object.prototype.hasOwnProperty,kr=(e,t)=>function(){return t||(0,e[vI(e)[0]])((t={exports:{}}).exports,t),t.exports},QZ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vI(t))!JZ.call(e,a)&&a!==r&&gI(e,a,{get:()=>t[a],enumerable:!(n=ZZ(t,a))||n.enumerable});return e},my=(e,t,r)=>(r=e!=null?YZ(XZ(e)):{},QZ(!e||!e.__esModule?gI(r,"default",{value:e,enumerable:!0}):r,e)),eX=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],tX=["detail"];function rX(e){let t=eX.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&tX.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var nX=l2(kR(),1),yI=kr({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(r,n);if(d.value!==l||d.enumerable!==!0)return!1}return!0}}}),wI=kr({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=yI();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),oX=kr({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,l="[object Function]";t.exports=function(s){var d=this;if(typeof d!="function"||a.call(d)!==l)throw new TypeError(r+d);for(var f=n.call(arguments,1),m,g=function(){if(this instanceof m){var b=d.apply(this,f.concat(n.call(arguments)));return Object(b)===b?b:this}else return d.apply(s,f.concat(n.call(arguments)))},E=Math.max(0,d.length-f.length),w=[],v=0;v"u"?r:E(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g?E([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?E(E([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g?r:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g?r:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?E(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":m,"%TypedArray%":v,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},b=function K(Y){var re;if(Y==="%AsyncFunction%")re=s("async function () {}");else if(Y==="%GeneratorFunction%")re=s("function* () {}");else if(Y==="%AsyncGeneratorFunction%")re=s("async function* () {}");else if(Y==="%AsyncGenerator%"){var ee=K("%AsyncGeneratorFunction%");ee&&(re=ee.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var oe=K("%AsyncGenerator%");oe&&(re=E(oe.prototype))}return x[Y]=re,re},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=gy(),F=aX(),A=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),R=_.call(Function.call,String.prototype.replace),z=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,H=function(K){var Y=z(K,0,1),re=z(K,-1);if(Y==="%"&&re!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(re==="%"&&Y!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var ee=[];return R(K,B,function(oe,pe,q,Q){ee[ee.length]=q?R(Q,O,"$1"):pe||oe}),ee},W=function(K,Y){var re=K,ee;if(F(S,re)&&(ee=S[re],re="%"+ee[0]+"%"),F(x,re)){var oe=x[re];if(oe===w&&(oe=b(re)),typeof oe>"u"&&!Y)throw new l("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:ee,name:re,value:oe}}throw new n("intrinsic "+K+" does not exist!")};t.exports=function(K,Y){if(typeof K!="string"||K.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new l('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,K)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var re=H(K),ee=re.length>0?re[0]:"",oe=W("%"+ee+"%",Y),pe=oe.name,q=oe.value,Q=!1,Z=oe.alias;Z&&(ee=Z[0],k(re,A([0,1],Z)));for(var fe=1,ve=!0;fe=re.length){var ye=d(q,Ee);ve=!!ye,ve&&"get"in ye&&!("originalValue"in ye.get)?q=ye.get:q=q[Ee]}else ve=F(q,Ee),q=q[Ee];ve&&!Q&&(x[pe]=q)}}return q}}}),iX=kr({"node_modules/call-bind/index.js"(e,t){var r=gy(),n=bI(),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||r.call(l,a),d=n("%Object.getOwnPropertyDescriptor%",!0),f=n("%Object.defineProperty%",!0),m=n("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}t.exports=function(E){var w=s(r,l,arguments);if(d&&f){var v=d(w,"length");v.configurable&&f(w,"length",{value:1+m(0,E.length-(arguments.length-1))})}return w};var g=function(){return s(r,a,arguments)};f?f(t.exports,"apply",{value:g}):t.exports.apply=g}}),lX=kr({"node_modules/call-bind/callBound.js"(e,t){var r=bI(),n=iX(),a=n(r("String.prototype.indexOf"));t.exports=function(l,s){var d=r(l,!!s);return typeof d=="function"&&a(l,".prototype.")>-1?n(d):d}}}),sX=kr({"node_modules/has-tostringtag/shams.js"(e,t){var r=yI();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),uX=kr({"node_modules/is-regex/index.js"(e,t){var r=lX(),n=sX()(),a,l,s,d;n&&(a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),s={},f=function(){throw s},d={toString:f,valueOf:f},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=f));var f,m=r("Object.prototype.toString"),g=Object.getOwnPropertyDescriptor,E="[object RegExp]";t.exports=n?function(w){if(!w||typeof w!="object")return!1;var v=g(w,"lastIndex"),x=v&&a(v,"value");if(!x)return!1;try{l(w,d)}catch(b){return b===s}}:function(w){return!w||typeof w!="object"&&typeof w!="function"?!1:m(w)===E}}}),cX=kr({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),dX=kr({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=wI()();n?(a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,s=function(d){return typeof d.valueOf()!="symbol"?!1:l.test(a.call(d))},t.exports=function(d){if(typeof d=="symbol")return!0;if(r.call(d)!=="[object Symbol]")return!1;try{return s(d)}catch{return!1}}):t.exports=function(d){return!1};var a,l,s}}),pX=my(uX()),fX=my(cX()),hX=my(dX());function mX(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var gX=typeof global=="object"&&global&&global.Object===Object&&global,vX=gX,yX=typeof self=="object"&&self&&self.Object===Object&&self,wX=vX||yX||Function("return this")(),vy=wX,bX=vy.Symbol,ml=bX,EI=Object.prototype,EX=EI.hasOwnProperty,xX=EI.toString,Rs=ml?ml.toStringTag:void 0;function CX(e){var t=EX.call(e,Rs),r=e[Rs];try{e[Rs]=void 0;var n=!0}catch{}var a=xX.call(e);return n&&(t?e[Rs]=r:delete e[Rs]),a}var DX=CX,SX=Object.prototype,kX=SX.toString;function AX(e){return kX.call(e)}var _X=AX,FX="[object Null]",RX="[object Undefined]",zx=ml?ml.toStringTag:void 0;function IX(e){return e==null?e===void 0?RX:FX:zx&&zx in Object(e)?DX(e):_X(e)}var zX=IX,Tx=ml?ml.prototype:void 0;Tx&&Tx.toString;function TX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xI=TX,BX="[object AsyncFunction]",LX="[object Function]",OX="[object GeneratorFunction]",MX="[object Proxy]";function PX(e){if(!xI(e))return!1;var t=zX(e);return t==LX||t==OX||t==BX||t==MX}var NX=PX,$X=vy["__core-js_shared__"],cg=$X,Bx=function(){var e=/[^.]+$/.exec(cg&&cg.keys&&cg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HX(e){return!!Bx&&Bx in e}var jX=HX,VX=Function.prototype,UX=VX.toString;function WX(e){if(e!=null){try{return UX.call(e)}catch{}try{return e+""}catch{}}return""}var qX=WX,GX=/[\\^$.*+?()[\]{}|]/g,KX=/^\[object .+?Constructor\]$/,YX=Function.prototype,ZX=Object.prototype,XX=YX.toString,JX=ZX.hasOwnProperty,QX=RegExp("^"+XX.call(JX).replace(GX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eJ(e){if(!xI(e)||jX(e))return!1;var t=NX(e)?QX:KX;return t.test(qX(e))}var tJ=eJ;function rJ(e,t){return e==null?void 0:e[t]}var nJ=rJ;function oJ(e,t){var r=nJ(e,t);return tJ(r)?r:void 0}var CI=oJ;function aJ(e,t){return e===t||e!==e&&t!==t}var iJ=aJ,lJ=CI(Object,"create"),wu=lJ;function sJ(){this.__data__=wu?wu(null):{},this.size=0}var uJ=sJ;function cJ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dJ=cJ,pJ="__lodash_hash_undefined__",fJ=Object.prototype,hJ=fJ.hasOwnProperty;function mJ(e){var t=this.__data__;if(wu){var r=t[e];return r===pJ?void 0:r}return hJ.call(t,e)?t[e]:void 0}var gJ=mJ,vJ=Object.prototype,yJ=vJ.hasOwnProperty;function wJ(e){var t=this.__data__;return wu?t[e]!==void 0:yJ.call(t,e)}var bJ=wJ,EJ="__lodash_hash_undefined__";function xJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wu&&t===void 0?EJ:t,this}var CJ=xJ;function Sl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var BJ=TJ;function LJ(e,t){var r=this.__data__,n=qp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var OJ=LJ;function kl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,l="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let s=0;s({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),GY=M.div({display:"flex",alignItems:"center",width:"100%"});function KY(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 YY=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:s,onFocus:d,argType:f})=>{var v;let m=x=>{r(aY(x.target.value))},g=t!==void 0,E=u.useMemo(()=>KY(l),[l]),w=!!((v=f==null?void 0:f.table)!=null&&v.readonly);return D.createElement(GY,{"aria-readonly":w},D.createElement(fI,null,n),D.createElement(WY,{id:Kr(e),type:"range",disabled:w,onChange:m,name:e,value:t,min:n,max:a,step:l,onFocus:d,onBlur:s}),D.createElement(qY,{numberOFDecimalsPlaces:E,max:a},g?t.toFixed(E):"--"," / ",a))},ZY=M.label({display:"flex"}),XY=M.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),JY=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:s})=>{var v;let d=x=>{r(x.target.value)},f=!!((v=s==null?void 0:s.table)!=null&&v.readonly),[m,g]=u.useState(!1),E=u.useCallback(()=>{r(""),g(!0)},[g]);if(t===void 0)return D.createElement(qa,{variant:"outline",size:"medium",disabled:f,id:Vd(e),onClick:E},"Set string");let w=typeof t=="string";return D.createElement(ZY,null,D.createElement(Vu.Textarea,{id:Kr(e),maxLength:l,onChange:d,disabled:f,size:"flex",placeholder:"Edit string...",autoFocus:m,valid:w?null:"error",name:e,value:w?t:"",onFocus:n,onBlur:a}),l&&D.createElement(XY,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},QY=M(Vu.Input)({padding:10});function eZ(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var tZ=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var f;let l=u.useRef(null),s=(f=a==null?void 0:a.control)==null?void 0:f.readOnly;function d(m){if(!m.target.files)return;let g=Array.from(m.target.files).map(E=>URL.createObjectURL(E));e(g),eZ(n)}return u.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),D.createElement(QY,{ref:l,id:Kr(t),type:"file",name:t,multiple:!0,disabled:s,onChange:d,accept:r,size:"flex"})},rZ=u.lazy(()=>Mx(()=>import("./Color-F6OSRLHC-XAUxgAEQ.js"),__vite__mapDeps([5,2,1,3,4]),import.meta.url)),nZ=e=>D.createElement(u.Suspense,{fallback:D.createElement("div",null)},D.createElement(rZ,{...e})),oZ={array:Ax,object:Ax,boolean:XK,color:nZ,date:nY,number:lY,check:_i,"inline-check":_i,radio:_i,"inline-radio":_i,select:_i,"multi-select":_i,range:YY,text:JY,file:tZ},_x=()=>D.createElement(D.Fragment,null,"-"),aZ=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var b;let{key:a,control:l}=e,[s,d]=u.useState(!1),[f,m]=u.useState({value:t});u.useEffect(()=>{s||m({value:t})},[s,t]);let g=u.useCallback(S=>(m({value:S}),r({[a]:S}),S),[r,a]),E=u.useCallback(()=>d(!1),[]),w=u.useCallback(()=>d(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((b=e==null?void 0:e.type)==null?void 0:b.name)!=="function";return n&&S?D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):D.createElement(_x,null)}let v={name:a,argType:e,value:f.value,onChange:g,onBlur:E,onFocus:w},x=oZ[l.type]||_x;return D.createElement(x,{...v,...l,controlType:l.type})},iZ=M.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:qo({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),lZ=({tags:e})=>{let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:D.createElement(D.Fragment,null,D.createElement(iZ,null,D.createElement("tbody",null,n&&D.createElement("tr",{key:"deprecated"},D.createElement("td",{colSpan:2},D.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(l=>D.createElement("tr",{key:l.name},D.createElement("td",null,D.createElement("code",null,l.name)),D.createElement("td",null,l.description))),a&&D.createElement("tr",{key:"returns"},D.createElement("td",null,D.createElement("code",null,"Returns")),D.createElement("td",null,e.returns.description)))))},sZ=l2(kR()),n2=8,Fx=M.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),uZ=M.span(qo,({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}})),cZ=M.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),dZ=M.div(qo,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),pZ=M.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"}})),fZ=M(Aq)({marginLeft:4}),hZ=M(SR)({marginLeft:4}),mZ=()=>D.createElement("span",null,"-"),hI=({text:e,simple:t})=>D.createElement(uZ,{simple:t},e),gZ=(0,sZ.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),vZ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return MT(t)},Rx=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,n2)),r.map(n=>D.createElement(hI,{key:n,text:n===""?'""':n}))},yZ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=u.useState(!1),[s,d]=u.useState(t||!1);if(r==null)return null;let f=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(f))return D.createElement(hI,{text:f});let m=vZ(f),g=m.length;return g>n2?D.createElement(Fx,{isExpanded:s},Rx(m,s),D.createElement(cZ,{onClick:()=>d(!s)},s?"Show less...":`Show ${g-n2} more...`)):D.createElement(Fx,null,Rx(m))}return D.createElement(mW,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:m=>{l(m)},tooltip:D.createElement(pZ,{width:gZ(n)},D.createElement(Qv,{language:"jsx",format:!1},n))},D.createElement(dZ,{className:"sbdocs-expandable"},D.createElement("span",null,f),a?D.createElement(fZ,null):D.createElement(hZ,null)))},sg=({value:e,initialExpandedArgs:t})=>e==null?D.createElement(mZ,null):D.createElement(yZ,{value:e,initialExpandedArgs:t}),wZ=M.span({fontWeight:"bold"}),bZ=M.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),EZ=M.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...qo({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),xZ=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?$e(.1,e.color.defaultText):$e(.2,e.color.defaultText),marginTop:t?4:0})),CZ=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?$e(.1,e.color.defaultText):$e(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),DZ=M.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),SZ=e=>e&&{summary:typeof e=="string"?e:e.name},_0=e=>{var b;let[t,r]=u.useState(!1),{row:n,updateArgs:a,compact:l,expandable:s,initialExpandedArgs:d}=e,{name:f,description:m}=n,g=n.table||{},E=g.type||SZ(n.type),w=g.defaultValue||n.defaultValue,v=(b=n.type)==null?void 0:b.required,x=m!=null&&m!=="";return D.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},D.createElement(DZ,{expandable:s},D.createElement(wZ,null,f),v?D.createElement(bZ,{title:"Required"},"*"):null),l?null:D.createElement("td",null,x&&D.createElement(EZ,null,D.createElement(tI,null,m)),g.jsDocTags!=null?D.createElement(D.Fragment,null,D.createElement(CZ,{hasDescription:x},D.createElement(sg,{value:E,initialExpandedArgs:d})),D.createElement(lZ,{tags:g.jsDocTags})):D.createElement(xZ,{hasDescription:x},D.createElement(sg,{value:E,initialExpandedArgs:d}))),l?null:D.createElement("td",null,D.createElement(sg,{value:w,initialExpandedArgs:d})),a?D.createElement("td",null,D.createElement(aZ,{...e,isHovered:t})):null)},kZ=M.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"})),AZ=M.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),_Z=M.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),FZ=({inAddonPanel:e})=>{let[t,r]=u.useState(!0);return u.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:D.createElement(kZ,{inAddonPanel:e},D.createElement(yR,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:D.createElement(D.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:D.createElement(AZ,null,e&&D.createElement(D.Fragment,null,D.createElement(Yi,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},D.createElement(Eq,null)," Watch 5m video"),D.createElement(_Z,null),D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},D.createElement(G5,null)," Read docs")),!e&&D.createElement(Yi,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},D.createElement(G5,null)," Learn how to set that up"))}))},RZ=M(Sq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?$e(.25,e.color.defaultText):$e(.3,e.color.defaultText),border:"none",display:"inline-block"})),IZ=M(kq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?$e(.25,e.color.defaultText):$e(.3,e.color.defaultText),border:"none",display:"inline-block"})),zZ=M.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),TZ=M.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"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),BZ=M.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),LZ=M.td(()=>({position:"relative"})),OZ=M.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${va(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Ix=M.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"})),ug=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,s]=u.useState(n),d=e==="subsection"?BZ:TZ,f=(r==null?void 0:r.length)||0,m=e==="subsection"?`${f} item${f!==1?"s":""}`:"",g=`${l?"Hide":"Show"} ${e==="subsection"?f:t} item${f!==1?"s":""}`;return D.createElement(D.Fragment,null,D.createElement(OZ,{title:g},D.createElement(d,{colSpan:1},D.createElement(Ix,{onClick:E=>s(!l),tabIndex:0},g),D.createElement(zZ,null,l?D.createElement(RZ,null):D.createElement(IZ,null),t)),D.createElement(LZ,{colSpan:a-1},D.createElement(Ix,{onClick:E=>s(!l),tabIndex:-1,style:{outline:"none"}},g),l?null:m)),l?r:null)},F0=M.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),At=M.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),it=M.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})),_t=[2,4,2,2],MZ=()=>D.createElement(D.Fragment,null,D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"}))),D.createElement(F0,null,D.createElement(At,{numColumn:_t[0]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[1]},D.createElement(it,{width:"80%"}),D.createElement(it,{width:"30%"})),D.createElement(At,{numColumn:_t[2]},D.createElement(it,{width:"60%"})),D.createElement(At,{numColumn:_t[3]},D.createElement(it,{width:"60%"})))),PZ=M.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"?$e(.25,e.color.defaultText):$e(.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}}}}})),NZ=M(Fa)(({theme:e})=>({margin:"-4px -12px -4px 0"})),$Z=M.span({display:"flex",justifyContent:"space-between"}),HZ={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},jZ=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,s])=>{let{category:d,subcategory:f}=(s==null?void 0:s.table)||{};if(d){let m=r.sections[d]||{ungrouped:[],subsections:{}};if(!f)m.ungrouped.push({key:l,...s});else{let g=m.subsections[f]||[];g.push({key:l,...s}),m.subsections[f]=g}r.sections[d]=m}else if(f){let m=r.ungroupedSubsections[f]||[];m.push({key:l,...s}),r.ungroupedSubsections[f]=m}else r.ungrouped.push({key:l,...s})});let n=HZ[t],a=l=>n?Object.keys(l).reduce((s,d)=>({...s,[d]:l[d].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,s)=>({...l,[s]:{ungrouped:r.sections[s].ungrouped.sort(n),subsections:a(r.sections[s].subsections)}}),{})}},VZ=(e,t,r)=>{try{return eO(e,t,r)}catch(n){return Rq.warn(n.message),!1}},o2=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:s="none",isLoading:d}=e;if("error"in e){let{error:F}=e;return D.createElement(IR,null,F," ",D.createElement(Yi,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},D.createElement(G5,null)," Read the docs"))}if(d)return D.createElement(MZ,null);let{rows:f,args:m,globals:g}="rows"in e&&e,E=jZ(PT(f||{},F=>{var A;return!((A=F==null?void 0:F.table)!=null&&A.disable)&&VZ(F,m||{},g||{})}),s),w=E.ungrouped.length===0,v=Object.entries(E.sections).length===0,x=Object.entries(E.ungroupedSubsections).length===0;if(w&&v&&x)return D.createElement(FZ,{inAddonPanel:a});let b=1;t&&(b+=1),n||(b+=2);let S=Object.keys(E.sections).length>0,_={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return D.createElement(B_,null,D.createElement(PZ,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},D.createElement("thead",{className:"docblock-argstable-head"},D.createElement("tr",null,D.createElement("th",null,D.createElement("span",null,"Name")),n?null:D.createElement("th",null,D.createElement("span",null,"Description")),n?null:D.createElement("th",null,D.createElement("span",null,"Default")),t?D.createElement("th",null,D.createElement($Z,null,"Control"," ",!d&&r&&D.createElement(NZ,{onClick:()=>r(),title:"Reset controls"},D.createElement(_q,{"aria-hidden":!0})))):null)),D.createElement("tbody",{className:"docblock-argstable-body"},E.ungrouped.map(F=>D.createElement(_0,{key:F.key,row:F,arg:m&&m[F.key],..._})),Object.entries(E.ungroupedSubsections).map(([F,A])=>D.createElement(ug,{key:F,label:F,level:"subsection",colSpan:b},A.map(k=>D.createElement(_0,{key:k.key,row:k,arg:m&&m[k.key],expandable:S,..._})))),Object.entries(E.sections).map(([F,A])=>D.createElement(ug,{key:F,label:F,level:"section",colSpan:b},A.ungrouped.map(k=>D.createElement(_0,{key:k.key,row:k,arg:m&&m[k.key],..._})),Object.entries(A.subsections).map(([k,R])=>D.createElement(ug,{key:k,label:k,level:"subsection",colSpan:b},R.map(z=>D.createElement(_0,{key:z.key,row:z,arg:m&&m[z.key],expandable:S,..._})))))))))},UZ=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?D.createElement(o2,{...r[0][1],...t}):D.createElement(XW,null,r.map((n,a)=>{let[l,s]=n,d=`prop_table_div_${l}`,f="div",m=a===0?t:{sort:t.sort};return D.createElement(f,{key:d,id:d,title:l},({active:g})=>g?D.createElement(o2,{key:`prop_table_${l}`,...s,...m}):null)}))};M.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});M.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});M.div(qe,({theme:e})=>({...Vp(e),margin:"25px 0 40px",padding:"30px 20px"}));M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));M.div(({theme:e})=>({color:e.base==="light"?$e(.2,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});M.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"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));M.div({display:"flex",flexDirection:"row"});M.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));M.div(({theme:e})=>({...Vp(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"}));M.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});M.div({flex:1,display:"flex",flexDirection:"row"});M.div({display:"flex",alignItems:"flex-start"});M.div({flex:"0 0 30%"});M.div({flex:1});M.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?$e(.4,e.color.defaultText):$e(.6,e.color.defaultText)}));M.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));M.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));M.div(({theme:e})=>({...Vp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));M.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});M.div({display:"flex",flexFlow:"row wrap"});var WZ=e=>`anchor--${e}`,mI=({storyId:e,children:t})=>D.createElement("div",{id:WZ(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=u.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Jr=globalThis?globalThis.__DOCS_CONTEXT__:u.createContext(null),Ga=(e,t)=>u.useContext(Jr).resolveOf(e,t),qZ=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),GZ=e=>{if(e)return typeof e=="string"?e.includes("-")?qZ(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function KZ(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var YZ=Object.create,gI=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,vI=Object.getOwnPropertyNames,XZ=Object.getPrototypeOf,JZ=Object.prototype.hasOwnProperty,kr=(e,t)=>function(){return t||(0,e[vI(e)[0]])((t={exports:{}}).exports,t),t.exports},QZ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vI(t))!JZ.call(e,a)&&a!==r&&gI(e,a,{get:()=>t[a],enumerable:!(n=ZZ(t,a))||n.enumerable});return e},my=(e,t,r)=>(r=e!=null?YZ(XZ(e)):{},QZ(!e||!e.__esModule?gI(r,"default",{value:e,enumerable:!0}):r,e)),eX=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],tX=["detail"];function rX(e){let t=eX.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&tX.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var nX=l2(kR(),1),yI=kr({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(r,n);if(d.value!==l||d.enumerable!==!0)return!1}return!0}}}),wI=kr({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=yI();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),oX=kr({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,l="[object Function]";t.exports=function(s){var d=this;if(typeof d!="function"||a.call(d)!==l)throw new TypeError(r+d);for(var f=n.call(arguments,1),m,g=function(){if(this instanceof m){var b=d.apply(this,f.concat(n.call(arguments)));return Object(b)===b?b:this}else return d.apply(s,f.concat(n.call(arguments)))},E=Math.max(0,d.length-f.length),w=[],v=0;v"u"?r:E(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g?E([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?E(E([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g?r:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g?r:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?E(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":m,"%TypedArray%":v,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},b=function K(Y){var re;if(Y==="%AsyncFunction%")re=s("async function () {}");else if(Y==="%GeneratorFunction%")re=s("function* () {}");else if(Y==="%AsyncGeneratorFunction%")re=s("async function* () {}");else if(Y==="%AsyncGenerator%"){var ee=K("%AsyncGeneratorFunction%");ee&&(re=ee.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var oe=K("%AsyncGenerator%");oe&&(re=E(oe.prototype))}return x[Y]=re,re},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=gy(),F=aX(),A=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),R=_.call(Function.call,String.prototype.replace),z=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,H=function(K){var Y=z(K,0,1),re=z(K,-1);if(Y==="%"&&re!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(re==="%"&&Y!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var ee=[];return R(K,B,function(oe,pe,q,Q){ee[ee.length]=q?R(Q,O,"$1"):pe||oe}),ee},W=function(K,Y){var re=K,ee;if(F(S,re)&&(ee=S[re],re="%"+ee[0]+"%"),F(x,re)){var oe=x[re];if(oe===w&&(oe=b(re)),typeof oe>"u"&&!Y)throw new l("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:ee,name:re,value:oe}}throw new n("intrinsic "+K+" does not exist!")};t.exports=function(K,Y){if(typeof K!="string"||K.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new l('"allowMissing" argument must be a boolean');if(T(/^%?[^%]*%?$/,K)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var re=H(K),ee=re.length>0?re[0]:"",oe=W("%"+ee+"%",Y),pe=oe.name,q=oe.value,Q=!1,Z=oe.alias;Z&&(ee=Z[0],k(re,A([0,1],Z)));for(var fe=1,ve=!0;fe=re.length){var ye=d(q,Ee);ve=!!ye,ve&&"get"in ye&&!("originalValue"in ye.get)?q=ye.get:q=q[Ee]}else ve=F(q,Ee),q=q[Ee];ve&&!Q&&(x[pe]=q)}}return q}}}),iX=kr({"node_modules/call-bind/index.js"(e,t){var r=gy(),n=bI(),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||r.call(l,a),d=n("%Object.getOwnPropertyDescriptor%",!0),f=n("%Object.defineProperty%",!0),m=n("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}t.exports=function(E){var w=s(r,l,arguments);if(d&&f){var v=d(w,"length");v.configurable&&f(w,"length",{value:1+m(0,E.length-(arguments.length-1))})}return w};var g=function(){return s(r,a,arguments)};f?f(t.exports,"apply",{value:g}):t.exports.apply=g}}),lX=kr({"node_modules/call-bind/callBound.js"(e,t){var r=bI(),n=iX(),a=n(r("String.prototype.indexOf"));t.exports=function(l,s){var d=r(l,!!s);return typeof d=="function"&&a(l,".prototype.")>-1?n(d):d}}}),sX=kr({"node_modules/has-tostringtag/shams.js"(e,t){var r=yI();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),uX=kr({"node_modules/is-regex/index.js"(e,t){var r=lX(),n=sX()(),a,l,s,d;n&&(a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),s={},f=function(){throw s},d={toString:f,valueOf:f},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=f));var f,m=r("Object.prototype.toString"),g=Object.getOwnPropertyDescriptor,E="[object RegExp]";t.exports=n?function(w){if(!w||typeof w!="object")return!1;var v=g(w,"lastIndex"),x=v&&a(v,"value");if(!x)return!1;try{l(w,d)}catch(b){return b===s}}:function(w){return!w||typeof w!="object"&&typeof w!="function"?!1:m(w)===E}}}),cX=kr({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),dX=kr({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=wI()();n?(a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,s=function(d){return typeof d.valueOf()!="symbol"?!1:l.test(a.call(d))},t.exports=function(d){if(typeof d=="symbol")return!0;if(r.call(d)!=="[object Symbol]")return!1;try{return s(d)}catch{return!1}}):t.exports=function(d){return!1};var a,l,s}}),pX=my(uX()),fX=my(cX()),hX=my(dX());function mX(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var gX=typeof global=="object"&&global&&global.Object===Object&&global,vX=gX,yX=typeof self=="object"&&self&&self.Object===Object&&self,wX=vX||yX||Function("return this")(),vy=wX,bX=vy.Symbol,ml=bX,EI=Object.prototype,EX=EI.hasOwnProperty,xX=EI.toString,Rs=ml?ml.toStringTag:void 0;function CX(e){var t=EX.call(e,Rs),r=e[Rs];try{e[Rs]=void 0;var n=!0}catch{}var a=xX.call(e);return n&&(t?e[Rs]=r:delete e[Rs]),a}var DX=CX,SX=Object.prototype,kX=SX.toString;function AX(e){return kX.call(e)}var _X=AX,FX="[object Null]",RX="[object Undefined]",zx=ml?ml.toStringTag:void 0;function IX(e){return e==null?e===void 0?RX:FX:zx&&zx in Object(e)?DX(e):_X(e)}var zX=IX,Tx=ml?ml.prototype:void 0;Tx&&Tx.toString;function TX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xI=TX,BX="[object AsyncFunction]",LX="[object Function]",OX="[object GeneratorFunction]",MX="[object Proxy]";function PX(e){if(!xI(e))return!1;var t=zX(e);return t==LX||t==OX||t==BX||t==MX}var NX=PX,$X=vy["__core-js_shared__"],cg=$X,Bx=function(){var e=/[^.]+$/.exec(cg&&cg.keys&&cg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HX(e){return!!Bx&&Bx in e}var jX=HX,VX=Function.prototype,UX=VX.toString;function WX(e){if(e!=null){try{return UX.call(e)}catch{}try{return e+""}catch{}}return""}var qX=WX,GX=/[\\^$.*+?()[\]{}|]/g,KX=/^\[object .+?Constructor\]$/,YX=Function.prototype,ZX=Object.prototype,XX=YX.toString,JX=ZX.hasOwnProperty,QX=RegExp("^"+XX.call(JX).replace(GX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eJ(e){if(!xI(e)||jX(e))return!1;var t=NX(e)?QX:KX;return t.test(qX(e))}var tJ=eJ;function rJ(e,t){return e==null?void 0:e[t]}var nJ=rJ;function oJ(e,t){var r=nJ(e,t);return tJ(r)?r:void 0}var CI=oJ;function aJ(e,t){return e===t||e!==e&&t!==t}var iJ=aJ,lJ=CI(Object,"create"),wu=lJ;function sJ(){this.__data__=wu?wu(null):{},this.size=0}var uJ=sJ;function cJ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dJ=cJ,pJ="__lodash_hash_undefined__",fJ=Object.prototype,hJ=fJ.hasOwnProperty;function mJ(e){var t=this.__data__;if(wu){var r=t[e];return r===pJ?void 0:r}return hJ.call(t,e)?t[e]:void 0}var gJ=mJ,vJ=Object.prototype,yJ=vJ.hasOwnProperty;function wJ(e){var t=this.__data__;return wu?t[e]!==void 0:yJ.call(t,e)}var bJ=wJ,EJ="__lodash_hash_undefined__";function xJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wu&&t===void 0?EJ:t,this}var CJ=xJ;function Sl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var BJ=TJ;function LJ(e,t){var r=this.__data__,n=qp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var OJ=LJ;function kl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,l="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let s=0;slQ(e).replace(/\n\s*/g,"").trim()),uQ=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},cQ=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function SI(e){if(!iQ(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=rX(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var dQ=function(e){let t,r,n,a;return function(l,s){try{if(l==="")return a=[],t=new Map([[s,"[]"]]),r=new Map,n=[],s;let d=r.get(this)||this;for(;n.length&&d!==n[0];)n.shift(),a.pop();if(typeof s=="boolean")return s;if(s===void 0)return e.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return cQ.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,pX.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,fX.default)(s)){if(!e.allowFunction)return;let{name:m}=s,g=s.toString();return g.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${m}|${(()=>{}).toString()}`:`_function_${m}|${sQ(uQ(l,g))}`}if((0,hX.default)(s)){if(!e.allowSymbol)return;let m=Symbol.keyFor(s);return m!==void 0?`_gsymbol_${m}`:`_symbol_${s.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(a)}`;if(s instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!e.allowClass)return;let f=t.get(s);if(!f){let m=Array.isArray(s)?s:SI(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&e.allowClass)try{Object.assign(m,{"_constructor-name_":s.constructor.name})}catch{}return a.push(l),n.unshift(m),t.set(s,JSON.stringify(a)),s!==m&&r.set(s,m),m}return`_duplicate_${f}`}catch{return}}},pQ={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},fQ=(e,t={})=>{let r={...pQ,...t};return JSON.stringify(SI(e),dQ(r),t.space)};function kI(e){return fQ(e,{allowFunction:!1})}var AI=u.createContext({sources:{}}),_I="--unknown--",hQ=({children:e,channel:t})=>{let[r,n]=u.useState({});return u.useEffect(()=>{let a=(l,s=null,d=!1)=>{let{id:f,args:m=void 0,source:g,format:E}=typeof l=="string"?{id:l,source:s,format:d}:l,w=m?kI(m):_I;n(v=>({...v,[f]:{...v[f],[w]:{code:g,format:E}}}))};return t.on(Q3,a),()=>t.off(Q3,a)},[]),D.createElement(AI.Provider,{value:{sources:r}},e)},mQ=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[kI(t)])||(a==null?void 0:a[_I])||{code:""}},gQ=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var f,m;let{__isArgsStory:a}=t.parameters,l=((f=t.parameters.docs)==null?void 0:f.source)||{},s=r||l.type||If.AUTO;if(l.code!==void 0)return l.code;let d=s===If.DYNAMIC||s===If.AUTO&&e&&a?e:l.originalSource||"";return((m=n??l.transform)==null?void 0:m(d,t))||d},vQ=(e,t,r)=>{var v,x,b,S;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 l=((x=(v=n==null?void 0:n.parameters)==null?void 0:v.docs)==null?void 0:x.source)||{},{code:s}=e,d=e.format??l.format,f=e.language??l.language??"jsx",m=e.dark??l.dark??!1;if(!s&&!n)return{error:"Oh no! The source is not available."};if(s)return{code:s,format:d,language:f,dark:m};let g=t.getStoryContext(n),E=e.__forceInitialArgs?g.initialArgs:g.unmappedArgs,w=mQ(n.id,E,r);return d=w.format??((S=(b=n.parameters.docs)==null?void 0:b.source)==null?void 0:S.format)??!1,{code:gQ({snippet:w.code,storyContext:{...g,args:E},typeFromProps:e.type,transformFromProps:e.transform}),format:d,language:f,dark:m}};function yQ(e,t){let r=wQ([e],t);return r&&r[0]}function wQ(e,t){let[r,n]=u.useState({});return u.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(s=>s[a]===l?s:{...s,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var bQ=(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},EQ=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let d=e.height??l.height,f=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:d,autoplay:f,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let s=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:s,primary:!!e.__primary}},xQ=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=u.useContext(Jr),r=bQ(e,t),n=yQ(r,t);if(!n)return D.createElement(BR,null);let a=EQ(e,n,t);return a?D.createElement(BG,{...a}):null},CQ=e=>{var w,v,x,b,S,_,F,A,k,R;let t=u.useContext(Jr),r=u.useContext(AI),{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:l}=Ga(n||"story",["story"]),s=vQ({...a,...n&&{of:n}},t,r),d=e.layout??l.parameters.layout??((v=(w=l.parameters.docs)==null?void 0:w.canvas)==null?void 0:v.layout)??"padded",f=e.withToolbar??((b=(x=l.parameters.docs)==null?void 0:x.canvas)==null?void 0:b.withToolbar)??!1,m=e.additionalActions??((_=(S=l.parameters.docs)==null?void 0:S.canvas)==null?void 0:_.additionalActions),g=e.sourceState??((A=(F=l.parameters.docs)==null?void 0:F.canvas)==null?void 0:A.sourceState)??"hidden",E=e.className??((R=(k=l.parameters.docs)==null?void 0:k.canvas)==null?void 0:R.className);return D.createElement(LR,{withSource:g==="none"?void 0:s,isExpanded:g==="shown",withToolbar:f,additionalActions:m,className:E,layout:d},D.createElement(xQ,{of:n||l.moduleExport,meta:e.meta,...e.story}))},DQ=(e,t)=>{let r=SQ(e,t);if(!r)throw new Error("No result when story was defined");return r},SQ=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=u.useState(r.args);u.useEffect(()=>{let f=m=>{m.storyId===n&&l(m.args)};return t.channel.on(sx,f),()=>t.channel.off(sx,f)},[n,t.channel]);let s=u.useCallback(f=>t.channel.emit(Iq,{storyId:n,updatedArgs:f}),[n,t.channel]),d=u.useCallback(f=>t.channel.emit(zq,{storyId:n,argNames:f}),[n,t.channel]);return e&&[a,s,d]},kQ=(e,t)=>{let r=t.getStoryContext(e),[n,a]=u.useState(r.globals);return u.useEffect(()=>{let l=s=>{a(s.globals)};return t.channel.on(ux,l),()=>t.channel.off(ux,l)},[t.channel]),[n]};function AQ(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var _Q=e=>{var k;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(Jr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:s,subcomponents:d}=n,f=((k=a.docs)==null?void 0:k.controls)||{},m=e.include??f.include,g=e.exclude??f.exclude,E=e.sort??f.sort,[w,v,x]=DQ(n,r),[b]=kQ(n,r),S=lx(l,m,g);if(!(d&&Object.keys(d).length>0))return Object.keys(S).length>0||Object.keys(w).length>0?D.createElement(o2,{rows:S,sort:E,args:w,globals:b,updateArgs:v,resetArgs:x}):null;let _=GZ(s),F=Object.fromEntries(Object.entries(d).map(([R,z])=>[R,{rows:lx(AQ(z,a),m,g),sort:E}])),A={[_]:{rows:S,sort:E},...F};return D.createElement(UZ,{tabs:A,sort:E,args:w,globals:b,updateArgs:v,resetArgs:x})},{document:FI}=globalThis,FQ=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return D.createElement(L_,null,t);let n=e&&e.split("-");return D.createElement(zR,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wy(e,t){e.channel.emit(Tq,t)}var a2=hq.a,RQ=({hash:e,children:t})=>{let r=u.useContext(Jr);return D.createElement(a2,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);FI.getElementById(a)&&wy(r,e)}},t)},IQ=e=>{let{href:t,target:r,children:n,...a}=e,l=u.useContext(Jr);return!t||r==="_blank"||/^https?:\/\//.test(t)?D.createElement(a2,{...e}):t.startsWith("#")?D.createElement(RQ,{hash:t},n):D.createElement(a2,{href:t,onClick:s=>{s.button===0&&!s.altKey&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey&&(s.preventDefault(),wy(l,s.currentTarget.getAttribute("href")))},target:r,...a},n)},RI=["h1","h2","h3","h4","h5","h6"],zQ=RI.reduce((e,t)=>({...e,[t]:M(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),TQ=M.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),BQ=({as:e,id:t,children:r,...n})=>{let a=u.useContext(Jr),l=zQ[e],s=`#${t}`;return D.createElement(l,{id:t,...n},D.createElement(TQ,{"aria-hidden":"true",href:s,tabIndex:-1,target:"_self",onClick:d=>{FI.getElementById(t)&&wy(a,s)}},D.createElement(Dq,null)),r)},by=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return D.createElement(BQ,{as:t,id:r,...a},n);let l=t,{as:s,...d}=e;return D.createElement(l,{...Ue(d,t)})},LQ=RI.reduce((e,t)=>({...e,[t]:r=>D.createElement(by,{as:t,...r})}),{}),OQ=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(RT`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' diff --git a/assets/index-CHjK1967.js b/assets/index-CtZvsM5B.js similarity index 96% rename from assets/index-CHjK1967.js rename to assets/index-CtZvsM5B.js index a5b3eb9b3..eaedeb7fb 100644 --- a/assets/index-CHjK1967.js +++ b/assets/index-CtZvsM5B.js @@ -1 +1 @@ -import{m as p,a as i,G as l,K as m,P as c,g as T,L as b,b as d,v as S,w as B,c as L,E as C,$ as H,y as u,d as g,N as y,e as I,D as h,x as k,C as P,f as W,S as A,R as F,I as x,h as D,i as R,A as f,F as v,j as E,k as M,l as N,W as q,n as w,T as O,t as U,o as Z,p as j,q as z,r as G,s as J,u as K,z as Q,B as V,H as X,J as Y,M as _,V as $,O as aa,Q as sa,U as oa,X as ta,Y as ea,Z 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-D2M---gb.js";import"./iframe-DpQGfO6h.js";import"../sb-preview/runtime.js";import"./index-DjTz9BGS.js";import"./index-DPS9-N-h.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{m as p,a as i,G as l,K as m,P as c,g as T,L as b,b as d,v as S,w as B,c as L,E as C,$ as H,y as u,d as g,N as y,e as I,D as h,x as k,C as P,f as W,S as A,R as F,I as x,h as D,i as R,A as f,F as v,j as E,k as M,l as N,W as q,n as w,T as O,t as U,o as Z,p as j,q as z,r as G,s as J,u as K,z as Q,B as V,H as X,J as Y,M as _,V as $,O as aa,Q as sa,U as oa,X as ta,Y as ea,Z 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-BbxnuoyN.js";import"./iframe-BzPUOMAI.js";import"../sb-preview/runtime.js";import"./index-DjTz9BGS.js";import"./index-DPS9-N-h.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/lerc-C3_7oN2L.js b/assets/lerc-E1VxbijF.js similarity index 99% rename from assets/lerc-C3_7oN2L.js rename to assets/lerc-E1VxbijF.js index 560293e2b..6233d45df 100644 --- a/assets/lerc-C3_7oN2L.js +++ b/assets/lerc-E1VxbijF.js @@ -1 +1 @@ -import{i as sA}from"./pako.esm-CPws4d4z.js";import{g as DA}from"./index-DjTz9BGS.js";import{B as nA}from"./basedecoder-DvumDe3Y.js";import{L as fA,a as gA}from"./preview-DnOqGKaI.js";import"./chunk-L4EGOTBX-BALMY2cf.js";import"./entry-preview-BErytJoa.js";import"./lit-element-Dh4_iwrW.js";import"./index-DrFu-skq.js";import"./index-Dw69Wm5F.js";import"./index-D2M---gb.js";import"./iframe-DpQGfO6h.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./directive-DUGPADuw.js";import"./main-CqylYIBO.js";import"./core-C4kcdPvA.js";var BA={exports:{}},iA;function tA(){return iA||(iA=1,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),aA=D%C||C,rA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,oA=Q.fileVersion,EA=oA>=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&EA,w!==(F*C>>3&EA)||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,QA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(eA,"base64"),QA).then(this._init),_)}_init(J){x=J.instance,QA.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);CA.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=CA.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/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIA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QALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEA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tBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBB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AhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCA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AsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0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AAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",FA=new GA;class vA extends nA{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[fA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=sA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=FA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return hA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{vA as default,FA as zstd}; +import{i as sA}from"./pako.esm-CPws4d4z.js";import{g as DA}from"./index-DjTz9BGS.js";import{B as nA}from"./basedecoder-DvumDe3Y.js";import{L as fA,a as gA}from"./preview-eh-ppHRn.js";import"./chunk-L4EGOTBX-BALMY2cf.js";import"./entry-preview-BErytJoa.js";import"./lit-element-Dh4_iwrW.js";import"./index-DrFu-skq.js";import"./index-Dw69Wm5F.js";import"./index-BbxnuoyN.js";import"./iframe-BzPUOMAI.js";import"../sb-preview/runtime.js";import"./index-DPS9-N-h.js";import"./directive-DUGPADuw.js";import"./main-CqylYIBO.js";import"./core-C4kcdPvA.js";var BA={exports:{}},iA;function tA(){return iA||(iA=1,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),aA=D%C||C,rA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,oA=Q.fileVersion,EA=oA>=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&EA,w!==(F*C>>3&EA)||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,QA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(eA,"base64"),QA).then(this._init),_)}_init(J){x=J.instance,QA.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);CA.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=CA.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/AX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AAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQ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hJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkE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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[fA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=sA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=FA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return hA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{vA as default,FA as zstd}; diff --git a/assets/preview-Do5bCMPP.js b/assets/preview-Cm4FHIOR.js similarity index 65% rename from assets/preview-Do5bCMPP.js rename to assets/preview-Cm4FHIOR.js index ec4301ce0..78d7ad8f7 100644 --- a/assets/preview-Do5bCMPP.js +++ b/assets/preview-Cm4FHIOR.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-BqSfuS7W.js","./iframe-DpQGfO6h.js","./index-DjTz9BGS.js","./index-D2M---gb.js","./index-DPS9-N-h.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-DpQGfO6h.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.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-CFRXHY34-BqSfuS7W.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=>i[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-CFRXHY34-qobIGmJH.js","./iframe-BzPUOMAI.js","./index-DjTz9BGS.js","./index-BbxnuoyN.js","./index-DPS9-N-h.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-BzPUOMAI.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.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-CFRXHY34-qobIGmJH.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=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; diff --git a/assets/preview-DnOqGKaI.js b/assets/preview-eh-ppHRn.js similarity index 99% rename from assets/preview-DnOqGKaI.js rename to assets/preview-eh-ppHRn.js index 198b2bb75..949884276 100644 --- a/assets/preview-DnOqGKaI.js +++ b/assets/preview-eh-ppHRn.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-C3_7oN2L.js","./index-DjTz9BGS.js","./chunk-L4EGOTBX-BALMY2cf.js","./entry-preview-BErytJoa.js","./lit-element-Dh4_iwrW.js","./index-DrFu-skq.js","./index-Dw69Wm5F.js","./index-D2M---gb.js","./iframe-DpQGfO6h.js","./index-DPS9-N-h.js","./directive-DUGPADuw.js","./main-CqylYIBO.js","./core-C4kcdPvA.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); -var jBe=Object.defineProperty;var Sve=e=>{throw TypeError(e)};var UBe=(e,t,n)=>t in e?jBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tn=(e,t,n)=>UBe(e,typeof t!="symbol"?t+"":t,n),XR=(e,t,n)=>t.has(e)||Sve("Cannot "+n);var Gt=(e,t,n)=>(XR(e,t,"read from private field"),n?n.call(e):t.get(e)),yn=(e,t,n)=>t.has(e)?Sve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),as=(e,t,n,r)=>(XR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),mn=(e,t,n)=>(XR(e,t,"access private method"),n);import{s as qBe}from"./chunk-L4EGOTBX-BALMY2cf.js";import{m as rI,p as HBe,v as Qm,r as ew,M as ZR,f as GBe}from"./entry-preview-BErytJoa.js";import{g as sa,j as bu,c as Yi,b as xCe}from"./index-DjTz9BGS.js";import{useMDXComponents as wCe}from"./index-Dw69Wm5F.js";import{ap as VBe,aq as WBe,ar as YBe,as as XBe,at as ZBe,au as KBe,av as JBe}from"./index-D2M---gb.js";import{r as Zr,x as Qe,E as Xr,T as lv,i as iI,b as Dy}from"./lit-element-Dh4_iwrW.js";import{c as z_,n as QBe,d as eze,I as i3,R as _Ce,r as tze,g as nze,h as rze,j as ize,C as sze,k as oze,m as Ave,u as Cve,v as sI,w as vg,x as B4,y as Cu,z as z4,A as oI,B as aze,D as lze,E as uze,F as cze,i as fze,G as dze,H as hze,J as pze,K as mze,L as gze,M as yze,N as aI,O as vze,p as lI,P as kve,Q as ECe,S as uI,T as j_,U as tD,V as Zg,W as bze,X as xze,Y as wze,Z as SCe,_ as nD,$ as rD,a0 as _ze,a1 as Eze,a2 as Sze,a3 as Aze,a4 as Tve,a5 as Cze,a6 as kze,a7 as Tze,f as Dze,a8 as Lze,l as Rze,a9 as Fze,aa as Oze,ab as Mze,ac as $ze,s as ACe,ad as Ize,ae as Pze,af as Nze,ag as Bze,q as zze,t as jze,o as CCe,ah as Uze,ai as qze,aj as s3,ak as Hze,al as Gze,e as J2,a as iD,b as np}from"./directive-DUGPADuw.js";import{m as U_,g as Vze,C as Wze,a as oi,b as o3,s as Yze,S as q_,V as cI,d as Dve,c as p_,T as Lve,F as j4,R as bg,e as Q2,f as Xze,w as Zze,h as Kze,i as Kg,j as H_,k as fI,l as Dp,n as mC,o as au,p as Gv,P as mc,q as eu,r as a3,t as As,u as Vv,v as uv,L as Ff,I as kCe,x as xg,J as Jze,y as Qze,z as Oo,A as eje,B as U4,D as tje,M as N1,E as sD,G as eE,H as tE,X as oD,K as kn,N as Rn,O as Rt,Q as dI,U as l3,W as nje,Y as rje,Z as Lp,_ as u3,$ as TCe,a0 as er,a1 as Ge,a2 as yr,a3 as Oi,a4 as tu,a5 as B1,a6 as mp,a7 as G_,a8 as DCe,a9 as Xt,aa as c3,ab as f3,ac as Ue,ad as Dt,ae as aD,af as Ds,ag as Ea,ah as d3,ai as LCe,aj as eg,ak as ije,al as hI,am as RCe,an as Td,ao as kc,ap as mi,aq as sje,ar as oje,as as Bp,at as Rve,au as gc,av as pf,aw as aje,ax as pI,ay as lD,az as lje,aA as FCe,aB as uje,aC as cje,aD as Ei,aE as OCe,aF as Ko,aG as mI,aH as h3,aI as gI,aJ as fje,aK as dje,aL as q4,aM as KR,aN as hje,aO as uD,aP as V_,aQ as gp,aR as yp,aS as zp,aT as cD,aU as yI,aV as eh,aW as vI,aX as MCe,aY as pje,aZ as kl,a_ as Ts,a$ as bI,b0 as wc,b1 as xI,b2 as $Ce,b3 as Fve,b4 as Jg,b5 as Ove,b6 as Jy,b7 as mje,b8 as H4,b9 as ICe,ba as gje,bb as Mve,bc as yje,bd as wI,be as vje,bf as PCe,bg as W_,bh as bje,bi as xje,bj as Si,bk as NCe,bl as Y_,bm as Tl,bn as jp,bo as z1,bp as wje,bq as cr,br as _je,bs as Eje,bt as BCe,bu as Up,bv as Sje,bw as Aje,bx as Cje,by as kje,bz as _I,bA as Tje,bB as Dje,bC as Lje,bD as zCe,bE as Rje,bF as p3,bG as EI,bH as m3,bI as jCe,bJ as hh,bK as nE,bL as rE,bM as SI,bN as AI,bO as X_,bP as Fje,bQ as Oje,bR as Mje,bS as fD,bT as $je,bU as Ije,bV as Pje,bW as JR,bX as Z_,bY as dD,bZ as Nje,b_ as Bje,b$ as $ve,c0 as Ive,c1 as zje,c2 as Pve,c3 as jje,c4 as Uje,c5 as G4,c6 as UCe,c7 as qje,c8 as j1,c9 as qCe,ca as Nve,cb as g3,cc as Bve,cd as k0,ce as CI,cf as Hje,cg as HCe,ch as hD,ci as Gje,cj as kI,ck as GCe,cl as Vje,cm as Wje,cn as Yje,co as Xje,cp as VCe,cq as Zje,cr as Kje,cs as Jje,ct as Qje,cu as eUe,cv as WCe,cw as tUe,cx as YCe,cy as nUe,cz as K_,cA as V4,cB as rUe,cC as iUe,cD as XCe,cE as ZCe,cF as sUe,cG as oUe}from"./main-CqylYIBO.js";import{A as KCe,J as Ow,S as aUe}from"./core-C4kcdPvA.js";import{_ as om}from"./iframe-DpQGfO6h.js";const zve={duration:750},jve={type:"FeatureCollection",features:[]};function lUe(e,t){let n=0,r,i=0,s=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,s+=r*(o-i));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,s+=r*(a-i))}if(n>1)return s/(n-1)}function uUe(e,t){const n=lUe(e,t);return n&&Math.sqrt(n)}class Ja{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,s=i-(o-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=o+i,i==r-o&&(o=r))}return o}}function cUe(e,t){return Array.from(t,n=>e[n])}function fUe(e=z_){if(e===z_)return JCe;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function JCe(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}function Pg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function W4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function QCe(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?JCe:fUe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*c/l+d)),p=Math.min(r,Math.floor(t+(l-u)*c/l+d));QCe(e,t,h,p,i)}const s=e[t];let o=n,a=r;for(tw(e,n,t),i(e[r],s)>0&&tw(e,n,r);o0;)--a}i(e[n],s)===0?tw(e,n,a):(++a,tw(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function tw(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Y4(e,t,n){if(e=Float64Array.from(QBe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return W4(e);if(t>=1)return Pg(e);var r,i=(r-1)*t,s=Math.floor(i),o=Pg(QCe(e,s).subarray(0,s+1)),a=W4(e.subarray(s+1));return o+(a-o)*(i-s)}}function e3e(e,t,n=eze){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),o=+n(e[s],s,e),a=+n(e[s+1],s+1,e);return o+(a-o)*(i-s)}}function dUe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(s=+s)>=s&&(++n,r+=s)}if(n)return r/n}function t3e(e,t){return Y4(e,.5,t)}function*hUe(e){for(const t of e)yield*t}function n3e(e){return Array.from(hUe(e))}function Kl(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r180?f+=360:f-u>180&&(u+=360),d.push({i:c.push(i(c)+"rotate(",null,r)-2,x:vg(u,f)})):f&&c.push(i(c)+"rotate("+f+r)}function a(u,f,c,d){u!==f?d.push({i:c.push(i(c)+"skewX(",null,r)-2,x:vg(u,f)}):f&&c.push(i(c)+"skewX("+f+r)}function l(u,f,c,d,h,p){if(u!==c||f!==d){var g=h.push(i(h)+"scale(",null,",",null,")");p.push({i:g-4,x:vg(u,c)},{i:g-2,x:vg(f,d)})}else(c!==1||d!==1)&&h.push(i(h)+"scale("+c+","+d+")")}return function(u,f){var c=[],d=[];return u=e(u),f=e(f),s(u.translateX,u.translateY,f.translateX,f.translateY,c,d),o(u.rotate,f.rotate,c,d),a(u.skewX,f.skewX,c,d),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,d),u=f=null,function(h){for(var p=-1,g=d.length,v;++p0?n[a-1]:e[0],a(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(t(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),t(s,a),e(s);while(uvo(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!s(o););else for(;--a>=0;)for(;t(o,1),!s(o););}),n&&(i.count=(s,o)=>(QR.setTime(+s),eF.setTime(+o),e(QR),e(eF),Math.floor(n(QR,eF))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Wv=vo(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Wv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vo(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Wv);Wv.range;const Id=1e3,ku=Id*60,Pd=ku*60,th=Pd*24,LI=th*7,Wve=th*30,tF=th*365,Nd=vo(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Id)},(e,t)=>(t-e)/Id,e=>e.getUTCSeconds());Nd.range;const mD=vo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Id)},(e,t)=>{e.setTime(+e+t*ku)},(e,t)=>(t-e)/ku,e=>e.getMinutes());mD.range;const gD=vo(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ku)},(e,t)=>(t-e)/ku,e=>e.getUTCMinutes());gD.range;const yD=vo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Id-e.getMinutes()*ku)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getHours());yD.range;const vD=vo(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getUTCHours());vD.range;const Gd=vo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ku)/th,e=>e.getDate()-1);Gd.range;const Rp=vo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/th,e=>e.getUTCDate()-1);Rp.range;const f3e=vo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/th,e=>Math.floor(e/th));f3e.range;function T0(e){return vo(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ku)/LI)}const U1=T0(0),y3=T0(1),$Ue=T0(2),IUe=T0(3),Yv=T0(4),PUe=T0(5),NUe=T0(6);U1.range;y3.range;$Ue.range;IUe.range;Yv.range;PUe.range;NUe.range;function D0(e){return vo(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/LI)}const q1=D0(0),v3=D0(1),BUe=D0(2),zUe=D0(3),Xv=D0(4),jUe=D0(5),UUe=D0(6);q1.range;v3.range;BUe.range;zUe.range;Xv.range;jUe.range;UUe.range;const Q_=vo(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Q_.range;const e2=vo(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());e2.range;const Of=vo(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Of.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vo(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Of.range;const Mf=vo(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vo(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mf.range;function d3e(e,t,n,r,i,s){const o=[[Nd,1,Id],[Nd,5,5*Id],[Nd,15,15*Id],[Nd,30,30*Id],[s,1,ku],[s,5,5*ku],[s,15,15*ku],[s,30,30*ku],[i,1,Pd],[i,3,3*Pd],[i,6,6*Pd],[i,12,12*Pd],[r,1,th],[r,2,2*th],[n,1,LI],[t,1,Wve],[t,3,3*Wve],[e,1,tF]];function a(u,f,c){const d=fv).right(o,d);if(h===o.length)return e.every(Zg(u/tF,f/tF,c));if(h===0)return Wv.every(Math.max(Zg(u,f,c),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in Pe||(Pe.w=1),"Z"in Pe?(ht=rF(nw(Pe.y,0,1)),nn=ht.getUTCDay(),ht=nn>4||nn===0?v3.ceil(ht):v3(ht),ht=Rp.offset(ht,(Pe.V-1)*7),Pe.y=ht.getUTCFullYear(),Pe.m=ht.getUTCMonth(),Pe.d=ht.getUTCDate()+(Pe.w+6)%7):(ht=nF(nw(Pe.y,0,1)),nn=ht.getDay(),ht=nn>4||nn===0?y3.ceil(ht):y3(ht),ht=Gd.offset(ht,(Pe.V-1)*7),Pe.y=ht.getFullYear(),Pe.m=ht.getMonth(),Pe.d=ht.getDate()+(Pe.w+6)%7)}else("W"in Pe||"U"in Pe)&&("w"in Pe||(Pe.w="u"in Pe?Pe.u%7:"W"in Pe?1:0),nn="Z"in Pe?rF(nw(Pe.y,0,1)).getUTCDay():nF(nw(Pe.y,0,1)).getDay(),Pe.m=0,Pe.d="W"in Pe?(Pe.w+6)%7+Pe.W*7-(nn+5)%7:Pe.w+Pe.U*7-(nn+6)%7);return"Z"in Pe?(Pe.H+=Pe.Z/100|0,Pe.M+=Pe.Z%100,rF(Pe)):nF(Pe)}}function k(we,Ie,qe,Pe){for(var At=0,ht=Ie.length,nn=qe.length,Vt,Mn;At=nn)return-1;if(Vt=Ie.charCodeAt(At++),Vt===37){if(Vt=Ie.charAt(At++),Mn=A[Vt in Yve?Ie.charAt(At++):Vt],!Mn||(Pe=Mn(we,qe,Pe))<0)return-1}else if(Vt!=qe.charCodeAt(Pe++))return-1}return Pe}function R(we,Ie,qe){var Pe=u.exec(Ie.slice(qe));return Pe?(we.p=f.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function O(we,Ie,qe){var Pe=h.exec(Ie.slice(qe));return Pe?(we.w=p.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function B(we,Ie,qe){var Pe=c.exec(Ie.slice(qe));return Pe?(we.w=d.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function K(we,Ie,qe){var Pe=y.exec(Ie.slice(qe));return Pe?(we.m=b.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function L(we,Ie,qe){var Pe=g.exec(Ie.slice(qe));return Pe?(we.m=v.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function $(we,Ie,qe){return k(we,t,Ie,qe)}function I(we,Ie,qe){return k(we,n,Ie,qe)}function U(we,Ie,qe){return k(we,r,Ie,qe)}function q(we){return o[we.getDay()]}function Y(we){return s[we.getDay()]}function X(we){return l[we.getMonth()]}function te(we){return a[we.getMonth()]}function le(we){return i[+(we.getHours()>=12)]}function ee(we){return 1+~~(we.getMonth()/3)}function z(we){return o[we.getUTCDay()]}function he(we){return s[we.getUTCDay()]}function de(we){return l[we.getUTCMonth()]}function ze(we){return a[we.getUTCMonth()]}function He(we){return i[+(we.getUTCHours()>=12)]}function je(we){return 1+~~(we.getUTCMonth()/3)}return{format:function(we){var Ie=D(we+="",w);return Ie.toString=function(){return we},Ie},parse:function(we){var Ie=T(we+="",!1);return Ie.toString=function(){return we},Ie},utcFormat:function(we){var Ie=D(we+="",E);return Ie.toString=function(){return we},Ie},utcParse:function(we){var Ie=T(we+="",!0);return Ie.toString=function(){return we},Ie}}}var Yve={"-":"",_:" ",0:"0"},$o=/^\s*\d+/,WUe=/^%/,YUe=/[\\^$*+?|[\]().{}]/g;function ai(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s[t.toLowerCase(),n]))}function ZUe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function KUe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function JUe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function QUe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function eqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xve(e,t,n){var r=$o.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tqe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nqe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function rqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Kve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function iqe(e,t,n){var r=$o.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function oqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function aqe(e,t,n){var r=$o.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lqe(e,t,n){var r=$o.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uqe(e,t,n){var r=WUe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function cqe(e,t,n){var r=$o.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fqe(e,t,n){var r=$o.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Qve(e,t){return ai(e.getDate(),t,2)}function dqe(e,t){return ai(e.getHours(),t,2)}function hqe(e,t){return ai(e.getHours()%12||12,t,2)}function pqe(e,t){return ai(1+Gd.count(Of(e),e),t,3)}function p3e(e,t){return ai(e.getMilliseconds(),t,3)}function mqe(e,t){return p3e(e,t)+"000"}function gqe(e,t){return ai(e.getMonth()+1,t,2)}function yqe(e,t){return ai(e.getMinutes(),t,2)}function vqe(e,t){return ai(e.getSeconds(),t,2)}function bqe(e){var t=e.getDay();return t===0?7:t}function xqe(e,t){return ai(U1.count(Of(e)-1,e),t,2)}function m3e(e){var t=e.getDay();return t>=4||t===0?Yv(e):Yv.ceil(e)}function wqe(e,t){return e=m3e(e),ai(Yv.count(Of(e),e)+(Of(e).getDay()===4),t,2)}function _qe(e){return e.getDay()}function Eqe(e,t){return ai(y3.count(Of(e)-1,e),t,2)}function Sqe(e,t){return ai(e.getFullYear()%100,t,2)}function Aqe(e,t){return e=m3e(e),ai(e.getFullYear()%100,t,2)}function Cqe(e,t){return ai(e.getFullYear()%1e4,t,4)}function kqe(e,t){var n=e.getDay();return e=n>=4||n===0?Yv(e):Yv.ceil(e),ai(e.getFullYear()%1e4,t,4)}function Tqe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ai(t/60|0,"0",2)+ai(t%60,"0",2)}function e1e(e,t){return ai(e.getUTCDate(),t,2)}function Dqe(e,t){return ai(e.getUTCHours(),t,2)}function Lqe(e,t){return ai(e.getUTCHours()%12||12,t,2)}function Rqe(e,t){return ai(1+Rp.count(Mf(e),e),t,3)}function g3e(e,t){return ai(e.getUTCMilliseconds(),t,3)}function Fqe(e,t){return g3e(e,t)+"000"}function Oqe(e,t){return ai(e.getUTCMonth()+1,t,2)}function Mqe(e,t){return ai(e.getUTCMinutes(),t,2)}function $qe(e,t){return ai(e.getUTCSeconds(),t,2)}function Iqe(e){var t=e.getUTCDay();return t===0?7:t}function Pqe(e,t){return ai(q1.count(Mf(e)-1,e),t,2)}function y3e(e){var t=e.getUTCDay();return t>=4||t===0?Xv(e):Xv.ceil(e)}function Nqe(e,t){return e=y3e(e),ai(Xv.count(Mf(e),e)+(Mf(e).getUTCDay()===4),t,2)}function Bqe(e){return e.getUTCDay()}function zqe(e,t){return ai(v3.count(Mf(e)-1,e),t,2)}function jqe(e,t){return ai(e.getUTCFullYear()%100,t,2)}function Uqe(e,t){return e=y3e(e),ai(e.getUTCFullYear()%100,t,2)}function qqe(e,t){return ai(e.getUTCFullYear()%1e4,t,4)}function Hqe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xv(e):Xv.ceil(e),ai(e.getUTCFullYear()%1e4,t,4)}function Gqe(){return"+0000"}function t1e(){return"%"}function n1e(e){return+e}function r1e(e){return Math.floor(+e/1e3)}var Ly,RI,v3e,FI,b3e;Vqe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vqe(e){return Ly=h3e(e),RI=Ly.format,v3e=Ly.parse,FI=Ly.utcFormat,b3e=Ly.utcParse,Ly}function Wqe(e){return new Date(e)}function Yqe(e){return e instanceof Date?+e:+new Date(+e)}function OI(e,t,n,r,i,s,o,a,l,u){var f=bze(),c=f.invert,d=f.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),w=u("%B"),E=u("%Y");function A(D){return(l(D)0&&f.length>0;)g=f.pop(),i=l.pop(),o=u.pop(),b=g.toString(),b in c||(r.push(o[0],o[1]),c[b]=!0),v=f.pop(),s=l.pop(),a=u.pop(),y=(g+v)/2,h=e(y),p=t(h),Yze(p[0],p[1],o[0],o[1],a[0],a[1]){const i=r.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(i),this.lonLabelStyleBase_},this.latLabelStyleBase_=new p_({text:t.latLabelStyle!==void 0?t.latLabelStyle.clone():new Lve({font:"12px Calibri,sans-serif",textAlign:"right",fill:new j4({color:"rgba(0,0,0,1)"}),stroke:new q_({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=r=>{const i=r.get("graticule_label");return this.latLabelStyleBase_.getText().setText(i),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(bg.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=t.intervals!==void 0?t.intervals:nHe,this.setSource(new Q2({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new Xze,overlaps:!1,useSpatialIndex:!1,wrapX:t.wrapX})),this.featurePool_=[],this.lineStyle_=new p_({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(t,n){let r=t.slice();return this.projection_&&this.getSource().getWrapX()&&Zze(r,this.projection_),this.loadedExtent_&&(Kze(this.loadedExtent_,r,n)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]}loaderFunction(t,n,r){this.loadedExtent_=t;const i=this.getSource(),s=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=Kg(s,t);if(this.renderedExtent_&&H_(this.renderedExtent_,o)&&this.renderedResolution_===n||(this.renderedExtent_=o,this.renderedResolution_=n,fI(o)))return;const a=Dp(o),l=n*n/4;(!this.projection_||!mC(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(o,a,n,l);let f=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(f+=this.meridians_.length),this.parallelsLabels_&&(f+=this.parallels_.length);let c;for(;f>this.featurePool_.length;)c=new au,this.featurePool_.push(c);const d=i.getFeaturesCollection();d.clear();let h=0,p,g;for(p=0,g=this.meridians_.length;pMath.PI/2;f=f!==p}const h=Jqe(t);for(let p=l;p<=u;++p){let g=this.meridians_.length+this.parallels_.length,v,y,b,w;if(this.meridiansLabels_)for(y=0,b=this.meridiansLabels_.length;y=l?(t[0]=a[0],t[2]=a[2]):o=!0);const u=[As(n[0],this.minX_,this.maxX_),As(n[1],this.minY_,this.maxY_)],f=this.toLonLatTransform_(u);isNaN(f[1])&&(f[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=As(f[0],this.minLon_,this.maxLon_),d=As(f[1],this.minLat_,this.maxLat_);const h=this.maxLines_;let p,g,v,y,b=t;o||(b=[As(t[0],this.minX_,this.maxX_),As(t[1],this.minY_,this.maxY_),As(t[2],this.minX_,this.maxX_),As(t[3],this.minY_,this.maxY_)]);const w=Vv(b,this.toLonLatTransform_,void 0,8);let E=w[3],A=w[2],D=w[1],T=w[0];if(o||(uv(b,this.bottomLeft_)&&(T=this.minLon_,D=this.minLat_),uv(b,this.bottomRight_)&&(A=this.maxLon_,D=this.minLat_),uv(b,this.topLeft_)&&(T=this.minLon_,E=this.maxLat_),uv(b,this.topRight_)&&(A=this.maxLon_,E=this.maxLat_),E=As(E,d,this.maxLat_),A=As(A,c,this.maxLon_),D=As(D,this.minLat_,d),T=As(T,this.minLon_,c)),c=Math.floor(c/s)*s,y=As(c,this.minLon_,this.maxLon_),g=this.addMeridian_(y,D,E,i,t,0),p=0,o)for(;(y-=s)>=T&&p++i[o]&&(s=o,o=1);const a=Math.max(n[1],i[s]),l=Math.min(n[3],i[o]),u=As(n[1]+Math.abs(n[1]-n[3])*this.lonLabelPosition_,a,l),c=[i[s-1]+(i[o-1]-i[s-1])*(u-i[s])/(i[o]-i[s]),u],d=this.meridiansLabels_[r].geom;return d.setCoordinates(c),d}getMeridians(){return this.meridians_}getParallel_(t,n,r,i,s){const o=eHe(t,n,r,this.projection_,i);let a=this.parallels_[s];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new Ff(o,"XY"),a}getParallelPoint_(t,n,r){const i=t.getFlatCoordinates();let s=0,o=i.length-2;i[s]>i[o]&&(s=o,o=0);const a=Math.max(n[0],i[s]),l=Math.min(n[2],i[o]),u=As(n[0]+Math.abs(n[0]-n[2])*this.latLabelPosition_,a,l),f=i[s+1]+(i[o+1]-i[s+1])*(u-i[s])/(i[o]-i[s]),c=[u,f],d=this.parallelsLabels_[r].geom;return d.setCoordinates(c),d}getParallels(){return this.parallels_}updateProjectionInfo_(t){const n=oi("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];const i=o3(t,n);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t}};class $I extends kCe{constructor(t,n,r,i,s){const o=s!==void 0?xg.IDLE:xg.LOADED;super(t,n,r,o),this.loader_=s!==void 0?s:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=xg.ERROR):this.state=xg.LOADED,this.changed()}load(){this.state==xg.IDLE&&(this.state=xg.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const iHe={Point:lHe,LineString:uHe,Polygon:hHe,MultiPoint:fHe,MultiLineString:cHe,MultiPolygon:dHe},sHe={Point:pHe,LineString:mHe,Polygon:gHe,MultiPoint:vHe,MultiLineString:yHe,MultiPolygon:bHe};class oHe extends Jze{constructor(t){t=t||{},super(),this.geometryName_=t.geometryName}readFeatureFromObject(t,n,r){const i=t,s=i1e(i.geometry,n),o=new au;if(this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(s),i.attributes){o.setProperties(i.attributes,!0);const a=i.attributes[r];a!==void 0&&o.setId(a)}return o}readFeaturesFromObject(t,n){if(n=n||{},t.features){const r=t,i=[],s=r.features;for(let o=0,a=s.length;o=0;s--){const u=r[s][0];if(a3(new U4(u).getExtent(),new U4(a).getExtent())){r[s].push(a),l=!0;break}}l||r.push([a.reverse()])}return r}function lHe(e){let t;return e.m!==void 0&&e.z!==void 0?t=new mc([e.x,e.y,e.z,e.m],"XYZM"):e.z!==void 0?t=new mc([e.x,e.y,e.z],"XYZ"):e.m!==void 0?t=new mc([e.x,e.y,e.m],"XYM"):t=new mc([e.x,e.y]),t}function uHe(e){const t=H1(e);return new Ff(e.paths[0],t)}function cHe(e){const t=H1(e);return new N1(e.paths,t)}function H1(e){let t="XY";return e.hasZ===!0&&e.hasM===!0?t="XYZM":e.hasZ===!0?t="XYZ":e.hasM===!0&&(t="XYM"),t}function fHe(e){const t=H1(e);return new sD(e.points,t)}function dHe(e){const t=H1(e);return new eE(e.rings,t)}function hHe(e){const t=H1(e);return new tE(e.rings,t)}function pHe(e,t){const n=e.getCoordinates();let r;const i=e.getLayout();if(i==="XYZ")r={x:n[0],y:n[1],z:n[2]};else if(i==="XYM")r={x:n[0],y:n[1],m:n[2]};else if(i==="XYZM")r={x:n[0],y:n[1],z:n[2],m:n[3]};else if(i==="XY")r={x:n[0],y:n[1]};else throw new Error("Invalid geometry layout");return r}function iE(e){const t=e.getLayout();return{hasZ:t==="XYZ"||t==="XYZM",hasM:t==="XYM"||t==="XYZM"}}function mHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:[e.getCoordinates()]}}function gHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,rings:e.getCoordinates(!1)}}function yHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:e.getCoordinates()}}function vHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,points:e.getCoordinates()}}function bHe(e,t){const n=iE(e),r=e.getCoordinates(!1),i=[];for(let s=0;s=0;o--)i.push(r[s][o]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}function s1e(e,t){const n=sHe[e.getType()];return n(Oo(e,!0,t),t)}const Vd="http://www.opengis.net/gml",xHe=/^\s*$/;class un extends oD{constructor(t){super(),t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:kn(this.readFeaturesInternal),featureMembers:Rn(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(t,n){const r=t.localName;let i=null;if(r=="FeatureCollection")i=Rt([],this.FEATURE_COLLECTION_PARSERS,t,n,this);else if(r=="featureMembers"||r=="featureMember"||r=="member"){const s=n[0];let o=s.featureType,a=s.featureNS;const l="p",u="p0";if(!o&&t.childNodes){o=[],a={};for(let d=0,h=t.childNodes.length;d0&&!(u instanceof nje)){u={_content_:u};for(let d=0;d1,r=n&&e.imageInfo.profile[1].supports?e.imageInfo.profile[1].supports:[],i=n&&e.imageInfo.profile[1].formats?e.imageInfo.profile[1].formats:[],s=n&&e.imageInfo.profile[1].qualities?e.imageInfo.profile[1].qualities:[];return{url:e.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:e.imageInfo.sizes===void 0?void 0:e.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:e.imageInfo.tiles===void 0?void 0:[e.imageInfo.tiles.map(function(o){return o.width})[0],e.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:e.imageInfo.tiles===void 0?void 0:e.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:[...t.supports,...r],formats:[...t.formats,...i],qualities:[...t.qualities,...s]}}function xGe(e){const t=e.getComplianceLevelSupportedFeatures(),n=e.imageInfo.extraFormats===void 0?t.formats:[...t.formats,...e.imageInfo.extraFormats],r=e.imageInfo.preferredFormats!==void 0&&Array.isArray(e.imageInfo.preferredFormats)&&e.imageInfo.preferredFormats.length>0?e.imageInfo.preferredFormats.filter(function(i){return["jpg","png","gif"].includes(i)}).reduce(function(i,s){return i===void 0&&n.includes(s)?s:i},void 0):void 0;return{url:e.imageInfo.id,sizes:e.imageInfo.sizes===void 0?void 0:e.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:e.imageInfo.tiles===void 0?void 0:[e.imageInfo.tiles.map(function(i){return i.width})[0],e.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:e.imageInfo.tiles===void 0?void 0:e.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:e.imageInfo.extraFeatures===void 0?t.supports:[...t.supports,...e.imageInfo.extraFeatures],formats:n,qualities:e.imageInfo.extraQualities===void 0?t.qualities:[...t.qualities,...e.imageInfo.extraQualities],preferredFormat:r}}const wD={};wD[Zs.VERSION1]=vGe;wD[Zs.VERSION2]=bGe;wD[Zs.VERSION3]=xGe;class wGe{constructor(t){this.setImageInfo(t)}setImageInfo(t){typeof t=="string"?this.imageInfo=JSON.parse(t):this.imageInfo=t}getImageApiVersion(){if(this.imageInfo===void 0)return;let t=this.imageInfo["@context"]||"ol-no-context";typeof t=="string"&&(t=[t]);for(let n=0;n0&&typeof this.imageInfo.profile[0]=="string"&&o1e.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}}getComplianceLevelFromProfile(t){const n=this.getComplianceLevelEntryFromProfile(t);if(n===void 0)return;const r=n.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}getComplianceLevelSupportedFeatures(){if(this.imageInfo===void 0)return;const t=this.getImageApiVersion(),n=this.getComplianceLevelFromProfile(t);return n===void 0?Qg.none.none:Qg[t][n]}getTileSourceOptions(t){const n=t||{},r=this.getImageApiVersion();if(r===void 0)return;const i=r===void 0?void 0:wD[r](this);if(i!==void 0)return{url:i.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:n.format!==void 0&&i.formats.includes(n.format)?n.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:n.quality&&i.qualities.includes(n.quality)?n.quality:i.qualities.includes("native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(s,o){return o-s}):void 0,tileSize:i.tileSize}}}class UI{read(t){if(!t)return null;if(typeof t=="string"){const n=c3(t);return this.readFromDocument(n)}return f3(t)?this.readFromDocument(t):this.readFromNode(t)}readFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFromNode(n);return null}readFromNode(t){Td()}}const _Ge="http://www.w3.org/1999/xlink";function G1(e){return e.getAttributeNS(_Ge,"href")}const Bl=[null,"http://www.opengis.net/ows/1.1"],EGe=Xt(Bl,{ServiceIdentification:Ue(WGe),ServiceProvider:Ue(XGe),OperationsMetadata:Ue(GGe)});class k3e extends UI{constructor(){super()}readFromNode(t){const n=Rt({},EGe,t,[]);return n||null}}const SGe=Xt(Bl,{DeliveryPoint:Ue(Dt),City:Ue(Dt),AdministrativeArea:Ue(Dt),PostalCode:Ue(Dt),Country:Ue(Dt),ElectronicMailAddress:Ue(Dt)}),AGe=Xt(Bl,{Value:mi(ZGe)}),CGe=Xt(Bl,{AllowedValues:Ue(NGe)}),kGe=Xt(Bl,{Phone:Ue(VGe),Address:Ue(PGe)}),TGe=Xt(Bl,{HTTP:Ue(qGe)}),DGe=Xt(Bl,{Get:mi(UGe),Post:void 0}),LGe=Xt(Bl,{DCP:Ue(jGe)}),RGe=Xt(Bl,{Operation:HGe}),FGe=Xt(Bl,{Voice:Ue(Dt),Facsimile:Ue(Dt)}),OGe=Xt(Bl,{Constraint:mi(BGe)}),MGe=Xt(Bl,{IndividualName:Ue(Dt),PositionName:Ue(Dt),ContactInfo:Ue(zGe)}),$Ge=Xt(Bl,{Abstract:Ue(Dt),AccessConstraints:Ue(Dt),Fees:Ue(Dt),Title:Ue(Dt),ServiceTypeVersion:Ue(Dt),ServiceType:Ue(Dt)}),IGe=Xt(Bl,{ProviderName:Ue(Dt),ProviderSite:Ue(G1),ServiceContact:Ue(YGe)});function PGe(e,t){return Rt({},SGe,e,t)}function NGe(e,t){return Rt({},AGe,e,t)}function BGe(e,t){const n=e.getAttribute("name");if(n)return Rt({name:n},CGe,e,t)}function zGe(e,t){return Rt({},kGe,e,t)}function jGe(e,t){return Rt({},TGe,e,t)}function UGe(e,t){const n=G1(e);if(n)return Rt({href:n},OGe,e,t)}function qGe(e,t){return Rt({},DGe,e,t)}function HGe(e,t){const n=e.getAttribute("name"),r=Rt({},LGe,e,t);if(!r)return;const i=t[t.length-1];i[n]=r}function GGe(e,t){return Rt({},RGe,e,t)}function VGe(e,t){return Rt({},FGe,e,t)}function WGe(e,t){return Rt({},$Ge,e,t)}function YGe(e,t){return Rt({},MGe,e,t)}function XGe(e,t){return Rt({},IGe,e,t)}function ZGe(e,t){return Dt(e)}function a1e(e,t,n,r,i,s){i!==void 0?(i=i,s=s!==void 0?s:0):(i=[],s=0);let o=t;for(;o>1):i>>1}return t}function iVe(e){let t="";for(let n=0,r=e.length;n=32;)t=(32|e&31)+63,n+=String.fromCharCode(t),e>>=5;return t=e+63,n+=String.fromCharCode(t),n}class Yr extends bt{constructor(t){t=t||{},super(t),this.schemaLocation=t.schemaLocation?t.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}writeGeometryElement(t,n,r){const i=r[r.length-1];r[r.length-1]=Object.assign({multiCurve:!0,multiSurface:!0},i),super.writeGeometryElement(t,n,r)}}Yr.prototype.namespace="http://www.opengis.net/gml/3.2";Yr.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:Rn(bt.prototype.readFlatPos),posList:Rn(bt.prototype.readFlatPosList),coordinates:Rn(hr.prototype.readFlatCoordinates)}};Yr.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:bt.prototype.interiorParser,exterior:bt.prototype.exteriorParser}};Yr.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Rn(un.prototype.readPoint),MultiPoint:Rn(un.prototype.readMultiPoint),LineString:Rn(un.prototype.readLineString),MultiLineString:Rn(un.prototype.readMultiLineString),LinearRing:Rn(un.prototype.readLinearRing),Polygon:Rn(un.prototype.readPolygon),MultiPolygon:Rn(un.prototype.readMultiPolygon),Surface:Rn(Yr.prototype.readSurface),MultiSurface:Rn(bt.prototype.readMultiSurface),Curve:Rn(Yr.prototype.readCurve),MultiCurve:Rn(bt.prototype.readMultiCurve),Envelope:Rn(Yr.prototype.readEnvelope)}};Yr.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:kn(bt.prototype.curveMemberParser),curveMembers:kn(bt.prototype.curveMemberParser)}};Yr.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:kn(bt.prototype.surfaceMemberParser),surfaceMembers:kn(bt.prototype.surfaceMemberParser)}};Yr.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:kn(un.prototype.readLineString),Curve:kn(bt.prototype.readCurve)}};Yr.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:kn(un.prototype.readPolygon),Surface:kn(bt.prototype.readSurface)}};Yr.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:Rn(bt.prototype.readPatch)}};Yr.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:Rn(bt.prototype.readSegment)}};Yr.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:kn(bt.prototype.readFlatPosList),upperCorner:kn(bt.prototype.readFlatPosList)}};Yr.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:Rn(bt.prototype.readPolygonPatch)}};Yr.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:DCe(bt.prototype.readLineStringSegment)}};Yr.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:kn(un.prototype.pointMemberParser),pointMembers:kn(un.prototype.pointMemberParser)}};Yr.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:kn(un.prototype.lineStringMemberParser),lineStringMembers:kn(un.prototype.lineStringMemberParser)}};Yr.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:kn(un.prototype.polygonMemberParser),polygonMembers:kn(un.prototype.polygonMemberParser)}};Yr.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:kn(un.prototype.readFlatCoordinatesFromNode)}};Yr.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:kn(un.prototype.readLineString)}};Yr.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:kn(un.prototype.readPolygon)}};Yr.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:Rn(un.prototype.readFlatLinearRing),Ring:Rn(Yr.prototype.readFlatCurveRing)}};Yr.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:Ge(bt.prototype.writeRing),interior:Ge(bt.prototype.writeRing)}};Yr.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Ge(yr),upperCorner:Ge(yr)}};Yr.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Ge(bt.prototype.writeSurfaceOrPolygonMember),polygonMember:Ge(bt.prototype.writeSurfaceOrPolygonMember)}};Yr.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:Ge(bt.prototype.writePointMember)}};Yr.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Ge(bt.prototype.writeLineStringOrCurveMember),curveMember:Ge(bt.prototype.writeLineStringOrCurveMember)}};Yr.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:Ge(bt.prototype.writeCurveOrLineString),MultiCurve:Ge(bt.prototype.writeMultiCurveOrLineString),Point:Ge(Yr.prototype.writePoint),MultiPoint:Ge(bt.prototype.writeMultiPoint),LineString:Ge(bt.prototype.writeCurveOrLineString),MultiLineString:Ge(bt.prototype.writeMultiCurveOrLineString),LinearRing:Ge(bt.prototype.writeLinearRing),Polygon:Ge(bt.prototype.writeSurfaceOrPolygon),MultiPolygon:Ge(bt.prototype.writeMultiSurfaceOrPolygon),Surface:Ge(bt.prototype.writeSurfaceOrPolygon),MultiSurface:Ge(bt.prototype.writeMultiSurfaceOrPolygon),Envelope:Ge(bt.prototype.writeEnvelope)}};let T3e=class{constructor(t){this.tagName_=t}getTagName(){return this.tagName_}};class aVe extends T3e{constructor(t,n){super(t),this.conditions=n,kc(this.conditions.length>=2,"At least 2 conditions are required")}}let lVe=class extends aVe{constructor(t){super("And",Array.prototype.slice.call(arguments))}};class uVe extends T3e{constructor(t,n,r){if(super("BBOX"),this.geometryName=t,this.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=r}}function cVe(e){const t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(lVe,t))}function fVe(e,t,n){return new uVe(e,t,n)}const l1e={"http://www.opengis.net/gml":{boundedBy:Ue(un.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:kn(un.prototype.readFeaturesInternal)}},dVe={"http://www.opengis.net/wfs":{totalInserted:Ue(Ds),totalUpdated:Ue(Ds),totalDeleted:Ue(Ds)},"http://www.opengis.net/wfs/2.0":{totalInserted:Ue(Ds),totalUpdated:Ue(Ds),totalDeleted:Ue(Ds)}},hVe={"http://www.opengis.net/wfs":{TransactionSummary:Ue(c1e,"transactionSummary"),InsertResults:Ue(d1e,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:Ue(c1e,"transactionSummary"),InsertResults:Ue(d1e,"insertIds")}},pVe={"http://www.opengis.net/wfs":{PropertyName:Ge(yr)},"http://www.opengis.net/wfs/2.0":{PropertyName:Ge(yr)}},D3e={"http://www.opengis.net/wfs":{Insert:Ge(h1e),Update:Ge(m1e),Delete:Ge(p1e),Property:Ge(g1e),Native:Ge(y1e)},"http://www.opengis.net/wfs/2.0":{Insert:Ge(h1e),Update:Ge(m1e),Delete:Ge(p1e),Property:Ge(g1e),Native:Ge(y1e)}},L3e="feature",qI="http://www.w3.org/2000/xmlns/",HI={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},K4={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},GI={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},u1e={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},VI={"2.0.0":Yr,"1.1.0":bt,"1.0.0":hr},mVe="1.1.0";class gVe extends oD{constructor(t){super(),t=t||{},this.version_=t.version?t.version:mVe,this.featureType_=t.featureType,this.featureNS_=t.featureNS,this.gmlFormat_=t.gmlFormat?t.gmlFormat:new VI[this.version_],this.schemaLocation_=t.schemaLocation?t.schemaLocation:u1e[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(t){this.featureType_=t}readFeaturesFromNode(t,n){const r={node:t};Object.assign(r,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(r,this.getReadOptions(t,n||{}));const i=[r];let s;this.version_==="2.0.0"?s=l1e:s=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=Rt([],s,t,i,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(t){if(t){if(typeof t=="string"){const n=c3(t);return this.readTransactionResponseFromDocument(n)}return f3(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}}readFeatureCollectionMetadata(t){if(t){if(typeof t=="string"){const n=c3(t);return this.readFeatureCollectionMetadataFromDocument(n)}return f3(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}}readFeatureCollectionMetadataFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)}readFeatureCollectionMetadataFromNode(t){const n={},r=mp(t.getAttribute("numberOfFeatures"));return n.numberOfFeatures=r,Rt(n,l1e,t,[],this.gmlFormat_)}readTransactionResponseFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)}readTransactionResponseFromNode(t){return Rt({},hVe,t,[])}writeGetFeature(t){const n=er(K4[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),t.handle&&n.setAttribute("handle",t.handle),t.outputFormat&&n.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&n.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&n.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&n.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&n.setAttribute("count",String(t.count)),t.viewParams!==void 0&&n.setAttribute("viewParams",t.viewParams),n.setAttributeNS(G_,"xsi:schemaLocation",this.schemaLocation_);const r={node:n};if(Object.assign(r,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),kc(Array.isArray(t.featureTypes),"`options.featureTypes` must be an Array"),typeof t.featureTypes[0]=="string"){let i=t.filter;t.bbox&&(kc(t.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),i=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,i)),Object.assign(r,{geometryName:t.geometryName,filter:i}),k1e(n,t.featureTypes,[r])}else t.featureTypes.forEach(i=>{const s=this.combineBboxAndFilter(i.geometryName,i.bbox,t.srsName,t.filter);Object.assign(r,{geometryName:i.geometryName,filter:s}),k1e(n,[i.name],[r])});return n}combineBboxAndFilter(t,n,r,i){const s=fVe(t,n,r);return i?cVe(i,s):s}writeTransaction(t,n,r,i){const s=[],o=i.version?i.version:this.version_,a=er(K4[o],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",o);let l;i&&(l=i.gmlOptions?i.gmlOptions:{},i.handle&&a.setAttribute("handle",i.handle)),a.setAttributeNS(G_,"xsi:schemaLocation",u1e[o]);const u=yVe(a,l,o,i);return t&&ZS("Insert",t,s,u),n&&ZS("Update",n,s,u),r&&ZS("Delete",r,s,u),i.nativeElements&&ZS("Native",i.nativeElements,s,u),a}readProjectionFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null}readProjectionFromNode(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(let n=t.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){const r=[{}];return this.gmlFormat_.readGeometryElement(n,r),oi(r.pop().srsName)}}return null}}function yVe(e,t,n,r){const i=r.featurePrefix?r.featurePrefix:L3e;let s;return n==="1.0.0"?s=2:n==="1.1.0"?s=3:n==="2.0.0"&&(s=3.2),Object.assign({node:e},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:s,hasZ:r.hasZ,srsName:r.srsName},t)}function ZS(e,t,n,r){Oi(r,D3e,tu(e),t,n)}function c1e(e,t){return Rt({},dVe,e,t)}const vVe={"http://www.opengis.net/ogc":{FeatureId:kn(function(e,t){return e.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:kn(function(e,t){return e.getAttribute("fid")})}};function f1e(e,t){Lp(vVe,e,t)}const bVe={"http://www.opengis.net/wfs":{Feature:f1e},"http://www.opengis.net/wfs/2.0":{Feature:f1e}};function d1e(e,t){return Rt([],bVe,e,t)}function h1e(e,t,n){const r=n[n.length-1],i=r.featureType,s=r.featureNS,o=r.gmlVersion,a=er(s,i);e.appendChild(a),o===2?hr.prototype.writeFeatureElement(a,t,n):o===3?bt.prototype.writeFeatureElement(a,t,n):Yr.prototype.writeFeatureElement(a,t,n)}function R3e(e,t,n){const i=n[n.length-1].version,s=HI[i],o=er(s,"Filter"),a=er(s,"FeatureId");o.appendChild(a),a.setAttribute("fid",t),e.appendChild(o)}function WI(e,t){e=e||L3e;const n=e+":";return t.startsWith(n)?t:n+t}function p1e(e,t,n){const r=n[n.length-1];kc(t.getId()!==void 0,"Features must have an id set");const i=r.featureType,s=r.featurePrefix,o=r.featureNS,a=WI(s,i);e.setAttribute("typeName",a),e.setAttributeNS(qI,"xmlns:"+s,o);const l=t.getId();l!==void 0&&R3e(e,l,n)}function m1e(e,t,n){const r=n[n.length-1];kc(t.getId()!==void 0,"Features must have an id set");const i=r.version,s=r.featureType,o=r.featurePrefix,a=r.featureNS,l=WI(o,s),u=t.getGeometryName();e.setAttribute("typeName",l),e.setAttributeNS(qI,"xmlns:"+o,a);const f=t.getId();if(f!==void 0){const c=t.getKeys(),d=[];for(let h=0,p=c.length;h0,i=this.readUint32(r),s=Math.floor((i&268435455)/1e3),o=!!(i&2147483648)||s===1||s===3,a=!!(i&1073741824)||s===2||s===3,l=!!(i&536870912),u=(i&268435455)%1e3,f=["XY",o?"Z":"",a?"M":""].join(""),c=l?this.readUint32(r):null;if(t!==void 0&&t!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==r)throw new Error("Inconsistent endian");if(this.layout_!==f)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=r,this.hasZ_=o,this.hasM_=a,this.layout_=f,this.srid_=c,this.initialized_=!0;return u}readWkbPayload(t){switch(t){case wi.POINT:return this.readPoint();case wi.LINE_STRING:return this.readLineString();case wi.POLYGON:case wi.TRIANGLE:return this.readPolygon();case wi.MULTI_POINT:return this.readMultiPoint();case wi.MULTI_LINE_STRING:return this.readMultiLineString();case wi.MULTI_POLYGON:case wi.POLYHEDRAL_SURFACE:case wi.TIN:return this.readMultiPolygon();case wi.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}}readWkbBlock(t){return this.readWkbPayload(this.readWkbHeader(t))}readWkbCollection(t,n){const r=this.readUint32(),i=[];for(let s=0;s({[i]:t[s]})));for(const i of this.layout_)this.writeDouble(i in r?r[i]:this.nodata_[i])}writeLineString(t,n){this.writeUint32(t.length);for(let r=0;ri===s?i:i==="XYZM"?s:s==="XYZM"?i:"XY";if(t instanceof Rve)return r(t.getLayout(),n);if(t instanceof Bp){const i=t.getGeometriesArray();for(let s=0;ss+o[0],0),n=new ArrayBuffer(t),r=new DataView(n);let i=0;return this.writeQueue_.forEach(s=>{switch(s[0]){case 1:r.setUint8(i,s[1]);break;case 4:r.setUint32(i,s[1],this.isLittleEndian_);break;case 8:r.setFloat64(i,s[1],this.isLittleEndian_);break}i+=s[0]}),n}}class EVe extends RCe{constructor(t){super(),t=t||{},this.splitCollection=!!t.splitCollection,this.viewCache_=null,this.hex_=t.hex!==!1,this.littleEndian_=t.littleEndian!==!1,this.ewkb_=t.ewkb!==!1,this.layout_=t.geometryLayout,this.nodataZ_=t.nodataZ||0,this.nodataM_=t.nodataM||0,this.srid_=t.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(t,n){return new au({geometry:this.readGeometry(t,n)})}readFeatures(t,n){let r=[];const i=this.readGeometry(t,n);return this.splitCollection&&i instanceof Bp?r=i.getGeometriesArray():r=[i],r.map(s=>new au({geometry:s}))}readGeometry(t,n){const r=D1e(t);if(!r)return null;const s=new T1e(r).readGeometry();return this.viewCache_=r,n=this.getReadOptions(t,n),this.viewCache_=null,Oo(s,!1,n)}readProjection(t){const n=this.viewCache_||D1e(t);if(!n)return;const r=new T1e(n);return r.readWkbHeader(),r.getSrid()&&oi("EPSG:"+r.getSrid())||void 0}writeFeature(t,n){return this.writeGeometry(t.getGeometry(),n)}writeFeatures(t,n){return this.writeGeometry(new Bp(t.map(r=>r.getGeometry())),n)}writeGeometry(t,n){n=this.adaptOptions(n);const r=new _Ve({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){const o=n.dataProjection&&oi(n.dataProjection);if(o){const a=o.getCode();a.startsWith("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry(Oo(t,!0,n),i);const s=r.getBuffer();return this.hex_?SVe(s):s}}function SVe(e){const t=new Uint8Array(e);return Array.from(t.values()).map(n=>(n<16?"0":"")+Number(n).toString(16).toUpperCase()).join("")}function AVe(e){const t=new Uint8Array(e.length/2);for(let n=0;n="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,n){return n=n!==void 0?n:!1,t>="0"&&t<="9"||t=="."&&!n}isWhiteSpace_(t){return t==" "||t==" "||t=="\r"||t==` +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-E1VxbijF.js","./index-DjTz9BGS.js","./chunk-L4EGOTBX-BALMY2cf.js","./entry-preview-BErytJoa.js","./lit-element-Dh4_iwrW.js","./index-DrFu-skq.js","./index-Dw69Wm5F.js","./index-BbxnuoyN.js","./iframe-BzPUOMAI.js","./index-DPS9-N-h.js","./directive-DUGPADuw.js","./main-CqylYIBO.js","./core-C4kcdPvA.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); +var jBe=Object.defineProperty;var Sve=e=>{throw TypeError(e)};var UBe=(e,t,n)=>t in e?jBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tn=(e,t,n)=>UBe(e,typeof t!="symbol"?t+"":t,n),XR=(e,t,n)=>t.has(e)||Sve("Cannot "+n);var Gt=(e,t,n)=>(XR(e,t,"read from private field"),n?n.call(e):t.get(e)),yn=(e,t,n)=>t.has(e)?Sve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),as=(e,t,n,r)=>(XR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),mn=(e,t,n)=>(XR(e,t,"access private method"),n);import{s as qBe}from"./chunk-L4EGOTBX-BALMY2cf.js";import{m as rI,p as HBe,v as Qm,r as ew,M as ZR,f as GBe}from"./entry-preview-BErytJoa.js";import{g as sa,j as bu,c as Yi,b as xCe}from"./index-DjTz9BGS.js";import{useMDXComponents as wCe}from"./index-Dw69Wm5F.js";import{ap as VBe,aq as WBe,ar as YBe,as as XBe,at as ZBe,au as KBe,av as JBe}from"./index-BbxnuoyN.js";import{r as Zr,x as Qe,E as Xr,T as lv,i as iI,b as Dy}from"./lit-element-Dh4_iwrW.js";import{c as z_,n as QBe,d as eze,I as i3,R as _Ce,r as tze,g as nze,h as rze,j as ize,C as sze,k as oze,m as Ave,u as Cve,v as sI,w as vg,x as B4,y as Cu,z as z4,A as oI,B as aze,D as lze,E as uze,F as cze,i as fze,G as dze,H as hze,J as pze,K as mze,L as gze,M as yze,N as aI,O as vze,p as lI,P as kve,Q as ECe,S as uI,T as j_,U as tD,V as Zg,W as bze,X as xze,Y as wze,Z as SCe,_ as nD,$ as rD,a0 as _ze,a1 as Eze,a2 as Sze,a3 as Aze,a4 as Tve,a5 as Cze,a6 as kze,a7 as Tze,f as Dze,a8 as Lze,l as Rze,a9 as Fze,aa as Oze,ab as Mze,ac as $ze,s as ACe,ad as Ize,ae as Pze,af as Nze,ag as Bze,q as zze,t as jze,o as CCe,ah as Uze,ai as qze,aj as s3,ak as Hze,al as Gze,e as J2,a as iD,b as np}from"./directive-DUGPADuw.js";import{m as U_,g as Vze,C as Wze,a as oi,b as o3,s as Yze,S as q_,V as cI,d as Dve,c as p_,T as Lve,F as j4,R as bg,e as Q2,f as Xze,w as Zze,h as Kze,i as Kg,j as H_,k as fI,l as Dp,n as mC,o as au,p as Gv,P as mc,q as eu,r as a3,t as As,u as Vv,v as uv,L as Ff,I as kCe,x as xg,J as Jze,y as Qze,z as Oo,A as eje,B as U4,D as tje,M as N1,E as sD,G as eE,H as tE,X as oD,K as kn,N as Rn,O as Rt,Q as dI,U as l3,W as nje,Y as rje,Z as Lp,_ as u3,$ as TCe,a0 as er,a1 as Ge,a2 as yr,a3 as Oi,a4 as tu,a5 as B1,a6 as mp,a7 as G_,a8 as DCe,a9 as Xt,aa as c3,ab as f3,ac as Ue,ad as Dt,ae as aD,af as Ds,ag as Ea,ah as d3,ai as LCe,aj as eg,ak as ije,al as hI,am as RCe,an as Td,ao as kc,ap as mi,aq as sje,ar as oje,as as Bp,at as Rve,au as gc,av as pf,aw as aje,ax as pI,ay as lD,az as lje,aA as FCe,aB as uje,aC as cje,aD as Ei,aE as OCe,aF as Ko,aG as mI,aH as h3,aI as gI,aJ as fje,aK as dje,aL as q4,aM as KR,aN as hje,aO as uD,aP as V_,aQ as gp,aR as yp,aS as zp,aT as cD,aU as yI,aV as eh,aW as vI,aX as MCe,aY as pje,aZ as kl,a_ as Ts,a$ as bI,b0 as wc,b1 as xI,b2 as $Ce,b3 as Fve,b4 as Jg,b5 as Ove,b6 as Jy,b7 as mje,b8 as H4,b9 as ICe,ba as gje,bb as Mve,bc as yje,bd as wI,be as vje,bf as PCe,bg as W_,bh as bje,bi as xje,bj as Si,bk as NCe,bl as Y_,bm as Tl,bn as jp,bo as z1,bp as wje,bq as cr,br as _je,bs as Eje,bt as BCe,bu as Up,bv as Sje,bw as Aje,bx as Cje,by as kje,bz as _I,bA as Tje,bB as Dje,bC as Lje,bD as zCe,bE as Rje,bF as p3,bG as EI,bH as m3,bI as jCe,bJ as hh,bK as nE,bL as rE,bM as SI,bN as AI,bO as X_,bP as Fje,bQ as Oje,bR as Mje,bS as fD,bT as $je,bU as Ije,bV as Pje,bW as JR,bX as Z_,bY as dD,bZ as Nje,b_ as Bje,b$ as $ve,c0 as Ive,c1 as zje,c2 as Pve,c3 as jje,c4 as Uje,c5 as G4,c6 as UCe,c7 as qje,c8 as j1,c9 as qCe,ca as Nve,cb as g3,cc as Bve,cd as k0,ce as CI,cf as Hje,cg as HCe,ch as hD,ci as Gje,cj as kI,ck as GCe,cl as Vje,cm as Wje,cn as Yje,co as Xje,cp as VCe,cq as Zje,cr as Kje,cs as Jje,ct as Qje,cu as eUe,cv as WCe,cw as tUe,cx as YCe,cy as nUe,cz as K_,cA as V4,cB as rUe,cC as iUe,cD as XCe,cE as ZCe,cF as sUe,cG as oUe}from"./main-CqylYIBO.js";import{A as KCe,J as Ow,S as aUe}from"./core-C4kcdPvA.js";import{_ as om}from"./iframe-BzPUOMAI.js";const zve={duration:750},jve={type:"FeatureCollection",features:[]};function lUe(e,t){let n=0,r,i=0,s=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,s+=r*(o-i));else{let o=-1;for(let a of e)(a=t(a,++o,e))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,s+=r*(a-i))}if(n>1)return s/(n-1)}function uUe(e,t){const n=lUe(e,t);return n&&Math.sqrt(n)}class Ja{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,s=i-(o-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=o+i,i==r-o&&(o=r))}return o}}function cUe(e,t){return Array.from(t,n=>e[n])}function fUe(e=z_){if(e===z_)return JCe;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function JCe(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}function Pg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function W4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function QCe(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?JCe:fUe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*c/l+d)),p=Math.min(r,Math.floor(t+(l-u)*c/l+d));QCe(e,t,h,p,i)}const s=e[t];let o=n,a=r;for(tw(e,n,t),i(e[r],s)>0&&tw(e,n,r);o0;)--a}i(e[n],s)===0?tw(e,n,a):(++a,tw(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function tw(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Y4(e,t,n){if(e=Float64Array.from(QBe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return W4(e);if(t>=1)return Pg(e);var r,i=(r-1)*t,s=Math.floor(i),o=Pg(QCe(e,s).subarray(0,s+1)),a=W4(e.subarray(s+1));return o+(a-o)*(i-s)}}function e3e(e,t,n=eze){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),o=+n(e[s],s,e),a=+n(e[s+1],s+1,e);return o+(a-o)*(i-s)}}function dUe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(s=+s)>=s&&(++n,r+=s)}if(n)return r/n}function t3e(e,t){return Y4(e,.5,t)}function*hUe(e){for(const t of e)yield*t}function n3e(e){return Array.from(hUe(e))}function Kl(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(i);++r180?f+=360:f-u>180&&(u+=360),d.push({i:c.push(i(c)+"rotate(",null,r)-2,x:vg(u,f)})):f&&c.push(i(c)+"rotate("+f+r)}function a(u,f,c,d){u!==f?d.push({i:c.push(i(c)+"skewX(",null,r)-2,x:vg(u,f)}):f&&c.push(i(c)+"skewX("+f+r)}function l(u,f,c,d,h,p){if(u!==c||f!==d){var g=h.push(i(h)+"scale(",null,",",null,")");p.push({i:g-4,x:vg(u,c)},{i:g-2,x:vg(f,d)})}else(c!==1||d!==1)&&h.push(i(h)+"scale("+c+","+d+")")}return function(u,f){var c=[],d=[];return u=e(u),f=e(f),s(u.translateX,u.translateY,f.translateX,f.translateY,c,d),o(u.rotate,f.rotate,c,d),a(u.skewX,f.skewX,c,d),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,d),u=f=null,function(h){for(var p=-1,g=d.length,v;++p0?n[a-1]:e[0],a(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(t(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),t(s,a),e(s);while(uvo(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!s(o););else for(;--a>=0;)for(;t(o,1),!s(o););}),n&&(i.count=(s,o)=>(QR.setTime(+s),eF.setTime(+o),e(QR),e(eF),Math.floor(n(QR,eF))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Wv=vo(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Wv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vo(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Wv);Wv.range;const Id=1e3,ku=Id*60,Pd=ku*60,th=Pd*24,LI=th*7,Wve=th*30,tF=th*365,Nd=vo(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Id)},(e,t)=>(t-e)/Id,e=>e.getUTCSeconds());Nd.range;const mD=vo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Id)},(e,t)=>{e.setTime(+e+t*ku)},(e,t)=>(t-e)/ku,e=>e.getMinutes());mD.range;const gD=vo(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ku)},(e,t)=>(t-e)/ku,e=>e.getUTCMinutes());gD.range;const yD=vo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Id-e.getMinutes()*ku)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getHours());yD.range;const vD=vo(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pd)},(e,t)=>(t-e)/Pd,e=>e.getUTCHours());vD.range;const Gd=vo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ku)/th,e=>e.getDate()-1);Gd.range;const Rp=vo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/th,e=>e.getUTCDate()-1);Rp.range;const f3e=vo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/th,e=>Math.floor(e/th));f3e.range;function T0(e){return vo(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ku)/LI)}const U1=T0(0),y3=T0(1),$Ue=T0(2),IUe=T0(3),Yv=T0(4),PUe=T0(5),NUe=T0(6);U1.range;y3.range;$Ue.range;IUe.range;Yv.range;PUe.range;NUe.range;function D0(e){return vo(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/LI)}const q1=D0(0),v3=D0(1),BUe=D0(2),zUe=D0(3),Xv=D0(4),jUe=D0(5),UUe=D0(6);q1.range;v3.range;BUe.range;zUe.range;Xv.range;jUe.range;UUe.range;const Q_=vo(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Q_.range;const e2=vo(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());e2.range;const Of=vo(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Of.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vo(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Of.range;const Mf=vo(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vo(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mf.range;function d3e(e,t,n,r,i,s){const o=[[Nd,1,Id],[Nd,5,5*Id],[Nd,15,15*Id],[Nd,30,30*Id],[s,1,ku],[s,5,5*ku],[s,15,15*ku],[s,30,30*ku],[i,1,Pd],[i,3,3*Pd],[i,6,6*Pd],[i,12,12*Pd],[r,1,th],[r,2,2*th],[n,1,LI],[t,1,Wve],[t,3,3*Wve],[e,1,tF]];function a(u,f,c){const d=fv).right(o,d);if(h===o.length)return e.every(Zg(u/tF,f/tF,c));if(h===0)return Wv.every(Math.max(Zg(u,f,c),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in Pe||(Pe.w=1),"Z"in Pe?(ht=rF(nw(Pe.y,0,1)),nn=ht.getUTCDay(),ht=nn>4||nn===0?v3.ceil(ht):v3(ht),ht=Rp.offset(ht,(Pe.V-1)*7),Pe.y=ht.getUTCFullYear(),Pe.m=ht.getUTCMonth(),Pe.d=ht.getUTCDate()+(Pe.w+6)%7):(ht=nF(nw(Pe.y,0,1)),nn=ht.getDay(),ht=nn>4||nn===0?y3.ceil(ht):y3(ht),ht=Gd.offset(ht,(Pe.V-1)*7),Pe.y=ht.getFullYear(),Pe.m=ht.getMonth(),Pe.d=ht.getDate()+(Pe.w+6)%7)}else("W"in Pe||"U"in Pe)&&("w"in Pe||(Pe.w="u"in Pe?Pe.u%7:"W"in Pe?1:0),nn="Z"in Pe?rF(nw(Pe.y,0,1)).getUTCDay():nF(nw(Pe.y,0,1)).getDay(),Pe.m=0,Pe.d="W"in Pe?(Pe.w+6)%7+Pe.W*7-(nn+5)%7:Pe.w+Pe.U*7-(nn+6)%7);return"Z"in Pe?(Pe.H+=Pe.Z/100|0,Pe.M+=Pe.Z%100,rF(Pe)):nF(Pe)}}function k(we,Ie,qe,Pe){for(var At=0,ht=Ie.length,nn=qe.length,Vt,Mn;At=nn)return-1;if(Vt=Ie.charCodeAt(At++),Vt===37){if(Vt=Ie.charAt(At++),Mn=A[Vt in Yve?Ie.charAt(At++):Vt],!Mn||(Pe=Mn(we,qe,Pe))<0)return-1}else if(Vt!=qe.charCodeAt(Pe++))return-1}return Pe}function R(we,Ie,qe){var Pe=u.exec(Ie.slice(qe));return Pe?(we.p=f.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function O(we,Ie,qe){var Pe=h.exec(Ie.slice(qe));return Pe?(we.w=p.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function B(we,Ie,qe){var Pe=c.exec(Ie.slice(qe));return Pe?(we.w=d.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function K(we,Ie,qe){var Pe=y.exec(Ie.slice(qe));return Pe?(we.m=b.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function L(we,Ie,qe){var Pe=g.exec(Ie.slice(qe));return Pe?(we.m=v.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function $(we,Ie,qe){return k(we,t,Ie,qe)}function I(we,Ie,qe){return k(we,n,Ie,qe)}function U(we,Ie,qe){return k(we,r,Ie,qe)}function q(we){return o[we.getDay()]}function Y(we){return s[we.getDay()]}function X(we){return l[we.getMonth()]}function te(we){return a[we.getMonth()]}function le(we){return i[+(we.getHours()>=12)]}function ee(we){return 1+~~(we.getMonth()/3)}function z(we){return o[we.getUTCDay()]}function he(we){return s[we.getUTCDay()]}function de(we){return l[we.getUTCMonth()]}function ze(we){return a[we.getUTCMonth()]}function He(we){return i[+(we.getUTCHours()>=12)]}function je(we){return 1+~~(we.getUTCMonth()/3)}return{format:function(we){var Ie=D(we+="",w);return Ie.toString=function(){return we},Ie},parse:function(we){var Ie=T(we+="",!1);return Ie.toString=function(){return we},Ie},utcFormat:function(we){var Ie=D(we+="",E);return Ie.toString=function(){return we},Ie},utcParse:function(we){var Ie=T(we+="",!0);return Ie.toString=function(){return we},Ie}}}var Yve={"-":"",_:" ",0:"0"},$o=/^\s*\d+/,WUe=/^%/,YUe=/[\\^$*+?|[\]().{}]/g;function ai(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s[t.toLowerCase(),n]))}function ZUe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function KUe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function JUe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function QUe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function eqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xve(e,t,n){var r=$o.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tqe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nqe(e,t,n){var r=$o.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function rqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Kve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function iqe(e,t,n){var r=$o.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jve(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function oqe(e,t,n){var r=$o.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function aqe(e,t,n){var r=$o.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lqe(e,t,n){var r=$o.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uqe(e,t,n){var r=WUe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function cqe(e,t,n){var r=$o.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fqe(e,t,n){var r=$o.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Qve(e,t){return ai(e.getDate(),t,2)}function dqe(e,t){return ai(e.getHours(),t,2)}function hqe(e,t){return ai(e.getHours()%12||12,t,2)}function pqe(e,t){return ai(1+Gd.count(Of(e),e),t,3)}function p3e(e,t){return ai(e.getMilliseconds(),t,3)}function mqe(e,t){return p3e(e,t)+"000"}function gqe(e,t){return ai(e.getMonth()+1,t,2)}function yqe(e,t){return ai(e.getMinutes(),t,2)}function vqe(e,t){return ai(e.getSeconds(),t,2)}function bqe(e){var t=e.getDay();return t===0?7:t}function xqe(e,t){return ai(U1.count(Of(e)-1,e),t,2)}function m3e(e){var t=e.getDay();return t>=4||t===0?Yv(e):Yv.ceil(e)}function wqe(e,t){return e=m3e(e),ai(Yv.count(Of(e),e)+(Of(e).getDay()===4),t,2)}function _qe(e){return e.getDay()}function Eqe(e,t){return ai(y3.count(Of(e)-1,e),t,2)}function Sqe(e,t){return ai(e.getFullYear()%100,t,2)}function Aqe(e,t){return e=m3e(e),ai(e.getFullYear()%100,t,2)}function Cqe(e,t){return ai(e.getFullYear()%1e4,t,4)}function kqe(e,t){var n=e.getDay();return e=n>=4||n===0?Yv(e):Yv.ceil(e),ai(e.getFullYear()%1e4,t,4)}function Tqe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ai(t/60|0,"0",2)+ai(t%60,"0",2)}function e1e(e,t){return ai(e.getUTCDate(),t,2)}function Dqe(e,t){return ai(e.getUTCHours(),t,2)}function Lqe(e,t){return ai(e.getUTCHours()%12||12,t,2)}function Rqe(e,t){return ai(1+Rp.count(Mf(e),e),t,3)}function g3e(e,t){return ai(e.getUTCMilliseconds(),t,3)}function Fqe(e,t){return g3e(e,t)+"000"}function Oqe(e,t){return ai(e.getUTCMonth()+1,t,2)}function Mqe(e,t){return ai(e.getUTCMinutes(),t,2)}function $qe(e,t){return ai(e.getUTCSeconds(),t,2)}function Iqe(e){var t=e.getUTCDay();return t===0?7:t}function Pqe(e,t){return ai(q1.count(Mf(e)-1,e),t,2)}function y3e(e){var t=e.getUTCDay();return t>=4||t===0?Xv(e):Xv.ceil(e)}function Nqe(e,t){return e=y3e(e),ai(Xv.count(Mf(e),e)+(Mf(e).getUTCDay()===4),t,2)}function Bqe(e){return e.getUTCDay()}function zqe(e,t){return ai(v3.count(Mf(e)-1,e),t,2)}function jqe(e,t){return ai(e.getUTCFullYear()%100,t,2)}function Uqe(e,t){return e=y3e(e),ai(e.getUTCFullYear()%100,t,2)}function qqe(e,t){return ai(e.getUTCFullYear()%1e4,t,4)}function Hqe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xv(e):Xv.ceil(e),ai(e.getUTCFullYear()%1e4,t,4)}function Gqe(){return"+0000"}function t1e(){return"%"}function n1e(e){return+e}function r1e(e){return Math.floor(+e/1e3)}var Ly,RI,v3e,FI,b3e;Vqe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vqe(e){return Ly=h3e(e),RI=Ly.format,v3e=Ly.parse,FI=Ly.utcFormat,b3e=Ly.utcParse,Ly}function Wqe(e){return new Date(e)}function Yqe(e){return e instanceof Date?+e:+new Date(+e)}function OI(e,t,n,r,i,s,o,a,l,u){var f=bze(),c=f.invert,d=f.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),w=u("%B"),E=u("%Y");function A(D){return(l(D)0&&f.length>0;)g=f.pop(),i=l.pop(),o=u.pop(),b=g.toString(),b in c||(r.push(o[0],o[1]),c[b]=!0),v=f.pop(),s=l.pop(),a=u.pop(),y=(g+v)/2,h=e(y),p=t(h),Yze(p[0],p[1],o[0],o[1],a[0],a[1]){const i=r.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(i),this.lonLabelStyleBase_},this.latLabelStyleBase_=new p_({text:t.latLabelStyle!==void 0?t.latLabelStyle.clone():new Lve({font:"12px Calibri,sans-serif",textAlign:"right",fill:new j4({color:"rgba(0,0,0,1)"}),stroke:new q_({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=r=>{const i=r.get("graticule_label");return this.latLabelStyleBase_.getText().setText(i),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(bg.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=t.intervals!==void 0?t.intervals:nHe,this.setSource(new Q2({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new Xze,overlaps:!1,useSpatialIndex:!1,wrapX:t.wrapX})),this.featurePool_=[],this.lineStyle_=new p_({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(t,n){let r=t.slice();return this.projection_&&this.getSource().getWrapX()&&Zze(r,this.projection_),this.loadedExtent_&&(Kze(this.loadedExtent_,r,n)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]}loaderFunction(t,n,r){this.loadedExtent_=t;const i=this.getSource(),s=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=Kg(s,t);if(this.renderedExtent_&&H_(this.renderedExtent_,o)&&this.renderedResolution_===n||(this.renderedExtent_=o,this.renderedResolution_=n,fI(o)))return;const a=Dp(o),l=n*n/4;(!this.projection_||!mC(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(o,a,n,l);let f=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(f+=this.meridians_.length),this.parallelsLabels_&&(f+=this.parallels_.length);let c;for(;f>this.featurePool_.length;)c=new au,this.featurePool_.push(c);const d=i.getFeaturesCollection();d.clear();let h=0,p,g;for(p=0,g=this.meridians_.length;pMath.PI/2;f=f!==p}const h=Jqe(t);for(let p=l;p<=u;++p){let g=this.meridians_.length+this.parallels_.length,v,y,b,w;if(this.meridiansLabels_)for(y=0,b=this.meridiansLabels_.length;y=l?(t[0]=a[0],t[2]=a[2]):o=!0);const u=[As(n[0],this.minX_,this.maxX_),As(n[1],this.minY_,this.maxY_)],f=this.toLonLatTransform_(u);isNaN(f[1])&&(f[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=As(f[0],this.minLon_,this.maxLon_),d=As(f[1],this.minLat_,this.maxLat_);const h=this.maxLines_;let p,g,v,y,b=t;o||(b=[As(t[0],this.minX_,this.maxX_),As(t[1],this.minY_,this.maxY_),As(t[2],this.minX_,this.maxX_),As(t[3],this.minY_,this.maxY_)]);const w=Vv(b,this.toLonLatTransform_,void 0,8);let E=w[3],A=w[2],D=w[1],T=w[0];if(o||(uv(b,this.bottomLeft_)&&(T=this.minLon_,D=this.minLat_),uv(b,this.bottomRight_)&&(A=this.maxLon_,D=this.minLat_),uv(b,this.topLeft_)&&(T=this.minLon_,E=this.maxLat_),uv(b,this.topRight_)&&(A=this.maxLon_,E=this.maxLat_),E=As(E,d,this.maxLat_),A=As(A,c,this.maxLon_),D=As(D,this.minLat_,d),T=As(T,this.minLon_,c)),c=Math.floor(c/s)*s,y=As(c,this.minLon_,this.maxLon_),g=this.addMeridian_(y,D,E,i,t,0),p=0,o)for(;(y-=s)>=T&&p++i[o]&&(s=o,o=1);const a=Math.max(n[1],i[s]),l=Math.min(n[3],i[o]),u=As(n[1]+Math.abs(n[1]-n[3])*this.lonLabelPosition_,a,l),c=[i[s-1]+(i[o-1]-i[s-1])*(u-i[s])/(i[o]-i[s]),u],d=this.meridiansLabels_[r].geom;return d.setCoordinates(c),d}getMeridians(){return this.meridians_}getParallel_(t,n,r,i,s){const o=eHe(t,n,r,this.projection_,i);let a=this.parallels_[s];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new Ff(o,"XY"),a}getParallelPoint_(t,n,r){const i=t.getFlatCoordinates();let s=0,o=i.length-2;i[s]>i[o]&&(s=o,o=0);const a=Math.max(n[0],i[s]),l=Math.min(n[2],i[o]),u=As(n[0]+Math.abs(n[0]-n[2])*this.latLabelPosition_,a,l),f=i[s+1]+(i[o+1]-i[s+1])*(u-i[s])/(i[o]-i[s]),c=[u,f],d=this.parallelsLabels_[r].geom;return d.setCoordinates(c),d}getParallels(){return this.parallels_}updateProjectionInfo_(t){const n=oi("EPSG:4326"),r=t.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];const i=o3(t,n);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t}};class $I extends kCe{constructor(t,n,r,i,s){const o=s!==void 0?xg.IDLE:xg.LOADED;super(t,n,r,o),this.loader_=s!==void 0?s:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=xg.ERROR):this.state=xg.LOADED,this.changed()}load(){this.state==xg.IDLE&&(this.state=xg.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const iHe={Point:lHe,LineString:uHe,Polygon:hHe,MultiPoint:fHe,MultiLineString:cHe,MultiPolygon:dHe},sHe={Point:pHe,LineString:mHe,Polygon:gHe,MultiPoint:vHe,MultiLineString:yHe,MultiPolygon:bHe};class oHe extends Jze{constructor(t){t=t||{},super(),this.geometryName_=t.geometryName}readFeatureFromObject(t,n,r){const i=t,s=i1e(i.geometry,n),o=new au;if(this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(s),i.attributes){o.setProperties(i.attributes,!0);const a=i.attributes[r];a!==void 0&&o.setId(a)}return o}readFeaturesFromObject(t,n){if(n=n||{},t.features){const r=t,i=[],s=r.features;for(let o=0,a=s.length;o=0;s--){const u=r[s][0];if(a3(new U4(u).getExtent(),new U4(a).getExtent())){r[s].push(a),l=!0;break}}l||r.push([a.reverse()])}return r}function lHe(e){let t;return e.m!==void 0&&e.z!==void 0?t=new mc([e.x,e.y,e.z,e.m],"XYZM"):e.z!==void 0?t=new mc([e.x,e.y,e.z],"XYZ"):e.m!==void 0?t=new mc([e.x,e.y,e.m],"XYM"):t=new mc([e.x,e.y]),t}function uHe(e){const t=H1(e);return new Ff(e.paths[0],t)}function cHe(e){const t=H1(e);return new N1(e.paths,t)}function H1(e){let t="XY";return e.hasZ===!0&&e.hasM===!0?t="XYZM":e.hasZ===!0?t="XYZ":e.hasM===!0&&(t="XYM"),t}function fHe(e){const t=H1(e);return new sD(e.points,t)}function dHe(e){const t=H1(e);return new eE(e.rings,t)}function hHe(e){const t=H1(e);return new tE(e.rings,t)}function pHe(e,t){const n=e.getCoordinates();let r;const i=e.getLayout();if(i==="XYZ")r={x:n[0],y:n[1],z:n[2]};else if(i==="XYM")r={x:n[0],y:n[1],m:n[2]};else if(i==="XYZM")r={x:n[0],y:n[1],z:n[2],m:n[3]};else if(i==="XY")r={x:n[0],y:n[1]};else throw new Error("Invalid geometry layout");return r}function iE(e){const t=e.getLayout();return{hasZ:t==="XYZ"||t==="XYZM",hasM:t==="XYM"||t==="XYZM"}}function mHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:[e.getCoordinates()]}}function gHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,rings:e.getCoordinates(!1)}}function yHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,paths:e.getCoordinates()}}function vHe(e,t){const n=iE(e);return{hasZ:n.hasZ,hasM:n.hasM,points:e.getCoordinates()}}function bHe(e,t){const n=iE(e),r=e.getCoordinates(!1),i=[];for(let s=0;s=0;o--)i.push(r[s][o]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}function s1e(e,t){const n=sHe[e.getType()];return n(Oo(e,!0,t),t)}const Vd="http://www.opengis.net/gml",xHe=/^\s*$/;class un extends oD{constructor(t){super(),t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:kn(this.readFeaturesInternal),featureMembers:Rn(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(t,n){const r=t.localName;let i=null;if(r=="FeatureCollection")i=Rt([],this.FEATURE_COLLECTION_PARSERS,t,n,this);else if(r=="featureMembers"||r=="featureMember"||r=="member"){const s=n[0];let o=s.featureType,a=s.featureNS;const l="p",u="p0";if(!o&&t.childNodes){o=[],a={};for(let d=0,h=t.childNodes.length;d0&&!(u instanceof nje)){u={_content_:u};for(let d=0;d1,r=n&&e.imageInfo.profile[1].supports?e.imageInfo.profile[1].supports:[],i=n&&e.imageInfo.profile[1].formats?e.imageInfo.profile[1].formats:[],s=n&&e.imageInfo.profile[1].qualities?e.imageInfo.profile[1].qualities:[];return{url:e.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:e.imageInfo.sizes===void 0?void 0:e.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:e.imageInfo.tiles===void 0?void 0:[e.imageInfo.tiles.map(function(o){return o.width})[0],e.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:e.imageInfo.tiles===void 0?void 0:e.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:[...t.supports,...r],formats:[...t.formats,...i],qualities:[...t.qualities,...s]}}function xGe(e){const t=e.getComplianceLevelSupportedFeatures(),n=e.imageInfo.extraFormats===void 0?t.formats:[...t.formats,...e.imageInfo.extraFormats],r=e.imageInfo.preferredFormats!==void 0&&Array.isArray(e.imageInfo.preferredFormats)&&e.imageInfo.preferredFormats.length>0?e.imageInfo.preferredFormats.filter(function(i){return["jpg","png","gif"].includes(i)}).reduce(function(i,s){return i===void 0&&n.includes(s)?s:i},void 0):void 0;return{url:e.imageInfo.id,sizes:e.imageInfo.sizes===void 0?void 0:e.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:e.imageInfo.tiles===void 0?void 0:[e.imageInfo.tiles.map(function(i){return i.width})[0],e.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:e.imageInfo.tiles===void 0?void 0:e.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:e.imageInfo.extraFeatures===void 0?t.supports:[...t.supports,...e.imageInfo.extraFeatures],formats:n,qualities:e.imageInfo.extraQualities===void 0?t.qualities:[...t.qualities,...e.imageInfo.extraQualities],preferredFormat:r}}const wD={};wD[Zs.VERSION1]=vGe;wD[Zs.VERSION2]=bGe;wD[Zs.VERSION3]=xGe;class wGe{constructor(t){this.setImageInfo(t)}setImageInfo(t){typeof t=="string"?this.imageInfo=JSON.parse(t):this.imageInfo=t}getImageApiVersion(){if(this.imageInfo===void 0)return;let t=this.imageInfo["@context"]||"ol-no-context";typeof t=="string"&&(t=[t]);for(let n=0;n0&&typeof this.imageInfo.profile[0]=="string"&&o1e.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}}getComplianceLevelFromProfile(t){const n=this.getComplianceLevelEntryFromProfile(t);if(n===void 0)return;const r=n.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}getComplianceLevelSupportedFeatures(){if(this.imageInfo===void 0)return;const t=this.getImageApiVersion(),n=this.getComplianceLevelFromProfile(t);return n===void 0?Qg.none.none:Qg[t][n]}getTileSourceOptions(t){const n=t||{},r=this.getImageApiVersion();if(r===void 0)return;const i=r===void 0?void 0:wD[r](this);if(i!==void 0)return{url:i.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:n.format!==void 0&&i.formats.includes(n.format)?n.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:n.quality&&i.qualities.includes(n.quality)?n.quality:i.qualities.includes("native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(s,o){return o-s}):void 0,tileSize:i.tileSize}}}class UI{read(t){if(!t)return null;if(typeof t=="string"){const n=c3(t);return this.readFromDocument(n)}return f3(t)?this.readFromDocument(t):this.readFromNode(t)}readFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFromNode(n);return null}readFromNode(t){Td()}}const _Ge="http://www.w3.org/1999/xlink";function G1(e){return e.getAttributeNS(_Ge,"href")}const Bl=[null,"http://www.opengis.net/ows/1.1"],EGe=Xt(Bl,{ServiceIdentification:Ue(WGe),ServiceProvider:Ue(XGe),OperationsMetadata:Ue(GGe)});class k3e extends UI{constructor(){super()}readFromNode(t){const n=Rt({},EGe,t,[]);return n||null}}const SGe=Xt(Bl,{DeliveryPoint:Ue(Dt),City:Ue(Dt),AdministrativeArea:Ue(Dt),PostalCode:Ue(Dt),Country:Ue(Dt),ElectronicMailAddress:Ue(Dt)}),AGe=Xt(Bl,{Value:mi(ZGe)}),CGe=Xt(Bl,{AllowedValues:Ue(NGe)}),kGe=Xt(Bl,{Phone:Ue(VGe),Address:Ue(PGe)}),TGe=Xt(Bl,{HTTP:Ue(qGe)}),DGe=Xt(Bl,{Get:mi(UGe),Post:void 0}),LGe=Xt(Bl,{DCP:Ue(jGe)}),RGe=Xt(Bl,{Operation:HGe}),FGe=Xt(Bl,{Voice:Ue(Dt),Facsimile:Ue(Dt)}),OGe=Xt(Bl,{Constraint:mi(BGe)}),MGe=Xt(Bl,{IndividualName:Ue(Dt),PositionName:Ue(Dt),ContactInfo:Ue(zGe)}),$Ge=Xt(Bl,{Abstract:Ue(Dt),AccessConstraints:Ue(Dt),Fees:Ue(Dt),Title:Ue(Dt),ServiceTypeVersion:Ue(Dt),ServiceType:Ue(Dt)}),IGe=Xt(Bl,{ProviderName:Ue(Dt),ProviderSite:Ue(G1),ServiceContact:Ue(YGe)});function PGe(e,t){return Rt({},SGe,e,t)}function NGe(e,t){return Rt({},AGe,e,t)}function BGe(e,t){const n=e.getAttribute("name");if(n)return Rt({name:n},CGe,e,t)}function zGe(e,t){return Rt({},kGe,e,t)}function jGe(e,t){return Rt({},TGe,e,t)}function UGe(e,t){const n=G1(e);if(n)return Rt({href:n},OGe,e,t)}function qGe(e,t){return Rt({},DGe,e,t)}function HGe(e,t){const n=e.getAttribute("name"),r=Rt({},LGe,e,t);if(!r)return;const i=t[t.length-1];i[n]=r}function GGe(e,t){return Rt({},RGe,e,t)}function VGe(e,t){return Rt({},FGe,e,t)}function WGe(e,t){return Rt({},$Ge,e,t)}function YGe(e,t){return Rt({},MGe,e,t)}function XGe(e,t){return Rt({},IGe,e,t)}function ZGe(e,t){return Dt(e)}function a1e(e,t,n,r,i,s){i!==void 0?(i=i,s=s!==void 0?s:0):(i=[],s=0);let o=t;for(;o>1):i>>1}return t}function iVe(e){let t="";for(let n=0,r=e.length;n=32;)t=(32|e&31)+63,n+=String.fromCharCode(t),e>>=5;return t=e+63,n+=String.fromCharCode(t),n}class Yr extends bt{constructor(t){t=t||{},super(t),this.schemaLocation=t.schemaLocation?t.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}writeGeometryElement(t,n,r){const i=r[r.length-1];r[r.length-1]=Object.assign({multiCurve:!0,multiSurface:!0},i),super.writeGeometryElement(t,n,r)}}Yr.prototype.namespace="http://www.opengis.net/gml/3.2";Yr.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:Rn(bt.prototype.readFlatPos),posList:Rn(bt.prototype.readFlatPosList),coordinates:Rn(hr.prototype.readFlatCoordinates)}};Yr.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:bt.prototype.interiorParser,exterior:bt.prototype.exteriorParser}};Yr.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Rn(un.prototype.readPoint),MultiPoint:Rn(un.prototype.readMultiPoint),LineString:Rn(un.prototype.readLineString),MultiLineString:Rn(un.prototype.readMultiLineString),LinearRing:Rn(un.prototype.readLinearRing),Polygon:Rn(un.prototype.readPolygon),MultiPolygon:Rn(un.prototype.readMultiPolygon),Surface:Rn(Yr.prototype.readSurface),MultiSurface:Rn(bt.prototype.readMultiSurface),Curve:Rn(Yr.prototype.readCurve),MultiCurve:Rn(bt.prototype.readMultiCurve),Envelope:Rn(Yr.prototype.readEnvelope)}};Yr.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:kn(bt.prototype.curveMemberParser),curveMembers:kn(bt.prototype.curveMemberParser)}};Yr.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:kn(bt.prototype.surfaceMemberParser),surfaceMembers:kn(bt.prototype.surfaceMemberParser)}};Yr.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:kn(un.prototype.readLineString),Curve:kn(bt.prototype.readCurve)}};Yr.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:kn(un.prototype.readPolygon),Surface:kn(bt.prototype.readSurface)}};Yr.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:Rn(bt.prototype.readPatch)}};Yr.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:Rn(bt.prototype.readSegment)}};Yr.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:kn(bt.prototype.readFlatPosList),upperCorner:kn(bt.prototype.readFlatPosList)}};Yr.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:Rn(bt.prototype.readPolygonPatch)}};Yr.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:DCe(bt.prototype.readLineStringSegment)}};Yr.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:kn(un.prototype.pointMemberParser),pointMembers:kn(un.prototype.pointMemberParser)}};Yr.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:kn(un.prototype.lineStringMemberParser),lineStringMembers:kn(un.prototype.lineStringMemberParser)}};Yr.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:kn(un.prototype.polygonMemberParser),polygonMembers:kn(un.prototype.polygonMemberParser)}};Yr.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:kn(un.prototype.readFlatCoordinatesFromNode)}};Yr.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:kn(un.prototype.readLineString)}};Yr.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:kn(un.prototype.readPolygon)}};Yr.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:Rn(un.prototype.readFlatLinearRing),Ring:Rn(Yr.prototype.readFlatCurveRing)}};Yr.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:Ge(bt.prototype.writeRing),interior:Ge(bt.prototype.writeRing)}};Yr.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Ge(yr),upperCorner:Ge(yr)}};Yr.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Ge(bt.prototype.writeSurfaceOrPolygonMember),polygonMember:Ge(bt.prototype.writeSurfaceOrPolygonMember)}};Yr.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:Ge(bt.prototype.writePointMember)}};Yr.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Ge(bt.prototype.writeLineStringOrCurveMember),curveMember:Ge(bt.prototype.writeLineStringOrCurveMember)}};Yr.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:Ge(bt.prototype.writeCurveOrLineString),MultiCurve:Ge(bt.prototype.writeMultiCurveOrLineString),Point:Ge(Yr.prototype.writePoint),MultiPoint:Ge(bt.prototype.writeMultiPoint),LineString:Ge(bt.prototype.writeCurveOrLineString),MultiLineString:Ge(bt.prototype.writeMultiCurveOrLineString),LinearRing:Ge(bt.prototype.writeLinearRing),Polygon:Ge(bt.prototype.writeSurfaceOrPolygon),MultiPolygon:Ge(bt.prototype.writeMultiSurfaceOrPolygon),Surface:Ge(bt.prototype.writeSurfaceOrPolygon),MultiSurface:Ge(bt.prototype.writeMultiSurfaceOrPolygon),Envelope:Ge(bt.prototype.writeEnvelope)}};let T3e=class{constructor(t){this.tagName_=t}getTagName(){return this.tagName_}};class aVe extends T3e{constructor(t,n){super(t),this.conditions=n,kc(this.conditions.length>=2,"At least 2 conditions are required")}}let lVe=class extends aVe{constructor(t){super("And",Array.prototype.slice.call(arguments))}};class uVe extends T3e{constructor(t,n,r){if(super("BBOX"),this.geometryName=t,this.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=r}}function cVe(e){const t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(lVe,t))}function fVe(e,t,n){return new uVe(e,t,n)}const l1e={"http://www.opengis.net/gml":{boundedBy:Ue(un.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:kn(un.prototype.readFeaturesInternal)}},dVe={"http://www.opengis.net/wfs":{totalInserted:Ue(Ds),totalUpdated:Ue(Ds),totalDeleted:Ue(Ds)},"http://www.opengis.net/wfs/2.0":{totalInserted:Ue(Ds),totalUpdated:Ue(Ds),totalDeleted:Ue(Ds)}},hVe={"http://www.opengis.net/wfs":{TransactionSummary:Ue(c1e,"transactionSummary"),InsertResults:Ue(d1e,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:Ue(c1e,"transactionSummary"),InsertResults:Ue(d1e,"insertIds")}},pVe={"http://www.opengis.net/wfs":{PropertyName:Ge(yr)},"http://www.opengis.net/wfs/2.0":{PropertyName:Ge(yr)}},D3e={"http://www.opengis.net/wfs":{Insert:Ge(h1e),Update:Ge(m1e),Delete:Ge(p1e),Property:Ge(g1e),Native:Ge(y1e)},"http://www.opengis.net/wfs/2.0":{Insert:Ge(h1e),Update:Ge(m1e),Delete:Ge(p1e),Property:Ge(g1e),Native:Ge(y1e)}},L3e="feature",qI="http://www.w3.org/2000/xmlns/",HI={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},K4={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},GI={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},u1e={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},VI={"2.0.0":Yr,"1.1.0":bt,"1.0.0":hr},mVe="1.1.0";class gVe extends oD{constructor(t){super(),t=t||{},this.version_=t.version?t.version:mVe,this.featureType_=t.featureType,this.featureNS_=t.featureNS,this.gmlFormat_=t.gmlFormat?t.gmlFormat:new VI[this.version_],this.schemaLocation_=t.schemaLocation?t.schemaLocation:u1e[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(t){this.featureType_=t}readFeaturesFromNode(t,n){const r={node:t};Object.assign(r,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(r,this.getReadOptions(t,n||{}));const i=[r];let s;this.version_==="2.0.0"?s=l1e:s=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=Rt([],s,t,i,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(t){if(t){if(typeof t=="string"){const n=c3(t);return this.readTransactionResponseFromDocument(n)}return f3(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}}readFeatureCollectionMetadata(t){if(t){if(typeof t=="string"){const n=c3(t);return this.readFeatureCollectionMetadataFromDocument(n)}return f3(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}}readFeatureCollectionMetadataFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)}readFeatureCollectionMetadataFromNode(t){const n={},r=mp(t.getAttribute("numberOfFeatures"));return n.numberOfFeatures=r,Rt(n,l1e,t,[],this.gmlFormat_)}readTransactionResponseFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)}readTransactionResponseFromNode(t){return Rt({},hVe,t,[])}writeGetFeature(t){const n=er(K4[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),t.handle&&n.setAttribute("handle",t.handle),t.outputFormat&&n.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&n.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&n.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&n.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&n.setAttribute("count",String(t.count)),t.viewParams!==void 0&&n.setAttribute("viewParams",t.viewParams),n.setAttributeNS(G_,"xsi:schemaLocation",this.schemaLocation_);const r={node:n};if(Object.assign(r,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),kc(Array.isArray(t.featureTypes),"`options.featureTypes` must be an Array"),typeof t.featureTypes[0]=="string"){let i=t.filter;t.bbox&&(kc(t.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),i=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,i)),Object.assign(r,{geometryName:t.geometryName,filter:i}),k1e(n,t.featureTypes,[r])}else t.featureTypes.forEach(i=>{const s=this.combineBboxAndFilter(i.geometryName,i.bbox,t.srsName,t.filter);Object.assign(r,{geometryName:i.geometryName,filter:s}),k1e(n,[i.name],[r])});return n}combineBboxAndFilter(t,n,r,i){const s=fVe(t,n,r);return i?cVe(i,s):s}writeTransaction(t,n,r,i){const s=[],o=i.version?i.version:this.version_,a=er(K4[o],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",o);let l;i&&(l=i.gmlOptions?i.gmlOptions:{},i.handle&&a.setAttribute("handle",i.handle)),a.setAttributeNS(G_,"xsi:schemaLocation",u1e[o]);const u=yVe(a,l,o,i);return t&&ZS("Insert",t,s,u),n&&ZS("Update",n,s,u),r&&ZS("Delete",r,s,u),i.nativeElements&&ZS("Native",i.nativeElements,s,u),a}readProjectionFromDocument(t){for(let n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null}readProjectionFromNode(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(let n=t.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){const r=[{}];return this.gmlFormat_.readGeometryElement(n,r),oi(r.pop().srsName)}}return null}}function yVe(e,t,n,r){const i=r.featurePrefix?r.featurePrefix:L3e;let s;return n==="1.0.0"?s=2:n==="1.1.0"?s=3:n==="2.0.0"&&(s=3.2),Object.assign({node:e},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:s,hasZ:r.hasZ,srsName:r.srsName},t)}function ZS(e,t,n,r){Oi(r,D3e,tu(e),t,n)}function c1e(e,t){return Rt({},dVe,e,t)}const vVe={"http://www.opengis.net/ogc":{FeatureId:kn(function(e,t){return e.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:kn(function(e,t){return e.getAttribute("fid")})}};function f1e(e,t){Lp(vVe,e,t)}const bVe={"http://www.opengis.net/wfs":{Feature:f1e},"http://www.opengis.net/wfs/2.0":{Feature:f1e}};function d1e(e,t){return Rt([],bVe,e,t)}function h1e(e,t,n){const r=n[n.length-1],i=r.featureType,s=r.featureNS,o=r.gmlVersion,a=er(s,i);e.appendChild(a),o===2?hr.prototype.writeFeatureElement(a,t,n):o===3?bt.prototype.writeFeatureElement(a,t,n):Yr.prototype.writeFeatureElement(a,t,n)}function R3e(e,t,n){const i=n[n.length-1].version,s=HI[i],o=er(s,"Filter"),a=er(s,"FeatureId");o.appendChild(a),a.setAttribute("fid",t),e.appendChild(o)}function WI(e,t){e=e||L3e;const n=e+":";return t.startsWith(n)?t:n+t}function p1e(e,t,n){const r=n[n.length-1];kc(t.getId()!==void 0,"Features must have an id set");const i=r.featureType,s=r.featurePrefix,o=r.featureNS,a=WI(s,i);e.setAttribute("typeName",a),e.setAttributeNS(qI,"xmlns:"+s,o);const l=t.getId();l!==void 0&&R3e(e,l,n)}function m1e(e,t,n){const r=n[n.length-1];kc(t.getId()!==void 0,"Features must have an id set");const i=r.version,s=r.featureType,o=r.featurePrefix,a=r.featureNS,l=WI(o,s),u=t.getGeometryName();e.setAttribute("typeName",l),e.setAttributeNS(qI,"xmlns:"+o,a);const f=t.getId();if(f!==void 0){const c=t.getKeys(),d=[];for(let h=0,p=c.length;h0,i=this.readUint32(r),s=Math.floor((i&268435455)/1e3),o=!!(i&2147483648)||s===1||s===3,a=!!(i&1073741824)||s===2||s===3,l=!!(i&536870912),u=(i&268435455)%1e3,f=["XY",o?"Z":"",a?"M":""].join(""),c=l?this.readUint32(r):null;if(t!==void 0&&t!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==r)throw new Error("Inconsistent endian");if(this.layout_!==f)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=r,this.hasZ_=o,this.hasM_=a,this.layout_=f,this.srid_=c,this.initialized_=!0;return u}readWkbPayload(t){switch(t){case wi.POINT:return this.readPoint();case wi.LINE_STRING:return this.readLineString();case wi.POLYGON:case wi.TRIANGLE:return this.readPolygon();case wi.MULTI_POINT:return this.readMultiPoint();case wi.MULTI_LINE_STRING:return this.readMultiLineString();case wi.MULTI_POLYGON:case wi.POLYHEDRAL_SURFACE:case wi.TIN:return this.readMultiPolygon();case wi.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}}readWkbBlock(t){return this.readWkbPayload(this.readWkbHeader(t))}readWkbCollection(t,n){const r=this.readUint32(),i=[];for(let s=0;s({[i]:t[s]})));for(const i of this.layout_)this.writeDouble(i in r?r[i]:this.nodata_[i])}writeLineString(t,n){this.writeUint32(t.length);for(let r=0;ri===s?i:i==="XYZM"?s:s==="XYZM"?i:"XY";if(t instanceof Rve)return r(t.getLayout(),n);if(t instanceof Bp){const i=t.getGeometriesArray();for(let s=0;ss+o[0],0),n=new ArrayBuffer(t),r=new DataView(n);let i=0;return this.writeQueue_.forEach(s=>{switch(s[0]){case 1:r.setUint8(i,s[1]);break;case 4:r.setUint32(i,s[1],this.isLittleEndian_);break;case 8:r.setFloat64(i,s[1],this.isLittleEndian_);break}i+=s[0]}),n}}class EVe extends RCe{constructor(t){super(),t=t||{},this.splitCollection=!!t.splitCollection,this.viewCache_=null,this.hex_=t.hex!==!1,this.littleEndian_=t.littleEndian!==!1,this.ewkb_=t.ewkb!==!1,this.layout_=t.geometryLayout,this.nodataZ_=t.nodataZ||0,this.nodataM_=t.nodataM||0,this.srid_=t.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(t,n){return new au({geometry:this.readGeometry(t,n)})}readFeatures(t,n){let r=[];const i=this.readGeometry(t,n);return this.splitCollection&&i instanceof Bp?r=i.getGeometriesArray():r=[i],r.map(s=>new au({geometry:s}))}readGeometry(t,n){const r=D1e(t);if(!r)return null;const s=new T1e(r).readGeometry();return this.viewCache_=r,n=this.getReadOptions(t,n),this.viewCache_=null,Oo(s,!1,n)}readProjection(t){const n=this.viewCache_||D1e(t);if(!n)return;const r=new T1e(n);return r.readWkbHeader(),r.getSrid()&&oi("EPSG:"+r.getSrid())||void 0}writeFeature(t,n){return this.writeGeometry(t.getGeometry(),n)}writeFeatures(t,n){return this.writeGeometry(new Bp(t.map(r=>r.getGeometry())),n)}writeGeometry(t,n){n=this.adaptOptions(n);const r=new _Ve({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){const o=n.dataProjection&&oi(n.dataProjection);if(o){const a=o.getCode();a.startsWith("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry(Oo(t,!0,n),i);const s=r.getBuffer();return this.hex_?SVe(s):s}}function SVe(e){const t=new Uint8Array(e);return Array.from(t.values()).map(n=>(n<16?"0":"")+Number(n).toString(16).toUpperCase()).join("")}function AVe(e){const t=new Uint8Array(e.length/2);for(let n=0;n="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,n){return n=n!==void 0?n:!1,t>="0"&&t<="9"||t=="."&&!n}isWhiteSpace_(t){return t==" "||t==" "||t=="\r"||t==` `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const t=this.nextChar_(),n=this.index_;let r=t,i;if(t=="(")i=pi.LEFT_PAREN;else if(t==",")i=pi.COMMA;else if(t==")")i=pi.RIGHT_PAREN;else if(this.isNumeric_(t)||t=="-")i=pi.NUMBER,r=this.readNumber_();else if(this.isAlpha_(t))i=pi.TEXT,r=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(t==="")i=pi.EOF;else throw new Error("Unexpected character: "+t)}return{position:n,value:r,type:i}}readNumber_(){let t;const n=this.index_;let r=!1,i=!1;do t=="."?r=!0:(t=="e"||t=="E")&&(i=!0),t=this.nextChar_();while(this.isNumeric_(t,r)||!i&&(t=="e"||t=="E")||i&&(t=="-"||t=="+"));return parseFloat(this.wkt.substring(n,this.index_--))}readText_(){let t;const n=this.index_;do t=this.nextChar_();while(this.isAlpha_(t));return this.wkt.substring(n,this.index_--).toUpperCase()}}class LVe{constructor(t){this.lexer_=t,this.token_={position:0,type:pi.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(t){return this.token_.type==t}match(t){const n=this.isTokenType(t);return n&&this.consume_(),n}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let t="XY";const n=this.token_;if(this.isTokenType(pi.TEXT)){const r=n.value;r===O3e?t="XYZ":r===M3e?t="XYM":r===kVe&&(t="XYZM"),t!=="XY"&&this.consume_()}return t}parseGeometryCollectionText_(){if(this.match(pi.LEFT_PAREN)){const t=[];do t.push(this.parseGeometry_());while(this.match(pi.COMMA));if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(pi.LEFT_PAREN)){const t=this.parsePoint_();if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(pi.LEFT_PAREN)){const t=this.parsePointList_();if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(pi.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(pi.LEFT_PAREN)){let t;if(this.token_.type==pi.LEFT_PAREN?t=this.parsePointTextList_():t=this.parsePointList_(),this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(pi.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(pi.LEFT_PAREN)){const t=this.parsePolygonTextList_();if(this.match(pi.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePoint_(){const t=[],n=this.layout_.length;for(let r=0;r0&&(i+=" "+s)}return r.length===0?i+" "+F3e:i+"("+r+")"}const eo=[null,"http://www.opengis.net/wms"];function W1(e){return aje(e[0].version,"1.3")>=0}const PVe=Xt(eo,{Service:Ue(oWe),Capability:Ue(sWe)}),B3e={Request:Ue(mWe),Exception:Ue(cWe),Layer:Ue(fWe)},NVe=Xt(eo,{...B3e,UserDefinedSymbolization:Ue(rWe)}),BVe=Xt(eo,B3e);class zVe extends UI{constructor(){super(),this.version=void 0}readFromNode(t){this.version=t.getAttribute("version").trim();const n=Rt({version:this.version},PVe,t,[]);return n||null}}const z3e={Name:Ue(Dt),Title:Ue(Dt),Abstract:Ue(Dt),KeywordList:Ue(V3e),OnlineResource:Ue(G1),ContactInformation:Ue(aWe),Fees:Ue(Dt),AccessConstraints:Ue(Dt)},jVe=Xt(eo,z3e),UVe=Xt(eo,{...z3e,LayerLimit:Ue(Ds),MaxWidth:Ue(Ds),MaxHeight:Ue(Ds)}),qVe=Xt(eo,{ContactPersonPrimary:Ue(lWe),ContactPosition:Ue(Dt),ContactAddress:Ue(uWe),ContactVoiceTelephone:Ue(Dt),ContactFacsimileTelephone:Ue(Dt),ContactElectronicMailAddress:Ue(Dt)}),HVe=Xt(eo,{ContactPerson:Ue(Dt),ContactOrganization:Ue(Dt)}),GVe=Xt(eo,{AddressType:Ue(Dt),Address:Ue(Dt),City:Ue(Dt),StateOrProvince:Ue(Dt),PostCode:Ue(Dt),Country:Ue(Dt)}),VVe=Xt(eo,{Format:kn(Dt)}),j3e={Name:Ue(Dt),Title:Ue(Dt),Abstract:Ue(Dt),KeywordList:Ue(V3e),BoundingBox:mi(H3e),Dimension:mi(dWe),Attribution:Ue(nWe),AuthorityURL:mi(vWe),Identifier:mi(Dt),MetadataURL:mi(bWe),DataURL:mi(nh),FeatureListURL:mi(nh),Style:mi(xWe),Layer:mi(SD)},U3e=Xt(eo,{...j3e,SRS:mi(Dt),Extent:Ue(hWe),ScaleHint:mi(pWe),LatLonBoundingBox:Ue((e,t)=>H3e(e,t,!1)),Layer:mi(SD)}),q3e=Xt(eo,{...j3e,CRS:mi(Dt),EX_GeographicBoundingBox:Ue(iWe),MinScaleDenominator:Ue(Ea),MaxScaleDenominator:Ue(Ea),Layer:mi(SD)}),WVe=Xt(eo,{Title:Ue(Dt),OnlineResource:Ue(G1),LogoURL:Ue(G3e)}),YVe=Xt(eo,{westBoundLongitude:Ue(Ea),eastBoundLongitude:Ue(Ea),southBoundLatitude:Ue(Ea),northBoundLatitude:Ue(Ea)}),XVe=Xt(eo,{GetCapabilities:Ue(iF),GetMap:Ue(iF),GetFeatureInfo:Ue(iF)}),ZVe=Xt(eo,{Format:mi(Dt),DCPType:mi(gWe)}),KVe=Xt(eo,{HTTP:Ue(yWe)}),JVe=Xt(eo,{Get:Ue(nh),Post:Ue(nh)}),QVe=Xt(eo,{Name:Ue(Dt),Title:Ue(Dt),Abstract:Ue(Dt),LegendURL:mi(G3e),StyleSheetURL:Ue(nh),StyleURL:Ue(nh)}),eWe=Xt(eo,{Format:Ue(Dt),OnlineResource:Ue(G1)}),tWe=Xt(eo,{Keyword:kn(Dt)});function nWe(e,t){return Rt({},WVe,e,t)}function rWe(e,t){return{SupportSLD:!!gc(e.getAttribute("UserDefinedSymbolization")),UserLayer:!!gc(e.getAttribute("UserLayer")),UserStyle:!!gc(e.getAttribute("UserStyle")),RemoteWFS:!!gc(e.getAttribute("RemoteWFS"))}}function H3e(e,t,n=!0){const r=[pf(e.getAttribute("minx")),pf(e.getAttribute("miny")),pf(e.getAttribute("maxx")),pf(e.getAttribute("maxy"))],i=[pf(e.getAttribute("resx")),pf(e.getAttribute("resy"))],s={extent:r,res:i};return n&&(W1(t)?s.crs=e.getAttribute("CRS"):s.srs=e.getAttribute("SRS")),s}function iWe(e,t){const n=Rt({},YVe,e,t);if(!n)return;const r=n.westBoundLongitude,i=n.southBoundLatitude,s=n.eastBoundLongitude,o=n.northBoundLatitude;if(!(r===void 0||i===void 0||s===void 0||o===void 0))return[r,i,s,o]}function sWe(e,t){return Rt({},W1(t)?BVe:NVe,e,t)}function oWe(e,t){return Rt({},W1(t)?UVe:jVe,e,t)}function aWe(e,t){return Rt({},qVe,e,t)}function lWe(e,t){return Rt({},HVe,e,t)}function uWe(e,t){return Rt({},GVe,e,t)}function cWe(e,t){return Rt([],VVe,e,t)}function fWe(e,t){const n=Rt({},W1(t)?q3e:U3e,e,t);return n.Layer===void 0?Object.assign(n,SD(e,t)):n}function SD(e,t){const n=W1(t),r=t[t.length-1],i=Rt({},n?q3e:U3e,e,t);if(!i)return;let s=gc(e.getAttribute("queryable"));s===void 0&&(s=r.queryable),i.queryable=s!==void 0?s:!1;let o=mp(e.getAttribute("cascaded"));o===void 0&&(o=r.cascaded),i.cascaded=o;let a=gc(e.getAttribute("opaque"));a===void 0&&(a=r.opaque),i.opaque=a!==void 0?a:!1;let l=gc(e.getAttribute("noSubsets"));l===void 0&&(l=r.noSubsets),i.noSubsets=l!==void 0?l:!1;let u=pf(e.getAttribute("fixedWidth"));u||(u=r.fixedWidth),i.fixedWidth=u;let f=pf(e.getAttribute("fixedHeight"));f||(f=r.fixedHeight),i.fixedHeight=f;const c=["Style","AuthorityURL"];n?c.push("CRS"):c.push("SRS","Dimension"),c.forEach(function(h){if(h in r){const p=i[h]||[];i[h]=p.concat(r[h])}});const d=["BoundingBox","Attribution"];return n?d.push("Dimension","EX_GeographicBoundingBox","MinScaleDenominator","MaxScaleDenominator"):d.push("LatLonBoundingBox","ScaleHint","Extent"),d.forEach(function(h){if(!(h in i)){const p=r[h];i[h]=p}}),i}function dWe(e,t){const n={name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol")};return W1(t)&&Object.assign(n,{default:e.getAttribute("default"),multipleValues:gc(e.getAttribute("multipleValues")),nearestValue:gc(e.getAttribute("nearestValue")),current:gc(e.getAttribute("current")),values:Dt(e)}),n}function hWe(e,t){return{name:e.getAttribute("name"),default:e.getAttribute("default"),nearestValue:gc(e.getAttribute("nearestValue"))}}function pWe(e,t){return{min:pf(e.getAttribute("min")),max:pf(e.getAttribute("max"))}}function nh(e,t){return Rt({},eWe,e,t)}function mWe(e,t){return Rt({},XVe,e,t)}function gWe(e,t){return Rt({},KVe,e,t)}function yWe(e,t){return Rt({},JVe,e,t)}function iF(e,t){return Rt({},ZVe,e,t)}function G3e(e,t){const n=nh(e,t);if(n){const r=[mp(e.getAttribute("width")),mp(e.getAttribute("height"))];return n.size=r,n}}function vWe(e,t){const n=nh(e,t);if(n)return n.name=e.getAttribute("name"),n}function bWe(e,t){const n=nh(e,t);if(n)return n.type=e.getAttribute("type"),n}function xWe(e,t){return Rt({},QVe,e,t)}function V3e(e,t){return Rt([],tWe,e,t)}const wWe="_feature",_We="_layer";class EWe extends oD{constructor(t){super(),t=t||{},this.featureNS_="http://mapserver.gis.umn.edu/mapserver",this.gmlFormat_=new hr,this.layers_=t.layers?t.layers:null}getLayers(){return this.layers_}setLayers(t){this.layers_=t}readFeatures_(t,n){t.setAttribute("namespaceURI",this.featureNS_);const r=t.localName;let i=[];if(t.childNodes.length===0)return i;if(r=="msGMLOutput")for(let s=0,o=t.childNodes.length;s{t.getState()==="ready"&&(t.removeEventListener("change",n),this.setStyle(this.style_))};t.addEventListener("change",n)}else this.setStyle(this.style_)}getSourceBandCount_(){const t=Number.MAX_SAFE_INTEGER,n=this.getSources([-t,-t,t,t],t);return n&&n.length&&"bandCount"in n[0]?n[0].bandCount:4}createRenderer(){const t=B1e(this.style_,this.getSourceBandCount_());return new mYe(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.getCacheSize(),paletteTextures:t.paletteTextures})}renderSources(t,n){const r=this.getRenderer();let i;for(let s=0,o=n.length;s{u.getState()=="ready"&&(u.removeEventListener("change",c),this.changed())};u.addEventListener("change",c)}s=s&&f=="ready"}const o=this.renderSources(t,i);if(this.getRenderer().renderComplete&&s)return this.renderedResolution_=r.resolution,o;if(this.renderedResolution_>.5*r.resolution){const a=this.getSources(t.extent,this.renderedResolution_).filter(l=>!i.includes(l));if(a.length>0)return this.renderSources(t,a)}return o}setStyle(t){if(this.styleVariables_=t.variables||{},this.style_=t,this.hasRenderer()){const n=B1e(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()}}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}}E3.prototype.dispose;class $Ye{constructor(){this.globalCounter_=0,this.refToFeature_=new Map,this.uidToRef_=new Map,this.freeGlobalRef_=[],this.polygonBatch={entries:{},geometriesCount:0,verticesCount:0,ringsCount:0},this.pointBatch={entries:{},geometriesCount:0},this.lineStringBatch={entries:{},geometriesCount:0,verticesCount:0}}addFeatures(t,n){for(let r=0;r0?u[f-1]:null,p=h?h[h.length-1]:0,g=d[d.length-1];d=p>0?d.map(v=>v-p):d,this.addCoordinates_("Polygon",n.slice(p,g),d,i,s,o,a)}break}case"MultiLineString":{const u=r;for(let f=0,c=u.length;f0?u[f-1]:0;this.addCoordinates_("LineString",n.slice(d,u[f]),null,i,s,o,a)}break}case"MultiPoint":for(let u=0,f=n.length;u1){this.addCoordinates_("MultiPolygon",n,d,i,s,o,a);return}}this.polygonBatch.entries[s]||(this.polygonBatch.entries[s]=this.addRefToEntry_(s,{feature:i,flatCoordss:[],verticesCount:0,ringsCount:0,ringsVerticesCounts:[]})),l=n.length/o;const f=r.length,c=r.map((d,h,p)=>h>0?(d-p[h-1])/o:d/o);this.polygonBatch.verticesCount+=l,this.polygonBatch.ringsCount+=f,this.polygonBatch.geometriesCount++,this.polygonBatch.entries[s].flatCoordss.push(IYe(n,o)),this.polygonBatch.entries[s].ringsVerticesCounts.push(c),this.polygonBatch.entries[s].verticesCount+=l,this.polygonBatch.entries[s].ringsCount+=f;for(let d=0,h=u.length;d0?u[d-1]:0;this.addCoordinates_("LinearRing",n.slice(p,u[d]),null,i,s,o,a)}break}case"Point":this.pointBatch.entries[s]||(this.pointBatch.entries[s]=this.addRefToEntry_(s,{feature:i,flatCoordss:[]})),this.pointBatch.geometriesCount++,this.pointBatch.entries[s].flatCoordss.push(n);break;case"LineString":case"LinearRing":this.lineStringBatch.entries[s]||(this.lineStringBatch.entries[s]=this.addRefToEntry_(s,{feature:i,flatCoordss:[],verticesCount:0})),l=n.length/o,this.lineStringBatch.verticesCount+=l,this.lineStringBatch.geometriesCount++,this.lineStringBatch.entries[s].flatCoordss.push(PYe(n,o,a)),this.lineStringBatch.entries[s].verticesCount+=l;break}}addRefToEntry_(t,n){const r=this.uidToRef_.get(t),i=r||this.freeGlobalRef_.pop()||++this.globalCounter_;return n.ref=i,r||(this.refToFeature_.set(i,n.feature),this.uidToRef_.set(t,i)),n}returnRef_(t,n){if(!t)throw new Error("This feature has no ref: "+n);this.refToFeature_.delete(t),this.uidToRef_.delete(n),this.freeGlobalRef_.push(t)}changeFeature(t){this.removeFeature(t);const n=t.getGeometry();n&&this.addGeometry_(n,t)}removeFeature(t){let n;n=this.clearFeatureEntryInPointBatch_(t)||n,n=this.clearFeatureEntryInPolygonBatch_(t)||n,n=this.clearFeatureEntryInLineStringBatch_(t)||n,n&&this.returnRef_(n.ref,Ei(n.feature))}clear(){this.polygonBatch.entries={},this.polygonBatch.geometriesCount=0,this.polygonBatch.verticesCount=0,this.polygonBatch.ringsCount=0,this.lineStringBatch.entries={},this.lineStringBatch.geometriesCount=0,this.lineStringBatch.verticesCount=0,this.pointBatch.entries={},this.pointBatch.geometriesCount=0,this.globalCounter_=0,this.freeGlobalRef_=[],this.refToFeature_.clear(),this.uidToRef_.clear()}getFeatureFromRef(t){return this.refToFeature_.get(t)}}function IYe(e,t){return t===2?e:e.filter((n,r)=>r%t<2)}function PYe(e,t,n){return t===3&&n==="XYM"?e:t===4?e.filter((r,i)=>i%t!==2):t===3?e.map((r,i)=>i%t!==2?r:0):new Array(e.length*1.5).fill(0).map((r,i)=>i%3===2?0:e[Math.round(i/1.5)])}function rP(e,t,n,r){let i=0;for(const s in t){const o=t[s],a=o.callback.call(n,n.feature);e[r+i++]=a[0]??a,!(!o.size||o.size===1)&&(e[r+i++]=a[1],!(o.size<3)&&(e[r+i++]=a[2],!(o.size<4)&&(e[r+i++]=a[3])))}return i}function AD(e){return Object.keys(e).reduce((t,n)=>t+(e[n].size||1),0)}function NYe(e,t,n,r){const i=(2+AD(n))*e.geometriesCount;(!t||t.length!==i)&&(t=new Float32Array(i));const s=[];let o=0;for(const a in e.entries){const l=e.entries[a];for(let u=0,f=l.flatCoordss.length;u({name:`a_${u}`,size:f.size||1,type:$s.FLOAT}));this.polygonAttributesDesc_=[{name:nf.POSITION,size:2,type:$s.FLOAT},...l],this.lineStringAttributesDesc_=[{name:nf.SEGMENT_START,size:2,type:$s.FLOAT},{name:nf.MEASURE_START,size:1,type:$s.FLOAT},{name:nf.SEGMENT_END,size:2,type:$s.FLOAT},{name:nf.MEASURE_END,size:1,type:$s.FLOAT},{name:nf.JOIN_ANGLES,size:2,type:$s.FLOAT},{name:nf.DISTANCE,size:1,type:$s.FLOAT},{name:nf.PARAMETERS,size:1,type:$s.FLOAT},...l],this.pointAttributesDesc_=[{name:nf.POSITION,size:2,type:$s.FLOAT},{name:nf.INDEX,size:1,type:$s.FLOAT},...l],this.setHelper(r)}async generateBuffers(t,n){const r=this.generateRenderInstructions_(t,n),[i,s,o]=await Promise.all([this.generateBuffersForType_(r.polygonInstructions,"Polygon",n),this.generateBuffersForType_(r.lineStringInstructions,"LineString",n),this.generateBuffersForType_(r.pointInstructions,"Point",n)]),a=V_(Ko(),n);return{polygonBuffers:i,lineStringBuffers:s,pointBuffers:o,invertVerticesTransform:a}}generateRenderInstructions_(t,n){const r=this.hasFill_?zYe(t.polygonBatch,new Float32Array(0),this.customAttributes_,n):null,i=this.hasStroke_?BYe(t.lineStringBatch,new Float32Array(0),this.customAttributes_,n):null,s=this.hasSymbol_?NYe(t.pointBatch,new Float32Array(0),this.customAttributes_,n):null;return{polygonInstructions:r,lineStringInstructions:i,pointInstructions:s}}generateBuffersForType_(t,n,r){if(t===null)return null;const i=UYe++;let s;switch(n){case"Polygon":s=m_.GENERATE_POLYGON_BUFFERS;break;case"LineString":s=m_.GENERATE_LINE_STRING_BUFFERS;break;case"Point":s=m_.GENERATE_POINT_BUFFERS;break}const o={id:i,type:s,renderInstructions:t.buffer,renderInstructionsTransform:r,customAttributesSize:AD(this.customAttributes_)};return lF.postMessage(o,[t.buffer]),t=null,new Promise(a=>{const l=u=>{const f=u.data;if(f.id!==i||(lF.removeEventListener("message",l),!this.helper_.getGL()))return;const c=new Zv(oE,t2).fromArrayBuffer(f.vertexBuffer),d=new Zv(aE,t2).fromArrayBuffer(f.indexBuffer);this.helper_.flushBufferData(c),this.helper_.flushBufferData(d),a([d,c])};lF.addEventListener("message",l)})}render(t,n,r){this.hasFill_&&this.renderInternal_(t.polygonBuffers[0],t.polygonBuffers[1],this.fillProgram_,this.polygonAttributesDesc_,n,r),this.hasStroke_&&this.renderInternal_(t.lineStringBuffers[0],t.lineStringBuffers[1],this.strokeProgram_,this.lineStringAttributesDesc_,n,r),this.hasSymbol_&&this.renderInternal_(t.pointBuffers[0],t.pointBuffers[1],this.symbolProgram_,this.pointAttributesDesc_,n,r)}renderInternal_(t,n,r,i,s,o){const a=t.getSize();a!==0&&(this.helper_.useProgram(r,s),this.helper_.bindBuffer(n),this.helper_.bindBuffer(t),this.helper_.enableAttributes(i),o(),this.helper_.drawElements(0,a))}setHelper(t,n=null){this.helper_=t,this.hasFill_&&(this.fillProgram_=this.helper_.getProgram(this.fillFragmentShader_,this.fillVertexShader_)),this.hasStroke_&&(this.strokeProgram_=this.helper_.getProgram(this.strokeFragmentShader_,this.strokeVertexShader_)),this.hasSymbol_&&(this.symbolProgram_=this.helper_.getProgram(this.symbolFragmentShader_,this.symbolVertexShader_)),this.helper_.addUniforms(this.uniforms_),n&&(n.polygonBuffers&&(this.helper_.flushBufferData(n.polygonBuffers[0]),this.helper_.flushBufferData(n.polygonBuffers[1])),n.lineStringBuffers&&(this.helper_.flushBufferData(n.lineStringBuffers[0]),this.helper_.flushBufferData(n.lineStringBuffers[1])),n.pointBuffers&&(this.helper_.flushBufferData(n.pointBuffers[0]),this.helper_.flushBufferData(n.pointBuffers[1])))}}const Oy={...cf,RENDER_EXTENT:"u_renderExtent",PATTERN_ORIGIN:"u_patternOrigin",GLOBAL_ALPHA:"u_globalAlpha"};class HYe extends lE{constructor(t,n){const r={[Oy.RENDER_EXTENT]:[0,0,0,0],[Oy.PATTERN_ORIGIN]:[0,0],[Oy.GLOBAL_ALPHA]:1};super(t,{uniforms:r,postProcesses:n.postProcesses}),this.hitDetectionEnabled_=!n.disableHitDetection,this.hitRenderTarget_,this.sourceRevision_=-1,this.previousExtent_=uD(),this.currentTransform_=Ko(),this.tmpCoords_=[0,0],this.tmpTransform_=Ko(),this.tmpMat4_=mI(),this.currentFrameStateTransform_=Ko(),this.styleVariables_={},this.styles_=[],this.styleRenderers_=[],this.buffers_=[],this.applyOptions_(n),this.batch_=new $Ye,this.initialFeaturesAdded_=!1,this.sourceListenKeys_=null}addInitialFeatures_(t){const n=this.getLayer().getSource();let r;this.batch_.addFeatures(n.getFeatures(),r),this.sourceListenKeys_=[gp(n,yp.ADDFEATURE,this.handleSourceFeatureAdded_.bind(this,r)),gp(n,yp.CHANGEFEATURE,this.handleSourceFeatureChanged_,this),gp(n,yp.REMOVEFEATURE,this.handleSourceFeatureDelete_,this),gp(n,yp.CLEAR,this.handleSourceFeatureClear_,this)]}applyOptions_(t){this.styleVariables_=t.variables,this.styles_=Array.isArray(t.style)?t.style:[t.style]}createRenderers_(){this.buffers_=[],this.styleRenderers_=this.styles_.map(t=>new qYe(t,this.styleVariables_,this.helper,this.hitDetectionEnabled_))}reset(t){this.applyOptions_(t),this.helper&&this.createRenderers_(),super.reset(t)}afterHelperCreated(){this.styleRenderers_.length?this.styleRenderers_.forEach((t,n)=>t.setHelper(this.helper,this.buffers_[n])):this.createRenderers_(),this.hitDetectionEnabled_&&(this.hitRenderTarget_=new K3e(this.helper))}handleSourceFeatureAdded_(t,n){const r=n.feature;this.batch_.addFeature(r,t)}handleSourceFeatureChanged_(t){const n=t.feature;this.batch_.changeFeature(n)}handleSourceFeatureDelete_(t){const n=t.feature;this.batch_.removeFeature(n)}handleSourceFeatureClear_(){this.batch_.clear()}applyUniforms_(t){Rje(this.tmpTransform_,this.currentFrameStateTransform_),U_(this.tmpTransform_,t),this.helper.setUniformMatrixValue(Oy.PROJECTION_MATRIX,h3(this.tmpMat4_,this.tmpTransform_)),V_(this.tmpTransform_,this.tmpTransform_),this.helper.setUniformMatrixValue(Oy.SCREEN_TO_WORLD_MATRIX,h3(this.tmpMat4_,this.tmpTransform_)),this.tmpCoords_[0]=0,this.tmpCoords_[1]=0,V_(this.tmpTransform_,t),eh(this.tmpTransform_,this.tmpCoords_),this.helper.setUniformFloatVec2(Oy.PATTERN_ORIGIN,this.tmpCoords_)}renderFrame(t){const n=this.helper.getGL();this.preRender(n,t);const[r,i,s]=tke(t,this.getLayer());this.helper.prepareDraw(t),this.renderWorlds(t,!1,r,i,s),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);const o=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderWorlds(t,!0,r,i,s),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),o}prepareFrameInternal(t){this.initialFeaturesAdded_||(this.addInitialFeatures_(t),this.initialFeaturesAdded_=!0);const n=this.getLayer(),r=n.getSource(),i=t.viewState,s=!t.viewHints[zp.ANIMATING]&&!t.viewHints[zp.INTERACTING],o=!H_(this.previousExtent_,t.extent),a=this.sourceRevision_p.generateBuffers(this.batch_,d).then(v=>{this.buffers_[g]&&this.disposeBuffers(this.buffers_[g]),this.buffers_[g]=v}));Promise.all(h).then(()=>{this.ready=!0,this.getLayer().changed()}),this.previousExtent_=t.extent.slice()}return!0}renderWorlds(t,n,r,i,s){let o=r;n&&(this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0));do{this.helper.makeProjectionTransform(t,this.currentFrameStateTransform_),vI(this.currentFrameStateTransform_,o*s,0);for(let a=0,l=this.styleRenderers_.length;a{this.applyUniforms_(f.invertVerticesTransform),this.helper.applyHitDetectionUniform(n)})}}while(++othis.helper.deleteBuffer(n)),t.lineStringBuffers&&t.lineStringBuffers.filter(Boolean).forEach(n=>this.helper.deleteBuffer(n)),t.polygonBuffers&&t.polygonBuffers.filter(Boolean).forEach(n=>this.helper.deleteBuffer(n))}disposeInternal(){this.buffers_.forEach(t=>{this.disposeBuffers(t)}),this.sourceListenKeys_&&(this.sourceListenKeys_.forEach(function(t){MCe(t)}),this.sourceListenKeys_=null),super.disposeInternal()}}class GYe extends _I{constructor(t){const n=Object.assign({},t);super(n),this.styleVariables_=t.variables||{},this.style_=t.style,this.hitDetectionDisabled_=!!t.disableHitDetection}createRenderer(){return new HYe(this,{style:this.style_,variables:this.styleVariables_,disableHitDetection:this.hitDetectionDisabled_})}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}setStyle(t){this.style=t,this.clearRenderer(),this.changed()}}const VYe=Object.freeze(Object.defineProperty({__proto__:null,Graticule:rHe,Group:p3,Heatmap:EYe,Image:EI,Layer:_I,Tile:m3,Vector:cI,VectorImage:CYe,VectorTile:jCe,WebGLPoints:MYe,WebGLTile:E3,WebGLVector:GYe},Symbol.toStringTag,{value:"Module"}));function WYe(e){const t=e[0],n=new Array(t);let r=1<>=1;return n.join("")}const YYe='Terms of Use';class XYe extends hh{constructor(t){const n=t.hidpi!==void 0?t.hidpi:!1;super({cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:t.interpolate,projection:oi("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.hidpi_=n,this.culture_=t.culture!==void 0?t.culture:"en-us",this.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,this.apiKey_=t.key,this.imagerySet_=t.imagerySet,this.placeholderTiles_=t.placeholderTiles;const r="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_;fetch(r).then(i=>i.json()).then(i=>this.handleImageryMetadataResponse(i))}getApiKey(){return this.apiKey_}getImagerySet(){return this.imagerySet_}handleImageryMetadataResponse(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState("error");return}const n=t.resourceSets[0].resources[0],r=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,i=this.getProjection(),s=nE(i),o=this.hidpi_?2:1,a=n.imageWidth==n.imageHeight?n.imageWidth/o:[n.imageWidth/o,n.imageHeight/o],l=rE({extent:s,minZoom:n.zoomMin,maxZoom:r,tileSize:a});this.tileGrid=l;const u=this.culture_,f=this.hidpi_,c=this.placeholderTiles_;if(this.tileUrlFunction=SI(n.imageUrlSubdomains.map(function(d){const h=[0,0,0],p=n.imageUrl.replace("{subdomain}",d).replace("{culture}",u);return function(g,v,y){if(!g)return;H4(g[0],g[1],g[2],h);const b=new URL(p.replace("{quadkey}",WYe(h))),w=b.searchParams;return f&&(w.set("dpi","d1"),w.set("device","mobile")),c===!0?w.delete("n"):c===!1&&w.set("n","z"),b.toString()}})),n.imageryProviders){const d=AI(oi("EPSG:4326"),this.getProjection());this.setAttributions(h=>{const p=[],g=h.viewState,v=this.getTileGrid(),y=v.getZForResolution(g.resolution,this.zDirection),w=v.getTileCoordForCoordAndZ(g.center,y)[0];return n.imageryProviders.map(function(E){let A=!1;const D=E.coverageAreas;for(let T=0,k=D.length;T=R.zoomMin&&w<=R.zoomMax){const O=R.bbox,B=[O[1],O[0],O[3],O[2]],K=Vv(B,d);if(Gv(K,h.extent)){A=!0;break}}}A&&p.push(E.attribution)}),p.push(YYe),p})}this.setState("ready")}}class ZYe extends X_{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,maxZoom:t.maxZoom!==void 0?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,transition:t.transition,wrapX:t.wrapX,zDirection:t.zDirection}),this.account_=t.account,this.mapId_=t.map||"",this.config_=t.config||{},this.templateCache_={},this.initializeMap_()}getConfig(){return this.config_}updateConfig(t){Object.assign(this.config_,t),this.initializeMap_()}setConfig(t){this.config_=t||{},this.initializeMap_()}initializeMap_(){const t=JSON.stringify(this.config_);if(this.templateCache_[t]){this.applyTemplate_(this.templateCache_[t]);return}let n="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(n+="/named/"+this.mapId_);const r=new XMLHttpRequest;r.addEventListener("load",this.handleInitResponse_.bind(this,t)),r.addEventListener("error",this.handleInitError_.bind(this)),r.open("POST",n),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(this.config_))}handleInitResponse_(t,n){const r=n.target;if(!r.status||r.status>=200&&r.status<300){let i;try{i=JSON.parse(r.responseText)}catch{this.setState("error");return}this.applyTemplate_(i),this.templateCache_[t]=i,this.setState("ready")}else this.setState("error")}handleInitError_(t){this.setState("error")}applyTemplate_(t){const n="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(n)}}class KYe extends Q2{constructor(t){t=t||{},super({attributions:t.attributions,wrapX:t.wrapX}),this.resolution=void 0,this.distance=t.distance!==void 0?t.distance:20,this.minDistance=t.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=t.geometryFunction||function(n){const r=n.getGeometry();return kc(!r||r.getType()==="Point","The default `geometryFunction` can only handle `Point` or null geometries"),r},this.createCustomCluster_=t.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(t.source||null)}clear(t){this.features.length=0,super.clear(t)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(t,n,r){var i;(i=this.source)==null||i.loadFeatures(t,n,r),n!==this.resolution&&(this.resolution=n,this.refresh())}setDistance(t){this.updateDistance(t,this.minDistance)}setMinDistance(t){this.updateDistance(this.distance,t)}getMinDistance(){return this.minDistance}setSource(t){this.source&&this.source.removeEventListener(kl.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(kl.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(t,n){const r=t===0?0:Math.min(n,t)/t,i=t!==this.distance||this.interpolationRatio!==r;this.distance=t,this.minDistance=n,this.interpolationRatio=r,i&&this.refresh()}cluster(){if(this.resolution===void 0||!this.source)return;const t=uD(),n=this.distance*this.resolution,r=this.source.getFeatures(),i={};for(let s=0,o=r.length;s=0;--a){const l=this.geometryFunction(t[a]);l?Oje(r,l.getCoordinates()):t.splice(a,1)}Mje(r,1/t.length);const i=Dp(n),s=this.interpolationRatio,o=new mc([r[0]*(1-s)+i[0]*s,r[1]*(1-s)+i[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(o,t):new au({geometry:o,features:t})}}class uE extends fD{constructor(t){const n=t.projection===void 0?"EPSG:3857":t.projection;let r=t.tileGrid;r===void 0&&n&&(r=rE({extent:nE(n),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize})),super({cacheSize:.1,attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:n,tileGrid:r,state:t.state,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0,this.tileSize_=t.tileSize?wc(t.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=t.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=t.bandCount===void 0?4:t.bandCount,this.tileGridForProjection_={},this.crossOrigin_=t.crossOrigin||"anonymous",this.transformMatrix=null}setTileSizes(t){this.tileSizes_=t}getTileSize(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;const n=this.getTileGrid();return n?wc(n.getTileSize(t)):[256,256]}getGutterForProjection(t){const n=this.getProjection();return(!n||mC(n,t))&&!this.transformMatrix?this.gutter_:0}setLoader(t){this.loader_=t}getReprojTile_(t,n,r,i,s){const o=this.tileGrid||this.getTileGridForProjection(s||i),a=Math.max.apply(null,o.getResolutions().map((h,p)=>{const g=wc(o.getTileSize(p)),v=this.getTileSize(p);return Math.max(v[0]/g[0],v[1]/g[1])})),l=this.getTileGridForProjection(i),u=[t,n,r],f=this.getTileCoordForTileUrlFunction(u,i),c=Object.assign({sourceProj:s||i,sourceTileGrid:o,targetProj:i,targetTileGrid:l,tileCoord:u,wrappedTileCoord:f,pixelRatio:a,gutter:this.gutter_,getTileFunction:(h,p,g,v)=>this.getTile(h,p,g,v),transformMatrix:this.transformMatrix},this.tileOptions),d=new wI(c);return d.key=this.getKey(),d}getTile(t,n,r,i,s){var w;const o=this.getProjection();if(s&&(o&&!mC(o,s)||this.transformMatrix))return this.getReprojTile_(t,n,r,s,o);const a=this.getTileSize(t),l=this.loader_,u=new AbortController,f={signal:u.signal,crossOrigin:this.crossOrigin_},c=this.getTileCoordForTileUrlFunction([t,n,r]);if(!c)return null;const d=c[0],h=c[1],p=c[2],g=(w=this.getTileGrid())==null?void 0:w.getFullTileRange(d);g&&(f.maxY=g.getHeight()-1);function v(){return Pje(function(){return l(d,h,p,f)})}const y=Object.assign({tileCoord:[t,n,r],loader:v,size:a,controller:u},this.tileOptions),b=new $Ce(y);return b.key=this.getKey(),b.addEventListener(kl.CHANGE,this.handleTileChange_),b}handleTileChange_(t){const n=t.target,r=Ei(n),i=n.getState();let s;i==Ts.LOADING?(this.tileLoadingKeys_[r]=!0,s=JR.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],s=i==Ts.ERROR?JR.TILELOADERROR:i==Ts.LOADED?JR.TILELOADEND:void 0),s&&this.dispatchEvent(new $je(s,n))}getTileGridForProjection(t){const n=this.getProjection();if(this.tileGrid&&(!n||mC(n,t))&&!this.transformMatrix)return this.tileGrid;const r=Ei(t);return r in this.tileGridForProjection_||(this.tileGridForProjection_[r]=Ije(t)),this.tileGridForProjection_[r]}setTileGridForProjection(t,n){const r=oi(t);if(r){const i=Ei(r);i in this.tileGridForProjection_||(this.tileGridForProjection_[i]=n)}}}function oa(e){return(t,...n)=>JYe(e,t,n)}function X1(e,t){return oa(cke(e,t).get)}const{apply:JYe,construct:_jt,defineProperty:Ejt,get:Sjt,getOwnPropertyDescriptor:cke,getPrototypeOf:iP,has:Ajt,ownKeys:QYe,set:Cjt,setPrototypeOf:kjt}=Reflect,{iterator:cE,species:Tjt,toStringTag:eXe,for:Djt}=Symbol,tXe=Object,{create:sP,defineProperty:nXe,freeze:Ljt,is:Rjt}=tXe,rXe=Array,iXe=rXe.prototype,fke=iXe[cE],sXe=oa(fke),dke=ArrayBuffer,oXe=dke.prototype;X1(oXe,"byteLength");const z1e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;z1e&&X1(z1e.prototype,"byteLength");const hke=iP(Uint8Array);hke.from;const rl=hke.prototype;rl[cE];oa(rl.keys);oa(rl.values);oa(rl.entries);oa(rl.set);oa(rl.reverse);oa(rl.fill);oa(rl.copyWithin);oa(rl.sort);oa(rl.slice);oa(rl.subarray);X1(rl,"buffer");X1(rl,"byteOffset");X1(rl,"length");X1(rl,eXe);const aXe=Uint8Array,pke=Uint16Array,oP=Uint32Array,lXe=Float32Array,n2=iP([][cE]()),mke=oa(n2.next),uXe=oa(function*(){}().next),cXe=iP(n2),fXe=DataView.prototype,dXe=oa(fXe.getUint16),aP=WeakMap,gke=aP.prototype,yke=oa(gke.get),hXe=oa(gke.set),vke=new aP,pXe=sP(null,{next:{value:function(){const t=yke(vke,this);return mke(t)}},[cE]:{value:function(){return this}}});function mXe(e){if(e[cE]===fke&&n2.next===mke)return e;const t=sP(pXe);return hXe(vke,t,sXe(e)),t}const gXe=new aP,yXe=sP(cXe,{next:{value:function(){const t=yke(gXe,this);return uXe(t)},writable:!0,configurable:!0}});for(const e of QYe(n2))e!=="next"&&nXe(yXe,e,cke(n2,e));const bke=new dke(4),vXe=new lXe(bke),bXe=new oP(bke),rf=new pke(512),sf=new aXe(512);for(let e=0;e<256;++e){const t=e-127;t<-24?(rf[e]=0,rf[e|256]=32768,sf[e]=24,sf[e|256]=24):t<-14?(rf[e]=1024>>-t-14,rf[e|256]=1024>>-t-14|32768,sf[e]=-t-1,sf[e|256]=-t-1):t<=15?(rf[e]=t+15<<10,rf[e|256]=t+15<<10|32768,sf[e]=13,sf[e|256]=13):t<128?(rf[e]=31744,rf[e|256]=64512,sf[e]=24,sf[e|256]=24):(rf[e]=31744,rf[e|256]=64512,sf[e]=13,sf[e|256]=13)}const lP=new oP(2048);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(t&8388608);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,lP[e]=t|n}for(let e=1024;e<2048;++e)lP[e]=939524096+(e-1024<<13);const Z1=new oP(64);for(let e=1;e<31;++e)Z1[e]=e<<23;Z1[31]=1199570944;Z1[32]=2147483648;for(let e=33;e<63;++e)Z1[e]=2147483648+(e-32<<23);Z1[63]=3347054592;const xke=new pke(64);for(let e=1;e<64;++e)e!==32&&(xke[e]=1024);function xXe(e){const t=e>>10;return bXe[0]=lP[xke[t]+(e&1023)]+Z1[t],vXe[0]}function wke(e,t,...n){return xXe(dXe(e,t,...mXe(n)))}var tA={exports:{}},j1e;function wXe(){if(j1e)return tA.exports;j1e=1;function e(t,n,r){const i=r&&r.debug||!1;i&&console.log("[xml-utils] getting "+n+" in "+t);const s=typeof t=="object"?t.outer:t,o=s.slice(0,s.indexOf(">")+1),a=['"',"'"];for(let l=0;l/]`,u);if(a&&console.log("[xml-utils] start:",f),f===-1)return;const c=i.slice(f+s.length);let d=t(c,"^[^<]*[ /]>",0);const h=d!==-1&&c[d-1]==="/";if(a&&console.log("[xml-utils] selfClosing:",h),h===!1)if(l){let y=0,b=1,w=0;for(;(d=t(c,"[ /]"+s+">",y))!==-1;){const E=c.substring(y,d+1);if(b+=n(E,"<"+s+`[ - >]`),w+=n(E,""),w>=b)break;y=d}}else d=t(c,"[ /]"+s+">",0);const p=f+s.length+d+1;if(a&&console.log("[xml-utils] end:",p),p===-1)return;const g=i.slice(f,p);let v;return h?v=null:v=g.slice(g.indexOf(">")+1,g.lastIndexOf("<")),{inner:v,outer:g,start:f,end:p}}return rA.exports=r,rA.exports.default=r,rA.exports}var V1e;function kXe(){if(V1e)return nA.exports;V1e=1;const e=CXe();function t(n,r,i){const s=[],o=i&&i.debug||!1,a=i&&typeof i.nested=="boolean"?i.nested:!0;let l=i&&i.startIndex||0,u;for(;u=e(n,r,{debug:o,startIndex:l});)a?l=u.start+1+r.length:l=u.end,s.push(u);return o&&console.log("findTagsByName found",s.length,"tags"),s}return nA.exports=t,nA.exports.default=t,nA.exports}var TXe=kXe();const DXe=sa(TXe),g_={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"},lf={};for(const e in g_)g_.hasOwnProperty(e)&&(lf[g_[e]]=parseInt(e,10));const LXe=[lf.BitsPerSample,lf.ExtraSamples,lf.SampleFormat,lf.StripByteCounts,lf.StripOffsets,lf.StripRowCounts,lf.TileByteCounts,lf.TileOffsets,lf.SubIFDs],cF={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"},fr={};for(const e in cF)cF.hasOwnProperty(e)&&(fr[cF[e]]=parseInt(e,10));const yl={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},RXe={Unspecified:0,Assocalpha:1,Unassalpha:2},Fjt={Version:0,AddCompression:1},Ojt={None:0,Deflate:1,Zstandard:2},FXe={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 OXe(e,t){const{width:n,height:r}=e,i=new Uint8Array(n*r*3);let s;for(let o=0,a=0;o>24,l=e[i+2]<<24>>24;let u=(o+16)/116,f=a/500+u,c=u-l/200,d,h,p;f=NXe*(f*f*f>.008856?f*f*f:(f-16/116)/7.787),u=BXe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),c=zXe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),d=f*3.2406+u*-1.5372+c*-.4986,h=f*-.9689+u*1.8758+c*.0415,p=f*.0557+u*-.204+c*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:12.92*d,h=h>.0031308?1.055*h**(1/2.4)-.055:12.92*h,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,r[s]=Math.max(0,Math.min(1,d))*255,r[s+1]=Math.max(0,Math.min(1,h))*255,r[s+2]=Math.max(0,Math.min(1,p))*255}return r}const _ke=new Map;function am(e,t){Array.isArray(e)||(e=[e]),e.forEach(n=>_ke.set(n,t))}async function Eke(e){const t=_ke.get(e.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${e.Compression}`);const n=await t();return new n(e)}am([void 0,1],()=>om(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default));am(5,()=>om(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(e=>e.default));am(6,()=>{throw new Error("old style JPEG compression is not supported.")});am(7,()=>om(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(e=>e.default));am([8,32946],()=>om(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(e=>e.default));am(32773,()=>om(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(e=>e.default));am(34887,()=>om(()=>import("./lerc-C3_7oN2L.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url).then(async e=>(await e.zstd.init(),e)).then(e=>e.default));am(50001,()=>om(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([20,1]),import.meta.url).then(e=>e.default));function CD(e,t,n,r=1){return new(Object.getPrototypeOf(e)).constructor(t*n*r)}function UXe(e,t,n,r,i){const s=t/r,o=n/i;return e.map(a=>{const l=CD(a,r,i);for(let u=0;u{const l=CD(a,r,i);for(let u=0;u>8-i-D&c;else if(D+i<=16)f[E]=a.getUint16(A)>>16-i-D&c;else if(D+i<=24){const T=a.getUint16(A)<<8|a.getUint8(A+2);f[E]=T>>24-i-D&c}else f[E]=a.getUint32(A)>>32-i-D&c}}}}return f.buffer}class Ske{constructor(t,n,r,i,s,o){this.fileDirectory=t,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=s?{}:null,this.isTiled=!t.StripOffsets;const a=t.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(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let n=0;n=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const n=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,r=this.fileDirectory.BitsPerSample[t];switch(n){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(i,s){return wke(this,i,s)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,n){const r=this.getSampleFormat(t),i=this.getBitsPerSample(t);return n6(r,i,n)}async getTileOrStrip(t,n,r,i,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=n*o+t:this.planarConfiguration===2&&(l=r*o*a+n*o+t);let f,c;this.isTiled?(f=this.fileDirectory.TileOffsets[l],c=this.fileDirectory.TileByteCounts[l]):(f=this.fileDirectory.StripOffsets[l],c=this.fileDirectory.StripByteCounts[l]);const d=(await this.source.fetch([{offset:f,length:c}],s))[0];let h;return u===null||!u[l]?(h=(async()=>{let p=await i.decode(this.fileDirectory,d);const g=this.getSampleFormat(),v=this.getBitsPerSample();return XXe(g,v)&&(p=ZXe(p,g,this.planarConfiguration,this.getSamplesPerPixel(),v,this.getTileWidth(),this.getBlockHeight(n))),p})(),u!==null&&(u[l]=h)):h=u[l],{x:t,y:n,sample:r,data:await h}}async _readRaster(t,n,r,i,s,o,a,l,u){const f=this.getTileWidth(),c=this.getTileHeight(),d=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(t[0]/f),0),g=Math.min(Math.ceil(t[2]/f),Math.ceil(d/f)),v=Math.max(Math.floor(t[1]/c),0),y=Math.min(Math.ceil(t[3]/c),Math.ceil(h/c)),b=t[2]-t[0];let w=this.getBytesPerPixel();const E=[],A=[];for(let k=0;k{const U=I.data,q=new DataView(U),Y=this.getBlockHeight(I.y),X=I.y*c,te=I.x*f,le=X+Y,ee=(I.x+1)*f,z=A[K],he=Math.min(Y,Y-(le-t[3]),h-X),de=Math.min(f,f-(ee-t[2]),d-te);for(let ze=Math.max(0,t[1]-X);zef[2]||f[1]>f[3])throw new Error("Invalid subsets");const c=f[2]-f[0],d=f[3]-f[1],h=c*d,p=this.getSamplesPerPixel();if(!n||!n.length)for(let b=0;b=p)return Promise.reject(new RangeError(`Invalid sample index '${n[b]}'.`));let g;if(r){const b=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,w=Math.max.apply(null,this.fileDirectory.BitsPerSample);g=n6(b,w,h*n.length),l&&g.fill(l)}else{g=[];for(let b=0;bu[2]||u[1]>u[3])throw new Error("Invalid subsets");const f=this.fileDirectory.PhotometricInterpretation;if(f===yl.RGB){let y=[0,1,2];if(this.fileDirectory.ExtraSamples!==RXe.Unspecified&&a){y=[];for(let b=0;buF(s,"sample")===void 0):i=i.filter(s=>Number(uF(s,"sample"))===t);for(let s=0;s[a+i*v+s*y,c+l*v+u*y]),p=h.map(v=>v[0]),g=h.map(v=>v[1]);return[Math.min(...p),Math.min(...g),Math.max(...p),Math.max(...g)]}else{const i=this.getOrigin(),s=this.getResolution(),o=i[0],a=i[1],l=o+s[0]*r,u=a+s[1]*n;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class KXe{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,n){const r=this.getUint32(t,n),i=this.getUint32(t+4,n);let s;if(n){if(s=r+2**32*i,!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*r+i,!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(t,n){let r=0;const i=(this._dataView.getUint8(t+(n?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(n?o:7-o));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),r+=a*256**o}return i&&(r=-r),r}getUint8(t,n){return this._dataView.getUint8(t,n)}getInt8(t,n){return this._dataView.getInt8(t,n)}getUint16(t,n){return this._dataView.getUint16(t,n)}getInt16(t,n){return this._dataView.getInt16(t,n)}getUint32(t,n){return this._dataView.getUint32(t,n)}getInt32(t,n){return this._dataView.getInt32(t,n)}getFloat16(t,n){return wke(this._dataView,t,n)}getFloat32(t,n){return this._dataView.getFloat32(t,n)}getFloat64(t,n){return this._dataView.getFloat64(t,n)}}class JXe{constructor(t,n,r,i){this._dataView=new DataView(t),this._sliceOffset=n,this._littleEndian=r,this._bigTiff=i}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(t,n){return this.sliceOffset<=t&&this.sliceTop>=t+n}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const n=this.readUint32(t),r=this.readUint32(t+4);let i;if(this._littleEndian){if(i=n+2**32*r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*n+r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}readInt64(t){let n=0;const r=(this._dataView.getUint8(t+(this._littleEndian?7:0))&128)>0;let i=!0;for(let s=0;s<8;s++){let o=this._dataView.getUint8(t+(this._littleEndian?s:7-s));r&&(i?o!==0&&(o=~(o-1)&255,i=!1):o=~o&255),n+=o*256**s}return r&&(n=-n),n}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const QXe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class eZe{constructor(t=QXe,n){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=n?Promise.resolve(n):new Promise(r=>{om(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).then(i=>{r(i.create)})}),this._awaitingDecoder.then(r=>{this._awaitingDecoder=null,this.workers=[];for(let i=0;ir.decode(t,n)):new Promise(r=>{const i=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];i.idle=!1;const s=this.messageId++,o=a=>{a.data.id===s&&(i.idle=!0,r(a.data.decoded),i.worker.removeEventListener("message",o))};i.worker.addEventListener("message",o),i.worker.postMessage({fileDirectory:t,buffer:n,id:s},[n])})}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}const W1e=`\r + >]`),w+=n(E,""),w>=b)break;y=d}}else d=t(c,"[ /]"+s+">",0);const p=f+s.length+d+1;if(a&&console.log("[xml-utils] end:",p),p===-1)return;const g=i.slice(f,p);let v;return h?v=null:v=g.slice(g.indexOf(">")+1,g.lastIndexOf("<")),{inner:v,outer:g,start:f,end:p}}return rA.exports=r,rA.exports.default=r,rA.exports}var V1e;function kXe(){if(V1e)return nA.exports;V1e=1;const e=CXe();function t(n,r,i){const s=[],o=i&&i.debug||!1,a=i&&typeof i.nested=="boolean"?i.nested:!0;let l=i&&i.startIndex||0,u;for(;u=e(n,r,{debug:o,startIndex:l});)a?l=u.start+1+r.length:l=u.end,s.push(u);return o&&console.log("findTagsByName found",s.length,"tags"),s}return nA.exports=t,nA.exports.default=t,nA.exports}var TXe=kXe();const DXe=sa(TXe),g_={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"},lf={};for(const e in g_)g_.hasOwnProperty(e)&&(lf[g_[e]]=parseInt(e,10));const LXe=[lf.BitsPerSample,lf.ExtraSamples,lf.SampleFormat,lf.StripByteCounts,lf.StripOffsets,lf.StripRowCounts,lf.TileByteCounts,lf.TileOffsets,lf.SubIFDs],cF={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"},fr={};for(const e in cF)cF.hasOwnProperty(e)&&(fr[cF[e]]=parseInt(e,10));const yl={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},RXe={Unspecified:0,Assocalpha:1,Unassalpha:2},Fjt={Version:0,AddCompression:1},Ojt={None:0,Deflate:1,Zstandard:2},FXe={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 OXe(e,t){const{width:n,height:r}=e,i=new Uint8Array(n*r*3);let s;for(let o=0,a=0;o>24,l=e[i+2]<<24>>24;let u=(o+16)/116,f=a/500+u,c=u-l/200,d,h,p;f=NXe*(f*f*f>.008856?f*f*f:(f-16/116)/7.787),u=BXe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),c=zXe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),d=f*3.2406+u*-1.5372+c*-.4986,h=f*-.9689+u*1.8758+c*.0415,p=f*.0557+u*-.204+c*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:12.92*d,h=h>.0031308?1.055*h**(1/2.4)-.055:12.92*h,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,r[s]=Math.max(0,Math.min(1,d))*255,r[s+1]=Math.max(0,Math.min(1,h))*255,r[s+2]=Math.max(0,Math.min(1,p))*255}return r}const _ke=new Map;function am(e,t){Array.isArray(e)||(e=[e]),e.forEach(n=>_ke.set(n,t))}async function Eke(e){const t=_ke.get(e.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${e.Compression}`);const n=await t();return new n(e)}am([void 0,1],()=>om(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default));am(5,()=>om(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(e=>e.default));am(6,()=>{throw new Error("old style JPEG compression is not supported.")});am(7,()=>om(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(e=>e.default));am([8,32946],()=>om(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(e=>e.default));am(32773,()=>om(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(e=>e.default));am(34887,()=>om(()=>import("./lerc-E1VxbijF.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url).then(async e=>(await e.zstd.init(),e)).then(e=>e.default));am(50001,()=>om(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([20,1]),import.meta.url).then(e=>e.default));function CD(e,t,n,r=1){return new(Object.getPrototypeOf(e)).constructor(t*n*r)}function UXe(e,t,n,r,i){const s=t/r,o=n/i;return e.map(a=>{const l=CD(a,r,i);for(let u=0;u{const l=CD(a,r,i);for(let u=0;u>8-i-D&c;else if(D+i<=16)f[E]=a.getUint16(A)>>16-i-D&c;else if(D+i<=24){const T=a.getUint16(A)<<8|a.getUint8(A+2);f[E]=T>>24-i-D&c}else f[E]=a.getUint32(A)>>32-i-D&c}}}}return f.buffer}class Ske{constructor(t,n,r,i,s,o){this.fileDirectory=t,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=s?{}:null,this.isTiled=!t.StripOffsets;const a=t.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(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let n=0;n=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const n=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,r=this.fileDirectory.BitsPerSample[t];switch(n){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(i,s){return wke(this,i,s)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,n){const r=this.getSampleFormat(t),i=this.getBitsPerSample(t);return n6(r,i,n)}async getTileOrStrip(t,n,r,i,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=n*o+t:this.planarConfiguration===2&&(l=r*o*a+n*o+t);let f,c;this.isTiled?(f=this.fileDirectory.TileOffsets[l],c=this.fileDirectory.TileByteCounts[l]):(f=this.fileDirectory.StripOffsets[l],c=this.fileDirectory.StripByteCounts[l]);const d=(await this.source.fetch([{offset:f,length:c}],s))[0];let h;return u===null||!u[l]?(h=(async()=>{let p=await i.decode(this.fileDirectory,d);const g=this.getSampleFormat(),v=this.getBitsPerSample();return XXe(g,v)&&(p=ZXe(p,g,this.planarConfiguration,this.getSamplesPerPixel(),v,this.getTileWidth(),this.getBlockHeight(n))),p})(),u!==null&&(u[l]=h)):h=u[l],{x:t,y:n,sample:r,data:await h}}async _readRaster(t,n,r,i,s,o,a,l,u){const f=this.getTileWidth(),c=this.getTileHeight(),d=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(t[0]/f),0),g=Math.min(Math.ceil(t[2]/f),Math.ceil(d/f)),v=Math.max(Math.floor(t[1]/c),0),y=Math.min(Math.ceil(t[3]/c),Math.ceil(h/c)),b=t[2]-t[0];let w=this.getBytesPerPixel();const E=[],A=[];for(let k=0;k{const U=I.data,q=new DataView(U),Y=this.getBlockHeight(I.y),X=I.y*c,te=I.x*f,le=X+Y,ee=(I.x+1)*f,z=A[K],he=Math.min(Y,Y-(le-t[3]),h-X),de=Math.min(f,f-(ee-t[2]),d-te);for(let ze=Math.max(0,t[1]-X);zef[2]||f[1]>f[3])throw new Error("Invalid subsets");const c=f[2]-f[0],d=f[3]-f[1],h=c*d,p=this.getSamplesPerPixel();if(!n||!n.length)for(let b=0;b=p)return Promise.reject(new RangeError(`Invalid sample index '${n[b]}'.`));let g;if(r){const b=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,w=Math.max.apply(null,this.fileDirectory.BitsPerSample);g=n6(b,w,h*n.length),l&&g.fill(l)}else{g=[];for(let b=0;bu[2]||u[1]>u[3])throw new Error("Invalid subsets");const f=this.fileDirectory.PhotometricInterpretation;if(f===yl.RGB){let y=[0,1,2];if(this.fileDirectory.ExtraSamples!==RXe.Unspecified&&a){y=[];for(let b=0;buF(s,"sample")===void 0):i=i.filter(s=>Number(uF(s,"sample"))===t);for(let s=0;s[a+i*v+s*y,c+l*v+u*y]),p=h.map(v=>v[0]),g=h.map(v=>v[1]);return[Math.min(...p),Math.min(...g),Math.max(...p),Math.max(...g)]}else{const i=this.getOrigin(),s=this.getResolution(),o=i[0],a=i[1],l=o+s[0]*r,u=a+s[1]*n;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class KXe{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,n){const r=this.getUint32(t,n),i=this.getUint32(t+4,n);let s;if(n){if(s=r+2**32*i,!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*r+i,!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(t,n){let r=0;const i=(this._dataView.getUint8(t+(n?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(n?o:7-o));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),r+=a*256**o}return i&&(r=-r),r}getUint8(t,n){return this._dataView.getUint8(t,n)}getInt8(t,n){return this._dataView.getInt8(t,n)}getUint16(t,n){return this._dataView.getUint16(t,n)}getInt16(t,n){return this._dataView.getInt16(t,n)}getUint32(t,n){return this._dataView.getUint32(t,n)}getInt32(t,n){return this._dataView.getInt32(t,n)}getFloat16(t,n){return wke(this._dataView,t,n)}getFloat32(t,n){return this._dataView.getFloat32(t,n)}getFloat64(t,n){return this._dataView.getFloat64(t,n)}}class JXe{constructor(t,n,r,i){this._dataView=new DataView(t),this._sliceOffset=n,this._littleEndian=r,this._bigTiff=i}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(t,n){return this.sliceOffset<=t&&this.sliceTop>=t+n}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const n=this.readUint32(t),r=this.readUint32(t+4);let i;if(this._littleEndian){if(i=n+2**32*r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*n+r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}readInt64(t){let n=0;const r=(this._dataView.getUint8(t+(this._littleEndian?7:0))&128)>0;let i=!0;for(let s=0;s<8;s++){let o=this._dataView.getUint8(t+(this._littleEndian?s:7-s));r&&(i?o!==0&&(o=~(o-1)&255,i=!1):o=~o&255),n+=o*256**s}return r&&(n=-n),n}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const QXe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class eZe{constructor(t=QXe,n){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=n?Promise.resolve(n):new Promise(r=>{om(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).then(i=>{r(i.create)})}),this._awaitingDecoder.then(r=>{this._awaitingDecoder=null,this.workers=[];for(let i=0;ir.decode(t,n)):new Promise(r=>{const i=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];i.idle=!1;const s=this.messageId++,o=a=>{a.data.id===s&&(i.idle=!0,r(a.data.decoded),i.worker.removeEventListener("message",o))};i.worker.addEventListener("message",o),i.worker.postMessage({fileDirectory:t,buffer:n,id:s},[n])})}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}const W1e=`\r \r `;function Ake(e){if(typeof Object.fromEntries<"u")return Object.fromEntries(e);const t={};for(const[n,r]of e)t[n.toLowerCase()]=r;return t}function tZe(e){const t=e.split(`\r `).map(n=>{const r=n.split(":").map(i=>i.trim());return r[0]=r[0].toLowerCase(),r});return Ake(t)}function nZe(e){const[t,...n]=e.split(";").map(i=>i.trim()),r=n.map(i=>i.split("="));return{type:t,params:Ake(r)}}function r6(e){let t,n,r;return e&&([,t,n,r]=e.match(/bytes (\d+)-(\d+)\/(\d+)/),t=parseInt(t,10),n=parseInt(n,10),r=parseInt(r,10)),{start:t,end:n,total:r}}function rZe(e,t){let n=null;const r=new TextDecoder("ascii"),i=[],s=`--${t}`,o=`${s}--`;for(let a=0;a<10;++a)r.decode(new Uint8Array(e,a,s.length))===s&&(n=a);if(n===null)throw new Error("Could not find initial boundary");for(;nthis.fetchSlice(r,n)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}class iZe extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[n,r]of t)this.onEviction(n,r.value)}_deleteIfExpired(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,n.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,n){if(this._deleteIfExpired(t,n)===!1)return n.value}_getItemValue(t,n){return n.expiry?this._getOrDeleteIfExpired(t,n):n.value}_peek(t,n){const r=n.get(t);return this._getItemValue(t,r)}_set(t,n){this.cache.set(t,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,n){this.oldCache.delete(t),this._set(t,n)}*_entriesAscending(){for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield t)}for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield t)}}get(t){if(this.cache.has(t)){const n=this.cache.get(t);return this._getItemValue(t,n)}if(this.oldCache.has(t)){const n=this.oldCache.get(t);if(this._deleteIfExpired(t,n)===!1)return this._moveToRecent(t,n),n.value}}set(t,n,{maxAge:r=this.maxAge}={}){const i=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.cache.has(t)?this.cache.set(t,{value:n,expiry:i}):this._set(t,{value:n,expiry:i}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const n=this.cache.delete(t);return n&&this._size--,this.oldCache.delete(t)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-t;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}}*entriesDescending(){let t=[...this.cache];for(let n=t.length-1;n>=0;--n){const r=t[n],[i,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}t=[...this.oldCache];for(let n=t.length-1;n>=0;--n){const r=t[n],[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}}*entriesAscending(){for(const[t,n]of this._entriesAscending())yield[t,n.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const n of this.oldCache.keys())this.cache.has(n)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,i]of this.entriesAscending())t.call(n,i,r,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function sZe(e){return new Promise(t=>setTimeout(t,e))}function oZe(e,t){const n=Array.isArray(e)?e:Array.from(e),r=Array.isArray(t)?t:Array.from(t);return n.map((i,s)=>[i,r[s]])}class Kv extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Kv),this.name="AbortError"}}class aZe extends Error{constructor(t,n){super(n),this.errors=t,this.message=n,this.name="AggregateError"}}const lZe=aZe;class uZe{constructor(t,n,r=null){this.offset=t,this.length=n,this.data=r}get top(){return this.offset+this.length}}class Y1e{constructor(t,n,r){this.offset=t,this.length=n,this.blockIds=r}}class cZe extends uP{constructor(t,{blockSize:n=65536,cacheSize:r=100}={}){super(),this.source=t,this.blockSize=n,this.blockCache=new iZe({maxSize:r,onEviction:(i,s)=>{this.evictedBlocks.set(i,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(t,n){const r=[],i=[],s=[];this.evictedBlocks.clear();for(const{offset:d,length:h}of t){let p=d+h;const{fileSize:g}=this;g!==null&&(p=Math.min(p,g));const v=Math.floor(d/this.blockSize)*this.blockSize;for(let y=v;ythis.abortedBlockIds.has(d)||!this.blockCache.has(d));if(l.forEach(d=>this.blockIdsToFetch.add(d)),l.length>0&&n&&!n.aborted){this.fetchBlocks(null);for(const d of l){const h=this.blockRequests.get(d);if(!h)throw new Error(`Block ${d} is not in the block requests`);a.push(h)}await Promise.allSettled(a)}if(n&&n.aborted)throw new Kv("Request was aborted");const u=s.map(d=>this.blockCache.get(d)||this.evictedBlocks.get(d)),f=u.filter(d=>!d);if(f.length)throw new lZe(f,"Request failed");const c=new Map(oZe(s,u));return this.readSliceData(t,c)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const n=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(n,t);for(let i=0;i{try{const a=(await r)[i],l=o*this.blockSize,u=l-a.offset,f=Math.min(u+this.blockSize,a.data.byteLength),c=a.data.slice(u,f),d=new uZe(l,c.byteLength,c,o);this.blockCache.set(o,d),this.abortedBlockIds.delete(o)}catch(a){if(a.name==="AbortError")a.signal=t,this.blockCache.delete(o),this.abortedBlockIds.add(o);else throw a}finally{this.blockRequests.delete(o)}})())}this.blockIdsToFetch.clear()}}groupBlocks(t){const n=Array.from(t).sort((o,a)=>o-a);if(n.length===0)return[];let r=[],i=null;const s=[];for(const o of n)i===null||i+1===o?(r.push(o),i=o):(s.push(new Y1e(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[o],i=o);return s.push(new Y1e(r[0]*this.blockSize,r.length*this.blockSize,r)),s}readSliceData(t,n){return t.map(r=>{let i=r.offset+r.length;this.fileSize!==null&&(i=Math.min(this.fileSize,i));const s=Math.floor(r.offset/this.blockSize),o=Math.floor(i/this.blockSize),a=new ArrayBuffer(r.length),l=new Uint8Array(a);for(let u=s;u<=o;++u){const f=n.get(u),c=f.offset-r.offset,d=f.top-i;let h=0,p=0,g;c<0?h=-c:c>0&&(p=c),d<0?g=f.length-h:g=i-f.offset-h;const v=new Uint8Array(f.data,h,g);l.set(v,p)}return a})}}class cP{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class fP{constructor(t){this.url=t}async request({headers:t,signal:n}={}){throw new Error("request is not implemented")}}class fZe extends cP{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class dZe extends fP{constructor(t,n){super(t),this.credentials=n}async request({headers:t,signal:n}={}){const r=await fetch(this.url,{headers:t,credentials:this.credentials,signal:n});return new fZe(r)}}class hZe extends cP{constructor(t,n){super(),this.xhr=t,this.data=n}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class pZe extends fP{constructRequest(t,n){return new Promise((r,i)=>{const s=new XMLHttpRequest;s.open("GET",this.url),s.responseType="arraybuffer";for(const[o,a]of Object.entries(t))s.setRequestHeader(o,a);s.onload=()=>{const o=s.response;r(new hZe(s,o))},s.onerror=i,s.onabort=()=>i(new Kv("Request aborted")),s.send(),n&&(n.aborted&&s.abort(),n.addEventListener("abort",()=>s.abort()))})}async request({headers:t,signal:n}={}){return await this.constructRequest(t,n)}}const fF={};class mZe extends cP{constructor(t,n){super(),this.response=t,this.dataPromise=n}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){return await this.dataPromise}}class gZe extends fP{constructor(t){super(t),this.parsedUrl=fF.parse(this.url),this.httpApi=(this.parsedUrl.protocol==="http:",fF)}constructRequest(t,n){return new Promise((r,i)=>{const s=this.httpApi.get({...this.parsedUrl,headers:t},o=>{const a=new Promise(l=>{const u=[];o.on("data",f=>{u.push(f)}),o.on("end",()=>{const f=Buffer.concat(u).buffer;l(f)}),o.on("error",i)});r(new mZe(o,a))});s.on("error",i),n&&(n.aborted&&s.destroy(new Kv("Request aborted")),n.addEventListener("abort",()=>s.destroy(new Kv("Request aborted"))))})}async request({headers:t,signal:n}={}){return await this.constructRequest(t,n)}}class dP extends uP{constructor(t,n,r,i){super(),this.client=t,this.headers=n,this.maxRanges=r,this.allowFullFile=i,this._fileSize=null}async fetch(t,n){return this.maxRanges>=t.length?this.fetchSlices(t,n):(this.maxRanges>0&&t.length>1,Promise.all(t.map(r=>this.fetchSlice(r,n))))}async fetchSlices(t,n){const r=await this.client.request({headers:{...this.headers,Range:`bytes=${t.map(({offset:i,length:s})=>`${i}-${i+s}`).join(",")}`},signal:n});if(r.ok)if(r.status===206){const{type:i,params:s}=nZe(r.getHeader("content-type"));if(i==="multipart/byteranges"){const c=rZe(await r.getData(),s.boundary);return this._fileSize=c[0].fileSize||null,c}const o=await r.getData(),{start:a,end:l,total:u}=r6(r.getHeader("content-range"));this._fileSize=u||null;const f=[{data:o,offset:a,length:l-a}];if(t.length>1){const c=await Promise.all(t.slice(1).map(d=>this.fetchSlice(d,n)));return f.concat(c)}return f}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const i=await r.getData();return this._fileSize=i.byteLength,[{data:i,offset:0,length:i.byteLength}]}else throw new Error("Error fetching data.")}async fetchSlice(t,n){const{offset:r,length:i}=t,s=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+i}`},signal:n});if(s.ok)if(s.status===206){const o=await s.getData(),{total:a}=r6(s.getHeader("content-range"));return this._fileSize=a||null,{data:o,offset:r,length:i}}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 hP(e,{blockSize:t,cacheSize:n}){return t===null?e:new cZe(e,{blockSize:t,cacheSize:n})}function yZe(e,{headers:t={},credentials:n,maxRanges:r=0,allowFullFile:i=!1,...s}={}){const o=new dZe(e,n),a=new dP(o,t,r,i);return hP(a,s)}function vZe(e,{headers:t={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const s=new pZe(e),o=new dP(s,t,n,r);return hP(o,i)}function bZe(e,{headers:t={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const s=new gZe(e),o=new dP(s,t,n,r);return hP(o,i)}function i6(e,{forceXHR:t=!1,...n}={}){return typeof fetch=="function"&&!t?yZe(e,n):typeof XMLHttpRequest<"u"?vZe(e,n):bZe(e,n)}class xZe extends uP{constructor(t){super(),this.file=t}async fetchSlice(t,n){return new Promise((r,i)=>{const s=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=a=>r(a.target.result),o.onerror=i,o.onabort=i,o.readAsArrayBuffer(s),n&&n.addEventListener("abort",()=>o.abort())})}}function wZe(e){return new xZe(e)}function s6(e){switch(e){case fr.BYTE:case fr.ASCII:case fr.SBYTE:case fr.UNDEFINED:return 1;case fr.SHORT:case fr.SSHORT:return 2;case fr.LONG:case fr.SLONG:case fr.FLOAT:case fr.IFD:return 4;case fr.RATIONAL:case fr.SRATIONAL:case fr.DOUBLE:case fr.LONG8:case fr.SLONG8:case fr.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${e}`)}}function _Ze(e){const t=e.GeoKeyDirectory;if(!t)return null;const n={};for(let r=4;r<=t[3]*4;r+=4){const i=FXe[t[r]],s=t[r+1]?g_[t[r+1]]:null,o=t[r+2],a=t[r+3];let l=null;if(!s)l=a;else{if(l=e[s],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${i}'.`);typeof l=="string"?l=l.substring(a,a+o-1):l.subarray&&(l=l.subarray(a,a+o),o===1&&(l=l[0]))}n[i]=l}return n}function My(e,t,n,r){let i=null,s=null;const o=s6(t);switch(t){case fr.BYTE:case fr.ASCII:case fr.UNDEFINED:i=new Uint8Array(n),s=e.readUint8;break;case fr.SBYTE:i=new Int8Array(n),s=e.readInt8;break;case fr.SHORT:i=new Uint16Array(n),s=e.readUint16;break;case fr.SSHORT:i=new Int16Array(n),s=e.readInt16;break;case fr.LONG:case fr.IFD:i=new Uint32Array(n),s=e.readUint32;break;case fr.SLONG:i=new Int32Array(n),s=e.readInt32;break;case fr.LONG8:case fr.IFD8:i=new Array(n),s=e.readUint64;break;case fr.SLONG8:i=new Array(n),s=e.readInt64;break;case fr.RATIONAL:i=new Uint32Array(n*2),s=e.readUint32;break;case fr.SRATIONAL:i=new Int32Array(n*2),s=e.readInt32;break;case fr.FLOAT:i=new Float32Array(n),s=e.readFloat32;break;case fr.DOUBLE:i=new Float64Array(n),s=e.readFloat64;break;default:throw new RangeError(`Invalid field type: ${t}`)}if(t===fr.RATIONAL||t===fr.SRATIONAL)for(let a=0;ap.getWidth()-g.getWidth());for(let p=0;pv||o&&o>y)break}}let d=n;if(a){const[h,p]=l.getOrigin(),[g,v]=u.getResolution(l);d=[Math.round((a[0]-h)/g),Math.round((a[1]-p)/v),Math.round((a[2]-h)/g),Math.round((a[3]-p)/v)],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({...t,window:d})}}class Jv extends Cke{constructor(t,n,r,i,s={}){super(),this.source=t,this.littleEndian=n,this.bigTiff=r,this.firstIFDOffset=i,this.cache=s.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,n){const r=this.bigTiff?4048:1024;return new JXe((await this.source.fetch([{offset:t,length:typeof n<"u"?n:r}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const n=this.bigTiff?20:12,r=this.bigTiff?8:2;let i=await this.getSlice(t);const s=this.bigTiff?i.readUint64(t):i.readUint16(t),o=s*n+(this.bigTiff?16:6);i.covers(t,o)||(i=await this.getSlice(t,o));const a={};let l=t+(this.bigTiff?8:2);for(let c=0;c{const n=await this.ifdRequests[t-1];if(n.nextIFDByteOffset===0)throw new aA(t);return this.parseFileDirectoryAt(n.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const n=await this.requestIFD(t);return new Ske(n.fileDirectory,n.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,n=!0;for(;n;)try{await this.requestIFD(t),++t}catch(r){if(r instanceof aA)n=!1;else throw r}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const n="GDAL_STRUCTURAL_METADATA_SIZE=",r=n.length+100;let i=await this.getSlice(t,r);if(n===My(i,fr.ASCII,n.length,t)){const o=My(i,fr.ASCII,r,t).split(` `)[0],a=Number(o.split("=")[1].split(" ")[0])+o.length;a>r&&(i=await this.getSlice(t,a));const l=My(i,fr.ASCII,a,t);this.ghostValues={},l.split(` `).filter(u=>u.length>0).map(u=>u.split("=")).forEach(([u,f])=>{this.ghostValues[u]=f})}return this.ghostValues}static async fromSource(t,n,r){const i=(await t.fetch([{offset:0,length:1024}],r))[0],s=new KXe(i),o=s.getUint16(0,0);let a;if(o===18761)a=!0;else if(o===19789)a=!1;else throw new TypeError("Invalid byte order value.");const l=s.getUint16(2,a);let u;if(l===42)u=!1;else if(l===43){if(u=!0,s.getUint16(4,a)!==8)throw new Error("Unsupported offset byte-size.")}else throw new TypeError("Invalid magic number.");const f=u?s.getUint64(8,a):s.getUint32(4,a);return new Jv(t,a,u,f,n)}close(){return typeof this.source.close=="function"?this.source.close():!1}}class SZe extends Cke{constructor(t,n){super(),this.mainFile=t,this.overviewFiles=n,this.imageFiles=[t].concat(n),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(n=>n.parseFileDirectoryAt(n.firstIFDOffset)));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let n=0,r=0;for(let i=0;in.getImageCount()));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce((n,r)=>n+r,0),this.imageCount}}async function AZe(e,t={},n){return Jv.fromSource(i6(e,t),n)}async function CZe(e,t){return Jv.fromSource(wZe(e),t)}async function kZe(e,t=[],n={},r){const i=await Jv.fromSource(i6(e,n),r),s=await Promise.all(t.map(o=>Jv.fromSource(i6(o,n))));return new SZe(i,s)}function TZe(e){return((e.fileDirectory.NewSubfileType||0)&4)===4}function DZe(e,t){if(!e)return!1;if(e===!0)return!0;if(t.getSamplesPerPixel()!==3)return!1;const n=t.fileDirectory.PhotometricInterpretation,r=yl;return n===r.CMYK||n===r.YCbCr||n===r.CIELab||n===r.ICCLab}const X1e="STATISTICS_MAXIMUM",Z1e="STATISTICS_MINIMUM",dF=256;let hF;function LZe(){return hF||(hF=new eZe),hF}function RZe(e){try{return e.getBoundingBox(!0)}catch{return[0,0,e.getWidth(),e.getHeight()]}}function FZe(e){try{return e.getOrigin().slice(0,2)}catch{return[0,e.getHeight()]}}function OZe(e,t){try{return e.getResolution(t)}catch{return[t.getWidth()/e.getWidth(),t.getHeight()/e.getHeight()]}}function MZe(e){const t=e.geoKeys;if(!t)return null;if(t.ProjectedCSTypeGeoKey&&t.ProjectedCSTypeGeoKey!==32767){const n="EPSG:"+t.ProjectedCSTypeGeoKey;let r=oi(n);if(!r){const i=$ve(t.ProjLinearUnitsGeoKey);i&&(r=new Ive({code:n,units:i}))}return r}if(t.GeographicTypeGeoKey&&t.GeographicTypeGeoKey!==32767){const n="EPSG:"+t.GeographicTypeGeoKey;let r=oi(n);if(!r){const i=$ve(t.GeogAngularUnitsGeoKey);i&&(r=new Ive({code:n,units:i}))}return r}return null}function $Ze(e){return e.getImageCount().then(function(t){const n=new Array(t);for(let r=0;rn*e)throw new Error(r)}function PZe(e){return e instanceof Int8Array?-128:e instanceof Int16Array?-32768:e instanceof Int32Array?-2147483648:e instanceof Float32Array?12e-39:0}function NZe(e){return e instanceof Int8Array?127:e instanceof Uint8Array||e instanceof Uint8ClampedArray?255:e instanceof Int16Array?32767:e instanceof Uint16Array?65535:e instanceof Int32Array?2147483647:e instanceof Uint32Array?4294967295:e instanceof Float32Array?34e37:255}class pP extends uE{constructor(t){super({state:"loading",tileGrid:null,projection:t.projection||null,transition:t.transition,interpolate:t.interpolate!==!1,wrapX:t.wrapX}),this.sourceInfo_=t.sources;const n=this.sourceInfo_.length;this.sourceOptions_=t.sourceOptions,this.sourceImagery_=new Array(n),this.sourceMasks_=new Array(n),this.resolutionFactors_=new Array(n),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=t.normalize!==!1,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=t.convertToRGB||!1,this.setKey(this.sourceInfo_.map(s=>s.url).join(","));const r=this,i=new Array(n);for(let s=0;s=0;--r){const i=n[r],s=MZe(i);if(s){this.projection=s;break}}}determineTransformMatrix(t){const n=t[0];for(let r=n.length-1;r>=0;--r){const s=n[r].fileDirectory.ModelTransformation;if(s){const[o,a,l,u,f,c,d,h]=s,p=U_(U_([1/Math.sqrt(o*o+f*f),0,0,-1/Math.sqrt(a*a+c*c),u,h],[o,f,a,c,0,0]),[1,0,0,1,-u,-h]);this.transformMatrix=p,this.addAlpha_=!0;break}}}configure_(t){let n,r,i,s,o;const a=new Array(t.length),l=new Array(t.length),u=new Array(t.length);let f=0;const c=t.length;for(let v=0;v{TZe(R)?b.push(R):y.push(R)});const w=y.length;if(b.length>0&&b.length!==w)throw new Error(`Expected one mask per image found ${b.length} masks and ${w} images`);let E,A;const D=new Array(w),T=new Array(w),k=new Array(w);l[v]=new Array(w),u[v]=new Array(w);for(let R=0;Rk.length&&(f=o.length-k.length);const R=o[o.length-1]/k[k.length-1];this.resolutionFactors_[v]=R;const O=k.map(K=>K*=R),B=`Resolution mismatch for source ${v}, got [${O}] but expected [${o}]`;Mw(o.slice(f,o.length),O,.02,B,this.viewRejector)}i?Mw(i.slice(f,i.length),T,.01,`Tile size mismatch for source ${v}`,this.viewRejector):i=T,s?Mw(s.slice(f,s.length),D,0,`Tile size mismatch for source ${v}`,this.viewRejector):s=D,this.sourceImagery_[v]=y.reverse(),this.sourceMasks_[v]=b.reverse()}for(let v=0,y=this.sourceImagery_.length;veh(v,b));g=Vv(n,y)}this.viewResolver({showFullExtent:!0,projection:this.projection,resolutions:o,center:Nje(Dp(g),this.projection),extent:Bje(g,this.projection),zoom:p})}loadTile_(t,n,r,i){const s=this.getTileSize(t),o=this.sourceImagery_.length,a=new Array(o*2),l=this.nodataValues_,u=this.sourceInfo_,f=LZe();for(let c=0;cthis.createSession_(),f),this.setAttributions(this.fetchAttributions_.bind(this)),this.setState("ready")}async fetchAttributions_(t){if(t.viewHints[zp.ANIMATING]||t.viewHints[zp.INTERACTING]||t.animate)return this.previousViewportAttribution_;const[n,r]=Pve(jje(t.extent),t.viewState.projection),[i,s]=Pve(Uje(t.extent),t.viewState.projection),l=`zoom=${this.getTileGrid().getZForResolution(t.viewState.resolution,this.zDirection)}&north=${s}&south=${r}&east=${i}&west=${n}`;if(this.previousViewportExtent_==l)return this.previousViewportAttribution_;this.previousViewportExtent_=l;const u=this.sessionTokenValue_,f=this.apiKey_,c=`${jZe}?session=${u}&key=${f}&${l}`;return this.previousViewportAttribution_=await fetch(c).then(d=>d.json()).then(d=>d.copyright),this.previousViewportAttribution_}disposeInternal(){clearTimeout(this.sessionRefreshId_),super.disposeInternal()}}let kke=class extends bI{constructor(t,n,r,i,s,o,a){super(n,r,i,s,o,a),this.zoomifyImage_=null,this.tileSize_=t}getImage(){if(this.zoomifyImage_)return this.zoomifyImage_;const t=super.getImage();if(this.state==Ts.LOADED){const n=this.tileSize_;if(t.width==n[0]&&t.height==n[1])return this.zoomifyImage_=t,t;const r=Jg(n[0],n[1]);return r.drawImage(t,0,0),this.zoomifyImage_=r.canvas,r.canvas}return t}};class HZe extends hh{constructor(t){const n=t.size,r=t.tierSizeCalculation!==void 0?t.tierSizeCalculation:"default",i=t.tilePixelRatio||1,s=n[0],o=n[1],a=[],l=t.tileSize||G4;let u=l*i;switch(r){case"default":for(;s>u||o>u;)a.push([Math.ceil(s/u),Math.ceil(o/u)]),u+=u;break;case"truncated":let D=s,T=o;for(;D>u||T>u;)a.push([Math.ceil(D/u),Math.ceil(T/u)]),D>>=1,T>>=1;break;default:throw new Error("Unknown `tierSizeCalculation` configured")}a.push([1,1]),a.reverse();const f=[i],c=[0];for(let D=1,T=a.length;D{g=l,this.changed()}),A.src=E}}function sw(e){return e.toLocaleString("en",{maximumFractionDigits:10})}class GZe extends hh{constructor(t){const n=t||{};let r=n.url||"";r=r+(r.lastIndexOf("/")===r.length-1||r===""?"":"/");const i=n.version||Zs.VERSION2,s=n.sizes||[],o=n.size;kc(o!=null&&Array.isArray(o)&&o.length==2&&!isNaN(o[0])&&o[0]>0&&!isNaN(o[1])&&o[1]>0,"Missing or invalid `size`");const a=o[0],l=o[1],u=n.tileSize,f=n.tilePixelRatio||1,c=n.format||"jpg",d=n.quality||(n.version==Zs.VERSION1?"native":"default");let h=n.resolutions||[];const p=n.supports||[],g=n.extent||[0,-l,a,0],v=s!=null&&Array.isArray(s)&&s.length>0,y=u!==void 0&&(typeof u=="number"&&Number.isInteger(u)&&u>0||Array.isArray(u)&&u.length>0),b=p!=null&&Array.isArray(p)&&(p.includes("regionByPx")||p.includes("regionByPct"))&&(p.includes("sizeByWh")||p.includes("sizeByH")||p.includes("sizeByW")||p.includes("sizeByPct"));let w,E,A;if(h.sort(function(R,O){return O-R}),y||b)if(u!=null&&(typeof u=="number"&&Number.isInteger(u)&&u>0?(w=u,E=u):Array.isArray(u)&&u.length>0&&((u.length==1||u[1]==null&&Number.isInteger(u[0]))&&(w=u[0],E=u[0]),u.length==2&&(Number.isInteger(u[0])&&Number.isInteger(u[1])?(w=u[0],E=u[1]):u[0]==null&&Number.isInteger(u[1])&&(w=u[1],E=u[1])))),(w===void 0||E===void 0)&&(w=G4,E=G4),h.length==0){A=Math.max(Math.ceil(Math.log(a/w)/Math.LN2),Math.ceil(Math.log(l/E)/Math.LN2));for(let R=A;R>=0;R--)h.push(Math.pow(2,R))}else{const R=Math.max(...h);A=Math.round(Math.log(R)/Math.LN2)}else if(w=a,E=l,h=[],v){s.sort(function(O,B){return O[0]-B[0]}),A=-1;const R=[];for(let O=0;O0&&h[h.length-1]==B){R.push(O);continue}h.push(B),A++}if(R.length>0)for(let O=0;OA)return;const I=R[1],U=R[2],q=h[$];if(!(I===void 0||U===void 0||q===void 0||I<0||Math.ceil(a/q/w)<=I||U<0||Math.ceil(l/q/E)<=U)){if(b||y){const Y=I*w*q,X=U*E*q;let te=w*q,le=E*q,ee=w,z=E;if(Y+te>a&&(te=a-Y),X+le>l&&(le=l-X),Y+w*q>a&&(ee=Math.floor((a-Y+q-1)/q)),X+E*q>l&&(z=Math.floor((l-X+q-1)/q)),Y==0&&te==a&&X==0&&le==l)K="full";else if(!b||p.includes("regionByPx"))K=Y+","+X+","+te+","+le;else if(p.includes("regionByPct")){const he=sw(Y/a*100),de=sw(X/l*100),ze=sw(te/a*100),He=sw(le/l*100);K="pct:"+he+","+de+","+ze+","+He}i==Zs.VERSION3&&(!b||p.includes("sizeByWh"))?L=ee+","+z:!b||p.includes("sizeByW")?L=ee+",":p.includes("sizeByH")?L=","+z:p.includes("sizeByWh")?L=ee+","+z:p.includes("sizeByPct")&&(L="pct:"+sw(100/q))}else if(K="full",v){const Y=s[$][0],X=s[$][1];i==Zs.VERSION3?Y==a&&X==l?L="max":L=Y+","+X:Y==a?L="full":L=Y+","}else L=i==Zs.VERSION3?"max":"full";return r+K+"/"+L+"/0/"+d+"."+c}},k=kke.bind(null,wc(u||256).map(function(R){return R*f}));super({attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:n.interpolate,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,state:n.state,tileClass:k,tileGrid:D,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:T,transition:n.transition}),this.zDirection=n.zDirection}}function Tke(e,t,n,r,i,s){const o=i.getCode().split(/:(?=\d+$)/).pop(),a=n/r,l=[Nve(eu(t)/a,Bve),Nve(Up(t)/a,Bve)];s.SIZE=l[0]+","+l[1],s.BBOX=t.join(","),s.BBOXSR=o,s.IMAGESR=o,s.DPI=Math.round(s.DPI?s.DPI*r:90*r);const u=e.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return g3(u,s)}function Dke(e){const t=e.load?e.load:j1,n=oi(e.projection||"EPSG:3857"),r=e.ratio??1.5,i=e.crossOrigin??null;return function(s,o,a){a=e.hidpi?a:1;const l={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object.assign(l,e.params),s=qCe(s,o,a,r);const u=Tke(e.url,s,o,a,n,l),f=new Image;return f.crossOrigin=i,t(f,u).then(c=>{const d=eu(s)/c.width*a;return{image:c,extent:s,resolution:d,pixelRatio:a}})}}class VZe extends k0{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:CI,this.params_=Object.assign({},t.params),this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5,this.loaderProjection_=null}getParams(){return this.params_}getImageInternal(t,n,r,i){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==i)&&(this.loaderProjection_=i,this.loader=Dke({crossOrigin:this.crossOrigin_,params:this.params_,projection:i,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(s,o)=>(this.image.setImage(s),this.imageLoadFunction_(this.image,o),j1(s))})),super.getImageInternal(t,n,r,i))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}setUrl(t){t!=this.url_&&(this.url_=t,this.loader=null,this.changed())}updateParams(t){Object.assign(this.params_,t),this.changed()}changed(){this.image=null,super.changed()}}class WZe extends k0{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.canvasFunction_=t.canvasFunction,this.canvas_=null,this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5}getImageInternal(t,n,r,i){n=this.findNearestResolution(n);let s=this.canvas_;if(s&&this.renderedRevision_==this.getRevision()&&s.getResolution()==n&&s.getPixelRatio()==r&&a3(s.getExtent(),t))return s;t=t.slice(),BCe(t,this.ratio_);const o=eu(t)/n,a=Up(t)/n,l=[o*r,a*r],u=this.canvasFunction_.call(this,t,n,r,l,i);return u&&(s=new $I(t,n,r,u)),this.canvas_=s,this.renderedRevision_=this.getRevision(),s}}function YZe(e,t,n,r){const i=eu(e),s=Up(e),o=t[0],a=t[1],l=.0254/r;return a*i>o*s?i*n/(o*l):s*n/(a*l)}function XZe(e,t,n,r,i,s,o){const a=YZe(n,r,s,o),l=Dp(n),u={OPERATION:i?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:o,SETDISPLAYWIDTH:Math.round(r[0]),SETDISPLAYHEIGHT:Math.round(r[1]),SETVIEWSCALE:a,SETVIEWCENTERX:l[0],SETVIEWCENTERY:l[1]};return Object.assign(u,t),g3(e,u)}function Lke(e){const t=e.load||j1,n=e.useOverlay??!1,r=e.metersPerUnit||1,i=e.displayDpi||96,s=e.ratio??1,o=e.crossOrigin??null;return function(a,l,u){const f=new Image;f.crossOrigin=o,a=qCe(a,l,u,s);const c=eu(a)/l,d=Up(a)/l,h=[c*u,d*u],p=XZe(e.url,e.params,a,h,n,r,i);return t(f,p).then(g=>({image:g,extent:a,pixelRatio:u}))}}class ZZe extends k0{constructor(t){super({interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.displayDpi_=t.displayDpi!==void 0?t.displayDpi:96,this.params_=Object.assign({},t.params),this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:CI,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.metersPerUnit_=t.metersPerUnit!==void 0?t.metersPerUnit:1,this.ratio_=t.ratio!==void 0?t.ratio:1,this.useOverlay_=t.useOverlay!==void 0?t.useOverlay:!1,this.renderedRevision_=0,this.loaderProjection_=null}getParams(){return this.params_}getImageInternal(t,n,r,i){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==i)&&(this.loaderProjection_=i,this.loader=Lke({crossOrigin:this.crossOrigin_,params:this.params_,hidpi:this.hidpi_,metersPerUnit:this.metersPerUnit_,url:this.url_,useOverlay:this.useOverlay_,ratio:this.ratio_,load:(s,o)=>(this.image.setImage(s),this.imageLoadFunction_(this.image,o),j1(s))})),super.getImageInternal(t,n,r,i))}getImageLoadFunction(){return this.imageLoadFunction_}updateParams(t){Object.assign(this.params_,t),this.changed()}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}changed(){this.image=null,super.changed()}}function Rke(e){const t=e.load||j1,n=e.imageExtent,r=e.crossOrigin??null;return()=>{const i=new Image;return i.crossOrigin=r,t(i,e.url).then(s=>{const o=eu(n)/s.width,a=Up(n)/s.height;return{image:s,extent:n,resolution:o!==a?[o,a]:a,pixelRatio:1}})}}class Fke extends k0{constructor(t){const n=t.crossOrigin!==void 0?t.crossOrigin:null,r=t.imageLoadFunction!==void 0?t.imageLoadFunction:CI;super({attributions:t.attributions,interpolate:t.interpolate,projection:oi(t.projection)}),this.url_=t.url,this.imageExtent_=t.imageExtent,this.image=null,this.image=new kCe(this.imageExtent_,void 0,1,Rke({url:t.url,imageExtent:t.imageExtent,crossOrigin:n,load:(i,s)=>(this.image.setImage(i),r(this.image,s),j1(i))})),this.image.addEventListener(kl.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(t,n,r,i){return Gv(t,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}const KZe=new Error("Image failed to load");function Oke(e,t,n,r,i){return new Promise((s,o)=>{const a=new Image;a.crossOrigin=i.crossOrigin??null,a.addEventListener("load",()=>s(a)),a.addEventListener("error",()=>o(KZe)),a.src=HCe(e,t,n,r,i.maxY)})}function K1e(e){return function(t,n,r,i){const s=Hje(e,t,n,r);return Oke(s,t,n,r,i)}}function JZe(e){return function(t,n,r,i){const s=e(t,n,r,i);return Oke(s,t,n,r,i)}}function J1e(e){let t;if(Array.isArray(e))t=K1e(e);else if(typeof e=="string"){const n=UCe(e);t=K1e(n)}else if(typeof e=="function")t=JZe(e);else throw new Error("The url option must be a single template, an array of templates, or a function for getting a URL");return t}let Q1e=0;function ebe(e){return Array.isArray(e)?e.join(` `):typeof e=="string"?e:(++Q1e,"url-function-key-"+Q1e)}class Mke extends uE{constructor(t){t=t||{};let n=t.loader,r;t.url&&(n=J1e(t.url),r=ebe(t.url));const i=n?t.state:"loading",s=t.wrapX===void 0?!0:t.wrapX;super({loader:n,key:r,attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize,gutter:t.gutter,maxResolution:t.maxResolution,projection:t.projection,tileGrid:t.tileGrid,state:i,wrapX:s,transition:t.transition,interpolate:t.interpolate!==!1,crossOrigin:t.crossOrigin,zDirection:t.zDirection})}setUrl(t){const n=J1e(t);this.setLoader(n),this.setKey(ebe(t)),this.getState()!=="ready"&&this.setState("ready")}}function mP(e,t,n,r){const i=document.createElement("script"),s="olc_"+Ei(t);function o(){delete window[s],i.parentNode.removeChild(i)}i.async=!0,i.src=e+(e.includes("?")?"&":"?")+"callback="+s;const a=setTimeout(function(){o(),n&&n()},1e4);window[s]=function(l){clearTimeout(a),o(),t(l)},document.head.appendChild(i)}class QZe extends Error{constructor(t){const n="Unexpected response status: "+t.status;super(n),this.name="ResponseError",this.response=t}}class eKe extends Error{constructor(t){super("Failed to issue request"),this.name="ClientError",this.client=t}}function $ke(e){return new Promise(function(t,n){function r(o){const a=o.target;if(!a.status||a.status>=200&&a.status<300){let l;try{l=JSON.parse(a.responseText)}catch(u){const f="Error parsing response text as JSON: "+u.message;n(new Error(f));return}t(l);return}n(new QZe(a))}function i(o){n(new eKe(o.target))}const s=new XMLHttpRequest;s.addEventListener("load",r),s.addEventListener("error",i),s.open("GET",e),s.setRequestHeader("Accept","application/json"),s.send()})}function Ike(e,t){return t.includes("://")?t:new URL(t,e).href}const tKe={"image/png":!0,"image/jpeg":!0,"image/gif":!0,"image/webp":!0},nKe={"application/vnd.mapbox-vector-tile":!0,"application/geo+json":!0};function Pke(e,t){if(!t.length)return e;const n=new URL(e,"file:/");if(n.pathname.split("/").includes("collections"))return Z_('The "collections" query parameter cannot be added to collection endpoints'),e;const r=t.map(o=>encodeURIComponent(o)).join(",");n.searchParams.append("collections",r);const i=e.split("?")[0],s=decodeURIComponent(n.searchParams.toString());return`${i}?${s}`}function rKe(e,t,n){let r,i;for(let s=0;sD.replace(/E|X|Lon/i,"e").replace(/N|Y|Lat/i,"n")).join(""):i.getAxisOrientation()).startsWith("en"),l=t.tileMatrices,u={};for(let D=0;D$.maxTileCol||K.tileRow<$.minTileRow||K.tileRow>$.maxTileRow)return}Object.assign(K,w);const L=n.replace(/\{(\w+?)\}/g,function($,I){return K[I]});return Ike(E,L)}return{grid:b,projection:i,urlTemplate:n,urlFunction:A}}function sKe(e,t){const n=t.tileMatrixSetLimits;let r;if(t.dataType==="map")r=rKe(t.links,e.mediaType,e.collections);else if(t.dataType==="vector")r=iKe(t.links,e.mediaType,e.supportedMediaTypes,e.collections);else throw new Error('Expected tileset data type to be "map" or "vector"');if(t.tileMatrixSet)return tbe(e,t.tileMatrixSet,r,n);const i=t.links.find(a=>a.rel==="http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme");if(!i)throw new Error("Expected http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme link or tileMatrixSet");const s=i.href,o=Ike(e.url,s);return $ke(o).then(function(a){return tbe(e,a,r,n)})}function Nke(e){return $ke(e.url).then(function(t){return sKe(e,t)})}class oKe extends hh{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition});const n={url:t.url,projection:this.getProjection(),mediaType:t.mediaType,context:t.context||null,collections:t.collections};Nke(n).then(this.handleTileSetInfo_.bind(this)).catch(this.handleError_.bind(this))}handleTileSetInfo_(t){this.tileGrid=t.grid,this.projection=t.projection,this.setTileUrlFunction(t.urlFunction,t.urlTemplate),this.setState("ready")}handleError_(t){Z_(t),this.setState("error")}}class aKe extends hD{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,format:t.format,overlaps:t.overlaps,projection:t.projection,tileClass:t.tileClass,transition:t.transition,wrapX:t.wrapX,zDirection:t.zDirection,state:"loading"});const n={url:t.url,projection:this.getProjection(),mediaType:t.mediaType,supportedMediaTypes:t.format.supportedMediaTypes,context:t.context||null,collections:t.collections};Nke(n).then(this.handleTileSetInfo_.bind(this)).catch(this.handleError_.bind(this))}handleTileSetInfo_(t){this.tileGrid=t.grid,this.projection=t.projection,this.setTileUrlFunction(t.urlFunction,t.urlTemplate),this.setState("ready")}handleError_(t){Z_(t),this.setState("error")}}function Bke(e){return function(t){const n=t.buffers,r=t.meta,i=t.imageOps,s=t.width,o=t.height,a=n.length,l=n[0].byteLength;if(i){const d=new Array(a);for(let p=0;p"u"?"data:text/javascript;base64,"+Buffer.from(r.join(` -`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",t),i}function uKe(e,t){const n=Bke(e.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||t({data:{buffer:n(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class cKe extends OCe{constructor(t){super(),this.imageOps_=!!t.imageOps;let n;t.threads===0?n=0:this.imageOps_?n=1:n=t.threads||1;const r=new Array(n);if(n)for(let i=0;ithis.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const t=this.queue_.shift();this.job_=t;const n=t.inputs[0].width,r=t.inputs[0].height,i=t.inputs.map(function(l){return l.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:t.meta,imageOps:this.imageOps_,width:n,height:r},i);return}const o=t.inputs[0].data.length,a=4*Math.ceil(o/4/s);for(let l=0;l{var o;this.projection=t.projection!==void 0?oi(t.projection):r!==void 0?r.getProjection():this.projection,this.tileGrid=t.tileGrid!==void 0?t.tileGrid:r!==void 0?r.getTileGrid():this.tileGrid,this.zDirection=t.zDirection!==void 0?t.zDirection:r!==void 0?r.zDirection:this.zDirection,r instanceof uE&&(this.transformMatrix=((o=r.transformMatrix)==null?void 0:o.slice())||null);const s=this.tileGrid;s&&this.setTileSizes(s.getResolutions().map((a,l)=>wc(s.getTileSize(l)).map(u=>Math.max(Math.floor(u),1)))),this.setLoader((a,l,u,f)=>{const c=HCe(n,a,l,u,f.maxY),[d,h]=this.getTileSize(a),p=Jg(d,h);return p.strokeStyle="grey",p.strokeRect(.5,.5,d+.5,h+.5),p.fillStyle="grey",p.strokeStyle="white",p.textAlign="center",p.textBaseline="middle",p.font="24px sans-serif",p.lineWidth=4,p.strokeText(c,d/2,h/2,d),p.fillText(c,d/2,h/2,d),p.canvas}),this.setState("ready")};if(r===void 0||r.getState()==="ready")i();else{const s=()=>{r.getState()==="ready"&&(r.removeEventListener(kl.CHANGE,s),i())};r.addEventListener(kl.CHANGE,s)}}}class jke extends hh{constructor(t){if(super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:oi("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.tileJSON_=null,this.tileSize_=t.tileSize,t.url)if(t.jsonp)mP(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const n=new XMLHttpRequest;n.addEventListener("load",this.onXHRLoad_.bind(this)),n.addEventListener("error",this.onXHRError_.bind(this)),n.open("GET",t.url),n.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(t){const n=oi("EPSG:4326"),r=this.getProjection();let i;if(t.bounds!==void 0){const u=AI(n,r);i=Vv(t.bounds,u)}const s=nE(r),o=t.minzoom||0,a=t.maxzoom||22,l=rE({extent:s,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=VCe(t.tiles,l),t.attribution&&!this.getAttributions()){const u=i!==void 0?i:s;this.setAttributions(function(f){return Gv(u,f.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class EKe extends Kje{constructor(t,n,r,i,s,o){super(t,n),this.src_=r,this.extent_=i,this.preemptive_=s,this.grid_=null,this.keys_=null,this.data_=null,this.jsonp_=o}getImage(){return null}getData(t){if(!this.grid_||!this.keys_)return null;const n=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),r=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),i=this.grid_[Math.floor((1-r)*this.grid_.length)];if(typeof i!="string")return null;let s=i.charCodeAt(Math.floor(n*i.length));s>=93&&s--,s>=35&&s--,s-=32;let o=null;if(s in this.keys_){const a=this.keys_[s];this.data_&&a in this.data_?o=this.data_[a]:o=a}return o}forDataAtCoordinate(t,n,r){this.state==Ts.EMPTY&&r===!0?(this.state=Ts.IDLE,Jje(this,kl.CHANGE,i=>{n(this.getData(t))}),this.loadInternal_()):r===!0?setTimeout(()=>{n(this.getData(t))},0):n(this.getData(t))}getKey(){return this.src_}handleError_(){this.state=Ts.ERROR,this.changed()}handleLoad_(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=Ts.LOADED,this.changed()}loadInternal_(){if(this.state==Ts.IDLE)if(this.state=Ts.LOADING,this.jsonp_)mP(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleError_();return}this.handleLoad_(r)}else this.handleError_()}onXHRError_(t){this.handleError_()}load(){this.preemptive_?this.loadInternal_():this.setState(Ts.EMPTY)}}class SKe extends fD{constructor(t){if(super({projection:oi("EPSG:3857"),state:"loading",wrapX:t.wrapX!==void 0?t.wrapX:!0,zDirection:t.zDirection}),this.preemptive_=t.preemptive!==void 0?t.preemptive:!0,this.tileUrlFunction_=Zje,this.template_=void 0,this.jsonp_=t.jsonp||!1,t.url)if(this.jsonp_)mP(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const n=new XMLHttpRequest;n.addEventListener("load",this.onXHRLoad_.bind(this)),n.addEventListener("error",this.onXHRError_.bind(this)),n.open("GET",t.url),n.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTemplate(){return this.template_}forDataAtCoordinateAndResolution(t,n,r,i){if(this.tileGrid){const s=this.tileGrid.getZForResolution(n,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,s);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,r,i)}else i===!0?setTimeout(function(){r(null)},0):r(null)}handleTileJSONError(){this.setState("error")}handleTileJSONResponse(t){const n=oi("EPSG:4326"),r=this.getProjection();let i;if(t.bounds!==void 0){const f=AI(n,r);i=Vv(t.bounds,f)}const s=nE(r),o=t.minzoom||0,a=t.maxzoom||22,l=rE({extent:s,maxZoom:a,minZoom:o});this.tileGrid=l,this.template_=t.template;const u=t.grids;if(!u){this.setState("error");return}if(this.tileUrlFunction_=VCe(u,l),t.attribution){const f=i!==void 0?i:s;this.setAttributions(function(c){return Gv(f,c.extent)?[t.attribution]:null})}this.setState("ready")}getTile(t,n,r,i,s){const o=[t,n,r],a=this.getTileCoordForTileUrlFunction(o,s),l=this.tileUrlFunction_(a,i,s);return new EKe(o,l!==void 0?Ts.IDLE:Ts.EMPTY,l!==void 0?l:"",this.tileGrid.getTileCoordExtent(o),this.preemptive_,this.jsonp_)}}function AKe(e,t){const n=new ICe(32),r=e.getExtent();return function(i,s){n.expireCache(),r&&(i=Kg(r,i));const o=e.getZForResolution(s),a=[];return e.forEachTileCoord(i,o,l=>{const u=l.toString();if(!n.containsKey(u)){const f=t(l);n.set(u,f)}a.push(n.get(u))}),a}}const CKe=Object.freeze(Object.defineProperty({__proto__:null,BingMaps:XYe,CartoDB:ZYe,Cluster:KYe,DataTile:uE,GeoTIFF:pP,Google:qZe,IIIF:GZe,Image:k0,ImageArcGISRest:VZe,ImageCanvas:WZe,ImageMapGuide:ZZe,ImageStatic:Fke,ImageTile:Mke,ImageWMS:Qje,OGCMapTile:oKe,OGCVectorTile:aKe,OSM:eUe,Raster:zke,Source:kI,StadiaMaps:xKe,Tile:fD,TileArcGISRest:wKe,TileDebug:_Ke,TileImage:hh,TileJSON:jke,TileWMS:WCe,UTFGrid:SKe,UrlTile:tUe,Vector:Q2,VectorTile:hD,WMTS:YCe,XYZ:X_,Zoomify:HZe,createArcGISRestLoader:Dke,createMapGuideLoader:Lke,createStaticLoader:Rke,createWMSLoader:nUe,sourcesFromTileGrid:AKe},Symbol.toStringTag,{value:"Module"})),kKe="1.0.0",TKe="",DKe=JSON.parse('[{"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":"field","name":"#layerId","privacy":"private","type":{"text":"string"}},{"kind":"field","name":"layerId","privacy":"public","type":{"text":"string"},"description":"The ID of the Vector/Vector Tile Layer that contains features to be selected","default":"\\"\\"","attribute":"layer-id"},{"kind":"method","name":"startDrawing"},{"kind":"method","name":"discardDrawing"},{"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 | EOxSelectInteraction"},"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` (initialized with a `zIndex` of 100)","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":"projection","privacy":"public","type":{"text":"string"},"description":"Projection of the emitted drawn features","default":"\\"EPSG:4326\\"","attribute":"projection"},{"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":"selectionEvents","type":{"text":"ReturnType"},"default":"null"},{"kind":"field","name":"format","privacy":"public","type":{"text":"\\"feature\\"| \\"geojson\\" | \\"wkt\\""},"description":"The format in which the drawn features should be emitted","default":"\\"feature\\"","attribute":"format"},{"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":"layer-id","type":{"text":"string"},"description":"The ID of the Vector/Vector Tile Layer that contains features to be selected","default":"\\"\\"","fieldName":"layerId"},{"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":"projection","type":{"text":"string"},"description":"Projection of the emitted drawn features","default":"\\"EPSG:4326\\"","fieldName":"projection"},{"name":"noShadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"format","type":{"text":"\\"feature\\"| \\"geojson\\" | \\"wkt\\""},"description":"The format in which the drawn features should be emitted","default":"\\"feature\\"","fieldName":"format"},{"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":true}],"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/chart/src/main.js","declarations":[{"kind":"class","description":"Chart component based on [Vega-Lite](https://vega.github.io/vega-lite/)/[Vega-Embed](https://github.com/vega/vega-embed).\\nPass a valid Vega spec as `spec` property in order to render a chart.\\n\\nThe `eox-chart` provides some default `spec` settings (merged with the provided `spec` property) and helper functionalities on top of Vega-Lite.","name":"EOxChart","members":[{"kind":"field","name":"spec","privacy":"public","type":{"text":"VisualizationSpec"},"description":"[Vega-Lite spec](https://vega.github.io/vega-lite/docs/spec.html)","default":"undefined"},{"kind":"field","name":"dataValues","privacy":"public","type":{"text":"{[dataSourceName: string]: InlineData}"},"description":"Data values passed on runtime. Requires a [named data source](https://vega.github.io/vega-lite/docs/data.html#named) in the provided `spec`","default":"undefined"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-chart","customElement":true}],"exports":[{"kind":"js","name":"EOxChart","declaration":{"name":"EOxChart","module":"elements/chart/src/main.js"}},{"kind":"custom-element-definition","name":"eox-chart","declaration":{"name":"EOxChart","module":"elements/chart/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\\nsimilar 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\\nsimilar 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":true},{"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":true}],"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.\\nIt includes methods for applying filters, searching, sorting results, and resetting filters.\\nThe component supports both inline and dropdown modes for filter display.","name":"EOxItemFilter","members":[{"kind":"field","name":"#resultAggregation","privacy":"private","type":{"text":"Array"},"default":"[]"},{"kind":"field","name":"#items","privacy":"private","type":{"text":"Array"},"default":"[]"},{"kind":"field","name":"#config","privacy":"private","default":"ELEMENT_CONFIG","type":{"text":"Object"}},{"kind":"method","name":"apply","description":"Applies the filters to the items and updates the result aggregation."},{"kind":"method","name":"searchHandler","description":"Performs a search based on the current configuration and items.\\nRequests an update after the search completes."},{"kind":"method","name":"sortResults","parameters":[{"name":"items","description":"The items to be sorted.","type":{"text":"Array"}}],"description":"Sorts the given items based on the current configuration.","return":{"type":{"text":"Array"}}},{"kind":"method","name":"#createFilter","privacy":"private","parameters":[{"name":"filterObject","description":"The filter object.","type":{"text":"Object"}},{"name":"tabIndex","description":"The tab index for the filter element.","type":{"text":"number"}}],"description":"Creates a filter element based on the given filter object and tab index.","return":{"type":{"text":"import(\\"lit\\")"}}},{"kind":"method","name":"#createReset","privacy":"private","parameters":[{"name":"filterObject","description":"The filter object.","type":{"text":"Object"}},{"name":"tabIndex","description":"The tab index for the reset element.","type":{"text":"number"}}],"description":"Creates a reset element for the given filter object and tab index.","return":{"type":{"text":"import(\\"lit\\")"}}},{"kind":"method","name":"resetFilters","description":"Resets all applied filters."},{"kind":"method","name":"updateResult","parameters":[{"name":"evt","description":"\\"result\\" event triggered by result component","type":{"text":"{detail: Object}"}}],"description":"Updates selected result when result component triggers the \\"result\\" event."},{"kind":"field","name":"items","privacy":"public","type":{"text":"Array"},"description":"The items to be filtered","default":"null"},{"kind":"field","name":"filters","privacy":"public","type":{"text":"Object"},"description":"The state object containing the applied filters.","default":"{}"},{"kind":"field","name":"results","privacy":"public","type":{"text":"Array"},"description":"The state object containing the filtered results.","default":"[]"},{"kind":"field","name":"selectedResult","privacy":"public","type":{"text":"Object"},"description":"The currently selected result","default":"null"},{"kind":"field","name":"search","type":{"text":"Function"},"privacy":"private"},{"kind":"field","name":"aggregateResults","privacy":"public","type":{"text":"String"},"description":"Aggregate results by a property key","default":"undefined","attribute":"aggregate-results"},{"kind":"field","name":"autoSpreadSingle","privacy":"public","type":{"text":"Boolean"},"description":"Automatically spread single item summaries\\nremoving the summary header","default":"false","attribute":"auto-spread-single"},{"kind":"field","name":"enableHighlighting","privacy":"public","type":{"text":"Boolean"},"description":"Highlighting of search result character matches","default":"false","attribute":"enable-highlighting"},{"kind":"field","name":"externalFilter","privacy":"public","type":{"text":"Function"},"description":"Use an external search endpoint instead of fuse search.\\nPassed properties: input string, filters object","default":"null"},{"kind":"field","name":"filterProperties","privacy":"public","type":{"text":"Array<{key?: String, keys?: Array, title: String, type: String, placeholder?: String, format?: String, state?: Object}>"},"description":"The filter properties.","default":"[]"},{"kind":"field","name":"fuseConfig","privacy":"public","type":{"text":"Object"},"description":"Native fuse.js config override","default":"{}"},{"kind":"field","name":"inlineMode","privacy":"public","type":{"text":"Boolean"},"description":"Inline mode, for rendering the itemfilter in a very condensed space.\\nExpects showResults to be false","default":"false","attribute":"inline-mode"},{"kind":"field","name":"matchAllWhenEmpty","privacy":"public","type":{"text":"Boolean"},"description":"Show all result items if nothing is input by the user","default":"true","attribute":"match-all-when-empty"},{"kind":"field","name":"showResults","privacy":"public","type":{"text":"Boolean"},"description":"Display results list","default":"true","attribute":"show-result"},{"kind":"field","name":"titleProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for display","default":"\\"title\\"","attribute":"title-property"},{"kind":"field","name":"subTitleProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for a subtitle","default":"undefined","attribute":"sub-title-property"},{"kind":"field","name":"imageProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for an image","default":"undefined","attribute":"image-property"},{"kind":"field","name":"idProperty","privacy":"public","type":{"text":"String"},"description":"Unique id property of items","default":"\\"id\\"","attribute":"id-property"},{"kind":"field","name":"expandMultipleFilters","privacy":"public","type":{"text":"Boolean"},"description":"Allow opening multiple filter accordions in parallel","default":"true","attribute":"enable-multiple-filter"},{"kind":"field","name":"expandResults","privacy":"public","type":{"text":"Boolean"},"description":"Initialize result accordions expanded","default":"true","attribute":"expand-result"},{"kind":"field","name":"expandMultipleResults","privacy":"public","type":{"text":"Boolean"},"description":"Allow opening multiple result accordions in parallel","default":"true","attribute":"expand-multiple-results"},{"kind":"field","name":"resultType","privacy":"public","type":{"text":"String"},"description":"Rendering type for results (can be `list`or `cards`)","default":"\\"list\\"","attribute":"result-type"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"events":[{"name":"filter","type":{"text":"CustomEvent"},"description":"Fires when the filters are changed; event detail includes `filters` and `results`"},{"name":"select","type":{"text":"CustomEvent"},"description":"Fires when a result is selected; event detail is `selectedResult`"}],"attributes":[{"name":"aggregate-results","type":{"text":"String"},"description":"Aggregate results by a property key","default":"undefined","fieldName":"aggregateResults"},{"name":"auto-spread-single","type":{"text":"Boolean"},"description":"Automatically spread single item summaries\\nremoving the summary header","default":"false","fieldName":"autoSpreadSingle"},{"name":"enable-highlighting","type":{"text":"Boolean"},"description":"Highlighting of search result character matches","default":"false","fieldName":"enableHighlighting"},{"name":"inline-mode","type":{"text":"Boolean"},"description":"Inline mode, for rendering the itemfilter in a very condensed space.\\nExpects showResults to be false","default":"false","fieldName":"inlineMode"},{"name":"match-all-when-empty","type":{"text":"Boolean"},"description":"Show all result items if nothing is input by the user","default":"true","fieldName":"matchAllWhenEmpty"},{"name":"show-result","type":{"text":"Boolean"},"description":"Display results list","default":"true","fieldName":"showResults"},{"name":"id-property","type":{"text":"String"},"description":"Unique id property of items","default":"\\"id\\"","fieldName":"idProperty"},{"name":"title-property","type":{"text":"String"},"description":"The property of the result items used for display","default":"\\"title\\"","fieldName":"titleProperty"},{"name":"sub-title-property","type":{"text":"String"},"description":"The property of the result items used for a subtitle","default":"undefined","fieldName":"subTitleProperty"},{"name":"image-property","type":{"text":"String"},"description":"The property of the result items used for an image","default":"undefined","fieldName":"imageProperty"},{"name":"enable-multiple-filter","type":{"text":"Boolean"},"description":"Allow opening multiple filter accordions in parallel","default":"true","fieldName":"expandMultipleFilters"},{"name":"expand-result","type":{"text":"Boolean"},"description":"Initialize result accordions expanded","default":"true","fieldName":"expandResults"},{"name":"expand-multiple-results","type":{"text":"Boolean"},"description":"Allow opening multiple result accordions in parallel","default":"true","fieldName":"expandMultipleResults"},{"name":"result-type","type":{"text":"String"},"description":"Rendering type for results (can be `list`or `cards`)","default":"\\"list\\"","fieldName":"resultType"},{"name":"unstyled","type":{"text":"boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-itemfilter","customElement":true}],"exports":[{"kind":"js","name":"EOxItemFilter","declaration":{"name":"EOxItemFilter","module":"elements/itemfilter/src/main.js"}},{"kind":"custom-element-definition","name":"eox-itemfilter","declaration":{"name":"EOxItemFilter","module":"elements/itemfilter/src/main.js"}}]},{"kind":"javascript-module","path":"elements/jsonform/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxJSONForm","members":[{"kind":"field","name":"#editor","privacy":"private","type":{"text":"{[key: string]: any}"},"default":"null","description":"editor instance generated through - JSONEditor"},{"kind":"field","name":"editor","description":"Getter for the JSONEditor instance","readonly":true},{"kind":"field","name":"schema","privacy":"public","type":{"text":"JsonSchema"},"description":"Schema for the form editor","return":{"type":{"text":"JsonSchema | String"}},"parameters":[{"name":"newSchema","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"field","name":"value","privacy":"public","type":{"text":"JsonSchema"},"description":"Default values for the form editor","parameters":[{"name":"newVal","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"method","name":"#emitValue","privacy":"private","description":"Value object has been changed"},{"kind":"method","name":"#dispatchEvent","privacy":"private","description":"Dispatch same function for multiple event type"},{"kind":"field","name":"options","privacy":"public","type":{"text":"object"},"description":"Default values for the form editor","default":"{ show_opt_in: false, disable_collapse: true, disable_edit_json: true, disable_properties: true, disable_array_delete_all_rows: true, disable_array_delete_last_row: true, array_controls_top: true, }"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"},{"kind":"field","name":"customEditorInterfaces","privacy":"public","type":{"text":"Array"},"description":"List of custom editor interface\\nRead more about the implementation of custom editor interfaces here:\\nhttps://github.com/json-editor/json-editor/blob/master/docs/custom-editor.html","default":"[]"}],"events":[{"name":"change","type":{"text":"CustomEvent"}}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-jsonform","customElement":true}],"exports":[{"kind":"js","name":"EOxJSONForm","declaration":{"name":"EOxJSONForm","module":"elements/jsonform/src/main.js"}},{"kind":"custom-element-definition","name":"eox-jsonform","declaration":{"name":"EOxJSONForm","module":"elements/jsonform/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/src/main.js","declarations":[{"kind":"class","description":"Display layers and groups of a connected OpenLayers map\\n\\n## Layer properties\\nIn order to be displayed correctly, the OpenLayers map layers need some custom properties (using e.g. `layer.set(property, value)`).\\n\\n#### `id?: string`\\nThe layer id. Not required but recommended. Can also be any other layer property (defined via the `idProperty` property or `id-property`attribute - see API).\\n\\n#### `title?: string`\\nThe title of the layer displayed in the layer control. Not required, but recommended in order to display human-readable layer titles. Can be any other layer property (defined via the `titleProperty` property or `title-property`attribute - see API).\\n\\n#### `layerControlHide?: Boolean`\\nCompletely hide a layer from the layer control.\\n\\n#### `layerControlOptional?: Boolean`\\nInitially hide a layer from the layer control, but make it available as an optional layer. If the layer is selected and added, it will be set to visible and pushed to the top of the layer list or (if originally configured within a layer group) to the top of the layer group.\\n\\n#### `layerControlExclusive?: Boolean`\\nMake layers mutually exclusive. If two or more layers (on the same level, i.e. at root or inside a layer group) have this property, then only one of them can be visualized at a time.\\n\\n#### `layerControlExpand?: Boolean`\\nPre-expand a layer dropdown so that it is always open when the component initializes.\\n\\n#### `layerControlToolsExpand?: Boolean`\\nPre-expand the layer tools so they are visible when the component initializes.\\n\\n#### `layerConfig?: Object`\\nConfiguration options for the layer (displayed in the layer tools\' \\"config\\" tab)\\n\\n#### `layerDateTime?: Object`\\nPartial eox-timecontrol config passed to the \\"datetime\\" tool\\n\\n### `layerLegend`?: Object\\nCreates a dynamic color legend based on range & domain of values. Extenteds partial config of `color-legend-element`","name":"EOxLayerControl","members":[{"kind":"field","name":"#eoxMap","privacy":"private","description":"Instance of `eox-map` which is a wrapper for the OL","type":{"text":"EOxMap"}},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"#handleLayerControlLayerListChange","privacy":"private","parameters":[{"name":"evt","type":{"text":"CustomEvent & {target: Element}"}}],"description":"Event handler for changes in the layer list"},{"kind":"method","name":"#handleDatetimeUpdate","privacy":"private","parameters":[{"name":"evt","type":{"text":"CustomEvent"}}],"description":"Dispatches datetime updates from layer datetime to the layercontrol"},{"kind":"field","name":"#styleEOX","privacy":"private","default":"` :host, :root { font-family: Roboto, sans-serif; --padding: 0.5rem; --padding-vertical: .2rem; --list-padding: 48px; --layer-input-visibility: flex; --layer-summary-visibility: flex; --layer-type-visibility: block; --layer-title-visibility: flex; --layer-visibility: block; --layer-tools-button-visibility: flex; display: block; padding: var(--padding) 0; --background-color: var(--eox-background-color, transparent); background-color: var(--background-color, transparent); } select { background-color: var(--background-color); } `"},{"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":"idProperty","privacy":"public","type":{"text":"String"},"description":"Layer id property","default":"\\"id\\"","attribute":"id-property"},{"kind":"field","name":"map","privacy":"public","type":{"text":"Map"},"description":"The native OL map instance","default":"null"},{"kind":"field","name":"titleProperty","privacy":"public","type":{"text":"String"},"description":"Layer title property","default":"\\"title\\"","attribute":"title-property"},{"kind":"field","name":"showLayerZoomState","privacy":"public","type":{"text":"Boolean"},"description":"Show layer state based on zoom level or not","default":"false","attribute":"show-layer-zoom-state"},{"kind":"field","name":"tools","privacy":"public","type":{"text":"Array"},"description":"Layer tools","default":"[\\"info\\", \\"opacity\\", \\"datetime\\", \\"config\\", \\"remove\\", \\"sort\\"]"},{"kind":"field","name":"addExternalLayers","privacy":"public","type":{"text":"Boolean"},"description":"Enable-disable external layer","default":"false"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"},{"kind":"field","name":"styleOverride","privacy":"public","type":{"text":"String"},"description":"Overrides elements current CSS.","default":"\\"\\"","attribute":"styleOverride"},{"kind":"field","name":"toolsAsList","privacy":"public","type":{"text":"Boolean"},"description":"If enabled, the tools section will be rendered as list.","default":"false","attribute":"toolsAsList"}],"events":[{"name":"layerchange","type":{"text":"CustomEvent"},"description":"A generic layer change event; could be a layer visibility, group length updates and others.\\nPasses the changed layer in the `detail`."},{"name":"datetime:updated","type":{"text":"CustomEvent"}}],"attributes":[{"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":"id-property","type":{"text":"String"},"description":"Layer id property","default":"\\"id\\"","fieldName":"idProperty"},{"name":"title-property","type":{"text":"String"},"description":"Layer title property","default":"\\"title\\"","fieldName":"titleProperty"},{"name":"show-layer-zoom-state","type":{"text":"Boolean"},"description":"Show layer state based on zoom level or not","default":"false","fieldName":"showLayerZoomState"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"},{"name":"styleOverride","type":{"text":"String"},"description":"Overrides elements current CSS.","default":"\\"\\"","fieldName":"styleOverride"},{"name":"toolsAsList","type":{"text":"Boolean"},"description":"If enabled, the tools section will be rendered as list.","default":"false","fieldName":"toolsAsList"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-layercontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxLayerControl","declaration":{"name":"EOxLayerControl","module":"elements/layercontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layercontrol","declaration":{"name":"EOxLayerControl","module":"elements/layercontrol/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layout/src/main.js","declarations":[{"kind":"class","description":"This element allows to quickly set up an app layout using a 12x12 grid. It consists of two elements:\\n- `eox-layout`: the container holding all the items\\n- `eox-layout-item`: the individual items placed on the grid, with a defined x/y coordinate, and a w(idth) and h(eight)","name":"EOxLayout","members":[],"attributes":[{"name":"gap"}],"superclass":{"name":"HTMLElement"},"tagName":"eox-layout","customElement":true},{"kind":"class","description":"","name":"EOxLayoutItem","members":[],"attributes":[{"name":"x"},{"name":"y"},{"name":"w"},{"name":"h"}],"superclass":{"name":"HTMLElement"},"tagName":"eox-layout-item","customElement":true}],"exports":[{"kind":"js","name":"EOxLayout","declaration":{"name":"EOxLayout","module":"elements/layout/src/main.js"}},{"kind":"js","name":"EOxLayoutItem","declaration":{"name":"EOxLayoutItem","module":"elements/layout/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layout","declaration":{"name":"EOxLayout","module":"elements/layout/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layout-item","declaration":{"name":"EOxLayoutItem","module":"elements/layout/src/main.js"}}]},{"kind":"javascript-module","path":"elements/map/src/main.js","declarations":[{"kind":"class","description":"The `eox-map` is a wrapper for the library [OpenLayers](https://openlayers.org/) with additional features and helper functions.\\n\\nBasic usage:\\n\\n```\\nimport \\"@eox/map\\"\\n\\n\\n```\\n\\nSome basic layers, sources and formats are included in the default bundle, for advanced usage it is\\nrequired to import the `advancedLayersAndSources` plugin.\\n\\nIncluded in the base bundle:\\n- Formats: `GeoJSON`, `MVT`\\n- Layers: `Group`, `Image`, `Tile`, `Vector`, `VectorTile`\\n- Sources: `ImageWMS`, `OSM`, `Tile`, `TileWMS`, `Vector`, `VectorTile`, `WMTS`, `XYZ`\\n\\nIn order to use the rest of the layers and sources provided by OpenLayers, import the plugin as well:\\n\\n```\\nimport \\"@eox/map/src/plugins/advancedLayersAndSources\\"\\nimport \\"@eox/map\\"\\n\\n\\n```\\nIncluded in the advanced plugin bundle:\\n- Layers:\\n - All OpenLayers layer types\\n - [`STAC`](https://github.com/m-mohr/ol-stac)\\n- Sources:\\n - All OpenLayers source types\\n - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)\\n- Reprojection through [proj4](https://github.com/proj4js/proj4js)","name":"EOxMap","members":[{"kind":"field","name":"#zoomExtent","privacy":"private","description":"The current zoom extent of the map.\\nThis is used to define the maximum and minimum zoom levels.","type":{"text":"Extent"}},{"kind":"field","name":"#controls","privacy":"private","description":"Stores the controls applied to the map, such as zoom and navigation tools.","type":{"text":"ControlDictionary"}},{"kind":"field","name":"#layers","privacy":"private","description":"The array of layers currently added to the map.","type":{"text":"Array"}},{"kind":"field","name":"#preventScroll","privacy":"private","description":"Indicates whether the map\'s scroll interactions (zooming, panning) are prevented.","type":{"text":"Boolean"}},{"kind":"field","name":"#config","privacy":"private","description":"Holds the configuration object for initializing and managing the map\'s settings.","type":{"text":"ConfigObject"}},{"kind":"field","name":"#animationOptions","privacy":"private","description":"Options for animating changes to the map\'s view, such as panning or zooming.","type":{"text":"EOxAnimationOptions"}},{"kind":"field","name":"#sync","privacy":"private","description":"Represents the sync state of the map with another map instance.","type":{"text":"String"}},{"kind":"field","name":"#center","privacy":"private","type":{"text":"Array"},"default":"[0, 0]","description":"The current center coordinates of the map.\\nStored as an array of two numbers representing the x and y coordinates."},{"kind":"field","name":"#zoom","privacy":"private","type":{"text":"number"},"default":"0","description":"The current zoom level of the map."},{"kind":"field","name":"#projection","privacy":"private","type":{"text":"ProjectionLike"},"default":"\\"EPSG:3857\\"","description":"The map\'s projection system, specifying how coordinates are mapped on the globe.\\nDefaults to \\"EPSG:3857\\"."},{"kind":"field","name":"center","privacy":"public","type":{"text":"array"},"description":"Gets the current center coordinates of the map.","parameters":[{"description":"The new center coordinates [x, y].","name":"center","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"lonLatCenter","description":"Gets the current center of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"lonLatExtent","description":"Gets the current extent of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"zoom","description":"Gets the current zoom level of the map.","parameters":[{"description":"The new zoom level.","name":"zoom","type":{"text":"number"}}],"return":{"type":{"text":"number"}}},{"kind":"field","name":"zoomExtent","description":"Sets the zoom extent of the map.","parameters":[{"description":"The new zoom extent.","name":"extent","type":{"text":"Extent"}}]},{"kind":"field","name":"controls","description":"Gets the current map controls.","parameters":[{"description":"An array of control configurations.","name":"controls","type":{"text":"ControlDictionary"}}],"return":{"type":{"text":"Object"}}},{"kind":"field","name":"layers","privacy":"public","type":{"text":"array"},"description":"Gets the current layers of the map.","parameters":[{"description":"An array of layer configurations.","name":"layers","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"preventScroll","privacy":"public","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"attribute":"prevent-scroll"},{"kind":"field","name":"config","privacy":"public","type":{"text":"object"},"description":"Gets the current configuration of the map.","parameters":[{"description":"The configuration object.","name":"config","type":{"text":"ConfigObject"}}],"return":{"type":{"text":"ConfigObject"}}},{"kind":"field","name":"animationOptions","description":"Gets the current animation options.","parameters":[{"description":"The animation options.","name":"animationOptions","type":{"text":"EOxAnimationOptions"}}],"return":{"type":{"text":"EOxAnimationOptions"}}},{"kind":"field","name":"projection","privacy":"public","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"attribute":"projection"},{"kind":"field","name":"sync","privacy":"public","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"attribute":"sync"},{"kind":"method","name":"addOrUpdateLayer","parameters":[{"name":"json","description":"The layer configuration in JSON format.","type":{"text":"EoxLayer"}}],"description":"Adds or updates a layer on the map.","return":{"type":{"text":"Object"}}},{"kind":"method","name":"removeInteraction","parameters":[{"name":"id","description":"The ID of the interaction to remove.","type":{"text":"string | number"}}],"description":"Removes an interaction from the map by its ID."},{"kind":"method","name":"removeSelect","parameters":[{"name":"id","description":"The ID of the select interaction to remove.","type":{"text":"string | number"}}],"description":"Removes a select interaction from the map by its ID."},{"kind":"method","name":"removeControl","parameters":[{"name":"id","description":"The ID of the control to remove.","type":{"text":"string"}}],"description":"Removes a control from the map by its ID."},{"kind":"method","name":"getLayerById","parameters":[{"name":"layerId","description":"The ID of the layer to retrieve.","type":{"text":"string"}}],"description":"Retrieves a layer from the map by its ID.","return":{"type":{"text":"AnyLayerWithSource"}}},{"kind":"field","name":"parseFeature","default":"parseFeature","description":"Parses a feature from the input data.","type":{"text":"Function"}},{"kind":"field","name":"parseTextToFeature","default":"parseTextToFeature","description":"Parses text into a feature."},{"kind":"field","name":"registerProjectionFromCode","default":"registerProjectionFromCode","description":"Registers a projection from an EPSG code."},{"kind":"field","name":"registerProjection","default":"registerProjection","description":"Registers a custom projection."},{"kind":"field","name":"getFlatLayersArray","default":"getFlatLayersArray","description":"Retrieves all layers in a flat array."},{"kind":"field","name":"transform","default":"transform","description":"Transforms coordinates between different projections."},{"kind":"field","name":"transformExtent","default":"transformExtent","description":"Transforms the extent between different projections."},{"kind":"field","name":"buffer","default":"buffer","description":"Applies a buffer around an extent."},{"kind":"field","name":"map","privacy":"public","description":"The OpenLayers map instance.","type":{"text":"default"},"default":"new Map({ controls: [], layers: [], view: new View({ center: [0, 0], zoom: 0, projection: this.projection, }), })"},{"kind":"field","name":"interactions","type":{"text":"Object."},"description":"Object to store various map interactions (e.g., drag, zoom).","default":"{}"},{"kind":"field","name":"selectInteractions","privacy":"public","type":{"text":"Object."},"description":"Object to store selection interactions for the map.","default":"{}"},{"kind":"field","name":"mapControls","privacy":"public","type":{"text":"Object."},"description":"Object to store map controls (e.g., custom buttons, geolocation).","default":"{}"},{"kind":"field","name":"intersections","privacy":"public","type":{"text":"object"}}],"attributes":[{"name":"prevent-scroll","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"fieldName":"preventScroll"},{"name":"sync","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"fieldName":"sync"},{"name":"projection","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"fieldName":"projection"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-map","customElement":true}],"exports":[{"kind":"js","name":"EOxMap","declaration":{"name":"EOxMap","module":"elements/map/src/main.js"}},{"kind":"custom-element-definition","name":"eox-map","declaration":{"name":"EOxMap","module":"elements/map/src/main.js"}}]},{"kind":"javascript-module","path":"elements/stacinfo/src/main.js","declarations":[{"kind":"class","description":"### Introduction\\nWorking with STAC catalogs, collections and items often times requires\\nto fetch a JSON file, parse its contents and display some of its fields\\nin some formatted way. To make these steps reusable, the `eox-stacinfo`\\nelement offers a set of functionalities:\\n- **automatically fetch a STAC file** as soon as the element loads\\n- offer a **property whitelist** functionality to choose which properties to display\\n- display the properties in **configurable sections** (header, body, featured, footer)\\n- allow to **override** any property display for application-specific custom needs\\n\\nThe use case for this element is alongside a map which displays STAC files\\nor in a catalog browsing scenario where a quick look at the most important properties\\nis needed.\\n\\n#### Technology\\nUnder the hood, this element uses [stac-fields](https://github.com/stac-utils/stac-fields) for parsing and pre-formatting properties.","name":"EOxStacInfo","members":[{"kind":"field","name":"allowHtml","privacy":"public","type":{"text":"boolean"},"description":"Whether to allow HTML in the property display","default":"false","attribute":"allow-html"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"description":"Whether to use unstyled mode","default":"false","attribute":"unstyled"},{"kind":"field","name":"for","privacy":"public","type":{"text":"string"},"description":"The identifier for the STAC resource to fetch","default":"\\"\\"","attribute":"for"},{"kind":"field","name":"header","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the header","default":"[]"},{"kind":"field","name":"tags","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display to display as tags","default":"[]"},{"kind":"field","name":"body","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display to display in the main body","default":"[]"},{"kind":"field","name":"featured","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the featured section","default":"[]"},{"kind":"field","name":"footer","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the footer","default":"[]"},{"kind":"field","name":"stacInfo","privacy":"public","type":{"text":"Array"},"description":"The state object containing the fetched STAC information","default":"[]"},{"kind":"field","name":"stacProperties","privacy":"public","type":{"text":"Array"},"description":"The state object containing the parsed STAC properties","default":"[]"}],"attributes":[{"name":"allow-html","type":{"text":"boolean"},"description":"Whether to allow HTML in the property display","default":"false","fieldName":"allowHtml"},{"name":"unstyled","type":{"text":"boolean"},"description":"Whether to use unstyled mode","default":"false","fieldName":"unstyled"},{"name":"for","type":{"text":"string"},"description":"The identifier for the STAC resource to fetch","default":"\\"\\"","fieldName":"for"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-stacinfo","customElement":true}],"exports":[{"kind":"js","name":"EOxStacInfo","declaration":{"name":"EOxStacInfo","module":"elements/stacinfo/src/main.js"}},{"kind":"custom-element-definition","name":"eox-stacinfo","declaration":{"name":"EOxStacInfo","module":"elements/stacinfo/src/main.js"}}]},{"kind":"javascript-module","path":"elements/storytelling/src/main.js","declarations":[{"kind":"class","description":"Manage drawn features on a map","name":"EOxStoryTelling","members":[{"kind":"field","name":"#html","privacy":"private","description":"Generated HTML string using markdown","type":{"text":"String"},"default":"undefined"},{"kind":"field","name":"#config","privacy":"private","type":{"text":"Object"},"default":"{}","description":"Basic config"},{"kind":"field","name":"#debounceUpdateMarkdown","privacy":"private","type":{"text":"Object"},"default":"null","description":"Debounce update markdown"},{"kind":"method","name":"#dispatchInitEvent","privacy":"private","parameters":[{"name":"element","description":"Dom element","type":{"text":"Element"}}]},{"kind":"method","name":"handleSlotChange","description":"Handles changes to the slot\'s content, updating the component\'s internal state."},{"kind":"method","name":"waitForHtmlInitialization"},{"kind":"field","name":"markdown","privacy":"public","type":{"text":"String"},"description":"Markdown Content","default":"\\"\\"","attribute":"markdown"},{"kind":"field","name":"markdownURL","privacy":"public","type":{"text":"String"},"description":"Markdown Content URL","default":"null","attribute":"markdown-url"},{"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":"no-shadow"},{"kind":"field","name":"disableAutosave","privacy":"public","type":{"text":"Boolean"},"description":"Disable auto save","default":"false","attribute":"disable-autosave"},{"kind":"field","name":"showEditor","privacy":"public","type":{"text":"String | \\"closed\\" | undefined"},"description":"Enable or disable editor","default":"undefined","attribute":"show-editor"},{"kind":"field","name":"showNav","privacy":"public","type":{"text":"Boolean"},"description":"Enable or disable navigation","default":"false","attribute":"show-nav"},{"kind":"field","name":"nav","privacy":"public","type":{"text":"Array"},"description":"List of items in navigation","default":"[]"},{"kind":"field","name":"addCustomSectionIndex","privacy":"public","type":{"text":"Number"},"description":"custom section index","default":"-1","attribute":"addCustomSectionIndex"},{"kind":"field","name":"selectedCustomElement","privacy":"public","type":{"text":"Object | null"},"description":"Selected custom element object","default":"null","attribute":"selectedCustomElement"}],"events":[{"name":"init","type":{"text":"CustomEvent"}},{"name":"changed","type":{"text":"CustomEvent"}}],"attributes":[{"name":"markdown","type":{"text":"String"},"description":"Markdown Content","default":"\\"\\"","fieldName":"markdown"},{"name":"markdown-url","type":{"text":"String"},"description":"Markdown Content URL","default":"null","fieldName":"markdownURL"},{"name":"show-nav","type":{"text":"Boolean"},"description":"Enable or disable navigation","default":"false","fieldName":"showNav"},{"name":"show-editor","type":{"text":"String | \\"closed\\" | undefined"},"description":"Enable or disable editor","default":"undefined","fieldName":"showEditor"},{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"disable-autosave","type":{"text":"Boolean"},"description":"Disable auto save","default":"false","fieldName":"disableAutosave"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"},{"name":"addCustomSectionIndex","type":{"text":"Number"},"description":"custom section index","default":"-1","fieldName":"addCustomSectionIndex"},{"name":"selectedCustomElement","type":{"text":"Object | null"},"description":"Selected custom element object","default":"null","fieldName":"selectedCustomElement"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-storytelling","customElement":true}],"exports":[{"kind":"js","name":"EOxStoryTelling","declaration":{"name":"EOxStoryTelling","module":"elements/storytelling/src/main.js"}},{"kind":"custom-element-definition","name":"eox-storytelling","declaration":{"name":"EOxStoryTelling","module":"elements/storytelling/src/main.js"}}]},{"kind":"javascript-module","path":"elements/timecontrol/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxTimeControl","members":[{"kind":"method","name":"next","description":"Go to next step"},{"kind":"method","name":"previous","description":"Go to previous step"},{"kind":"method","name":"playAnimation","parameters":[{"name":"on","description":"animation on/off","type":{"text":"boolean"}}],"description":"Toggle play animation"},{"kind":"method","name":"setConfig","parameters":[{"name":"config","type":{"text":"@param {string} [config.layer]\\n * @param {string} [config.controlProperty]\\n * @param {Array} [config.controlValues]"}}],"description":"Set the config at a later point"},{"kind":"field","name":"currentStep","privacy":"public","type":{"text":"string"},"description":"The currently selected step","attribute":"current-step"},{"kind":"method","name":"updateMap"},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"_updateStep","parameters":[{"name":"step","default":"1","optional":true,"type":{"text":"number"}}],"privacy":"private"},{"kind":"method","name":"getFlatLayersArray","parameters":[{"name":"layers","type":{"text":"default[]"}}],"description":"TEMP / TO-DO, this is a copy of the function defined in the eox-map:\\nhttps://github.com/EOX-A/EOxElements/blob/main/elements/map/src/layer.ts#L25\\nConsider a way to properly export that function and use it here\\nSee also:\\nhttps://github.com/EOX-A/EOxElements/issues/974","return":{"type":{"text":"default[]"}}},{"kind":"field","name":"controlValues","privacy":"public","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","attribute":"control-values"},{"kind":"field","name":"_newStepIndex","privacy":"public","type":{"text":"number"},"default":"0","attribute":"_newStepIndex"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"default":"false","attribute":"unstyled"},{"kind":"field","name":"play","privacy":"public","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","attribute":"play"},{"kind":"field","name":"navigation","privacy":"public","type":{"text":"boolean"},"description":"Display left & right navigation buttons for the values","default":"true","attribute":"navigation"},{"kind":"field","name":"slider","privacy":"public","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","attribute":"slider"},{"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":"layer","privacy":"public","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","attribute":"layer"},{"kind":"field","name":"controlProperty","privacy":"public","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","attribute":"control-property"},{"kind":"field","name":"_eoxMap","privacy":"public","type":{"text":"HTMLElement |undefined"},"default":"undefined","attribute":"_eoxMap"},{"kind":"field","name":"_width","privacy":"public","type":{"text":"number"},"default":"300","attribute":"_width"},{"kind":"field","name":"displayFormat","privacy":"public","type":{"text":"string"},"description":"Date format string for displaying the current step\\nusing [dayjs format token strings](https://day.js.org/docs/en/display/format)","default":"undefined","attribute":"display-format"},{"kind":"field","name":"_originalParams","privacy":"public","type":{"text":"object"},"description":"Original params of layer source","attribute":"_originalParams"},{"kind":"field","name":"_animationInterval","privacy":"public","attribute":"_animationInterval"},{"kind":"field","name":"_controlSource","privacy":"public","attribute":"_controlSource"},{"kind":"field","name":"_isAnimationPlaying","privacy":"public","attribute":"_isAnimationPlaying"}],"events":[{"name":"stepchange","type":{"text":"CustomEvent"},"description":"Triggers when *currentStep* is updated.\\n`event.detail.currentStep` returns the new *currentStep* value."}],"attributes":[{"name":"control-property","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","fieldName":"controlProperty"},{"name":"control-values","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","fieldName":"controlValues"},{"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":"layer","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","fieldName":"layer"},{"name":"slider","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","fieldName":"slider"},{"name":"navigation","type":{"text":"boolean"},"description":"Display left & right navigation buttons for the values","default":"true","fieldName":"navigation"},{"name":"_originalParams","type":{"text":"object"},"description":"Original params of layer source","fieldName":"_originalParams"},{"name":"play","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","fieldName":"play"},{"name":"display-format","type":{"text":"string"},"description":"Date format string for displaying the current step\\nusing [dayjs format token strings](https://day.js.org/docs/en/display/format)","default":"undefined","fieldName":"displayFormat"},{"name":"current-step","type":{"text":"string"},"description":"The currently selected step","fieldName":"currentStep"},{"name":"_animationInterval","fieldName":"_animationInterval"},{"name":"_controlSource","fieldName":"_controlSource"},{"name":"_isAnimationPlaying","fieldName":"_isAnimationPlaying"},{"name":"_newStepIndex","type":{"text":"number"},"default":"0","fieldName":"_newStepIndex"},{"name":"_eoxMap","type":{"text":"HTMLElement |undefined"},"default":"undefined","fieldName":"_eoxMap"},{"name":"_width","type":{"text":"number"},"default":"300","fieldName":"_width"},{"name":"unstyled","type":{"text":"boolean"},"default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-timecontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxTimeControl","declaration":{"name":"EOxTimeControl","module":"elements/timecontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-timecontrol","declaration":{"name":"EOxTimeControl","module":"elements/timecontrol/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxJSONForm","members":[{"kind":"field","name":"#editor","privacy":"private","type":{"text":"{[key: string]: any}"},"default":"null","description":"editor instance generated through - JSONEditor"},{"kind":"field","name":"editor","description":"Getter for the JSONEditor instance","readonly":true},{"kind":"field","name":"schema","privacy":"public","type":{"text":"JsonSchema"},"description":"Schema for the form editor","return":{"type":{"text":"JsonSchema | String"}},"parameters":[{"name":"newSchema","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"field","name":"value","privacy":"public","type":{"text":"JsonSchema"},"description":"Default values for the form editor","parameters":[{"name":"newVal","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"method","name":"#emitValue","privacy":"private","description":"Value object has been changed"},{"kind":"method","name":"#dispatchEvent","privacy":"private","description":"Dispatch same function for multiple event type"},{"kind":"field","name":"options","privacy":"public","type":{"text":"object"},"description":"Default values for the form editor","default":"{ show_opt_in: false, disable_collapse: true, disable_edit_json: true, disable_properties: true, disable_array_delete_all_rows: true, disable_array_delete_last_row: true, array_controls_top: true, }"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"events":[{"name":"change","type":{"text":"CustomEvent"}}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-jsonform","customElement":true}],"exports":[{"kind":"js","name":"EOxJSONForm","declaration":{"name":"EOxJSONForm","module":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js"}},{"kind":"custom-element-definition","name":"eox-jsonform","declaration":{"name":"EOxJSONForm","module":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/map/src/main.js","declarations":[{"kind":"class","description":"The `eox-map` is a wrapper for the library [OpenLayers](https://openlayers.org/) with additional features and helper functions.\\n\\nBasic usage:\\n\\n```\\nimport \\"@eox/map\\"\\n\\n\\n```\\n\\nSome basic layers, sources and formats are included in the default bundle, for advanced usage it is\\nrequired to import the `advancedLayersAndSources` plugin.\\n\\nIncluded in the base bundle:\\n- Formats: `GeoJSON`, `MVT`\\n- Layers: `Group`, `Image`, `Tile`, `Vector`, `VectorTile`\\n- Sources: `ImageWMS`, `OSM`, `Tile`, `TileWMS`, `Vector`, `VectorTile`, `WMTS`, `XYZ`\\n\\nIn order to use the rest of the layers and sources provided by OpenLayers, import the plugin as well:\\n\\n```\\nimport \\"@eox/map/src/plugins/advancedLayersAndSources\\"\\nimport \\"@eox/map\\"\\n\\n\\n```\\nIncluded in the advanced plugin bundle:\\n- Layers:\\n - All OpenLayers layer types\\n - [`STAC`](https://github.com/m-mohr/ol-stac)\\n- Sources:\\n - All OpenLayers source types\\n - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)\\n- Reprojection through [proj4](https://github.com/proj4js/proj4js)","name":"EOxMap","members":[{"kind":"field","name":"#zoomExtent","privacy":"private","description":"The current zoom extent of the map.\\nThis is used to define the maximum and minimum zoom levels.","type":{"text":"Extent"}},{"kind":"field","name":"#controls","privacy":"private","description":"Stores the controls applied to the map, such as zoom and navigation tools.","type":{"text":"ControlDictionary"}},{"kind":"field","name":"#layers","privacy":"private","description":"The array of layers currently added to the map.","type":{"text":"Array"}},{"kind":"field","name":"#preventScroll","privacy":"private","description":"Indicates whether the map\'s scroll interactions (zooming, panning) are prevented.","type":{"text":"Boolean"}},{"kind":"field","name":"#config","privacy":"private","description":"Holds the configuration object for initializing and managing the map\'s settings.","type":{"text":"ConfigObject"}},{"kind":"field","name":"#animationOptions","privacy":"private","description":"Options for animating changes to the map\'s view, such as panning or zooming.","type":{"text":"EOxAnimationOptions"}},{"kind":"field","name":"#sync","privacy":"private","description":"Represents the sync state of the map with another map instance.","type":{"text":"String"}},{"kind":"field","name":"#center","privacy":"private","type":{"text":"Array"},"default":"[0, 0]","description":"The current center coordinates of the map.\\nStored as an array of two numbers representing the x and y coordinates."},{"kind":"field","name":"#zoom","privacy":"private","type":{"text":"number"},"default":"0","description":"The current zoom level of the map."},{"kind":"field","name":"#projection","privacy":"private","type":{"text":"ProjectionLike"},"default":"\\"EPSG:3857\\"","description":"The map\'s projection system, specifying how coordinates are mapped on the globe.\\nDefaults to \\"EPSG:3857\\"."},{"kind":"field","name":"center","privacy":"public","type":{"text":"array"},"description":"Gets the current center coordinates of the map.","parameters":[{"description":"The new center coordinates [x, y].","name":"center","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"lonLatCenter","description":"Gets the current center of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"lonLatExtent","description":"Gets the current extent of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"zoom","description":"Gets the current zoom level of the map.","parameters":[{"description":"The new zoom level.","name":"zoom","type":{"text":"number"}}],"return":{"type":{"text":"number"}}},{"kind":"field","name":"zoomExtent","description":"Sets the zoom extent of the map.","parameters":[{"description":"The new zoom extent.","name":"extent","type":{"text":"Extent"}}]},{"kind":"field","name":"controls","description":"Gets the current map controls.","parameters":[{"description":"An array of control configurations.","name":"controls","type":{"text":"ControlDictionary"}}],"return":{"type":{"text":"Object"}}},{"kind":"field","name":"layers","privacy":"public","type":{"text":"array"},"description":"Gets the current layers of the map.","parameters":[{"description":"An array of layer configurations.","name":"layers","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"preventScroll","privacy":"public","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"attribute":"prevent-scroll"},{"kind":"field","name":"config","privacy":"public","type":{"text":"object"},"description":"Gets the current configuration of the map.","parameters":[{"description":"The configuration object.","name":"config","type":{"text":"ConfigObject"}}],"return":{"type":{"text":"ConfigObject"}}},{"kind":"field","name":"animationOptions","description":"Gets the current animation options.","parameters":[{"description":"The animation options.","name":"animationOptions","type":{"text":"EOxAnimationOptions"}}],"return":{"type":{"text":"EOxAnimationOptions"}}},{"kind":"field","name":"projection","privacy":"public","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"attribute":"projection"},{"kind":"field","name":"sync","privacy":"public","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"attribute":"sync"},{"kind":"method","name":"addOrUpdateLayer","parameters":[{"name":"json","description":"The layer configuration in JSON format.","type":{"text":"EoxLayer"}}],"description":"Adds or updates a layer on the map.","return":{"type":{"text":"Object"}}},{"kind":"method","name":"removeInteraction","parameters":[{"name":"id","description":"The ID of the interaction to remove.","type":{"text":"string | number"}}],"description":"Removes an interaction from the map by its ID."},{"kind":"method","name":"removeSelect","parameters":[{"name":"id","description":"The ID of the select interaction to remove.","type":{"text":"string"}}],"description":"Removes a select interaction from the map by its ID."},{"kind":"method","name":"removeControl","parameters":[{"name":"id","description":"The ID of the control to remove.","type":{"text":"string"}}],"description":"Removes a control from the map by its ID."},{"kind":"method","name":"getLayerById","parameters":[{"name":"layerId","description":"The ID of the layer to retrieve.","type":{"text":"string"}}],"description":"Retrieves a layer from the map by its ID.","return":{"type":{"text":"AnyLayerWithSource"}}},{"kind":"field","name":"parseFeature","default":"parseFeature","description":"Parses a feature from the input data.","type":{"text":"Function"}},{"kind":"field","name":"parseTextToFeature","default":"parseTextToFeature","description":"Parses text into a feature."},{"kind":"field","name":"registerProjectionFromCode","default":"registerProjectionFromCode","description":"Registers a projection from an EPSG code."},{"kind":"field","name":"registerProjection","default":"registerProjection","description":"Registers a custom projection."},{"kind":"field","name":"getFlatLayersArray","default":"getFlatLayersArray","description":"Retrieves all layers in a flat array."},{"kind":"field","name":"transform","default":"transform","description":"Transforms coordinates between different projections."},{"kind":"field","name":"transformExtent","default":"transformExtent","description":"Transforms the extent between different projections."},{"kind":"field","name":"buffer","default":"buffer","description":"Applies a buffer around an extent."},{"kind":"field","name":"map","privacy":"public","description":"The OpenLayers map instance.","type":{"text":"default"},"default":"new Map({ controls: [], layers: [], view: new View({ center: [0, 0], zoom: 0, projection: this.projection, }), })"},{"kind":"field","name":"interactions","type":{"text":"Object."},"description":"Object to store various map interactions (e.g., drag, zoom).","default":"{}"},{"kind":"field","name":"selectInteractions","privacy":"public","type":{"text":"Object."},"description":"Object to store selection interactions for the map.","default":"{}"},{"kind":"field","name":"mapControls","privacy":"public","type":{"text":"Object."},"description":"Object to store map controls (e.g., custom buttons, geolocation).","default":"{}"},{"kind":"field","name":"intersections","privacy":"public","type":{"text":"object"}}],"attributes":[{"name":"prevent-scroll","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"fieldName":"preventScroll"},{"name":"sync","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"fieldName":"sync"},{"name":"projection","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"fieldName":"projection"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-map","customElement":true}],"exports":[{"kind":"js","name":"EOxMap","declaration":{"name":"EOxMap","module":"elements/layercontrol/node_modules/@eox/map/src/main.js"}},{"kind":"custom-element-definition","name":"eox-map","declaration":{"name":"EOxMap","module":"elements/layercontrol/node_modules/@eox/map/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxTimeControl","members":[{"kind":"method","name":"next","description":"Go to next step"},{"kind":"method","name":"previous","description":"Go to previous step"},{"kind":"method","name":"playAnimation","parameters":[{"name":"on","description":"animation on/off","type":{"text":"boolean"}}],"description":"Toggle play animation"},{"kind":"method","name":"setConfig","parameters":[{"name":"config","type":{"text":"@param {string} [config.layer]\\n * @param {string} [config.controlProperty]\\n * @param {Array} [config.controlValues]"}}],"description":"Set the config at a later point"},{"kind":"field","name":"currentStep","privacy":"public","type":{"text":"string"},"description":"The currently selected step","attribute":"current-step"},{"kind":"method","name":"updateMap"},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"_updateStep","parameters":[{"name":"step","default":"1","optional":true,"type":{"text":"number"}}],"privacy":"private"},{"kind":"method","name":"getFlatLayersArray","parameters":[{"name":"layers","type":{"text":"default[]"}}],"description":"TEMP / TO-DO, this is a copy of the function defined in the eox-map:\\nhttps://github.com/EOX-A/EOxElements/blob/main/elements/map/src/layer.ts#L25\\nConsider a way to properly export that function and use it here\\nSee also:\\nhttps://github.com/EOX-A/EOxElements/issues/974","return":{"type":{"text":"default[]"}}},{"kind":"field","name":"controlValues","privacy":"public","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","attribute":"control-values"},{"kind":"field","name":"_newStepIndex","privacy":"public","type":{"text":"number"},"default":"0","attribute":"_newStepIndex"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"default":"false","attribute":"unstyled"},{"kind":"field","name":"disablePlay","privacy":"public","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","attribute":"disable-play"},{"kind":"field","name":"slider","privacy":"public","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","attribute":"slider"},{"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":"layer","privacy":"public","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","attribute":"layer"},{"kind":"field","name":"controlProperty","privacy":"public","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","attribute":"control-property"},{"kind":"field","name":"_eoxMap","privacy":"public","type":{"text":"HTMLElement |undefined"},"default":"undefined","attribute":"_eoxMap"},{"kind":"field","name":"_width","privacy":"public","type":{"text":"number"},"default":"300","attribute":"_width"},{"kind":"field","name":"_originalParams","privacy":"public","type":{"text":"object"},"description":"Original params of layer source","attribute":"_originalParams"},{"kind":"field","name":"_animationInterval","privacy":"public","attribute":"_animationInterval"},{"kind":"field","name":"_controlSource","privacy":"public","attribute":"_controlSource"},{"kind":"field","name":"_isAnimationPlaying","privacy":"public","attribute":"_isAnimationPlaying"}],"events":[{"name":"stepchange","type":{"text":"CustomEvent"},"description":"Triggers when *currentStep* is updated.\\n`event.detail.currentStep` returns the new *currentStep* value."}],"attributes":[{"name":"control-property","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","fieldName":"controlProperty"},{"name":"control-values","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","fieldName":"controlValues"},{"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":"layer","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","fieldName":"layer"},{"name":"slider","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","fieldName":"slider"},{"name":"_originalParams","type":{"text":"object"},"description":"Original params of layer source","fieldName":"_originalParams"},{"name":"disable-play","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","fieldName":"disablePlay"},{"name":"current-step","type":{"text":"string"},"description":"The currently selected step","fieldName":"currentStep"},{"name":"_animationInterval","fieldName":"_animationInterval"},{"name":"_controlSource","fieldName":"_controlSource"},{"name":"_isAnimationPlaying","fieldName":"_isAnimationPlaying"},{"name":"_newStepIndex","type":{"text":"number"},"default":"0","fieldName":"_newStepIndex"},{"name":"_eoxMap","type":{"text":"HTMLElement |undefined"},"default":"undefined","fieldName":"_eoxMap"},{"name":"_width","type":{"text":"number"},"default":"300","fieldName":"_width"},{"name":"unstyled","type":{"text":"boolean"},"default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-timecontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxTimeControl","declaration":{"name":"EOxTimeControl","module":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-timecontrol","declaration":{"name":"EOxTimeControl","module":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js"}}]}]'),LKe={schemaVersion:kKe,readme:TKe,modules:DKe};function ibe(e){const t={h3:"h3",...wCe(),...e.components};return bu.jsxs(bu.Fragment,{children:[` +`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",t),i}function uKe(e,t){const n=Bke(e.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||t({data:{buffer:n(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class cKe extends OCe{constructor(t){super(),this.imageOps_=!!t.imageOps;let n;t.threads===0?n=0:this.imageOps_?n=1:n=t.threads||1;const r=new Array(n);if(n)for(let i=0;ithis.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const t=this.queue_.shift();this.job_=t;const n=t.inputs[0].width,r=t.inputs[0].height,i=t.inputs.map(function(l){return l.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:t.meta,imageOps:this.imageOps_,width:n,height:r},i);return}const o=t.inputs[0].data.length,a=4*Math.ceil(o/4/s);for(let l=0;l{var o;this.projection=t.projection!==void 0?oi(t.projection):r!==void 0?r.getProjection():this.projection,this.tileGrid=t.tileGrid!==void 0?t.tileGrid:r!==void 0?r.getTileGrid():this.tileGrid,this.zDirection=t.zDirection!==void 0?t.zDirection:r!==void 0?r.zDirection:this.zDirection,r instanceof uE&&(this.transformMatrix=((o=r.transformMatrix)==null?void 0:o.slice())||null);const s=this.tileGrid;s&&this.setTileSizes(s.getResolutions().map((a,l)=>wc(s.getTileSize(l)).map(u=>Math.max(Math.floor(u),1)))),this.setLoader((a,l,u,f)=>{const c=HCe(n,a,l,u,f.maxY),[d,h]=this.getTileSize(a),p=Jg(d,h);return p.strokeStyle="grey",p.strokeRect(.5,.5,d+.5,h+.5),p.fillStyle="grey",p.strokeStyle="white",p.textAlign="center",p.textBaseline="middle",p.font="24px sans-serif",p.lineWidth=4,p.strokeText(c,d/2,h/2,d),p.fillText(c,d/2,h/2,d),p.canvas}),this.setState("ready")};if(r===void 0||r.getState()==="ready")i();else{const s=()=>{r.getState()==="ready"&&(r.removeEventListener(kl.CHANGE,s),i())};r.addEventListener(kl.CHANGE,s)}}}class jke extends hh{constructor(t){if(super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:oi("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.tileJSON_=null,this.tileSize_=t.tileSize,t.url)if(t.jsonp)mP(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const n=new XMLHttpRequest;n.addEventListener("load",this.onXHRLoad_.bind(this)),n.addEventListener("error",this.onXHRError_.bind(this)),n.open("GET",t.url),n.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(t){const n=oi("EPSG:4326"),r=this.getProjection();let i;if(t.bounds!==void 0){const u=AI(n,r);i=Vv(t.bounds,u)}const s=nE(r),o=t.minzoom||0,a=t.maxzoom||22,l=rE({extent:s,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=VCe(t.tiles,l),t.attribution&&!this.getAttributions()){const u=i!==void 0?i:s;this.setAttributions(function(f){return Gv(u,f.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class EKe extends Kje{constructor(t,n,r,i,s,o){super(t,n),this.src_=r,this.extent_=i,this.preemptive_=s,this.grid_=null,this.keys_=null,this.data_=null,this.jsonp_=o}getImage(){return null}getData(t){if(!this.grid_||!this.keys_)return null;const n=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),r=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),i=this.grid_[Math.floor((1-r)*this.grid_.length)];if(typeof i!="string")return null;let s=i.charCodeAt(Math.floor(n*i.length));s>=93&&s--,s>=35&&s--,s-=32;let o=null;if(s in this.keys_){const a=this.keys_[s];this.data_&&a in this.data_?o=this.data_[a]:o=a}return o}forDataAtCoordinate(t,n,r){this.state==Ts.EMPTY&&r===!0?(this.state=Ts.IDLE,Jje(this,kl.CHANGE,i=>{n(this.getData(t))}),this.loadInternal_()):r===!0?setTimeout(()=>{n(this.getData(t))},0):n(this.getData(t))}getKey(){return this.src_}handleError_(){this.state=Ts.ERROR,this.changed()}handleLoad_(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=Ts.LOADED,this.changed()}loadInternal_(){if(this.state==Ts.IDLE)if(this.state=Ts.LOADING,this.jsonp_)mP(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleError_();return}this.handleLoad_(r)}else this.handleError_()}onXHRError_(t){this.handleError_()}load(){this.preemptive_?this.loadInternal_():this.setState(Ts.EMPTY)}}class SKe extends fD{constructor(t){if(super({projection:oi("EPSG:3857"),state:"loading",wrapX:t.wrapX!==void 0?t.wrapX:!0,zDirection:t.zDirection}),this.preemptive_=t.preemptive!==void 0?t.preemptive:!0,this.tileUrlFunction_=Zje,this.template_=void 0,this.jsonp_=t.jsonp||!1,t.url)if(this.jsonp_)mP(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const n=new XMLHttpRequest;n.addEventListener("load",this.onXHRLoad_.bind(this)),n.addEventListener("error",this.onXHRError_.bind(this)),n.open("GET",t.url),n.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const n=t.target;if(!n.status||n.status>=200&&n.status<300){let r;try{r=JSON.parse(n.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTemplate(){return this.template_}forDataAtCoordinateAndResolution(t,n,r,i){if(this.tileGrid){const s=this.tileGrid.getZForResolution(n,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,s);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,r,i)}else i===!0?setTimeout(function(){r(null)},0):r(null)}handleTileJSONError(){this.setState("error")}handleTileJSONResponse(t){const n=oi("EPSG:4326"),r=this.getProjection();let i;if(t.bounds!==void 0){const f=AI(n,r);i=Vv(t.bounds,f)}const s=nE(r),o=t.minzoom||0,a=t.maxzoom||22,l=rE({extent:s,maxZoom:a,minZoom:o});this.tileGrid=l,this.template_=t.template;const u=t.grids;if(!u){this.setState("error");return}if(this.tileUrlFunction_=VCe(u,l),t.attribution){const f=i!==void 0?i:s;this.setAttributions(function(c){return Gv(f,c.extent)?[t.attribution]:null})}this.setState("ready")}getTile(t,n,r,i,s){const o=[t,n,r],a=this.getTileCoordForTileUrlFunction(o,s),l=this.tileUrlFunction_(a,i,s);return new EKe(o,l!==void 0?Ts.IDLE:Ts.EMPTY,l!==void 0?l:"",this.tileGrid.getTileCoordExtent(o),this.preemptive_,this.jsonp_)}}function AKe(e,t){const n=new ICe(32),r=e.getExtent();return function(i,s){n.expireCache(),r&&(i=Kg(r,i));const o=e.getZForResolution(s),a=[];return e.forEachTileCoord(i,o,l=>{const u=l.toString();if(!n.containsKey(u)){const f=t(l);n.set(u,f)}a.push(n.get(u))}),a}}const CKe=Object.freeze(Object.defineProperty({__proto__:null,BingMaps:XYe,CartoDB:ZYe,Cluster:KYe,DataTile:uE,GeoTIFF:pP,Google:qZe,IIIF:GZe,Image:k0,ImageArcGISRest:VZe,ImageCanvas:WZe,ImageMapGuide:ZZe,ImageStatic:Fke,ImageTile:Mke,ImageWMS:Qje,OGCMapTile:oKe,OGCVectorTile:aKe,OSM:eUe,Raster:zke,Source:kI,StadiaMaps:xKe,Tile:fD,TileArcGISRest:wKe,TileDebug:_Ke,TileImage:hh,TileJSON:jke,TileWMS:WCe,UTFGrid:SKe,UrlTile:tUe,Vector:Q2,VectorTile:hD,WMTS:YCe,XYZ:X_,Zoomify:HZe,createArcGISRestLoader:Dke,createMapGuideLoader:Lke,createStaticLoader:Rke,createWMSLoader:nUe,sourcesFromTileGrid:AKe},Symbol.toStringTag,{value:"Module"})),kKe="1.0.0",TKe="",DKe=JSON.parse('[{"kind":"javascript-module","path":"elements/chart/src/main.js","declarations":[{"kind":"class","description":"Chart component based on [Vega-Lite](https://vega.github.io/vega-lite/)/[Vega-Embed](https://github.com/vega/vega-embed).\\nPass a valid Vega spec as `spec` property in order to render a chart.\\n\\nThe `eox-chart` provides some default `spec` settings (merged with the provided `spec` property) and helper functionalities on top of Vega-Lite.","name":"EOxChart","members":[{"kind":"field","name":"spec","privacy":"public","type":{"text":"VisualizationSpec"},"description":"[Vega-Lite spec](https://vega.github.io/vega-lite/docs/spec.html)","default":"undefined"},{"kind":"field","name":"dataValues","privacy":"public","type":{"text":"{[dataSourceName: string]: InlineData}"},"description":"Data values passed on runtime. Requires a [named data source](https://vega.github.io/vega-lite/docs/data.html#named) in the provided `spec`","default":"undefined"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-chart","customElement":true}],"exports":[{"kind":"js","name":"EOxChart","declaration":{"name":"EOxChart","module":"elements/chart/src/main.js"}},{"kind":"custom-element-definition","name":"eox-chart","declaration":{"name":"EOxChart","module":"elements/chart/src/main.js"}}]},{"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":"field","name":"#layerId","privacy":"private","type":{"text":"string"}},{"kind":"field","name":"layerId","privacy":"public","type":{"text":"string"},"description":"The ID of the Vector/Vector Tile Layer that contains features to be selected","default":"\\"\\"","attribute":"layer-id"},{"kind":"method","name":"startDrawing"},{"kind":"method","name":"discardDrawing"},{"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 | EOxSelectInteraction"},"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` (initialized with a `zIndex` of 100)","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":"projection","privacy":"public","type":{"text":"string"},"description":"Projection of the emitted drawn features","default":"\\"EPSG:4326\\"","attribute":"projection"},{"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":"selectionEvents","type":{"text":"ReturnType"},"default":"null"},{"kind":"field","name":"format","privacy":"public","type":{"text":"\\"feature\\"| \\"geojson\\" | \\"wkt\\""},"description":"The format in which the drawn features should be emitted","default":"\\"feature\\"","attribute":"format"},{"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":"layer-id","type":{"text":"string"},"description":"The ID of the Vector/Vector Tile Layer that contains features to be selected","default":"\\"\\"","fieldName":"layerId"},{"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":"projection","type":{"text":"string"},"description":"Projection of the emitted drawn features","default":"\\"EPSG:4326\\"","fieldName":"projection"},{"name":"noShadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"format","type":{"text":"\\"feature\\"| \\"geojson\\" | \\"wkt\\""},"description":"The format in which the drawn features should be emitted","default":"\\"feature\\"","fieldName":"format"},{"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":true}],"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\\nsimilar 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\\nsimilar 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":true},{"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":true}],"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.\\nIt includes methods for applying filters, searching, sorting results, and resetting filters.\\nThe component supports both inline and dropdown modes for filter display.","name":"EOxItemFilter","members":[{"kind":"field","name":"#resultAggregation","privacy":"private","type":{"text":"Array"},"default":"[]"},{"kind":"field","name":"#items","privacy":"private","type":{"text":"Array"},"default":"[]"},{"kind":"field","name":"#config","privacy":"private","default":"ELEMENT_CONFIG","type":{"text":"Object"}},{"kind":"method","name":"apply","description":"Applies the filters to the items and updates the result aggregation."},{"kind":"method","name":"searchHandler","description":"Performs a search based on the current configuration and items.\\nRequests an update after the search completes."},{"kind":"method","name":"sortResults","parameters":[{"name":"items","description":"The items to be sorted.","type":{"text":"Array"}}],"description":"Sorts the given items based on the current configuration.","return":{"type":{"text":"Array"}}},{"kind":"method","name":"#createFilter","privacy":"private","parameters":[{"name":"filterObject","description":"The filter object.","type":{"text":"Object"}},{"name":"tabIndex","description":"The tab index for the filter element.","type":{"text":"number"}}],"description":"Creates a filter element based on the given filter object and tab index.","return":{"type":{"text":"import(\\"lit\\")"}}},{"kind":"method","name":"#createReset","privacy":"private","parameters":[{"name":"filterObject","description":"The filter object.","type":{"text":"Object"}},{"name":"tabIndex","description":"The tab index for the reset element.","type":{"text":"number"}}],"description":"Creates a reset element for the given filter object and tab index.","return":{"type":{"text":"import(\\"lit\\")"}}},{"kind":"method","name":"resetFilters","description":"Resets all applied filters."},{"kind":"method","name":"updateResult","parameters":[{"name":"evt","description":"\\"result\\" event triggered by result component","type":{"text":"{detail: Object}"}}],"description":"Updates selected result when result component triggers the \\"result\\" event."},{"kind":"field","name":"items","privacy":"public","type":{"text":"Array"},"description":"The items to be filtered","default":"null"},{"kind":"field","name":"filters","privacy":"public","type":{"text":"Object"},"description":"The state object containing the applied filters.","default":"{}"},{"kind":"field","name":"results","privacy":"public","type":{"text":"Array"},"description":"The state object containing the filtered results.","default":"[]"},{"kind":"field","name":"selectedResult","privacy":"public","type":{"text":"Object"},"description":"The currently selected result","default":"null"},{"kind":"field","name":"search","type":{"text":"Function"},"privacy":"private"},{"kind":"field","name":"aggregateResults","privacy":"public","type":{"text":"String"},"description":"Aggregate results by a property key","default":"undefined","attribute":"aggregate-results"},{"kind":"field","name":"autoSpreadSingle","privacy":"public","type":{"text":"Boolean"},"description":"Automatically spread single item summaries\\nremoving the summary header","default":"false","attribute":"auto-spread-single"},{"kind":"field","name":"enableHighlighting","privacy":"public","type":{"text":"Boolean"},"description":"Highlighting of search result character matches","default":"false","attribute":"enable-highlighting"},{"kind":"field","name":"externalFilter","privacy":"public","type":{"text":"Function"},"description":"Use an external search endpoint instead of fuse search.\\nPassed properties: input string, filters object","default":"null"},{"kind":"field","name":"filterProperties","privacy":"public","type":{"text":"Array<{key?: String, keys?: Array, title: String, type: String, placeholder?: String, format?: String, state?: Object}>"},"description":"The filter properties.","default":"[]"},{"kind":"field","name":"fuseConfig","privacy":"public","type":{"text":"Object"},"description":"Native fuse.js config override","default":"{}"},{"kind":"field","name":"inlineMode","privacy":"public","type":{"text":"Boolean"},"description":"Inline mode, for rendering the itemfilter in a very condensed space.\\nExpects showResults to be false","default":"false","attribute":"inline-mode"},{"kind":"field","name":"matchAllWhenEmpty","privacy":"public","type":{"text":"Boolean"},"description":"Show all result items if nothing is input by the user","default":"true","attribute":"match-all-when-empty"},{"kind":"field","name":"showResults","privacy":"public","type":{"text":"Boolean"},"description":"Display results list","default":"true","attribute":"show-result"},{"kind":"field","name":"titleProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for display","default":"\\"title\\"","attribute":"title-property"},{"kind":"field","name":"subTitleProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for a subtitle","default":"undefined","attribute":"sub-title-property"},{"kind":"field","name":"imageProperty","privacy":"public","type":{"text":"String"},"description":"The property of the result items used for an image","default":"undefined","attribute":"image-property"},{"kind":"field","name":"idProperty","privacy":"public","type":{"text":"String"},"description":"Unique id property of items","default":"\\"id\\"","attribute":"id-property"},{"kind":"field","name":"expandMultipleFilters","privacy":"public","type":{"text":"Boolean"},"description":"Allow opening multiple filter accordions in parallel","default":"true","attribute":"enable-multiple-filter"},{"kind":"field","name":"expandResults","privacy":"public","type":{"text":"Boolean"},"description":"Initialize result accordions expanded","default":"true","attribute":"expand-result"},{"kind":"field","name":"expandMultipleResults","privacy":"public","type":{"text":"Boolean"},"description":"Allow opening multiple result accordions in parallel","default":"true","attribute":"expand-multiple-results"},{"kind":"field","name":"resultType","privacy":"public","type":{"text":"String"},"description":"Rendering type for results (can be `list`or `cards`)","default":"\\"list\\"","attribute":"result-type"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"events":[{"name":"filter","type":{"text":"CustomEvent"},"description":"Fires when the filters are changed; event detail includes `filters` and `results`"},{"name":"select","type":{"text":"CustomEvent"},"description":"Fires when a result is selected; event detail is `selectedResult`"}],"attributes":[{"name":"aggregate-results","type":{"text":"String"},"description":"Aggregate results by a property key","default":"undefined","fieldName":"aggregateResults"},{"name":"auto-spread-single","type":{"text":"Boolean"},"description":"Automatically spread single item summaries\\nremoving the summary header","default":"false","fieldName":"autoSpreadSingle"},{"name":"enable-highlighting","type":{"text":"Boolean"},"description":"Highlighting of search result character matches","default":"false","fieldName":"enableHighlighting"},{"name":"inline-mode","type":{"text":"Boolean"},"description":"Inline mode, for rendering the itemfilter in a very condensed space.\\nExpects showResults to be false","default":"false","fieldName":"inlineMode"},{"name":"match-all-when-empty","type":{"text":"Boolean"},"description":"Show all result items if nothing is input by the user","default":"true","fieldName":"matchAllWhenEmpty"},{"name":"show-result","type":{"text":"Boolean"},"description":"Display results list","default":"true","fieldName":"showResults"},{"name":"id-property","type":{"text":"String"},"description":"Unique id property of items","default":"\\"id\\"","fieldName":"idProperty"},{"name":"title-property","type":{"text":"String"},"description":"The property of the result items used for display","default":"\\"title\\"","fieldName":"titleProperty"},{"name":"sub-title-property","type":{"text":"String"},"description":"The property of the result items used for a subtitle","default":"undefined","fieldName":"subTitleProperty"},{"name":"image-property","type":{"text":"String"},"description":"The property of the result items used for an image","default":"undefined","fieldName":"imageProperty"},{"name":"enable-multiple-filter","type":{"text":"Boolean"},"description":"Allow opening multiple filter accordions in parallel","default":"true","fieldName":"expandMultipleFilters"},{"name":"expand-result","type":{"text":"Boolean"},"description":"Initialize result accordions expanded","default":"true","fieldName":"expandResults"},{"name":"expand-multiple-results","type":{"text":"Boolean"},"description":"Allow opening multiple result accordions in parallel","default":"true","fieldName":"expandMultipleResults"},{"name":"result-type","type":{"text":"String"},"description":"Rendering type for results (can be `list`or `cards`)","default":"\\"list\\"","fieldName":"resultType"},{"name":"unstyled","type":{"text":"boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-itemfilter","customElement":true}],"exports":[{"kind":"js","name":"EOxItemFilter","declaration":{"name":"EOxItemFilter","module":"elements/itemfilter/src/main.js"}},{"kind":"custom-element-definition","name":"eox-itemfilter","declaration":{"name":"EOxItemFilter","module":"elements/itemfilter/src/main.js"}}]},{"kind":"javascript-module","path":"elements/jsonform/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxJSONForm","members":[{"kind":"field","name":"#editor","privacy":"private","type":{"text":"{[key: string]: any}"},"default":"null","description":"editor instance generated through - JSONEditor"},{"kind":"field","name":"editor","description":"Getter for the JSONEditor instance","readonly":true},{"kind":"field","name":"schema","privacy":"public","type":{"text":"JsonSchema"},"description":"Schema for the form editor","return":{"type":{"text":"JsonSchema | String"}},"parameters":[{"name":"newSchema","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"field","name":"value","privacy":"public","type":{"text":"JsonSchema"},"description":"Default values for the form editor","parameters":[{"name":"newVal","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"method","name":"#emitValue","privacy":"private","description":"Value object has been changed"},{"kind":"method","name":"#dispatchEvent","privacy":"private","description":"Dispatch same function for multiple event type"},{"kind":"field","name":"options","privacy":"public","type":{"text":"object"},"description":"Default values for the form editor","default":"{ show_opt_in: false, disable_collapse: true, disable_edit_json: true, disable_properties: true, disable_array_delete_all_rows: true, disable_array_delete_last_row: true, array_controls_top: true, }"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"},{"kind":"field","name":"customEditorInterfaces","privacy":"public","type":{"text":"Array"},"description":"List of custom editor interface\\nRead more about the implementation of custom editor interfaces here:\\nhttps://github.com/json-editor/json-editor/blob/master/docs/custom-editor.html","default":"[]"}],"events":[{"name":"change","type":{"text":"CustomEvent"}}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-jsonform","customElement":true}],"exports":[{"kind":"js","name":"EOxJSONForm","declaration":{"name":"EOxJSONForm","module":"elements/jsonform/src/main.js"}},{"kind":"custom-element-definition","name":"eox-jsonform","declaration":{"name":"EOxJSONForm","module":"elements/jsonform/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/src/main.js","declarations":[{"kind":"class","description":"Display layers and groups of a connected OpenLayers map\\n\\n## Layer properties\\nIn order to be displayed correctly, the OpenLayers map layers need some custom properties (using e.g. `layer.set(property, value)`).\\n\\n#### `id?: string`\\nThe layer id. Not required but recommended. Can also be any other layer property (defined via the `idProperty` property or `id-property`attribute - see API).\\n\\n#### `title?: string`\\nThe title of the layer displayed in the layer control. Not required, but recommended in order to display human-readable layer titles. Can be any other layer property (defined via the `titleProperty` property or `title-property`attribute - see API).\\n\\n#### `layerControlHide?: Boolean`\\nCompletely hide a layer from the layer control.\\n\\n#### `layerControlOptional?: Boolean`\\nInitially hide a layer from the layer control, but make it available as an optional layer. If the layer is selected and added, it will be set to visible and pushed to the top of the layer list or (if originally configured within a layer group) to the top of the layer group.\\n\\n#### `layerControlExclusive?: Boolean`\\nMake layers mutually exclusive. If two or more layers (on the same level, i.e. at root or inside a layer group) have this property, then only one of them can be visualized at a time.\\n\\n#### `layerControlExpand?: Boolean`\\nPre-expand a layer dropdown so that it is always open when the component initializes.\\n\\n#### `layerControlToolsExpand?: Boolean`\\nPre-expand the layer tools so they are visible when the component initializes.\\n\\n#### `layerConfig?: Object`\\nConfiguration options for the layer (displayed in the layer tools\' \\"config\\" tab)\\n\\n#### `layerDateTime?: Object`\\nPartial eox-timecontrol config passed to the \\"datetime\\" tool\\n\\n### `layerLegend`?: Object\\nCreates a dynamic color legend based on range & domain of values. Extenteds partial config of `color-legend-element`","name":"EOxLayerControl","members":[{"kind":"field","name":"#eoxMap","privacy":"private","description":"Instance of `eox-map` which is a wrapper for the OL","type":{"text":"EOxMap"}},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"#handleLayerControlLayerListChange","privacy":"private","parameters":[{"name":"evt","type":{"text":"CustomEvent & {target: Element}"}}],"description":"Event handler for changes in the layer list"},{"kind":"method","name":"#handleDatetimeUpdate","privacy":"private","parameters":[{"name":"evt","type":{"text":"CustomEvent"}}],"description":"Dispatches datetime updates from layer datetime to the layercontrol"},{"kind":"field","name":"#styleEOX","privacy":"private","default":"` :host, :root { font-family: Roboto, sans-serif; --padding: 0.5rem; --padding-vertical: .2rem; --list-padding: 48px; --layer-input-visibility: flex; --layer-summary-visibility: flex; --layer-type-visibility: block; --layer-title-visibility: flex; --layer-visibility: block; --layer-tools-button-visibility: flex; display: block; padding: var(--padding) 0; --background-color: var(--eox-background-color, transparent); background-color: var(--background-color, transparent); } select { background-color: var(--background-color); } `"},{"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":"idProperty","privacy":"public","type":{"text":"String"},"description":"Layer id property","default":"\\"id\\"","attribute":"id-property"},{"kind":"field","name":"map","privacy":"public","type":{"text":"Map"},"description":"The native OL map instance","default":"null"},{"kind":"field","name":"titleProperty","privacy":"public","type":{"text":"String"},"description":"Layer title property","default":"\\"title\\"","attribute":"title-property"},{"kind":"field","name":"showLayerZoomState","privacy":"public","type":{"text":"Boolean"},"description":"Show layer state based on zoom level or not","default":"false","attribute":"show-layer-zoom-state"},{"kind":"field","name":"tools","privacy":"public","type":{"text":"Array"},"description":"Layer tools","default":"[\\"info\\", \\"opacity\\", \\"datetime\\", \\"config\\", \\"remove\\", \\"sort\\"]"},{"kind":"field","name":"addExternalLayers","privacy":"public","type":{"text":"Boolean"},"description":"Enable-disable external layer","default":"false"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"},{"kind":"field","name":"styleOverride","privacy":"public","type":{"text":"String"},"description":"Overrides elements current CSS.","default":"\\"\\"","attribute":"styleOverride"},{"kind":"field","name":"toolsAsList","privacy":"public","type":{"text":"Boolean"},"description":"If enabled, the tools section will be rendered as list.","default":"false","attribute":"toolsAsList"}],"events":[{"name":"layerchange","type":{"text":"CustomEvent"},"description":"A generic layer change event; could be a layer visibility, group length updates and others.\\nPasses the changed layer in the `detail`."},{"name":"datetime:updated","type":{"text":"CustomEvent"}}],"attributes":[{"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":"id-property","type":{"text":"String"},"description":"Layer id property","default":"\\"id\\"","fieldName":"idProperty"},{"name":"title-property","type":{"text":"String"},"description":"Layer title property","default":"\\"title\\"","fieldName":"titleProperty"},{"name":"show-layer-zoom-state","type":{"text":"Boolean"},"description":"Show layer state based on zoom level or not","default":"false","fieldName":"showLayerZoomState"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"},{"name":"styleOverride","type":{"text":"String"},"description":"Overrides elements current CSS.","default":"\\"\\"","fieldName":"styleOverride"},{"name":"toolsAsList","type":{"text":"Boolean"},"description":"If enabled, the tools section will be rendered as list.","default":"false","fieldName":"toolsAsList"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-layercontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxLayerControl","declaration":{"name":"EOxLayerControl","module":"elements/layercontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layercontrol","declaration":{"name":"EOxLayerControl","module":"elements/layercontrol/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layout/src/main.js","declarations":[{"kind":"class","description":"This element allows to quickly set up an app layout using a 12x12 grid. It consists of two elements:\\n- `eox-layout`: the container holding all the items\\n- `eox-layout-item`: the individual items placed on the grid, with a defined x/y coordinate, and a w(idth) and h(eight)","name":"EOxLayout","members":[],"attributes":[{"name":"gap"}],"superclass":{"name":"HTMLElement"},"tagName":"eox-layout","customElement":true},{"kind":"class","description":"","name":"EOxLayoutItem","members":[],"attributes":[{"name":"x"},{"name":"y"},{"name":"w"},{"name":"h"}],"superclass":{"name":"HTMLElement"},"tagName":"eox-layout-item","customElement":true}],"exports":[{"kind":"js","name":"EOxLayout","declaration":{"name":"EOxLayout","module":"elements/layout/src/main.js"}},{"kind":"js","name":"EOxLayoutItem","declaration":{"name":"EOxLayoutItem","module":"elements/layout/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layout","declaration":{"name":"EOxLayout","module":"elements/layout/src/main.js"}},{"kind":"custom-element-definition","name":"eox-layout-item","declaration":{"name":"EOxLayoutItem","module":"elements/layout/src/main.js"}}]},{"kind":"javascript-module","path":"elements/map/src/main.js","declarations":[{"kind":"class","description":"The `eox-map` is a wrapper for the library [OpenLayers](https://openlayers.org/) with additional features and helper functions.\\n\\nBasic usage:\\n\\n```\\nimport \\"@eox/map\\"\\n\\n\\n```\\n\\nSome basic layers, sources and formats are included in the default bundle, for advanced usage it is\\nrequired to import the `advancedLayersAndSources` plugin.\\n\\nIncluded in the base bundle:\\n- Formats: `GeoJSON`, `MVT`\\n- Layers: `Group`, `Image`, `Tile`, `Vector`, `VectorTile`\\n- Sources: `ImageWMS`, `OSM`, `Tile`, `TileWMS`, `Vector`, `VectorTile`, `WMTS`, `XYZ`\\n\\nIn order to use the rest of the layers and sources provided by OpenLayers, import the plugin as well:\\n\\n```\\nimport \\"@eox/map/src/plugins/advancedLayersAndSources\\"\\nimport \\"@eox/map\\"\\n\\n\\n```\\nIncluded in the advanced plugin bundle:\\n- Layers:\\n - All OpenLayers layer types\\n - [`STAC`](https://github.com/m-mohr/ol-stac)\\n- Sources:\\n - All OpenLayers source types\\n - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)\\n- Reprojection through [proj4](https://github.com/proj4js/proj4js)","name":"EOxMap","members":[{"kind":"field","name":"#zoomExtent","privacy":"private","description":"The current zoom extent of the map.\\nThis is used to define the maximum and minimum zoom levels.","type":{"text":"Extent"}},{"kind":"field","name":"#controls","privacy":"private","description":"Stores the controls applied to the map, such as zoom and navigation tools.","type":{"text":"ControlDictionary"}},{"kind":"field","name":"#layers","privacy":"private","description":"The array of layers currently added to the map.","type":{"text":"Array"}},{"kind":"field","name":"#preventScroll","privacy":"private","description":"Indicates whether the map\'s scroll interactions (zooming, panning) are prevented.","type":{"text":"Boolean"}},{"kind":"field","name":"#config","privacy":"private","description":"Holds the configuration object for initializing and managing the map\'s settings.","type":{"text":"ConfigObject"}},{"kind":"field","name":"#animationOptions","privacy":"private","description":"Options for animating changes to the map\'s view, such as panning or zooming.","type":{"text":"EOxAnimationOptions"}},{"kind":"field","name":"#sync","privacy":"private","description":"Represents the sync state of the map with another map instance.","type":{"text":"String"}},{"kind":"field","name":"#center","privacy":"private","type":{"text":"Array"},"default":"[0, 0]","description":"The current center coordinates of the map.\\nStored as an array of two numbers representing the x and y coordinates."},{"kind":"field","name":"#zoom","privacy":"private","type":{"text":"number"},"default":"0","description":"The current zoom level of the map."},{"kind":"field","name":"#projection","privacy":"private","type":{"text":"ProjectionLike"},"default":"\\"EPSG:3857\\"","description":"The map\'s projection system, specifying how coordinates are mapped on the globe.\\nDefaults to \\"EPSG:3857\\"."},{"kind":"field","name":"center","privacy":"public","type":{"text":"array"},"description":"Gets the current center coordinates of the map.","parameters":[{"description":"The new center coordinates [x, y].","name":"center","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"lonLatCenter","description":"Gets the current center of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"lonLatExtent","description":"Gets the current extent of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"zoom","description":"Gets the current zoom level of the map.","parameters":[{"description":"The new zoom level.","name":"zoom","type":{"text":"number"}}],"return":{"type":{"text":"number"}}},{"kind":"field","name":"zoomExtent","description":"Sets the zoom extent of the map.","parameters":[{"description":"The new zoom extent.","name":"extent","type":{"text":"Extent"}}]},{"kind":"field","name":"controls","description":"Gets the current map controls.","parameters":[{"description":"An array of control configurations.","name":"controls","type":{"text":"ControlDictionary"}}],"return":{"type":{"text":"Object"}}},{"kind":"field","name":"layers","privacy":"public","type":{"text":"array"},"description":"Gets the current layers of the map.","parameters":[{"description":"An array of layer configurations.","name":"layers","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"preventScroll","privacy":"public","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"attribute":"prevent-scroll"},{"kind":"field","name":"config","privacy":"public","type":{"text":"object"},"description":"Gets the current configuration of the map.","parameters":[{"description":"The configuration object.","name":"config","type":{"text":"ConfigObject"}}],"return":{"type":{"text":"ConfigObject"}}},{"kind":"field","name":"animationOptions","description":"Gets the current animation options.","parameters":[{"description":"The animation options.","name":"animationOptions","type":{"text":"EOxAnimationOptions"}}],"return":{"type":{"text":"EOxAnimationOptions"}}},{"kind":"field","name":"projection","privacy":"public","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"attribute":"projection"},{"kind":"field","name":"sync","privacy":"public","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"attribute":"sync"},{"kind":"method","name":"addOrUpdateLayer","parameters":[{"name":"json","description":"The layer configuration in JSON format.","type":{"text":"EoxLayer"}}],"description":"Adds or updates a layer on the map.","return":{"type":{"text":"Object"}}},{"kind":"method","name":"removeInteraction","parameters":[{"name":"id","description":"The ID of the interaction to remove.","type":{"text":"string | number"}}],"description":"Removes an interaction from the map by its ID."},{"kind":"method","name":"removeSelect","parameters":[{"name":"id","description":"The ID of the select interaction to remove.","type":{"text":"string | number"}}],"description":"Removes a select interaction from the map by its ID."},{"kind":"method","name":"removeControl","parameters":[{"name":"id","description":"The ID of the control to remove.","type":{"text":"string"}}],"description":"Removes a control from the map by its ID."},{"kind":"method","name":"getLayerById","parameters":[{"name":"layerId","description":"The ID of the layer to retrieve.","type":{"text":"string"}}],"description":"Retrieves a layer from the map by its ID.","return":{"type":{"text":"AnyLayerWithSource"}}},{"kind":"field","name":"parseFeature","default":"parseFeature","description":"Parses a feature from the input data.","type":{"text":"Function"}},{"kind":"field","name":"parseTextToFeature","default":"parseTextToFeature","description":"Parses text into a feature."},{"kind":"field","name":"registerProjectionFromCode","default":"registerProjectionFromCode","description":"Registers a projection from an EPSG code."},{"kind":"field","name":"registerProjection","default":"registerProjection","description":"Registers a custom projection."},{"kind":"field","name":"getFlatLayersArray","default":"getFlatLayersArray","description":"Retrieves all layers in a flat array."},{"kind":"field","name":"transform","default":"transform","description":"Transforms coordinates between different projections."},{"kind":"field","name":"transformExtent","default":"transformExtent","description":"Transforms the extent between different projections."},{"kind":"field","name":"buffer","default":"buffer","description":"Applies a buffer around an extent."},{"kind":"field","name":"map","privacy":"public","description":"The OpenLayers map instance.","type":{"text":"default"},"default":"new Map({ controls: [], layers: [], view: new View({ center: [0, 0], zoom: 0, projection: this.projection, }), })"},{"kind":"field","name":"interactions","type":{"text":"Object."},"description":"Object to store various map interactions (e.g., drag, zoom).","default":"{}"},{"kind":"field","name":"selectInteractions","privacy":"public","type":{"text":"Object."},"description":"Object to store selection interactions for the map.","default":"{}"},{"kind":"field","name":"mapControls","privacy":"public","type":{"text":"Object."},"description":"Object to store map controls (e.g., custom buttons, geolocation).","default":"{}"},{"kind":"field","name":"intersections","privacy":"public","type":{"text":"object"}}],"attributes":[{"name":"prevent-scroll","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"fieldName":"preventScroll"},{"name":"sync","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"fieldName":"sync"},{"name":"projection","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"fieldName":"projection"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-map","customElement":true}],"exports":[{"kind":"js","name":"EOxMap","declaration":{"name":"EOxMap","module":"elements/map/src/main.js"}},{"kind":"custom-element-definition","name":"eox-map","declaration":{"name":"EOxMap","module":"elements/map/src/main.js"}}]},{"kind":"javascript-module","path":"elements/stacinfo/src/main.js","declarations":[{"kind":"class","description":"### Introduction\\nWorking with STAC catalogs, collections and items often times requires\\nto fetch a JSON file, parse its contents and display some of its fields\\nin some formatted way. To make these steps reusable, the `eox-stacinfo`\\nelement offers a set of functionalities:\\n- **automatically fetch a STAC file** as soon as the element loads\\n- offer a **property whitelist** functionality to choose which properties to display\\n- display the properties in **configurable sections** (header, body, featured, footer)\\n- allow to **override** any property display for application-specific custom needs\\n\\nThe use case for this element is alongside a map which displays STAC files\\nor in a catalog browsing scenario where a quick look at the most important properties\\nis needed.\\n\\n#### Technology\\nUnder the hood, this element uses [stac-fields](https://github.com/stac-utils/stac-fields) for parsing and pre-formatting properties.","name":"EOxStacInfo","members":[{"kind":"field","name":"allowHtml","privacy":"public","type":{"text":"boolean"},"description":"Whether to allow HTML in the property display","default":"false","attribute":"allow-html"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"description":"Whether to use unstyled mode","default":"false","attribute":"unstyled"},{"kind":"field","name":"for","privacy":"public","type":{"text":"string"},"description":"The identifier for the STAC resource to fetch","default":"\\"\\"","attribute":"for"},{"kind":"field","name":"header","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the header","default":"[]"},{"kind":"field","name":"tags","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display to display as tags","default":"[]"},{"kind":"field","name":"body","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display to display in the main body","default":"[]"},{"kind":"field","name":"featured","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the featured section","default":"[]"},{"kind":"field","name":"footer","privacy":"public","type":{"text":"Array"},"description":"Keys of properties to display in the footer","default":"[]"},{"kind":"field","name":"stacInfo","privacy":"public","type":{"text":"Array"},"description":"The state object containing the fetched STAC information","default":"[]"},{"kind":"field","name":"stacProperties","privacy":"public","type":{"text":"Array"},"description":"The state object containing the parsed STAC properties","default":"[]"}],"attributes":[{"name":"allow-html","type":{"text":"boolean"},"description":"Whether to allow HTML in the property display","default":"false","fieldName":"allowHtml"},{"name":"unstyled","type":{"text":"boolean"},"description":"Whether to use unstyled mode","default":"false","fieldName":"unstyled"},{"name":"for","type":{"text":"string"},"description":"The identifier for the STAC resource to fetch","default":"\\"\\"","fieldName":"for"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-stacinfo","customElement":true}],"exports":[{"kind":"js","name":"EOxStacInfo","declaration":{"name":"EOxStacInfo","module":"elements/stacinfo/src/main.js"}},{"kind":"custom-element-definition","name":"eox-stacinfo","declaration":{"name":"EOxStacInfo","module":"elements/stacinfo/src/main.js"}}]},{"kind":"javascript-module","path":"elements/storytelling/src/main.js","declarations":[{"kind":"class","description":"Manage drawn features on a map","name":"EOxStoryTelling","members":[{"kind":"field","name":"#html","privacy":"private","description":"Generated HTML string using markdown","type":{"text":"String"},"default":"undefined"},{"kind":"field","name":"#config","privacy":"private","type":{"text":"Object"},"default":"{}","description":"Basic config"},{"kind":"field","name":"#debounceUpdateMarkdown","privacy":"private","type":{"text":"Object"},"default":"null","description":"Debounce update markdown"},{"kind":"method","name":"#dispatchInitEvent","privacy":"private","parameters":[{"name":"element","description":"Dom element","type":{"text":"Element"}}]},{"kind":"method","name":"handleSlotChange","description":"Handles changes to the slot\'s content, updating the component\'s internal state."},{"kind":"method","name":"waitForHtmlInitialization"},{"kind":"field","name":"markdown","privacy":"public","type":{"text":"String"},"description":"Markdown Content","default":"\\"\\"","attribute":"markdown"},{"kind":"field","name":"markdownURL","privacy":"public","type":{"text":"String"},"description":"Markdown Content URL","default":"null","attribute":"markdown-url"},{"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":"no-shadow"},{"kind":"field","name":"disableAutosave","privacy":"public","type":{"text":"Boolean"},"description":"Disable auto save","default":"false","attribute":"disable-autosave"},{"kind":"field","name":"showEditor","privacy":"public","type":{"text":"String | \\"closed\\" | undefined"},"description":"Enable or disable editor","default":"undefined","attribute":"show-editor"},{"kind":"field","name":"showNav","privacy":"public","type":{"text":"Boolean"},"description":"Enable or disable navigation","default":"false","attribute":"show-nav"},{"kind":"field","name":"nav","privacy":"public","type":{"text":"Array"},"description":"List of items in navigation","default":"[]"},{"kind":"field","name":"addCustomSectionIndex","privacy":"public","type":{"text":"Number"},"description":"custom section index","default":"-1","attribute":"addCustomSectionIndex"},{"kind":"field","name":"selectedCustomElement","privacy":"public","type":{"text":"Object | null"},"description":"Selected custom element object","default":"null","attribute":"selectedCustomElement"}],"events":[{"name":"init","type":{"text":"CustomEvent"}},{"name":"changed","type":{"text":"CustomEvent"}}],"attributes":[{"name":"markdown","type":{"text":"String"},"description":"Markdown Content","default":"\\"\\"","fieldName":"markdown"},{"name":"markdown-url","type":{"text":"String"},"description":"Markdown Content URL","default":"null","fieldName":"markdownURL"},{"name":"show-nav","type":{"text":"Boolean"},"description":"Enable or disable navigation","default":"false","fieldName":"showNav"},{"name":"show-editor","type":{"text":"String | \\"closed\\" | undefined"},"description":"Enable or disable editor","default":"undefined","fieldName":"showEditor"},{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"disable-autosave","type":{"text":"Boolean"},"description":"Disable auto save","default":"false","fieldName":"disableAutosave"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"},{"name":"addCustomSectionIndex","type":{"text":"Number"},"description":"custom section index","default":"-1","fieldName":"addCustomSectionIndex"},{"name":"selectedCustomElement","type":{"text":"Object | null"},"description":"Selected custom element object","default":"null","fieldName":"selectedCustomElement"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-storytelling","customElement":true}],"exports":[{"kind":"js","name":"EOxStoryTelling","declaration":{"name":"EOxStoryTelling","module":"elements/storytelling/src/main.js"}},{"kind":"custom-element-definition","name":"eox-storytelling","declaration":{"name":"EOxStoryTelling","module":"elements/storytelling/src/main.js"}}]},{"kind":"javascript-module","path":"elements/timecontrol/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxTimeControl","members":[{"kind":"method","name":"next","description":"Go to next step"},{"kind":"method","name":"previous","description":"Go to previous step"},{"kind":"method","name":"playAnimation","parameters":[{"name":"on","description":"animation on/off","type":{"text":"boolean"}}],"description":"Toggle play animation"},{"kind":"method","name":"setConfig","parameters":[{"name":"config","type":{"text":"@param {string} [config.layer]\\n * @param {string} [config.controlProperty]\\n * @param {Array} [config.controlValues]"}}],"description":"Set the config at a later point"},{"kind":"field","name":"currentStep","privacy":"public","type":{"text":"string"},"description":"The currently selected step","attribute":"current-step"},{"kind":"method","name":"updateMap"},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"_updateStep","parameters":[{"name":"step","default":"1","optional":true,"type":{"text":"number"}}],"privacy":"private"},{"kind":"method","name":"getFlatLayersArray","parameters":[{"name":"layers","type":{"text":"default[]"}}],"description":"TEMP / TO-DO, this is a copy of the function defined in the eox-map:\\nhttps://github.com/EOX-A/EOxElements/blob/main/elements/map/src/layer.ts#L25\\nConsider a way to properly export that function and use it here\\nSee also:\\nhttps://github.com/EOX-A/EOxElements/issues/974","return":{"type":{"text":"default[]"}}},{"kind":"field","name":"controlValues","privacy":"public","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","attribute":"control-values"},{"kind":"field","name":"_newStepIndex","privacy":"public","type":{"text":"number"},"default":"0","attribute":"_newStepIndex"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"default":"false","attribute":"unstyled"},{"kind":"field","name":"play","privacy":"public","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","attribute":"play"},{"kind":"field","name":"navigation","privacy":"public","type":{"text":"boolean"},"description":"Display left & right navigation buttons for the values","default":"true","attribute":"navigation"},{"kind":"field","name":"slider","privacy":"public","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","attribute":"slider"},{"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":"layer","privacy":"public","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","attribute":"layer"},{"kind":"field","name":"controlProperty","privacy":"public","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","attribute":"control-property"},{"kind":"field","name":"_eoxMap","privacy":"public","type":{"text":"HTMLElement |undefined"},"default":"undefined","attribute":"_eoxMap"},{"kind":"field","name":"_width","privacy":"public","type":{"text":"number"},"default":"300","attribute":"_width"},{"kind":"field","name":"displayFormat","privacy":"public","type":{"text":"string"},"description":"Date format string for displaying the current step\\nusing [dayjs format token strings](https://day.js.org/docs/en/display/format)","default":"undefined","attribute":"display-format"},{"kind":"field","name":"_originalParams","privacy":"public","type":{"text":"object"},"description":"Original params of layer source","attribute":"_originalParams"},{"kind":"field","name":"_animationInterval","privacy":"public","attribute":"_animationInterval"},{"kind":"field","name":"_controlSource","privacy":"public","attribute":"_controlSource"},{"kind":"field","name":"_isAnimationPlaying","privacy":"public","attribute":"_isAnimationPlaying"}],"events":[{"name":"stepchange","type":{"text":"CustomEvent"},"description":"Triggers when *currentStep* is updated.\\n`event.detail.currentStep` returns the new *currentStep* value."}],"attributes":[{"name":"control-property","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","fieldName":"controlProperty"},{"name":"control-values","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","fieldName":"controlValues"},{"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":"layer","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","fieldName":"layer"},{"name":"slider","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","fieldName":"slider"},{"name":"navigation","type":{"text":"boolean"},"description":"Display left & right navigation buttons for the values","default":"true","fieldName":"navigation"},{"name":"_originalParams","type":{"text":"object"},"description":"Original params of layer source","fieldName":"_originalParams"},{"name":"play","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","fieldName":"play"},{"name":"display-format","type":{"text":"string"},"description":"Date format string for displaying the current step\\nusing [dayjs format token strings](https://day.js.org/docs/en/display/format)","default":"undefined","fieldName":"displayFormat"},{"name":"current-step","type":{"text":"string"},"description":"The currently selected step","fieldName":"currentStep"},{"name":"_animationInterval","fieldName":"_animationInterval"},{"name":"_controlSource","fieldName":"_controlSource"},{"name":"_isAnimationPlaying","fieldName":"_isAnimationPlaying"},{"name":"_newStepIndex","type":{"text":"number"},"default":"0","fieldName":"_newStepIndex"},{"name":"_eoxMap","type":{"text":"HTMLElement |undefined"},"default":"undefined","fieldName":"_eoxMap"},{"name":"_width","type":{"text":"number"},"default":"300","fieldName":"_width"},{"name":"unstyled","type":{"text":"boolean"},"default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-timecontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxTimeControl","declaration":{"name":"EOxTimeControl","module":"elements/timecontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-timecontrol","declaration":{"name":"EOxTimeControl","module":"elements/timecontrol/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxJSONForm","members":[{"kind":"field","name":"#editor","privacy":"private","type":{"text":"{[key: string]: any}"},"default":"null","description":"editor instance generated through - JSONEditor"},{"kind":"field","name":"editor","description":"Getter for the JSONEditor instance","readonly":true},{"kind":"field","name":"schema","privacy":"public","type":{"text":"JsonSchema"},"description":"Schema for the form editor","return":{"type":{"text":"JsonSchema | String"}},"parameters":[{"name":"newSchema","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"field","name":"value","privacy":"public","type":{"text":"JsonSchema"},"description":"Default values for the form editor","parameters":[{"name":"newVal","type":{"text":"JsonSchema"}}],"default":"null"},{"kind":"method","name":"#emitValue","privacy":"private","description":"Value object has been changed"},{"kind":"method","name":"#dispatchEvent","privacy":"private","description":"Dispatch same function for multiple event type"},{"kind":"field","name":"options","privacy":"public","type":{"text":"object"},"description":"Default values for the form editor","default":"{ show_opt_in: false, disable_collapse: true, disable_edit_json: true, disable_properties: true, disable_array_delete_all_rows: true, disable_array_delete_last_row: true, array_controls_top: true, }"},{"kind":"field","name":"noShadow","privacy":"public","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","attribute":"no-shadow"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","attribute":"unstyled"}],"events":[{"name":"change","type":{"text":"CustomEvent"}}],"attributes":[{"name":"no-shadow","type":{"text":"Boolean"},"description":"Renders the element without a shadow root","default":"false","fieldName":"noShadow"},{"name":"unstyled","type":{"text":"Boolean"},"description":"Render the element without additional styles","default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-jsonform","customElement":true}],"exports":[{"kind":"js","name":"EOxJSONForm","declaration":{"name":"EOxJSONForm","module":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js"}},{"kind":"custom-element-definition","name":"eox-jsonform","declaration":{"name":"EOxJSONForm","module":"elements/layercontrol/node_modules/@eox/jsonform/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/map/src/main.js","declarations":[{"kind":"class","description":"The `eox-map` is a wrapper for the library [OpenLayers](https://openlayers.org/) with additional features and helper functions.\\n\\nBasic usage:\\n\\n```\\nimport \\"@eox/map\\"\\n\\n\\n```\\n\\nSome basic layers, sources and formats are included in the default bundle, for advanced usage it is\\nrequired to import the `advancedLayersAndSources` plugin.\\n\\nIncluded in the base bundle:\\n- Formats: `GeoJSON`, `MVT`\\n- Layers: `Group`, `Image`, `Tile`, `Vector`, `VectorTile`\\n- Sources: `ImageWMS`, `OSM`, `Tile`, `TileWMS`, `Vector`, `VectorTile`, `WMTS`, `XYZ`\\n\\nIn order to use the rest of the layers and sources provided by OpenLayers, import the plugin as well:\\n\\n```\\nimport \\"@eox/map/src/plugins/advancedLayersAndSources\\"\\nimport \\"@eox/map\\"\\n\\n\\n```\\nIncluded in the advanced plugin bundle:\\n- Layers:\\n - All OpenLayers layer types\\n - [`STAC`](https://github.com/m-mohr/ol-stac)\\n- Sources:\\n - All OpenLayers source types\\n - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)\\n- Reprojection through [proj4](https://github.com/proj4js/proj4js)","name":"EOxMap","members":[{"kind":"field","name":"#zoomExtent","privacy":"private","description":"The current zoom extent of the map.\\nThis is used to define the maximum and minimum zoom levels.","type":{"text":"Extent"}},{"kind":"field","name":"#controls","privacy":"private","description":"Stores the controls applied to the map, such as zoom and navigation tools.","type":{"text":"ControlDictionary"}},{"kind":"field","name":"#layers","privacy":"private","description":"The array of layers currently added to the map.","type":{"text":"Array"}},{"kind":"field","name":"#preventScroll","privacy":"private","description":"Indicates whether the map\'s scroll interactions (zooming, panning) are prevented.","type":{"text":"Boolean"}},{"kind":"field","name":"#config","privacy":"private","description":"Holds the configuration object for initializing and managing the map\'s settings.","type":{"text":"ConfigObject"}},{"kind":"field","name":"#animationOptions","privacy":"private","description":"Options for animating changes to the map\'s view, such as panning or zooming.","type":{"text":"EOxAnimationOptions"}},{"kind":"field","name":"#sync","privacy":"private","description":"Represents the sync state of the map with another map instance.","type":{"text":"String"}},{"kind":"field","name":"#center","privacy":"private","type":{"text":"Array"},"default":"[0, 0]","description":"The current center coordinates of the map.\\nStored as an array of two numbers representing the x and y coordinates."},{"kind":"field","name":"#zoom","privacy":"private","type":{"text":"number"},"default":"0","description":"The current zoom level of the map."},{"kind":"field","name":"#projection","privacy":"private","type":{"text":"ProjectionLike"},"default":"\\"EPSG:3857\\"","description":"The map\'s projection system, specifying how coordinates are mapped on the globe.\\nDefaults to \\"EPSG:3857\\"."},{"kind":"field","name":"center","privacy":"public","type":{"text":"array"},"description":"Gets the current center coordinates of the map.","parameters":[{"description":"The new center coordinates [x, y].","name":"center","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"lonLatCenter","description":"Gets the current center of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"lonLatExtent","description":"Gets the current extent of the map in longitude and latitude.","return":{"type":{"text":"Array"}},"readonly":true},{"kind":"field","name":"zoom","description":"Gets the current zoom level of the map.","parameters":[{"description":"The new zoom level.","name":"zoom","type":{"text":"number"}}],"return":{"type":{"text":"number"}}},{"kind":"field","name":"zoomExtent","description":"Sets the zoom extent of the map.","parameters":[{"description":"The new zoom extent.","name":"extent","type":{"text":"Extent"}}]},{"kind":"field","name":"controls","description":"Gets the current map controls.","parameters":[{"description":"An array of control configurations.","name":"controls","type":{"text":"ControlDictionary"}}],"return":{"type":{"text":"Object"}}},{"kind":"field","name":"layers","privacy":"public","type":{"text":"array"},"description":"Gets the current layers of the map.","parameters":[{"description":"An array of layer configurations.","name":"layers","type":{"text":"Array"}}],"return":{"type":{"text":"Array"}}},{"kind":"field","name":"preventScroll","privacy":"public","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"attribute":"prevent-scroll"},{"kind":"field","name":"config","privacy":"public","type":{"text":"object"},"description":"Gets the current configuration of the map.","parameters":[{"description":"The configuration object.","name":"config","type":{"text":"ConfigObject"}}],"return":{"type":{"text":"ConfigObject"}}},{"kind":"field","name":"animationOptions","description":"Gets the current animation options.","parameters":[{"description":"The animation options.","name":"animationOptions","type":{"text":"EOxAnimationOptions"}}],"return":{"type":{"text":"EOxAnimationOptions"}}},{"kind":"field","name":"projection","privacy":"public","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"attribute":"projection"},{"kind":"field","name":"sync","privacy":"public","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"attribute":"sync"},{"kind":"method","name":"addOrUpdateLayer","parameters":[{"name":"json","description":"The layer configuration in JSON format.","type":{"text":"EoxLayer"}}],"description":"Adds or updates a layer on the map.","return":{"type":{"text":"Object"}}},{"kind":"method","name":"removeInteraction","parameters":[{"name":"id","description":"The ID of the interaction to remove.","type":{"text":"string | number"}}],"description":"Removes an interaction from the map by its ID."},{"kind":"method","name":"removeSelect","parameters":[{"name":"id","description":"The ID of the select interaction to remove.","type":{"text":"string"}}],"description":"Removes a select interaction from the map by its ID."},{"kind":"method","name":"removeControl","parameters":[{"name":"id","description":"The ID of the control to remove.","type":{"text":"string"}}],"description":"Removes a control from the map by its ID."},{"kind":"method","name":"getLayerById","parameters":[{"name":"layerId","description":"The ID of the layer to retrieve.","type":{"text":"string"}}],"description":"Retrieves a layer from the map by its ID.","return":{"type":{"text":"AnyLayerWithSource"}}},{"kind":"field","name":"parseFeature","default":"parseFeature","description":"Parses a feature from the input data.","type":{"text":"Function"}},{"kind":"field","name":"parseTextToFeature","default":"parseTextToFeature","description":"Parses text into a feature."},{"kind":"field","name":"registerProjectionFromCode","default":"registerProjectionFromCode","description":"Registers a projection from an EPSG code."},{"kind":"field","name":"registerProjection","default":"registerProjection","description":"Registers a custom projection."},{"kind":"field","name":"getFlatLayersArray","default":"getFlatLayersArray","description":"Retrieves all layers in a flat array."},{"kind":"field","name":"transform","default":"transform","description":"Transforms coordinates between different projections."},{"kind":"field","name":"transformExtent","default":"transformExtent","description":"Transforms the extent between different projections."},{"kind":"field","name":"buffer","default":"buffer","description":"Applies a buffer around an extent."},{"kind":"field","name":"map","privacy":"public","description":"The OpenLayers map instance.","type":{"text":"default"},"default":"new Map({ controls: [], layers: [], view: new View({ center: [0, 0], zoom: 0, projection: this.projection, }), })"},{"kind":"field","name":"interactions","type":{"text":"Object."},"description":"Object to store various map interactions (e.g., drag, zoom).","default":"{}"},{"kind":"field","name":"selectInteractions","privacy":"public","type":{"text":"Object."},"description":"Object to store selection interactions for the map.","default":"{}"},{"kind":"field","name":"mapControls","privacy":"public","type":{"text":"Object."},"description":"Object to store map controls (e.g., custom buttons, geolocation).","default":"{}"},{"kind":"field","name":"intersections","privacy":"public","type":{"text":"object"}}],"attributes":[{"name":"prevent-scroll","type":{"text":"boolean"},"description":"Gets the current scroll interaction state.","parameters":[{"description":"Whether to prevent scroll interactions.","name":"preventScroll","type":{"text":"Boolean"}}],"return":{"type":{"text":"Boolean"}},"fieldName":"preventScroll"},{"name":"sync","type":{"text":"string"},"description":"Gets the current sync state of the map.","parameters":[{"description":"The ID of the map to sync with.","name":"sync","type":{"text":"string"}}],"return":{"type":{"text":"string"}},"fieldName":"sync"},{"name":"projection","type":{"text":"string"},"description":"Gets the current map projection.","parameters":[{"description":"The projection code (e.g., \\"EPSG:3857\\").","name":"projection","type":{"text":"ProjectionLike"}}],"return":{"type":{"text":"ProjectionLike"}},"fieldName":"projection"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-map","customElement":true}],"exports":[{"kind":"js","name":"EOxMap","declaration":{"name":"EOxMap","module":"elements/layercontrol/node_modules/@eox/map/src/main.js"}},{"kind":"custom-element-definition","name":"eox-map","declaration":{"name":"EOxMap","module":"elements/layercontrol/node_modules/@eox/map/src/main.js"}}]},{"kind":"javascript-module","path":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js","declarations":[{"kind":"class","description":"","name":"EOxTimeControl","members":[{"kind":"method","name":"next","description":"Go to next step"},{"kind":"method","name":"previous","description":"Go to previous step"},{"kind":"method","name":"playAnimation","parameters":[{"name":"on","description":"animation on/off","type":{"text":"boolean"}}],"description":"Toggle play animation"},{"kind":"method","name":"setConfig","parameters":[{"name":"config","type":{"text":"@param {string} [config.layer]\\n * @param {string} [config.controlProperty]\\n * @param {Array} [config.controlValues]"}}],"description":"Set the config at a later point"},{"kind":"field","name":"currentStep","privacy":"public","type":{"text":"string"},"description":"The currently selected step","attribute":"current-step"},{"kind":"method","name":"updateMap"},{"kind":"field","name":"eoxMap"},{"kind":"method","name":"_updateStep","parameters":[{"name":"step","default":"1","optional":true,"type":{"text":"number"}}],"privacy":"private"},{"kind":"method","name":"getFlatLayersArray","parameters":[{"name":"layers","type":{"text":"default[]"}}],"description":"TEMP / TO-DO, this is a copy of the function defined in the eox-map:\\nhttps://github.com/EOX-A/EOxElements/blob/main/elements/map/src/layer.ts#L25\\nConsider a way to properly export that function and use it here\\nSee also:\\nhttps://github.com/EOX-A/EOxElements/issues/974","return":{"type":{"text":"default[]"}}},{"kind":"field","name":"controlValues","privacy":"public","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","attribute":"control-values"},{"kind":"field","name":"_newStepIndex","privacy":"public","type":{"text":"number"},"default":"0","attribute":"_newStepIndex"},{"kind":"field","name":"unstyled","privacy":"public","type":{"text":"boolean"},"default":"false","attribute":"unstyled"},{"kind":"field","name":"disablePlay","privacy":"public","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","attribute":"disable-play"},{"kind":"field","name":"slider","privacy":"public","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","attribute":"slider"},{"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":"layer","privacy":"public","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","attribute":"layer"},{"kind":"field","name":"controlProperty","privacy":"public","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","attribute":"control-property"},{"kind":"field","name":"_eoxMap","privacy":"public","type":{"text":"HTMLElement |undefined"},"default":"undefined","attribute":"_eoxMap"},{"kind":"field","name":"_width","privacy":"public","type":{"text":"number"},"default":"300","attribute":"_width"},{"kind":"field","name":"_originalParams","privacy":"public","type":{"text":"object"},"description":"Original params of layer source","attribute":"_originalParams"},{"kind":"field","name":"_animationInterval","privacy":"public","attribute":"_animationInterval"},{"kind":"field","name":"_controlSource","privacy":"public","attribute":"_controlSource"},{"kind":"field","name":"_isAnimationPlaying","privacy":"public","attribute":"_isAnimationPlaying"}],"events":[{"name":"stepchange","type":{"text":"CustomEvent"},"description":"Triggers when *currentStep* is updated.\\n`event.detail.currentStep` returns the new *currentStep* value."}],"attributes":[{"name":"control-property","type":{"text":"string | undefined"},"description":"The WMS parameter to update","default":"undefined","fieldName":"controlProperty"},{"name":"control-values","type":{"text":"string[]"},"description":"The list of available values for the animation property","default":"[]","fieldName":"controlValues"},{"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":"layer","type":{"text":"string"},"description":"The layerid of the animated layer","default":"\\"\\"","fieldName":"layer"},{"name":"slider","type":{"text":"boolean"},"description":"Display a slider for the values","default":"false","fieldName":"slider"},{"name":"_originalParams","type":{"text":"object"},"description":"Original params of layer source","fieldName":"_originalParams"},{"name":"disable-play","type":{"text":"boolean"},"description":"Hides the play button if set","default":"false","fieldName":"disablePlay"},{"name":"current-step","type":{"text":"string"},"description":"The currently selected step","fieldName":"currentStep"},{"name":"_animationInterval","fieldName":"_animationInterval"},{"name":"_controlSource","fieldName":"_controlSource"},{"name":"_isAnimationPlaying","fieldName":"_isAnimationPlaying"},{"name":"_newStepIndex","type":{"text":"number"},"default":"0","fieldName":"_newStepIndex"},{"name":"_eoxMap","type":{"text":"HTMLElement |undefined"},"default":"undefined","fieldName":"_eoxMap"},{"name":"_width","type":{"text":"number"},"default":"300","fieldName":"_width"},{"name":"unstyled","type":{"text":"boolean"},"default":"false","fieldName":"unstyled"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"eox-timecontrol","customElement":true}],"exports":[{"kind":"js","name":"EOxTimeControl","declaration":{"name":"EOxTimeControl","module":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js"}},{"kind":"custom-element-definition","name":"eox-timecontrol","declaration":{"name":"EOxTimeControl","module":"elements/layercontrol/node_modules/@eox/timecontrol/src/main.js"}}]}]'),LKe={schemaVersion:kKe,readme:TKe,modules:DKe};function ibe(e){const t={h3:"h3",...wCe(),...e.components};return bu.jsxs(bu.Fragment,{children:[` `,` `,bu.jsx(VBe,{isTemplate:!0}),` `,bu.jsx(WBe,{}),` diff --git a/iframe.html b/iframe.html index 94c500199..942704656 100644 --- a/iframe.html +++ b/iframe.html @@ -515,7 +515,7 @@ } - + diff --git a/project.json b/project.json index 0855744de..bad4eaff1 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1736858954556,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.13.9","@cypress/mount-utils":"4.1.1","cypress":"13.17.0","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.15.0"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"storybookVersion":"8.4.7","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.4.7"},"@storybook/addon-interactions":{"version":"8.4.7"},"@storybook/blocks":{"version":"8.4.7"},"@storybook/csf-tools":{"version":"8.4.7"},"@storybook/test":{"version":"8.4.7"},"@storybook/theming":{"version":"8.4.7"},"@storybook/web-components":{"version":"8.4.7"},"@storybook/web-components-vite":{"version":"8.4.7"},"storybook":{"version":"8.4.7"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}} \ No newline at end of file +{"generatedAt":1736859301622,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.13.10","@cypress/mount-utils":"4.1.1","cypress":"13.17.0","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.15.0"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"storybookVersion":"8.4.7","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.4.7"},"@storybook/addon-interactions":{"version":"8.4.7"},"@storybook/blocks":{"version":"8.4.7"},"@storybook/csf-tools":{"version":"8.4.7"},"@storybook/test":{"version":"8.4.7"},"@storybook/theming":{"version":"8.4.7"},"@storybook/web-components":{"version":"8.4.7"},"@storybook/web-components-vite":{"version":"8.4.7"},"storybook":{"version":"8.4.7"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}} \ No newline at end of file