@egen-civitas/esm-app-shell 2.6.6 → 2.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{40caa0d5c9db6a04.js → ef7639896fc21d86.js} +2 -2
- package/dist/ef7639896fc21d86.js.map +1 -0
- package/dist/{egen.3fdfa9ed91c2948c.js → egen.6b512980f188b547.js} +2 -2
- package/dist/{egen.3fdfa9ed91c2948c.js.map → egen.6b512980f188b547.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/40caa0d5c9db6a04.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["6207"],{6871(e,t){var n,r;function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n=this,r=function(){return function(e,t,n){var r=t.prototype,i=function(e){var t=e.date,i=e.utc,o={};if(!(null===t||a(t,Date)||a(t,Array)||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var s=i?n.utc():n();Object.keys(t).forEach(function(e){var n;o["date"===(n=r.$utils().p(e))?"day":n]=t[e]});var l=o.day||(o.year||o.month>=0?1:s.date()),u=o.year||s.year(),c=o.month>=0?o.month:o.year||o.day?0:s.month(),d=o.hour||0,f=o.minute||0,p=o.second||0,m=o.millisecond||0;return i?new Date(Date.UTC(u,c,l,d,f,p,m)):new Date(u,c,l,d,f,p,m)}return t},o=r.parse;r.parse=function(e){e.date=i.bind(this)(e),o.bind(this)(e)};var s=r.set,l=r.add,u=r.subtract,c=function(e,t,n,r){void 0===r&&(r=1);var a=Object.keys(t),i=this;return a.forEach(function(n){i=e.bind(i)(t[n]*r,n)}),i};r.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?c.bind(this)(function(e,t){return s.bind(this)(t,e)},t,e):s.bind(this)(e,t)},r.add=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t):l.bind(this)(e,t)},r.subtract=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t,-1):u.bind(this)(e,t)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_objectSupport=r()},2147(e,t){var n,r;n=this,r=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,i){var o=a.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},o.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],o=60*a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(r)))return this;var o=16>=Math.abs(r)?60*r:r;if(0===o)return this.utc(a);var s=this.clone();if(a)return s.$offset=o,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l,s};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),a=i(e).local();return f.call(r,a,t,n)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_utc=r()},904(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,a=t.call(e,"constructor"),i=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,a,i,o,s,l,u=arguments[0]||{},c=1,d=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),(void 0===u?"undefined":(t=u)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});c<d;c++)if(null!=(n=arguments[c]))for(a in n)i=u[a],u!==(o=n[a])&&(f&&o&&(r(o)||(s=Array.isArray(o)))?(s?(s=!1,l=i&&Array.isArray(i)?i:[]):l=i&&r(i)?i:{},u[a]=e(f,l,o)):void 0!==o&&(u[a]=o));return u}},6768(e,t,n){!function(t){"use strict";var r=n(9375);function a(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var i=e.exports={generate:a(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=a(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var a=i.generate(e,n);t(this).css("background-image",a.toDataUrl())})}))}("u">typeof jQuery?jQuery:null)},8505(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,a=e.g,i=e.b,o=Math.max(r/=255,a/=255,i/=255),s=Math.min(r,a,i),l=(o+s)/2;if(o===s)t=n=0;else{var u=o-s;switch(n=l>.5?u/(2-o-s):u/(o+s),o){case r:t=(a-i)/u+6*(a<i);break;case a:t=(i-r)/u+2;break;case i:t=(r-a)/u+4}t/=6}return{h:t,s:n,l:l}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,a,i=e.h,o=e.s,s=e.l;if(0===o)n=r=a=s;else{var l=s<.5?s*(1+o):s+o-s*o,u=2*s-l;n=t(u,l,i+1/3),r=t(u,l,i),a=t(u,l,i-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*a)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},9375(e,t,n){"use strict";var r=n(904),a=n(8505),i=n(2088),o=n(959),s={baseColor:"#933c3c"},l=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function c(e,t,n){return parseInt(e.substr(t,n||1),16)}function d(e,t,n,r,a){return(parseFloat(e)-t)*(a-r)/(n-t)+r}function f(e){return e%2==0?"#ddd":"#222"}function p(e){return d(e,0,15,.02,.15)}var m=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||i(e),this.svg=new o,this.generateBackground(),this.generatePattern(),this};function h(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function y(e){return[0,0,e,e,0,e,0,0].join(",")}function v(e,t,n,r,a){var i=y(r),o=p(a[0]),s=f(a[0]),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:s};e.polyline(i,l).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(i,l).transform({translate:[t+r,n+2*r],scale:[1,-1]}),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o=p(a[1]),fill:s=f(a[1])},e.polyline(i,l).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(i,l).transform({translate:[t+r,n],scale:[1,1]})}function g(e,t,n,r,a){var i=p(a),o=f(a),s=y(r),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i,fill:o};e.polyline(s,l).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,l).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,1]})}m.prototype.toSvg=function(){return this.svg.toString()},m.prototype.toString=function(){return this.toSvg()},m.prototype.toBase64=function(){var e=this.toSvg();return"u">typeof window&&"function"==typeof window.btoa?window.btoa(e):new Buffer(e).toString("base64")},m.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},m.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},m.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=a.hex2rgb(this.opts.color):(t=d(c(this.hash,14,3),0,4095,0,359),r=c(this.hash,17),(e=a.rgb2hsl(a.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=a.hsl2rgb(e)),this.color=a.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:a.rgb2rgbString(n)})},m.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>l.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=l[c(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},m.prototype.geoHexagons=function(){var e,t,n,r,a,i,o,s,l,m=d(c(this.hash,0),0,15,8,60),h=m*Math.sqrt(3),y=2*m,v=(s=m/2,[0,l=Math.sin(60*Math.PI/180)*m,s,0,s+m,0,2*m,l,s+m,2*l,s,2*l,0,l].join(","));for(this.svg.setWidth(3*y+3*m),this.svg.setHeight(6*h),t=0,o=0;o<6;o++)for(i=0;i<6;i++)a=c(this.hash,t),e=i%2==0?o*h:o*h+h/2,n=p(a),r={fill:f(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(v,r).transform({translate:[i*m*1.5-y/2,e-h/2]}),0===i&&this.svg.polyline(v,r).transform({translate:[6*m*1.5-y/2,e-h/2]}),0===o&&(e=i%2==0?6*h:6*h+h/2,this.svg.polyline(v,r).transform({translate:[i*m*1.5-y/2,e-h/2]})),0===i&&0===o&&this.svg.polyline(v,r).transform({translate:[6*m*1.5-y/2,5*h+h/2]}),t++},m.prototype.geoSineWaves=function(){var e,t,n,r,a,i,o,s=Math.floor(d(c(this.hash,0),0,15,100,400)),l=Math.floor(d(c(this.hash,1),0,15,30,100)),u=Math.floor(d(c(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=p(i=c(this.hash,t)),e=f(i),o=s/4*.7,a={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+l+" C "+o+" 0, "+(s/2-o)+" 0, "+s/2+" "+l+" S "+(s-o)+" "+2*l+", "+s+" "+l+" S "+(1.5*s-o)+" 0, "+1.5*s+", "+l,this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l]}),this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l+36*u]})},m.prototype.geoChevrons=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,30,80),l=d(c(this.hash,0),0,15,30,80),m=(e=.66*l,[[0,0,s/2,l-e,s/2,l,0,e,0,0],[s/2,l-e,s,0,s,e,s/2,l,s/2,l-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*l*.66),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:f(a),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[i*s,o*l*.66-l/2]}).polyline(m).end(),0===o&&this.svg.group(r).transform({translate:[i*s,6*l*.66-l/2]}).polyline(m).end(),t+=1},m.prototype.geoPlusSigns=function(){var e,t,n,r,a,i,o,s,l=d(c(this.hash,0),0,15,10,25),m=3*l,y=h(l);for(this.svg.setWidth(12*l),this.svg.setHeight(12*l),n=0,s=0;s<6;s++)for(o=0;o<6;o++)r=p(i=c(this.hash,n)),t=f(i),e=+(s%2!=0),a={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(a).transform({translate:[o*m-o*l+e*l-l,s*m-s*l-m/2]}).rect(y).end(),0===o&&this.svg.group(a).transform({translate:[4*m-o*l+e*l-l,s*m-s*l-m/2]}).rect(y).end(),0===s&&this.svg.group(a).transform({translate:[o*m-o*l+e*l-l,4*m-s*l-m/2]}).rect(y).end(),0===o&&0===s&&this.svg.group(a).transform({translate:[4*m-o*l+e*l-l,4*m-s*l-m/2]}).rect(y).end(),n++},m.prototype.geoXes=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,25),l=h(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),e=i%2==0?o*u-.5*u:o*u-.5*u+u/4,r={fill:f(a),opacity:n},this.svg.group(r).transform({translate:[i*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&(e=i%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[i*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end()),5===o&&this.svg.group(r).transform({translate:[i*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),t++},m.prototype.geoOverlappingCircles=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:f(r),opacity:t},this.svg.circle(a*o,i*o,o,n),0===a&&this.svg.circle(6*o,i*o,o,n),0===i&&this.svg.circle(a*o,6*o,o,n),0===a&&0===i&&this.svg.circle(6*o,6*o,o,n),e++},m.prototype.geoOctogons=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,60),l=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,o=0;o<6;o++)for(i=0;i<6;i++)r=p(a=c(this.hash,n)),t=f(a),this.svg.polyline(l,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[i*s,o*s]}),n+=1},m.prototype.geoSquares=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),t=0,i=0;i<6;i++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=f(r),this.svg.rect(a*o,i*o,o,o,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},m.prototype.geoConcentricCircles=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60),s=o/5;for(this.svg.setWidth((o+s)*6),this.svg.setHeight((o+s)*6),t=0,i=0;i<6;i++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=f(r),this.svg.circle(a*o+a*s+(o+s)/2,i*o+i*s+(o+s)/2,o/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=p(r=c(this.hash,39-t)),e=f(r),this.svg.circle(a*o+a*s+(o+s)/2,i*o+i*s+(o+s)/2,o/4,{fill:e,"fill-opacity":n}),t+=1},m.prototype.geoOverlappingRings=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60),s=o/4;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(a*o,i*o,o-s/2,n),0===a&&this.svg.circle(6*o,i*o,o-s/2,n),0===i&&this.svg.circle(a*o,6*o,o-s/2,n),0===a&&0===i&&this.svg.circle(6*o,6*o,o-s/2,n),e+=1},m.prototype.geoTriangles=function(){var e,t,n,r,a,i,o,s,l=d(c(this.hash,0),0,15,15,80),m=l/2*Math.sqrt(3),h=[s=l/2,0,l,m,0,m,s,0].join(",");for(this.svg.setWidth(3*l),this.svg.setHeight(6*m),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=p(a=c(this.hash,e)),r={fill:f(a),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=o%2==0?180*(i%2==0):180*(i%2!=0),this.svg.polyline(h,r).transform({translate:[i*l*.5-l/2,m*o],rotate:[n,l/2,m/2]}),0===i&&this.svg.polyline(h,r).transform({translate:[6*l*.5-l/2,m*o],rotate:[n,l/2,m/2]}),e+=1},m.prototype.geoDiamonds=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,50),l=d(c(this.hash,1),0,15,10,50),m=[s/2,0,s,l/2,s/2,l,0,l/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*l),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),r={fill:f(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=o%2==0?0:s/2,this.svg.polyline(m,r).transform({translate:[i*s-s/2+e,l/2*o-l/2]}),0===i&&this.svg.polyline(m,r).transform({translate:[6*s-s/2+e,l/2*o-l/2]}),0===o&&this.svg.polyline(m,r).transform({translate:[i*s-s/2+e,l/2*6-l/2]}),0===i&&0===o&&this.svg.polyline(m,r).transform({translate:[6*s-s/2+e,l/2*6-l/2]}),t+=1},m.prototype.geoNestedSquares=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,4,12),s=7*o;for(this.svg.setWidth((s+o)*6+6*o),this.svg.setHeight((s+o)*6+6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":o+"px"},this.svg.rect(a*s+a*o*2+o/2,i*s+i*o*2+o/2,s,s,n),t=p(r=c(this.hash,39-e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":o+"px"},this.svg.rect(a*s+a*o*2+o/2+2*o,i*s+i*o*2+o/2+2*o,3*o,3*o,n),e+=1},m.prototype.geoMosaicSquares=function(){var e,t,n,r=d(c(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?g(this.svg,t*r*2,n*r*2,r,c(this.hash,e)):v(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):n%2==0?v(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):g(this.svg,t*r*2,n*r*2,r,c(this.hash,e)),e+=1},m.prototype.geoPlaid=function(){var e,t,n,r,a,i,o=0,s=0;for(t=0;t<36;)o+=c(this.hash,t)+5,n=p(i=c(this.hash,t+1)),e=f(i),r=i+5,this.svg.rect(0,o,"100%",r,{opacity:n,fill:e}),o+=r,t+=2;for(t=0;t<36;)s+=c(this.hash,t)+5,n=p(i=c(this.hash,t+1)),e=f(i),a=i+5,this.svg.rect(s,0,a,"100%",{opacity:n,fill:e}),s+=a,t+=2;this.svg.setWidth(s),this.svg.setHeight(o)},m.prototype.geoTessellation=function(){var e,t,n,r,a=d(c(this.hash,0),0,15,5,40),i=a*Math.sqrt(3),o=2*a,s=a/2*Math.sqrt(3),l=[0,0,s,a/2,0,a,0,0].join(","),m=3*a+2*s,h=2*i+2*a;for(this.svg.setWidth(m),this.svg.setHeight(h),e=0;e<20;e++)switch(t=p(r=c(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:f(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-a/2,-a/2,a,a,n),this.svg.rect(m-a/2,-a/2,a,a,n),this.svg.rect(-a/2,h-a/2,a,a,n),this.svg.rect(m-a/2,h-a/2,a,a,n);break;case 1:this.svg.rect(o/2+s,i/2,a,a,n);break;case 2:this.svg.rect(-a/2,h/2-a/2,a,a,n),this.svg.rect(m-a/2,h/2-a/2,a,a,n);break;case 3:this.svg.rect(o/2+s,1.5*i+a,a,a,n);break;case 4:this.svg.polyline(l,n).transform({translate:[a/2,-a/2],rotate:[0,a/2,s/2]}),this.svg.polyline(l,n).transform({translate:[a/2,h- -a/2],rotate:[0,a/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(l,n).transform({translate:[m-a/2,-a/2],rotate:[0,a/2,s/2],scale:[-1,1]}),this.svg.polyline(l,n).transform({translate:[m-a/2,h+a/2],rotate:[0,a/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(l,n).transform({translate:[m/2+a/2,i/2]});break;case 7:this.svg.polyline(l,n).transform({translate:[m-m/2-a/2,i/2],scale:[-1,1]});break;case 8:this.svg.polyline(l,n).transform({translate:[m/2+a/2,h-i/2],scale:[1,-1]});break;case 9:this.svg.polyline(l,n).transform({translate:[m-m/2-a/2,h-i/2],scale:[-1,-1]});break;case 10:this.svg.polyline(l,n).transform({translate:[a/2,h/2-a/2]});break;case 11:this.svg.polyline(l,n).transform({translate:[m-a/2,h/2-a/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,a/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-m+a/2,a/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 15:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-m+a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 16:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 17:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-m+a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 18:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+a/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-m+a/2,-h+a/2],rotate:[-30,0,0]})}}},2088(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,a=0xc3d2e1f0,i=new Uint32Array(80),o=0,s=24,l=0;function u(){for(var s,l,u=16;u<80;u++){var c=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=c<<1|c>>>31}var d=e,f=t,p=n,m=r,h=a;for(u=0;u<80;u++){u<20?(s=m^f&(p^m),l=0x5a827999):u<40?(s=f^p^m,l=0x6ed9eba1):u<60?(s=f&p|m&(f|p),l=0x8f1bbcdc):(s=f^p^m,l=0xca62c1d6);var y=(d<<5|d>>>27)+s+h+l+(0|i[u]);h=m,m=p,p=f<<30|f>>>2,f=d,d=y}for(u=0,e=e+d|0,t=t+f|0,n=n+p|0,r=r+m|0,a=a+h|0,o=0;u<16;u++)i[u]=0}function c(e){i[o]|=(255&e)<<s,s?s-=8:(o++,s=24),16===o&&u()}function d(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;l+=8*t;for(var n=0;n<t;n++)c(e.charCodeAt(n));return}var r=e.length;l+=8*r;for(var a=0;a<r;a++)c(e[a])},digest:function(){c(128),(o>14||14===o&&s<24)&&u(),o=14,s=24,c(0),c(0),c(l>0xffffffffff?l/0x10000000000:0),c(l>0xffffffff?l/0x100000000:0);for(var i=24;i>=0;i-=8)c(l>>i);return d(e)+d(t)+d(n)+d(r)+d(a)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},959(e,t,n){"use strict";var r=n(904),a=n(52);function i(){return this.width=100,this.height=100,this.svg=a("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},i.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},i.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},i.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},i.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(e,t,n,i,o){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(o))}),this;var l=a("rect");return this.currentContext().appendChild(l),this.setAttributes(l,r({x:e,y:t,width:n,height:i},o)),this},i.prototype.circle=function(e,t,n,i){var o=a("circle");return this.currentContext().appendChild(o),this.setAttributes(o,r({cx:e,cy:t,r:n},i)),this},i.prototype.path=function(e,t){var n=a("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},i.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var i=a("polyline");return this.currentContext().appendChild(i),this.setAttributes(i,r({points:e},t)),this},i.prototype.group=function(e){var t=a("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},52(e){"use strict";var t=e.exports=function(e){return(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},6503(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var i=Symbol("SemVer ANY");e.exports=function(){var e,t;function n(e,t){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");if(t=o(t),a(e,n))if(!!t.loose===e.loose)return e;else e=e.value;d("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,d("comp",this)}return e=[{key:"parse",value:function(e){var t=this.options.loose?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f(n[2],this.options.loose):this.semver=i}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(d("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(e,t){if(!a(e,n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}],t=[{key:"ANY",get:function(){return i}}],e&&r(n.prototype,e),t&&r(n,t),n}();var o=n(6480),s=n(4299),l=s.safeRe,u=s.t,c=n(570),d=n(7139),f=n(7583),p=n(7490)},7490(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var i=/\s+/g;e.exports=function(){var e;function t(e,n){var r=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=s(n),a(e,t))if(!!n.loose===e.loose&&!!n.includePrerelease===e.includePrerelease)return e;else return new t(e.raw,n);if(a(e,l))return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(i," "),this.set=this.raw.split("||").map(function(e){return r.parseRange(e.trim())}).filter(function(e){return e.length}),!this.set.length)throw TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){var o=this.set[0];if(this.set=this.set.filter(function(e){return!j(e[0])}),0===this.set.length)this.set=[o];else if(this.set.length>1){var u=!0,c=!1,d=void 0;try{for(var f,p=this.set[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value;if(1===m.length&&S(m[0])){this.set=[m];break}}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}}this.formatted=void 0}return e=[{key:"range",get:function(){if(void 0===this.formatted){this.formatted="";for(var e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");for(var t=this.set[e],n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}},{key:"format",value:function(){return this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t,n=this;e=e.replace(w,"");var a=((this.options.includePrerelease&&b)|(this.options.loose&&x))+":"+e,i=o.get(a);if(i)return i;var s=this.options.loose,c=s?f[m.HYPHENRANGELOOSE]:f[m.HYPHENRANGE];u("hyphen replace",e=e.replace(c,I(this.options.includePrerelease))),u("comparator trim",e=e.replace(f[m.COMPARATORTRIM],h)),u("tilde trim",e=e.replace(f[m.TILDETRIM],y)),u("caret trim",e=e.replace(f[m.CARETTRIM],v));var d=e.split(" ").map(function(e){return O(e,n.options)}).join(" ").split(/\s+/).map(function(e){return R(e,n.options)});s&&(d=d.filter(function(e){return u("loose invalid filter",e,n.options),!!e.match(f[m.COMPARATORLOOSE])})),u("range list",d);var p=new Map,g=d.map(function(e){return new l(e,n.options)}),S=!0,E=!1,k=void 0;try{for(var A,D=g[Symbol.iterator]();!(S=(A=D.next()).done);S=!0){var P=A.value;if(j(P))return[P];p.set(P.value,P)}}catch(e){E=!0,k=e}finally{try{S||null==D.return||D.return()}finally{if(E)throw k}}p.size>1&&p.has("")&&p.delete("");var C=function(e){if(Array.isArray(e))return r(e)}(t=p.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return o.set(a,C),C}},{key:"intersects",value:function(e,n){if(!a(e,t))throw TypeError("a Range is required");return this.set.some(function(t){return E(t,n)&&e.set.some(function(e){return E(e,n)&&t.every(function(t){return e.every(function(e){return t.intersects(e,n)})})})})}},{key:"test",value:function(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(_(this.set[t],e,this.options))return!0;return!1}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}();var o=new(n(3235)),s=n(6480),l=n(6503),u=n(7139),c=n(7583),d=n(4299),f=d.safeRe,p=d.src,m=d.t,h=d.comparatorTrimReplace,y=d.tildeTrimReplace,v=d.caretTrimReplace,g=n(9345),b=g.FLAG_INCLUDE_PRERELEASE,x=g.FLAG_LOOSE,w=RegExp(p[m.BUILD],"g"),j=function(e){return"<0.0.0-0"===e.value},S=function(e){return""===e.value},E=function(e,t){for(var n=!0,r=e.slice(),a=r.pop();n&&r.length;)n=r.every(function(e){return a.intersects(e,t)}),a=r.pop();return n},O=function(e,t){return u("comp",e=e.replace(f[m.BUILD],""),t),u("caret",e=P(e,t)),u("tildes",e=A(e,t)),u("xrange",e=T(e,t)),u("stars",e=M(e,t)),e},k=function(e){return!e||"x"===e.toLowerCase()||"*"===e},A=function(e,t){return e.trim().split(/\s+/).map(function(e){return D(e,t)}).join(" ")},D=function(e,t){var n=t.loose?f[m.TILDELOOSE]:f[m.TILDE],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("tilde",e,t,n,a,i,o),k(n)?s="":k(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):k(i)?s=">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):o?(u("replaceTilde pr",o),s=">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0")):s=">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"),u("tilde return",s),s})},P=function(e,t){return e.trim().split(/\s+/).map(function(e){return C(e,t)}).join(" ")},C=function(e,t){u("caret",e,t);var n=t.loose?f[m.CARETLOOSE]:f[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("caret",e,t,n,a,i,o),k(n)?s="":k(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):k(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):o?(u("replaceCaret pr",o),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(+n+1,".0.0-0")):(u("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),u("caret return",s),s})},T=function(e,t){return u("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return N(e,t)}).join(" ")},N=function(e,t){e=e.trim();var n=t.loose?f[m.XRANGELOOSE]:f[m.XRANGE];return e.replace(n,function(n,r,a,i,o,s){if(u("xRange",e,n,r,a,i,o,s),l=a,c=i,d=o,k(l)&&!k(c)||k(c)&&d&&!k(d))return e;var l,c,d,f=k(a),p=f||k(i),m=p||k(o);return"="===r&&m&&(r=""),s=t.includePrerelease?"-0":"",f?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(p&&(i=0),o=0,">"===r?(r=">=",p?(a=+a+1,i=0):i=+i+1,o=0):"<="===r&&(r="<",p?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(o).concat(s)):p?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):m&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),u("xRange return",n),n})},M=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[m.STAR],"")},R=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?m.GTE0PRE:m.GTE0],"")},I=function(e){return function(t,n,r,a,i,o,s,l,u,c,d,f){return n=k(r)?"":k(a)?">=".concat(r,".0.0").concat(e?"-0":""):k(i)?">=".concat(r,".").concat(a,".0").concat(e?"-0":""):o?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=k(u)?"":k(c)?"<".concat(+u+1,".0.0-0"):k(d)?"<".concat(u,".").concat(+c+1,".0-0"):f?"<=".concat(u,".").concat(c,".").concat(d,"-").concat(f):e?"<".concat(u,".").concat(c,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()}},_=function(e,t,n){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(var a=0;a<e.length;a++)if(u(e[a].semver),e[a].semver!==l.ANY&&e[a].semver.prerelease.length>0){var i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},7583(e,t,n){"use strict";function r(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=n(7139),i=n(9345),o=i.MAX_LENGTH,s=i.MAX_SAFE_INTEGER,l=n(4299),u=l.safeRe,c=l.t,d=n(6480),f=n(6640).compareIdentifiers,p=function(e,t){var n=t.split(".");if(n.length>e.length)return!1;for(var r=0;r<n.length;r++)if(0!==f(e[r],n[r]))return!1;return!0};e.exports=function(){var e;function t(e,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=d(n),r(e,t))if(!!n.loose===e.loose&&!!n.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError('Invalid version. Must be a string. Got type "'.concat(void 0===e?"undefined":(i=e)&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i,'".'));if(e.length>o)throw TypeError("version is longer than ".concat(o," characters"));a("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var i,l=e.trim().match(n.loose?u[c.LOOSE]:u[c.FULL]);if(!l)throw TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}return e=[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(e){if(a("SemVer.compare",this.version,this.options,e),!r(e,t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}},{key:"compareMain",value:function(e){return(r(e,t)||(e=new t(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}},{key:"comparePre",value:function(e){if(r(e,t)||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var n=0;do{var i=this.prerelease[n],o=e.prerelease[n];if(a("prerelease compare",n,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}while(++n)}},{key:"compareBuild",value:function(e){r(e,t)||(e=new t(e,this.options));var n=0;do{var i=this.build[n],o=e.build[n];if(a("build compare",n,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}while(++n)}},{key:"inc",value:function(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){var r="-".concat(t).match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!r||r[1]!==t)throw Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":var a=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[a];else{for(var i=this.prerelease.length;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){var o=[t,a];!1===n&&(o=[t]),p(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=o):this.prerelease=o}break;default:throw Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},5995(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},570(e,t,n){"use strict";function r(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=n(6534),i=n(9962),o=n(4907),s=n(9928),l=n(6228),u=n(4401);e.exports=function(e,t,n,c){switch(t){case"===":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e===n;case"!==":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e!==n;case"":case"=":case"==":return a(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw TypeError("Invalid operator: ".concat(t))}}},5877(e,t,n){"use strict";var r=n(7583),a=n(5749),i=n(4299),o=i.safeRe,s=i.t;e.exports=function(e,t){if(i=e,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](i):i instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i,l,u=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&l.index+l[0].length===n.index+n[0].length||(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;var c=n[2],d=n[3]||"0",f=n[4]||"0",p=t.includePrerelease&&n[5]?"-".concat(n[5]):"",m=t.includePrerelease&&n[6]?"+".concat(n[6]):"";return a("".concat(c,".").concat(d,".").concat(f).concat(p).concat(m),t)}},2740(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){var a=new r(e,n),i=new r(t,n);return a.compare(i)||a.compareBuild(i)}},9478(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t){return r(e,t,!0)}},2057(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},6003(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,null,!0),a=r(t,null,!0),i=n.compare(a);if(0===i)return null;var o=i>0,s=o?n:a,l=o?a:n,u=!!s.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}var c=u?"pre":"";return n.major!==a.major?c+"major":n.minor!==a.minor?c+"minor":n.patch!==a.patch?c+"patch":"prerelease"}},6534(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0===r(e,t,n)}},4907(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>0}},9928(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>=0}},4006(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n,a,i){"string"==typeof n&&(i=a,a=n,n=void 0);try{return new r((null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)?e.version:e,n).inc(t,a,i).version}catch(e){return null}}},6228(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>r(e,t,n)}},4401(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>=r(e,t,n)}},9211(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).major}},2895(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).minor}},9962(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0!==r(e,t,n)}},5749(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},6008(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).patch}},510(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},6153(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(t,e,n)}},9268(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(n,e,t)})}},5775(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},4372(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(e,n,t)})}},7406(e,t,n){"use strict";var r=n(5749),a=n(9345),i=n(7583),o=function(e,t){return r((null!=i&&"u">typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](e):e instanceof i)?e.version:e,t)},s=function(e,t){if(l(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()},l=function(e){return e.startsWith("pre")};e.exports=function(e,t,n){if(!a.RELEASE_TYPES.includes(t))return null;var r=o(e,n);return r&&s(r,t)}},3440(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n?n.version:null}},8164(e,t,n){"use strict";var r=n(4299),a=n(9345),i=n(7583),o=n(6640);e.exports={parse:n(5749),valid:n(3440),clean:n(5995),inc:n(4006),diff:n(6003),major:n(9211),minor:n(2895),patch:n(6008),prerelease:n(510),compare:n(2057),rcompare:n(6153),compareLoose:n(9478),compareBuild:n(2740),sort:n(4372),rsort:n(9268),gt:n(4907),lt:n(6228),eq:n(6534),neq:n(9962),gte:n(9928),lte:n(4401),cmp:n(570),coerce:n(5877),truncate:n(7406),Comparator:n(6503),Range:n(7490),satisfies:n(5775),toComparators:n(7690),maxSatisfying:n(5901),minSatisfying:n(6975),minVersion:n(8158),validRange:n(3429),outside:n(3452),gtr:n(2560),ltr:n(9801),intersects:n(453),simplifyRange:n(1784),subset:n(7885),SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},9345(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7139(e){"use strict";var t,n;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports=("u"<typeof process?"undefined":(t=process)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(n=console).error.apply(n,["SEMVER"].concat(function(e){if(Array.isArray(e))return r(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}:function(){}},6640(e){"use strict";var t=/^[0-9]+$/,n=function(e,n){if("number"==typeof e&&"number"==typeof n)return e===n?0:e<n?-1:1;var r=t.test(e),a=t.test(n);return r&&a&&(e*=1,n*=1),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:function(e,t){return n(t,e)}}},3235(e){"use strict";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.max=1e3,this.map=new Map}return e=[{key:"get",value:function(e){var t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}},{key:"delete",value:function(e){return this.map.delete(e)}},{key:"set",value:function(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){var n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},6480(e){"use strict";var t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=function(e){return e?(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"?t:e:n}},4299(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(9345),i=a.MAX_SAFE_COMPONENT_LENGTH,o=a.MAX_SAFE_BUILD_LENGTH,s=a.MAX_LENGTH,l=n(7139),u=(t=e.exports={}).re=[],c=t.safeRe=[],d=t.src=[],f=t.safeSrc=[],p=t.t={},m=0,h="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[h,o]],v=function(e){var t=!0,n=!1,a=void 0;try{for(var i,o=y[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];e=e.split("".concat(u,"*")).join("".concat(u,"{0,").concat(c,"}")).split("".concat(u,"+")).join("".concat(u,"{1,").concat(c,"}"))}}catch(e){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}return e},g=function(e,t,n){var r=v(t),a=m++;l(e,a,t),p[e]=a,d[a]=t,f[a]=r,u[a]=new RegExp(t,n?"g":void 0),c[a]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(h,"*")),g("MAINVERSION","(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")")),g("MAINVERSIONLOOSE","(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASEIDENTIFIER","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIER],")")),g("PRERELEASEIDENTIFIERLOOSE","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASE","(?:-(".concat(d[p.PRERELEASEIDENTIFIER],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIER],")*))")),g("PRERELEASELOOSE","(?:-?(".concat(d[p.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIERLOOSE],")*))")),g("BUILDIDENTIFIER","".concat(h,"+")),g("BUILD","(?:\\+(".concat(d[p.BUILDIDENTIFIER],"(?:\\.").concat(d[p.BUILDIDENTIFIER],")*))")),g("FULLPLAIN","v?".concat(d[p.MAINVERSION]).concat(d[p.PRERELEASE],"?").concat(d[p.BUILD],"?")),g("FULL","^".concat(d[p.FULLPLAIN],"$")),g("LOOSEPLAIN","[v=\\s]*".concat(d[p.MAINVERSIONLOOSE]).concat(d[p.PRERELEASELOOSE],"?").concat(d[p.BUILD],"?")),g("LOOSE","^".concat(d[p.LOOSEPLAIN],"$")),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE","".concat(d[p.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),g("XRANGEIDENTIFIER","".concat(d[p.NUMERICIDENTIFIER],"|x|X|\\*")),g("XRANGEPLAIN","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:".concat(d[p.PRERELEASE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGEPLAINLOOSE","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(d[p.PRERELEASELOOSE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAIN],"$")),g("XRANGELOOSE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAINLOOSE],"$")),g("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(i,"})")+"(?:\\.(\\d{1,".concat(i,"}))?")+"(?:\\.(\\d{1,".concat(i,"}))?")),g("COERCE","".concat(d[p.COERCEPLAIN],"(?:$|[^\\d])")),g("COERCEFULL",d[p.COERCEPLAIN]+"(?:".concat(d[p.PRERELEASE],")?")+"(?:".concat(d[p.BUILD],")?")+"(?:$|[^\\d])"),g("COERCERTL",d[p.COERCE],!0),g("COERCERTLFULL",d[p.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM","(\\s*)".concat(d[p.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",g("TILDE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAIN],"$")),g("TILDELOOSE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("LONECARET","(?:\\^)"),g("CARETTRIM","(\\s*)".concat(d[p.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",g("CARET","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAIN],"$")),g("CARETLOOSE","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("COMPARATORLOOSE","^".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],")$|^$")),g("COMPARATOR","^".concat(d[p.GTLT],"\\s*(").concat(d[p.FULLPLAIN],")$|^$")),g("COMPARATORTRIM","(\\s*)".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],"|").concat(d[p.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE","^\\s*(".concat(d[p.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAIN],")")+"\\s*$"),g("HYPHENRANGELOOSE","^\\s*(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s*$"),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2560(e,t,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,">",n)}},453(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){return e=new r(e,n),t=new r(t,n),e.intersects(t,n)}},9801(e,t,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,"<",n)}},5901(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||-1===o.compare(e))&&(o=new r(i=e,n))}),i}},6975(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||1===o.compare(e))&&(o=new r(i=e,n))}),i}},8158(e,t,n){"use strict";var r=n(7583),a=n(7490),i=n(4907);e.exports=function(e,t){e=new a(e,t);var n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(var o=0;o<e.set.length;++o)!function(t){var a=e.set[t],o=null;a.forEach(function(e){var t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||i(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: ".concat(e.operator))}}),o&&(!n||i(n,o))&&(n=o)}(o);return n&&e.test(n)?n:null}},3452(e,t,n){"use strict";var r=n(7583),a=n(6503),i=a.ANY,o=n(7490),s=n(5775),l=n(4907),u=n(6228),c=n(4401),d=n(9928);e.exports=function(e,t,n,f){var p,m,h,y,v;switch(e=new r(e,f),t=new o(t,f),n){case">":p=l,m=c,h=u,y=">",v=">=";break;case"<":p=u,m=d,h=l,y="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(var g=0;g<t.set.length;++g){var b=function(n){var r=t.set[n],o=null,s=null;return(r.forEach(function(e){e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===y||o.operator===v||(!s.operator||s.operator===y)&&m(e,s.semver)||s.operator===v&&h(e,s.semver))?{v:!1}:void 0}(g);if("object"==(b&&"u">typeof Symbol&&b.constructor===Symbol?"symbol":typeof b))return b.v}return!0}},1784(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(5775),i=n(2057);e.exports=function(e,t,n){var o=[],s=null,l=null,u=e.sort(function(e,t){return i(e,t,n)}),c=!0,d=!1,f=void 0;try{for(var p,m=u[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value;a(h,t,n)?(l=h,s||(s=h)):(l&&o.push([s,l]),l=null,s=null)}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}s&&o.push([s,null]);var y=[],v=!0,g=!1,b=void 0;try{for(var x,w=o[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var j,S=(j=x.value,function(e){if(Array.isArray(e))return e}(j)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(j)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(j)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=S[0],O=S[1];E===O?y.push(E):O||E!==u[0]?O?E===u[0]?y.push("<=".concat(O)):y.push("".concat(E," - ").concat(O)):y.push(">=".concat(E)):y.push("*")}}catch(e){g=!0,b=e}finally{try{v||null==w.return||w.return()}finally{if(g)throw b}}var k=y.join(" || "),A="string"==typeof t.raw?t.raw:String(t);return k.length<A.length?k:t}},7885(e,t,n){"use strict";var r=n(7490),a=n(6503),i=a.ANY,o=n(5775),s=n(2057),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=function(e,t,n){if(e===t)return!0;if(1===e.length&&e[0].semver===i)if(1===t.length&&t[0].semver===i)return!0;else e=n.includePrerelease?l:u;if(1===t.length&&t[0].semver===i)if(n.includePrerelease)return!0;else t=u;var r=new Set,a=!0,c=!1,p=void 0;try{for(var m,h,y,v=e[Symbol.iterator]();!(a=(y=v.next()).done);a=!0){var g=y.value;">"===g.operator||">="===g.operator?m=d(m,g,n):"<"===g.operator||"<="===g.operator?h=f(h,g,n):r.add(g.semver)}}catch(e){c=!0,p=e}finally{try{a||null==v.return||v.return()}finally{if(c)throw p}}if(r.size>1)return null;if(m&&h&&((j=s(m.semver,h.semver,n))>0||0===j&&(">="!==m.operator||"<="!==h.operator)))return null;var b=!0,x=!1,w=void 0;try{for(var j,S,E=r[Symbol.iterator]();!(b=(S=E.next()).done);b=!0){var O=S.value;if(m&&!o(O,String(m),n)||h&&!o(O,String(h),n))return null;var k=!0,A=!1,D=void 0;try{for(var P,C=t[Symbol.iterator]();!(k=(P=C.next()).done);k=!0){var T=P.value;if(!o(O,String(T),n))return!1}}catch(e){A=!0,D=e}finally{try{k||null==C.return||C.return()}finally{if(A)throw D}}return!0}}catch(e){x=!0,w=e}finally{try{b||null==E.return||E.return()}finally{if(x)throw w}}var N=!!h&&!n.includePrerelease&&!!h.semver.prerelease.length&&h.semver,M=!!m&&!n.includePrerelease&&!!m.semver.prerelease.length&&m.semver;N&&1===N.prerelease.length&&"<"===h.operator&&0===N.prerelease[0]&&(N=!1);var R=!0,I=!1,_=void 0;try{for(var L,F,B,V,z,W=t[Symbol.iterator]();!(R=(z=W.next()).done);R=!0){var U=z.value;if(V=V||">"===U.operator||">="===U.operator,B=B||"<"===U.operator||"<="===U.operator,m){if(M&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===M.major&&U.semver.minor===M.minor&&U.semver.patch===M.patch&&(M=!1),">"===U.operator||">="===U.operator){if((L=d(m,U,n))===U&&L!==m)return!1}else if(">="===m.operator&&!U.test(m.semver))return!1}if(h){if(N&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===N.major&&U.semver.minor===N.minor&&U.semver.patch===N.patch&&(N=!1),"<"===U.operator||"<="===U.operator){if((F=f(h,U,n))===U&&F!==h)return!1}else if("<="===h.operator&&!U.test(h.semver))return!1}if(!U.operator&&(h||m)&&0!==j)return!1}}catch(e){I=!0,_=e}finally{try{R||null==W.return||W.return()}finally{if(I)throw _}}return(!m||!B||!!h||0===j)&&(!h||!V||!!m||0===j)&&!M&&!N&&!0},d=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},f=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new r(e,n),t=new r(t,n);var a=!1,i=!0,o=!1,s=void 0;try{e:for(var l,u=e.set[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=!0,p=!1,m=void 0;try{for(var h,y=t.set[Symbol.iterator]();!(f=(h=y.next()).done);f=!0){var v=h.value,g=c(d,v,n);if(a=a||null!==g,g)continue e}}catch(e){p=!0,m=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw m}}if(a)return!1}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return!0}},7690(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t){return new r(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}},3429(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t){try{return new r(e,t).range||"*"}catch(e){return null}}},1017(e,t,n){"use strict";n.d(t,{u:()=>o});var r=n(2804),a=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],i={primaryColor:{_type:r.Type.String,_description:"The color for displaying primary classification tags",_default:"red",_validators:[r.validators.oneOf(a)]},secondaryColor:{_type:r.Type.String,_description:"The color for displaying secondary classification tags",_default:"blue",_validators:[r.validators.oneOf(a)]}},o={"Brand color #1":{_default:"#005d5d",_type:r.Type.String},"Brand color #2":{_default:"#004144",_type:r.Type.String},"Brand color #3":{_default:"#007d79",_type:r.Type.String},excludeEntityIdentifierCodeTypes:{uuids:{_type:r.Type.Array,_description:"List of UUIDs of entity identifier types to exclude from rendering in the entity banner",_default:[],_elements:{_type:r.Type.UUID}}},implementationName:{_type:r.Type.String,_description:"The name of the deployment or authority displayed in the UI.",_default:"Framework"},entityPhotoConceptUuid:{_type:r.Type.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the entity profile photo, stored as an attachment. Set to `null` to disable and use only generated avatars."},contactAttributeTypes:{uuids:{_type:r.Type.Array,_description:"UUIDs of attribute types to show as contact details in the entity banner",_default:[],_elements:{_type:r.Type.UUID}}},preferredCalendar:{_type:r.Type.Object,_description:"Keys should be locale codes, values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[r.validators.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:r.Type.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Keys should be locale codes, values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:r.Type.String}},classificationTags:i}},488(e,t,n){"use strict";let r,a,i,o,s,l,u;n.d(t,{dNG:()=>vc,JTN:()=>sa,_RD:()=>gb,FNf:()=>CN,eCO:()=>op,UgN:()=>sP,MTs:()=>he,wmT:()=>AP,CW5:()=>Ap,Xhy:()=>Tz,aRn:()=>E,X25:()=>vu,ttj:()=>TF,ozP:()=>bD,id:()=>sD,e_T:()=>gk,fNA:()=>Oa,vFG:()=>oq,whL:()=>MF,YiA:()=>h1,uBm:()=>bE,yBj:()=>o2,_f_:()=>P5,Q5Y:()=>Tm,tCH:()=>sr,kNS:()=>E0,nFg:()=>oV,pkp:()=>kF,y0l:()=>Td,KGd:()=>CH,ivh:()=>Tp,Lfm:()=>sf,gHx:()=>kx,Vsm:()=>Tk,Pfj:()=>Mt,WO_:()=>bS,T7Q:()=>kA,iq0:()=>Tt,SvQ:()=>ga,B2u:()=>vg,QsE:()=>Ae,ilK:()=>v_,toY:()=>hv,u4h:()=>o1,Bk2:()=>vs,gpz:()=>yx,P0c:()=>v7,d4y:()=>MW,O3W:()=>kW,c0o:()=>kw,EPe:()=>hy,jCr:()=>bK,zYs:()=>yb,lgu:()=>My,XEq:()=>o3,mOW:()=>MV,MnZ:()=>y3,rpF:()=>vo,LdX:()=>Ty,dKS:()=>yj,Bic:()=>kB,lFh:()=>Tn,Uve:()=>sM,CU$:()=>hq,ctS:()=>gS,Wjo:()=>b_,nBS:()=>C9,o81:()=>Mm,pm$:()=>ob,Hwc:()=>kk,W5n:()=>lA,XWC:()=>E7,ZyP:()=>hZ,NIm:()=>Ok,Kz$:()=>yd,P8U:()=>EB,$iy:()=>y4,EiO:()=>AK,m9A:()=>vH,jMM:()=>oW,BM2:()=>CR,DeE:()=>y9,Wdn:()=>oA,GF9:()=>P2,Fny:()=>EN,WyE:()=>gI,qUP:()=>oN,z0Y:()=>ya,wn6:()=>Tl,XhU:()=>y$,cJy:()=>bw,et7:()=>vp,YP7:()=>EZ,ZLm:()=>vM,LPu:()=>ss,uTG:()=>yf,ncA:()=>OM,EDM:()=>gN,uge:()=>kD,b6Z:()=>Th,aJF:()=>sd,mqB:()=>L,Dsh:()=>hY,pyx:()=>TG,ehn:()=>vi,Qsg:()=>E9,cjw:()=>Oe,SwV:()=>oh,UcB:()=>kN,GGC:()=>W,mmM:()=>oc,Nqf:()=>yc,tKr:()=>lj,Kpk:()=>ol,M9T:()=>yk,JJd:()=>om,Ua6:()=>lO,EGc:()=>y_,lq$:()=>sn,QeH:()=>Dk,lok:()=>vQ,gCo:()=>AE,hae:()=>E4,hZg:()=>sm,uDL:()=>Ce,y8:()=>v2,D3D:()=>ow,SQq:()=>vn,XHu:()=>vv,YJP:()=>oj,BIq:()=>Mf,pJo:()=>OC,REV:()=>oa,frg:()=>k7,OeE:()=>gd,ZLN:()=>oi,Fmw:()=>gl,uWG:()=>vq,CTc:()=>od,paI:()=>CK,x9q:()=>gv,osL:()=>sS,MiD:()=>Mv,EJV:()=>sx,drd:()=>hE,mIk:()=>TP,flY:()=>os,tp2:()=>ON,OoY:()=>Ms,F$l:()=>Ai,b1c:()=>sv,T7$:()=>NC,Klm:()=>yZ,zfR:()=>hK,ICb:()=>kH,iRo:()=>AZ,d1P:()=>vG,QpY:()=>lS,Q92:()=>vf,q__:()=>vh,s3U:()=>oC,XvC:()=>bi,Ycj:()=>Ct,_Jn:()=>Mz,bmf:()=>vw,GcC:()=>ye,ckU:()=>Z,tdF:()=>vR,EA:()=>p,bqE:()=>Ax,W4t:()=>ox,bF1:()=>vj,Ddn:()=>CY,npY:()=>or,foY:()=>kE,wwY:()=>se,hPu:()=>Am,pYV:()=>sh,_kB:()=>Eb,XB2:()=>oI,Xac:()=>Nf,eFc:()=>TV,yde:()=>E$,iVR:()=>MH,ECF:()=>vt,gFP:()=>TA,Pyy:()=>oz,lyJ:()=>o5,$2H:()=>vx,pyG:()=>oD,A60:()=>oo,ci3:()=>sT,qb_:()=>vA,AFR:()=>N$,aiS:()=>TI,Ogf:()=>NW,v99:()=>vU,PtA:()=>sC,Fm9:()=>E6,C44:()=>Mn,TC2:()=>gs,slS:()=>lk,Zpy:()=>yz,CGR:()=>EJ,Apm:()=>CM,AnT:()=>kj,vY7:()=>CI,hXZ:()=>oL,jT8:()=>Do,FtQ:()=>og,ofx:()=>MB,PK0:()=>AY,KFv:()=>vS,OFC:()=>k2,TNY:()=>y7,ZrL:()=>oG,oVc:()=>Af,Eg0:()=>hb,OC$:()=>sp,Nvq:()=>TK,p4K:()=>kX,Y26:()=>OT,SLu:()=>Na,WIv:()=>sl,BDu:()=>kh,MO4:()=>sw,qLc:()=>Ew,dwU:()=>sg,bDP:()=>of,O_s:()=>ly,USm:()=>oO,uU$:()=>y8,G3_:()=>Df,uFu:()=>o0,w21:()=>vd,rmb:()=>Nk,H0x:()=>st,biy:()=>bv,cn:()=>yt,GYk:()=>by,_PX:()=>EF,SCH:()=>ov,koC:()=>m5,_e_:()=>oH,Fnj:()=>oJ,G_3:()=>gw,_1W:()=>gO,rv3:()=>o4,XaH:()=>oM,AOq:()=>Az,nvs:()=>y6,qYP:()=>ou,RFy:()=>sc,teX:()=>yV,x4I:()=>Mh,naI:()=>oB,SnF:()=>Cz,F3N:()=>gc,CH0:()=>gj,sgv:()=>ve,NGl:()=>AG,qpM:()=>E8,RGi:()=>Cn,BpM:()=>yl,B1u:()=>y2,cxd:()=>Q,wJ8:()=>ND,owH:()=>vr,n$t:()=>m0,uqj:()=>oT,RJr:()=>MQ,szA:()=>o_,_Xm:()=>oQ,uQc:()=>o$,cxq:()=>vl,Km0:()=>Mr,SA3:()=>sN,Y21:()=>vm,vKP:()=>oS,lHJ:()=>k$,vNL:()=>ML,XzH:()=>gg,aN0:()=>function e(t,n){var r,a=(0,hr.Q_)(t),i=n.state,o=n.onWorkspaceGroupLaunch,s=n.workspaceGroupCleanup,l=n.workspaceToLaunch,u=function(){return gv}();if(u.getState().openWorkspaces.length){var c=u.getState().workspaceGroup;c?gi(null==c?void 0:c.name,function(){e(t,n)}):gw(function(){e(t,n)})}else u.setState(function(e){return gr(gn({},e),{workspaceGroup:{name:t,members:a.members,cleanup:s}})}),gk(t,i),null==o||o(),l&&gs(l.name,null!=(r=l.additionalProps)?r:{})},DYW:()=>yo,nys:()=>sO,Tqd:()=>kO,DWK:()=>DS,BGy:()=>o8,X3I:()=>Te,KId:()=>EW,tMf:()=>gJ,EDr:()=>vW,vJW:()=>y1,yDT:()=>sj,YpM:()=>Tf,sCq:()=>EV,TQT:()=>X,pd:()=>kR,PAB:()=>M8,Zqu:()=>At,feL:()=>sE,AkA:()=>bj,JrA:()=>lD,Ce6:()=>oP,tyG:()=>T1,Rt$:()=>oK,Plc:()=>N8,BT6:()=>oZ,Oi_:()=>sk,zZ0:()=>oX,Pe5:()=>NT,x1U:()=>oF,l6P:()=>Ay,uQD:()=>F.u,NOx:()=>yu,zLd:()=>ky,Int:()=>sI,oCk:()=>ok,Jbi:()=>CP,KbA:()=>sy,Ws0:()=>M$,Qnn:()=>MN,pTx:()=>bg,SwB:()=>sb,zkr:()=>kP,MJ8:()=>gm,SKX:()=>vy,AA7:()=>TD,qXl:()=>Aq,JKc:()=>gh,zlb:()=>gf,WMK:()=>y,rZj:()=>o7,thS:()=>va,KKH:()=>vb,Fe_:()=>C_,Ix5:()=>oU,Jc:()=>oR,cQD:()=>si,Rnm:()=>o6,Zes:()=>su,aHM:()=>vF,f1b:()=>v9,D6i:()=>Ol,PPo:()=>o9,IHy:()=>y5,cBB:()=>NA,NAP:()=>so,oy0:()=>sR,lu9:()=>MG,Mtm:()=>oE,kE8:()=>on,ZHE:()=>oy,wtE:()=>Oj,hLN:()=>bx,tCQ:()=>sA,a8E:()=>kM,hi6:()=>oY});var c,d,f,p={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function m(){document.body.classList.toggle("egen-breakpoint-lt-tablet",window.innerWidth<p.TABLET_MIN),document.body.classList.toggle("egen-breakpoint-gt-phone",window.innerWidth>p.PHONE_MAX),document.body.classList.toggle("egen-breakpoint-gt-tablet",window.innerWidth>p.TABLET_MAX),document.body.classList.toggle("egen-breakpoint-lt-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-small-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-large-desktop",window.innerWidth<p.LARGE_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-gt-small-desktop",window.innerWidth>p.SMALL_DESKTOP_MAX)}var h=!1;function y(){h||(window.addEventListener("resize",m),m(),h=!0)}var v=n(2883),g=n(8783),b=n.n(g),x=n(9663),w=n.n(x),j=n(5429);function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t,n=e.title,r=e.children,a="tablet"===(0,j.useLayoutType)();return(0,v.jsxs)("div",{className:w()((S(t={},"Vkmd-M3ZdPZe+c6OloVbnw==",a),S(t,"ocWGqN+S6wY3-wV0QG3pOw==",!a),t)),children:[(0,v.jsx)("h4",{children:n}),r]})}let O={card:"xY-hjnMj2Vhb3NXpN1HzQQ==",content:"gtaa8ThYG84yx53YeLa39Q==",title:"e1HZjiL1P-XgmgMdGZsPDA==",description:"UZ1UltB3v6g6dVcdmKZSFg==","card--default":"_31cbAPdcvXMVx5O8ZFyHeg==","card--dots":"kO1dmpc37xfNzZfZ5pTHBw==",hLineTop:"_8HsRyQKGDhsCaZ-kREjyVw==",hLineBottom:"ZZDCyLFNUAKpiGi6n-shAQ==",dotsFrame:"BCFjDcyKcFZlZqoa3t6lOg==",dotsGrid:"_7PFHoKqERi5GXdUZ6HAuPw==",dot:"ROnKesaIAN68AZ35f5+sDg==",dotsInner:"_986dypuAW0G1ypk84XA88A==","card--gradient":"mj83Zsyhev1OZshBKkb1iA==",gradientLineTop:"m1SGh5vNmhhfAY98gfr+QA==",gradientLineBottom:"KBCAwgrsoY7-dvt2GhMU2w==",gradientSideLeft:"tiUBDDY8Au-1arWuyojnRg==",gradientSideRight:"EUGUmYnGW908QRwyd6PjPA==",gradientInner:"Auxn3dhfk0IFhyo7u92q3Q==","card--plus":"zZhYiUShtg81oZa8dfyL8Q==",plusIcon:"RBEQhWdrHdEVlT9FD9pDcw==","plusIcon--topLeft":"aznYnJ0jHj8iO5RqNcoDzg==","plusIcon--topRight":"C3kihD1fEE2RDqM-EkL3qA==","plusIcon--bottomLeft":"GZOruZH1iBepzH5y-caEPw==","plusIcon--bottomRight":"FAufx9GojvBX0BR5R4jHag==","card--neubrutalism":"TzwGTGmOKN521-9GKgM3CA==","card--inner":"_7F06d0fmL+k0+GoI-jJJHQ==",innerPanel:"kd+9ACDN7VmUHuFd6NU16A==","card--lifted":"_0Y37o+L7KDOcK9eSOh3Pmg==","card--corners":"zpT+IrBZGp9wUrJE9TSNsg==",cornerBracket:"+5UNj3yT+4ObxnsZHsca+g==","cornerBracket--topLeft":"WdsryH2D9JjEzWSzc7YD+A==","cornerBracket--topRight":"_620KZHKAClNQtKPLDuQNJw==","cornerBracket--bottomLeft":"LUtOIpYoA9CKcWIB5WBUSw==","cornerBracket--bottomRight":"pMjLtlazZqXeonjgX3aU5g==","card--glass":"krTNomK41WCUElSE3Wm3yg==","card--mirror":"rsdHzWYe6nr2mHqiRKV29Q==",mirrorSurface:"uj-xxJmQ4tFQGOBeAgUqlg==",mirrorShadow:"AFWMLjsCN6T34CLjglwuiA==","mirrorSurface--sm":"hN2+kcLxmWrZs4eVlKcEPw==","mirrorSurface--default":"CTQ+aR5eT0ezIF9LbKQE2g==","mirrorSurface--lg":"QyGzH3w3+zadG4Gjh-U44w==","mirrorSurface--icon":"ivg5LA5pTCCEwGWWFD5MEg=="};var k=function(e){var t=e.dotsColor;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:O.hLineTop}),(0,v.jsx)("div",{className:O.hLineBottom}),(0,v.jsx)("div",{className:O.dotsFrame,children:(0,v.jsxs)("div",{className:O.dotsGrid,children:[(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}})]})})]})},A=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:O.gradientLineTop}),(0,v.jsx)("div",{className:O.gradientLineBottom}),(0,v.jsx)("div",{className:O.gradientSideLeft}),(0,v.jsx)("div",{className:O.gradientSideRight})]})},D=["topLeft","topRight","bottomLeft","bottomRight"],P=function(){return(0,v.jsx)(v.Fragment,{children:D.map(function(e){return(0,v.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,width:24,height:24,className:"".concat(O.plusIcon," ").concat(O["plusIcon--".concat(e)]),"aria-hidden":"true",children:(0,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})},e)})})},C=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--topLeft"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--topRight"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--bottomLeft"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--bottomRight"])})]})};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e){if(Array.isArray(e))return e}function M(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function _(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}}var L=(0,g.forwardRef)(function(e,t){var n,r=N(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||_(n)||M(),a=r[0],i=r.slice(1),o=a.variant,s=void 0===o?"default":o,l=a.size,u=a.title,c=a.description,d=a.children,f=a.className,p=a.style,m=a.contentClassName,h=a.contentStyle,y=a.dotsColor,g=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),b=(N(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||_(i,1)||M())[0],x=(0,v.jsxs)("div",{className:w()(O.content,m),style:h,children:[u&&(0,v.jsx)("h3",{className:O.title,children:u}),c&&(0,v.jsx)("p",{className:O.description,children:c}),d]}),j=w()(O.card,O["card--".concat(s)],f);switch(s){case"dots":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(k,{dotsColor:void 0===y?"var(--colors-success-500)":y}),(0,v.jsx)("div",{className:O.dotsInner,children:x})]}));case"gradient":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(A,{}),(0,v.jsx)("div",{className:O.gradientInner,children:x})]}));case"inner":return(0,v.jsx)("div",I(R({ref:b,className:j,style:p},g),{children:(0,v.jsx)("div",{className:O.innerPanel,children:x})}));case"plus":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(P,{}),x]}));case"corners":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(C,{}),x]}));case"mirror":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)("div",{className:w()(O.mirrorSurface,O["mirrorSurface--".concat(void 0===l?"default":l)]),children:x}),(0,v.jsx)("div",{className:O.mirrorShadow})]}));default:return(0,v.jsx)("div",I(R({ref:b,className:j,style:p},g),{children:x}))}});L.displayName="DecoratedCard";var F=n(1017),B=n(8300),V=n(5565),z={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},W=function(e){return(0,v.jsx)(B.TableBatchActions,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({translateWithId:function(e,t){var n=z[e];return n?(0,V.V)(n,e,t):e}},e))};let U="_8PykSzSXNNdifN25ybqq3w==",$="qsOLntRcFqCu-mnZH0czJA==",H="BserJewmzluWUcq5q8a0yw==",G="n86GzT7Rs8Kf8e25ihYZPg==";function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=(0,g.createContext)(null);function Z(){var e=(0,g.useContext)(K);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function X(e){var t,n=e.menuTitle,r=e.children,a=function(e){if(Array.isArray(e))return e}(t=b().useState(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return q(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1],s=(0,j.useOnClickOutside)(function(){return o(!1)},i),l="tablet"===(0,j.useLayoutType)(),u=(0,g.useCallback)(function(){return o(function(e){return!e})},[]),c=(0,g.useRef)(null),d=(0,g.useRef)(null),f=(0,g.useId)(),p="custom-overflow-menu-trigger-".concat(f),m="custom-overflow-menu-".concat(f),h=(0,g.useCallback)(function(){var e;o(!1),null==(e=c.current)||e.focus()},[]),y=(0,g.useMemo)(function(){return{closeMenu:h}},[h]),x=(0,g.useCallback)(function(e){"Escape"===e.key&&i&&(e.stopPropagation(),h())},[h,i]),S=g.Children.toArray(r);(0,g.useEffect)(function(){if(i&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[i]);var E=(0,g.useCallback)(function(e){e.currentIndex;var t,n,r,a,i,o,s=e.direction,l=null==(n=d.current)?void 0:n.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==l?void 0:l.length){var u=null!=(t=null==(a=document.activeElement)||null==(r=a.closest)?void 0:r.call(a,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l[s>0?0:l.length-1])||o.focus();return}var f=c+s,p=f<0?l.length-1:f>=l.length?0:f;null==(i=l[p])||i.focus()}},[]),O=S.map(function(e,t){return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{closeMenu:h,handleOverflowMenuItemFocus:E,index:t}):e});return(0,v.jsxs)("div",{"data-overflow-menu":!0,className:w()("cds--overflow-menu",U),ref:s,children:[(0,v.jsx)("button",{className:w()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":i},G),"aria-controls":m,"aria-expanded":i,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:x,ref:c,children:n}),(0,v.jsxs)("div",{className:w()("cds--overflow-menu-options","cds--overflow-menu--flip",$,Y({},H,i)),"aria-labelledby":p,"data-floating-menu-direction":"bottom",id:m,onKeyDown:x,ref:d,role:"menu",tabIndex:-1,children:[(0,v.jsx)("ul",{className:w()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":l}),children:(0,v.jsx)(K.Provider,{value:y,children:O})}),(0,v.jsx)("span",{})]})]})}function Q(e){var t,n,r=(0,g.useContext)(K);return(0,v.jsx)(B.OverflowMenuItem,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Y(e,t,n[t])})}return e}({},e),n=n={closeMenu:null==r?void 0:r.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function J(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let ee="u">typeof document?b().useLayoutEffect:()=>{},et={prefix:String(Math.round(1e10*Math.random())),current:0},en=b().createContext(et),er=b().createContext(!1),ea=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),ei="function"==typeof b().useId?function(e){let t=b().useId(),[n]=(0,g.useState)(eu()),r=n?"react-aria":`react-aria${et.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,g.useContext)(en),n=function(e=!1){let t=(0,g.useContext)(en),n=(0,g.useRef)(null);if(null===n.current&&!e){let e=b().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=ea.get(e);null==n?ea.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,ea.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function eo(){return!1}function es(){return!0}function el(e){return()=>{}}function eu(){return"function"==typeof b().useSyncExternalStore?b().useSyncExternalStore(el,eo,es):(0,g.useContext)(er)}let ec=!!("u">typeof window&&window.document&&window.document.createElement),ed=new Map;"u">typeof FinalizationRegistry&&(r=new FinalizationRegistry(e=>{ed.delete(e)}));let ef=new WeakMap;function ep(e){let[t,n]=(0,g.useState)(e),a=(0,g.useRef)(null),i=ei(t),o=(0,g.useRef)(null),s=ef.get(o);if(r&&s!==i&&(null!=s&&r.unregister(o),r.register(o,i,o),ef.set(o,i)),ec){let e=ed.get(i);e&&!e.includes(a)?e.push(a):ed.set(i,[a])}return ee(()=>()=>{r&&(r.unregister(o),ef.delete(o)),ed.delete(i)},[i]),(0,g.useEffect)(()=>{let e=a.current;return e&&n(e),()=>{e&&(a.current=null)}}),i}function em(e=[]){let t=ep(),[n,r]=function(e){let[t,n]=(0,g.useState)(e),r=(0,g.useRef)(t),a=(0,g.useRef)(null),i=(0,g.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}r.current===e.value?i.current():n(e.value)});return ee(()=>{r.current=t,a.current&&i.current()}),[t,(0,g.useCallback)(e=>{a.current=e(r.current),i.current()},[i])]}(t),a=(0,g.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ee(a,[t,a,...e]),n}function eh(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=ey(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():ey(e[n],null)})}}}function ey(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let ev=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r};function eg(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],a=r[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=J(n,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof a?t[e]=ev(n,a):"id"===e&&n&&a?t.id=function(e,t){if(e===t)return e;let n=ed.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ed.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,a):"ref"===e&&n&&a?t.ref=eh(n,a):t[e]=void 0!==a?a:n}}return t}function eb(e){let t=(0,g.useRef)(null),n=(0,g.useRef)(void 0),r=(0,g.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,g.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}let ex=Symbol("default");function ew({values:e,children:t}){for(let[n,r]of e)t=b().createElement(n.Provider,{value:r},t);return t}function ej(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:i,defaultStyle:o,values:s,render:l}=e;return(0,g.useMemo)(()=>{let e,u,c;return e="function"==typeof t?t({...s,defaultClassName:a}):t,u="function"==typeof n?n({...s,defaultStyle:o||{}}):n,c="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:e??a,style:u||o?{...o,...u}:void 0,children:c??i,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,n,r,a,i,o,s,l])}function eS(e,t){let n=(0,g.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||ex;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function eE(e,t,n){let{ref:r,...a}=eS(n,e.slot)||{},i=eb((0,g.useMemo)(()=>eh(t,r),[t,r])),o=eg(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?o.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},i="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:o.style={...a.style,...e.style}),[o,i]}function eO(e=!0){let[t,n]=(0,g.useState)(e),r=(0,g.useRef)(!1),a=(0,g.useCallback)(e=>{r.current=!0,n(!!e)},[]);return ee(()=>{r.current||n(!1)},[]),[a,t]}function ek(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function eA(e,t,n){let{render:r,...a}=t,i=(0,g.useRef)(null),o=(0,g.useMemo)(()=>eh(n,i),[n,i]);ee(()=>{},[e,r]);let s={...a,ref:o};return r?r(s,void 0):b().createElement(e,s)}let eD={},eP=new Proxy({},{get(e,t){if("string"!=typeof t)return;let n=eD[t];return n||(n=(0,g.forwardRef)(eA.bind(null,t)),eD[t]=n),n}}),eC=(0,g.createContext)(null),eT=null;function eN(e,t="assertive",n=7e3){eT?eT.announce(e,t,n):(eT=new eM,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?eT.announce(e,t,n):setTimeout(()=>{eT?.isAttached()&&eT?.announce(e,t,n)},100))}class eM{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}let eR=new Set(["id"]),eI=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),e_=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),eL=new Set(["dir","lang","hidden","inert","translate"]),eF=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),eB=/^(data-.*)$/;function eV(e,t={}){let{labelable:n,isLink:r,global:a,events:i=a,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(eR.has(t)||n&&eI.has(t)||r&&e_.has(t)||a&&eL.has(t)||i&&(eF.has(t)||t.endsWith("Capture")&&eF.has(t.slice(0,-7)))||o?.has(t)||eB.test(t))&&(s[t]=e[t]);return s}function ez(e){if(function(){if(null==eW){eW=!1;try{document.createElement("div").focus({get preventScroll(){return eW=!0,!0}})}catch{}}return eW}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let eW=null,eU=e=>{var t,n;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:eH(n=e)&&9===n.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},e$=e=>{let t=eU(e);return t?.defaultView??("u">typeof window?window:void 0)};function eH(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function eG(e,t,n,r){if(null==n||null==e)return()=>{};let a=Array.isArray(e)?e:[e];for(let e of a)e.addEventListener(t,n,r);return()=>{for(let e of a)e.removeEventListener(t,n,r)}}function eq(e,t,n,r){if(null==e)return()=>{};let a=[];for(let i of Array.isArray(e)?e:[e]){let e=i.style.getPropertyValue(t),o=i.style.getPropertyPriority(t);i.style.setProperty(t,n,r),a.unshift(()=>{e?i.style.setProperty(t,e,o):i.style.removeProperty(t)})}return()=>{for(let e of a)e()}}function eY(e,t){return!!t&&!!e&&e.contains(t)}function eK(e){return e.target}function eZ(e,t){if(null===t)return[];let n=[t=t??e$(e)];return n}function eX(e){if(!e)return!1;let t=e.getRootNode(),n=e$(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let eQ="u">typeof Element&&"checkVisibility"in Element.prototype;function eJ(e,t){return eQ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=e$(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=e$(e),{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||eJ(e.parentElement,e))}let e0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],e1=e0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";e0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let e2=e0.join(':not([hidden]):not([tabindex="-1"]),');function e3(e,t){return e.matches(e1)&&!e4(e)&&(t?.skipVisibilityCheck||eJ(e))}function e5(e){return e.matches(e2)&&eJ(e)&&!e4(e)}function e4(e){let t=e;for(;null!=t;){if(t instanceof e$(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function e6(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function e8(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function e9(e){let t=(0,g.useRef)({isFocused:!1,observer:null});return ee(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,g.useCallback)(n=>{let r=eK(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=e6(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let e7=!1;function te(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function tt(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function tn(e){let t=null;return()=>(null==t&&(t=e()),t)}let tr=tn(function(){return tt(/^Mac/i)}),ta=tn(function(){return tt(/^iPhone/i)}),ti=tn(function(){return tt(/^iPad/i)||tr()&&navigator.maxTouchPoints>1}),to=tn(function(){return ta()||ti()});tn(function(){return tr()||to()});let ts=tn(function(){return te(/AppleWebKit/i)&&(to()||!tl())});tn(function(){return ts()&&!tl()&&!tc()});let tl=tn(function(){return te(/Chrome|CriOS|CrMo/i)}),tu=tn(function(){return te(/Android/i)}),tc=tn(function(){return te(/(Firefox|FxiOS)/i)});function td(e){return""===e.pointerType&&!!e.isTrusted||(tu()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function tf(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}=t;!ts()&&tc()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(tr()?r=!0:a=!0);let s=ts()&&tr()&&!ti()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});tf.isOpening=n,ez(e),e.dispatchEvent(s),tf.isOpening=!1}tf.isOpening=!1;let tp=null,tm=new Set,th=new Map,ty=!1,tv=!1,tg={Tab:!0,Escape:!0};function tb(e,t){for(let n of tm)n(e,t)}function tx(e){ty=!0,tf.isOpening||e.metaKey||!tr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tp="keyboard",tb("keyboard",e))}function tw(e){tp="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ty=!0,tb("pointer",e))}function tj(e){!tf.isOpening&&td(e)&&(ty=!0,tp="virtual")}function tS(e){if(e7)return;let t=eK(e),n=e$(t),r=eU(t);if(t===n){tv=!0;return}t!==r&&e.isTrusted&&(ty||tv||(tp="virtual",tb("virtual",e)),ty=!1,tv=!1)}function tE(){e7||(ty=!1,tv=!0)}function tO(e){if("u"<typeof window||"u"<typeof document)return;let t=e$(e),n=eU(e);if(th.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){ty=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",tx,!0),n.addEventListener("keyup",tx,!0),n.addEventListener("click",tj,!0),t.addEventListener("focus",tS,!0),t.addEventListener("blur",tE,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",tw,!0),n.addEventListener("pointermove",tw,!0),n.addEventListener("pointerup",tw,!0)),t.addEventListener("beforeunload",()=>{tk(e)},{once:!0}),th.set(t,{focus:r})}let tk=(e,t)=>{let n=e$(e),r=eU(e);t&&r.removeEventListener("DOMContentLoaded",t),th.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:th.get(n).focus}),r.removeEventListener("keydown",tx,!0),r.removeEventListener("keyup",tx,!0),r.removeEventListener("click",tj,!0),n.removeEventListener("focus",tS,!0),n.removeEventListener("blur",tE,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",tw,!0),r.removeEventListener("pointermove",tw,!0),r.removeEventListener("pointerup",tw,!0)),th.delete(n))};function tA(){return"pointer"!==tp}"u">typeof document&&("loading"!==(l=eU(void 0)).readyState?tO(void 0):l.addEventListener("DOMContentLoaded",()=>{tO(void 0)}));let tD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),tP=new Map,tC=new Set;function tT(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=eK(n);if(!e(n)||!r)return;let a=tP.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),tP.delete(r)),0===tP.size)){for(let e of tC)e();tC.clear()}};document.body.addEventListener("transitionrun",n=>{let r=eK(n);if(!e(n)||!r)return;let a=tP.get(r);a||(a=new Set,tP.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function tN(e){requestAnimationFrame(()=>{for(let[e]of tP)"isConnected"in e&&!e.isConnected&&tP.delete(e);0===tP.size?e():tC.add(e)})}function tM(e){if(!e.isConnected)return;let t=eU(e);if("virtual"===tp){let n=((e=document)=>e.activeElement)(t);tN(()=>{let r=((e=document)=>e.activeElement)(t);(r===n||r===t.body)&&e.isConnected&&ez(e)})}else ez(e)}function tR(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,i=(0,g.useCallback)(e=>{if(eK(e)===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),o=e9(i),s=(0,g.useCallback)(e=>{let t=eK(e),r=eU(t),i=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===i&&(n&&n(e),a&&a(!0),o(e))},[a,n,o]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?i:void 0}}}function tI(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){n=!0},continuePropagation(){n=!1,"function"==typeof t.continuePropagation&&t.continuePropagation()},isPropagationStopped:()=>n}),n&&!("function"==typeof t.isPropagationStopped&&t.isPropagationStopped())&&t.stopPropagation()}}"u">typeof document&&("loading"!==document.readyState?tT():document.addEventListener("DOMContentLoaded",tT));let t_=new Set(["shift","alt","control","meta","mod"]),tL=["Alt","Control","Meta","Shift"];function tF(e){return tL.filter(t=>e.has(t))}function tB(e){return e.toLowerCase()}let tV={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function tz(e){let t,n,{shortcuts:r,allowRepeats:a=!1,allowComposing:i=!1}=e;if(r){let o=function(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=function(e){let t=e.split("+").reduce((e,t)=>{let n=t.toLowerCase();return t_.has(n)?"shift"===n?e.shift=!0:"alt"===n?e.alt=!0:"control"===n?e.ctrl=!0:"meta"===n?e.meta=!0:"mod"===n&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(""===t.key)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}(n);t.set(function(e){let t,n,r,a=tF((t=new Set,e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(tr()?"Meta":"Control"),t)),i=null!=(r=tV[n=tB(e.key)])?r:n;return a.length>0?`${a.join("+")}+${i}`:i}(e),r)}return e=>{let n,r,a,i=(r=tF((n=new Set,e.altKey&&n.add("Alt"),e.ctrlKey&&n.add("Control"),e.metaKey&&n.add("Meta"),e.shiftKey&&n.add("Shift"),n)),a=tB(e.key),(r.length>0?`${r.join("+")}+`:"")+a),o=t.get(i),s=o?.(e);void 0===s&&void 0!==o?s={shouldContinuePropagation:!1,shouldPreventDefault:!0}:"boolean"==typeof s&&(s={shouldContinuePropagation:!s,shouldPreventDefault:s}),s?.shouldPreventDefault&&e.preventDefault(),(!o||s?.shouldContinuePropagation)&&e.continuePropagation()}}(r),s=tI(e=>{!eY(e.currentTarget,eK(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing&&!i?e.continuePropagation():o(e)}),l=tI(e=>{!eY(e.currentTarget,eK(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing,e.continuePropagation()});t=e.onKeyDown?J(e.onKeyDown,s):s,n=e.onKeyUp?J(e.onKeyUp,l):l}else t=tI(e.onKeyDown),n=tI(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:t,onKeyUp:n}}}function tW(e,t){ee(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let tU=b().createContext(null);function t$(e,t){let{focusProps:n}=tR(e),{keyboardProps:r}=tz(e),a=eg(n,r),i=function(e){let t=(0,g.useContext)(tU)||{};tW(t,e);let{ref:n,...r}=t;return r}(t),o=e.isDisabled?{}:i,s=(0,g.useRef)(e.autoFocus);(0,g.useEffect)(()=>{s.current&&t.current&&tM(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:eg({...a,tabIndex:l},o)}}b().forwardRef(function(e,t){let{children:n,...r}=e,a=eb(t),i={...r,ref:a};return b().createElement(tU.Provider,{value:i},n)});let tH="default",tG="",tq=new WeakMap;function tY(e){if(to()&&ts())"disabled"===tH&&(tH="restoring",setTimeout(()=>{tN(()=>{if("restoring"===tH){let t=eU(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tG||""),tG="",tH="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tq.has(e)){let t=tq.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),tq.delete(e)}}let tK=new WeakMap;function tZ(e){let t=eU(e),n=tK.get(t);return void 0!==(n??=function(e,t){let n,r=e$(t),a=eU(t);if(null==a||null==r)return;let i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=a.querySelector(i);return o&&o instanceof r.HTMLMetaElement&&("csp-nonce"===e&&o.nonce&&(n??=o.nonce||void 0),o.content&&(n??=o.content||void 0)),"csp-nonce"===e&&(n??=r.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),n}("csp-nonce",t))&&tK.set(t,n),n}let tX=b().createContext({register:()=>{}});tX.displayName="PressResponderContext";let tQ=b().useInsertionEffect??ee;function tJ(e){let t=(0,g.useRef)(null);return tQ(()=>{t.current=e},[e]),(0,g.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function t0(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)((t,n,r,a)=>{let i=a?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:a}),t.addEventListener(n,i,a)},[]),n=(0,g.useCallback)((t,n,r,a)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,a),e.current.delete(r)},[]),r=(0,g.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,g.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var t1=n(803),t2=n.n(t1);class t3{#e;constructor(e,t,n,r){this.#e=!0;let a=r?.target??n.currentTarget;const i=a?.getBoundingClientRect();let o,s=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),i&&(null!=l&&null!=u?(o=l-i.left,s=u-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=o,this.y=s,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let t5=Symbol("linkClicked"),t4="react-aria-pressable-style",t6="data-react-aria-pressable";function t8(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:i,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,g.useContext)(tX);if(t){let{register:n,ref:r,...a}=t;e=eg(a,e),n()}return tW(t,e.ref),e}(e),[m,h]=(0,g.useState)(!1),y=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:b}=t0(),x=(0,g.useCallback)((e,t)=>{let a=y.current;if(s||a.didFirePressStart)return!1;let i=!0;if(a.isTriggeringEvent=!0,r){let n=new t3("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),i},[s,r,n]),w=(0,g.useCallback)((e,r,i=!0)=>{let o=y.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(a){let t=new t3("pressend",r,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&i&&!s){let n=new t3("press",r,e);t(n),l&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,l},[s,a,n,t]),j=tJ(w),S=tJ((0,g.useCallback)((e,t)=>{let n=y.current;if(s)return!1;if(i){n.isTriggeringEvent=!0;let r=new t3("pressup",t,e);return i(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,i])),E=(0,g.useCallback)(e=>{let t=y.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&w(ne(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||tY(t.target),t.disposables))n();t.disposables=[]}},[d,b,w]),O=tJ(E);(0,g.useEffect)(()=>{s&&y.current.isPressed&&O({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let k=(0,g.useCallback)(e=>{c&&E(e)},[c,E]),A=(0,g.useCallback)(e=>{s||o?.(e)},[s,o]),D=(0,g.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent("click",e);e8(n,t),o(e6(n))}},[s,o]),P=(0,g.useMemo)(()=>{let e=y.current,t={onKeyDown(t){if(t7(t.nativeEvent,t.currentTarget)&&eY(t.currentTarget,eK(t))){nt(eK(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=x(t,"keyboard"));let a=t.currentTarget;v(eU(t.currentTarget),"keyup",J(t=>{t7(t,a)&&!t.repeat&&eY(a,eK(t))&&e.target&&S(ne(e.target,t),"keyboard")},n),!0),r&&t.stopPropagation(),t.metaKey&&tr()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||eY(t.currentTarget,eK(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!tf.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||td(t.nativeEvent))){let e=x(t,"virtual"),r=S(t,"virtual"),a=j(t,"virtual");A(t),n=e&&r&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",a=S(ne(t.currentTarget,t),r),i=j(ne(t.currentTarget,t),r,!0);n=a&&i,e.isOverTarget=!1,A(t),O(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&t7(t,e.target)){nt(eK(t),t.key)&&t.preventDefault();let n=eK(t),r=eY(e.target,n);j(ne(e.target,t),"keyboard",r),r&&D(t,e.target),b(),"Enter"!==t.key&&t9(e.target)&&eY(e.target,n)&&!t[t5]&&(t[t5]=!0,tf(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",n))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!eY(t.currentTarget,eK(t)))return;if(a=t.nativeEvent,!tu()&&0===a.width&&0===a.height||tu()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(to()&&ts()){if("default"===tH){let t=eU(e);tG=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tH="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";tq.set(e,e.style[t]),e.style[t]="none"}}(e.target),i=x(t,e.pointerType);let a=eK(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),v(eU(t.currentTarget),"pointerup",n,!1),v(eU(t.currentTarget),"pointercancel",r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(eY(t.currentTarget,eK(t))&&0===t.button){if(u){let n=function(e){for(var t;e&&!e3(e,{skipVisibilityCheck:!0});)e=e.parentElement;let n=((e=document)=>e.activeElement)(e$(e).document);if(!n||n===e)return;let r=e?.getRootNode(),a=null!=r&&eH(t=r)&&11===t.nodeType&&"host"in t?r:e$(e),i=t=>t===e||null!=t&&eY(e,t),o=e=>e===n||null!=n&&null!=e&&eY(n,e);e7=!0;let s=!1,l=e=>{(o(eK(e))||s)&&e.stopImmediatePropagation()},u=t=>{(o(eK(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,ez(n),f()))},c=e=>{(i(eK(e))||s)&&e.stopImmediatePropagation()},d=e=>{(i(eK(e))||s)&&(e.stopImmediatePropagation(),s||(s=!0,ez(n),f()))};a.addEventListener("blur",l,!0),a.addEventListener("focusout",u,!0),a.addEventListener("focusin",d,!0),a.addEventListener("focus",c,!0);let f=()=>{cancelAnimationFrame(p),a.removeEventListener("blur",l,!0),a.removeEventListener("focusout",u,!0),a.removeEventListener("focusin",d,!0),a.removeEventListener("focus",c,!0),e7=!1,s=!1},p=requestAnimationFrame(f);return f}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{eY(t.currentTarget,eK(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||S(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,x(ne(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,j(ne(e.target,t),e.pointerType,!1),k(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(eY(e.target,eK(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?O(t):(ez(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else O(t);e.isOverTarget=!1}},r=e=>{O(e)};t.onDragStart=e=>{eY(e.currentTarget,eK(e))&&O(e)}}return t},[v,s,u,b,d,k,x,A,D]);return(0,g.useEffect)(()=>{if(!f)return;let e=eU(f.current);if(!e||!e.head||e.getElementById(t4))return;let t=e.createElement("style");t.id=t4;let n=tZ(e);n&&(t.nonce=n),t.textContent=`
|
|
1
|
+
(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["6207"],{6871(e,t){var n,r;function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n=this,r=function(){return function(e,t,n){var r=t.prototype,i=function(e){var t=e.date,i=e.utc,o={};if(!(null===t||a(t,Date)||a(t,Array)||r.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var s=i?n.utc():n();Object.keys(t).forEach(function(e){var n;o["date"===(n=r.$utils().p(e))?"day":n]=t[e]});var l=o.day||(o.year||o.month>=0?1:s.date()),u=o.year||s.year(),c=o.month>=0?o.month:o.year||o.day?0:s.month(),d=o.hour||0,f=o.minute||0,p=o.second||0,m=o.millisecond||0;return i?new Date(Date.UTC(u,c,l,d,f,p,m)):new Date(u,c,l,d,f,p,m)}return t},o=r.parse;r.parse=function(e){e.date=i.bind(this)(e),o.bind(this)(e)};var s=r.set,l=r.add,u=r.subtract,c=function(e,t,n,r){void 0===r&&(r=1);var a=Object.keys(t),i=this;return a.forEach(function(n){i=e.bind(i)(t[n]*r,n)}),i};r.set=function(e,t){return t=void 0===t?e:t,"Object"===e.constructor.name?c.bind(this)(function(e,t){return s.bind(this)(t,e)},t,e):s.bind(this)(e,t)},r.add=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t):l.bind(this)(e,t)},r.subtract=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t,-1):u.bind(this)(e,t)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_objectSupport=r()},2147(e,t){var n,r;n=this,r=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,i){var o=a.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},o.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],o=60*a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(r)))return this;var o=16>=Math.abs(r)?60*r:r;if(0===o)return this.utc(a);var s=this.clone();if(a)return s.$offset=o,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l,s};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),a=i(e).local();return f.call(r,a,t,n)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="u">typeof globalThis?globalThis:n||self).dayjs_plugin_utc=r()},904(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,a=t.call(e,"constructor"),i=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,a,i,o,s,l,u=arguments[0]||{},c=1,d=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),(void 0===u?"undefined":(t=u)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});c<d;c++)if(null!=(n=arguments[c]))for(a in n)i=u[a],u!==(o=n[a])&&(f&&o&&(r(o)||(s=Array.isArray(o)))?(s?(s=!1,l=i&&Array.isArray(i)?i:[]):l=i&&r(i)?i:{},u[a]=e(f,l,o)):void 0!==o&&(u[a]=o));return u}},6768(e,t,n){!function(t){"use strict";var r=n(9375);function a(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var i=e.exports={generate:a(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=a(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var a=i.generate(e,n);t(this).css("background-image",a.toDataUrl())})}))}("u">typeof jQuery?jQuery:null)},8505(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,a=e.g,i=e.b,o=Math.max(r/=255,a/=255,i/=255),s=Math.min(r,a,i),l=(o+s)/2;if(o===s)t=n=0;else{var u=o-s;switch(n=l>.5?u/(2-o-s):u/(o+s),o){case r:t=(a-i)/u+6*(a<i);break;case a:t=(i-r)/u+2;break;case i:t=(r-a)/u+4}t/=6}return{h:t,s:n,l:l}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,a,i=e.h,o=e.s,s=e.l;if(0===o)n=r=a=s;else{var l=s<.5?s*(1+o):s+o-s*o,u=2*s-l;n=t(u,l,i+1/3),r=t(u,l,i),a=t(u,l,i-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*a)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},9375(e,t,n){"use strict";var r=n(904),a=n(8505),i=n(2088),o=n(959),s={baseColor:"#933c3c"},l=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function c(e,t,n){return parseInt(e.substr(t,n||1),16)}function d(e,t,n,r,a){return(parseFloat(e)-t)*(a-r)/(n-t)+r}function f(e){return e%2==0?"#ddd":"#222"}function p(e){return d(e,0,15,.02,.15)}var m=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||i(e),this.svg=new o,this.generateBackground(),this.generatePattern(),this};function h(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function y(e){return[0,0,e,e,0,e,0,0].join(",")}function v(e,t,n,r,a){var i=y(r),o=p(a[0]),s=f(a[0]),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:s};e.polyline(i,l).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(i,l).transform({translate:[t+r,n+2*r],scale:[1,-1]}),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o=p(a[1]),fill:s=f(a[1])},e.polyline(i,l).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(i,l).transform({translate:[t+r,n],scale:[1,1]})}function g(e,t,n,r,a){var i=p(a),o=f(a),s=y(r),l={stroke:u,"stroke-opacity":.02,"fill-opacity":i,fill:o};e.polyline(s,l).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,l).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,l).transform({translate:[t+2*r,n+r],scale:[-1,1]})}m.prototype.toSvg=function(){return this.svg.toString()},m.prototype.toString=function(){return this.toSvg()},m.prototype.toBase64=function(){var e=this.toSvg();return"u">typeof window&&"function"==typeof window.btoa?window.btoa(e):new Buffer(e).toString("base64")},m.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},m.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},m.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=a.hex2rgb(this.opts.color):(t=d(c(this.hash,14,3),0,4095,0,359),r=c(this.hash,17),(e=a.rgb2hsl(a.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=a.hsl2rgb(e)),this.color=a.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:a.rgb2rgbString(n)})},m.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>l.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=l[c(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},m.prototype.geoHexagons=function(){var e,t,n,r,a,i,o,s,l,m=d(c(this.hash,0),0,15,8,60),h=m*Math.sqrt(3),y=2*m,v=(s=m/2,[0,l=Math.sin(60*Math.PI/180)*m,s,0,s+m,0,2*m,l,s+m,2*l,s,2*l,0,l].join(","));for(this.svg.setWidth(3*y+3*m),this.svg.setHeight(6*h),t=0,o=0;o<6;o++)for(i=0;i<6;i++)a=c(this.hash,t),e=i%2==0?o*h:o*h+h/2,n=p(a),r={fill:f(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(v,r).transform({translate:[i*m*1.5-y/2,e-h/2]}),0===i&&this.svg.polyline(v,r).transform({translate:[6*m*1.5-y/2,e-h/2]}),0===o&&(e=i%2==0?6*h:6*h+h/2,this.svg.polyline(v,r).transform({translate:[i*m*1.5-y/2,e-h/2]})),0===i&&0===o&&this.svg.polyline(v,r).transform({translate:[6*m*1.5-y/2,5*h+h/2]}),t++},m.prototype.geoSineWaves=function(){var e,t,n,r,a,i,o,s=Math.floor(d(c(this.hash,0),0,15,100,400)),l=Math.floor(d(c(this.hash,1),0,15,30,100)),u=Math.floor(d(c(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=p(i=c(this.hash,t)),e=f(i),o=s/4*.7,a={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+l+" C "+o+" 0, "+(s/2-o)+" 0, "+s/2+" "+l+" S "+(s-o)+" "+2*l+", "+s+" "+l+" S "+(1.5*s-o)+" 0, "+1.5*s+", "+l,this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l]}),this.svg.path(r,a).transform({translate:[-s/4,u*t-1.5*l+36*u]})},m.prototype.geoChevrons=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,30,80),l=d(c(this.hash,0),0,15,30,80),m=(e=.66*l,[[0,0,s/2,l-e,s/2,l,0,e,0,0],[s/2,l-e,s,0,s,e,s/2,l,s/2,l-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*l*.66),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:f(a),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[i*s,o*l*.66-l/2]}).polyline(m).end(),0===o&&this.svg.group(r).transform({translate:[i*s,6*l*.66-l/2]}).polyline(m).end(),t+=1},m.prototype.geoPlusSigns=function(){var e,t,n,r,a,i,o,s,l=d(c(this.hash,0),0,15,10,25),m=3*l,y=h(l);for(this.svg.setWidth(12*l),this.svg.setHeight(12*l),n=0,s=0;s<6;s++)for(o=0;o<6;o++)r=p(i=c(this.hash,n)),t=f(i),e=+(s%2!=0),a={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(a).transform({translate:[o*m-o*l+e*l-l,s*m-s*l-m/2]}).rect(y).end(),0===o&&this.svg.group(a).transform({translate:[4*m-o*l+e*l-l,s*m-s*l-m/2]}).rect(y).end(),0===s&&this.svg.group(a).transform({translate:[o*m-o*l+e*l-l,4*m-s*l-m/2]}).rect(y).end(),0===o&&0===s&&this.svg.group(a).transform({translate:[4*m-o*l+e*l-l,4*m-s*l-m/2]}).rect(y).end(),n++},m.prototype.geoXes=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,25),l=h(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),e=i%2==0?o*u-.5*u:o*u-.5*u+u/4,r={fill:f(a),opacity:n},this.svg.group(r).transform({translate:[i*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&(e=i%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[i*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end()),5===o&&this.svg.group(r).transform({translate:[i*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===i&&0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),t++},m.prototype.geoOverlappingCircles=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:f(r),opacity:t},this.svg.circle(a*o,i*o,o,n),0===a&&this.svg.circle(6*o,i*o,o,n),0===i&&this.svg.circle(a*o,6*o,o,n),0===a&&0===i&&this.svg.circle(6*o,6*o,o,n),e++},m.prototype.geoOctogons=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,60),l=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,o=0;o<6;o++)for(i=0;i<6;i++)r=p(a=c(this.hash,n)),t=f(a),this.svg.polyline(l,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[i*s,o*s]}),n+=1},m.prototype.geoSquares=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),t=0,i=0;i<6;i++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=f(r),this.svg.rect(a*o,i*o,o,o,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},m.prototype.geoConcentricCircles=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60),s=o/5;for(this.svg.setWidth((o+s)*6),this.svg.setHeight((o+s)*6),t=0,i=0;i<6;i++)for(a=0;a<6;a++)n=p(r=c(this.hash,t)),e=f(r),this.svg.circle(a*o+a*s+(o+s)/2,i*o+i*s+(o+s)/2,o/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=p(r=c(this.hash,39-t)),e=f(r),this.svg.circle(a*o+a*s+(o+s)/2,i*o+i*s+(o+s)/2,o/4,{fill:e,"fill-opacity":n}),t+=1},m.prototype.geoOverlappingRings=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,10,60),s=o/4;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(a*o,i*o,o-s/2,n),0===a&&this.svg.circle(6*o,i*o,o-s/2,n),0===i&&this.svg.circle(a*o,6*o,o-s/2,n),0===a&&0===i&&this.svg.circle(6*o,6*o,o-s/2,n),e+=1},m.prototype.geoTriangles=function(){var e,t,n,r,a,i,o,s,l=d(c(this.hash,0),0,15,15,80),m=l/2*Math.sqrt(3),h=[s=l/2,0,l,m,0,m,s,0].join(",");for(this.svg.setWidth(3*l),this.svg.setHeight(6*m),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=p(a=c(this.hash,e)),r={fill:f(a),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=o%2==0?180*(i%2==0):180*(i%2!=0),this.svg.polyline(h,r).transform({translate:[i*l*.5-l/2,m*o],rotate:[n,l/2,m/2]}),0===i&&this.svg.polyline(h,r).transform({translate:[6*l*.5-l/2,m*o],rotate:[n,l/2,m/2]}),e+=1},m.prototype.geoDiamonds=function(){var e,t,n,r,a,i,o,s=d(c(this.hash,0),0,15,10,50),l=d(c(this.hash,1),0,15,10,50),m=[s/2,0,s,l/2,s/2,l,0,l/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*l),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=p(a=c(this.hash,t)),r={fill:f(a),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=o%2==0?0:s/2,this.svg.polyline(m,r).transform({translate:[i*s-s/2+e,l/2*o-l/2]}),0===i&&this.svg.polyline(m,r).transform({translate:[6*s-s/2+e,l/2*o-l/2]}),0===o&&this.svg.polyline(m,r).transform({translate:[i*s-s/2+e,l/2*6-l/2]}),0===i&&0===o&&this.svg.polyline(m,r).transform({translate:[6*s-s/2+e,l/2*6-l/2]}),t+=1},m.prototype.geoNestedSquares=function(){var e,t,n,r,a,i,o=d(c(this.hash,0),0,15,4,12),s=7*o;for(this.svg.setWidth((s+o)*6+6*o),this.svg.setHeight((s+o)*6+6*o),e=0,i=0;i<6;i++)for(a=0;a<6;a++)t=p(r=c(this.hash,e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":o+"px"},this.svg.rect(a*s+a*o*2+o/2,i*s+i*o*2+o/2,s,s,n),t=p(r=c(this.hash,39-e)),n={fill:"none",stroke:f(r),opacity:t,"stroke-width":o+"px"},this.svg.rect(a*s+a*o*2+o/2+2*o,i*s+i*o*2+o/2+2*o,3*o,3*o,n),e+=1},m.prototype.geoMosaicSquares=function(){var e,t,n,r=d(c(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?g(this.svg,t*r*2,n*r*2,r,c(this.hash,e)):v(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):n%2==0?v(this.svg,t*r*2,n*r*2,r,[c(this.hash,e),c(this.hash,e+1)]):g(this.svg,t*r*2,n*r*2,r,c(this.hash,e)),e+=1},m.prototype.geoPlaid=function(){var e,t,n,r,a,i,o=0,s=0;for(t=0;t<36;)o+=c(this.hash,t)+5,n=p(i=c(this.hash,t+1)),e=f(i),r=i+5,this.svg.rect(0,o,"100%",r,{opacity:n,fill:e}),o+=r,t+=2;for(t=0;t<36;)s+=c(this.hash,t)+5,n=p(i=c(this.hash,t+1)),e=f(i),a=i+5,this.svg.rect(s,0,a,"100%",{opacity:n,fill:e}),s+=a,t+=2;this.svg.setWidth(s),this.svg.setHeight(o)},m.prototype.geoTessellation=function(){var e,t,n,r,a=d(c(this.hash,0),0,15,5,40),i=a*Math.sqrt(3),o=2*a,s=a/2*Math.sqrt(3),l=[0,0,s,a/2,0,a,0,0].join(","),m=3*a+2*s,h=2*i+2*a;for(this.svg.setWidth(m),this.svg.setHeight(h),e=0;e<20;e++)switch(t=p(r=c(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:f(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-a/2,-a/2,a,a,n),this.svg.rect(m-a/2,-a/2,a,a,n),this.svg.rect(-a/2,h-a/2,a,a,n),this.svg.rect(m-a/2,h-a/2,a,a,n);break;case 1:this.svg.rect(o/2+s,i/2,a,a,n);break;case 2:this.svg.rect(-a/2,h/2-a/2,a,a,n),this.svg.rect(m-a/2,h/2-a/2,a,a,n);break;case 3:this.svg.rect(o/2+s,1.5*i+a,a,a,n);break;case 4:this.svg.polyline(l,n).transform({translate:[a/2,-a/2],rotate:[0,a/2,s/2]}),this.svg.polyline(l,n).transform({translate:[a/2,h- -a/2],rotate:[0,a/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(l,n).transform({translate:[m-a/2,-a/2],rotate:[0,a/2,s/2],scale:[-1,1]}),this.svg.polyline(l,n).transform({translate:[m-a/2,h+a/2],rotate:[0,a/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(l,n).transform({translate:[m/2+a/2,i/2]});break;case 7:this.svg.polyline(l,n).transform({translate:[m-m/2-a/2,i/2],scale:[-1,1]});break;case 8:this.svg.polyline(l,n).transform({translate:[m/2+a/2,h-i/2],scale:[1,-1]});break;case 9:this.svg.polyline(l,n).transform({translate:[m-m/2-a/2,h-i/2],scale:[-1,-1]});break;case 10:this.svg.polyline(l,n).transform({translate:[a/2,h/2-a/2]});break;case 11:this.svg.polyline(l,n).transform({translate:[m-a/2,h/2-a/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,a/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-m+a/2,a/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,a,a,n).transform({translate:[a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 15:this.svg.rect(0,0,a,a,n).transform({scale:[-1,1],translate:[-m+a/2,h/2-a/2-a],rotate:[30,0,a]});break;case 16:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 17:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-m+a/2,-h+h/2-a/2-a],rotate:[30,0,a]});break;case 18:this.svg.rect(0,0,a,a,n).transform({scale:[1,-1],translate:[a/2,-h+a/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,a,a,n).transform({scale:[-1,-1],translate:[-m+a/2,-h+a/2],rotate:[-30,0,0]})}}},2088(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,a=0xc3d2e1f0,i=new Uint32Array(80),o=0,s=24,l=0;function u(){for(var s,l,u=16;u<80;u++){var c=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=c<<1|c>>>31}var d=e,f=t,p=n,m=r,h=a;for(u=0;u<80;u++){u<20?(s=m^f&(p^m),l=0x5a827999):u<40?(s=f^p^m,l=0x6ed9eba1):u<60?(s=f&p|m&(f|p),l=0x8f1bbcdc):(s=f^p^m,l=0xca62c1d6);var y=(d<<5|d>>>27)+s+h+l+(0|i[u]);h=m,m=p,p=f<<30|f>>>2,f=d,d=y}for(u=0,e=e+d|0,t=t+f|0,n=n+p|0,r=r+m|0,a=a+h|0,o=0;u<16;u++)i[u]=0}function c(e){i[o]|=(255&e)<<s,s?s-=8:(o++,s=24),16===o&&u()}function d(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;l+=8*t;for(var n=0;n<t;n++)c(e.charCodeAt(n));return}var r=e.length;l+=8*r;for(var a=0;a<r;a++)c(e[a])},digest:function(){c(128),(o>14||14===o&&s<24)&&u(),o=14,s=24,c(0),c(0),c(l>0xffffffffff?l/0x10000000000:0),c(l>0xffffffff?l/0x100000000:0);for(var i=24;i>=0;i-=8)c(l>>i);return d(e)+d(t)+d(n)+d(r)+d(a)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},959(e,t,n){"use strict";var r=n(904),a=n(52);function i(){return this.width=100,this.height=100,this.svg=a("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},i.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},i.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},i.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},i.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(e,t,n,i,o){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(o))}),this;var l=a("rect");return this.currentContext().appendChild(l),this.setAttributes(l,r({x:e,y:t,width:n,height:i},o)),this},i.prototype.circle=function(e,t,n,i){var o=a("circle");return this.currentContext().appendChild(o),this.setAttributes(o,r({cx:e,cy:t,r:n},i)),this},i.prototype.path=function(e,t){var n=a("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},i.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var i=a("polyline");return this.currentContext().appendChild(i),this.setAttributes(i,r({points:e},t)),this},i.prototype.group=function(e){var t=a("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},52(e){"use strict";var t=e.exports=function(e){return(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},6503(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var i=Symbol("SemVer ANY");e.exports=function(){var e,t;function n(e,t){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");if(t=o(t),a(e,n))if(!!t.loose===e.loose)return e;else e=e.value;d("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,d("comp",this)}return e=[{key:"parse",value:function(e){var t=this.options.loose?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new f(n[2],this.options.loose):this.semver=i}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(d("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new f(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(e,t){if(!a(e,n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}],t=[{key:"ANY",get:function(){return i}}],e&&r(n.prototype,e),t&&r(n,t),n}();var o=n(6480),s=n(4299),l=s.safeRe,u=s.t,c=n(570),d=n(7139),f=n(7583),p=n(7490)},7490(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var i=/\s+/g;e.exports=function(){var e;function t(e,n){var r=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=s(n),a(e,t))if(!!n.loose===e.loose&&!!n.includePrerelease===e.includePrerelease)return e;else return new t(e.raw,n);if(a(e,l))return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(i," "),this.set=this.raw.split("||").map(function(e){return r.parseRange(e.trim())}).filter(function(e){return e.length}),!this.set.length)throw TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){var o=this.set[0];if(this.set=this.set.filter(function(e){return!j(e[0])}),0===this.set.length)this.set=[o];else if(this.set.length>1){var u=!0,c=!1,d=void 0;try{for(var f,p=this.set[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value;if(1===m.length&&S(m[0])){this.set=[m];break}}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}}this.formatted=void 0}return e=[{key:"range",get:function(){if(void 0===this.formatted){this.formatted="";for(var e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");for(var t=this.set[e],n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}},{key:"format",value:function(){return this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t,n=this;e=e.replace(w,"");var a=((this.options.includePrerelease&&b)|(this.options.loose&&x))+":"+e,i=o.get(a);if(i)return i;var s=this.options.loose,c=s?f[m.HYPHENRANGELOOSE]:f[m.HYPHENRANGE];u("hyphen replace",e=e.replace(c,I(this.options.includePrerelease))),u("comparator trim",e=e.replace(f[m.COMPARATORTRIM],h)),u("tilde trim",e=e.replace(f[m.TILDETRIM],y)),u("caret trim",e=e.replace(f[m.CARETTRIM],v));var d=e.split(" ").map(function(e){return O(e,n.options)}).join(" ").split(/\s+/).map(function(e){return R(e,n.options)});s&&(d=d.filter(function(e){return u("loose invalid filter",e,n.options),!!e.match(f[m.COMPARATORLOOSE])})),u("range list",d);var p=new Map,g=d.map(function(e){return new l(e,n.options)}),S=!0,E=!1,k=void 0;try{for(var A,D=g[Symbol.iterator]();!(S=(A=D.next()).done);S=!0){var P=A.value;if(j(P))return[P];p.set(P.value,P)}}catch(e){E=!0,k=e}finally{try{S||null==D.return||D.return()}finally{if(E)throw k}}p.size>1&&p.has("")&&p.delete("");var C=function(e){if(Array.isArray(e))return r(e)}(t=p.values())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return o.set(a,C),C}},{key:"intersects",value:function(e,n){if(!a(e,t))throw TypeError("a Range is required");return this.set.some(function(t){return E(t,n)&&e.set.some(function(e){return E(e,n)&&t.every(function(t){return e.every(function(e){return t.intersects(e,n)})})})})}},{key:"test",value:function(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(_(this.set[t],e,this.options))return!0;return!1}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}();var o=new(n(3235)),s=n(6480),l=n(6503),u=n(7139),c=n(7583),d=n(4299),f=d.safeRe,p=d.src,m=d.t,h=d.comparatorTrimReplace,y=d.tildeTrimReplace,v=d.caretTrimReplace,g=n(9345),b=g.FLAG_INCLUDE_PRERELEASE,x=g.FLAG_LOOSE,w=RegExp(p[m.BUILD],"g"),j=function(e){return"<0.0.0-0"===e.value},S=function(e){return""===e.value},E=function(e,t){for(var n=!0,r=e.slice(),a=r.pop();n&&r.length;)n=r.every(function(e){return a.intersects(e,t)}),a=r.pop();return n},O=function(e,t){return u("comp",e=e.replace(f[m.BUILD],""),t),u("caret",e=P(e,t)),u("tildes",e=A(e,t)),u("xrange",e=T(e,t)),u("stars",e=M(e,t)),e},k=function(e){return!e||"x"===e.toLowerCase()||"*"===e},A=function(e,t){return e.trim().split(/\s+/).map(function(e){return D(e,t)}).join(" ")},D=function(e,t){var n=t.loose?f[m.TILDELOOSE]:f[m.TILDE],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("tilde",e,t,n,a,i,o),k(n)?s="":k(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):k(i)?s=">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):o?(u("replaceTilde pr",o),s=">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0")):s=">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"),u("tilde return",s),s})},P=function(e,t){return e.trim().split(/\s+/).map(function(e){return C(e,t)}).join(" ")},C=function(e,t){u("caret",e,t);var n=t.loose?f[m.CARETLOOSE]:f[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,function(t,n,a,i,o){var s;return u("caret",e,t,n,a,i,o),k(n)?s="":k(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):k(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):o?(u("replaceCaret pr",o),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(o," <").concat(+n+1,".0.0-0")):(u("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),u("caret return",s),s})},T=function(e,t){return u("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return N(e,t)}).join(" ")},N=function(e,t){e=e.trim();var n=t.loose?f[m.XRANGELOOSE]:f[m.XRANGE];return e.replace(n,function(n,r,a,i,o,s){if(u("xRange",e,n,r,a,i,o,s),l=a,c=i,d=o,k(l)&&!k(c)||k(c)&&d&&!k(d))return e;var l,c,d,f=k(a),p=f||k(i),m=p||k(o);return"="===r&&m&&(r=""),s=t.includePrerelease?"-0":"",f?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(p&&(i=0),o=0,">"===r?(r=">=",p?(a=+a+1,i=0):i=+i+1,o=0):"<="===r&&(r="<",p?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(o).concat(s)):p?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):m&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),u("xRange return",n),n})},M=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[m.STAR],"")},R=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?m.GTE0PRE:m.GTE0],"")},I=function(e){return function(t,n,r,a,i,o,s,l,u,c,d,f){return n=k(r)?"":k(a)?">=".concat(r,".0.0").concat(e?"-0":""):k(i)?">=".concat(r,".").concat(a,".0").concat(e?"-0":""):o?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=k(u)?"":k(c)?"<".concat(+u+1,".0.0-0"):k(d)?"<".concat(u,".").concat(+c+1,".0-0"):f?"<=".concat(u,".").concat(c,".").concat(d,"-").concat(f):e?"<".concat(u,".").concat(c,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()}},_=function(e,t,n){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(var a=0;a<e.length;a++)if(u(e[a].semver),e[a].semver!==l.ANY&&e[a].semver.prerelease.length>0){var i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},7583(e,t,n){"use strict";function r(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=n(7139),i=n(9345),o=i.MAX_LENGTH,s=i.MAX_SAFE_INTEGER,l=n(4299),u=l.safeRe,c=l.t,d=n(6480),f=n(6640).compareIdentifiers,p=function(e,t){var n=t.split(".");if(n.length>e.length)return!1;for(var r=0;r<n.length;r++)if(0!==f(e[r],n[r]))return!1;return!0};e.exports=function(){var e;function t(e,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(n=d(n),r(e,t))if(!!n.loose===e.loose&&!!n.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError('Invalid version. Must be a string. Got type "'.concat(void 0===e?"undefined":(i=e)&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i,'".'));if(e.length>o)throw TypeError("version is longer than ".concat(o," characters"));a("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var i,l=e.trim().match(n.loose?u[c.LOOSE]:u[c.FULL]);if(!l)throw TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<s)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}return e=[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(e){if(a("SemVer.compare",this.version,this.options,e),!r(e,t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}},{key:"compareMain",value:function(e){return(r(e,t)||(e=new t(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}},{key:"comparePre",value:function(e){if(r(e,t)||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var n=0;do{var i=this.prerelease[n],o=e.prerelease[n];if(a("prerelease compare",n,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}while(++n)}},{key:"compareBuild",value:function(e){r(e,t)||(e=new t(e,this.options));var n=0;do{var i=this.build[n],o=e.build[n];if(a("build compare",n,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return -1;else if(i===o)continue;else return f(i,o)}while(++n)}},{key:"inc",value:function(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){var r="-".concat(t).match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!r||r[1]!==t)throw Error("invalid identifier: ".concat(t))}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":var a=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[a];else{for(var i=this.prerelease.length;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){var o=[t,a];!1===n&&(o=[t]),p(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=o):this.prerelease=o}break;default:throw Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},5995(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},570(e,t,n){"use strict";function r(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=n(6534),i=n(9962),o=n(4907),s=n(9928),l=n(6228),u=n(4401);e.exports=function(e,t,n,c){switch(t){case"===":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e===n;case"!==":return(void 0===e?"undefined":r(e))==="object"&&(e=e.version),(void 0===n?"undefined":r(n))==="object"&&(n=n.version),e!==n;case"":case"=":case"==":return a(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw TypeError("Invalid operator: ".concat(t))}}},5877(e,t,n){"use strict";var r=n(7583),a=n(5749),i=n(4299),o=i.safeRe,s=i.t;e.exports=function(e,t){if(i=e,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](i):i instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i,l,u=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&l.index+l[0].length===n.index+n[0].length||(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;var c=n[2],d=n[3]||"0",f=n[4]||"0",p=t.includePrerelease&&n[5]?"-".concat(n[5]):"",m=t.includePrerelease&&n[6]?"+".concat(n[6]):"";return a("".concat(c,".").concat(d,".").concat(f).concat(p).concat(m),t)}},2740(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){var a=new r(e,n),i=new r(t,n);return a.compare(i)||a.compareBuild(i)}},9478(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t){return r(e,t,!0)}},2057(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},6003(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,null,!0),a=r(t,null,!0),i=n.compare(a);if(0===i)return null;var o=i>0,s=o?n:a,l=o?a:n,u=!!s.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}var c=u?"pre":"";return n.major!==a.major?c+"major":n.minor!==a.minor?c+"minor":n.patch!==a.patch?c+"patch":"prerelease"}},6534(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0===r(e,t,n)}},4907(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>0}},9928(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(e,t,n)>=0}},4006(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t,n,a,i){"string"==typeof n&&(i=a,a=n,n=void 0);try{return new r((null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)?e.version:e,n).inc(t,a,i).version}catch(e){return null}}},6228(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>r(e,t,n)}},4401(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0>=r(e,t,n)}},9211(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).major}},2895(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).minor}},9962(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return 0!==r(e,t,n)}},5749(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},6008(e,t,n){"use strict";var r=n(7583);e.exports=function(e,t){return new r(e,t).patch}},510(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},6153(e,t,n){"use strict";var r=n(2057);e.exports=function(e,t,n){return r(t,e,n)}},9268(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(n,e,t)})}},5775(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},4372(e,t,n){"use strict";var r=n(2740);e.exports=function(e,t){return e.sort(function(e,n){return r(e,n,t)})}},7406(e,t,n){"use strict";var r=n(5749),a=n(9345),i=n(7583),o=function(e,t){return r((null!=i&&"u">typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](e):e instanceof i)?e.version:e,t)},s=function(e,t){if(l(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()},l=function(e){return e.startsWith("pre")};e.exports=function(e,t,n){if(!a.RELEASE_TYPES.includes(t))return null;var r=o(e,n);return r&&s(r,t)}},3440(e,t,n){"use strict";var r=n(5749);e.exports=function(e,t){var n=r(e,t);return n?n.version:null}},8164(e,t,n){"use strict";var r=n(4299),a=n(9345),i=n(7583),o=n(6640);e.exports={parse:n(5749),valid:n(3440),clean:n(5995),inc:n(4006),diff:n(6003),major:n(9211),minor:n(2895),patch:n(6008),prerelease:n(510),compare:n(2057),rcompare:n(6153),compareLoose:n(9478),compareBuild:n(2740),sort:n(4372),rsort:n(9268),gt:n(4907),lt:n(6228),eq:n(6534),neq:n(9962),gte:n(9928),lte:n(4401),cmp:n(570),coerce:n(5877),truncate:n(7406),Comparator:n(6503),Range:n(7490),satisfies:n(5775),toComparators:n(7690),maxSatisfying:n(5901),minSatisfying:n(6975),minVersion:n(8158),validRange:n(3429),outside:n(3452),gtr:n(2560),ltr:n(9801),intersects:n(453),simplifyRange:n(1784),subset:n(7885),SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},9345(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7139(e){"use strict";var t,n;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports=("u"<typeof process?"undefined":(t=process)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(n=console).error.apply(n,["SEMVER"].concat(function(e){if(Array.isArray(e))return r(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}:function(){}},6640(e){"use strict";var t=/^[0-9]+$/,n=function(e,n){if("number"==typeof e&&"number"==typeof n)return e===n?0:e<n?-1:1;var r=t.test(e),a=t.test(n);return r&&a&&(e*=1,n*=1),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:function(e,t){return n(t,e)}}},3235(e){"use strict";e.exports=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.max=1e3,this.map=new Map}return e=[{key:"get",value:function(e){var t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}},{key:"delete",value:function(e){return this.map.delete(e)}},{key:"set",value:function(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){var n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}()},6480(e){"use strict";var t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=function(e){return e?(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"?t:e:n}},4299(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(9345),i=a.MAX_SAFE_COMPONENT_LENGTH,o=a.MAX_SAFE_BUILD_LENGTH,s=a.MAX_LENGTH,l=n(7139),u=(t=e.exports={}).re=[],c=t.safeRe=[],d=t.src=[],f=t.safeSrc=[],p=t.t={},m=0,h="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[h,o]],v=function(e){var t=!0,n=!1,a=void 0;try{for(var i,o=y[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];e=e.split("".concat(u,"*")).join("".concat(u,"{0,").concat(c,"}")).split("".concat(u,"+")).join("".concat(u,"{1,").concat(c,"}"))}}catch(e){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}return e},g=function(e,t,n){var r=v(t),a=m++;l(e,a,t),p[e]=a,d[a]=t,f[a]=r,u[a]=new RegExp(t,n?"g":void 0),c[a]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(h,"*")),g("MAINVERSION","(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")")),g("MAINVERSIONLOOSE","(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASEIDENTIFIER","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIER],")")),g("PRERELEASEIDENTIFIERLOOSE","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIERLOOSE],")")),g("PRERELEASE","(?:-(".concat(d[p.PRERELEASEIDENTIFIER],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIER],")*))")),g("PRERELEASELOOSE","(?:-?(".concat(d[p.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIERLOOSE],")*))")),g("BUILDIDENTIFIER","".concat(h,"+")),g("BUILD","(?:\\+(".concat(d[p.BUILDIDENTIFIER],"(?:\\.").concat(d[p.BUILDIDENTIFIER],")*))")),g("FULLPLAIN","v?".concat(d[p.MAINVERSION]).concat(d[p.PRERELEASE],"?").concat(d[p.BUILD],"?")),g("FULL","^".concat(d[p.FULLPLAIN],"$")),g("LOOSEPLAIN","[v=\\s]*".concat(d[p.MAINVERSIONLOOSE]).concat(d[p.PRERELEASELOOSE],"?").concat(d[p.BUILD],"?")),g("LOOSE","^".concat(d[p.LOOSEPLAIN],"$")),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE","".concat(d[p.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),g("XRANGEIDENTIFIER","".concat(d[p.NUMERICIDENTIFIER],"|x|X|\\*")),g("XRANGEPLAIN","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:".concat(d[p.PRERELEASE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGEPLAINLOOSE","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(d[p.PRERELEASELOOSE],")?").concat(d[p.BUILD],"?")+")?)?"),g("XRANGE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAIN],"$")),g("XRANGELOOSE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAINLOOSE],"$")),g("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(i,"})")+"(?:\\.(\\d{1,".concat(i,"}))?")+"(?:\\.(\\d{1,".concat(i,"}))?")),g("COERCE","".concat(d[p.COERCEPLAIN],"(?:$|[^\\d])")),g("COERCEFULL",d[p.COERCEPLAIN]+"(?:".concat(d[p.PRERELEASE],")?")+"(?:".concat(d[p.BUILD],")?")+"(?:$|[^\\d])"),g("COERCERTL",d[p.COERCE],!0),g("COERCERTLFULL",d[p.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM","(\\s*)".concat(d[p.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",g("TILDE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAIN],"$")),g("TILDELOOSE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("LONECARET","(?:\\^)"),g("CARETTRIM","(\\s*)".concat(d[p.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",g("CARET","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAIN],"$")),g("CARETLOOSE","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAINLOOSE],"$")),g("COMPARATORLOOSE","^".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],")$|^$")),g("COMPARATOR","^".concat(d[p.GTLT],"\\s*(").concat(d[p.FULLPLAIN],")$|^$")),g("COMPARATORTRIM","(\\s*)".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],"|").concat(d[p.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE","^\\s*(".concat(d[p.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAIN],")")+"\\s*$"),g("HYPHENRANGELOOSE","^\\s*(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s*$"),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2560(e,t,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,">",n)}},453(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t,n){return e=new r(e,n),t=new r(t,n),e.intersects(t,n)}},9801(e,t,n){"use strict";var r=n(3452);e.exports=function(e,t,n){return r(e,t,"<",n)}},5901(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||-1===o.compare(e))&&(o=new r(i=e,n))}),i}},6975(e,t,n){"use strict";var r=n(7583),a=n(7490);e.exports=function(e,t,n){var i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!i||1===o.compare(e))&&(o=new r(i=e,n))}),i}},8158(e,t,n){"use strict";var r=n(7583),a=n(7490),i=n(4907);e.exports=function(e,t){e=new a(e,t);var n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(var o=0;o<e.set.length;++o)!function(t){var a=e.set[t],o=null;a.forEach(function(e){var t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||i(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: ".concat(e.operator))}}),o&&(!n||i(n,o))&&(n=o)}(o);return n&&e.test(n)?n:null}},3452(e,t,n){"use strict";var r=n(7583),a=n(6503),i=a.ANY,o=n(7490),s=n(5775),l=n(4907),u=n(6228),c=n(4401),d=n(9928);e.exports=function(e,t,n,f){var p,m,h,y,v;switch(e=new r(e,f),t=new o(t,f),n){case">":p=l,m=c,h=u,y=">",v=">=";break;case"<":p=u,m=d,h=l,y="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(var g=0;g<t.set.length;++g){var b=function(n){var r=t.set[n],o=null,s=null;return(r.forEach(function(e){e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===y||o.operator===v||(!s.operator||s.operator===y)&&m(e,s.semver)||s.operator===v&&h(e,s.semver))?{v:!1}:void 0}(g);if("object"==(b&&"u">typeof Symbol&&b.constructor===Symbol?"symbol":typeof b))return b.v}return!0}},1784(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(5775),i=n(2057);e.exports=function(e,t,n){var o=[],s=null,l=null,u=e.sort(function(e,t){return i(e,t,n)}),c=!0,d=!1,f=void 0;try{for(var p,m=u[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value;a(h,t,n)?(l=h,s||(s=h)):(l&&o.push([s,l]),l=null,s=null)}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}s&&o.push([s,null]);var y=[],v=!0,g=!1,b=void 0;try{for(var x,w=o[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var j,S=(j=x.value,function(e){if(Array.isArray(e))return e}(j)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(j)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(j)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=S[0],O=S[1];E===O?y.push(E):O||E!==u[0]?O?E===u[0]?y.push("<=".concat(O)):y.push("".concat(E," - ").concat(O)):y.push(">=".concat(E)):y.push("*")}}catch(e){g=!0,b=e}finally{try{v||null==w.return||w.return()}finally{if(g)throw b}}var k=y.join(" || "),A="string"==typeof t.raw?t.raw:String(t);return k.length<A.length?k:t}},7885(e,t,n){"use strict";var r=n(7490),a=n(6503),i=a.ANY,o=n(5775),s=n(2057),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=function(e,t,n){if(e===t)return!0;if(1===e.length&&e[0].semver===i)if(1===t.length&&t[0].semver===i)return!0;else e=n.includePrerelease?l:u;if(1===t.length&&t[0].semver===i)if(n.includePrerelease)return!0;else t=u;var r=new Set,a=!0,c=!1,p=void 0;try{for(var m,h,y,v=e[Symbol.iterator]();!(a=(y=v.next()).done);a=!0){var g=y.value;">"===g.operator||">="===g.operator?m=d(m,g,n):"<"===g.operator||"<="===g.operator?h=f(h,g,n):r.add(g.semver)}}catch(e){c=!0,p=e}finally{try{a||null==v.return||v.return()}finally{if(c)throw p}}if(r.size>1)return null;if(m&&h&&((j=s(m.semver,h.semver,n))>0||0===j&&(">="!==m.operator||"<="!==h.operator)))return null;var b=!0,x=!1,w=void 0;try{for(var j,S,E=r[Symbol.iterator]();!(b=(S=E.next()).done);b=!0){var O=S.value;if(m&&!o(O,String(m),n)||h&&!o(O,String(h),n))return null;var k=!0,A=!1,D=void 0;try{for(var P,C=t[Symbol.iterator]();!(k=(P=C.next()).done);k=!0){var T=P.value;if(!o(O,String(T),n))return!1}}catch(e){A=!0,D=e}finally{try{k||null==C.return||C.return()}finally{if(A)throw D}}return!0}}catch(e){x=!0,w=e}finally{try{b||null==E.return||E.return()}finally{if(x)throw w}}var N=!!h&&!n.includePrerelease&&!!h.semver.prerelease.length&&h.semver,M=!!m&&!n.includePrerelease&&!!m.semver.prerelease.length&&m.semver;N&&1===N.prerelease.length&&"<"===h.operator&&0===N.prerelease[0]&&(N=!1);var R=!0,I=!1,_=void 0;try{for(var L,F,B,V,z,W=t[Symbol.iterator]();!(R=(z=W.next()).done);R=!0){var U=z.value;if(V=V||">"===U.operator||">="===U.operator,B=B||"<"===U.operator||"<="===U.operator,m){if(M&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===M.major&&U.semver.minor===M.minor&&U.semver.patch===M.patch&&(M=!1),">"===U.operator||">="===U.operator){if((L=d(m,U,n))===U&&L!==m)return!1}else if(">="===m.operator&&!U.test(m.semver))return!1}if(h){if(N&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===N.major&&U.semver.minor===N.minor&&U.semver.patch===N.patch&&(N=!1),"<"===U.operator||"<="===U.operator){if((F=f(h,U,n))===U&&F!==h)return!1}else if("<="===h.operator&&!U.test(h.semver))return!1}if(!U.operator&&(h||m)&&0!==j)return!1}}catch(e){I=!0,_=e}finally{try{R||null==W.return||W.return()}finally{if(I)throw _}}return(!m||!B||!!h||0===j)&&(!h||!V||!!m||0===j)&&!M&&!N&&!0},d=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},f=function(e,t,n){if(!e)return t;var r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new r(e,n),t=new r(t,n);var a=!1,i=!0,o=!1,s=void 0;try{e:for(var l,u=e.set[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=!0,p=!1,m=void 0;try{for(var h,y=t.set[Symbol.iterator]();!(f=(h=y.next()).done);f=!0){var v=h.value,g=c(d,v,n);if(a=a||null!==g,g)continue e}}catch(e){p=!0,m=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw m}}if(a)return!1}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return!0}},7690(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t){return new r(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}},3429(e,t,n){"use strict";var r=n(7490);e.exports=function(e,t){try{return new r(e,t).range||"*"}catch(e){return null}}},1017(e,t,n){"use strict";n.d(t,{u:()=>o});var r=n(2804),a=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],i={primaryColor:{_type:r.Type.String,_description:"The color for displaying primary classification tags",_default:"red",_validators:[r.validators.oneOf(a)]},secondaryColor:{_type:r.Type.String,_description:"The color for displaying secondary classification tags",_default:"blue",_validators:[r.validators.oneOf(a)]}},o={"Brand color #1":{_default:"#005d5d",_type:r.Type.String},"Brand color #2":{_default:"#004144",_type:r.Type.String},"Brand color #3":{_default:"#007d79",_type:r.Type.String},excludeEntityIdentifierCodeTypes:{uuids:{_type:r.Type.Array,_description:"List of UUIDs of entity identifier types to exclude from rendering in the entity banner",_default:[],_elements:{_type:r.Type.UUID}}},implementationName:{_type:r.Type.String,_description:"The name of the deployment or authority displayed in the UI.",_default:"Framework"},entityPhotoConceptUuid:{_type:r.Type.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the entity profile photo, stored as an attachment. Set to `null` to disable and use only generated avatars."},contactAttributeTypes:{uuids:{_type:r.Type.Array,_description:"UUIDs of attribute types to show as contact details in the entity banner",_default:[],_elements:{_type:r.Type.UUID}}},preferredCalendar:{_type:r.Type.Object,_description:"Keys should be locale codes, values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[r.validators.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:r.Type.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Keys should be locale codes, values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:r.Type.String}},classificationTags:i}},488(e,t,n){"use strict";let r,a,i,o,s,l,u;n.d(t,{dNG:()=>vc,JTN:()=>sa,_RD:()=>gb,FNf:()=>CN,eCO:()=>op,UgN:()=>sP,MTs:()=>he,wmT:()=>AP,CW5:()=>Ap,Xhy:()=>Tz,aRn:()=>E,X25:()=>vu,ttj:()=>TF,ozP:()=>bD,id:()=>sD,e_T:()=>gk,fNA:()=>Oa,vFG:()=>oq,whL:()=>MB,YiA:()=>h1,uBm:()=>bE,yBj:()=>o2,_f_:()=>P5,Q5Y:()=>Tm,tCH:()=>sr,kNS:()=>E0,nFg:()=>oV,pkp:()=>kF,y0l:()=>Td,KGd:()=>CH,ivh:()=>Tp,Lfm:()=>sf,gHx:()=>kx,Vsm:()=>Tk,Pfj:()=>Mn,WO_:()=>bS,T7Q:()=>kA,iq0:()=>Tt,SvQ:()=>ga,B2u:()=>vg,QsE:()=>Ae,ilK:()=>v_,toY:()=>hv,u4h:()=>o1,Bk2:()=>vs,gpz:()=>yx,P0c:()=>v7,d4y:()=>MU,O3W:()=>kW,c0o:()=>kw,EPe:()=>hy,jCr:()=>bK,zYs:()=>yb,lgu:()=>Mv,XEq:()=>o3,mOW:()=>Mz,MnZ:()=>y3,rpF:()=>vo,LdX:()=>Ty,dKS:()=>yj,Bic:()=>kB,lFh:()=>Tn,Uve:()=>sM,CU$:()=>hq,ctS:()=>gS,Wjo:()=>b_,nBS:()=>C9,o81:()=>Mh,pm$:()=>ob,Hwc:()=>kk,W5n:()=>lA,XWC:()=>E7,ZyP:()=>hZ,NIm:()=>Ok,Kz$:()=>yd,P8U:()=>EB,$iy:()=>y4,EiO:()=>AK,m9A:()=>vH,jMM:()=>oW,BM2:()=>CR,DeE:()=>y9,Wdn:()=>oA,GF9:()=>P2,Fny:()=>EN,WyE:()=>gI,qUP:()=>oN,z0Y:()=>ya,wn6:()=>Tl,XhU:()=>y$,cJy:()=>bw,et7:()=>vp,YP7:()=>EZ,ZLm:()=>vM,LPu:()=>ss,uTG:()=>yf,ncA:()=>OM,EDM:()=>gN,uge:()=>kD,b6Z:()=>Th,aJF:()=>sd,mqB:()=>L,Dsh:()=>hY,pyx:()=>TG,ehn:()=>vi,Qsg:()=>E9,cjw:()=>Oe,SwV:()=>oh,UcB:()=>kN,GGC:()=>W,mmM:()=>oc,Nqf:()=>yc,tKr:()=>lj,Kpk:()=>ol,M9T:()=>yk,JJd:()=>om,Ua6:()=>lO,EGc:()=>y_,lq$:()=>sn,QeH:()=>Dk,lok:()=>vQ,gCo:()=>AE,hae:()=>E4,hZg:()=>sm,uDL:()=>Ce,y8:()=>v2,D3D:()=>ow,SQq:()=>vn,XHu:()=>vv,YJP:()=>oj,BIq:()=>Mp,pJo:()=>OC,REV:()=>oa,frg:()=>k7,OeE:()=>gd,ZLN:()=>oi,Fmw:()=>gl,uWG:()=>vq,CTc:()=>od,paI:()=>CK,x9q:()=>gv,osL:()=>sS,MiD:()=>Mg,EJV:()=>sx,drd:()=>hE,mIk:()=>TP,flY:()=>os,tp2:()=>ON,OoY:()=>Ml,F$l:()=>Ai,b1c:()=>sv,T7$:()=>NC,Klm:()=>yZ,zfR:()=>hK,ICb:()=>kH,iRo:()=>AZ,d1P:()=>vG,QpY:()=>lS,Q92:()=>vf,q__:()=>vh,s3U:()=>oC,XvC:()=>bi,Ycj:()=>Ct,_Jn:()=>MW,bmf:()=>vw,GcC:()=>ye,ckU:()=>Z,tdF:()=>vR,EA:()=>p,bqE:()=>Ax,W4t:()=>ox,bF1:()=>vj,Ddn:()=>CY,npY:()=>or,foY:()=>kE,wwY:()=>se,hPu:()=>Am,pYV:()=>sh,_kB:()=>Eb,XB2:()=>oI,Xac:()=>Nf,eFc:()=>TV,yde:()=>E$,iVR:()=>MG,ECF:()=>vt,gFP:()=>TA,Pyy:()=>oz,lyJ:()=>o5,$2H:()=>vx,pyG:()=>oD,A60:()=>oo,ci3:()=>sT,qb_:()=>vA,AFR:()=>NH,aiS:()=>TI,Ogf:()=>NU,v99:()=>vU,PtA:()=>sC,Fm9:()=>E6,C44:()=>Mr,TC2:()=>gs,slS:()=>lk,Zpy:()=>yz,CGR:()=>EJ,Apm:()=>CM,AnT:()=>kj,vY7:()=>CI,hXZ:()=>oL,jT8:()=>Do,FtQ:()=>og,ofx:()=>MV,PK0:()=>AY,KFv:()=>vS,OFC:()=>k2,TNY:()=>y7,ZrL:()=>oG,oVc:()=>Af,Eg0:()=>hb,OC$:()=>sp,Nvq:()=>TK,p4K:()=>kX,Y26:()=>OT,SLu:()=>Na,WIv:()=>sl,BDu:()=>kh,MO4:()=>sw,qLc:()=>Ew,dwU:()=>sg,bDP:()=>of,O_s:()=>ly,USm:()=>oO,uU$:()=>y8,G3_:()=>Df,uFu:()=>o0,w21:()=>vd,rmb:()=>Nk,H0x:()=>st,biy:()=>bv,cn:()=>yt,GYk:()=>by,_PX:()=>EF,SCH:()=>ov,koC:()=>m5,_e_:()=>oH,Fnj:()=>oJ,G_3:()=>gw,_1W:()=>gO,rv3:()=>o4,XaH:()=>oM,AOq:()=>Az,nvs:()=>y6,qYP:()=>ou,RFy:()=>sc,teX:()=>yV,x4I:()=>My,naI:()=>oB,SnF:()=>Cz,F3N:()=>gc,CH0:()=>gj,sgv:()=>ve,NGl:()=>AG,qpM:()=>E8,RGi:()=>Cn,BpM:()=>yl,B1u:()=>y2,cxd:()=>Q,wJ8:()=>ND,owH:()=>vr,n$t:()=>m0,uqj:()=>oT,RJr:()=>MJ,szA:()=>o_,_Xm:()=>oQ,uQc:()=>o$,cxq:()=>vl,Km0:()=>Ma,SA3:()=>sN,Y21:()=>vm,vKP:()=>oS,lHJ:()=>k$,vNL:()=>MF,XzH:()=>gg,aN0:()=>function e(t,n){var r,a=(0,hr.Q_)(t),i=n.state,o=n.onWorkspaceGroupLaunch,s=n.workspaceGroupCleanup,l=n.workspaceToLaunch,u=function(){return gv}();if(u.getState().openWorkspaces.length){var c=u.getState().workspaceGroup;c?gi(null==c?void 0:c.name,function(){e(t,n)}):gw(function(){e(t,n)})}else u.setState(function(e){return gr(gn({},e),{workspaceGroup:{name:t,members:a.members,cleanup:s}})}),gk(t,i),null==o||o(),l&&gs(l.name,null!=(r=l.additionalProps)?r:{})},DYW:()=>yo,nys:()=>sO,Tqd:()=>kO,DWK:()=>DS,BGy:()=>o8,X3I:()=>Te,KId:()=>EW,tMf:()=>gJ,EDr:()=>vW,vJW:()=>y1,yDT:()=>sj,YpM:()=>Tf,sCq:()=>EV,TQT:()=>X,pd:()=>kR,PAB:()=>M9,Zqu:()=>At,feL:()=>sE,AkA:()=>bj,JrA:()=>lD,Ce6:()=>oP,tyG:()=>T1,Rt$:()=>oK,Plc:()=>N9,BT6:()=>oZ,Oi_:()=>sk,zZ0:()=>oX,Pe5:()=>NT,x1U:()=>oF,l6P:()=>Ay,uQD:()=>F.u,NOx:()=>yu,zLd:()=>ky,Int:()=>sI,oCk:()=>ok,Jbi:()=>CP,KbA:()=>sy,Ws0:()=>MH,Qnn:()=>MM,pTx:()=>bg,SwB:()=>sb,zkr:()=>kP,MJ8:()=>gm,SKX:()=>vy,AA7:()=>TD,qXl:()=>Aq,JKc:()=>gh,zlb:()=>gf,WMK:()=>y,rZj:()=>o7,thS:()=>va,KKH:()=>vb,Fe_:()=>C_,Ix5:()=>oU,Jc:()=>oR,cQD:()=>si,Rnm:()=>o6,Zes:()=>su,aHM:()=>vF,f1b:()=>v9,D6i:()=>Ol,PPo:()=>o9,IHy:()=>y5,cBB:()=>NA,NAP:()=>so,oy0:()=>sR,lu9:()=>Mq,Mtm:()=>oE,kE8:()=>on,ZHE:()=>oy,wtE:()=>Oj,hLN:()=>bx,tCQ:()=>sA,a8E:()=>kM,hi6:()=>oY});var c,d,f,p={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function m(){document.body.classList.toggle("egen-breakpoint-lt-tablet",window.innerWidth<p.TABLET_MIN),document.body.classList.toggle("egen-breakpoint-gt-phone",window.innerWidth>p.PHONE_MAX),document.body.classList.toggle("egen-breakpoint-gt-tablet",window.innerWidth>p.TABLET_MAX),document.body.classList.toggle("egen-breakpoint-lt-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-small-desktop",window.innerWidth<p.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-large-desktop",window.innerWidth<p.LARGE_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-gt-small-desktop",window.innerWidth>p.SMALL_DESKTOP_MAX)}var h=!1;function y(){h||(window.addEventListener("resize",m),m(),h=!0)}var v=n(2883),g=n(8783),b=n.n(g),x=n(9663),w=n.n(x),j=n(5429);function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t,n=e.title,r=e.children,a="tablet"===(0,j.useLayoutType)();return(0,v.jsxs)("div",{className:w()((S(t={},"Vkmd-M3ZdPZe+c6OloVbnw==",a),S(t,"ocWGqN+S6wY3-wV0QG3pOw==",!a),t)),children:[(0,v.jsx)("h4",{children:n}),r]})}let O={card:"xY-hjnMj2Vhb3NXpN1HzQQ==",content:"gtaa8ThYG84yx53YeLa39Q==",title:"e1HZjiL1P-XgmgMdGZsPDA==",description:"UZ1UltB3v6g6dVcdmKZSFg==","card--default":"_31cbAPdcvXMVx5O8ZFyHeg==","card--dots":"kO1dmpc37xfNzZfZ5pTHBw==",hLineTop:"_8HsRyQKGDhsCaZ-kREjyVw==",hLineBottom:"ZZDCyLFNUAKpiGi6n-shAQ==",dotsFrame:"BCFjDcyKcFZlZqoa3t6lOg==",dotsGrid:"_7PFHoKqERi5GXdUZ6HAuPw==",dot:"ROnKesaIAN68AZ35f5+sDg==",dotsInner:"_986dypuAW0G1ypk84XA88A==","card--gradient":"mj83Zsyhev1OZshBKkb1iA==",gradientLineTop:"m1SGh5vNmhhfAY98gfr+QA==",gradientLineBottom:"KBCAwgrsoY7-dvt2GhMU2w==",gradientSideLeft:"tiUBDDY8Au-1arWuyojnRg==",gradientSideRight:"EUGUmYnGW908QRwyd6PjPA==",gradientInner:"Auxn3dhfk0IFhyo7u92q3Q==","card--plus":"zZhYiUShtg81oZa8dfyL8Q==",plusIcon:"RBEQhWdrHdEVlT9FD9pDcw==","plusIcon--topLeft":"aznYnJ0jHj8iO5RqNcoDzg==","plusIcon--topRight":"C3kihD1fEE2RDqM-EkL3qA==","plusIcon--bottomLeft":"GZOruZH1iBepzH5y-caEPw==","plusIcon--bottomRight":"FAufx9GojvBX0BR5R4jHag==","card--neubrutalism":"TzwGTGmOKN521-9GKgM3CA==","card--inner":"_7F06d0fmL+k0+GoI-jJJHQ==",innerPanel:"kd+9ACDN7VmUHuFd6NU16A==","card--lifted":"_0Y37o+L7KDOcK9eSOh3Pmg==","card--corners":"zpT+IrBZGp9wUrJE9TSNsg==",cornerBracket:"+5UNj3yT+4ObxnsZHsca+g==","cornerBracket--topLeft":"WdsryH2D9JjEzWSzc7YD+A==","cornerBracket--topRight":"_620KZHKAClNQtKPLDuQNJw==","cornerBracket--bottomLeft":"LUtOIpYoA9CKcWIB5WBUSw==","cornerBracket--bottomRight":"pMjLtlazZqXeonjgX3aU5g==","card--glass":"krTNomK41WCUElSE3Wm3yg==","card--mirror":"rsdHzWYe6nr2mHqiRKV29Q==",mirrorSurface:"uj-xxJmQ4tFQGOBeAgUqlg==",mirrorShadow:"AFWMLjsCN6T34CLjglwuiA==","mirrorSurface--sm":"hN2+kcLxmWrZs4eVlKcEPw==","mirrorSurface--default":"CTQ+aR5eT0ezIF9LbKQE2g==","mirrorSurface--lg":"QyGzH3w3+zadG4Gjh-U44w==","mirrorSurface--icon":"ivg5LA5pTCCEwGWWFD5MEg=="};var k=function(e){var t=e.dotsColor;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:O.hLineTop}),(0,v.jsx)("div",{className:O.hLineBottom}),(0,v.jsx)("div",{className:O.dotsFrame,children:(0,v.jsxs)("div",{className:O.dotsGrid,children:[(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,v.jsx)("span",{className:O.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}})]})})]})},A=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:O.gradientLineTop}),(0,v.jsx)("div",{className:O.gradientLineBottom}),(0,v.jsx)("div",{className:O.gradientSideLeft}),(0,v.jsx)("div",{className:O.gradientSideRight})]})},D=["topLeft","topRight","bottomLeft","bottomRight"],P=function(){return(0,v.jsx)(v.Fragment,{children:D.map(function(e){return(0,v.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,width:24,height:24,className:"".concat(O.plusIcon," ").concat(O["plusIcon--".concat(e)]),"aria-hidden":"true",children:(0,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})},e)})})},C=function(){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--topLeft"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--topRight"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--bottomLeft"])}),(0,v.jsx)("div",{className:"".concat(O.cornerBracket," ").concat(O["cornerBracket--bottomRight"])})]})};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e){if(Array.isArray(e))return e}function M(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function _(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}}var L=(0,g.forwardRef)(function(e,t){var n,r=N(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||_(n)||M(),a=r[0],i=r.slice(1),o=a.variant,s=void 0===o?"default":o,l=a.size,u=a.title,c=a.description,d=a.children,f=a.className,p=a.style,m=a.contentClassName,h=a.contentStyle,y=a.dotsColor,g=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),b=(N(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||_(i,1)||M())[0],x=(0,v.jsxs)("div",{className:w()(O.content,m),style:h,children:[u&&(0,v.jsx)("h3",{className:O.title,children:u}),c&&(0,v.jsx)("p",{className:O.description,children:c}),d]}),j=w()(O.card,O["card--".concat(s)],f);switch(s){case"dots":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(k,{dotsColor:void 0===y?"var(--colors-success-500)":y}),(0,v.jsx)("div",{className:O.dotsInner,children:x})]}));case"gradient":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(A,{}),(0,v.jsx)("div",{className:O.gradientInner,children:x})]}));case"inner":return(0,v.jsx)("div",I(R({ref:b,className:j,style:p},g),{children:(0,v.jsx)("div",{className:O.innerPanel,children:x})}));case"plus":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(P,{}),x]}));case"corners":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)(C,{}),x]}));case"mirror":return(0,v.jsxs)("div",I(R({ref:b,className:j,style:p},g),{children:[(0,v.jsx)("div",{className:w()(O.mirrorSurface,O["mirrorSurface--".concat(void 0===l?"default":l)]),children:x}),(0,v.jsx)("div",{className:O.mirrorShadow})]}));default:return(0,v.jsx)("div",I(R({ref:b,className:j,style:p},g),{children:x}))}});L.displayName="DecoratedCard";var F=n(1017),B=n(8300),V=n(5565),z={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},W=function(e){return(0,v.jsx)(B.TableBatchActions,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({translateWithId:function(e,t){var n=z[e];return n?(0,V.V)(n,e,t):e}},e))};let U="_8PykSzSXNNdifN25ybqq3w==",$="qsOLntRcFqCu-mnZH0czJA==",H="BserJewmzluWUcq5q8a0yw==",G="n86GzT7Rs8Kf8e25ihYZPg==";function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=(0,g.createContext)(null);function Z(){var e=(0,g.useContext)(K);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function X(e){var t,n=e.menuTitle,r=e.children,a=function(e){if(Array.isArray(e))return e}(t=b().useState(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return q(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1],s=(0,j.useOnClickOutside)(function(){return o(!1)},i),l="tablet"===(0,j.useLayoutType)(),u=(0,g.useCallback)(function(){return o(function(e){return!e})},[]),c=(0,g.useRef)(null),d=(0,g.useRef)(null),f=(0,g.useId)(),p="custom-overflow-menu-trigger-".concat(f),m="custom-overflow-menu-".concat(f),h=(0,g.useCallback)(function(){var e;o(!1),null==(e=c.current)||e.focus()},[]),y=(0,g.useMemo)(function(){return{closeMenu:h}},[h]),x=(0,g.useCallback)(function(e){"Escape"===e.key&&i&&(e.stopPropagation(),h())},[h,i]),S=g.Children.toArray(r);(0,g.useEffect)(function(){if(i&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[i]);var E=(0,g.useCallback)(function(e){e.currentIndex;var t,n,r,a,i,o,s=e.direction,l=null==(n=d.current)?void 0:n.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==l?void 0:l.length){var u=null!=(t=null==(a=document.activeElement)||null==(r=a.closest)?void 0:r.call(a,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l[s>0?0:l.length-1])||o.focus();return}var f=c+s,p=f<0?l.length-1:f>=l.length?0:f;null==(i=l[p])||i.focus()}},[]),O=S.map(function(e,t){return(0,g.isValidElement)(e)?(0,g.cloneElement)(e,{closeMenu:h,handleOverflowMenuItemFocus:E,index:t}):e});return(0,v.jsxs)("div",{"data-overflow-menu":!0,className:w()("cds--overflow-menu",U),ref:s,children:[(0,v.jsx)("button",{className:w()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":i},G),"aria-controls":m,"aria-expanded":i,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:x,ref:c,children:n}),(0,v.jsxs)("div",{className:w()("cds--overflow-menu-options","cds--overflow-menu--flip",$,Y({},H,i)),"aria-labelledby":p,"data-floating-menu-direction":"bottom",id:m,onKeyDown:x,ref:d,role:"menu",tabIndex:-1,children:[(0,v.jsx)("ul",{className:w()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":l}),children:(0,v.jsx)(K.Provider,{value:y,children:O})}),(0,v.jsx)("span",{})]})]})}function Q(e){var t,n,r=(0,g.useContext)(K);return(0,v.jsx)(B.OverflowMenuItem,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Y(e,t,n[t])})}return e}({},e),n=n={closeMenu:null==r?void 0:r.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function J(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let ee="u">typeof document?b().useLayoutEffect:()=>{},et={prefix:String(Math.round(1e10*Math.random())),current:0},en=b().createContext(et),er=b().createContext(!1),ea=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),ei="function"==typeof b().useId?function(e){let t=b().useId(),[n]=(0,g.useState)(eu()),r=n?"react-aria":`react-aria${et.prefix}`;return e||`${r}-${t}`}:function(e){let t=(0,g.useContext)(en),n=function(e=!1){let t=(0,g.useContext)(en),n=(0,g.useRef)(null);if(null===n.current&&!e){let e=b().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=ea.get(e);null==n?ea.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,ea.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function eo(){return!1}function es(){return!0}function el(e){return()=>{}}function eu(){return"function"==typeof b().useSyncExternalStore?b().useSyncExternalStore(el,eo,es):(0,g.useContext)(er)}let ec=!!("u">typeof window&&window.document&&window.document.createElement),ed=new Map;"u">typeof FinalizationRegistry&&(r=new FinalizationRegistry(e=>{ed.delete(e)}));let ef=new WeakMap;function ep(e){let[t,n]=(0,g.useState)(e),a=(0,g.useRef)(null),i=ei(t),o=(0,g.useRef)(null),s=ef.get(o);if(r&&s!==i&&(null!=s&&r.unregister(o),r.register(o,i,o),ef.set(o,i)),ec){let e=ed.get(i);e&&!e.includes(a)?e.push(a):ed.set(i,[a])}return ee(()=>()=>{r&&(r.unregister(o),ef.delete(o)),ed.delete(i)},[i]),(0,g.useEffect)(()=>{let e=a.current;return e&&n(e),()=>{e&&(a.current=null)}}),i}function em(e=[]){let t=ep(),[n,r]=function(e){let[t,n]=(0,g.useState)(e),r=(0,g.useRef)(t),a=(0,g.useRef)(null),i=(0,g.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}r.current===e.value?i.current():n(e.value)});return ee(()=>{r.current=t,a.current&&i.current()}),[t,(0,g.useCallback)(e=>{a.current=e(r.current),i.current()},[i])]}(t),a=(0,g.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ee(a,[t,a,...e]),n}function eh(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=ey(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():ey(e[n],null)})}}}function ey(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let ev=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r};function eg(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],a=r[e];"function"==typeof n&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=J(n,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof a?t[e]=ev(n,a):"id"===e&&n&&a?t.id=function(e,t){if(e===t)return e;let n=ed.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ed.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,a):"ref"===e&&n&&a?t.ref=eh(n,a):t[e]=void 0!==a?a:n}}return t}function eb(e){let t=(0,g.useRef)(null),n=(0,g.useRef)(void 0),r=(0,g.useCallback)(t=>{if("function"==typeof e){let n=e(t);return()=>{"function"==typeof n?n():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,g.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,n.current&&(n.current(),n.current=void 0),null!=value&&(n.current=r(value))}}),[r])}let ex=Symbol("default");function ew({values:e,children:t}){for(let[n,r]of e)t=b().createElement(n.Provider,{value:r},t);return t}function ej(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:i,defaultStyle:o,values:s,render:l}=e;return(0,g.useMemo)(()=>{let e,u,c;return e="function"==typeof t?t({...s,defaultClassName:a}):t,u="function"==typeof n?n({...s,defaultStyle:o||{}}):n,c="function"==typeof r?r({...s,defaultChildren:i}):null==r?i:r,{className:e??a,style:u||o?{...o,...u}:void 0,children:c??i,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,n,r,a,i,o,s,l])}function eS(e,t){let n=(0,g.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||ex;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function eE(e,t,n){let{ref:r,...a}=eS(n,e.slot)||{},i=eb((0,g.useMemo)(()=>eh(t,r),[t,r])),o=eg(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?o.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},i="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:o.style={...a.style,...e.style}),[o,i]}function eO(e=!0){let[t,n]=(0,g.useState)(e),r=(0,g.useRef)(!1),a=(0,g.useCallback)(e=>{r.current=!0,n(!!e)},[]);return ee(()=>{r.current||n(!1)},[]),[a,t]}function ek(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function eA(e,t,n){let{render:r,...a}=t,i=(0,g.useRef)(null),o=(0,g.useMemo)(()=>eh(n,i),[n,i]);ee(()=>{},[e,r]);let s={...a,ref:o};return r?r(s,void 0):b().createElement(e,s)}let eD={},eP=new Proxy({},{get(e,t){if("string"!=typeof t)return;let n=eD[t];return n||(n=(0,g.forwardRef)(eA.bind(null,t)),eD[t]=n),n}}),eC=(0,g.createContext)(null),eT=null;function eN(e,t="assertive",n=7e3){eT?eT.announce(e,t,n):(eT=new eM,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?eT.announce(e,t,n):setTimeout(()=>{eT?.isAttached()&&eT?.announce(e,t,n)},100))}class eM{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");"object"==typeof e?(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",e["aria-labelledby"])):r.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),""!==e&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}let eR=new Set(["id"]),eI=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),e_=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),eL=new Set(["dir","lang","hidden","inert","translate"]),eF=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),eB=/^(data-.*)$/;function eV(e,t={}){let{labelable:n,isLink:r,global:a,events:i=a,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(eR.has(t)||n&&eI.has(t)||r&&e_.has(t)||a&&eL.has(t)||i&&(eF.has(t)||t.endsWith("Capture")&&eF.has(t.slice(0,-7)))||o?.has(t)||eB.test(t))&&(s[t]=e[t]);return s}function ez(e){if(function(){if(null==eW){eW=!1;try{document.createElement("div").focus({get preventScroll(){return eW=!0,!0}})}catch{}}return eW}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let eW=null,eU=e=>{var t,n;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:eH(n=e)&&9===n.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},e$=e=>{let t=eU(e);return t?.defaultView??("u">typeof window?window:void 0)};function eH(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function eG(e,t,n,r){if(null==n||null==e)return()=>{};let a=Array.isArray(e)?e:[e];for(let e of a)e.addEventListener(t,n,r);return()=>{for(let e of a)e.removeEventListener(t,n,r)}}function eq(e,t,n,r){if(null==e)return()=>{};let a=[];for(let i of Array.isArray(e)?e:[e]){let e=i.style.getPropertyValue(t),o=i.style.getPropertyPriority(t);i.style.setProperty(t,n,r),a.unshift(()=>{e?i.style.setProperty(t,e,o):i.style.removeProperty(t)})}return()=>{for(let e of a)e()}}function eY(e,t){return!!t&&!!e&&e.contains(t)}function eK(e){return e.target}function eZ(e,t){if(null===t)return[];let n=[t=t??e$(e)];return n}function eX(e){if(!e)return!1;let t=e.getRootNode(),n=e$(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return null!=r&&e.contains(r)}let eQ="u">typeof Element&&"checkVisibility"in Element.prototype;function eJ(e,t){return eQ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=e$(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=e$(e),{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||eJ(e.parentElement,e))}let e0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],e1=e0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";e0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let e2=e0.join(':not([hidden]):not([tabindex="-1"]),');function e3(e,t){return e.matches(e1)&&!e4(e)&&(t?.skipVisibilityCheck||eJ(e))}function e5(e){return e.matches(e2)&&eJ(e)&&!e4(e)}function e4(e){let t=e;for(;null!=t;){if(t instanceof e$(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function e6(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function e8(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function e9(e){let t=(0,g.useRef)({isFocused:!1,observer:null});return ee(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,g.useCallback)(n=>{let r=eK(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=e6(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let e7=!1;function te(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function tt(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function tn(e){let t=null;return()=>(null==t&&(t=e()),t)}let tr=tn(function(){return tt(/^Mac/i)}),ta=tn(function(){return tt(/^iPhone/i)}),ti=tn(function(){return tt(/^iPad/i)||tr()&&navigator.maxTouchPoints>1}),to=tn(function(){return ta()||ti()});tn(function(){return tr()||to()});let ts=tn(function(){return te(/AppleWebKit/i)&&(to()||!tl())});tn(function(){return ts()&&!tl()&&!tc()});let tl=tn(function(){return te(/Chrome|CriOS|CrMo/i)}),tu=tn(function(){return te(/Android/i)}),tc=tn(function(){return te(/(Firefox|FxiOS)/i)});function td(e){return""===e.pointerType&&!!e.isTrusted||(tu()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function tf(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}=t;!ts()&&tc()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(tr()?r=!0:a=!0);let s=ts()&&tr()&&!ti()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:i,shiftKey:o}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:i,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});tf.isOpening=n,ez(e),e.dispatchEvent(s),tf.isOpening=!1}tf.isOpening=!1;let tp=null,tm=new Set,th=new Map,ty=!1,tv=!1,tg={Tab:!0,Escape:!0};function tb(e,t){for(let n of tm)n(e,t)}function tx(e){ty=!0,tf.isOpening||e.metaKey||!tr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(tp="keyboard",tb("keyboard",e))}function tw(e){tp="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ty=!0,tb("pointer",e))}function tj(e){!tf.isOpening&&td(e)&&(ty=!0,tp="virtual")}function tS(e){if(e7)return;let t=eK(e),n=e$(t),r=eU(t);if(t===n){tv=!0;return}t!==r&&e.isTrusted&&(ty||tv||(tp="virtual",tb("virtual",e)),ty=!1,tv=!1)}function tE(){e7||(ty=!1,tv=!0)}function tO(e){if("u"<typeof window||"u"<typeof document)return;let t=e$(e),n=eU(e);if(th.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){ty=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",tx,!0),n.addEventListener("keyup",tx,!0),n.addEventListener("click",tj,!0),t.addEventListener("focus",tS,!0),t.addEventListener("blur",tE,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",tw,!0),n.addEventListener("pointermove",tw,!0),n.addEventListener("pointerup",tw,!0)),t.addEventListener("beforeunload",()=>{tk(e)},{once:!0}),th.set(t,{focus:r})}let tk=(e,t)=>{let n=e$(e),r=eU(e);t&&r.removeEventListener("DOMContentLoaded",t),th.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:th.get(n).focus}),r.removeEventListener("keydown",tx,!0),r.removeEventListener("keyup",tx,!0),r.removeEventListener("click",tj,!0),n.removeEventListener("focus",tS,!0),n.removeEventListener("blur",tE,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",tw,!0),r.removeEventListener("pointermove",tw,!0),r.removeEventListener("pointerup",tw,!0)),th.delete(n))};function tA(){return"pointer"!==tp}"u">typeof document&&("loading"!==(l=eU(void 0)).readyState?tO(void 0):l.addEventListener("DOMContentLoaded",()=>{tO(void 0)}));let tD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),tP=new Map,tC=new Set;function tT(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=eK(n);if(!e(n)||!r)return;let a=tP.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),tP.delete(r)),0===tP.size)){for(let e of tC)e();tC.clear()}};document.body.addEventListener("transitionrun",n=>{let r=eK(n);if(!e(n)||!r)return;let a=tP.get(r);a||(a=new Set,tP.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function tN(e){requestAnimationFrame(()=>{for(let[e]of tP)"isConnected"in e&&!e.isConnected&&tP.delete(e);0===tP.size?e():tC.add(e)})}function tM(e){if(!e.isConnected)return;let t=eU(e);if("virtual"===tp){let n=((e=document)=>e.activeElement)(t);tN(()=>{let r=((e=document)=>e.activeElement)(t);(r===n||r===t.body)&&e.isConnected&&ez(e)})}else ez(e)}function tR(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e,i=(0,g.useCallback)(e=>{if(eK(e)===e.currentTarget)return r&&r(e),a&&a(!1),!0},[r,a]),o=e9(i),s=(0,g.useCallback)(e=>{let t=eK(e),r=eU(t),i=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===i&&(n&&n(e),a&&a(!0),o(e))},[a,n,o]);return{focusProps:{onFocus:!t&&(n||a||r)?s:void 0,onBlur:!t&&(r||a)?i:void 0}}}function tI(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){n=!0},continuePropagation(){n=!1,"function"==typeof t.continuePropagation&&t.continuePropagation()},isPropagationStopped:()=>n}),n&&!("function"==typeof t.isPropagationStopped&&t.isPropagationStopped())&&t.stopPropagation()}}"u">typeof document&&("loading"!==document.readyState?tT():document.addEventListener("DOMContentLoaded",tT));let t_=new Set(["shift","alt","control","meta","mod"]),tL=["Alt","Control","Meta","Shift"];function tF(e){return tL.filter(t=>e.has(t))}function tB(e){return e.toLowerCase()}let tV={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function tz(e){let t,n,{shortcuts:r,allowRepeats:a=!1,allowComposing:i=!1}=e;if(r){let o=function(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=function(e){let t=e.split("+").reduce((e,t)=>{let n=t.toLowerCase();return t_.has(n)?"shift"===n?e.shift=!0:"alt"===n?e.alt=!0:"control"===n?e.ctrl=!0:"meta"===n?e.meta=!0:"mod"===n&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(""===t.key)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}(n);t.set(function(e){let t,n,r,a=tF((t=new Set,e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(tr()?"Meta":"Control"),t)),i=null!=(r=tV[n=tB(e.key)])?r:n;return a.length>0?`${a.join("+")}+${i}`:i}(e),r)}return e=>{let n,r,a,i=(r=tF((n=new Set,e.altKey&&n.add("Alt"),e.ctrlKey&&n.add("Control"),e.metaKey&&n.add("Meta"),e.shiftKey&&n.add("Shift"),n)),a=tB(e.key),(r.length>0?`${r.join("+")}+`:"")+a),o=t.get(i),s=o?.(e);void 0===s&&void 0!==o?s={shouldContinuePropagation:!1,shouldPreventDefault:!0}:"boolean"==typeof s&&(s={shouldContinuePropagation:!s,shouldPreventDefault:s}),s?.shouldPreventDefault&&e.preventDefault(),(!o||s?.shouldContinuePropagation)&&e.continuePropagation()}}(r),s=tI(e=>{!eY(e.currentTarget,eK(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing&&!i?e.continuePropagation():o(e)}),l=tI(e=>{!eY(e.currentTarget,eK(e))||e.nativeEvent?.repeat&&!a||e.nativeEvent?.isComposing,e.continuePropagation()});t=e.onKeyDown?J(e.onKeyDown,s):s,n=e.onKeyUp?J(e.onKeyUp,l):l}else t=tI(e.onKeyDown),n=tI(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:t,onKeyUp:n}}}function tW(e,t){ee(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let tU=b().createContext(null);function t$(e,t){let{focusProps:n}=tR(e),{keyboardProps:r}=tz(e),a=eg(n,r),i=function(e){let t=(0,g.useContext)(tU)||{};tW(t,e);let{ref:n,...r}=t;return r}(t),o=e.isDisabled?{}:i,s=(0,g.useRef)(e.autoFocus);(0,g.useEffect)(()=>{s.current&&t.current&&tM(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:eg({...a,tabIndex:l},o)}}b().forwardRef(function(e,t){let{children:n,...r}=e,a=eb(t),i={...r,ref:a};return b().createElement(tU.Provider,{value:i},n)});let tH="default",tG="",tq=new WeakMap;function tY(e){if(to()&&ts())"disabled"===tH&&(tH="restoring",setTimeout(()=>{tN(()=>{if("restoring"===tH){let t=eU(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=tG||""),tG="",tH="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tq.has(e)){let t=tq.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),tq.delete(e)}}let tK=new WeakMap;function tZ(e){let t=eU(e),n=tK.get(t);return void 0!==(n??=function(e,t){let n,r=e$(t),a=eU(t);if(null==a||null==r)return;let i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=a.querySelector(i);return o&&o instanceof r.HTMLMetaElement&&("csp-nonce"===e&&o.nonce&&(n??=o.nonce||void 0),o.content&&(n??=o.content||void 0)),"csp-nonce"===e&&(n??=r.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),n}("csp-nonce",t))&&tK.set(t,n),n}let tX=b().createContext({register:()=>{}});tX.displayName="PressResponderContext";let tQ=b().useInsertionEffect??ee;function tJ(e){let t=(0,g.useRef)(null);return tQ(()=>{t.current=e},[e]),(0,g.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function t0(){let e=(0,g.useRef)(new Map),t=(0,g.useCallback)((t,n,r,a)=>{let i=a?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:a}),t.addEventListener(n,i,a)},[]),n=(0,g.useCallback)((t,n,r,a)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,a),e.current.delete(r)},[]),r=(0,g.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,g.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var t1=n(803),t2=n.n(t1);class t3{#e;constructor(e,t,n,r){this.#e=!0;let a=r?.target??n.currentTarget;const i=a?.getBoundingClientRect();let o,s=0,l,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),i&&(null!=l&&null!=u?(o=l-i.left,s=u-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=o,this.y=s,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let t5=Symbol("linkClicked"),t4="react-aria-pressable-style",t6="data-react-aria-pressable";function t8(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:i,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,g.useContext)(tX);if(t){let{register:n,ref:r,...a}=t;e=eg(a,e),n()}return tW(t,e.ref),e}(e),[m,h]=(0,g.useState)(!1),y=(0,g.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:b}=t0(),x=(0,g.useCallback)((e,t)=>{let a=y.current;if(s||a.didFirePressStart)return!1;let i=!0;if(a.isTriggeringEvent=!0,r){let n=new t3("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,h(!0),i},[s,r,n]),w=(0,g.useCallback)((e,r,i=!0)=>{let o=y.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(a){let t=new t3("pressend",r,e);a(t),l=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&i&&!s){let n=new t3("press",r,e);t(n),l&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,l},[s,a,n,t]),j=tJ(w),S=tJ((0,g.useCallback)((e,t)=>{let n=y.current;if(s)return!1;if(i){n.isTriggeringEvent=!0;let r=new t3("pressup",t,e);return i(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[s,i])),E=(0,g.useCallback)(e=>{let t=y.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&w(ne(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||tY(t.target),t.disposables))n();t.disposables=[]}},[d,b,w]),O=tJ(E);(0,g.useEffect)(()=>{s&&y.current.isPressed&&O({currentTarget:y.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let k=(0,g.useCallback)(e=>{c&&E(e)},[c,E]),A=(0,g.useCallback)(e=>{s||o?.(e)},[s,o]),D=(0,g.useCallback)((e,t)=>{if(!s&&o){let n=new MouseEvent("click",e);e8(n,t),o(e6(n))}},[s,o]),P=(0,g.useMemo)(()=>{let e=y.current,t={onKeyDown(t){if(t7(t.nativeEvent,t.currentTarget)&&eY(t.currentTarget,eK(t))){nt(eK(t),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=x(t,"keyboard"));let a=t.currentTarget;v(eU(t.currentTarget),"keyup",J(t=>{t7(t,a)&&!t.repeat&&eY(a,eK(t))&&e.target&&S(ne(e.target,t),"keyboard")},n),!0),r&&t.stopPropagation(),t.metaKey&&tr()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||eY(t.currentTarget,eK(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!tf.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||td(t.nativeEvent))){let e=x(t,"virtual"),r=S(t,"virtual"),a=j(t,"virtual");A(t),n=e&&r&&a}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",a=S(ne(t.currentTarget,t),r),i=j(ne(t.currentTarget,t),r,!0);n=a&&i,e.isOverTarget=!1,A(t),O(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&t7(t,e.target)){nt(eK(t),t.key)&&t.preventDefault();let n=eK(t),r=eY(e.target,n);j(ne(e.target,t),"keyboard",r),r&&D(t,e.target),b(),"Enter"!==t.key&&t9(e.target)&&eY(e.target,n)&&!t[t5]&&(t[t5]=!0,tf(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if("Meta"===t.key&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",n))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var a;if(0!==t.button||!eY(t.currentTarget,eK(t)))return;if(a=t.nativeEvent,!tu()&&0===a.width&&0===a.height||tu()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(to()&&ts()){if("default"===tH){let t=eU(e);tG=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}tH="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";tq.set(e,e.style[t]),e.style[t]="none"}}(e.target),i=x(t,e.pointerType);let a=eK(t);"releasePointerCapture"in a&&("hasPointerCapture"in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),v(eU(t.currentTarget),"pointerup",n,!1),v(eU(t.currentTarget),"pointercancel",r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(eY(t.currentTarget,eK(t))&&0===t.button){if(u){let n=function(e){for(var t;e&&!e3(e,{skipVisibilityCheck:!0});)e=e.parentElement;let n=((e=document)=>e.activeElement)(e$(e).document);if(!n||n===e)return;let r=e?.getRootNode(),a=null!=r&&eH(t=r)&&11===t.nodeType&&"host"in t?r:e$(e),i=t=>t===e||null!=t&&eY(e,t),o=e=>e===n||null!=n&&null!=e&&eY(n,e);e7=!0;let s=!1,l=e=>{(o(eK(e))||s)&&e.stopImmediatePropagation()},u=t=>{(o(eK(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,ez(n),f()))},c=e=>{(i(eK(e))||s)&&e.stopImmediatePropagation()},d=e=>{(i(eK(e))||s)&&(e.stopImmediatePropagation(),s||(s=!0,ez(n),f()))};a.addEventListener("blur",l,!0),a.addEventListener("focusout",u,!0),a.addEventListener("focusin",d,!0),a.addEventListener("focus",c,!0);let f=()=>{cancelAnimationFrame(p),a.removeEventListener("blur",l,!0),a.removeEventListener("focusout",u,!0),a.removeEventListener("focusin",d,!0),a.removeEventListener("focus",c,!0),e7=!1,s=!1},p=requestAnimationFrame(f);return f}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{eY(t.currentTarget,eK(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||S(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,x(ne(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,j(ne(e.target,t),e.pointerType,!1),k(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(eY(e.target,eK(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?O(t):(ez(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else O(t);e.isOverTarget=!1}},r=e=>{O(e)};t.onDragStart=e=>{eY(e.currentTarget,eK(e))&&O(e)}}return t},[v,s,u,b,d,k,x,A,D]);return(0,g.useEffect)(()=>{if(!f)return;let e=eU(f.current);if(!e||!e.head||e.getElementById(t4))return;let t=e.createElement("style");t.id=t4;let n=tZ(e);n&&(t.nonce=n),t.textContent=`
|
|
2
2
|
@layer {
|
|
3
3
|
[${t6}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
${v}px !important;
|
|
18
18
|
${g}px !important;
|
|
19
19
|
}
|
|
20
|
-
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[t]),(0,v.jsx)(ES,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:g.cloneElement(e,{ref:c})})}let EO=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dD(Ek),d=(0,g.useId)(),f=(0,g.useRef)(n),p=(0,g.useRef)(r);dB(()=>{f.current=n,p.current=r});let m=!0,h=(0,g.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;r&&r()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[n,c,r]);return i&&m&&(h={...h}),(0,g.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),g.useEffect(()=>{n||c.size||!r||r()},[n]),e=(0,v.jsx)(EE,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,v.jsx)(dA.Provider,{value:h,children:e})};function Ek(){return new Map}let EA=e=>e.key||"";function ED(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}let EP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=p_(o),f=(0,g.useMemo)(()=>ED(e),[e]),p=o&&!c?[]:f.map(EA),m=(0,g.useRef)(!0),h=(0,g.useRef)(f),y=dD(()=>new Map),b=(0,g.useRef)(new Set),[x,w]=(0,g.useState)(f),[j,S]=(0,g.useState)(f);dB(()=>{m.current=!1,h.current=f;for(let e=0;e<j.length;e++){let t=EA(j[e]);p.includes(t)?(y.delete(t),b.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[j,p.length,p.join("-")]);let E=[];if(f!==x){let e=[...f];for(let t=0;t<j.length;t++){let n=j[t],r=EA(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return"wait"===i&&E.length&&(e=E),S(ED(e)),w(f),null}let{forceRender:O}=(0,g.useContext)(dh);return(0,v.jsx)(v.Fragment,{children:j.map(e=>{let g=EA(e),x=(!o||!!c)&&(f===j||p.includes(g));return(0,v.jsx)(EO,{isPresent:x,initial:(!m.current||!!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:i,root:u,onExitComplete:x?void 0:()=>{if(b.current.has(g)||!y.has(g))return;b.current.add(g),y.set(g,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(O?.(),S(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:l,children:e},g)})})},EC={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function ET(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EN=function(e){var t,n=e.columnItems,r=e.columnIndex,a=e.activeItems,i=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ET(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ET(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useMemo)(function(){if(!c.trim())return n;var e=c.trim().toLowerCase();return n.filter(function(t){return t.label.toLowerCase().includes(e)})},[n,c]);return(0,v.jsxs)(mq.div,{className:EC.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[i&&(0,v.jsxs)("div",{className:EC.columnSearch,children:[(0,v.jsx)(sl,{className:EC.columnSearchIcon,size:14}),(0,v.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:EC.columnSearchInput,"aria-label":o})]}),(0,v.jsxs)("ul",{className:EC.columnList,role:"list",children:[f.map(function(e){var t,n=a[r]===e.id,i=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:EC.columnItem,"data-active":n||void 0,onMouseEnter:function(){return s(e,r)},onFocus:function(){return s(e,r)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,v.jsx)(o,{className:EC.columnItemIcon,size:16}),(0,v.jsx)("span",{className:EC.columnItemLabel,children:e.label}),i&&(0,v.jsx)(oS,{className:EC.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,v.jsx)("li",{className:EC.columnEmpty,children:"—"})]})]})};function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||EL(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E_(e){return function(e){if(Array.isArray(e))return EM(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||EL(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EL(e,t){if(e){if("string"==typeof e)return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}}var EF=function(e){var t,n,r=e.items,a=e.triggerLabel,i=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,m=EI((0,g.useState)(!1),2),h=m[0],y=m[1],b=EI((0,g.useState)([r]),2),x=b[0],j=b[1],S=EI((0,g.useState)([]),2),E=S[0],O=S[1],k=EI((0,g.useState)(null),2),A=k[0],D=k[1],P=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){h||(j([r]),O([]))},[r,h]),(0,g.useLayoutEffect)(function(){if(h&&P.current){var e=P.current.getBoundingClientRect();D("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[h,s]);var C=function(e,t){var n,r=E_(E);r[t]=e.id,(null==(n=e.children)?void 0:n.length)?j(E_(x.slice(0,t+1)).concat([e.children])):j(x.slice(0,t+1)),O(r)},T=function(e){y(!1),null==f||f(e)};return(0,v.jsxs)("div",{className:w()(EC.wrapper,p),children:[(0,v.jsxs)("button",{ref:P,type:"button",className:EC.trigger,onClick:function(){return y(function(e){return!e})},"aria-haspopup":"true","aria-expanded":h,children:[i&&(0,v.jsx)(i,{className:EC.triggerIcon,size:16}),(0,v.jsx)("span",{children:void 0===a?"Navigation":a}),(0,v.jsx)(ow,{className:w()(EC.triggerChevron,(ER(t={},EC["triggerChevron--open"],h),ER(t,EC["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,v.jsx)(EP,{children:h&&A&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:EC.overlay,onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsx)(mq.div,{className:w()(EC.panel,EC["panel--".concat(s)]),style:(ER(n={left:A.left,top:A.top,bottom:A.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),ER(n,"--cnd-column-width","16rem"),n),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,v.jsx)("div",{className:EC.panelInner,children:(0,v.jsx)(EP,{mode:"sync",children:x.map(function(e,t){return(0,v.jsx)(EN,{columnItems:e,columnIndex:t,activeItems:E,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},EB=(0,g.createContext)(null),EV=function(){var e=(0,g.useContext)(EB);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function Ez(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EW=function(e){var t,n=e.children,r=e.open,a=e.onOpenChange,i=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(null!=i&&i))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ez(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ez(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==r,m=p?r:d,h=(0,g.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,v.jsx)(EB.Provider,{value:{isOpen:m,onOpenChange:h,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:n})};function EU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E$=function(e){var t,n=e.children,r=e.container,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];if((0,g.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=a?(0,v.jsx)("div",{className:a,children:n}):n;return(0,t1.createPortal)(l,r||document.body)};let EH={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function EG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eq(e){if(Array.isArray(e))return e}function EY(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function EK(e,t){if(e){if("string"==typeof e)return EG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EG(e,t)}}var EZ=(0,g.forwardRef)(function(e,t){var n,r=Eq(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||EK(n)||EY(),a=r[0],i=r.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["className"]),l=(Eq(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||EK(i,1)||EY())[0],u=EV(),c=u.isOpen,d=u.onOpenChange,f=(0,g.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,v.jsx)(mq.div,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:w()(EH.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function EX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function EQ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}EZ.displayName="SheetOverlay";var EJ=function(e){var t=e.asChild,n=e.children,r=e.className,a=EV().onOpenChange,i=function(){return a(!0)};return t&&b().isValidElement(n)?b().cloneElement(n,EQ(EX({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(EH.triggerReset,r),children:n})},E0=function(e){var t=e.asChild,n=e.children,r=e.className,a=EV().onOpenChange,i=function(){return a(!1)};return t&&b().isValidElement(n)?b().cloneElement(n,EQ(EX({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(EH.triggerReset,r),children:n})};function E1(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&dG(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{E1(e,t)})})}function E2(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){ub(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push(fK(e,n,{transitionOverride:r}))}),Promise.all(a)},set:n=>(ub(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?E1(t,r):"string"==typeof r?E1(t,[r]):dG(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let E3=function(){let e=dD(E2);return dB(e.mount,[]),e};function E5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E4=function(e){var t,n=e.children,r=e.className,a=EV(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=E3(),f=(0,g.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return E5(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E5(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=p[0],h=p[1],y="top"===c?-1:1,b=(0,g.useCallback)(function(){return o(!1)},[o]),x=(0,g.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,n=window.innerWidth;return e=n<=640?.6*t:n<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,g.useEffect)(function(){var e=function(){return h(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,g.useEffect)(function(){return i?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:y*(m+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[i,d,m,y]),(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&i&&b()};return i&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[i,b]);var j=(0,g.useCallback)(function(e,t){var n=y*t.offset.y>m*u,r=y*t.velocity.y>800;n||r?b():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,b,u,m,y]),S=(0,g.useCallback)(function(e){e.target===f.current&&b()},[b]);if(0===m)return null;var E="top"===c?{top:-m,bottom:0}:{top:0,bottom:m};return(0,v.jsx)(E$,{children:(0,v.jsxs)("div",{className:w()(EH.container,!i&&EH["container--closed"]),children:[(0,v.jsx)(mq.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:S,className:EH.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,v.jsxs)(mq.div,{drag:"y",dragConstraints:E,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:j,animate:d,initial:{y:y*(m+50)},className:w()(EH.panel,EH["panel--".concat(c)],void 0===r?"":r),style:{height:m},children:["bottom"===c&&(0,v.jsx)("div",{className:EH.handleRow,children:(0,v.jsx)("div",{className:EH.handle})}),(0,v.jsx)("div",{className:EH.body,children:(0,v.jsx)("div",{className:EH.scrollArea,children:n})}),"top"===c&&(0,v.jsx)("div",{className:EH.handleRow,children:(0,v.jsx)("div",{className:EH.handle})})]})]})})},E6=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(EH.header,n),children:t})},E8=function(e){var t=e.children,n=e.className;return(0,v.jsx)("h3",{className:w()(EH.title,n),children:t})},E9=function(e){var t=e.children,n=e.className;return(0,v.jsx)("p",{className:w()(EH.description,n),children:t})},E7=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(EH.footer,n),children:t})},Oe=EW;function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Oa=function(e){var t=e.items,n=e.title,r=e.hint,a=void 0===r?"Glisser une carte vers le bas pour fermer":r,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,m=e.accentColor,h=Or((0,g.useState)(void 0!==o&&o),2),y=h[0],b=h[1],x=Or((0,g.useState)(!1),2),j=x[0],S=x[1],E=void 0!==i,O=E?i:y,k=function(e){null==s||s(e),E||b(e)},A=function(e,t){t.offset.y>100&&O&&(k(!1),S(!1))},D=(t.length-1)/2,P=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){On(e,t,n[t])})}return e}({},m?On({},"--fg-accent",m):void 0,u);return(0,v.jsx)("div",{className:w()("mf1PQJZJIkTcC6ieajp06g==",l),style:P,children:(0,v.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,v.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,v.jsxs)(mq.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,v.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,v.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,v.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,v.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var n=t-D,r=1-.03*Math.abs(n);return(0,v.jsx)(mq.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:A,className:w()("x+8qV1iWMRfwOVcjmG22XA==",On({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*n,rotate:0,scale:1.05,zIndex:50}:{y:j?-10*n-40:-5*n,x:j?30*n:3*n,rotate:j?8*n:3*n,scale:r,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,v.jsx)(mq.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:j?-25:0,y:10*!!j,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},onClick:function(){return k(!0)},children:(0,v.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,v.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,v.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,v.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===n?"Dossier":n})})]})})]}),a&&(0,v.jsx)(mq.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:a})]})})};function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ol(e){var t=e.items,n=e.className,r=e.style,a=Os((0,g.useState)(null),2),i=a[0],o=a[1],s=Os((0,g.useState)(null),2),l=s[0],u=s[1],c=function(e){u(i),o(e)},d=function(){u(i),o(null)};return(0,g.useEffect)(function(){if(i){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[i]),(0,v.jsxs)("div",{className:w()("cwEvWWvWR1VRjUW5EIdhaA==",n),style:r,children:[t.map(function(e){var t,n=(null==i?void 0:i.id)===e.id,r=!n&&(null==l?void 0:l.id)===e.id;return(0,v.jsx)("div",{className:e.className,children:(0,v.jsxs)(mq.div,{role:"button",tabIndex:0,"aria-pressed":n,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:w()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(Oo(t={},"wpWM12DNjfwunfLOmmaBnQ==",n),Oo(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!n),Oo(t,"_1zQI0+1IAUASZtCPebAKvg==",r),t)),layoutId:"layout-grid-card-".concat(e.id),children:[n&&(0,v.jsx)(Oc,{item:i}),(0,v.jsx)(Ou,{item:e})]})},e.id)}),(0,v.jsx)(mq.div,{onClick:d,className:w()("SfuCW8U7MUzYHVthm3806Q==",Oo({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function Ou(e){var t=e.item;return(0,v.jsx)(mq.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function Oc(e){var t=e.item;return(0,v.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,v.jsx)(mq.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,v.jsx)(mq.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let Od="VL60poBQJU5GXBc55DtOgg==",Of="Z-QYx9GU0-9PvqywVAWDOw==",Op="k5GwrlmSGQEXCHiD9NJSgg==",Om="Sd+oehXhY2IvCEPY7LquSQ==",Oh="_2TUXiGgesFw6MMltbcDw7g==",Oy="aaY-ypFw8QYOvR34L1Ad3g==",Ov="_0FXGSaE3Vf6Xfst6Bn-1XQ==",Og="J+6pxxgImJiBa+5uolSRLA==",Ob="-cMLmEDNbTRZO+q9J5EnZQ==",Ox="pNL9YXjomLOkN1Sc1NOXsw==",Ow="YY-ar9Letsk0I16pNK2koQ==";var Oj=function(){return(0,v.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,v.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function OS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ok=function(e){var t=e.title,n=e.coverImageUrl,r=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=OO((0,g.useState)(!1),2),f=d[0],p=d[1],m=OO((0,g.useState)(null),2),h=m[0],y=m[1],b=OO((0,g.useState)(null),2),x=b[0],j=b[1],S=OO((0,g.useState)(0),2),E=S[0],O=S[1],k=OO((0,g.useState)("translateY(0px)"),2),A=k[0],D=k[1],P=(0,g.useRef)(null),C=(0,g.useRef)(new Map),T=null!==h,N=f||T;(0,g.useEffect)(function(){if(null!==h){var e=function(){var e=C.current.get(h);e&&P.current&&O(e.getBoundingClientRect().top-P.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[h]);var M=function(e){if(e.detail){var t=C.current.get(e.id);if(t&&P.current){var n=window.innerHeight-t.getBoundingClientRect().bottom+P.current.offsetTop-390;D("translateY(".concat(n,"px)"))}y(e.id),j(e)}};return(0,v.jsx)("div",{className:w()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,v.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,v.jsxs)("div",{ref:P,className:w()("_09AECjHCq6I9nuofSaItrA==",OE({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,v.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,v.jsxs)("div",{className:Od,children:[(0,v.jsx)("img",{className:Of,src:n,alt:""}),(0,v.jsx)("img",{className:w()(Of,Op),src:n,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,v.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,v.jsx)("h1",{className:Om,children:t}),(0,v.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[r&&(0,v.jsx)("p",{className:Oh,children:r}),r&&a&&(0,v.jsx)("div",{className:Ov}),a&&(0,v.jsx)("p",{className:Oh,children:a}),a&&i&&(0,v.jsx)("div",{className:Ov}),i&&(0,v.jsx)("p",{className:Oh,children:i})]})]}),(0,v.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,v.jsxs)("div",{ref:(t=e.id,function(e){e?C.current.set(t,e):C.current.delete(t)}),className:Og,onClick:function(){return M(e)},children:[(0,v.jsx)("p",{className:Oy,children:e.title}),(0,v.jsxs)("div",{className:Ob,children:[(0,v.jsx)("button",{type:"button",className:Ox,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,v.jsx)(o4,{size:20})}),e.meta&&(0,v.jsx)("p",{className:Oh,children:e.meta})]})]},e.id)})})]})]}),x&&(0,v.jsxs)("div",{className:w()("T5TjonuT8CpL6L9LnfYUbg==",OE({},"Yw84bwYkOFxUPSl8uIlHYA==",T)),style:{top:"".concat(E,"px"),transform:A},children:[(0,v.jsxs)("div",{className:Og,children:[(0,v.jsx)("p",{className:Oy,children:x.title}),(0,v.jsxs)("div",{className:Ob,children:[(0,v.jsx)("button",{type:"button",className:Ox,onClick:function(){D("translateY(0px)"),y(null)},"aria-label":"Fermer",children:(0,v.jsx)(oa,{size:20,className:Ow})}),x.meta&&(0,v.jsx)("p",{className:Oh,children:x.meta})]})]}),(0,v.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,v.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,v.jsx)(Oj,{})]}),s&&(0,v.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":T?"none":void 0},children:[(0,v.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,v.jsx)(oa,{size:24,className:w()(OE({},Ow,f))})}),(0,v.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,v.jsxs)("div",{className:Od,children:[(0,v.jsx)("h1",{className:Om,children:s.name}),(0,v.jsx)("img",{className:Of,src:s.photoUrl,alt:""}),(0,v.jsx)("img",{className:w()(Of,Op),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,v.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,v.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,v.jsx)("p",{className:w()(Oh,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,v.jsx)("div",{className:Ov}),s.itemCountLabel&&(0,v.jsx)("p",{className:Oh,children:s.itemCountLabel})]}),s.statLabel&&(0,v.jsx)("p",{className:Oh,children:s.statLabel})]}),s.description&&(0,v.jsx)("p",{className:Oy,children:s.description})]})]}),(0,v.jsx)(Oj,{}),(0,v.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})};function OA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OD(e,t){if(e){if("string"==typeof e)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}var OP=/-page-\d+$/;function OC(){return new Set((0,ht.getMountedApps)().map(function(e){return e.replace(OP,"")}))}function OT(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,g.useState)(OC))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||OD(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,g.useEffect)(function(){var e=function(){return r(function(e){var t=OC();return e.size===t.size&&((function(e){if(Array.isArray(e))return OA(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).every(function(e){return t.has(e)})?e:t})};return window.addEventListener("single-spa:routing-event",e),e(),function(){return window.removeEventListener("single-spa:routing-event",e)}},[]),n}function ON(e){var t=e.moduleName,n=e.meta;return n.titleKey?(0,V.t)(t,n.titleKey,n.title):n.title}function OM(e,t){var n=(0,j.useAssignedExtensions)(hr.As[e]),r=OT();return(0,g.useMemo)(function(){return n.map(function(e,t){return{extension:e,index:t}}).filter(function(e){var t=e.extension;return(0,hr.oW)(t.meta)}).filter(function(n){var r,a=n.extension;return!t||"bottom"!==e||(null!=(r=a.meta.rail)?r:"left")===t}).filter(function(t){var n=t.extension;return"right"===e||!0===n.meta.global||r.has(n.moduleName)}).sort(function(e,t){var n,r;return(null!=(n=e.extension.meta.order)?n:e.index)-(null!=(r=t.extension.meta.order)?r:t.index)||e.index-t.index}).map(function(e){var t=e.extension;return{id:t.name,moduleName:t.moduleName,meta:t.meta}})},[n,r,e,t])}var OR=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e,t,n){return!!e&&""!==e.trim()&&n.indexOf(e)===t}).join(" ").trim()},OI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function O_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OL(e){if(Array.isArray(e))return e}function OF(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function OB(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function OV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Oz(e,t){return OL(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||OU(e,t)||OB()}function OW(e){return function(e){if(Array.isArray(e))return O_(e)}(e)||OF(e)||OU(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OU(e,t){if(e){if("string"==typeof e)return O_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O_(e,t)}}var O$=(0,g.forwardRef)(function(e,t){var n,r,a,i=OL(n=[e,t])||OF(n)||OU(n)||OB(),o=i[0],s=i.slice(1),l=o.color,u=o.size,c=void 0===u?24:u,d=o.strokeWidth,f=void 0===d?2:d,p=o.absoluteStrokeWidth,m=o.className,h=o.children,y=o.iconNode,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),b=Oz(s,1)[0];return(0,g.createElement)("svg",OV((r=OV({ref:b},OI),a=a={width:c,height:c,stroke:void 0===l?"currentColor":l,strokeWidth:p?24*Number(f)/Number(c):f,className:OR("lucide",void 0===m?"":m)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r),v),OW(y.map(function(e){var t=Oz(e,2),n=t[0],r=t[1];return(0,g.createElement)(n,r)})).concat(OW(Array.isArray(h)?h:[h])))});function OH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OG(e){if(Array.isArray(e))return e}function Oq(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function OY(e,t){if(e){if("string"==typeof e)return OH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OH(e,t)}}var OK=function(e,t){var n=(0,g.forwardRef)(function(n,r){var a,i=OG(a=[n,r])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||OY(a)||Oq(),o=i[0],s=i.slice(1),l=o.className,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["className"]),c=(OG(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||OY(s,1)||Oq())[0];return(0,g.createElement)(O$,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:c,iconNode:t,className:OR("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l)},u))});return n.displayName="".concat(e),n},OZ=OK("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),OX=OK("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),OQ=OK("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),OJ=OK("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),O0=OK("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),O1=OK("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),O2=OK("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),O3=OK("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),O5=OK("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),O4=OK("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),O6=OK("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),O8=OK("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]),O9=OK("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),O7=OK("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),ke=OK("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),kt=OK("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),kn=OK("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),kr=OK("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),ka=OK("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),ki=OK("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),ko=OK("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),ks=OK("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),kl=OK("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]),ku=OK("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),kc=OK("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),kd=OK("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),kf=OK("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),kp=OK("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]),km=OK("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),kh={BookOpen:OZ,Bell:OX,Bot:OQ,Building2:OJ,CalendarDays:O0,CircleHelp:O1,Folder:O2,FolderTree:O3,House:O5,Info:O4,LayoutGrid:O6,ListTree:O8,MapPin:O9,Megaphone:O7,Newspaper:ke,Search:kt,Settings:kn,Terminal:kr,Users:ka,Calendar:ki,CalendarCheck:ko,Compass:ks,Contact:kl,FileCheck:ku,FileText:kc,Globe:kd,Layers:kf,Radio:kp,Star:km,Zap:OK("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])};function ky(e){return e?kh[e]:void 0}function kv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kv(e,t,n[t])})}return e}function kb(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var kx="egen-workbench-layout",kw=["left","bottom","right"],kj={left:280,right:320,bottom:240},kS={left:{min:200,max:640},right:{min:220,max:640},bottom:{min:120,max:720}};function kE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:window.innerWidth,height:window.innerHeight},r=kS[e],a=r.min,i=r.max,o=Math.floor(("bottom"===e?.7*n.height:.5*n.width)||i),s=Math.max(a,Math.min(i,o));return Number.isFinite(t)?Math.round(Math.min(s,Math.max(a,t))):kj[e]}var kO=(0,hn.getGlobalStore)("workbench",function(){var e={sizes:kg({},kj),active:{left:null,right:null,bottom:null}};try{var t=window.localStorage.getItem(kx);if(!t)return e;var n=JSON.parse(t),r=!0,a=!1,i=void 0;try{for(var o,s=kw[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l,u,c=o.value,d=null==n||null==(l=n.sizes)?void 0:l[c];"number"==typeof d&&(e.sizes[c]=kE(c,d));var f=null==n||null==(u=n.active)?void 0:u[c];"string"==typeof f&&f.length>0&&(e.active[c]=f)}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}}catch(e){}return e}());function kk(e,t){var n=kO.getState().active;kO.setState({active:kb(kg({},n),kv({},e,n[e]===t?null:t))})}function kA(e){var t=kO.getState().active;null!==t[e]&&kO.setState({active:kb(kg({},t),kv({},e,null))})}function kD(e,t){var n=kO.getState().sizes,r=kE(e,t);n[e]!==r&&kO.setState({sizes:kb(kg({},n),kv({},e,r))})}function kP(e){kD(e,kj[e])}function kC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kC(e,t,n[t])})}return e}kO.subscribe(function(e){try{window.localStorage.setItem(kx,JSON.stringify(e))}catch(e){}});var kN=(0,hn.getGlobalStore)("workbench-badges",{});function kM(e,t){var n,r,a=kN.getState();if(null==t||0===t||""===t){if(!(e in a))return;var i=kT({},a);delete i[e],kN.setState(i,!0);return}a[e]!==t&&kN.setState((n=kT({},a),r=null!=(r=kC({},e,t))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function kR(e){return"number"==typeof e&&e>99?"99+":String(e)}let kI={rail:"U-q0gY3cs3x5fbfEPnKCCQ==",railGroup:"ESBJAakRqUW3PKIR5eV7Ww==",railSpacer:"_80Qn0Gk7qaDa88KjnPoGaQ==",railBadge:"C7TqDakmZFR78UB-J0UZ8w==",railButton:"C1ayWSxgdA7nzrIoTIKRyA==",zone:"u7xBFkQcPLpLJlBCCG-wRw==",zoneHeader:"H4atJr2Xz56lwQF+UBpF9A==",zoneBody:"WhUjoxzwMEo+qqZXOwgINQ==","zone-left":"JG5S5j2hPjiJYAueOOpoZA==","zone-right":"IMXowfKwDYTJochm61bF3w==","zone-bottom":"tQPrkL3qbV2IAVC5VLJBrQ==",zoneTitle:"hjXw0i5pEu+GS+zHg-eDqw==",zoneHeaderTools:"pt+li0reVnJAMCPiIuAeOw==",zoneClose:"tyRTBpax-KejsMfsJ+bp6w==",zoneSlot:"Je+gZyA7+g660GqeJM+DTQ==",splitter:"qtg-hGW1DTeZScDybl76hQ==","splitter-left":"l2-471oYB4znZs5ivaNk4g==","splitter-right":"l9zLlul-KnjOFEeoewlqkQ==","splitter-bottom":"xtsAK0rdIruEBnmIik4+wQ=="};function k_(e){var t=e.anchor,n=e.label,r=OM(t,e.rail),a=(0,j.useStore)(kO).active[t];return 0===r.length?null:(0,v.jsx)("div",{role:"group","aria-label":n,"data-anchor":t,className:"".concat(kI.railGroup," egen-anim-stagger egen-anim-stagger--fade"),children:r.map(function(e){return(0,v.jsx)(kL,{tool:e,active:e.id===a,onClick:function(){return kk(t,e.id)}},e.id)})})}function kL(e){var t=e.tool,n=e.active,r=e.onClick,a=ON(t),i=ky(t.meta.icon),o=(0,j.useStore)(kN)[t.id];return(0,v.jsxs)("button",{type:"button",className:kI.railButton,"aria-pressed":n,"aria-label":a,title:a,"data-active":n,onClick:r,children:[i?(0,v.jsx)(i,{size:18,"aria-hidden":"true"}):(0,v.jsx)("span",{"aria-hidden":"true",children:a.charAt(0).toUpperCase()}),void 0!==o&&(0,v.jsx)("span",{className:kI.railBadge,"data-testid":"workbench-badge-".concat(t.id),children:kR(o)})]})}function kF(){return(0,v.jsxs)("nav",{"aria-label":"Outils de l'application","data-testid":"workbench-rail-left",className:kI.rail,children:[(0,v.jsx)(k_,{anchor:"left",label:"Panneau lat\xe9ral"}),(0,v.jsx)("span",{className:kI.railSpacer}),(0,v.jsx)(k_,{anchor:"bottom",rail:"left",label:"Panneau inf\xe9rieur"})]})}function kB(){return(0,v.jsxs)("nav",{"aria-label":"Outils globaux","data-testid":"workbench-rail-right",className:kI.rail,children:[(0,v.jsx)(k_,{anchor:"right",label:"Panneau droit"}),(0,v.jsx)("span",{className:kI.railSpacer}),(0,v.jsx)(k_,{anchor:"bottom",rail:"right",label:"Panneau inf\xe9rieur"})]})}var kV=OK("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kz="data-workbench-resizing";function kW(e){var t=e.anchor,n=e.label,r=(0,j.useStore)(kO).sizes[t],a=(0,g.useRef)(null),i="bottom"!==t,o=function(e){var t,n;a.current&&(a.current=null,null==(t=(n=e.currentTarget).releasePointerCapture)||t.call(n,e.pointerId),document.documentElement.removeAttribute(kz))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":n,"aria-orientation":i?"vertical":"horizontal","aria-valuenow":r,"aria-valuemin":kE(t,0),"aria-valuemax":kE(t,Number.MAX_SAFE_INTEGER),"data-anchor":t,className:"".concat(kI.splitter," ").concat(kI["splitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var n,r,i,o,s=null!=(n=null==(r=e.currentTarget.parentElement)?void 0:r.parentElement)?n:e.currentTarget.parentElement;if(s){var l=s.getBoundingClientRect(),u="left"===t?l.left:"right"===t?l.right:l.bottom,c="left"===t?l.right:"right"===t?l.left:l.top;a.current={edge:u,grab:("bottom"===t?e.clientY:e.clientX)-c},null==(i=(o=e.currentTarget).setPointerCapture)||i.call(o,e.pointerId),document.documentElement.setAttribute(kz,t),e.preventDefault()}}},onPointerMove:function(e){if(a.current){var n,r,i,o;kD(t,(n=e.clientX,r=e.clientY,i=a.current.edge,o=a.current.grab,"left"===t?n-o-i:"right"===t?i-(n-o):i-(r-o)))}},onPointerUp:o,onPointerCancel:o,onDoubleClick:function(){return kP(t)},onKeyDown:function(e){var n="left"===t?"ArrowRight":"right"===t?"ArrowLeft":"ArrowUp",r="left"===t?"ArrowLeft":"right"===t?"ArrowRight":"ArrowDown";if(e.key===n)kD(t,kO.getState().sizes[t]+16);else if(e.key===r)kD(t,kO.getState().sizes[t]-16);else if("Home"===e.key)kD(t,0);else{if("End"!==e.key)return;kD(t,Number.MAX_SAFE_INTEGER)}e.preventDefault()}})}function kU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k$="data-tool-window-header";function kH(e){var t,n=e.children,r=(0,g.useRef)(null),a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return(0,g.useLayoutEffect)(function(){var e,t,n=null==(t=r.current)?void 0:t.closest("aside[data-anchor]");o(null!=(e=null==n?void 0:n.querySelector("[".concat(k$,"]")))?e:null)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{ref:r,hidden:!0}),void 0===i?null:null===i?n:(0,t1.createPortal)(n,i)]})}function kG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kq={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench"},kY={left:"--egen-zone-left-width",right:"--egen-zone-right-width",bottom:"--egen-zone-bottom-height"},kK={left:"egen-anim-slide-in-from-left",right:"egen-anim-slide-in-from-right",bottom:"egen-anim-slide-in-from-bottom"},kZ={left:"egen-anim-slide-out-to-left",right:"egen-anim-slide-out-to-right",bottom:"egen-anim-slide-out-to-bottom"};function kX(e){var t,n,r=e.anchor,a=OM(r),i=(0,j.useStore)(kO),o=i.active,s=i.sizes,l=o[r],u=s[r],c=a.find(function(e){return e.id===l}),d=!!c,f=(0,g.useRef)(void 0),p=(0,g.useRef)(!1),m=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)("open"))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kG(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kG(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=m[0],y=m[1];c&&(f.current=c);var b=null!=c?c:"closing"===h?f.current:void 0,x=!!b;(0,g.useLayoutEffect)(function(){if(d!==p.current){p.current=d,y(d?"opening":"closing");var e=window.setTimeout(function(){d||(f.current=void 0),y("open")},300);return function(){return window.clearTimeout(e)}}},[d]),(0,g.useEffect)(function(){document.documentElement.style.setProperty(kY[r],d?"".concat(u,"px"):"0px")},[r,d,u]),(0,g.useEffect)(function(){return function(){document.documentElement.style.removeProperty(kY[r])}},[r]);var w=null==b?void 0:b.id,S=(0,g.useCallback)(function(e){return e.filter(function(e){return e.name===w})},[w]),E=b?ON(b):"",O="closing"===h?kZ[r]:"opening"===h?kK[r]:"";return(0,v.jsx)("aside",{"data-testid":"workbench-zone-".concat(r),"data-anchor":r,"data-open":d,"data-phase":h,"aria-label":E||void 0,hidden:!x,style:{"--egen-zone-inner-size":"".concat(u,"px")},className:"".concat(kI.zone," ").concat(kI["zone-".concat(r)]," ").concat(O),children:x&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("header",{className:kI.zoneHeader,children:[(0,v.jsx)("h2",{className:kI.zoneTitle,children:E}),(0,v.jsx)("div",(k$ in(n={className:kI.zoneHeaderTools})?Object.defineProperty(n,k$,{value:"",enumerable:!0,configurable:!0,writable:!0}):n[k$]="",n)),(0,v.jsx)("button",{type:"button",className:kI.zoneClose,"aria-label":"Fermer ".concat(E),title:"Fermer ".concat(E),onClick:function(){return kA(r)},children:(0,v.jsx)(kV,{size:14,"aria-hidden":"true"})})]}),(0,v.jsx)("div",{className:"".concat(kI.zoneBody," egen-anim-fade-in"),children:(0,v.jsx)(j.ComponentContext.Provider,{value:kq,children:(0,v.jsx)(j.ExtensionSlot,{name:hr.As[r],select:S,className:kI.zoneSlot})})},w),"closing"!==h&&(0,v.jsx)(kW,{anchor:r,label:"Redimensionner ".concat(E)})]})})}var kQ={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench",strictMode:!1},kJ=(0,j.egenComponentDecorator)(kQ)(kF),k0=(0,j.egenComponentDecorator)(kQ)(kB),k1=(0,j.egenComponentDecorator)(kQ)(kX);function k2(e){var t=e.railLeft,n=e.railRight,r=e.zoneLeft,a=e.zoneRight,i=e.zoneBottom;t&&(0,hF.createRoot)(t).render((0,v.jsx)(kJ,{})),n&&(0,hF.createRoot)(n).render((0,v.jsx)(k0,{})),r&&(0,hF.createRoot)(r).render((0,v.jsx)(k1,{anchor:"left"})),a&&(0,hF.createRoot)(a).render((0,v.jsx)(k1,{anchor:"right"})),i&&(0,hF.createRoot)(i).render((0,v.jsx)(k1,{anchor:"bottom"}))}function k3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||k6(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k4(e){return function(e){if(Array.isArray(e))return k3(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k6(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k6(e,t){if(e){if("string"==typeof e)return k3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k3(e,t)}}var k8=function(e,t,n){return t?(0,V.t)(e,t,n):n};function k9(){var e=window.getEgenSpaBase().replace(/\/$/,""),t=window.location.pathname;return(t.startsWith(e)?t.slice(e.length):t).replace(/^\/+|\/+$/g,"")}function k7(e){var t,n,r,a=e.section,i=(0,j.useAssignedExtensions)(hr.H9),o=(n=(t=k5((0,g.useState)(k9),2))[0],r=t[1],(0,g.useEffect)(function(){var e=function(){return r(k9())};return window.addEventListener("single-spa:routing-event",e),window.addEventListener("popstate",e),e(),function(){window.removeEventListener("single-spa:routing-event",e),window.removeEventListener("popstate",e)}},[]),n),s=k5((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useMemo)(function(){var e=new Map,t=!0,n=!1,r=void 0;try{for(var o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l=o.value;if((0,hr.DK)(l.meta)&&l.meta.section===a){var u=l.meta,c=null!=(f=u.group)?f:"",d=e.get(c);if(!d){var f,p,m=u.group?null!=(p=u.groupLabel)?p:u.group:void 0;d={key:c,label:m?k8(l.moduleName,u.groupLabelKey,m):void 0,entries:[]},e.set(c,d)}d.entries.push({name:l.name,moduleName:l.moduleName,meta:u})}}}catch(e){n=!0,r=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw r}}return k4(e.values())},[i,a]),d=(0,g.useMemo)(function(){var e,t,n=c.flatMap(function(e){return e.entries}).filter(function(e){var t;return o===(t=e.meta.route)||o.startsWith("".concat(t,"/"))});if(0===n.length)return null;var r=(e=Math).max.apply(e,k4(n.map(function(e){return e.meta.route.length}))),a=n.filter(function(e){return e.meta.route.length===r});return(null!=(t=a.find(function(e){return e.name===l}))?t:a[0]).name},[c,o,l]);return 0===c.length?null:(0,v.jsx)("nav",{className:"_7eztyhT6g8BBF+b2zwNxzQ==","data-testid":"section-nav-".concat(a),children:c.map(function(e){return(0,v.jsxs)("div",{className:"_39E0CGSd4CEdvjRf4uhk1A==",role:"group","aria-label":e.label,children:[e.label&&(0,v.jsx)("h3",{className:"Qe0xVBpoxvmDH+4PTCE6sA==",children:e.label}),(0,v.jsx)("ul",{className:"aTi-X-2m0FLjgtWqGpnRAQ==",children:e.entries.map(function(e){var t=ky(e.meta.icon),n=k8(e.moduleName,e.meta.labelKey,e.meta.label),r=e.meta.description?k8(e.moduleName,e.meta.descriptionKey,e.meta.description):void 0;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:"znzmYEQH9TLAv93dGs-RHw==","data-active":e.name===d,"aria-current":e.name===d?"page":void 0,title:r,onClick:function(){u(e.name),(0,ge.oo)({to:"${egenSpaBase}/".concat(e.meta.route)})},children:[t&&(0,v.jsx)(t,{size:16,"aria-hidden":"true",className:"kE-ZZCWIUUr-U9WBp1ALhQ=="}),(0,v.jsx)("span",{className:"K-KnQoVYGW8SaVVvvZhYAg==",children:n})]})},e.name)})})]},e.key)})})}var Ae={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},warp:{initial:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100},animate:{opacity:1,rotateX:0,skewY:0,scaleY:1,scaleX:1,y:0,transition:{duration:.35,ease:[.59,0,.35,1],y:{type:"spring",visualDuration:.7,bounce:.2}}},exit:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100,transition:{duration:.35,ease:[.59,0,.35,1]}}},none:{initial:{},animate:{},exit:{}}},At={warp:{transformPerspective:1e3,originX:.5,originY:0}};function An(){cN.current||cR();let[e]=(0,g.useState)(cT.current);return e}let Ar={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",warpGlow:"lYwavaEqP5zZdSgBjnAJMA==",warpWave:"jRakhK4YumTwCC7BXtuFBg==",warpWaveTint:"cU-bGBRAWHh2yEPWcXkLIQ==",warpBlob:"h0LgItaR7oviJoeBaSTnpg==",warpBlobA:"QN0RGZu3WONOa+NKEx3Yfg==",warpBlobB:"xt+VET70amAh1iOdz50cJw==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};var Aa=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({opacity:.9,transition:{duration:.5,scale:{duration:15,repeat:1/0,repeatType:"loop",ease:"easeInOut",delay:.35}}},e?{}:{scale:[1,.7,1]})},Ai=function(){var e=An();return(0,v.jsxs)("div",{className:Ar.warpGlow,"aria-hidden":"true",children:[(0,v.jsx)(mq.div,{className:Ar.warpWave,initial:{scale:0,opacity:1},animate:{scale:e?1:10,opacity:.2,transition:{duration:.5,opacity:{duration:.5,ease:"easeInOut"}}},exit:{scale:0,opacity:1,transition:{duration:.25}}}),(0,v.jsx)(mq.div,{className:"".concat(Ar.warpBlob," ").concat(Ar.warpBlobA),initial:{opacity:0},animate:Aa(e),exit:{opacity:0,transition:{duration:.25}}}),(0,v.jsx)(mq.div,{className:"".concat(Ar.warpBlob," ").concat(Ar.warpBlobB),initial:{opacity:0},animate:Aa(e),exit:{opacity:0,transition:{duration:.25}}})]})};function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function As(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){As(e,t,n[t])})}return e}function Au(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ac=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ad=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Af=function(e){var t,n,r,a,i,o,s,l,u,c=e.open,d=e.defaultOpen,f=e.onOpenChange,p=e.trigger,m=e.children,h=e.showCloseButton,y=e.renderCloseButton,b=e.cardVariant,x=e.cardProps,j=e.draggable,S=void 0!==j&&j,E=e.dockable,O=void 0!==E&&E,k=e.dockIcon,A=e.dockEdgeThreshold,D=void 0===A?80:A,P=e.dockUndockDistance,C=void 0===P?120:P,T=e.dockSize,N=void 0===T?56:T,M=e.closeOnOverlayClick,R=e.closeOnEscape,I=void 0===R||R,_=e.showOverlay,F=e.lockScroll,B=void 0===F||F,V=e.animation,z=void 0===V?"scale":V,W=e.overlayAnimation,U=e.overlayEffect,$=e.warpColor,H=e.className,G=e.style,q=e.overlayClassName,Y=Au((0,g.useState)(void 0!==d&&d),2),K=Y[0],Z=Y[1],X=Au((0,g.useState)(!1),2),Q=X[0],J=X[1],ee=Au((0,g.useState)(null),2),et=ee[0],en=ee[1],er=(0,g.useRef)(null),ea=(0,g.useId)(),ei=void 0!==c,eo=ei?c:K,es=(0,g.useCallback)(function(e){null==f||f(e),ei||Z(e)},[f,ei]),el=(0,g.useCallback)(function(){return es(!1)},[es]);(0,g.useEffect)(function(){return J(!0)},[]),(0,g.useEffect)(function(){eo&&en(null)},[eo]);var eu=(0,g.useCallback)(function(){if(O&&er.current&&"u">typeof window){var e=er.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;if(et)return void(Math.abs(t-("left"===et.side?0:window.innerWidth))>C?en(null):en({side:et.side,y:Ac(n,N)}));t<=D?en({side:"left",y:Ac(n,N)}):t>=window.innerWidth-D&&en({side:"right",y:Ac(n,N)})}},[O,et,D,C,N]);(0,g.useEffect)(function(){if(eo&&B)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[eo,B]),(0,g.useEffect)(function(){if(eo&&I){var e=function(e){"Escape"===e.key&&el()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[eo,I,el]);var ec=Ad(z)?z:{preset:z},ed=null!=(r=ec.variants)?r:Ae[null!=(a=ec.preset)?a:"scale"],ef={duration:null!=(i=ec.duration)?i:.25,ease:null!=(o=ec.ease)?o:[.16,1,.3,1]},ep=ec.variants?void 0:null!=(s=ec.preset)?s:"scale",em=ep?At[ep]:void 0,eh=null!=U?U:"warp"===ep?"warp":"none",ey={duration:null!=(l=null==W?void 0:W.duration)?l:.2,ease:null!=(u=null==W?void 0:W.ease)?u:"easeOut"},ev=(0,v.jsx)(EP,{children:eo&&(0,v.jsxs)("div",{className:Ar.root,children:[(void 0===_||_)&&!et&&(0,v.jsx)(mq.div,{className:w()(Ar.overlay,q),style:"warp"===eh?{"--card-modal-warp-color":null!=$?$:"var(--colors-error-500)"}:void 0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ey,onClick:void 0===M||M?el:void 0,"aria-hidden":"true",children:"warp"===eh&&(0,v.jsx)(Ai,{})}),et?(0,v.jsx)(mq.div,{ref:er,className:w()(Ar.dockBubble,Ar["dockBubble--".concat(et.side)]),style:As({top:et.y,width:N,height:N},et.side,-(N/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eu,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&en(null)},children:null!=k?k:(0,v.jsx)(oQ,{size:20})}):(0,v.jsx)("div",{className:Ar.centerLayer,children:(0,v.jsx)(mq.div,{ref:er,role:"dialog","aria-modal":"true","aria-labelledby":(null==x?void 0:x.title)?ea:void 0,className:w()(Ar.panel,H),style:Al({},em,G),variants:ed,initial:"initial",animate:"animate",exit:"exit",transition:ef,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:O?eu:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,v.jsxs)(L,(t=Al({variant:void 0===b?"default":b},x),n=n={children:[(void 0===h||h)&&(y?y(el):(0,v.jsx)("button",{type:"button",className:Ar.closeButton,onClick:el,"aria-label":"Fermer",children:(0,v.jsx)(oO,{size:18})})),m]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})})]})});return(0,v.jsxs)(v.Fragment,{children:[p&&(0,v.jsx)("span",{className:Ar.triggerWrap,onClick:function(){return es(!0)},children:p}),Q&&(0,t1.createPortal)(ev,document.body)]})},Ap=(0,g.createContext)(null);function Am(){var e=(0,g.useContext)(Ap);if(!e)throw Error("Select compound components must be used within <Select>");return e}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e){var t,n=e.children,r=e.options,a=e.selectedOptionId,i=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ah(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ah(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(null),y=void 0!==o,b=y?o:p,x=(0,g.useCallback)(function(e){null==s||s(e),y||m(e)},[s,y]),w=(0,g.useMemo)(function(){var e;return a&&null!=(e=r.find(function(e){return u(e)===a}))?e:r[0]},[r,a,u]),j=(0,g.useCallback)(function(e){null==i||i(e),x(!1)},[i,x]);return(0,v.jsx)(Ap.Provider,{value:{open:b,setOpen:x,selectedOption:w,options:r,onOptionSelect:j,getOptionId:u,getOptionName:d,triggerRef:h},children:n})}function Av(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ag=function(e){var t,n=e.src,r=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Av(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Av(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return n&&!i?(0,v.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:n,alt:"",onError:function(){return o(!0)}}):(0,v.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:r.charAt(0).toUpperCase()})};function Ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ax=function(e){var t,n,r=e.className,a=e.renderTrigger,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Am(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,v.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ab(e,t,n[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:w()("t3j-WppHuYF4Q80G8ssYTw==",r),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),n=n={children:[a?a(d,u):(0,v.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,v.jsxs)(v.Fragment,{children:[(void 0===i||i)&&(0,v.jsx)(Ag,{src:d.logo,name:f(d)}),(0,v.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,v.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,v.jsx)(ow,{className:w()("Mx+cKK19Fg1ZkYsq9XTF+Q==",Ab({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function Aw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Aw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var AE=function(e){var t=e.className,n=e.style,r=e.renderOption,a=e.title,i=void 0===a?"Options":a,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,m=Am(),h=m.open,y=m.setOpen,b=m.options,x=m.selectedOption,j=m.onOptionSelect,S=m.getOptionId,E=m.getOptionName,O=m.triggerRef,k=AS((0,g.useState)(""),2),A=k[0],D=k[1],P=AS((0,g.useState)(null),2),C=P[0],T=P[1],N=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){if(h&&O.current){var e=O.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[h,O]),(0,g.useLayoutEffect)(function(){if(h){var e=function(e){var t,n,r=e.target;(null==(t=N.current)?void 0:t.contains(r))||(null==(n=O.current)?void 0:n.contains(r))||y(!1)},t=function(e){"Escape"===e.key&&y(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[h,y,O]),(0,g.useLayoutEffect)(function(){null==u||u(A)},[A,u]);var M=(0,g.useMemo)(function(){if(!A.trim())return b;var e=A.trim().toLowerCase();return b.filter(function(t){return E(t).toLowerCase().includes(e)})},[b,A,E]);return(0,v.jsx)(EP,{children:h&&C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsxs)(mq.div,{ref:N,role:"listbox",className:w()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Aj(e,t,n[t])})}return e}({top:C.top,left:C.left,minWidth:C.width},n),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[i&&(0,v.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,v.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:i})}),void 0!==o&&o&&(0,v.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,v.jsx)(sl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,v.jsx)("input",{type:"search",value:A,onChange:function(e){return D(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,v.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===M.length?(0,v.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):M.map(function(e){var t=!!(x&&S(x)===S(e));return(0,v.jsx)("button",{type:"button",role:"option","aria-selected":t,className:w()("mqfrCZDVzn25GOVXds14vw==",Aj({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return j(e)},children:r?r(e,t):(0,v.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,v.jsx)(Ag,{src:e.logo,name:E(e)}),(0,v.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,v.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:E(e)}),"string"==typeof e.plan&&(0,v.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,v.jsx)(ob,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},S(e))})}),p&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,v.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let AO="YDxgnSM2QPGOYYICdgjq7Q==";function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||AD(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AD(e,t){if(e){if("string"==typeof e)return Ak(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ak(e,t)}}function AP(e){var t=e.options,n=e.defaultActiveIndex,r=e.onChange,a=e.title,i=e.subtitle,o=e.className,s=e.style,l=AA((0,g.useState)(void 0===n?0:n),2),u=l[0],c=l[1],d=AA((0,g.useState)([]),2),f=d[0],p=d[1],m=function(e){e!==u&&(c(e),null==r||r(e))};return(0,g.useEffect)(function(){var e=[];return t.forEach(function(t,n){var r=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return Ak(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([n])})},180*n);e.push(r)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,v.jsxs)("div",{className:w()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(a||i)&&(0,v.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[a&&(0,v.jsx)("h1",{className:w()("TsIf8Q8vAVSLc-vC4h6-UA==",AO,"CUA6-RpM0KPkwxkPhWbpzg=="),children:a}),i&&(0,v.jsx)("p",{className:w()("GiaxLFLhrXHmZTTZjk2qqg==",AO,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:i})]}),(0,v.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,v.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var n=u===t,r=f.includes(t);return(0,v.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":n,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:n?"auto 100%":"auto 120%",opacity:+!!r,transform:r?"translateX(0)":"translateX(-60px)",borderColor:n?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:n?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:n?"7 1 0%":"1 1 0%",zIndex:n?10:1},onClick:function(){return m(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m(t))},children:[(0,v.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:n?"0":"-40px",boxShadow:n?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,v.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,v.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,v.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,v.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.title}),(0,v.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function AC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function AT(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var AN=function(e){return AC({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},e)},AM=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"m6 9 6 6 6-6"})}))},AR=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},AI=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,v.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},A_=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,v.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},AL=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("path",{d:"M18 6 6 18"}),(0,v.jsx)("path",{d:"m6 6 12 12"})]}))},AF=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))};function AB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return AB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Az={type:"spring",duration:.5,bounce:.22},AW="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",AU={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},A$=(0,g.createContext)(null);function AH(e){var t=(0,g.useContext)(A$);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function AG(e){var t,n=e.value,r=e.defaultValue,a=e.onValueChange,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.disabled,u=void 0!==l&&l,c=e.transition,d=void 0===c?Az:c,f=e.radius,p=void 0===f?12:f,m=e.stagger,h=void 0===m?.035:m,y=e.staggerDelay,b=void 0===y?.08:y,x=e.className,w=e.children,j=null!=(t=An())&&t,S=(0,g.useId)(),E=(0,g.useRef)(null),O=AV((0,g.useState)(void 0!==o&&o),2),k=O[0],A=O[1],D=void 0!==i,P=D?i:k,C=(0,g.useCallback)(function(e){D||A(e),null==s||s(e)},[D,s]),T=AV((0,g.useState)(r),2),N=T[0],M=T[1],R=AV((0,g.useState)(new Map),2),I=R[0],_=R[1],L=AV((0,g.useState)("Select"),2),F=L[0],B=L[1],V=void 0!==n,z=V?n:N,W=(0,g.useCallback)(function(e){V||M(e),null==a||a(e),C(!1)},[V,a,C]),U=(0,g.useCallback)(function(e,t){_(function(n){var r,a,i=new Map(n);return i.set(e,{label:t,count:(null!=(r=null==(a=n.get(e))?void 0:a.count)?r:0)+1}),i})},[]),$=(0,g.useCallback)(function(e){_(function(t){var n=t.get(e);if(!n)return t;var r=new Map(t);return n.count<=1?r.delete(e):r.set(e,{label:n.label,count:n.count-1}),r})},[]);(0,g.useEffect)(function(){if(P){var e=function(e){return"Escape"===e.key&&C(!1)},t=function(e){E.current&&!E.current.contains(e.target)&&C(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[P,C]);var H=(0,g.useMemo)(function(){return{value:z,open:P,setOpen:C,select:W,register:U,unregister:$,labelFor:function(e){var t;return void 0===e||null==(t=I.get(e))?void 0:t.label},placeholder:F,setPlaceholder:B,reduce:j,layoutId:"".concat(S,"-surface"),triggerId:"".concat(S,"-trigger"),listId:"".concat(S,"-list"),disabled:u,transition:d,radius:p,stagger:h,staggerDelay:b}},[z,P,C,W,U,$,I,F,j,S,u,d,p,h,b]);return(0,v.jsx)(A$.Provider,{value:H,children:(0,v.jsx)("div",{ref:E,className:yt("relative",x),children:w})})}function Aq(e){var t,n=e.placeholder,r=e.className,a=AH("MorphSelectValue");(0,g.useEffect)(function(){n&&a.setPlaceholder(n)},[n,a.setPlaceholder]);var i=a.labelFor(a.value);return(0,v.jsx)("span",{className:yt(i?"text-foreground":"text-muted-foreground",r),children:null!=(t=null!=i?i:n)?t:"Select"})}function AY(e){var t,n,r=e.className,a=e.icon,i=e.children,o=AH("MorphSelectTrigger"),s=null!=a?a:(0,v.jsx)(AM,{className:"h-4 w-4"});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"aria-hidden":!0},{inert:""}),n=n={className:yt(AW,"invisible rounded-xl border border-border"),children:[i,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:o.open?null:(0,v.jsxs)(mq.button,{layoutId:o.layoutId,type:"button",id:o.triggerId,disabled:o.disabled,"aria-haspopup":"listbox","aria-expanded":o.open,"aria-controls":o.listId,onClick:function(){return o.setOpen(!0)},transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:yt(AW,"absolute inset-x-0 top-0 z-10 border border-border bg-background text-foreground outline-none transition-colors","hover:border-input focus-visible:ring-2 focus-visible:ring-foreground/20","disabled:pointer-events-none disabled:opacity-50",r),children:[(0,v.jsx)(mq.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,v.jsx)(mq.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function AK(e){var t=e.className,n=e.headerClassName,r=e.listClassName,a=e.icon,i=e.children,o=AH("MorphSelectContent"),s=o.labelFor(o.value),l=(0,g.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:o.stagger,delayChildren:o.staggerDelay}}}},[o.stagger,o.staggerDelay]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"hidden",children:i}),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:o.open?(0,v.jsxs)(mq.div,{layoutId:o.layoutId,id:o.listId,role:"listbox","aria-labelledby":o.triggerId,transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:yt("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,v.jsxs)(mq.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.setOpen(!1)},className:yt(AW,"outline-none",n),children:[(0,v.jsx)("span",{className:yt("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:o.placeholder}),(0,v.jsx)(mq.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.transition,className:"text-muted-foreground",children:null!=a?a:(0,v.jsx)(AM,{className:"h-4 w-4"})})]}),(0,v.jsx)("div",{className:"h-px bg-border"}),(0,v.jsx)(mq.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:yt("p-1",r),children:i})]},"panel"):null})]})}function AZ(e){var t=e.value,n=e.disabled,r=e.label,a=e.indicator,i=e.className,o=e.children,s=AH("MorphSelectItem"),l=s.value===t,u=null!=r?r:"string"==typeof o?o:t;return(0,g.useLayoutEffect)(function(){return s.register(t,u),function(){return s.unregister(t)}},[s.register,s.unregister,t,u]),(0,v.jsx)(mq.li,{variants:s.reduce?void 0:AU,children:(0,v.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==n&&n,onClick:function(){return s.select(t)},className:yt("flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors",l?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted","disabled:pointer-events-none disabled:opacity-50",i),children:[o,l?null!=a?a:(0,v.jsx)(AR,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function AX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AQ(e){if(Array.isArray(e))return e}function AJ(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function A0(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function A1(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function A3(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function A5(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function A4(e,t){return AQ(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||A8(e,t)||A1()}function A6(e){return AQ(e)||A0(e)||A8(e)||A1()}function A8(e,t){if(e){if("string"==typeof e)return AX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AX(e,t)}}var A9=function(e){var t=e.state;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 text-muted-foreground transition-colors group-hover:text-foreground pointer-events-none",children:(0,v.jsx)("path",{d:"x"===t?"M 6 18 L 18 6 M 18 18 L 6 6":"up"===t?"M 6 15 L 12 9 M 18 15 L 12 9":"M 6 9 L 12 15 M 18 9 L 12 15",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",style:{transition:"d 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}})})},A7=function(e){var t=e.className;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:yt("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,v.jsx)("polyline",{points:"20 6 9 17 4 12"})})},De=function(e){var t=e.className;return(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:yt("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,v.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},Dt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A4(g.useState(!1),2),n=t[0],r=t[1],a=g.useRef(null),i=g.useRef(null),o=g.useRef(null),s=function(t){if(!e&&a.current&&i.current){r(!0),null==(n=o.current)||n.cancel();var n,s=a.current.getBoundingClientRect(),l=Math.max(s.width,s.height),u=Math.max(.35*l,75),c=Math.floor(.2*l),d=Math.sqrt(Math.pow(s.width,2)+Math.pow(s.height,2)),f=Math.min(Math.max(400,1.5*d),1e3),p={x:(s.width-c)/2,y:(s.height-c)/2},m=p;t&&"clientX"in t&&(m={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),i.current.style.width="".concat(c,"px"),i.current.style.height="".concat(c,"px"),o.current=i.current.animate([{transform:"translate(".concat(m.x,"px, ").concat(m.y,"px) scale(1)")},{transform:"translate(".concat(p.x,"px, ").concat(p.y,"px) scale(").concat((d+10+u)/c,")")}],{duration:f,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}},l=function(){var e;return(e=function(){var e;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!((e=o.current)&&"number"==typeof e.currentTime&&e.currentTime<300))return[3,2];return[4,new Promise(function(t){return setTimeout(t,300-e.currentTime)})];case 1:t.sent(),t.label=2;case 2:return r(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){AJ(i,r,a,o,s,"next",e)}function s(e){AJ(i,r,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,pressed:n,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},Dn=g.forwardRef(function(e,t){var n=e.pressed,r=e.rippleRef;return(0,v.jsxs)("div",{ref:t,className:"absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none z-0",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-current opacity-0 transition-opacity duration-200 group-hover/m3item:opacity-[0.08] group-data-[active=true]:opacity-[0.08]"}),(0,v.jsx)("div",{ref:r,className:"absolute rounded-full opacity-0 bg-current",style:{background:"radial-gradient(closest-side, currentColor max(calc(100% - 70px), 65%), transparent 100%)",transition:"opacity 375ms linear",opacity:n?"0.12":"0",transitionDuration:n?"100ms":"375ms"}})]})});Dn.displayName="RippleLayer";var Dr=g.forwardRef(function(e,t){var n=A6([e,t]),r=n[0],a=n.slice(1),i=r.children,o=r.className,s=r.viewportRef,l=A5(r,["children","className","viewportRef"]),u=A4(a,1)[0],c=g.useRef(null),d=s||c,f=g.useRef(null),p=g.useRef(null),m=A4(g.useState(0),2),h=m[0],y=m[1],b=A4(g.useState(0),2),x=b[0],w=b[1],j=A4(g.useState(!1),2),S=j[0],E=j[1],O=g.useRef({startY:0,startScrollTop:0}),k=g.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1"),n>r){var a=Math.max(r/n*r,30);y(a),w((r-a)/(n-r)*t)}else y(0)}},[d]);return g.useEffect(function(){var e=d.current;if(e){k();var t=new ResizeObserver(function(){return k()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var n=new MutationObserver(function(){return k()});return n.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),n.disconnect()}}},[k,d]),g.useEffect(function(){if(S){var e=function(e){if(d.current){var t=e.clientY-O.current.startY,n=d.current,r=n.scrollHeight,a=n.clientHeight,i=Math.max(a/r*a,30);d.current.scrollTop=O.current.startScrollTop+(r-a)/(a-i)*t}},t=function(){E(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[S,d]),(0,v.jsxs)("div",A3(A2({ref:u,"data-dragging":S,className:yt("relative overflow-hidden group/scroll",o)},l),{children:[(0,v.jsx)("div",{ref:f,className:"absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),(0,v.jsx)("div",{ref:d,onScroll:k,style:{maxHeight:"inherit"},className:"w-full overflow-y-auto m3-hide-scroll rounded-[inherit]",children:i}),(0,v.jsx)("div",{ref:p,className:"absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),h>0&&(0,v.jsx)("div",{className:yt("absolute inset-y-0 right-0 z-50 flex items-start justify-end py-0.5 px-0.5 w-4 transition-opacity duration-300 cursor-default","opacity-0 pointer-events-none","group-hover/scroll:opacity-100 group-hover/scroll:pointer-events-auto","group-data-[dragging=true]/scroll:opacity-100 group-data-[dragging=true]/scroll:pointer-events-auto"),children:(0,v.jsx)("div",{className:yt("bg-border rounded-full transition-all duration-200 cursor-default touch-none shadow-sm","w-1 hover:w-1.5 hover:bg-muted-foreground","group-data-[dragging=true]/scroll:w-1.5 group-data-[dragging=true]/scroll:bg-muted-foreground"),style:{height:h,transform:"translateY(".concat(x,"px)")},onPointerDown:function(e){var t;e.preventDefault(),e.stopPropagation(),E(!0),O.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});Dr.displayName="CustomFloatingScrollArea";var Da=function(){return(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @keyframes m3-auto-item-cinematic { \n 0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } \n 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } \n }\n \n @keyframes m3-chip-enter { \n 0% { opacity: 0; transform: scale(0.8) translate3d(8px, 0, 0); } \n 100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } \n }\n\n .m3-chip-animate {\n animation: m3-chip-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;\n }\n \n .m3-auto-container[data-state="open"] .m3-auto-item { \n opacity: 0; \n animation: m3-auto-item-cinematic 350ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards; \n }\n\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(1) { animation-delay: 50ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(2) { animation-delay: 100ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(3) { animation-delay: 150ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(4) { animation-delay: 200ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(n+5) { animation-delay: 250ms; }\n\n .m3-hide-scroll {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .m3-hide-scroll::-webkit-scrollbar {\n display: none;\n }\n '}})},Di=g.forwardRef(function(e,t){var n=A6([e,t]),r=n[0],a=n.slice(1),i=r.className,o=r.children,s=r.isActive,l=r.isSelected,u=r.onSelectAction,c=A5(r,["className","children","isActive","isSelected","onSelectAction"]),d=A4(a,1)[0],f=Dt(),p=f.surfaceRef,m=f.rippleRef,h=f.pressed,y=f.events;return(0,v.jsxs)("li",A3(A2({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:yt("m3-auto-item group/m3item relative flex items-center p-3 px-4 cursor-pointer text-sm outline-none transition-colors overflow-hidden",s&&"bg-secondary/50 text-secondary-foreground",i),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},y,c),{children:[(0,v.jsx)(Dn,{rippleRef:m,pressed:h}),(0,v.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function Do(e){var t=e.items,n=e.placeholder,r=e.emptyMessage,a=e.value,i=e.onValueChange,o=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,m=void 0===p?0:p,h=e.name,y=e.id,b=e.required,x=e["aria-label"],w=e["aria-labelledby"],j=e.maxOptions,S=e.minOptions,E=e.classNames,O=e.labels,k=e.renderItem,A=e.maxListHeight,D=void 0===A?260:A,P=e.chipMaxWidth,C=void 0===P?120:P,T=e.style,N=Array.isArray(a),M=null!=(eE=null==O?void 0:O.empty)?eE:void 0===r?"No results found.":r,R=null!=(eO=null==O?void 0:O.loading)?eO:"Loading results...",I=null!=(ek=null==O?void 0:O.clear)?ek:"Clear",_=null!=(eA=null==O?void 0:O.toggle)?eA:"Toggle options",L=null!=(eD=null==O?void 0:O.create)?eD:function(e){return'Create "'.concat(e,'"')},F=g.useId(),B=y?"".concat(y,"-listbox"):"".concat(F,"-listbox"),V=function(e){return"".concat(B,"-option-").concat(e)},z=A4(g.useState(function(){if(a){var e;return Array.isArray(a)?"":(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||""}return""}),2),W=z[0],U=z[1],$=A4(g.useState(W),2),H=$[0],G=$[1],q=A4(g.useState(!1),2),Y=q[0],K=q[1],Z=A4(g.useState("closed"),2),X=Z[0],Q=Z[1],J=A4(g.useState(-1),2),ee=J[0],et=J[1],en=g.useRef("mouse"),er=A4(g.useState("bottom"),2),ea=er[0],ei=er[1],eo=A4(g.useState(D),2),es=eo[0],el=eo[1],eu=g.useRef(null),ec=g.useRef(null),ed=g.useRef(null),ef=g.useRef(null),ep=g.useRef(null),em=g.useRef(null),eh=g.useRef(null),ey=g.useRef(null),ev=g.useRef(null),eg=A4(g.useState(a),2),eb=eg[0],ex=eg[1],ew=A4(g.useState(t),2),ej=ew[0],eS=ew[1];if(a!==eb||t!==ej)if(ex(a),eS(t),N)a&&0!==a.length||(U(""),G(""));else if(a){var eE,eO,ek,eA,eD,eP,eC=(null==(eP=t.find(function(e){return e.value===a}))?void 0:eP.label)||"";U(eC),G(eC)}else U(""),G("");var eT=Dt(o),eN=eT.surfaceRef,eM=eT.rippleRef,eR=eT.pressed,eI=eT.events,e_=Dt(o),eL=e_.surfaceRef,eF=e_.rippleRef,eB=e_.pressed,eV=e_.events,ez=g.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,H)}):H?t.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):t},[t,H,f]),eW=A4(g.useState(ez),2),eU=eW[0],e$=eW[1];g.useEffect(function(){"open"===X&&e$(ez)},[ez,X]);var eH=g.useCallback(function(){if(ec.current){var e=ec.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top,r=t<280&&n>t?"top":"bottom";ei(r),el(Math.max(100,Math.min(D,("bottom"===r?t:n)-16)))}},[D]);g.useEffect(function(){var e=ec.current;if(e){var t=new ResizeObserver(function(){eH()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eH),function(){t.disconnect(),window.removeEventListener("resize",eH)}}},[eH]),g.useEffect(function(){if(Y)return window.addEventListener("scroll",eH,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eH,!0)}},[Y,eH]);var eG=g.useCallback(function(e){U(e),ev.current&&clearTimeout(ev.current),m&&m>0?ev.current=setTimeout(function(){G(e),c&&c(e)},m):(G(e),c&&c(e))},[m,c]),eq=g.useCallback(function(e){if(K(!0),Q("open"),ey.current&&clearTimeout(ey.current),"number"==typeof e)et(e);else{var t=ez.findIndex(function(e){return e.value===a});et(t>=0?t:-1)}},[ez,a]),eY=g.useCallback(function(){if(K(!1),Q("closing"),et(-1),N)U(""),G("");else if(a){var e,n=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";U(n),G(n)}else U(""),G("");ey.current&&clearTimeout(ey.current),ey.current=setTimeout(function(){Q(function(e){return"closing"===e?"closed":e})},300)},[a,t,N]);g.useEffect(function(){return function(){ey.current&&clearTimeout(ey.current),ev.current&&clearTimeout(ev.current)}},[]),g.useEffect(function(){var e=function(e){ec.current&&!ec.current.contains(e.target)&&Y&&eY()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[Y,eY]),g.useEffect(function(){if(ee>=0&&ed.current&&"keyboard"===en.current){var e=ed.current.children[ee];e&&e.scrollIntoView({block:"nearest"})}},[ee]);var eK=g.useCallback(function(){var e=ep.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;em.current&&(em.current.style.opacity=t>1?"1":"0"),eh.current&&(eh.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1")}},[]),eZ=g.useRef(0);g.useEffect(function(){if(N){var e=ep.current;if(e){var t=(null==a?void 0:a.length)||0;t>eZ.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eZ.current=t}}},[a,N]),g.useEffect(function(){var e,t,n=ep.current;if(n){var r=!1,a=function(a){r=!0,e=a.pageX-n.offsetLeft,t=n.scrollLeft,document.body.style.userSelect="none"},i=function(){r&&(r=!1,document.body.style.userSelect="")},o=function(a){if(r){a.preventDefault();var i=(a.pageX-n.offsetLeft-e)*1.5;n.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),n.scrollLeft+=e.deltaY)};n.addEventListener("mousedown",a),n.addEventListener("mouseleave",i),n.addEventListener("mouseup",i),n.addEventListener("mousemove",o),n.addEventListener("wheel",s,{passive:!1}),eK(),n.addEventListener("scroll",eK);var l=new ResizeObserver(function(){return eK()});return l.observe(n),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseleave",i),n.removeEventListener("mouseup",i),n.removeEventListener("mousemove",o),n.removeEventListener("wheel",s),n.removeEventListener("scroll",eK),l.disconnect(),document.body.style.userSelect=""}}},[Y,a,eK]);var eX=void 0!==s&&s&&W.length>0&&!t.some(function(e){return e.label.toLowerCase()===W.toLowerCase()}),eQ=function(e){var n;if(N){var r,o,s=a||[];if(s.includes(e)){if("number"==typeof S&&s.length<=S){null==(r=eu.current)||r.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof j&&s.length>=j){null==(o=eu.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return AX(e)})(s)||A0(s)||A8(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);i&&i(u)}U(""),G(""),c&&c("")}else{if(a===e)U(""),G(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";U(f),G(f),i&&i(e)}eY()}null==(n=eu.current)||n.focus()},eJ=function(){var e;l&&W&&l(W),N||eY(),null==(e=eu.current)||e.focus()},e0=W.length>0?"x":Y?"up":"down",e1="closing"===X?eU:ez,e2=N&&(a||[]).length>0,e3=g.useCallback(function(e){if(!N)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof j&&!!(t.length>=j)},[N,a,j]),e5=Y||"closing"===X;return(0,v.jsxs)("div",{ref:ec,style:T,className:yt("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e2?"h-[5.25rem]":"h-11",u,null==E?void 0:E.root),children:[(0,v.jsx)(Da,{}),h&&(N?(a||[]).length>0?(a||[]).map(function(e){return(0,v.jsx)("input",{type:"hidden",name:h,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:h,value:"",required:b}):(0,v.jsx)("input",{type:"hidden",name:h,value:a||"",required:b})),(0,v.jsxs)("div",{"data-state":X,className:yt("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ea?"bottom-0 flex-col-reverse":"top-0 flex-col",e5?"z-50 rounded-[1.25rem] border border-border shadow-[0px_16px_32px_rgba(0,0,0,0.14)]":"z-10 rounded-xl border border-input/60 shadow-sm hover:border-input h-full",null==E?void 0:E.container),children:[(0,v.jsxs)("div",{className:yt("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==E?void 0:E.inputRow),children:[(0,v.jsx)("input",{ref:eu,id:y,role:"combobox","aria-expanded":Y,"aria-autocomplete":"list","aria-controls":B,"aria-activedescendant":ee>=0?V(ee):void 0,"aria-label":x,"aria-labelledby":w,value:W,onChange:function(e){var t=e.target.value;eG(t);var n=t.length>0?0:-1;Y?et(n):eq(n),en.current="keyboard"},onFocus:function(){return eq()},onKeyDown:function(e){var t=ez.length+ +!!eX;if("Tab"===e.key){Y&&eY();return}if(!Y&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eq();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),en.current="keyboard",et(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),en.current="keyboard",et(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),en.current="keyboard",et(0);break;case"End":e.preventDefault(),en.current="keyboard",et(t-1);break;case"Enter":if(e.preventDefault(),ee>=0)if(ee<ez.length){var n=ez[ee],r=N&&a||[],i=r.includes(n.value);N&&!i&&"number"==typeof j&&r.length>=j||eQ(n.value)}else eX&&eJ();break;case"Escape":eY()}},disabled:o,placeholder:n||"Select an option...",autoComplete:"off",className:yt("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==E?void 0:E.input)}),(0,v.jsxs)("button",A3(A2({ref:eN,type:"button",tabIndex:-1,className:yt("p-1.5 rounded-full z-20 hover:bg-muted/50 transition-all relative overflow-hidden h-8 w-8 flex items-center justify-center flex-shrink-0",null==E?void 0:E.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=eu.current)||t.focus(),W.length>0?(eG(""),!N&&i&&i(""),Y||eq(-1)):Y?eY():eq()},disabled:o,"aria-label":_},eI),{children:[(0,v.jsx)(Dn,{rippleRef:eM,pressed:eR}),(0,v.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,v.jsx)(A9,{state:e0})})]}))]}),N&&(a||[]).length>0&&(0,v.jsxs)("div",{className:yt("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ea?"border-b":"border-t",null==E?void 0:E.chipsRow),children:[(0,v.jsx)("div",{ref:em,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,v.jsx)("div",{ref:ep,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var n=t.find(function(t){return t.value===e});return n?(0,v.jsxs)("button",{type:"button",className:yt("m3-chip-animate group/chip relative flex items-center h-6 px-3 bg-secondary text-secondary-foreground text-xs font-medium rounded-full flex-shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] overflow-hidden cursor-default select-none",null==E?void 0:E.chip),onClick:function(){var t,n=a||[];if("number"!=typeof S||!(n.length<=S)){var r=n.filter(function(t){return t!==e});i&&i(r),null==(t=eu.current)||t.focus()}},children:[(0,v.jsx)("span",{className:"truncate",style:{maxWidth:C},children:n.label}),(0,v.jsx)("div",{className:"absolute inset-y-0 right-0 w-8 flex items-center justify-end pr-2 bg-gradient-to-l from-secondary via-secondary/90 to-transparent opacity-0 translate-x-2 group-hover/chip:opacity-100 group-hover/chip:translate-x-0 transition-all duration-150 pointer-events-none",children:(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3 h-3 stroke-current text-muted-foreground",fill:"none",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,v.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e):null})}),(0,v.jsx)("div",{ref:eh,className:"absolute right-[60px] top-0 bottom-0 w-12 bg-gradient-to-l from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(!S||0===S)&&(0,v.jsxs)("button",A3(A2({ref:eL,type:"button",onClick:function(){var e;i&&i([]),null==(e=eu.current)||e.focus()},className:yt("px-3 h-8 rounded-full text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:bg-muted/50 transition-all relative overflow-hidden flex-shrink-0 flex items-center justify-center mr-1.5 cursor-default z-30",null==E?void 0:E.clearButton)},eV),{children:[(0,v.jsx)(Dn,{rippleRef:eF,pressed:eB}),(0,v.jsx)("span",{className:"relative",children:I})]}))]}),(0,v.jsx)("div",{className:yt("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",Y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),onMouseDown:function(e){e.preventDefault()},children:(0,v.jsx)("div",{className:"overflow-hidden",children:"closed"!==X&&(0,v.jsx)("div",{className:"flex flex-col w-full",children:(0,v.jsx)(Dr,{viewportRef:ef,style:{maxHeight:"".concat(es,"px")},className:"w-full",children:(0,v.jsx)("ul",{ref:ed,id:B,role:"listbox","aria-multiselectable":N,className:yt("w-full text-popover-foreground outline-none pb-2 pt-1",null==E?void 0:E.list),children:void 0!==d&&d?(0,v.jsxs)("li",{className:yt("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==E?void 0:E.loadingState),children:[(0,v.jsxs)("svg",{className:"animate-spin h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,v.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3.5"}),(0,v.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,v.jsx)("span",{className:"font-medium tracking-wide",children:R})]}):0!==e1.length||eX?(0,v.jsxs)(v.Fragment,{children:[e1.map(function(e,t){var n=e3(e.value),r=N?!!(null==a?void 0:a.includes(e.value)):a===e.value,i=ee===t;return(0,v.jsxs)(Di,{id:V(t),isActive:i,isSelected:r,onSelectAction:function(){n||eQ(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==t&&et(t))},className:yt(n&&"opacity-40 cursor-not-allowed pointer-events-none",null==E?void 0:E.item),children:[r&&(0,v.jsx)(A7,{className:"mr-3 flex-shrink-0 text-primary"}),k?k(e,{isActive:i,isSelected:r,isDisabled:n}):(0,v.jsxs)("div",{className:"flex flex-col w-full",children:[(0,v.jsx)("span",{className:"whitespace-normal break-words font-medium",children:e.label}),(e.description||e.tag)&&(0,v.jsxs)("div",{className:"flex justify-between items-center text-[11px] font-medium text-muted-foreground/70 w-full mt-0.5 gap-4",children:[(0,v.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.description}),(0,v.jsx)("span",{className:"truncate",children:e.tag})]})]})]},e.value)}),eX&&(0,v.jsxs)(Di,{id:V(ez.length),isActive:ee===ez.length,isSelected:!1,onSelectAction:eJ,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==ez.length&&et(ez.length))},className:yt("text-primary/90 font-medium border-t border-border/40",null==E?void 0:E.item),children:[(0,v.jsx)(De,{className:"mr-3 flex-shrink-0"}),(0,v.jsx)("span",{children:L(W)})]})]}):(0,v.jsx)("li",{className:yt("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==E?void 0:E.emptyState),children:M})})})})})})]})]})}function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Dc(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Du(e){return function(e){if(Array.isArray(e))return Ds(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dc(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dc(e,t){if(e){if("string"==typeof e)return Ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ds(e,t)}}Di.displayName="M3AutocompleteItem";var Dd=function(e,t){var n,r=t.trim().toLowerCase();return!r||[e.label,e.value,e.description].concat(Du(null!=(n=e.keywords)?n:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(r)})};function Df(e){var t,n,r=e.items,a=e.value,i=e.defaultValue,o=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,m=e.searchable,h=e.allowDeselect,y=void 0===h||h,b=e.closeOnSelect,x=void 0===b||b,w=e.filterFn,j=e.onSearchChange,S=e.side,E=void 0===S?"auto":S,O=e.align,k=void 0===O?"center":O,A=e.sideOffset,D=void 0===A?4:A,P=e.renderItem,C=e.renderValue,T=e.triggerIcon,N=e.checkIcon,M=e.name,R=e.id,I=e["aria-label"],_=e.classNames,L=e.className,F=e.style,B=g.useId(),V="".concat(B,"-listbox"),z=function(e){return"".concat(B,"-option-").concat(e)},W=void 0!==a,U=Dl(g.useState(void 0===i?"":i),2),$=U[0],H=U[1],G=W?a:$,q=void 0!==s,Y=Dl(g.useState(void 0!==l&&l),2),K=Y[0],Z=Y[1],X=q?s:K,Q=g.useCallback(function(e){q||Z(e),null==u||u(e)},[q,u]),J=Dl(g.useState(""),2),ee=J[0],et=J[1],en=Dl(g.useState(0),2),er=en[0],ea=en[1],ei=Dl(g.useState("bottom"),2),eo=ei[0],es=ei[1],el=g.useRef("mouse"),eu=g.useRef(null),ec=g.useRef(null),ed=g.useRef(null),ef=g.useRef(null),ep=g.useMemo(function(){return r.find(function(e){return e.value===G})},[r,G]),em=g.useMemo(function(){if(!1===w)return r;var e=null!=w?w:Dd;return r.filter(function(t){return e(t,ee)})},[r,ee,w]),eh=g.useCallback(function(e){var t,n=y&&e===G?"":e;W||H(n),null==o||o(n),x&&(Q(!1),null==(t=ec.current)||t.focus())},[y,G,W,o,x,Q]);g.useEffect(function(){if(!X)return void et("");var e=em.findIndex(function(e){return e.value===G&&!e.disabled});ea(e>=0?e:Math.max(0,em.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ed.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[X]),g.useLayoutEffect(function(){if(X&&eu.current){if("auto"!==E)return void es(E);var e=eu.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;es(t<340&&n>t?"top":"bottom")}},[X,E]),g.useEffect(function(){if(X){var e=function(e){eu.current&&!eu.current.contains(e.target)&&Q(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[X,Q]),g.useEffect(function(){X&&ea(Math.max(0,em.findIndex(function(e){return!e.disabled})))},[ee]),g.useEffect(function(){var e,t;X&&"keyboard"===el.current&&(null==(t=ef.current)||null==(e=t.querySelector('[data-index="'.concat(er,'"]')))||e.scrollIntoView({block:"nearest"}))},[er,X]);var ey=function(e,t){var n=em.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!em[r=(r+e+n)%n].disabled)return r;return t},ev=yt("bottom"===eo?"top-full":"bottom-full","start"===k&&"left-0","center"===k&&"left-1/2","end"===k&&"right-0"),eg=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},"bottom"===eo?{marginTop:D}:{marginBottom:D}),n=n={"--egen-combobox-to":"center"===k?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===k?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===k?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===k?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),eb=[];em.forEach(function(e,t){var n=eb[eb.length-1];n&&n.heading===e.group?n.entries.push({item:e,index:t}):eb.push({heading:e.group,entries:[{item:e,index:t}]})});var ex=function(e){var t=e.item,n=e.index,r=G===t.value,a=er===n;return(0,v.jsxs)("div",{id:z(n),role:"option","data-index":n,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":r,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(el.current="mouse",er!==n&&ea(n))},onClick:function(){return!t.disabled&&eh(t.value)},className:yt("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==_?void 0:_.item),children:[P?P(t,{isActive:a,isSelected:r}):(0,v.jsxs)(v.Fragment,{children:[t.icon,t.description?(0,v.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,v.jsx)("span",{className:"truncate",children:t.label}),(0,v.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:t.description})]}):t.label]}),N&&r?(0,v.jsx)("span",{className:yt("ml-auto",null==_?void 0:_.itemCheck),children:N}):(0,v.jsx)(AR,{className:yt("ml-auto",r?"opacity-100":"opacity-0",null==_?void 0:_.itemCheck)})]},t.value)};return(0,v.jsxs)("div",{ref:eu,style:F,className:yt("relative w-full max-w-xs",L,null==_?void 0:_.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-combobox-in-bottom { from { opacity: 0; transform: var(--egen-combobox-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n@keyframes egen-combobox-in-top { from { opacity: 0; transform: var(--egen-combobox-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n.egen-combobox-content[data-side="bottom"] { animation: egen-combobox-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-combobox-content[data-side="top"] { animation: egen-combobox-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-combobox-content { animation: none !important; } }\n'}}),M?(0,v.jsx)("input",{type:"hidden",name:M,value:G}):null,(0,v.jsxs)("button",{ref:ec,id:R,type:"button",role:"combobox","aria-expanded":X,"aria-haspopup":"listbox","aria-controls":X?V:void 0,"aria-label":I,disabled:void 0!==c&&c,onClick:function(){return Q(!X)},onKeyDown:function(e){X||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),Q(!0))},className:yt("inline-flex h-9 w-full shrink-0 items-center justify-between gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium whitespace-nowrap text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",null==_?void 0:_.trigger),children:[(0,v.jsx)("span",{className:"min-w-0 truncate",children:C?C(ep):ep?ep.label:void 0===d?"Select...":d}),null!=T?T:(0,v.jsx)(AI,{className:"size-4 shrink-0 opacity-50"})]}),X?(0,v.jsx)("div",{"data-side":eo,"data-state":"open",style:eg,className:yt("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",ev,null==_?void 0:_.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),Q(!1),null==(t=ec.current)||t.focus();return}if("Tab"===e.key)return void Q(!1);if(0!==em.length)switch(e.key){case"ArrowDown":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(1,e)});break;case"ArrowUp":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(-1,e)});break;case"Home":e.preventDefault(),el.current="keyboard",ea(Math.max(0,em.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),el.current="keyboard";var n=Du(em).reverse().findIndex(function(e){return!e.disabled});ea(n>=0?em.length-1-n:0);break;case"Enter":e.preventDefault();var r=em[er];r&&!r.disabled&&eh(r.value)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[void 0===m||m?(0,v.jsxs)("div",{className:yt("flex h-9 items-center gap-2 border-b border-border px-3",null==_?void 0:_.searchWrapper),children:[(0,v.jsx)(A_,{className:yt("size-4 shrink-0 opacity-50",null==_?void 0:_.searchIcon)}),(0,v.jsx)("input",{ref:ed,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":V,"aria-activedescendant":em.length?z(er):void 0,placeholder:void 0===f?"Search...":f,value:ee,onChange:function(e){et(e.target.value),el.current="keyboard",null==j||j(e.target.value)},className:yt("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==_?void 0:_.searchInput)})]}):(0,v.jsx)("input",{ref:ed,readOnly:!0,"aria-label":I,"aria-controls":V,"aria-activedescendant":em.length?z(er):void 0,className:"sr-only"}),(0,v.jsx)("div",{ref:ef,id:V,role:"listbox",className:yt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==_?void 0:_.list),children:0===em.length?(0,v.jsx)("div",{className:yt("py-6 text-center text-sm",null==_?void 0:_.empty),children:void 0===p?"No results found.":p}):eb.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:yt("overflow-hidden p-1 text-foreground",null==_?void 0:_.group),children:[e.heading?(0,v.jsx)("div",{className:yt("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==_?void 0:_.groupHeading),children:e.heading}):null,e.entries.map(ex)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))})})]})}):null]})}function Dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dh(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Dv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Db(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dg(e){return function(e){if(Array.isArray(e))return Dm(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Db(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Db(e,t){if(e){if("string"==typeof e)return Dm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dm(e,t)}}var Dx=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},Dw=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},Dj=function(e){return"number"==typeof e?"".concat(e,"px"):e};function DS(e){var t,n,r,a,i,o,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,m=e.renderOption,h=e.getDisplayValue,y=e.getOptionGroup,b=e.getOptionDisabled,x=e.preload,w=void 0!==x&&x,j=e.filterFn,S=e.debounceMs,E=e.minQueryLength,O=void 0===E?0:E,k=e.fetchOnOpen,A=e.cacheResults,D=void 0===A||A,P=e.reloadKey,C=e.initialOptions,T=e.resolveOption,N=e.open,M=e.defaultOpen,R=e.onOpenChange,I=e.disabled,_=void 0!==I&&I,L=e.name,F=e.id,B=e["aria-label"],V=e.label,z=e.placeholder,W=void 0===z?"Select...":z,U=e.searchPlaceholder,$=e.noResultsMessage,H=e.minQueryMessage,G=e.loadingMessage,q=e.retryLabel,Y=e.clearLabel,K=e.removeLabel,Z=void 0===K?function(e){return"Remove ".concat(e)}:K,X=e.errorMessage,Q=void 0===X?"Failed to fetch options":X,J=e.loadMoreErrorLabel,ee=e.searchable,et=e.clearable,en=void 0===et||et,er=e.showClearButton,ea=e.closeOnSelect,ei=e.width,eo=e.contentWidth,es=void 0===eo?"trigger":eo,el=e.side,eu=void 0===el?"auto":el,ec=e.align,ed=void 0===ec?"start":ec,ef=e.sideOffset,ep=void 0===ef?4:ef,em=e.maxListHeight,eh=void 0===em?300:em,ey=e.loadingSkeleton,ev=e.loadingIndicator,eg=e.notFound,eb=e.renderError,ex=e.header,ew=e.footer,ej=e.triggerIcon,eS=e.checkIcon,eE=e.controllerRef,eO=e.classNames,ek=e.className,eA=e.triggerClassName,eD=e.style,eP=!0===e.multiple,eC=!0===e.multiple?e.maxSelected:void 0,eT=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eN=!0===e.multiple?e.renderTag:void 0,eM=null!=ea?ea:!eP,eR=g.useId(),eI="".concat(eR,"-listbox"),e_=function(e){return"".concat(eR,"-option-").concat(e)},eL=g.useCallback(function(e){return p?p(e):f(e)},[p,f]),eF=void 0!==e.value,eB=Dv(g.useState(function(){return Dx(e.defaultValue)}),2),eV=eB[0],ez=eB[1],eW=eF?Dx(e.value):eV,eU=void 0!==N,e$=Dv(g.useState(void 0!==M&&M),2),eH=e$[0],eG=e$[1],eq=eU?N:eH,eY=g.useCallback(function(e){eU||eG(e),null==R||R(e)},[eU,R]),eK=g.useRef(new Map),eZ=g.useRef(new Set),eX=Dv(g.useReducer(function(e){return e+1},0),2)[1];g.useMemo(function(){null==C||C.forEach(function(e){return eK.current.set(f(e),e)})},[C]);var eQ=g.useRef(T);eQ.current=T;var eJ=eW.join("\0");g.useEffect(function(){var e=eQ.current;if(e){var t=!1;return eW.forEach(function(n){eK.current.has(n)||eZ.current.has(n)||(eZ.current.add(n),Promise.resolve(e(n)).then(function(e){t||void 0===e||(eK.current.set(n,e),eX())}).catch(function(){}))}),function(){t=!0}}},[eJ]);var e0=Dv(g.useState(""),2),e1=e0[0],e2=e0[1],e3=(t=w?"":e1,n=w?0:void 0===S?300:S,i=(a=function(e){if(Array.isArray(e))return e}(r=g.useState(t))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(r)||function(e){if(e){if("string"==typeof e)return Dp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dp(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=a[1],g.useEffect(function(){if(!(n<=0)){var e=setTimeout(function(){return o(t)},n);return function(){return clearTimeout(e)}}},[t,n]),n<=0?t:i),e5=e3.trim(),e4=!w&&e5.length>0&&e5.length<O,e6=Dv(g.useState([]),2),e8=e6[0],e9=e6[1],e7=Dv(g.useState("idle"),2),te=e7[0],tt=e7[1],tn=Dv(g.useState(null),2),tr=tn[0],ta=tn[1],ti=Dv(g.useState(!1),2),to=ti[0],ts=ti[1],tl=Dv(g.useState(!1),2),tu=tl[0],tc=tl[1],td=Dv(g.useState(!1),2),tf=td[0],tp=td[1],tm=Dv(g.useState(0),2),th=tm[0],ty=tm[1],tv=g.useRef(d);tv.current=d;var tg=g.useRef(f);tg.current=f;var tb=g.useRef(new Map),tx=g.useRef(0),tw=g.useRef(0),tj=g.useRef(null),tS=(eq||!(void 0===k||k))&&!e4,tE="".concat(null!=P?P:"","\0").concat(th,"\0").concat(""===e5?"":e3),tO=g.useCallback(function(e){e.forEach(function(e){return eK.current.set(tg.current(e),e)})},[]);g.useEffect(function(){if(tS){var e,t=D?tb.current.get(tE):void 0;if(t){e9(t.items),ts(t.hasMore),tp(!1),tw.current=t.page,ta(null),tt("ready");return}null==(e=tj.current)||e.abort();var n=new AbortController,r=++tx.current;return tt("loading"),ta(null),tp(!1),Promise.resolve().then(function(){return tv.current(""===e5?"":e3,{signal:n.signal,page:0})}).then(function(e){if(!n.signal.aborted&&r===tx.current){var t=Dw(e);tO(t.items),D&&tb.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tw.current=0,e9(t.items),ts(t.hasMore),tt("ready"),eX()}}).catch(function(e){if(!n.signal.aborted&&r===tx.current){var t;ta((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:Q),tt("error")}}),function(){return n.abort()}}},[tS,tE,D]);var tk=g.useCallback(function(){tb.current.delete(tE),ty(function(e){return e+1})},[tE]),tA=g.useCallback(function(){var e;return(e=function(){var e,t,n,r,a;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:if("ready"!==te||!to||tu)return[2];e=tx.current,t=tw.current+1,tj.current=n=new AbortController,tc(!0),tp(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tv.current(""===e5?"":e3,{signal:n.signal,page:t})];case 2:if(r=i.sent(),n.signal.aborted||e!==tx.current)return[2];return tO((a=Dw(r)).items),e9(function(e){var n=new Set(e.map(function(e){return tg.current(e)})),r=Dg(e).concat(Dg(a.items.filter(function(e){return!n.has(tg.current(e))})));return D&&tb.current.set(tE,{items:r,hasMore:a.hasMore,page:t}),r}),tw.current=t,ts(a.hasMore),[3,5];case 3:return i.sent(),n.signal.aborted||e!==tx.current||tp(!0),[3,5];case 4:return tj.current===n&&(tj.current=null,tc(!1)),[7];case 5:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Dh(i,r,a,o,s,"next",e)}function s(e){Dh(i,r,a,o,s,"throw",e)}o(void 0)})})()},[te,to,tu,e5,e3,tO,D,tE]);g.useEffect(function(){return function(){var e;tx.current+=1,null==(e=tj.current)||e.abort()}},[]);var tD=g.useMemo(function(){return!1===j?null:j||(w?function(e,t){var n=t.trim().toLowerCase();return!n||eL(e).toLowerCase().includes(n)}:null)},[j,w,eL]),tP=g.useMemo(function(){return tD&&e1?e8.filter(function(e){return tD(e,e1)}):e8},[e8,tD,e1]),tC=eW.map(function(e){return eK.current.get(e)}),tT=eP&&void 0!==eC&&eW.length>=eC,tN=function(e){return!!(null==b?void 0:b(e))||tT&&!eW.includes(f(e))},tM=function(t){var n,r,a;eF||ez(t),!0===e.multiple?null==(n=e.onChange)||n.call(e,t,t.map(function(e){return eK.current.get(e)}).filter(function(e){return void 0!==e})):null==(a=e.onChange)||a.call(e,null!=(r=t[0])?r:"",void 0!==t[0]?eK.current.get(t[0]):void 0)},tR=g.useRef(null),tI=g.useRef(null),t_=g.useRef(null),tL=g.useRef(null),tF=g.useRef(null),tB=function(e){var t,n=f(e);if(eK.current.set(n,e),eP){var r=eW.includes(n);if(!r&&tT)return;tM(r?eW.filter(function(e){return e!==n}):Dg(eW).concat([n]))}else tM(en&&eW[0]===n?[]:[n]);eM&&(eY(!1),null==(t=tR.current)||t.focus())},tV=function(e){return tM(eW.filter(function(t){return t!==e}))},tz=function(){return tM([])};g.useImperativeHandle(eE,function(){return{open:function(){return!_&&eY(!0)},close:function(){return eY(!1)},focus:function(){var e;return null==(e=tR.current)?void 0:e.focus()},clear:tz,refresh:function(){tb.current.clear(),ty(function(e){return e+1})}}},[_,eY,eW,eF]);var tW=Dv(g.useState(0),2),tU=tW[0],t$=tW[1],tH=Dv(g.useState("bottom"),2),tG=tH[0],tq=tH[1],tY=g.useRef("mouse"),tK=function(){return Math.max(0,tP.findIndex(function(e){return!tN(e)}))};g.useEffect(function(){if(!eq)return void e2("");var e=requestAnimationFrame(function(){var e;return null==(e=t_.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eq]),g.useEffect(function(){if(eq){var e=eP||void 0===eW[0]?-1:tP.findIndex(function(e){return f(e)===eW[0]&&!tN(e)});t$(e>=0?e:tK())}},[eq,e1,te]),g.useLayoutEffect(function(){if(eq&&tI.current){if("auto"!==eu)return void tq(eu);var e=tI.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;tq(t<Math.min(eh,300)+48&&n>t?"top":"bottom")}},[eq,eu,eh]),g.useEffect(function(){if(eq){var e=function(e){tI.current&&!tI.current.contains(e.target)&&eY(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eq,eY]),g.useEffect(function(){var e,t,n;eq&&"keyboard"===tY.current&&(null==(n=tL.current)||null==(t=n.querySelector('[data-index="'.concat(tU,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[tU,eq]),g.useEffect(function(){if(!(!eq||!to||"ready"!==te||tf||"u"<typeof IntersectionObserver)){var e=tF.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tA()},{root:tL.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eq,to,te,tf,tA,tP.length]);var tZ=function(e,t){var n=tP.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!tN(tP[r=(r+e+n)%n]))return r;return t},tX=yt("bottom"===tG?"top-full":"bottom-full","start"===ed&&"left-0","center"===ed&&"left-1/2","end"===ed&&"right-0"),tQ=(s=Dy({width:"trigger"===es?"100%":Dj(es)},"bottom"===tG?{marginTop:ep}:{marginBottom:ep}),l=l={"--egen-async-select-to":"center"===ed?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ed?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ed?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ed?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),tJ=[];tP.forEach(function(e,t){var n=null==y?void 0:y(e),r=tJ[tJ.length-1];r&&r.heading===n?r.entries.push({item:e,index:t}):tJ.push({heading:n,entries:[{item:e,index:t}]})});var t0=function(e){var t=e.item,n=e.index,r=f(t),a=eW.includes(r),i=tU===n,o=tN(t);return(0,v.jsxs)("div",{id:e_(n),role:"option","data-index":n,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tY.current="mouse",tU!==n&&t$(n))},onClick:function(){return!o&&tB(t)},className:yt("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==eO?void 0:eO.item),children:[m?m(t,{isActive:i,isSelected:a,isDisabled:o}):eL(t),eS&&a?(0,v.jsx)("span",{className:yt("ml-auto",null==eO?void 0:eO.itemCheck),children:eS}):(0,v.jsx)(AR,{className:yt("ml-auto size-3",a?"opacity-100":"opacity-0",null==eO?void 0:eO.itemCheck)})]},r)},t1=function(e,t){return void 0!==t?eL(t):e},t2=eW.length>0,t3=null!=U?U:"Search ".concat(V.toLowerCase(),"..."),t5=null!=$?$:"No ".concat(V.toLowerCase()," found."),t4="loading"===te;return(0,v.jsxs)("div",{ref:tI,style:Dy({width:Dj(void 0===ei?"200px":ei)},eD),className:yt("relative",ek,null==eO?void 0:eO.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-async-select-in-bottom { from { opacity: 0; transform: var(--egen-async-select-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n@keyframes egen-async-select-in-top { from { opacity: 0; transform: var(--egen-async-select-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n.egen-async-select-content[data-side="bottom"] { animation: egen-async-select-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-async-select-content[data-side="top"] { animation: egen-async-select-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-async-select-content { animation: none !important; } }\n'}}),L?eP?eW.map(function(e){return(0,v.jsx)("input",{type:"hidden",name:L,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:L,value:null!=(c=eW[0])?c:""}):null,(0,v.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t4?void 0===G?"Loading...":G:""}),(0,v.jsxs)("div",{ref:tR,id:F,role:"combobox",tabIndex:_?-1:0,"aria-expanded":eq,"aria-haspopup":"listbox","aria-controls":eq?eI:void 0,"aria-label":null!=B?B:V,"aria-disabled":_||void 0,"aria-busy":t4||void 0,"data-disabled":_?"true":void 0,"data-state":eq?"open":"closed",onClick:function(){return!_&&eY(!eq)},onKeyDown:function(e){!_&&(eq||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eq&&eP&&"Backspace"===e.key&&t2&&tV(eW[eW.length-1]):(e.preventDefault(),eY(!0)))},className:yt("flex min-h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",eA,null==eO?void 0:eO.trigger),children:[(0,v.jsx)("span",{className:yt("flex min-w-0 flex-1 items-center",null==eO?void 0:eO.triggerValue),children:function(){if(!t2)return(0,v.jsx)("span",{className:yt("truncate text-muted-foreground",null==eO?void 0:eO.placeholder),children:W});if(!eP){var e=tC[0];return(0,v.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?h?h(e):eL(e):eW[0]})}var t=eW.slice(0,Math.max(0,eT)),n=eW.slice(t.length);return(0,v.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[t.map(function(e){var t=eK.current.get(e),n=t1(e,t);return(0,v.jsxs)("span",{className:yt("inline-flex max-w-full items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",null==eO?void 0:eO.tag),children:[(0,v.jsx)("span",{className:"truncate",children:eN?eN(t,e):n}),_?null:(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":Z(n),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tV(e)},className:yt("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.tagRemove),children:(0,v.jsx)(AL,{className:"size-3"})})]},e)}),n.length>0?(0,v.jsxs)("span",{title:n.map(function(e){return t1(e,eK.current.get(e))}).join(", "),className:yt("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.tag),children:["+",n.length]}):null]})}()}),void 0!==er&&er&&t2&&!_?(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===Y?"Clear":Y,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tz()},className:yt("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.clearButton),children:(0,v.jsx)(AL,{className:"size-4"})}):null,null!=ej?ej:(0,v.jsx)(AI,{className:yt("size-3 shrink-0 opacity-50",null==eO?void 0:eO.triggerIcon)})]}),eq?(0,v.jsx)("div",{"data-side":tG,"data-state":"open",style:tQ,className:yt("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tX,null==eO?void 0:eO.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eY(!1),null==(t=tR.current)||t.focus();return}if("Tab"===e.key)return void eY(!1);if("Backspace"===e.key&&eP&&""===e1&&eW.length>0)return void tV(eW[eW.length-1]);if(0!==tP.length)switch(e.key){case"ArrowDown":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(1,e)});break;case"ArrowUp":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(-1,e)});break;case"Home":e.preventDefault(),tY.current="keyboard",t$(tK());break;case"End":e.preventDefault(),tY.current="keyboard";var n=Dg(tP).reverse().findIndex(function(e){return!tN(e)});t$(n>=0?tP.length-1-n:0);break;case"Enter":e.preventDefault();var r=tP[tU];r&&!tN(r)&&tB(r)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ex?(0,v.jsx)("div",{className:null==eO?void 0:eO.header,children:ex}):null,void 0===ee||ee?(0,v.jsxs)("div",{className:yt("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eO?void 0:eO.searchWrapper),children:[(0,v.jsx)(A_,{className:yt("size-4 shrink-0 opacity-50",null==eO?void 0:eO.searchIcon)}),(0,v.jsx)("input",{ref:t_,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":eI,"aria-activedescendant":tP.length?e_(tU):void 0,placeholder:t3,value:e1,onChange:function(e){e2(e.target.value),tY.current="keyboard"},className:yt("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==eO?void 0:eO.searchInput)}),t4&&tP.length>0?(0,v.jsx)("span",{className:yt("flex shrink-0 items-center text-muted-foreground",null==eO?void 0:eO.searchSpinner),"aria-hidden":!0,children:null!=ev?ev:(0,v.jsx)(AF,{className:"size-4 animate-spin"})}):null]}):(0,v.jsx)("input",{ref:t_,readOnly:!0,"aria-label":null!=B?B:V,"aria-controls":eI,"aria-activedescendant":tP.length?e_(tU):void 0,className:"sr-only"}),(0,v.jsxs)("div",{ref:tL,id:eI,role:"listbox","aria-multiselectable":eP||void 0,"aria-busy":t4||void 0,style:{maxHeight:eh},className:yt("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eO?void 0:eO.list),children:[e4?(0,v.jsx)("div",{className:yt("py-6 text-center text-sm text-muted-foreground",null==eO?void 0:eO.hint),children:null!=H?H:"Type at least ".concat(O," characters to search.")}):"error"===te?eb?eb(null!=tr?tr:Q,tk):(0,v.jsxs)("div",{role:"alert",className:yt("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eO?void 0:eO.error),children:[(0,v.jsx)("span",{children:null!=tr?tr:Q}),(0,v.jsx)("button",{type:"button",onClick:tk,className:"rounded-md border border-border px-2 py-1 text-xs font-medium text-foreground outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===q?"Retry":q})]}):(t4||"idle"===te)&&0===tP.length?null!=ey?ey:(0,v.jsx)("div",{className:yt("p-1",null==eO?void 0:eO.skeleton),"aria-hidden":!0,children:[1,2,3].map(function(e){return(0,v.jsxs)("div",{className:"flex items-center gap-2 rounded-sm px-2 py-1.5",children:[(0,v.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-muted"}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,v.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-muted"})]})]},e)})}):0===tP.length?null!=eg?eg:(0,v.jsx)("div",{className:yt("py-6 text-center text-sm",null==eO?void 0:eO.empty),children:t5}):tJ.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:yt("overflow-hidden p-1 text-foreground",null==eO?void 0:eO.group),children:[e.heading?(0,v.jsx)("div",{className:yt("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.groupHeading),children:e.heading}):null,e.entries.map(t0)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))}),to&&"ready"===te?(0,v.jsx)("div",{ref:tF,className:yt("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eO?void 0:eO.loadMore),children:tf?(0,v.jsx)("button",{type:"button",onClick:function(){tA()},className:"rounded-md px-2 py-1 text-destructive outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===J?"Failed to load more. Retry":J}):tu?null!=ev?ev:(0,v.jsx)(AF,{className:"size-4 animate-spin"}):null}):null]}),ew?(0,v.jsx)("div",{className:null==eO?void 0:eO.footer,children:ew}):null]})}):null]})}function DE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function DO(e,t){if(e){if("string"==typeof e)return DE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DE(e,t)}}var Dk=function(e){var t,n=e.images,r=e.cardWidth,a=void 0===r?256:r,i=e.cardHeight,o=void 0===i?352:i,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,g.useRef)(null),f=(0,g.useRef)(!1),p=(0,g.useRef)(0),m=(0,g.useRef)(0),h=(0,g.useRef)(null),y=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return Array.from({length:n.length},function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||DO(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=y[0],x=y[1];(0,g.useEffect)(function(){x(Array.from({length:n.length},function(e,t){return t}))},[n.length]);var j=(0,g.useCallback)(function(e,t){var n,r,a=null==(r=getComputedStyle(t||document.documentElement))||null==(n=r.getPropertyValue(e))?void 0:n.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),S=(0,g.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),E=(0,g.useCallback)(function(){return S()[0]||null},[S]),O=(0,g.useCallback)(function(){S().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[S]),k=(0,g.useCallback)(function(e){var t=E();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[E]),A=(0,g.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,m.current=e;var t=E();t&&(t.style.transition="none")}},[E]),D=(0,g.useCallback)(function(){if(f.current){h.current&&(cancelAnimationFrame(h.current),h.current=null);var e=m.current-p.current,t=j("--card-swap-duration",d.current),n=E();if(n)if(n.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var r=Math.sign(e);n.style.setProperty("--swipe-x","".concat(300*r,"px")),n.style.setProperty("--swipe-rotate","".concat(20*r,"deg")),setTimeout(function(){E()===n&&n.style.setProperty("--swipe-rotate","".concat(-(20*r),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],r>0?"right":"left"),((function(e){if(Array.isArray(e))return DE(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||DO(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else k(0);f.current=!1,p.current=0,m.current=0}},[j,E,k,c]),P=(0,g.useCallback)(function(e){f.current&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(function(){m.current=e;var t=m.current-p.current;k(t),Math.abs(t)>50&&D()}))},[k,D]);return(0,g.useEffect)(function(){var e=d.current;if(e){var t=function(e){return A(e.clientX)},n=function(e){return P(e.clientX)},r=function(){return D()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",n),e.addEventListener("pointerup",r),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",r),h.current&&cancelAnimationFrame(h.current)}}},[A,P,D]),(0,g.useEffect)(function(){O()},[b,O]),(0,v.jsx)("section",{ref:d,className:w()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":n.length.toString(),"--card-swap-duration":"0.3s"},l),children:b.map(function(e,t){return(0,v.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:n.length-t,width:a,height:o},children:(0,v.jsx)("img",{src:n[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(n[e],"-").concat(e))})})},DA=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,DD=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,DP=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,DC=/(^[#\.][a-z]|[a-y][a-z])/i,DT=Math.PI/180,DN=180/Math.PI,DM=Math.sin,DR=Math.cos,DI=Math.abs,D_=Math.sqrt,DL=Math.atan2,DF=function(e){return"string"==typeof e},DB=function(e){return"number"==typeof e},DV={},Dz={},DW=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},DU=function(e){return Math.round(1e5*e)/1e5||0},D$=function(e){return Math.round(1e10*e)/1e10||0},DH=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},DG=function(e,t,n,r){var a=e[t],i=1===r?6:D5(a,n,r);if((i||!r)&&i+n+2<a.length)return e.splice(t,0,a.slice(0,n+i+2)),a.splice(0,n+i),1},Dq=function(e,t,n){var r=e.length,a=~~(n*r);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<r;);return a<r?a:r-1},DY=function(e,t){var n=e.length;for(t||e.reverse();n--;)e[n].reversed||function(e){var t,n=0;for(e.reverse();n<e.length;n+=2)t=e[n],e[n]=e[n+1],e[n+1]=t;e.reversed=!e.reversed}(e[n])},DK=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},DZ=function(e,t){var n=e.length,r=e[n-1]||[],a=r.length;n&&t[0]===r[a-2]&&t[1]===r[a-1]&&(t=r.concat(t.slice(2)),n--),e[n]=t};function DX(e){var t,n=(e=DF(e)&&DC.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return n&&(e=e.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(t=n._gsPath[e])&&!t._dirty?t:n._gsPath[e]=D9(e)):e?DF(e)?D9(e):DB(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var DQ=function(e,t){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),i=a.length;for(t=","+t+",";--i>-1;)n=a[i].nodeName.toLowerCase(),0>t.indexOf(","+n+",")&&r.setAttributeNS(null,n,a[i].nodeValue);return r},DJ={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},D0=function(e,t){for(var n=t?t.split(","):[],r={},a=n.length;--a>-1;)r[n[a]]=+e.getAttribute(n[a])||0;return r};function D1(e,t,n){var r,a=e[t],i=e[t+2],o=e[t+4];return a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,r=i+(o+(e[t+6]-o)*n-i)*n-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,DU(DL(i+(o+(e[t+7]-o)*n-i)*n-a,r)*DN)}function D2(e,t,n){var r=Math.max(0,~~(DI((n=void 0===n?1:D$(n)||0)-(t=D$(t)||0))-1e-8)),a=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=DK(e[n],e[n].slice(0));return DK(e,t)}(e);if(t>n&&(t=1-t,n=1-n,DY(a),a.totalLength=0),t<0||n<0){var i=Math.abs(~~Math.min(t,n))+1;t+=i,n+=i}a.totalLength||D3(a);var o,s,l,u,c,d,f,p,m=n>1,h=D4(a,t,DV,!0),y=D4(a,n,Dz),v=y.segment,g=h.segment,b=y.segIndex,x=h.segIndex,w=y.i,j=h.i,S=x===b,E=w===j&&S;if(m||r){for(o=b<x||S&&w<j||E&&y.t<h.t,DG(a,x,j,h.t)&&(x++,!o&&(b++,E?(y.t=(y.t-h.t)/(1-h.t),w=0):S&&(w-=j))),1e-5>Math.abs(1-(n-t))?b=x-1:!y.t&&b?b--:DG(a,b,w,y.t)&&o&&x++,1===h.t&&(x=(x+1)%a.length),c=[],f=1+(d=a.length)*r,p=x,f+=(d-x+b)%d,u=0;u<f;u++)DZ(c,a[p++%d]);a=c}else if(l=1===y.t?6:D5(v,w,y.t),t!==n)for(s=D5(g,j,E?h.t/y.t:h.t),S&&(l+=s),v.splice(w+l+2),(s||j)&&g.splice(0,j+s),u=a.length;u--;)(u<x||u>b)&&a.splice(u,1);else v.angle=D1(v,w+l,0),w+=l,h=v[w],y=v[w+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(h,y,h,y,h,y,h,y);return a.totalLength=0,a}function D3(e,t){var n,r,a;for(a=n=r=0;a<e.length;a++)e[a].resolution=~~t||12,n+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v,g,b=~~e.resolution||12,x=1/b,w=e.length,j=e[t],S=e[t+1],E=t?t/6*b:0,O=e.samples,k=e.lookup,A=(t?e.minLength:1e8)||1e8,D=O[E+(void 0)*b-1],P=t?O[E-1]:0;for(O.length=k.length=0,r=t+2;r<w;r+=6){if(a=e[r+4]-j,i=e[r+2]-j,o=e[r]-j,u=e[r+5]-S,c=e[r+3]-S,d=e[r+1]-S,s=l=f=p=0,.01>DI(a)&&.01>DI(u)&&DI(o)+DI(d)<.01)e.length>8&&(e.splice(r,6),r-=6,w-=6);else for(n=1;n<=b;n++)m=1-(h=x*n),s=l-(l=(h*h*a+3*m*(h*i+m*o))*h),(v=D_((f=p-(p=(h*h*u+3*m*(h*c+m*d))*h))*f+s*s))<A&&(A=v),P+=v,O[E++]=P;j+=a,S+=u}if(D)for(D-=P;E<O.length;E++)O[E]+=D;if(O.length&&A){if(e.totalLength=g=O[O.length-1]||0,e.minLength=A,g/A<9999)for(n=0,v=y=0;n<g;n+=A)k[v++]=O[y]<n?++y:y}else e.totalLength=O[0]=0;return t?P-O[t/2-1]:P}(e[a]),r+=e[a].length;return e.totalPoints=r,e.totalLength=n,e}function D5(e,t,n){if(n<=0||n>=1)return 0;var r=e[t],a=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=r+(i-r)*n,f=i+(s-i)*n,p=a+(o-a)*n,m=o+(l-o)*n,h=d+(f-d)*n,y=p+(m-p)*n,v=s+(u-s)*n,g=l+(c-l)*n;return f+=(v-f)*n,m+=(g-m)*n,e.splice(t+2,4,DU(d),DU(p),DU(h),DU(y),DU(h+(f-h)*n),DU(y+(m-y)*n),DU(f),DU(m),DU(v),DU(g)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function D4(e,t,n,r){n=n||{},e.totalLength||D3(e),(t<0||t>1)&&(t=DW(t));var a,i,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,i=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:Dq(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),c=1/i*((o-s)/(l-s)+u%i),u=6*~~(u/i),r&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return n.t=c,n.i=u,n.path=e,n.segment=f,n.segIndex=d,n}function D6(e,t,n,r){var a,i,o,s,l,u,c,d,f,p=e[0],m=r||{};if((t<0||t>1)&&(t=DW(t)),p.lookup||D3(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,i=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:Dq(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),f=1-(c=1/i*((o-s)/(l-s)+u%i)||0),d=p[u=6*~~(u/i)],m.x=DU((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),m.y=DU((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),n&&(m.angle=p.totalLength?D1(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),m}function D8(e,t,n,r,a,i,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*r+i,s[u+1]=c*n+d*a+o;return e._dirty=1,e}function D9(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y=(e+"").replace(DP,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(DA)||[],v=[],g=0,b=0,x=2/3,w=y.length,j=0,S="ERROR: malformed path: "+e,E=function(e,t,n,r){c=(n-e)/3,d=(r-t)/3,s.push(e+c,t+d,n-c,r-d,n,r)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(S),v;for(t=0;t<w;t++)if(p=i,isNaN(y[t])?o=(i=y[t].toUpperCase())!==y[t]:t--,r=+y[t+1],a=+y[t+2],o&&(r+=g,a+=b),t||(l=r,u=a),"M"===i)s&&(s.length<8?v.length-=1:j+=s.length,DH(s)),g=l=r,b=u=a,s=[r,a],v.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(g=b=0),s.push(r,a,g+ +y[t+3],b+ +y[t+4],g+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===i)c=g,d=b,("C"===p||"S"===p)&&(c+=g-s[s.length-4],d+=b-s[s.length-3]),o||(g=b=0),s.push(c,d,r,a,g+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=g+(r-g)*x,d=b+(a-b)*x,o||(g=b=0),g+=+y[t+3],b+=+y[t+4],s.push(c,d,g+(r-g)*x,b+(a-b)*x,g,b),t+=4;else if("T"===i)c=g-s[s.length-4],d=b-s[s.length-3],s.push(g+c,b+d,r+(g+1.5*c-r)*x,a+(b+1.5*d-a)*x,g=r,b=a),t+=2;else if("H"===i)E(g,b,g=r,b),t+=1;else if("V"===i)E(g,b,g,b=r+(o?b-g:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(r=l,a=u,s.closed=!0),("L"===i||DI(g-r)>.5||DI(b-a)>.5)&&(E(g,b,r,a),"L"===i&&(t+=2)),g=r,b=a;else if("A"===i){if(m=y[t+4],h=y[t+5],c=y[t+6],d=y[t+7],n=7,m.length>1&&(m.length<3?(d=c,c=h,n--):(d=h,c=m.substr(2),n-=2),h=m.charAt(1),m=m.charAt(0)),f=function(e,t,n,r,a,i,o,s,l){if(e!==s||t!==l){n=DI(n),r=DI(r);var u=a%360*DT,c=DR(u),d=DM(u),f=Math.PI,p=2*f,m=(e-s)/2,h=(t-l)/2,y=c*m+d*h,v=-d*m+c*h,g=y*y,b=v*v,x=g/(n*n)+b/(r*r);x>1&&(n=D_(x)*n,r=D_(x)*r);var w=n*n,j=r*r,S=(w*j-w*b-j*g)/(w*b+j*g);S<0&&(S=0);var E=(i===o?-1:1)*D_(S),O=n*v/r*E,k=-(r*y/n*E),A=(e+s)/2+(c*O-d*k),D=(t+l)/2+(d*O+c*k),P=(y-O)/n,C=(v-k)/r,T=(-y-O)/n,N=(-v-k)/r,M=P*P+C*C,R=(C<0?-1:1)*Math.acos(P/D_(M)),I=(P*N-C*T<0?-1:1)*Math.acos((P*T+C*N)/D_(M*(T*T+N*N)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),R%=p;var _,L=Math.ceil(DI(I%=p)/(p/4)),F=[],B=I/L,V=4/3*DM(B/2)/(1+DR(B/2)),z=c*n,W=d*n,U=-(d*r),$=c*r;for(_=0;_<L;_++)y=DR(a=R+_*B),v=DM(a),P=DR(a+=B),C=DM(a),F.push(y-V*v,v+V*y,P+V*C,C-V*P,P,C);for(_=0;_<F.length;_+=2)y=F[_],v=F[_+1],F[_]=y*z+v*U+A,F[_+1]=y*W+v*$+D;return F[_-2]=s,F[_-1]=l,F}}(g,b,+y[t+1],+y[t+2],+y[t+3],+m,+h,(o?g:0)+ +c,(o?b:0)+ +d),t+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);g=s[s.length-2],b=s[s.length-1]}else console.log(S);return(t=s.length)<6?(v.pop(),t=0):DH(s),v.totalPoints=j+t,v}function D7(e,t){1e-4>DI(e[0]-e[2])&&1e-4>DI(e[1]-e[3])&&(e=e.slice(2));var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v=e.length-2,g=+e[0],b=+e[1],x=+e[2],w=+e[3],j=[g,b,g,b],S=x-g,E=w-b,O=e.nonSmooth||[],k=.001>Math.abs(e[v]-g)&&.001>Math.abs(e[v+1]-b);if(!v)return[g,b,g,b,g,b,g,b];for(k&&(e.push(x,w),x=g,w=b,g=e[v-2],b=e[v-1],e.unshift(g,b),v+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,a=2;a<v;a+=2)if(n=g,r=b,g=x,b=w,x=+e[a+2],w=+e[a+3],g!==x||b!==w){if(i=S,o=E,S=x-g,E=w-b,O[a]){j.push(g-(g-n)/4,b-(b-r)/4,g,b,g+(x-g)/4,b+(w-b)/4);continue}s=D_(i*i+o*o),l=D_(S*S+E*E),u=D_(Math.pow(S/l+i/s,2)+Math.pow(E/l+o/s,2)),c=(s+l)*t*.25/u,d=g-(g-n)*(s?c/s:0),f=g+(x-g)*(l?c/l:0),p=g-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),m=b-(b-r)*(s?c/s:0),h=b+(w-b)*(l?c/l:0),y=b-(m+((h-m)*(3*s/(s+l)+.5)/4||0)),j.push(DU(d+p),DU(m+y),DU(g),DU(b),DU(f+p),DU(h+y))}return g!==x||b!==w||j.length<4?j.push(DU(x),DU(w),DU(x),DU(w)):j.length-=2,2===j.length?j.push(g,b,g,b,g,b):k&&(j.splice(0,6),j.length-=6),j.closed=k,j}function Pe(e){DB(e[0])&&(e=[e]);var t,n,r,a,i="",o=e.length;for(n=0;n<o;n++){for(i+="M"+DU((a=e[n])[0])+","+DU(a[1])+" C",t=a.length,r=2;r<t;r++)i+=DU(a[r++])+","+DU(a[r++])+" "+DU(a[r++])+","+DU(a[r++])+" "+DU(a[r++])+","+DU(a[r])+" ";a.closed&&(i+="z")}return i}var Pt,Pn,Pr,Pa,Pi,Po,Ps,Pl,Pu,Pc,Pd,Pf="transform",Pp=Pf+"Origin",Pm=function(e){var t=e.ownerDocument||e;for(!(Pf in e.style)&&("msTransform"in e.style)&&(Pp=(Pf="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Pa=window,Pu=new PE,t){Pr=t,Pi=t.documentElement,Po=t.body,(Pc=Pr.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),r=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.style.position="static",n.style.transform="translate3d(0,0,1px)",Pd=r.offsetParent!==n,a.removeChild(n))}return t},Ph=function(e){for(var t,n;e&&e!==Po;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},Py=[],Pv=[],Pg=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},Pb=function e(t,n){if(t.parentNode&&(Pr||Pm(t))){var r=Pg(t),a=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=r?n?"rect":"g":"div",o=100*(2===n),s=100*(3===n),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Pr.createElementNS?Pr.createElementNS(a.replace(/^https/,"http"),i):Pr.createElement(i);return n&&(r?(Pl||(Pl=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Pl.appendChild(u)):(Ps||Object.assign((Ps=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Ps.appendChild(u))),u}throw"Need document and parent."},Px=function(e){for(var t=new PE,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},Pw=function(e){var t,n=e.getCTM();return n||(t=e.style[Pf],e.style[Pf]="none",e.appendChild(Pc),n=Pc.getCTM(),e.removeChild(Pc),t?e.style[Pf]=t:e.style.removeProperty(Pf.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Pu.clone()},Pj=function(e,t){var n,r,a,i,o,s,l=Pg(e),u=e===l,c=l?Py:Pv,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Pa)return e;if(c.length||c.push(Pb(e,1),Pb(e,2),Pb(e,3)),n=l?Pl:Ps,l)u?(i=-(a=Pw(e)).e/a.a,o=-a.f/a.d,r=Pu):e.getBBox?(a=e.getBBox(),i=(r=(r=e.transform?e.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?Px(r):r.getItem(0).matrix:Pu).a*a.x+r.c*a.y,o=r.b*a.x+r.d*a.y):(r=new PE,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+i)+","+(r.f+o)+")");else{if(i=o=0,Pd)for(r=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==r&&a.parentNode;)(Pa.getComputedStyle(a)[Pf]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Pa.getComputedStyle(e)).position&&"fixed"!==s.position)for(r=e.offsetParent;d&&d!==r;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=n.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Pf]=s[Pf],a[Pp]=s[Pp],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(n)}return n},PS=function(e,t,n,r,a,i,o){return e.a=t,e.b=n,e.c=r,e.d=a,e.e=i,e.f=o,e},PE=function(){function e(e,t,n,r,a,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===i&&(i=0),PS(this,e,t,n,r,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,i=this.f,o=e*r-t*n||1e-10;return PS(this,r/o,-t/o,-n/o,e/o,(n*i-r*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return PS(this,s*t+u*r,s*n+u*a,l*t+c*r,l*n+c*a,i+d*t+f*r,o+d*n+f*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,r=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=n*a+r*o+l||0,t.y=n*i+r*s+u||0,t},e}();function PO(e,t,n,r){if(!e||!e.parentNode||(Pr||Pm(e)).documentElement===e)return new PE;var a=Ph(e),i=Pg(e)?Py:Pv,o=Pj(e,n),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.parentNode,d=!r&&function e(t){return"fixed"===Pa.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new PE((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Pa.pageXOffset||Pr.scrollLeft||Pi.scrollLeft||Po.scrollLeft||0),s.top+(d?0:Pa.pageYOffset||Pr.scrollTop||Pi.scrollTop||Po.scrollTop||0));if(c.removeChild(o),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var Pk,PA,PD,PP,PC,PT,PN="x,translateX,left,marginLeft,xPercent".split(","),PM="y,translateY,top,marginTop,yPercent".split(","),PR=Math.PI/180,PI=function(e,t,n,r){for(var a=t.length,i=2===r?0:r,o=0;o<a;o++)e[i]=parseFloat(t[o][n]),2===r&&(e[i+1]=0),i+=2;return e},P_=function(e,t,n){return parseFloat(e._gsap.get(e,t,n||"px"))||0},PL=function(e){var t,n=e[0],r=e[1];for(t=2;t<e.length;t+=2)n=e[t]+=n,r=e[t+1]+=r},PF=function(e,t,n,r,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(P_(n,r,s),a?P_(n,a,l):0),o.relative&&PL(t),t=[(a?D7:function(e,t){void 0===t&&(t=1);for(var n=e[0],r=0,a=[n,0],i=2;i<e.length;i+=2)a.push(n,r,e[i],r=(e[i]-n)*t/2,n=e[i],-r);return a})(t,o.curviness)]),t=i(PU(t,n,o)),P$(e,n,r,t,"x",s),a&&P$(e,n,a,t,"y",l),D3(t,o.resolution||(0===o.curviness?20:12))},PB=function(e){return e},PV=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Pz=function(e,t,n){var r,a=PO(e),i=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(r=e.viewBox.baseVal).width||(r={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):r=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(i=t.push?t[0]*(r?r.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(r?r.height:e.offsetHeight||0):t.y),n.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},PW=function(e,t,n,r){var a,i=PO(e.parentNode,!0,!0),o=i.clone().multiply(PO(t)),s=Pz(e,n,i),l=Pz(t,r,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===r&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(PV)||[],u+=(a=o.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=o.apply(t.getBBox())).x,c-=a.y),o.e=u-s.x,o.f=c-s.y,o},PU=function(e,t,n){var r,a,i,o=n.align,s=n.matrix,l=n.offsetX,u=n.offsetY,c=n.alignOrigin,d=e[0][0],f=e[0][1],p=P_(t,"x"),m=P_(t,"y");return e&&e.length?(o&&("self"===o||(r=PP(o)[0]||t)===t?D8(e,1,0,0,1,p-d,m-f):(c&&!1!==c[2]?Pk.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(P_(t,"xPercent")/100),-(P_(t,"yPercent")/100)],i=(a=PW(t,r,c,"auto")).apply({x:d,y:f}),D8(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),m+a.f-(i.y-a.f)))),s?D8(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&D8(e,1,0,0,1,l||0,u||0),e):DX("M0,0L0,0")},P$=function(e,t,n,r,a,i){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[n],u=l&&0>l.indexOf(",")?l:n,c=e._pt=new PA(e._pt,t,u,0,0,PB,0,o.set(t,u,e));c.u=PD(o.get(t,u,i))||0,c.path=r,c.pp=a,e._props.push(u)},PH={version:"3.15.0",name:"motionPath",register:function(e,t,n){PD=(Pk=e).utils.getUnit,PP=Pk.utils.toArray,PC=Pk.core.getStyleSaver,PT=Pk.core.reverting||function(){},PA=n},init:function(e,t,n){if(!Pk)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!t.style&&t.path||(t={path:t});var r,a,i,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,m=u.x,h=u.y,y=c[0],v=(a=t.start,i="end"in t?t.end:1,function(e){return a||1!==i?D2(e,a,i):e});if(this.rawPaths=l,this.target=e,this.tween=n,this.styles=PC&&PC(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=PD(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)D3(o=v(PU(DX(t.path),e,t)),t.resolution),l.push(o),P$(this,e,t.x||"x",o,"x",t.unitX||"px"),P$(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!m&&~PN.indexOf(s)?m=s:!h&&~PM.indexOf(s)&&(h=s);for(s in m&&h?l.push(PF(this,PI(PI([],c,m,0),c,h,1),e,m,h,v,t,f||PD(c[0][m]),p||PD(c[0][h]))):m=h=0,y)s!==m&&s!==h&&l.push(PF(this,PI([],c,s,2),e,s,0,v,t,PD(c[0][s])))}n.vars.immediateRender&&this.render(n.progress(),this)},render:function(e,t){var n=t.rawPaths,r=n.length,a=t._pt;if(t.tween._time||!PT()){for(e>1?e=1:e<0&&(e=0);r--;)D6(n[r],e,!r&&t.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,e),a=a._next;t.rotate&&t.rSet(t.target,t.rProp,n[0].angle*(t.radians?PR:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return D3(DX(e)).totalLength},sliceRawPath:D2,getRawPath:DX,pointsToSegment:D7,stringToRawPath:D9,rawPathToString:Pe,transformRawPath:D8,getGlobalMatrix:PO,getPositionOnPath:D6,cacheRawPathMeasurements:D3,convertToPath:function(e,t){return PP(e).map(function(e){var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O;return n=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=DQ(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),E=D0(e,DJ[O]),"rect"===O?(o=E.rx,s=E.ry||o,a=E.x,i=E.y,f=E.width-2*o,p=E.height-2*s,o||s?(m=a+.44771525016900005*o,v=(y=(h=a+o)+f)+.552284749831*o,g=y+o,b=i+.44771525016900005*s,j=(w=(x=i+s)+p)+.552284749831*s,S=w+s,r="M"+g+","+x+" V"+w+" C"+[g,j,v,S,y,S,y-(y-h)/3,S,h+(y-h)/3,S,h,S,m,S,a,j,a,w,a,w-(w-x)/3,a,x+(w-x)/3,a,x,a,b,m,i,h,i,h+(y-h)/3,i,y-(y-h)/3,i,y,i,v,i,g,b,g,x].join(",")+"z"):r="M"+(a+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=E.r):(o=E.rx,c=.552284749831*(s=E.ry)),a=E.cx,i=E.cy,u=.552284749831*o,r="M"+(a+o)+","+i+" C"+[a+o,i+c,a+u,i+s,a,i+s,a-u,i+s,a-o,i+c,a-o,i,a-o,i-c,a-u,i-s,a,i-s,a+u,i-s,a+o,i-c,a+o,i].join(",")+"z"):"line"===O?r="M"+E.x1+","+E.y1+" L"+E.x2+","+E.y2:("polyline"===O||"polygon"===O)&&(r="M"+(a=(d=(e.getAttribute("points")+"").match(DD)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===O&&(r+=","+a+","+i+"z")),l.setAttribute("d",Pe(l._gsRawPath=D9(r))),n&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,n){var r=PO(t,!0,!0).multiply(PO(e));return n?r.apply(n):r},getAlignMatrix:PW,getRelativePosition:function(e,t,n,r){var a=PW(e,t,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var n=PI(PI([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&PL(n),["cubic"===t.type?n:D7(n,t.curviness)]}};(Pk||"u">typeof window&&(Pk=window.gsap)&&Pk.registerPlugin&&Pk)&&Pk.registerPlugin(PH);let PG="_91T10b5z4yVLEvBTiOHB2w==",Pq="DV-xKWaHEEvN+MaZK6G-sw==",PY="BiOYgCt0Z+UKXxmzw9enhg==";function PK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function PX(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}Eh.registerPlugin(PH);var PQ=function(e){var t,n=e.url,r=e.title,a=e.open,i=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return PK(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return PK(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useRef)(null),p={transformOrigin:"center center"},m=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},h=function(){return{cx:200,cy:200,r:49}};return(0,g.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,n=c?0:e+t;a?Eh.timeline().set(f.current,PZ({},p,m())).to(f.current,PX(PZ({},p,h()),{duration:t,ease:"power3.inOut"})).to(f.current,PX(PZ({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):Eh.timeline({overwrite:!0}).set(f.current,PZ({},p,{cx:5100,cy:200,r:4900})).to(f.current,PX(PZ({},p,h()),{delay:n,duration:e,ease:"power4.out"})).to(f.current,PX(PZ({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},m()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[a]),(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PG,children:[(0,v.jsxs)("defs",{children:[(0,v.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,v.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,v.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,v.jsx)("rect",{width:400,height:400})})]}),(0,v.jsx)("g",{clipPath:"url(#".concat(o).concat(i?"_squareClip":"_circleClip",")"),children:(0,v.jsx)("image",{width:400,height:400,href:n,className:Pq,children:(0,v.jsx)("title",{children:r})})})]})},PJ=function(e){var t=e.images,n=e.onSelect,r=function(e){return 200-(24*t.length-10)/2+24*e},a=function(){return 370};return(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PG,children:t.map(function(e,t){return(0,v.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,v.jsx)("circle",{cx:r(t),cy:a(),r:7})})}),(0,v.jsx)("image",{x:r(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:Pq,preserveAspectRatio:"xMidYMid slice"}),(0,v.jsx)("circle",{onClick:function(){return n(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:r(t),cy:a(),r:9,children:(0,v.jsx)("title",{children:e.title})})]},e.url)})})};function P0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P0(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P2=function(e){var t=e.images,n=e.autoplay,r=void 0===n||n,a=e.autoplayInterval,i=void 0===a?4500:a,o=e.className,s=e.style,l=P1((0,g.useState)(0),2),u=l[0],c=l[1],d=P1((0,g.useState)(0),2),f=d[0],p=d[1],m=P1((0,g.useState)(!1),2),h=m[0],y=m[1],b=(0,g.useRef)(null),x=function(e){return p(e)},j=(0,g.useCallback)(function(){c(function(e){var n=e+1;return n>=t.length&&(n=0),n})},[t.length]),S=(0,g.useCallback)(function(){c(function(e){var n=e-1;return n<0&&(n=t.length-1),n})},[t.length]);return(0,g.useEffect)(function(){return y(!0)},[u]),(0,g.useEffect)(function(){return y(!1)},[f]),(0,g.useEffect)(function(){if(r)return b.current&&clearInterval(b.current),b.current=window.setInterval(j,i),function(){b.current&&clearInterval(b.current)}},[u,r,i,j]),(0,v.jsxs)("div",{className:w()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,v.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,n){return(0,v.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===n?n:t.length+1},children:(0,v.jsx)(PQ,{total:t.length,id:n,url:e.url,title:e.title,open:u===n,inPlace:f===n,onInPlace:x})},e.url)}),(0,v.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,v.jsx)(PJ,{images:t,onSelect:function(e){h||c(e)}})})]}),(0,v.jsx)("button",{type:"button",className:w()(PY,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:S,disabled:h,"aria-label":"Image pr\xe9c\xe9dente",children:(0,v.jsx)(oj,{size:28})}),(0,v.jsx)("button",{type:"button",className:w()(PY,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:j,disabled:h,"aria-label":"Image suivante",children:(0,v.jsx)(oS,{size:28})})]})};function P3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P5(e){var t=e.handleShuffle,n=e.testimonial,r=e.position,a=e.id,i=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,g.useRef)(0),f="front"===r;return(0,v.jsxs)(mq.div,{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){P3(e,t,n[t])})}return e}({zIndex:"front"===r?2:+("middle"===r),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===r?"-6deg":"middle"===r?"0deg":"6deg",x:"front"===r?"0%":"middle"===r?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var n=e.clientX;d.current-n>150&&t(),d.current=0},transition:{duration:.35},className:w()("ohCq+RO21+rIvJcyy3o2gw==",P3({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,v.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(i),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,v.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',n,'"']}),(0,v.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:i})]})}function P4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P6(e){if(Array.isArray(e))return e}function P8(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function P9(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P7(e,t){if(e){if("string"==typeof e)return P4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P4(e,t)}}function Ce(e){var t,n=e.testimonials,r=e.cardWidth,a=void 0===r?350:r,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=P6(t=(0,g.useState)(function(){return n.map(function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||P7(t,2)||P9(),d=c[0],f=c[1];(0,g.useEffect)(function(){f(n.map(function(e,t){return t}))},[n]);var p=(0,g.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,r=P6(e)||P8(e)||P7(e)||P9(),a=r[0],i=r.slice(1);return null==u||u(null==(t=n[a])?void 0:t.id),((function(e){if(Array.isArray(e))return P4(e)})(i)||P8(i)||P7(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([a])})},[u,n]);return(0,v.jsx)("div",{className:w()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a,height:o},l),children:d.map(function(e,t){var r=n[e];return r?(0,v.jsx)(P5,{id:r.id,testimonial:r.testimonial,author:r.author,avatarUrl:r.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:o},r.id):null})})}var Ct=(0,g.createContext)(null),Cn=function(){var e=(0,g.useContext)(Ct);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Cr(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Ca(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(function(n){var r=e[n],a=t[n];return"function"==typeof r?"".concat(r)==="".concat(a):Cr(r)&&Cr(a)?Ca(r,a):r===a})}function Ci(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e){return"number"==typeof e}function Cl(e){return"string"==typeof e}function Cu(e){return"boolean"==typeof e}function Cc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cd(e){return Math.abs(e)}function Cf(e){return Math.sign(e)}function Cp(e){return Cv(e).map(Number)}function Cm(e){return e[Ch(e)]}function Ch(e){return Math.max(0,e.length-1)}function Cy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,n){return t+n})}function Cv(e){return Object.keys(e)}function Cg(e,t){var n;return void 0!==t.MouseEvent&&(null!=(n=t.MouseEvent)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)}function Cb(){var e=[],t={add:function(n,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,a,o),i=function(){return n.removeEventListener(r,a,o)}):(n.addListener(a),i=function(){return n.removeListener(a)}),e.push(i),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function Cx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Cd(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Cw(e){var t=e;function n(e){return Cs(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Cj(e,t){var n="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},r=t.style,a=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(r.transform=n(o),a=o)}},toggleActive:function(e){i=!e}}}var CS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function CE(e,t,n){var r,a,i,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,n){return[t,n].reduce(function(t,n){return Cv(n).forEach(function(r){var a=t[r],i=n[r],o=Cc(a)&&Cc(i);t[r]=o?e(a,i):i}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){var r=n.breakpoints||{},a=Cv(r).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return r[e]}).reduce(function(e,n){return t(e,n)},{});return t(n,a)},optionsMediaQueries:function(t){return t.map(function(e){return Cv(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),m=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var n,r;return Object.assign(e,(n={},r=t.name,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),h=Cb(),y=(a={},i={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(r,e)}),i},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),i},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),i},clear:function(){a={}}}),v=p.mergeOptions,g=p.optionsAtMedia,b=p.optionsMediaQueries,x=y.on,w=y.off,j=y.emit,S=!1,E=v(CS,CE.globalOptions),O=v(E),k=[];function A(t,n){var r,a,i,o;!S&&(O=g(E=v(E,t)),k=n||k,r=O.container,a=O.slides,u=(Cl(r)?e.querySelector(r):r)||e.children[0],i=Cl(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(n){var r=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O,k,A,D,P,C,T,N,M,R,I,_,L,F,B,V,z,W,U,$,H,G,q,Y,K,Z,X=i.align,Q=i.axis,J=i.direction,ee=i.startIndex,et=i.loop,en=i.duration,er=i.dragFree,ea=i.dragThreshold,ei=i.inViewThreshold,eo=i.slidesToScroll,es=i.skipSnaps,el=i.containScroll,eu=i.watchResize,ec=i.watchSlides,ed=i.watchDrag,ef=i.watchFocus,ep={measure:function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},em=ep.measure(t),eh=n.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,m=f?"top":d?"right":"left",h=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:m,endEdge:h,measureSize:function(e){var t=e.height,n=e.width;return f?t:n},direction:function(e){return e*p}}),ev=ey.measureSize(em),eg={measure:function(e){return e/100*ev}},eb=(s=X,l=ev,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Cl(s)?u[s](e):s(l,e,t)}}),ex=!et&&!!el,ew=et||!!el,ej=(y=ey.measureSize,v=ey.startEdge,g=ey.endEdge,b=eh[0]&&ew,x=function(){if(!b)return 0;var e=eh[0];return Cd(em[v]-e[v])}(),w=b?parseFloat(a.getComputedStyle(Cm(n)).getPropertyValue("margin-".concat(g))):0,j=eh.map(y),S=eh.map(function(e,t,n){var r=t===Ch(n);return t?r?j[t]+w:n[t+1][v]-e[v]:j[t]+x}).map(Cd),{slideSizes:j,slideSizesWithGaps:S,startGap:x,endGap:w}),eS=ej.slideSizes,eE=ej.slideSizesWithGaps,eO=ej.startGap,ek=ej.endGap,eA=(E=ey.startEdge,O=ey.endEdge,k=ey.direction,A=Cs(eo),{groupSlides:function(e){return A?Cp(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?Cp(e).reduce(function(t,n,r){var a=Cm(t)||0,i=n===Ch(e),o=em[E]-eh[a][E],s=em[E]-eh[n][O],l=et||0!==a?0:k(eO),u=Cd(s-(!et&&i?k(ek):0)-(o+l));return r&&u>ev+2&&t.push(n),i&&t.push(e.length),t},[]).map(function(t,n,r){var a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}),eD=(D=ey.startEdge,P=ey.endEdge,T=(C=eA.groupSlides)(eh).map(function(e){return Cm(e)[P]-e[0][D]}).map(Cd).map(eb.measure),M=C(N=eh.map(function(e){return em[D]-e[D]}).map(function(e){return-Cd(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:M}),eP=eD.snaps,eC=eD.snapsAligned,eT=-Cm(eP)+Cm(eE),eN=function(e,t,n,r){var a,i,o=Cx(-t+e,0),s=n.map(function(e,t){var r=o.min,a=o.max,i=o.constrain(e),s=t===Ch(n);return t?s||function(e,t){return 1>=Cd(e-t)}(r,i)?r:function(e,t){return 1>=Cd(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=Cm(s),Cx(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;var n=l.min,a=l.max;return s.slice(n,a)}(),scrollContainLimit:l}}(ev,eT,eC,el),eM=eN.snapsContained,eR=eN.scrollContainLimit,eI=ex?eM:eC,e_=(R=eI[0],{limit:Cx(et?R-eT:Cm(eI),R)}).limit,eL=function e(t,n,r){var a=Cx(0,t).constrain,i=t+1,o=s(n);function s(e){return r?Cd((i+e)%i):a(e)}function l(){return e(t,o,r)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(Ch(eI),ee,et),eF=eL.clone(),eB=Cp(n),eV=function(e){var t=e.dragHandler,n=e.scrollBody,r=e.scrollBounds;e.options.loop||r.constrain(t.pointerDown()),n.seek()},ez=function(e,t){var n=e.scrollBody,r=e.translate,a=e.location,i=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,m=n.settled(),h=!f.shouldConstrain(),y=p?m:m&&h,v=y&&!u.pointerDown();v&&c.stop();var g=a.get()*t+o.get()*(1-t);i.set(g),p&&(s.loop(n.direction()),l.loop()),r.to(i.get()),v&&d.emit("settle"),y||d.emit("scroll")},eW=function(e,t,n,r){var a=Cb(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,n(),n());var a=e-o;for(o=e,s+=a;s>=i;)n(),s-=i;r(s/i),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:r}}(r,a,function(){return eV(e2)},function(e){return ez(e2,e)}),eU=eI[eL.get()],e$=Cw(eU),eH=Cw(eU),eG=Cw(eU),eq=Cw(eU),eY=function(e,t,n,r,a){var i=0,o=0,s=a,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return i},seek:function(){var t=r.get()-e.get(),a=0;return s?(n.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,n.set(r),e.set(r),a=t),o=Cf(a),c=u,p},settled:function(){return .001>Cd(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(e$,eG,eH,eq,en),eK=function(e,t,n,r,a){var i=r.reachedAny,o=r.removeOffset,s=r.constrain;function l(e){return e.concat().sort(function(e,t){return Cd(e)-Cd(t)})[0]}function u(t,r){var a=[t,t+n,t-n];if(!e)return t;if(!r)return l(a);var i=a.filter(function(e){return Cf(e)===r});return i.length?l(i):Cm(a)-n}return{byDistance:function(n,r){var l,c=a.get()+n,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return Cd(e.diff)-Cd(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,m=!e&&i(c);if(!r||m)return{index:f,distance:n};var h=n+u(t[f]-p,0);return{index:f,distance:h}},byIndex:function(e,n){var r=u(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:u}}(et,eI,eT,e_,eq),eZ=function(e,t,n,r,a,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}(eW,eL,eF,eY,eK,eq,o),eX=(I=e_.max,_=e_.length,{get:function(e){return _?-((e-I)/_):0}}),eQ=Cb(),eJ=(F={},B=null,V=null,z=!1,{init:function(){L=new IntersectionObserver(function(e){z||(e.forEach(function(e){F[n.indexOf(e.target)]=e}),B=null,V=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ei}),n.forEach(function(e){return L.observe(e)})},destroy:function(){L&&L.disconnect(),z=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&B)return B;if(!e&&V)return V;var t=Cv(F).reduce(function(t,n){var r=parseInt(n),a=F[r].isIntersecting;return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(B=t),e||(V=t),t}}),e0=(W=eA.groupSlides,U=eR.min,$=eR.max,{slideRegistry:(c=W(eB),1===eI.length?[eB]:ex&&"keepSnaps"!==el?c.slice(U,$).map(function(e,t,n){var r=t===Ch(n);return t?r?Cy(Ch(eB)-Cm(n)[0]+1,Cm(n)[0]):e:Cy(Cm(n[0])+1)}):c)}).slideRegistry,e1=function(e,t,n,r,a,i,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(i.add(document,"keydown",c,!1),t.forEach(function(t,c){i.add(t,"focus",function(t){(Cu(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=n.findIndex(function(e){return e.includes(t)});Cs(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,n,e0,eZ,eY,eQ,o,ef),e2={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:eh,animation:eW,axis:ey,dragHandler:function(e,t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v){var g=e.cross,b=e.direction,x=["INPUT","SELECT","TEXTAREA"],w={passive:!1},j=Cb(),S=Cb(),E=Cx(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},A=m?43:25,D=!1,P=0,C=0,T=!1,N=!1,M=!1,R=!1;function I(e){if(!Cg(e,r)&&e.touches.length>=2)return _(e);var t=i.readPoint(e),n=i.readPoint(e,g),o=Cd(t-P),l=Cd(n-C);if(!N&&!R&&(!e.cancelable||!(N=o>l)))return _(e);var c=i.pointerMove(e);o>h&&(M=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function _(e){var t,n,r,a=c.byDistance(0,!1).index!==d.get(),o=i.pointerUp(e)*(m?k:O)[R?"mouse":"touch"],s=(t=b(o),n=d.add(-1*Cf(t)),r=c.byDistance(t,!m).distance,m||Cd(t)<E?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){if(0===e||0===t||Cd(e)<=Cd(t))return 0;var n,r,a=(n=Cd(e),r=Cd(t),Cd(n-r));return Cd(a/e)}(o,s);N=!1,T=!1,S.clear(),u.useDuration(A-10*p).useFriction(.68+p/50),l.distance(s,!m),R=!1,f.emit("pointerUp")}function L(e){M&&(e.stopPropagation(),e.preventDefault(),M=!1)}return{init:function(e){v&&j.add(t,"dragstart",function(e){return e.preventDefault()},w).add(t,"touchmove",function(){},w).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",_).add(t,"contextmenu",_).add(t,"click",L,!0);function s(s){var l,c,d,p;(Cu(v)||v(e,s))&&(R=p=Cg(l=s,r),M=m&&p&&!l.buttons&&D,D=Cd(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",x.includes(c)||(T=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=R?n:t,S.add(d,"touchmove",I,w).add(d,"touchend",_).add(d,"mousemove",I,w).add(d,"mouseup",_),P=i.readPoint(l),C=i.readPoint(l,g),f.emit("pointerDown"))))}},destroy:function(){j.clear(),S.clear()},pointerDown:function(){return T}}}(ey,e,r,a,eq,function(e,t){var n,r;function a(e){return e.timeStamp}function i(n,r){var a=r||e.scroll;return(Cg(n,t)?n:n.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){var t=i(e)-i(r),o=a(e)-a(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;var t=i(r)-i(n),o=a(e)-a(n),s=a(e)-a(r)>170,l=t/o;return o&&!s&&Cd(l)>.1?l:0},readPoint:i}}(ey,a),e$,eW,eZ,eY,eK,eL,o,eg,er,ea,es,ed),eventStore:eQ,percentOfView:eg,index:eL,indexPrevious:eF,limit:e_,location:e$,offsetLocation:eG,previousLocation:eH,options:i,resizeHandler:function(e,t,n,r,a,i,o){var s,l,u=[e].concat(r),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=r.map(f),s=new ResizeObserver(function(n){(Cu(i)||i(a,n))&&function(n){var i=!0,o=!1,s=void 0;try{for(var u,p=n[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var m=u.value;if(d)return;var h=m.target===e,y=r.indexOf(m.target),v=h?l:c[y],g=f(h?e:r[y]);if(Cd(g-v)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}(n)}),n.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,n,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,n,r,a){var i=a.measure(10),o=a.measure(50),s=Cx(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=Cd(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/o);n.subtract(d*f),!a&&Cd(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(e_,eG,eq,eY,eg),scrollLooper:(H=[e$,eG,eH,eq],q=(G=Cx(e_.min+.1,e_.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&q(eG.get())){var t=-1*e*eT;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eI.map(eX.get),scrollSnaps:eI,scrollTarget:eK,scrollTo:eZ,slideLooper:function(e,t,n,r,a,i,o,s,l){var u=Cp(a),c=Cp(a).reverse(),d=m(p(c,o[0]),n,!1).concat(m(p(u,t-o[0]-1),-n,!0));function f(e,t){return e.reduce(function(e,t){return e-a[t]},t)}function p(e,t){return e.reduce(function(e,n){return f(e,t)>0?e.concat([n]):e},[])}function m(a,o,u){var c=i.map(function(e,n){return{start:e-r[n]+.5+o,end:e+t-.5+o}});return a.map(function(t){var r=u?0:-n,a=u?n:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:Cw(-1),translate:Cj(e,l[t]),target:function(){return s.get()>i?r:a}}})}return{canLoop:function(){return d.every(function(e){var n=e.index;return .1>=f(u.filter(function(e){return e!==n}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,n=e.translate,r=e.slideLocation,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:d}}(ey,ev,eT,eS,eE,eP,eI,eG,n),slideFocus:e1,slidesHandler:(Z=!1,{init:function(e){ec&&(K=new MutationObserver(function(t){!Z&&(Cu(ec)||ec(e,t))&&function(t){var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){K&&K.disconnect(),Z=!0}}),slidesInView:eJ,slideIndexes:eB,slideRegistry:e0,slidesToScroll:eA,target:eq,translate:Cj(ey,t)};return e2}(e,u,c,d,f,n,y);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(O),b([E].concat(function(e){if(Array.isArray(e))return Co(e)}(o=k.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return Co(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Co(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return h.add(e,"change",D)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(N),s.eventHandler.init(N),s.resizeHandler.init(N),s.slidesHandler.init(N),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(N),l=m.init(N,k)))}function D(e,t){var n=T();P(),A(v({startIndex:n},e),t),y.emit("reInit")}function P(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),m.destroy(),h.clear()}function C(e,t,n){O.active&&!S&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,n||0))}function T(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==T()},canScrollPrev:function(){return s.index.add(-1).get()!==T()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){S||(S=!0,h.clear(),P(),y.emit("destroy"),y.clear())},off:w,on:x,emit:j,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:D,rootNode:function(){return e},scrollNext:function(e){C(s.index.add(1).get(),e,-1)},scrollPrev:function(e){C(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:C,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return A(t,n),setTimeout(function(){return y.emit("init")},0),N}function CO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ck(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CO(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,g.useRef)(e),r=(0,g.useRef)(t),a=Ck((0,g.useState)(),2),i=a[0],o=a[1],s=Ck((0,g.useState)(),2),l=s[0],u=s[1],c=(0,g.useCallback)(function(){i&&i.reInit(n.current,r.current)},[i]);return(0,g.useEffect)(function(){Ca(n.current,e)||(n.current=e,c())},[e,c]),(0,g.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var n=Ci(e),r=Ci(t);return n.every(function(e,t){return Ca(e,r[t])})}(r.current,t)&&(r.current=t,c())},[t,c]),(0,g.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){CE.globalOptions=CA.globalOptions;var e=CE(l,n.current,r.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}CE.globalOptions=void 0,CA.globalOptions=void 0;let CD={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function CP(e){var t=e.children,n=e.className,r=Cn(),a=r.axis,i=r.mainViewportRef;return(0,v.jsx)("div",{ref:i,className:w()(CD.viewport,CD["viewport--".concat(a)],n),children:(0,v.jsx)("div",{className:w()(CD.container,CD["container--".concat(a)]),children:t})})}function CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CC(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CN(e){var t,n,r,a=e.children,i=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(r=null==i?void 0:i.axis)?r:"x",f=CT(CA((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),n=n={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),o),2),p=f[0],m=f[1],h=CT(CA({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),y=h[0],x=h[1],j=CT((0,g.useState)(0),2),S=j[0],E=j[1],O=(0,g.useMemo)(function(){return function(e){var t=b().Children.toArray(e),n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(b().isValidElement(s)&&s.type===CP){var l=s.props;return b().Children.toArray(l.children).filter(b().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[]}(a)},[a]),k=(0,g.useCallback)(function(e){null==m||m.scrollTo(e)},[m]),A=(0,g.useCallback)(function(){if(m){var e=m.selectedScrollSnap();E(e),null==x||x.scrollTo(e)}},[m,x]);return(0,g.useEffect)(function(){if(m)return A(),m.on("select",A).on("reInit",A),function(){m.off("select",A).off("reInit",A)}},[m,A]),(0,v.jsx)(Ct.Provider,{value:{axis:d,mainViewportRef:p,mainApi:m,thumbsViewportRef:y,thumbsApi:x,selectedIndex:S,scrollTo:k,thumbnails:O},children:(0,v.jsx)("div",{className:w()(CD.root,u),style:c,children:a})})}function CM(e){var t=e.children,n=e.className,r=Cn().axis;return(0,v.jsx)("div",{className:w()(CD.slide,CD["slide--".concat(r)],n),children:t})}function CR(e){var t=e.className,n=e.thumbsSliderClassName,r=Cn(),a=r.axis,i=r.thumbsViewportRef,o=r.thumbnails,s=r.selectedIndex,l=r.scrollTo;return 0===o.length?null:(0,v.jsx)("div",{ref:i,className:w()(CD.thumbsViewport,t),children:(0,v.jsx)("div",{className:w()(CD.thumbsContainer,CD["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var r,a,i=t===s;return(0,v.jsx)("button",{type:"button",onClick:function(){return l(t)},className:w()(CD.thumb,(r={},a=CD["thumb--active"],a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),i&&n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,v.jsx)("img",{src:e,alt:"",className:CD.thumbImage})},t)})})})}function CI(e){var t=e.className,n=e.dotClassName,r=Cn(),a=r.thumbnails,i=r.selectedIndex,o=r.scrollTo;return 0===a.length?null:(0,v.jsx)("div",{className:w()(CD.dots,t),children:a.map(function(e,t){var r,a,s;return(0,v.jsx)("button",{type:"button",onClick:function(){return o(t)},className:w()(CD.dot,(r={},a=CD["dot--active"],s=t===i,a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r),n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===i},t)})})}function C_(e){var t=e.id,n=e.as,r=e.variant,a=void 0===r?"transparent":r,i=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(i||s||l);return(0,v.jsxs)(void 0===n?"section":n,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===a?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===a?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,v.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,v.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[i&&(0,v.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:i}),s&&(0,v.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,v.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,v.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}var CL={collapse:"Replier la section",expand:"D\xe9plier la section"},CF=(0,g.createContext)({tone:"onDark",density:"comfortable",classNames:{},labels:CL,headerLayout:"split",footerLayout:"between",divider:!0,footerDivider:!0,collapsible:!1,collapsed:!1,toggle:function(){}});function CB(){return(0,g.useContext)(CF)}var CV={sm:{text:"h-7 px-2.5 text-xs",icon:"size-7"},md:{text:"h-8 px-3 text-[13px]",icon:"size-8"}};function Cz(e){var t=e.children,n=e.icon,r=e.label,a=e.active,i=void 0!==a&&a,o=e.variant,s=void 0===o?"ghost":o,l=e.size,u=void 0===l?"md":l,c=e.href,d=e.target,f=e.rel,p=e.disabled,m=e.type,h=e.onClick,y=e.className,g=!t,b=yt("inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-md","font-medium leading-none no-underline outline-none transition-colors duration-150","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70","aria-disabled:pointer-events-none aria-disabled:opacity-40 disabled:pointer-events-none disabled:opacity-40",g?yt(CV[u].icon,"p-0"):CV[u].text,"solid"===s?"border-0 bg-(--section-accent,#10b981) text-white hover:brightness-110":"outline"===s?yt("border border-solid border-(--section-line,rgba(255,255,255,0.12))",i?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"):yt("border-0",i?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"),y),x=(0,v.jsxs)(v.Fragment,{children:[n,t]});return c?(0,v.jsx)("a",{href:c,target:d,rel:null!=f?f:"_blank"===d?"noreferrer noopener":void 0,title:r,"aria-label":g?r:void 0,"aria-current":i||void 0,"aria-disabled":p||void 0,onClick:h,className:b,children:x}):(0,v.jsx)("button",{type:void 0===m?"button":m,title:r,"aria-label":g?r:void 0,"aria-pressed":i||void 0,disabled:p,onClick:h,className:b,children:x})}var CW={none:"gap-0",xs:"gap-2",sm:"gap-3",md:"gap-5",lg:"gap-8",xl:"gap-10"},CU={base:1,md:2,lg:3},C$=["base","sm","md","lg","xl","2xl"];function CH(e){var t=e.as,n=e.columns,r=void 0===n?CU:n,a=e.minItemWidth,i=e.gap,o=e.className,s=e.children,l={};if(a)l["--sg-min"]=a;else{var u="number"==typeof r?{base:r}:r,c=!0,d=!1,f=void 0;try{for(var p,m=C$[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value,y=u[h];"number"==typeof y&&y>0&&(l["--sg-".concat(h)]=String(Math.floor(y)))}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}}return(0,v.jsx)(void 0===t?"div":t,{"data-section-part":"grid",style:l,className:yt("grid min-w-0",CW[void 0===i?"md":i],a?"grid-cols-[repeat(auto-fill,minmax(min(100%,var(--sg-min)),1fr))]":yt("grid-cols-[repeat(var(--sg-base,1),minmax(0,1fr))]","sm:grid-cols-[repeat(var(--sg-sm,var(--sg-base,1)),minmax(0,1fr))]","md:grid-cols-[repeat(var(--sg-md,var(--sg-sm,var(--sg-base,1))),minmax(0,1fr))]","lg:grid-cols-[repeat(var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))),minmax(0,1fr))]","xl:grid-cols-[repeat(var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1))))),minmax(0,1fr))]","2xl:grid-cols-[repeat(var(--sg-2xl,var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))))),minmax(0,1fr))]"),o),children:s})}function CG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CG(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var CY={position:"--section-header-position",top:"--section-sticky-top",zIndex:"--section-sticky-z"};function CK(e){var t=e.sticky,n=e.offset,r=e.zIndex,a={};return void 0!==t&&(a[CY.position]=t?"sticky":"static"),void 0!==n&&(a[CY.top]=n),void 0!==r&&(a[CY.zIndex]=r),a}var CZ=(c={},d=CY.position,f="static",d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c);function CX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function CJ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var C0={compact:"pb-2",comfortable:"pb-3",spacious:"pb-4"},C1={compact:"pt-3",comfortable:"pt-4",spacious:"pt-6"},C2={compact:"mt-3",comfortable:"mt-4",spacious:"mt-6"},C3={compact:"pt-2",comfortable:"pt-3",spacious:"pt-4"},C5={sm:"text-base font-medium leading-snug",md:"text-xl font-light leading-tight sm:text-2xl",lg:"text-2xl font-light leading-tight sm:text-3xl"},C4={split:"flex-wrap items-center justify-between",stacked:"flex-col items-start",centered:"flex-col items-center text-center"},C6={split:"ml-auto justify-end",stacked:"justify-start",centered:"justify-center"},C8={between:"justify-between",start:"justify-start",center:"justify-center",end:"justify-end"};function C9(e){var t=e.className,n=CB().classNames;return(0,v.jsx)("div",{role:"presentation","aria-hidden":"true","data-section-part":"divider",className:yt("h-px w-full shrink-0 bg-(--section-line,rgba(255,255,255,0.12))",n.divider,t)})}function C7(){var e=CB(),t=e.collapsed,n=e.toggle,r=e.labels,a=e.bodyId,i=t?r.expand:r.collapse;return(0,v.jsx)("button",{type:"button",onClick:n,title:i,"aria-label":i,"aria-expanded":!t,"aria-controls":a,className:yt("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) outline-none transition-colors duration-150","hover:bg-(--section-fg,#fff)/10 hover:text-(--section-fg,#fff)","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70"),children:(0,v.jsx)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:yt("transition-transform duration-300 motion-reduce:transition-none",!t&&"rotate-180"),children:(0,v.jsx)("path",{d:"M4 6l4 4 4-4"})})})}function Te(e){var t,n,r,a,i,o,s,l,u=e.title,c=e.titleAs,d=e.titleSize,f=e.icon,p=e.description,m=e.count,h=e.actions,y=e.children,b=e.layout,x=e.divider,w=e.className,j=CB(),S=j.classNames,E=j.density,O=j.collapsible,k=null!=b?b:j.headerLayout,A=null!=x?x:j.divider,D=(0,g.useRef)(null),P=(t=j.stickyKey,n=(0,g.useRef)(null),a=(r=Cq((0,g.useState)(!1),2))[0],i=r[1],s=(o=Cq((0,g.useState)(!1),2))[0],l=o[1],(0,g.useEffect)(function(){var e=D.current;i(!!e&&"sticky"===getComputedStyle(e).position)},[D,t]),(0,g.useEffect)(function(){var e=D.current,t=n.current;if(!a||!e||!t||"u"<typeof IntersectionObserver)return void l(!1);var r=parseFloat(getComputedStyle(e).top)||0,i=new IntersectionObserver(function(e){return l(!Cq(e,1)[0].isIntersecting)},{rootMargin:"-".concat(r,"px 0px 0px 0px"),threshold:0});return i.observe(t),function(){return i.disconnect()}},[D,a]),{isSticky:a,stuck:s,sentinelRef:n}),C=P.isSticky,T=P.stuck,N=P.sentinelRef,M=null!=m&&""!==m,R=null!=h&&!1!==h;return(0,v.jsxs)(v.Fragment,{children:[C?(0,v.jsx)("div",{ref:N,"aria-hidden":"true","data-section-part":"sticky-sentinel",className:"pointer-events-none -mb-px h-px w-full shrink-0"}):null,(0,v.jsxs)("div",{ref:D,"data-section-part":"header","data-stuck":C?String(T):void 0,className:yt("flex flex-col","[position:var(--section-header-position,static)] top-(--section-sticky-top,0px) z-(--section-sticky-z,10)","transition-[background-color,box-shadow] duration-200 motion-reduce:transition-none","data-[stuck=true]:bg-(--section-sticky-bg,rgb(8_12_20/0.72)) data-[stuck=true]:backdrop-blur-xl","data-[stuck=true]:shadow-[0_8px_24px_-12px_rgb(0_0_0/0.45)]",S.header,w),children:[(0,v.jsxs)("div",{className:yt("flex gap-x-4 gap-y-2",C4[k],C0[E]),children:[null!=y?(0,v.jsx)("div",{className:"min-w-0 flex-1",children:y}):(0,v.jsxs)("div",{className:yt("flex min-w-0 flex-col gap-1","split"===k&&"flex-1 basis-48",S.heading),children:[(0,v.jsxs)("div",{className:yt("flex min-w-0 items-center gap-2.5","centered"===k&&"justify-center"),children:[f?(0,v.jsx)("span",{className:yt("inline-flex shrink-0 items-center justify-center text-(--section-accent,#34d399)",S.leading),children:f}):null,u?(0,v.jsx)(void 0===c?"h2":c,{id:j.headingId,className:yt("m-0 min-w-0 text-balance tracking-tight text-(--section-fg,#fff)",C5[void 0===d?"md":d],S.title),children:u}):null,M?(0,v.jsx)("span",{className:yt("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1.5","bg-(--section-fg,#fff)/10 text-[11px] font-medium leading-none text-(--section-muted,rgba(255,255,255,0.65))",S.count),children:m}):null]}),p?(0,v.jsx)("p",{className:yt("m-0 max-w-3xl text-sm leading-relaxed text-(--section-muted,rgba(255,255,255,0.65))",S.description),children:p}):null]}),R||O?(0,v.jsxs)("div",{className:yt("flex flex-wrap items-center gap-1.5",C6[k],null!=y&&"split"===k&&"shrink-0",S.actions),children:[h,O?(0,v.jsx)(C7,{}):null]}):null]}),A?(0,v.jsx)(C9,{}):null]})]})}function Tt(e){var t,n=e.children,r=e.flush,a=e.maxHeight,i=e.className,o=CB(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=o.bodyId,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(c))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return CX(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CX(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(h.current){h.current=!1;return}m(!0);var e=setTimeout(function(){return m(c)},320);return function(){return clearTimeout(e)}},[c]);var y=(0,v.jsx)("div",{"data-section-part":"body",className:yt("min-w-0",!(void 0!==r&&r)&&C1[l],a&&"overflow-y-auto overscroll-contain",s.body,i),style:a?CJ(CQ({},CZ),{maxHeight:a}):CZ,children:n});return u?(0,v.jsx)("div",CJ(CQ({id:d,"aria-hidden":c||void 0},c?{inert:""}:{}),{className:yt("grid transition-[grid-template-rows] duration-300 ease-out motion-reduce:transition-none",c?"grid-rows-[0fr]":"grid-rows-[1fr]"),children:(0,v.jsx)("div",{className:yt("min-h-0",p&&"overflow-hidden"),children:y})})):(0,v.jsx)("div",{id:d,children:y})}function Tn(e){var t=e.children,n=e.actions,r=e.layout,a=e.divider,i=e.className,o=CB(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=null!=r?r:o.footerLayout,f=null!=a?a:o.footerDivider,p=null!=t&&!1!==t,m=null!=n&&!1!==n;return u&&c?null:(0,v.jsxs)("div",{"data-section-part":"footer",className:yt("flex flex-col",C2[l],s.footer,i),children:[f?(0,v.jsx)(C9,{}):null,(0,v.jsxs)("div",{className:yt("flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-(--section-muted,rgba(255,255,255,0.65))",C3[l],C8[d]),children:[p?(0,v.jsx)("div",{className:yt("min-w-0",s.footerStart),children:t}):null,m?(0,v.jsx)("div",{className:yt("flex flex-wrap items-center gap-1.5","between"===d&&"ml-auto",s.footerEnd),children:n}):null]})]})}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ta={plain:"",glass:"rounded-2xl p-5 backdrop-blur-xl ring-1 ring-inset ring-(--section-line,rgba(255,255,255,0.12))"},Ti={onDark:"bg-black/40",onLight:"bg-white/70"},To=new Set([Te,Tt,Tn]);function Ts(e){return null!=e&&!1!==e&&""!==e}var Tl=Object.assign(function(e){var t,n=e.id,r=e.as,a=e.ariaLabel,i=e.variant,o=void 0===i?"plain":i,s=e.tone,l=void 0===s?"onDark":s,u=e.density,c=void 0===u?"comfortable":u,d=e.title,f=e.titleAs,p=e.titleSize,m=e.icon,h=e.description,y=e.count,b=e.actions,x=e.header,w=e.headerLayout,j=void 0===w?"split":w,S=e.divider,E=void 0===S||S,O=e.stickyHeader,k=e.stickyOffset,A=e.stickyZIndex,D=e.footer,P=e.footerActions,C=e.footerLayout,T=void 0===C?"between":C,N=e.footerDivider,M=void 0===N||N,R=e.bodyMaxHeight,I=e.bodyFlush,_=e.collapsible,L=void 0!==_&&_,F=e.collapsed,B=e.defaultCollapsed,V=e.onCollapsedChange,z=e.labels,W=e.className,U=e.classNames,$=void 0===U?{}:U,H=e.children,G=(0,g.useId)(),q="".concat(G,"-title"),Y="".concat(G,"-body"),K=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0!==B&&B))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Tr(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Tr(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),Z=K[0],X=K[1],Q=L&&(null!=F?F:Z),J=(0,g.useCallback)(function(){var e=!Q;void 0===F&&X(e),null==V||V(e)},[Q,F,V]),ee=Ts(d),et=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},CL,z)},[z]),en=(0,g.useMemo)(function(){return{tone:l,density:c,classNames:$,labels:et,headerLayout:j,footerLayout:T,divider:E,footerDivider:M,collapsible:L,collapsed:Q,toggle:J,headingId:ee?q:void 0,bodyId:Y,stickyKey:"".concat(O,"|").concat(k,"|").concat(A)}},[l,c,$,et,j,T,E,M,L,Q,J,ee,q,Y,O,k,A]),er=ee||Ts(h)||Ts(b)||Ts(m)||Ts(x)||null!=y&&""!==y||L,ea=Ts(D)||Ts(P),ei=Ts(H),eo=g.Children.toArray(H).some(function(e){return(0,g.isValidElement)(e)&&To.has(e.type)});return(0,v.jsx)(CF.Provider,{value:en,children:(0,v.jsxs)(void 0===r?"section":r,{id:n,"aria-label":a,"aria-labelledby":!a&&ee?q:void 0,"data-section-variant":o,style:CK({sticky:O,offset:k,zIndex:A}),className:yt("relative flex w-full min-w-0 flex-col text-(--section-fg,#fff)","onLight"===l&&"[--section-fg:#0f172a] [--section-muted:rgba(15,23,42,0.62)] [--section-line:rgba(15,23,42,0.14)] [--section-sticky-bg:rgb(255_255_255/0.82)]",Ta[o],"glass"===o&&Ti[l],W,$.root),children:[er?(0,v.jsx)(Te,{title:d,titleAs:f,titleSize:p,icon:m,description:h,count:y,actions:b,children:x}):null,ei?eo?H:(0,v.jsx)(Tt,{flush:I,maxHeight:R,children:H}):null,ea?(0,v.jsx)(Tn,{actions:P,children:D}):null]})})},{Header:Te,Body:Tt,Footer:Tn,Divider:C9,Action:Cz,Grid:CH});function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var Tc={none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-10",xl:"gap-14"};function Td(e){var t=e.name,n=e.state,r=e.select,a=e.stickyHeaders,i=e.stickyOffset,o=e.stickyZIndex,s=e.gap,l=e.renderItem,u=e.className,c=e.itemClassName,d=e.style,f=Tu({},CK({sticky:void 0===a||a,offset:void 0===i?"0px":i,zIndex:void 0===o?10:o}),d),p=yt("flex w-full min-w-0 flex-col",Tc[void 0===s?"lg":s],u);return(0,v.jsx)(j.ExtensionSlot,{name:t,select:r,"data-section-slot":t,className:p,style:f,children:function(e){var t=(0,v.jsx)(j.Extension,{state:n}),r={name:e.name,moduleName:e.moduleName,meta:Tu({},e.meta)};return(0,v.jsx)("div",{"data-section-slot-item":e.name,className:yt("min-w-0",c),children:l?l(t,r):t})}})}var Tf=yt("group relative flex min-w-0 flex-col rounded-2xl border border-white/10 bg-slate-900/45 p-4","text-slate-100 shadow-lg backdrop-blur-sm outline-none transition-all duration-300","hover:-translate-y-1 hover:border-teal-400/50 hover:bg-slate-900/75 hover:shadow-2xl","has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-emerald-400");function Tp(e){var t,n,r=e.as,a=e.className,i=e.children,o=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["as","className","children"]);return(0,v.jsx)(void 0===r?"div":r,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"data-section-card":"",className:yt(Tf,a)},o),n=n={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function Tm(e){var t=e.onClick,n=e.className,r=e.children;return(0,v.jsx)("button",{type:"button",onClick:t,className:yt("block w-full cursor-pointer border-0 bg-transparent p-0 outline-none [color:inherit] [font:inherit] [text-align:inherit]","after:absolute after:inset-0 after:content-['']",n),children:r})}function Th(e){var t,n=e.tile,r=e.size,a=e.onSelect,i=e.className;return(0,v.jsxs)(mq.div,{whileHover:{scale:"large"===r?1.008:1.012},transition:{duration:.2},onClick:function(){return a(n)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(n))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===r?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=i?i:""].join(" "),children:[(0,v.jsx)("img",{src:n.imageUrl,alt:n.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,v.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,v.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===r?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:n.title}),(0,v.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=n.linkText)?t:"En savoir plus →"})]}):(0,v.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:n.title})})]})}function Ty(e){var t=e.mainTile,n=e.secondaryTiles,r=e.onSelectTile;return(0,v.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,v.jsx)(Th,{tile:t,size:"large",onSelect:r}),n.slice(0,4).map(function(e){return(0,v.jsx)(Th,{tile:e,size:"medium",onSelect:r},e.id)})]})}function Tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tg(e){if(Array.isArray(e))return e}function Tb(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Tx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Tw(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Tj(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function TS(e,t){return Tg(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TO(e,t)||Tb()}function TE(e){return Tg(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TO(e)||Tb()}function TO(e,t){if(e){if("string"==typeof e)return Tv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tv(e,t)}}var Tk=(0,g.forwardRef)(function(e,t){var n=e.left,r=e.center,a=e.right,i=e.secondary,o=e.children,s=e.sticky,l=void 0===s||s,u=e.stickyOffset,c=e.variant,d=e.ariaLabel,f=e.className,p=e.wrapperClassName;return(0,v.jsxs)("div",{className:yt("flex flex-col w-full z-(--z-index-sticky,200)",l&&"sticky",p),style:l?{top:void 0===u?"var(--own-offline-banner-height, 0px)":u}:void 0,children:[(0,v.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:yt("relative flex w-full items-center justify-between gap-2 px-3 sm:px-4 select-none","h-(--layout-header-height,48px) border-b","border-b-(--panel-header-border,rgba(255,255,255,0.08))","text-(--colors-surface-foreground,#f4f4f4)","glass"===(void 0===c?"glass":c)?"bg-(--panel-header-background,rgba(11,25,44,0.72)) backdrop-blur-xl shadow-(--panel-header-box-shadow,0_1px_12px_rgba(0,0,0,0.25))":"bg-(--colors-surface-card,#0b192c) shadow-(--panel-header-box-shadow,none)",f),children:[(0,v.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:n}),r?(0,v.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:r}):null,(0,v.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:a}),o]}),i?(0,v.jsx)("div",{className:"w-full",children:i}):null]})}),TA=(0,g.forwardRef)(function(e,t){var n=TE([e,t]),r=n[0],a=n.slice(1),i=r.icon,o=r.label,s=r.badge,l=r.active,u=void 0!==l&&l,c=r.className,d=r.type,f=Tj(r,["icon","label","badge","active","className","type"]),p=TS(a,1)[0],m=null!=s&&""!==s&&0!==s;return(0,v.jsxs)("button",Tw(Tx({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:yt("relative inline-flex h-9 min-w-9 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-inherit transition-colors duration-150 outline-none","hover:bg-white/10 focus-visible:ring-2 focus-visible:ring-primary-400",u&&"bg-primary-500/25 text-primary-200",c)},f),{children:[i,m?(0,v.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-500 px-1 text-[10px] font-bold leading-none text-white",children:s}):null]}))});function TD(e){var t=e.className;return(0,v.jsx)("div",{"aria-hidden":"true",className:yt("mx-1 h-5 w-px bg-white/15",t)})}var TP=(0,g.forwardRef)(function(e,t){var n=TE([e,t]),r=n[0],a=n.slice(1),i=r.src,o=r.name,s=r.active,l=r.className,u=r.type,c=Tj(r,["src","name","active","className","type"]),d=TS(a,1)[0],f=o.split(/\s+/).filter(Boolean).slice(0,2).map(function(e){var t;return null==(t=e[0])?void 0:t.toUpperCase()}).join("");return(0,v.jsx)("button",Tw(Tx({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:yt("relative inline-flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-full p-0","border border-primary-400/50 bg-primary-900/40 text-xs font-bold text-white outline-none","transition-transform duration-150 hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary-400",void 0!==s&&s&&"ring-2 ring-primary-400",l)},c),{children:i?(0,v.jsx)("img",{src:i,alt:"",className:"h-full w-full object-cover"}):f}))}),TC=OK("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),TT=OK("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function TN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TR(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TR(e,t){if(e){if("string"==typeof e)return TN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TN(e,t)}}function TI(e){var t=e.sites,n=e.onSelect,r=e.height,a=e.className,i=(0,g.useRef)(0),o=function(e){return e.map(function(e){return{site:e,key:i.current++}})},s=TM((0,g.useState)(function(){return o(t)}),2),l=s[0],u=s[1],c=TM((0,g.useState)(350),2),d=c[0],f=c[1],p=(0,g.useRef)(!1),m=(0,g.useRef)(0),h=(0,g.useRef)(0);(0,g.useEffect)(function(){return u(o(t))},[t]),(0,g.useEffect)(function(){var e=function(){return f(window.matchMedia("(min-width: 640px)").matches?350:280)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var y=function(e){return u(function(t){if(t.length<2)return t;for(var n=function(e){if(Array.isArray(e))return TN(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||TR(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=0;r<Math.abs(e);r++){var a=e>0?n.shift():n.pop();if(!a)break;var o=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},a),{key:i.current++});e>0?n.push(o):n.unshift(o)}return n})},b=function(){var e=h.current-m.current;Math.abs(e)>=45&&y(e<0?1:-1),setTimeout(function(){p.current=!1},50)},x="flex h-12 w-12 sm:h-14 sm:w-14 items-center justify-center border-2 border-white/20 bg-slate-950/80 text-slate-100 transition-colors hover:bg-teal-500 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-teal-400";return(0,v.jsxs)("div",{onPointerDown:function(e){m.current=h.current=e.clientX,p.current=!1},onPointerMove:function(e){h.current=e.clientX,Math.abs(h.current-m.current)>10&&(p.current=!0)},onPointerUp:b,onPointerCancel:b,className:yt("relative w-full overflow-hidden cursor-grab active:cursor-grabbing touch-pan-y select-none",a),style:{height:void 0===r?500:r},children:[l.map(function(e,t){var r=e.site,a=e.key,i=l.length%2?t-(l.length+1)/2:t-l.length/2,o=0===i;return(0,v.jsxs)("div",{role:"button",tabIndex:o?0:-1,"aria-label":r.name,onKeyDown:function(e){return"Enter"===e.key&&o&&(null==n?void 0:n(r))},onClick:function(){p.current||(o?null==n||n(r):y(i))},className:yt("absolute left-1/2 top-1/2 cursor-pointer border-2 p-7 sm:p-8 transition-all duration-500 ease-in-out",o?"z-10 bg-teal-500 text-slate-950 border-teal-300":"z-0 bg-slate-900/70 text-slate-100 border-white/15 hover:border-teal-400/60"),style:{width:d,height:d,clipPath:"polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0)",transform:"translate(-50%, -50%) translateX(".concat(d/1.5*i,"px) translateY(").concat(o?-30:i%2?20:-10,"px) rotate(").concat(o?0:i%2?2.5:-2.5,"deg)"),boxShadow:o?"0 8px 0 4px rgba(255,255,255,0.14)":"none"},children:[r.imageUrl&&(0,v.jsx)("img",{src:r.imageUrl,alt:"",className:"mb-3 sm:mb-4 h-12 w-10 sm:h-14 sm:w-12 bg-slate-800 object-cover object-top rounded-xs shadow-sm"}),(0,v.jsxs)("h3",{className:"text-sm sm:text-base md:text-lg font-medium leading-snug line-clamp-4",children:[r.name," — ",r.description]}),(0,v.jsxs)("p",{className:yt("absolute bottom-6 sm:bottom-8 left-7 sm:left-8 right-7 sm:right-8 text-xs sm:text-sm italic truncate",o?"text-slate-950/80":"text-slate-400"),children:[r.shortName," • ",r.head," (",r.memberCount," membres, ",r.appCount," apps)"]})]},a)}),(0,v.jsxs)("div",{className:"absolute bottom-3 sm:bottom-4 left-1/2 flex -translate-x-1/2 gap-2 z-20",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return y(-1)},className:x,"aria-label":"Site pr\xe9c\xe9dent",children:(0,v.jsx)(TC,{className:"w-6 h-6"})}),(0,v.jsx)("button",{type:"button",onClick:function(){return y(1)},className:x,"aria-label":"Site suivant",children:(0,v.jsx)(TT,{className:"w-6 h-6"})})]})]})}var T_=OK("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]),TL=OK("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);function TF(e){var t=e.value,n=e.onChange,r=e.placeholder,a=void 0===r?"Rechercher…":r,i=e.activeFilterCount,o=void 0===i?0:i,s=e.filterPanel,l=e.filtersOpen,u=void 0!==l&&l,c=e.onFiltersOpenChange,d=e.onReset,f=e.className,p=(0,g.useRef)(null),m=!!s&&(u||o>0),h="p-1.5 rounded-lg border border-white/10 text-slate-400 transition-colors cursor-pointer";return(0,v.jsxs)("div",{className:yt("relative rounded-2xl border border-white/15 backdrop-blur-sm shadow-lg overflow-hidden transition-all","focus-within:border-teal-400/80 focus-within:ring-2 focus-within:ring-teal-400/20",f),children:[(0,v.jsxs)("div",{className:"flex items-center px-4 py-2.5 sm:py-3 gap-3",children:[(0,v.jsx)("div",{className:"w-8 h-8 rounded-xl border border-white/10 flex items-center justify-center text-teal-300 shrink-0",children:(0,v.jsx)(kt,{className:"w-4 h-4"})}),(0,v.jsx)("input",{ref:p,type:"text",value:t,onChange:function(e){return n(e.target.value)},placeholder:a,"aria-label":a,className:"flex-1 min-w-0 bg-transparent border-none text-white placeholder-slate-400 text-xs sm:text-sm font-medium focus:outline-none truncate"}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[t&&(0,v.jsx)("button",{type:"button",title:"Effacer la recherche",onClick:function(){var e;n(""),null==(e=p.current)||e.focus()},className:yt(h,"hover:bg-white/10 hover:text-white"),children:(0,v.jsx)(kV,{className:"w-3.5 h-3.5"})}),s&&(0,v.jsxs)("button",{type:"button",title:"Filtres avanc\xe9s","aria-expanded":m,onClick:function(){return null==c?void 0:c(!u)},className:yt("flex items-center gap-1.5 px-3 py-1.5 rounded-xl border text-xs font-semibold transition-all cursor-pointer",m?"bg-teal-500 text-slate-950 border-teal-400 shadow-sm":"text-slate-300 hover:text-white hover:bg-white/10 border-white/15"),children:[(0,v.jsx)(T_,{className:"w-3.5 h-3.5"}),(0,v.jsx)("span",{className:"hidden sm:inline",children:"Filtres"}),o>0&&(0,v.jsx)("span",{className:"min-w-[1.1rem] rounded-full bg-slate-950 px-1 text-center text-[10px] font-black leading-[1.1rem] text-teal-300",children:o})]}),d&&(t||o>0)&&(0,v.jsx)("button",{type:"button",title:"R\xe9initialiser",onClick:d,className:yt(h,"hover:bg-rose-500/20 hover:text-rose-300"),children:(0,v.jsx)(TL,{className:"w-3.5 h-3.5"})})]})]}),m&&(0,v.jsx)("div",{className:"dark w-full px-4 pb-3 pt-2 border-t border-white/10",children:s})]})}function TB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TV(e){var t,n=e.activeTab,r=e.onTabChange,a=e.tabs,i=e.sidebarHeader,o=e.sidebarFooter,s=e.mainHeader,l=e.children,u=e.className,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return"u"<typeof window||window.innerWidth>=768}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return TB(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return TB(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=(0,g.useRef)(null);return(0,g.useEffect)(function(){var e=function(){return f(window.innerWidth>=768)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),(0,v.jsx)("div",{className:yt("w-full h-[calc(100vh-120px)] my-2 sm:my-3 text-slate-100 overflow-hidden px-3 sm:px-6 lg:px-8 flex flex-col",u),children:(0,v.jsxs)("div",{className:"max-w-7xl w-full mx-auto flex-1 min-h-0 flex flex-col md:flex-row items-stretch gap-4 md:gap-8 overflow-hidden",children:[(0,v.jsxs)("aside",{className:"w-full md:w-[20%] shrink-0 min-w-0 flex flex-col justify-start md:justify-center space-y-2 md:space-y-4",children:[i,(0,v.jsx)("div",{ref:p,role:"tablist","aria-orientation":d?"vertical":"horizontal",onKeyDown:function(e){var t,i,o,s=a.filter(function(e){return!e.disabled}),l=s.findIndex(function(e){return e.id===n});e.key===(d?"ArrowDown":"ArrowRight")?o=s[(l+1)%s.length]:e.key===(d?"ArrowUp":"ArrowLeft")?o=s[(l-1+s.length)%s.length]:"Home"===e.key?o=s[0]:"End"===e.key&&(o=s[s.length-1]),o&&(e.preventDefault(),r(o.id),null==(i=p.current)||null==(t=i.querySelector('[data-tab="'.concat(o.id,'"]')))||t.focus())},className:"w-full flex md:flex-col items-center md:items-stretch gap-2 overflow-x-auto touch-pan-x scroll-smooth select-none py-1",children:a.map(function(e){var t=e.id===n;return(0,v.jsxs)("button",{type:"button",role:"tab","data-tab":e.id,"aria-selected":t,tabIndex:t?0:-1,disabled:e.disabled,onClick:function(){return r(e.id)},className:yt("shrink-0 flex items-center gap-2 text-left px-3.5 py-2 text-xs sm:text-sm md:text-base font-medium whitespace-nowrap cursor-pointer transition-all border-0 border-l-2",t?"border-teal-400 text-teal-300 bg-white/5":"border-transparent text-slate-400 hover:text-white",e.disabled&&"opacity-40 cursor-not-allowed"),children:[e.icon&&(0,v.jsx)("span",{className:"shrink-0",children:e.icon}),(0,v.jsx)("span",{children:e.label}),e.badge&&(0,v.jsx)("span",{className:"ml-auto shrink-0",children:e.badge})]},e.id)})}),o]}),(0,v.jsxs)("main",{role:"tabpanel",className:"w-full md:w-[80%] h-full flex-1 min-h-0 flex flex-col overflow-y-auto",children:[s,(0,v.jsx)("div",{className:"flex-1 min-h-0 flex flex-col",children:l})]})]})})}function Tz(e){var t=e.icon,n=e.title,r=e.description,a=e.actions,i=e.className;return(0,v.jsxs)("div",{className:yt("flex flex-col sm:flex-row sm:items-center justify-between gap-3 p-3 rounded-xl bg-slate-900/60 border border-white/10 backdrop-blur-md shrink-0",i),children:[(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2",children:[t,(0,v.jsx)("h2",{className:"text-sm sm:text-base font-bold text-white truncate",children:n})]}),r&&(0,v.jsx)("p",{className:"text-xs text-slate-400 mt-0.5",children:r})]}),a&&(0,v.jsx)("div",{className:"shrink-0 self-start sm:self-auto",children:a})]})}var TW=OK("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function TU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TH(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TH(e,t){if(e){if("string"==typeof e)return TU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TU(e,t)}}function TG(e){var t=e.applications,n=e.onOpen,r=e.title,a=e.description,i=e.allLabel,o=void 0===i?"Tous":i,s=e.className,l=T$((0,g.useState)(""),2),u=l[0],c=l[1],d=T$((0,g.useState)(o),2),f=d[0],p=d[1],m=(0,g.useMemo)(function(){var e;return[o].concat(function(e){if(Array.isArray(e))return TU(e)}(e=Array.from(new Set(t.map(function(e){return e.category}))))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TH(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},[t,o]),h=(0,g.useMemo)(function(){var e=u.trim().toLowerCase();return t.filter(function(t){return(f===o||t.category===f)&&(!e||t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[t,u,f,o]);return(0,v.jsxs)("div",{className:yt("space-y-6",s),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===r?"Applications & Outils M\xe9tier":r}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===a?"S\xe9lectionnez une application pour y acc\xe9der directement.":a})]}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(kt,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:u,onChange:function(e){return c(e.target.value)},placeholder:"Rechercher un outil...","aria-label":"Rechercher un outil",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]})]}),(0,v.jsx)("div",{className:"flex flex-wrap gap-3 text-xs font-medium",children:m.map(function(e){return(0,v.jsx)("button",{type:"button",onClick:function(){return p(e)},className:yt("transition-colors cursor-pointer",f===e?"text-teal-300 font-bold border-b-2 border-teal-400 pb-0.5":"text-slate-400 hover:text-white"),children:e},e)})}),(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:h.map(function(e){var t,r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return n(e)},className:"group text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex flex-col justify-between space-y-3",children:[(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)("div",{className:yt("p-2 rounded-lg bg-gradient-to-br text-white shadow-xs",null!=(t=e.gradient)?t:"from-teal-500 to-emerald-600"),children:(0,v.jsx)(r,{className:"w-5 h-5"})}),(0,v.jsx)("span",{className:"text-[10px] font-semibold text-slate-400",children:e.status})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("h3",{className:"text-sm font-bold text-white group-hover:text-teal-300 transition-colors flex items-center justify-between",children:[(0,v.jsx)("span",{children:e.name}),(0,v.jsx)(TW,{className:"w-3.5 h-3.5 opacity-0 group-hover:opacity-100 transition-opacity text-teal-300"})]}),(0,v.jsx)("p",{className:"text-[11px] text-teal-400/80 font-medium mt-0.5",children:e.category})]}),(0,v.jsx)("p",{className:"text-xs text-slate-300 line-clamp-2 leading-relaxed",children:e.description})]}),(0,v.jsxs)("div",{className:"pt-2 border-t border-white/5 flex items-center justify-between text-[11px] text-slate-400 group-hover:text-slate-200",children:[(0,v.jsx)("span",{children:"Acc\xe9der \xe0 l'application"}),(0,v.jsx)("span",{className:"text-teal-400 font-semibold group-hover:translate-x-1 transition-transform",children:"→"})]})]},e.id)})})]})}var Tq=OK("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),TY={teal:{card:"from-teal-900/50 to-slate-900 border-teal-500/30 hover:border-teal-400",text:"text-teal-300",icon:"text-teal-400"},cyan:{card:"from-cyan-900/50 to-slate-900 border-cyan-500/30 hover:border-cyan-400",text:"text-cyan-300",icon:"text-cyan-400"}};function TK(e){var t=e.resources,n=e.shortcuts,r=void 0===n?[]:n,a=e.onShortcut,i=e.onDownload,o=e.primaryAction,s=e.title,l=e.description,u=e.className;return(0,v.jsxs)("div",{className:yt("space-y-6",u),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===s?"Ressources Documentaires & GED":s}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===l?"Guides, formulaires administratifs et acc\xe8s direct \xe0 la Gestion \xc9lectronique des Documents.":l})]}),o]}),r.length>0&&(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(function(e){var t,n=TY[null!=(t=e.tone)?t:"teal"],r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return null==a?void 0:a(e)},className:yt("text-left p-4 rounded-xl bg-gradient-to-r border transition-all cursor-pointer flex items-center justify-between",n.card),children:[(0,v.jsxs)("span",{className:"space-y-1",children:[(0,v.jsx)("span",{className:yt("block text-[10px] font-bold uppercase tracking-wider",n.text),children:e.eyebrow}),(0,v.jsx)("span",{className:"block text-sm font-bold text-white",children:e.title}),(0,v.jsx)("span",{className:"block text-xs text-slate-300",children:e.description})]}),(0,v.jsx)(r,{className:yt("w-8 h-8 shrink-0 ml-2",n.icon)})]},e.id)})}),(0,v.jsxs)("div",{className:"space-y-3",children:[(0,v.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Documents r\xe9cents & proc\xe9dures officielles"}),(0,v.jsx)("ul",{className:"space-y-2",children:t.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-lg bg-slate-900/60 border border-white/10 hover:border-teal-400/40 flex items-center justify-between transition-colors",children:[(0,v.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,v.jsx)("div",{className:"p-2 rounded-lg bg-white/5 text-teal-300 shrink-0",children:(0,v.jsx)(kc,{className:"w-4 h-4"})}),(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsx)("h4",{className:"text-xs font-bold text-white truncate",children:e.title}),(0,v.jsxs)("p",{className:"flex flex-wrap items-center gap-1.5 sm:gap-3 text-[10px] text-slate-400 mt-0.5",children:[(0,v.jsx)("span",{className:"text-teal-400 font-semibold",children:e.category}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.type}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.size}),(0,v.jsx)("span",{children:"•"}),(0,v.jsxs)("span",{children:["Mis \xe0 jour le ",e.updated]})]})]})]}),i&&(0,v.jsx)("button",{type:"button",title:"T\xe9l\xe9charger","aria-label":"T\xe9l\xe9charger ".concat(e.title),onClick:function(){return i(e)},className:"p-2 rounded-lg hover:bg-white/10 text-slate-300 hover:text-white transition-colors cursor-pointer shrink-0 ml-2",children:(0,v.jsx)(Tq,{className:"w-4 h-4"})})]},e.id)})})]})]})}var TZ=OK("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);function TX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TJ="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");function T0(e){var t=e.member,n=e.size;return t.avatar?(0,v.jsx)("img",{src:t.avatar,alt:"",className:yt("rounded-full object-cover border border-white/20 shrink-0",n)}):(0,v.jsx)("span",{className:yt("rounded-full bg-teal-600/40 border border-white/20 flex items-center justify-center font-bold text-teal-100 shrink-0",n),children:t.name.slice(0,1).toUpperCase()})}function T1(e){var t=e.siteName,n=e.members,r=e.teams,a=void 0===r?[]:r,i=e.onSelect,o=e.className,s=TQ((0,g.useState)(""),2),l=s[0],u=s[1],c=TQ((0,g.useState)("all"),2),d=c[0],f=c[1],p=TQ((0,g.useState)(""),2),m=p[0],h=p[1],y=TQ((0,g.useState)("grid"),2),b=y[0],x=y[1],w=(0,g.useMemo)(function(){return new Set(n.map(function(e){return e.name.slice(0,1).toUpperCase()}))},[n]),j=(0,g.useMemo)(function(){var e=l.trim().toLowerCase();return n.filter(function(t){return("all"===d||t.teamId===d)&&(!m||t.name.toUpperCase().startsWith(m))&&(!e||[t.name,t.role,t.email,t.phone].some(function(t){return null==t?void 0:t.toLowerCase().includes(e)}))}).sort(function(e,t){return e.name.localeCompare(t.name,"fr")})},[n,l,d,m]),S=function(e){return yt("px-3 py-1 rounded-full border text-xs font-medium whitespace-nowrap transition-colors cursor-pointer",e?"bg-teal-500 text-slate-950 border-teal-400 font-bold":"border-white/15 text-slate-300 hover:text-white hover:bg-white/10")};return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",o),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(ka,{className:"w-4 h-4 text-teal-400"}),title:"Membres & \xc9quipes — ".concat(t),description:"".concat(j.length," membre").concat(j.length>1?"s":""," affich\xe9").concat(j.length>1?"s":""," sur ").concat(n.length),actions:(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-lg border border-white/10",children:["grid","list"].map(function(e){return(0,v.jsx)("button",{type:"button","aria-pressed":b===e,"aria-label":"grid"===e?"Vue grille":"Vue liste",onClick:function(){return x(e)},className:yt("p-1.5 rounded-md cursor-pointer",b===e?"bg-teal-500 text-slate-950":"text-slate-300 hover:text-white"),children:"grid"===e?(0,v.jsx)(O6,{className:"w-4 h-4"}):(0,v.jsx)(TZ,{className:"w-4 h-4"})},e)})})}),(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsx)(kt,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:l,onChange:function(e){return u(e.target.value)},placeholder:"Rechercher par nom, fonction, e-mail ou t\xe9l\xe9phone...","aria-label":"Rechercher un membre",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]}),a.length>0&&(0,v.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1",children:[(0,v.jsx)("button",{type:"button",className:S("all"===d),onClick:function(){return f("all")},children:"Toutes les \xe9quipes"}),a.map(function(e){return(0,v.jsx)("button",{type:"button",className:S(d===e.id),onClick:function(){return f(e.id)},children:e.name},e.id)})]}),(0,v.jsxs)("div",{className:"flex gap-1 overflow-x-auto text-[11px]","aria-label":"Filtre alphab\xe9tique",children:[(0,v.jsx)("button",{type:"button",className:S(!m),onClick:function(){return h("")},children:"Tous"}),TJ.map(function(e){return(0,v.jsx)("button",{type:"button",disabled:!w.has(e),onClick:function(){return h(m===e?"":e)},className:yt(S(m===e),"px-2 disabled:opacity-30 disabled:cursor-not-allowed"),children:e},e)})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto pr-1",children:0===j.length?(0,v.jsx)("p",{className:"text-center py-12 text-slate-400 text-xs",children:"Aucun membre ne correspond \xe0 votre recherche."}):"grid"===b?(0,v.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3",children:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(e)},className:"w-full text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(T0,{member:e,size:"w-12 h-12 text-base"}),(0,v.jsxs)("span",{className:"min-w-0",children:[(0,v.jsx)("span",{className:"block text-sm font-bold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"block text-[11px] text-teal-400/80 truncate",children:e.role}),e.email&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400 truncate",children:e.email})]})]})},e.id)})}):(0,v.jsx)("ul",{className:"divide-y divide-white/10 rounded-xl border border-white/10 bg-slate-900/60",children:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(e)},className:"w-full text-left px-3 py-2 hover:bg-white/5 transition-colors cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(T0,{member:e,size:"w-8 h-8 text-xs"}),(0,v.jsx)("span",{className:"flex-1 min-w-0 text-xs font-semibold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"hidden sm:block text-[11px] text-teal-400/80 truncate max-w-[40%]",children:e.role}),e.email&&(0,v.jsx)("span",{className:"hidden lg:block text-[11px] text-slate-400 truncate max-w-[30%]",children:e.email})]})},e.id)})})})]})}var T2=OK("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),T3=OK("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),T5=OK("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),T4=OK("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),T6=OK("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function T8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function T7(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T8(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nt=[{id:"all",label:"Toutes"},{id:"todo",label:"\xc0 faire"},{id:"in_progress",label:"En cours"},{id:"done",label:"Termin\xe9es"}],Nn={haute:{label:"Priorit\xe9 Haute",cls:"bg-rose-500/20 text-rose-300 border-rose-500/30"},moyenne:{label:"Priorit\xe9 Moyenne",cls:"bg-amber-500/20 text-amber-300 border-amber-500/30"},basse:{label:"Priorit\xe9 Normale",cls:"bg-emerald-500/20 text-emerald-300 border-emerald-500/30"}},Nr="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-teal-400";function Na(e){var t=e.siteName,n=e.tasks,r=e.onToggleStatus,a=e.onCreate,i=e.className,o=Ne((0,g.useState)("all"),2),s=o[0],l=o[1],u=Ne((0,g.useState)(""),2),c=u[0],d=u[1],f=Ne((0,g.useState)(!1),2),p=f[0],m=f[1],h=Ne((0,g.useState)({title:"",description:"",priority:"moyenne",dueDate:""}),2),y=h[0],b=h[1],x=(0,g.useMemo)(function(){return{all:n.length,todo:n.filter(function(e){return"todo"===e.status}).length,in_progress:n.filter(function(e){return"in_progress"===e.status}).length,done:n.filter(function(e){return"done"===e.status}).length}},[n]),w=(0,g.useMemo)(function(){var e=c.trim().toLowerCase();return n.filter(function(t){return("all"===s||t.status===s)&&(!e||t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[n,s,c]);return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",i),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(T2,{className:"w-4 h-4 text-teal-400"}),title:"Mes t\xe2ches — ".concat(t),description:"Suivi des livrables, validations documentaires et actions assign\xe9es dans cet espace.",actions:(0,v.jsxs)("button",{type:"button",onClick:function(){return m(!0)},className:"px-3 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-1.5 shadow-md transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(T3,{className:"w-4 h-4"}),(0,v.jsx)("span",{children:"Nouvelle t\xe2che"})]})}),(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Nt.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return l(e.id)},className:yt("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",s===e.id?"bg-teal-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label," (",x[e.id],")"]},e.id)})}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(kt,{className:"w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),(0,v.jsx)("input",{type:"text",value:c,onChange:function(e){return d(e.target.value)},placeholder:"Rechercher une t\xe2che...","aria-label":"Rechercher une t\xe2che",className:"w-full pl-8 pr-3 py-1 rounded-lg bg-slate-900/60 border border-white/10 text-xs text-white placeholder-slate-400 focus:outline-none focus:border-teal-400/80"})]})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:0===w.length?(0,v.jsxs)("div",{className:"text-center py-12 text-slate-400 text-xs",children:[(0,v.jsx)(T5,{className:"w-8 h-8 mx-auto mb-2 text-slate-500"}),"Aucune t\xe2che ne correspond \xe0 vos filtres."]}):w.map(function(e){return(0,v.jsxs)("div",{className:yt("p-3 rounded-xl border transition-all flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3","done"===e.status?"bg-slate-950/40 border-white/5 opacity-70":"bg-slate-900/60 border-white/10 hover:border-teal-400/40"),children:[(0,v.jsxs)("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[(0,v.jsxs)("button",{type:"button",onClick:function(){return r(e)},title:"Changer le statut","aria-label":"Changer le statut de ".concat(e.title),className:yt("mt-0.5 w-5 h-5 rounded-md border flex items-center justify-center transition-colors cursor-pointer shrink-0","done"===e.status?"bg-emerald-500 border-emerald-400 text-slate-950":"in_progress"===e.status?"bg-amber-500/20 border-amber-400 text-amber-300":"border-white/20 hover:border-teal-400"),children:["done"===e.status&&(0,v.jsx)(T4,{className:"w-3.5 h-3.5"}),"in_progress"===e.status&&(0,v.jsx)("span",{className:"w-2 h-2 rounded-full bg-amber-400"})]}),(0,v.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,v.jsx)("h4",{className:yt("text-xs sm:text-sm font-semibold text-white","done"===e.status&&"line-through text-slate-400"),children:e.title}),(0,v.jsx)("p",{className:"text-[11px] text-slate-400 mt-0.5 line-clamp-2",children:e.description}),(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 text-[10px]",children:[(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(ki,{className:"w-3 h-3"}),e.dueDate]}),(0,v.jsx)("span",{className:"text-white/20",children:"•"}),(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(T6,{className:"w-3 h-3 text-teal-400"}),"Assign\xe9 \xe0 : ",(0,v.jsx)("strong",{className:"text-slate-200",children:e.assignedTo})]}),e.tags.map(function(e){return(0,v.jsx)("span",{className:"px-1.5 rounded bg-white/5 border border-white/10 text-slate-300",children:e},e)})]})]})]}),(0,v.jsxs)("div",{className:"flex sm:flex-col items-center sm:items-end justify-between w-full sm:w-auto gap-1 shrink-0",children:[(0,v.jsx)("span",{className:yt("px-2 py-0.5 rounded-full text-[10px] font-bold uppercase border",Nn[e.priority].cls),children:Nn[e.priority].label}),(0,v.jsx)("span",{className:yt("text-[10px] font-semibold","done"===e.status?"text-emerald-400":"in_progress"===e.status?"text-amber-400":"text-slate-400"),children:"done"===e.status?"✓ Termin\xe9e":"in_progress"===e.status?"● En cours":"○ \xc0 faire"})]})]},e.id)})}),p&&(0,v.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Nouvelle t\xe2che",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onKeyDown:function(e){return"Escape"===e.key&&m(!1)},children:(0,v.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-slate-900 border border-white/20 p-5 shadow-2xl",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between pb-3 border-b border-white/10",children:[(0,v.jsxs)("h3",{className:"font-bold text-sm text-white flex items-center gap-2",children:[(0,v.jsx)(T2,{className:"w-4 h-4 text-teal-400"}),"Nouvelle t\xe2che pour ",t]}),(0,v.jsx)("button",{type:"button","aria-label":"Fermer",onClick:function(){return m(!1)},className:"text-slate-400 hover:text-white cursor-pointer",children:(0,v.jsx)(kV,{className:"w-4 h-4"})})]}),(0,v.jsxs)("form",{onSubmit:function(e){e.preventDefault(),y.title.trim()&&(a(T7(T9({},y),{title:y.title.trim(),description:y.description.trim()})),b({title:"",description:"",priority:"moyenne",dueDate:""}),m(!1))},className:"space-y-3 mt-4",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Titre de la t\xe2che"}),(0,v.jsx)("input",{autoFocus:!0,required:!0,className:Nr,value:y.title,onChange:function(e){return b(T7(T9({},y),{title:e.target.value}))}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description / Consignes"}),(0,v.jsx)("textarea",{rows:3,className:yt(Nr,"resize-none"),value:y.description,onChange:function(e){return b(T7(T9({},y),{description:e.target.value}))}})]}),(0,v.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Priorit\xe9"}),(0,v.jsxs)("select",{className:Nr,value:y.priority,onChange:function(e){return b(T7(T9({},y),{priority:e.target.value}))},children:[(0,v.jsx)("option",{value:"haute",children:"Haute"}),(0,v.jsx)("option",{value:"moyenne",children:"Moyenne"}),(0,v.jsx)("option",{value:"basse",children:"Basse"})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"\xc9ch\xe9ance"}),(0,v.jsx)("input",{className:Nr,value:y.dueDate,onChange:function(e){return b(T7(T9({},y),{dueDate:e.target.value}))}})]})]}),(0,v.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-3 border-t border-white/10",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return m(!1)},className:"px-3 py-1.5 rounded-lg text-xs text-slate-300 hover:text-white cursor-pointer",children:"Annuler"}),(0,v.jsx)("button",{type:"submit",className:"px-4 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs shadow-md active:scale-95 cursor-pointer",children:"Cr\xe9er la t\xe2che"})]})]})]})})]})}var Ni=OK("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),No=OK("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Nu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nc=[{id:"all",label:"Tous les \xe9v\xe9nements"},{id:"upload",label:"T\xe9l\xe9versements & GED"},{id:"validate",label:"Validations & Scellements"},{id:"member_join",label:"Habilitations & Membres"},{id:"security",label:"S\xe9curit\xe9 & Audit"}],Nd={upload:{cls:"bg-sky-500",glyph:"↑"},validate:{cls:"bg-emerald-500",glyph:"✓"},member_join:{cls:"bg-amber-500",glyph:"+"},security:{cls:"bg-indigo-500",glyph:"!"},edit:{cls:"bg-teal-500",glyph:"✎"}};function Nf(e){var t=e.siteName,n=e.activities,r=e.onRefresh,a=e.className,i=Nu((0,g.useState)("all"),2),o=i[0],s=i[1],l=Nu((0,g.useState)(!1),2),u=l[0],c=l[1],d=(0,g.useMemo)(function(){return n.filter(function(e){return"all"===o||e.action===o})},[n,o]);return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",a),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(Ni,{className:"w-4 h-4 text-sky-400"}),title:"Activit\xe9 & Journal d'Audit — ".concat(t),description:"Tra\xe7abilit\xe9 en temps r\xe9el des versements, consultations, modifications et habilitations du site.",actions:r&&(0,v.jsxs)("button",{type:"button",disabled:u,onClick:function(){var e;return(e=function(){return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:c(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,null==r?void 0:r()];case 2:return e.sent(),[3,4];case 3:return c(!1),[7];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Nl(i,r,a,o,s,"next",e)}function s(e){Nl(i,r,a,o,s,"throw",e)}o(void 0)})})()},className:"px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-slate-200 text-xs flex items-center gap-1.5 transition-colors cursor-pointer disabled:opacity-60",children:[(0,v.jsx)(No,{className:yt("w-3.5 h-3.5",u&&"animate-spin text-teal-400")}),(0,v.jsx)("span",{children:"Actualiser le flux"})]})}),(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Nc.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return s(e.id)},className:yt("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",o===e.id?"bg-sky-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label,"all"===e.id&&" (".concat(n.length,")")]},e.id)})}),(0,v.jsx)("ul",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:d.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-xl bg-slate-900/60 border border-white/10 hover:border-sky-400/40 transition-all flex items-start gap-3",children:[(0,v.jsxs)("div",{className:"relative shrink-0",children:[e.userAvatar?(0,v.jsx)("img",{src:e.userAvatar,alt:"",className:"w-8 h-8 rounded-full object-cover border border-white/20"}):(0,v.jsx)("span",{className:"w-8 h-8 rounded-full bg-slate-700 border border-white/20 flex items-center justify-center text-[11px] font-bold",children:e.userName.slice(0,1)}),(0,v.jsx)("span",{"aria-hidden":"true",className:yt("absolute -bottom-1 -right-1 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold text-white border border-slate-950",Nd[e.action].cls),children:Nd[e.action].glyph})]}),(0,v.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-1",children:[(0,v.jsxs)("p",{className:"text-xs text-white",children:[(0,v.jsx)("strong",{className:"font-semibold text-sky-300",children:e.userName}),(0,v.jsxs)("span",{className:"text-slate-400",children:[" (",e.userRole,") "]}),(0,v.jsx)("span",{className:"text-slate-300",children:e.actionLabel})]}),(0,v.jsx)("span",{className:"text-[10px] text-slate-400 shrink-0 font-mono",children:e.timeAgo})]}),(0,v.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 p-2 rounded-lg bg-black/30 border border-white/5",children:[(0,v.jsx)(kc,{className:"w-3.5 h-3.5 text-sky-400 shrink-0"}),(0,v.jsx)("span",{className:"text-xs font-semibold text-white truncate",children:e.targetTitle}),(0,v.jsx)("span",{className:"ml-auto text-[9px] px-1.5 rounded bg-white/10 text-slate-300 shrink-0",children:e.targetType})]})]})]},e.id)})})]})}var Np=OK("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Nm=OK("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]),Nh=OK("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Ny=OK("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),Nv=OK("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nb(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Nx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ng(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nw=[{id:"PUBLIC",label:"Public",hint:"Accessible \xe0 tous les collaborateurs de l'organisation.",icon:kd},{id:"MODERATED",label:"Mod\xe9r\xe9",hint:"Adh\xe9sion soumise \xe0 l'approbation du gestionnaire du site.",icon:ka},{id:"PRIVATE",label:"Priv\xe9",hint:"Strictement r\xe9serv\xe9 aux membres invit\xe9s manuellement.",icon:Np}],Nj="p-4 rounded-xl bg-slate-900/60 border border-white/10 space-y-3",NS="text-xs font-bold text-teal-300 uppercase tracking-wider flex items-center gap-2",NE="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white focus:outline-none focus:border-teal-400";function NO(e){var t=e.label,n=e.hint,r=e.checked,a=e.onChange;return(0,v.jsxs)("label",{className:"flex items-center justify-between gap-3 cursor-pointer",children:[(0,v.jsxs)("span",{children:[(0,v.jsx)("span",{className:"block text-xs font-semibold text-white",children:t}),n&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:n})]}),(0,v.jsx)("input",{type:"checkbox",checked:r,onChange:function(e){return a(e.target.checked)},className:"w-4 h-4 accent-teal-500 cursor-pointer shrink-0"})]})}function Nk(e){var t=e.siteName,n=e.siteUuid,r=e.initialValue,a=e.storage,i=e.onSave,o=e.className,s=Nx((0,g.useState)(r),2),l=s[0],u=s[1],c=Nx((0,g.useState)(!1),2),d=c[0],f=c[1],p=function(e){return u(function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t,e)})};return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-4 text-slate-100 overflow-y-auto pr-1",o),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(kn,{className:"w-4 h-4 text-teal-400"}),title:"Param\xe8tres du Site — ".concat(t),description:"Administration de l'espace collaboratif, visibilit\xe9, quotas et politique de s\xe9curit\xe9.",actions:d&&(0,v.jsxs)("span",{role:"status",className:"flex items-center gap-1.5 px-3 py-1 rounded-lg bg-emerald-500/20 border border-emerald-500/30 text-emerald-300 text-xs font-semibold",children:[(0,v.jsx)(T5,{className:"w-4 h-4 text-emerald-400"}),"Param\xe8tres enregistr\xe9s"]})}),(0,v.jsxs)("form",{onSubmit:function(e){var t;return(t=function(){return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return e.preventDefault(),[4,i(l)];case 1:return t.sent(),f(!0),setTimeout(function(){return f(!1)},3e3),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){Nb(i,r,a,o,s,"next",e)}function s(e){Nb(i,r,a,o,s,"throw",e)}o(void 0)})})()},className:"space-y-4",children:[(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Nm,{className:"w-3.5 h-3.5"}),"Informations g\xe9n\xe9rales"]}),(0,v.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Nom public du site"}),(0,v.jsx)("input",{className:NE,value:l.title,onChange:function(e){return p({title:e.target.value})}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Identifiant unique (UUID)"}),(0,v.jsx)("input",{readOnly:!0,className:yt(NE,"bg-black/60 border-white/10 text-slate-400 font-mono"),value:n})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description & mission du site"}),(0,v.jsx)("textarea",{rows:2,className:yt(NE,"resize-none"),value:l.description,onChange:function(e){return p({description:e.target.value})}})]})]}),(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Nh,{className:"w-3.5 h-3.5"}),"Visibilit\xe9 & acc\xe8s"]}),(0,v.jsx)("div",{role:"radiogroup","aria-label":"Visibilit\xe9",className:"grid grid-cols-1 sm:grid-cols-3 gap-2.5",children:Nw.map(function(e){var t=e.id,n=e.label,r=e.hint,a=e.icon;return(0,v.jsxs)("button",{type:"button",role:"radio","aria-checked":l.visibility===t,onClick:function(){return p({visibility:t})},className:yt("p-3 rounded-xl border text-left transition-all cursor-pointer",l.visibility===t?"bg-teal-500/15 border-teal-400 text-white shadow-md":"bg-black/30 border-white/10 text-slate-400 hover:text-white"),children:[(0,v.jsxs)("span",{className:"flex items-center gap-2 mb-1",children:[(0,v.jsx)(a,{className:"w-4 h-4 text-teal-400"}),(0,v.jsx)("span",{className:"font-bold text-xs",children:n})]}),(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:r})]},t)})}),(0,v.jsx)(NO,{label:"Autoriser les collaborateurs \xe0 inviter des tiers",hint:"Les collaborateurs r\xe9guliers peuvent proposer de nouveaux membres.",checked:l.allowMemberInvites,onChange:function(e){return p({allowMemberInvites:e})}})]}),(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Ny,{className:"w-3.5 h-3.5"}),"Stockage & notifications"]}),a&&(0,v.jsxs)("div",{className:"space-y-1",children:[(0,v.jsxs)("div",{className:"flex justify-between text-xs text-slate-300",children:[(0,v.jsxs)("span",{children:["Espace utilis\xe9 : ",(0,v.jsx)("strong",{children:a.usedLabel})]}),(0,v.jsxs)("span",{children:["Quota allou\xe9 : ",(0,v.jsx)("strong",{children:a.quotaLabel})]})]}),(0,v.jsx)("div",{className:"w-full h-2 rounded-full bg-black/40 overflow-hidden border border-white/10",children:(0,v.jsx)("div",{className:"h-full bg-teal-400 rounded-full",style:{width:"".concat(Math.min(100,Math.max(0,a.percent)),"%")}})})]}),(0,v.jsxs)("div",{className:"pt-2 space-y-2 border-t border-white/10",children:[(0,v.jsx)(NO,{label:"Notifier lors du t\xe9l\xe9versement d'un nouveau document",checked:l.notifyOnUpload,onChange:function(e){return p({notifyOnUpload:e})}}),(0,v.jsx)(NO,{label:"Alerter lors de la validation officielle d'un bordereau",checked:l.notifyOnValidation,onChange:function(e){return p({notifyOnValidation:e})}})]})]}),(0,v.jsx)("div",{className:"flex justify-end pt-2",children:(0,v.jsxs)("button",{type:"submit",className:"px-5 py-2 rounded-xl bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-2 shadow-lg transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(Nv,{className:"w-4 h-4"}),"Enregistrer les param\xe8tres du site"]})})]})]})}function NA(e){var t=e.title,n=e.subtitle,r=e.avatar,a=e.following,i=e.onToggleFollow,o=e.actions,s=e.className;return(0,v.jsx)("div",{className:yt("w-full bg-teal-700 border-b border-teal-500/30 text-white px-3 sm:px-6 py-2 shadow-xs",s),children:(0,v.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-2",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[r&&(0,v.jsx)("div",{className:"w-8 h-8 bg-slate-900/50 border border-teal-300/40 flex items-center justify-center shrink-0",children:r}),(0,v.jsxs)("div",{className:"flex flex-col -space-y-0.5 min-w-0",children:[(0,v.jsx)("h1",{className:"text-sm sm:text-base font-bold tracking-tight leading-tight truncate",children:t}),n&&(0,v.jsx)("p",{className:"text-teal-100/80 text-[10px] sm:text-[11px] leading-none truncate",children:n})]})]}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[i&&(0,v.jsxs)("button",{type:"button","aria-pressed":a,onClick:i,className:"flex items-center gap-1.5 px-2.5 py-1 border border-white/30 hover:bg-white/10 text-xs font-semibold transition-colors cursor-pointer",children:[(0,v.jsx)(km,{className:yt("w-3.5 h-3.5",a&&"fill-amber-300 text-amber-300")}),(0,v.jsx)("span",{className:"hidden sm:inline",children:a?"Suivi":"Suivre"})]}),o]})]})})}var ND={conversation:{id:"conversation",number:"1",name:"Mode Conversation",shortName:"Conversation",tagline:"Comprendre & R\xe9pondre",badgeLabel:"Conv",emoji:"\uD83D\uDCAC",iconName:"MessageSquare",color:{text:"text-sky-400",bg:"bg-sky-500/10",border:"border-sky-500/30",ring:"ring-sky-500/40",badgeBg:"bg-sky-500",badgeText:"text-slate-950",glow:"shadow-sky-500/25",accent:"#38bdf8"},principle:"L'agent comprend et r\xe9pond.",bullets:["Questions & r\xe9ponses","Explications & clarifications","Discussion en langage naturel","Conseil informationnel"],example:"\xab Qu'est-ce que cette fonctionnalit\xe9 ? \xbb"},recherche:{id:"recherche",number:"2",name:"Mode Recherche / Analyse",shortName:"Recherche",tagline:"Chercher, R\xe9cup\xe9rer & Interpr\xe9ter",badgeLabel:"Rech",emoji:"\uD83D\uDD0E",iconName:"Search",color:{text:"text-amber-400",bg:"bg-amber-500/10",border:"border-amber-500/30",ring:"ring-amber-500/40",badgeBg:"bg-amber-400",badgeText:"text-slate-950",glow:"shadow-amber-500/25",accent:"#fbbf24"},principle:"L'agent cherche, r\xe9cup\xe8re et interpr\xe8te de l'information.",bullets:["Recherche dans la base de connaissances","Consultation & extraction documentaire","Analyse et croisement de donn\xe9es","Comparaison & synth\xe8se structur\xe9e"],example:"\xab Trouve les documents concernant ce projet et r\xe9sume-les. \xbb"},action:{id:"action",number:"3",name:"Mode Action",shortName:"Action",tagline:"Agir sur le Syst\xe8me via Outils",badgeLabel:"Act",emoji:"⚙️",iconName:"Zap",color:{text:"text-emerald-400",bg:"bg-emerald-500/10",border:"border-emerald-500/30",ring:"ring-emerald-500/40",badgeBg:"bg-emerald-400",badgeText:"text-slate-950",glow:"shadow-emerald-500/25",accent:"#34d399"},principle:"L'agent agit sur le syst\xe8me \xe0 travers des outils (diff\xe9rence cl\xe9 avec un simple chatbot).",bullets:["Cr\xe9er, modifier, supprimer des contenus","Publier & programmer des diffusions","Appeler des API & int\xe9grations","D\xe9clencher des workflows & automatisations"],example:"\xab Cr\xe9e cette actualit\xe9 et programme sa publication demain. \xbb"},autonome:{id:"autonome",number:"4",name:"Mode Autonome",shortName:"Autonome",tagline:"Orchestration Multi-\xe9tapes vers un Objectif",badgeLabel:"Auto",emoji:"\uD83E\uDD16",iconName:"Cpu",color:{text:"text-purple-400",bg:"bg-purple-500/10",border:"border-purple-500/30",ring:"ring-purple-500/40",badgeBg:"bg-purple-400",badgeText:"text-slate-950",glow:"shadow-purple-500/25",accent:"#c084fc"},principle:"L'agent re\xe7oit un objectif et d\xe9termine lui-m\xeame les \xe9tapes n\xe9cessaires sans guidage pas-\xe0-pas.",bullets:["Planification intelligente de l’objectif","Recherche & analyse autonome","Cr\xe9ation & ex\xe9cution des actions requises","V\xe9rification & production du r\xe9sultat final"],example:"\xab Pr\xe9pare toute la communication de notre \xe9v\xe9nement. \xbb",schema:["Objectif","Planification","Recherche","Analyse","Cr\xe9ation","Actions","V\xe9rification","R\xe9sultat"]}},NP="egen_assistant_mode";function NC(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(NP);if(e&&ND[e])return e}catch(e){}return"conversation"}function NT(e){if("u">typeof window)try{localStorage.setItem(NP,e)}catch(e){}}function NN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function NR(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function NI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return NN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NN(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N_=["#7C6AF7","#7DD3C7","#E8B4D4"],NL=["#3DBA2E","#F2E62F"];function NF(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function NB(e){var t=e.replace("#","").trim(),n=Number.parseInt(3===t.length?t.split("").map(function(e){return e+e}).join(""):t.padEnd(6,"0").slice(0,6),16);return Number.isNaN(n)?[.96,.96,.96]:[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]}function NV(e,t,n){var r=e.createShader(t);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(NF()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(r)),e.deleteShader(r),null):null}function Nz(e,t,n,r,a){var i,o,s,l,u="#F4F4F5",c="#09090B",d=0,f=N_,p=NL;return"black"===e?(u="#18181B",c="#F4F4F5"):"webgl"===e?(u=null!=(i=(f=r&&r.length>0?r:N_)[1])?i:N_[1],c="#0C0C10",d=1,p=[null!=(o=f[0])?o:N_[0],null!=(s=f[2])?s:N_[2]]):"custom"===e&&(u=null!=t?t:"#7C5CFF",c=null!=n?n:"#FAFAFA"),a&&a.length>0&&(p=[a[0],null!=(l=a[1])?l:a[0]]),{body:u,eye:c,mode:d,palette:f,ear:p}}function NW(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=NM({variant:"white",interactive:!0,blink:!0,ears:!0},n),a={x:0,y:.06,vx:0,vy:0},i={x:0,y:.06},o=!1,s=e.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)return null;var l=NV(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=NV(s,s.FRAGMENT_SHADER,"\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_speed;\nuniform mat3 u_rot;\nuniform float u_blink;\nuniform float u_mode;\nuniform float u_ears;\nuniform vec3 u_body;\nuniform vec3 u_eye;\nuniform vec3 u_c1;\nuniform vec3 u_c2;\nuniform vec3 u_c3;\nuniform vec3 u_ear1;\nuniform vec3 u_ear2;\n\n// ---- Camera ---------------------------------------------------------------\nconst float CAM_DIST = 6.0;\nconst float HALF_VIEW = 1.5;\n\n// ---- Head (local space, +z = face) ----------------------------------------\nconst vec3 HEAD_R = vec3(1.0, 0.74, 0.86);\n\n// ---- Face (decals projected on the head surface) --------------------------\nconst float EYE_X = 0.455;\nconst float EYE_Y = 0.075;\nconst float EYE_RX = 0.118;\nconst float EYE_RY = 0.128;\nconst float LINE_HALF = 0.021;\n\n// ---- Ear-cups (headphones) -------------------------------------------------\nconst vec3 EAR_C = vec3(1.02, -0.10, 0.02);\nconst float EAR_R = 0.385;\nconst float EAR_HT = 0.072;\nconst float EAR_ROUND = 0.045;\nconst float RECESS_R = 0.335;\nconst float RECESS_D = 0.020;\nconst float RING_R = 0.272;\nconst float RING_T = 0.034;\nconst float RING_X = 0.062;\n// cos / sin of the toe-in (cup faces slightly forward)\nconst float EC = 0.9287;\nconst float ES = 0.3709;\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n float a = hash(i);\n float b = hash(i + vec2(1.0, 0.0));\n float c = hash(i + vec2(0.0, 1.0));\n float d = hash(i + vec2(1.0, 1.0));\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n}\n\nfloat fbm(vec2 p) {\n float v = 0.0;\n float a = 0.5;\n mat2 m = mat2(1.6, 1.2, -1.2, 1.6);\n for (int i = 0; i < 5; i++) {\n v += a * noise(p);\n p = m * p;\n a *= 0.5;\n }\n return v;\n}\n\nvec3 wash(vec3 n, float t) {\n vec2 q = n.xy * 2.2 + n.z * 0.85;\n vec2 w1 = vec2(\n fbm(q * 1.4 + vec2(t * 0.22, t * 0.18)),\n fbm(q * 1.4 + vec2(-t * 0.16, t * 0.24) + 4.1)\n );\n q += (w1 - 0.5) * 0.72;\n float f = fbm(q * 2.1 + vec2(0.0, t * 0.12));\n float g = fbm(q * 4.6 - vec2(t * 0.2, 0.0));\n vec3 col = mix(u_c1, u_c2, smoothstep(0.28, 0.72, f));\n return mix(col, u_c3, pow(smoothstep(0.42, 0.9, g), 1.4));\n}\n\nfloat smin(float a, float b, float k) {\n float h = max(k - abs(a - b), 0.0) / k;\n return min(a, b) - h * h * k * 0.25;\n}\n\nfloat smax(float a, float b, float k) {\n return -smin(-a, -b, k);\n}\n\nfloat sdEllipsoid(vec3 p, vec3 r) {\n float k0 = length(p / r);\n float k1 = length(p / (r * r));\n return k0 * (k0 - 1.0) / max(k1, 1e-4);\n}\n\n// Ear frame: x = cup axis (outward, toed-in), (y, z) = radial plane. Mirrored.\nvec3 earFrame(vec3 p) {\n vec3 q = vec3(abs(p.x), p.y, p.z) - EAR_C;\n return vec3(EC * q.x + ES * q.z, q.y, -ES * q.x + EC * q.z);\n}\n\nfloat sdCup(vec3 e) {\n float rr = EAR_ROUND;\n float rad = length(e.yz);\n vec2 w = vec2(rad - EAR_R + rr, abs(e.x) - EAR_HT + rr);\n float d = min(max(w.x, w.y), 0.0) + length(max(w, 0.0)) - rr;\n // shallow recess in the outer face: the rim stays proud around it\n float rec = max(rad - RECESS_R, (EAR_HT - RECESS_D) - e.x);\n return smax(d, -rec, 0.012);\n}\n\nfloat sdRing(vec3 e) {\n vec2 t = vec2(length(e.yz) - RING_R, e.x - RING_X);\n return length(t) - RING_T;\n}\n\n// x = distance to the whole shape, y = distance to the neon ring\nvec2 map(vec3 p) {\n float d = sdEllipsoid(p, HEAD_R);\n float dr = 1e3;\n if (u_ears > 0.5) {\n vec3 e = earFrame(p);\n d = smin(d, sdCup(e), 0.045);\n dr = sdRing(e);\n d = min(d, dr);\n }\n return vec2(d, dr);\n}\n\nvec3 calcNormal(vec3 p) {\n const vec2 k = vec2(1.0, -1.0);\n const float h = 0.0016;\n return normalize(\n k.xyy * map(p + k.xyy * h).x +\n k.yyx * map(p + k.yyx * h).x +\n k.yxy * map(p + k.yxy * h).x +\n k.xxx * map(p + k.xxx * h).x\n );\n}\n\nfloat calcAO(vec3 p, vec3 n) {\n float occ = 0.0;\n float s = 1.0;\n for (int i = 1; i <= 4; i++) {\n float h = 0.045 * float(i);\n occ += (h - map(p + n * h).x) * s;\n s *= 0.72;\n }\n return clamp(1.0 - 2.4 * occ, 0.0, 1.0);\n}\n\nfloat softShadow(vec3 ro, vec3 rd) {\n float res = 1.0;\n float t = 0.05;\n for (int i = 0; i < 22; i++) {\n float h = map(ro + rd * t).x;\n res = min(res, 9.0 * h / t);\n t += clamp(h, 0.02, 0.22);\n if (res < 0.002 || t > 2.6) break;\n }\n return clamp(res, 0.0, 1.0);\n}\n\nvoid main() {\n vec2 uv = (gl_FragCoord.xy / u_resolution.xy) * 2.0 - 1.0;\n float aspect = u_resolution.x / max(u_resolution.y, 1.0);\n uv.x *= aspect;\n\n float kView = HALF_VIEW / CAM_DIST;\n float pixAng = 2.0 * kView / max(u_resolution.y, 1.0);\n\n vec3 rdW = normalize(vec3(uv * kView, -1.0));\n vec3 roW = vec3(0.0, 0.0, CAM_DIST);\n // world -> head space (u_rot is head -> world; v * M == transpose(M) * v)\n vec3 ro = roW * u_rot;\n vec3 rd = rdW * u_rot;\n\n // bounding sphere\n float bnd = 1.55;\n float b = dot(ro, rd);\n float c = dot(ro, ro) - bnd * bnd;\n float disc = b * b - c;\n if (disc < 0.0) {\n gl_FragColor = vec4(0.0);\n return;\n }\n float sq = sqrt(disc);\n float tEnd = -b + sq;\n float t = max(-b - sq, 0.0);\n\n float minD = 1e3;\n float tMin = t;\n float glow = 0.0;\n bool hit = false;\n vec2 m = vec2(1e3);\n\n for (int i = 0; i < 80; i++) {\n vec3 p = ro + rd * t;\n m = map(p);\n float eps = max(0.0007, 0.35 * t * pixAng);\n if (m.x < eps) {\n hit = true;\n break;\n }\n if (m.x < minD) {\n minD = m.x;\n tMin = t;\n }\n float stp = m.x * 0.85;\n glow += exp(-m.y * m.y * 150.0) * stp;\n t += stp;\n if (t > tEnd) break;\n }\n\n vec3 glowCol = mix(u_ear1, u_ear2, 0.5);\n float ga = (u_ears > 0.5) ? (1.0 - exp(-glow * 3.0)) * 0.8 : 0.0;\n\n float cov = 0.0;\n vec3 col = vec3(0.0);\n\n if (hit) {\n cov = 1.0;\n vec3 pl = ro + rd * t;\n vec3 nl = calcNormal(pl);\n vec3 nW = normalize(u_rot * nl);\n vec3 v = -rdW;\n\n // lights are fixed in the world: turning the head re-shades it\n vec3 keyW = normalize(vec3(-0.5, 0.72, 0.78));\n vec3 fillW = normalize(vec3(0.85, 0.05, 0.45));\n vec3 keyL = keyW * u_rot;\n float sh = softShadow(pl + nl * 0.012, keyL);\n float ao = calcAO(pl, nl);\n\n float ndl = dot(nW, keyW);\n float wrap = clamp((ndl + 0.35) / 1.35, 0.0, 1.0);\n float fill = clamp((dot(nW, fillW) + 0.3) / 1.3, 0.0, 1.0);\n float sky = nW.y * 0.5 + 0.5;\n vec3 amb = mix(vec3(0.60, 0.61, 0.64), vec3(0.80, 0.81, 0.84), sky);\n vec3 lightSum = amb * ao\n + vec3(1.0, 0.975, 0.94) * 0.62 * wrap * mix(0.55, 1.0, sh) * (0.55 + 0.45 * ao)\n + vec3(0.82, 0.86, 1.0) * 0.12 * fill * ao;\n\n vec3 hv = normalize(keyW + v);\n float ndh = max(dot(nW, hv), 0.0);\n float specK = (pow(ndh, 64.0) * 0.55 + pow(ndh, 14.0) * 0.10) * sh;\n float ndv = max(dot(nW, v), 0.0);\n float fres = 0.04 + 0.96 * pow(1.0 - ndv, 5.0);\n vec3 refl = reflect(-v, nW);\n vec3 env = mix(vec3(0.30, 0.31, 0.34), vec3(0.96, 0.97, 0.99), smoothstep(-0.25, 0.95, refl.y));\n\n float px = t * pixAng;\n vec3 body = (u_mode > 0.5) ? wash(nl, u_time * u_speed) : u_body;\n\n // ---- ear materials ------------------------------------------------------\n float plate = 0.0;\n float ringMask = 0.0;\n vec3 ringCol = vec3(0.0);\n float spill = 0.0;\n if (u_ears > 0.5) {\n vec3 e = earFrame(pl);\n float rad = length(e.yz);\n float outward = smoothstep(0.02, 0.05, e.x);\n plate = (1.0 - smoothstep(RECESS_R - 0.006 - px, RECESS_R + 0.004 + px, rad)) * outward;\n float dRing = sdRing(e);\n ringMask = 1.0 - smoothstep(0.0, 0.01 + px, dRing);\n float ang = atan(e.z, e.y);\n float gradT = 0.5 + 0.5 * sin(ang + (pl.x > 0.0 ? 0.6 : 2.5));\n vec3 neon = mix(u_ear1, u_ear2, gradT);\n float core = exp(-pow(dRing / RING_T + 1.0, 2.0) * 1.1);\n ringCol = mix(neon, vec3(1.0), 0.40 * core) * (1.05 + 0.08 * sin(u_time * 1.7));\n spill = exp(-max(dRing, 0.0) * 14.0) * outward;\n }\n vec3 plateCol = mix(vec3(0.16, 0.17, 0.20), u_body * 0.22 + vec3(0.07), 0.5);\n body = mix(body, plateCol, plate);\n\n // ---- face decals: eyes + connecting line --------------------------------\n float onFace = smoothstep(0.18, 0.42, pl.z);\n float lid = mix(1.0, 0.10, u_blink);\n float aa = max(px * 1.1, 0.0035);\n vec2 pe = pl.xy - vec2(0.0, EYE_Y);\n vec2 dl = vec2(abs(pe.x) - EYE_X, pe.y) / vec2(EYE_RX, EYE_RY * lid);\n float eyeM = 1.0 - smoothstep(1.0 - aa / EYE_RX, 1.0 + aa / EYE_RX, length(dl));\n float lw = max(LINE_HALF, 0.6 * px);\n float lineM =\n (1.0 - smoothstep(lw - aa, lw + aa, abs(pe.y))) *\n (1.0 - smoothstep(EYE_X - aa, EYE_X + aa, abs(pe.x)));\n float face = clamp(max(eyeM, lineM), 0.0, 1.0) * onFace;\n\n // ---- shade ----------------------------------------------------------------\n vec3 lit = body * lightSum;\n lit += vec3(1.0) * specK * (1.0 - plate * 0.6);\n lit = mix(lit, env * mix(vec3(1.0), body, 0.35), fres * 0.42);\n\n vec3 eyeLit = u_eye * (0.84 + 0.16 * wrap) + vec3(1.0) * specK * 0.42 + env * fres * 0.16;\n col = mix(lit, eyeLit, face);\n\n // neon spills light on the cup face and on the head next to it\n col += mix(u_ear1, u_ear2, 0.5) * spill * 0.34 * (1.0 - face);\n // the ring itself emits: no lighting\n col = mix(col, ringCol, ringMask);\n } else if (minD < 1e2) {\n // anti-aliased silhouette: how close did the ray pass to the surface?\n float r = minD / max(tMin * pixAng, 1e-5);\n cov = 1.0 - smoothstep(0.0, 1.15, r);\n // soft rim colour for the faded edge: reuse the body tone\n vec3 body = (u_mode > 0.5) ? wash(normalize(ro + rd * tMin), u_time * u_speed) : u_body;\n col = body * 0.9;\n }\n\n // neon halo behind / around the ring\n vec3 premul = col * cov + glowCol * ga * (1.0 - cov);\n float a = cov + ga * (1.0 - cov);\n gl_FragColor = vec4(clamp(premul / max(a, 1e-4), 0.0, 1.0), clamp(a, 0.0, 1.0));\n}\n");if(!l||!u)return null;var c=s.createProgram();if(!c)return null;if(s.attachShader(c,l),s.attachShader(c,u),s.linkProgram(c),!s.getProgramParameter(c,s.LINK_STATUS))return NF()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=r.onHasGl)||t.call(r,!0);var d=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,d),s.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW);var f=s.getAttribLocation(c,"a_position");s.enableVertexAttribArray(f),s.vertexAttribPointer(f,2,s.FLOAT,!1,0,0);var p=function(e){return s.getUniformLocation(c,e)},m=p("u_resolution"),h=p("u_time"),y=p("u_speed"),v=p("u_rot"),g=p("u_blink"),b=p("u_mode"),x=p("u_ears"),w=p("u_body"),j=p("u_eye"),S=p("u_c1"),E=p("u_c2"),O=p("u_c3"),k=p("u_ear1"),A=p("u_ear2");s.disable(s.BLEND);var D=0,P=!0,C=!0,T=performance.now(),N=T,M=T+1800+2400*Math.random(),R=-1e4,I=function(){var t=e.parentElement;if(t){var n=Math.min(window.devicePixelRatio||1,2),r=t.clientWidth,a=t.clientHeight;r<=0||a<=0||(e.width=Math.max(1,Math.floor(r*n)),e.height=Math.max(1,Math.floor(a*n)),e.style.width="".concat(r,"px"),e.style.height="".concat(a,"px"),s.viewport(0,0,e.width,e.height))}};I();var _=new ResizeObserver(I);e.parentElement&&_.observe(e.parentElement);var L="u">typeof IntersectionObserver?new IntersectionObserver(function(e){var t=NI(e,1)[0];C=!t||t.isIntersecting}):null;null==L||L.observe(e);var F=window.matchMedia("(prefers-reduced-motion: reduce)"),B=function(){o=F.matches};B(),F.addEventListener("change",B);var V=function(t){if(r.interactive){var n=e.parentElement;if(n){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var o=3*Math.max(a.width,a.height)+120,s=t.clientX-(a.left+a.width/2),l=a.top+a.height/2-t.clientY;i.x=Math.tanh(s/o*2.2),i.y=Math.tanh(l/o*2.2)}}}},z=function(e){null===e.relatedTarget&&(i.x=0,i.y=.06)};window.addEventListener("pointermove",V,{passive:!0}),document.addEventListener("mouseout",z);var W=function(e){var t;e.preventDefault(),P=!1,cancelAnimationFrame(D),null==(t=r.onHasGl)||t.call(r,!1)};e.addEventListener("webglcontextlost",W);var U=function(t){if(P){D=requestAnimationFrame(U);var n,l,u=Math.min(.05,Math.max(.001,(t-N)/1e3));if(N=t,C&&!document.hidden){var c,d,f,p,I,_,L,F,B,V=Nz(r.variant,r.color,r.eyeColor,r.colors,r.earColors),z=(t-T)/1e3,W=r.interactive?i.x:0,$=r.interactive?i.y:.06;a.vx+=((W-a.x)*130-17*a.vx)*u,a.vy+=(($-a.y)*130-17*a.vy)*u,a.x+=a.vx*u,a.y+=a.vy*u;var H=+!o,G=Math.max(-1,Math.min(1,a.x))+.03*Math.sin(.9*z)*H,q=Math.max(-1,Math.min(1,a.y))+.022*Math.sin(.67*z+1.3)*H;!o&&r.blink&&t>=M&&(R=t,M=t+2200+3800*Math.random());var Y=(t-R)/1e3,K=0;!o&&r.blink&&(Y<.055?K=Y/.055:Y<.1?K=1:Y<.18&&(K=1-(Y-.1)/.08));var Z=NB(V.body),X=NB(V.eye),Q=[0,1,2].map(function(e){var t;return NB(null!=(t=V.palette[e%V.palette.length])?t:N_[e])}),J=NB(null!=(n=V.ear[0])?n:NL[0]),ee=NB(null!=(l=V.ear[1])?l:NL[1]);s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(m,e.width,e.height),s.uniform1f(h,o?0:z),s.uniform1f(y,.55*!o),s.uniformMatrix3fv(v,!1,(c=.62*G,d=-(.4*q),f=-(.09*G),p=Math.cos(c),I=Math.sin(c),_=Math.cos(d),L=Math.sin(d),new Float32Array([p*(F=Math.cos(f))+I*L*(B=Math.sin(f)),_*B,-I*F+p*L*B,-p*B+I*L*F,_*F,I*B+p*L*F,I*_,-L,p*_]))),s.uniform1f(g,K),s.uniform1f(b,V.mode),s.uniform1f(x,+!!r.ears),s.uniform3f(w,Z[0],Z[1],Z[2]),s.uniform3f(j,X[0],X[1],X[2]),s.uniform3f(S,Q[0][0],Q[0][1],Q[0][2]),s.uniform3f(E,Q[1][0],Q[1][1],Q[1][2]),s.uniform3f(O,Q[2][0],Q[2][1],Q[2][2]),s.uniform3f(k,J[0],J[1],J[2]),s.uniform3f(A,ee[0],ee[1],ee[2]),s.drawArrays(s.TRIANGLES,0,6)}}};return D=requestAnimationFrame(U),{setOptions:function(e){r=NM({},r,e)},destroy:function(){var t;P=!1,cancelAnimationFrame(D),_.disconnect(),null==L||L.disconnect(),F.removeEventListener("change",B),window.removeEventListener("pointermove",V),document.removeEventListener("mouseout",z),e.removeEventListener("webglcontextlost",W),null==(t=r.onHasGl)||t.call(r,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function NU(e){var t=e.resolved,n=e.ears,r=e.interactive,a=(0,g.useRef)(null),i=(0,g.useRef)(null);(0,g.useEffect)(function(){if(r){var e=a.current,t=i.current,n=null==e?void 0:e.parentElement;if(e&&n){var o=function(r){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var i=3*Math.max(a.width,a.height)+120,o=Math.tanh((r.clientX-(a.left+a.width/2))/i*2.2),s=Math.tanh((a.top+a.height/2-r.clientY)/i*2.2);e.style.transform="translate(".concat((5.5*o).toFixed(2),"%, ").concat((-(3.4*s)).toFixed(2),"%)"),t&&(t.style.transform="translate(".concat((-(1.8*o)).toFixed(2),"%, ").concat((-(1.2*s)).toFixed(2),"%)"))}};return window.addEventListener("pointermove",o,{passive:!0}),function(){return window.removeEventListener("pointermove",o)}}}},[r]);var o=NI(t.ear,2),s=o[0],l=o[1],u="transform 140ms ease-out",c={position:"absolute"},d=NR(NM({},c),{backgroundColor:t.eye,width:"8.3%",height:"9%",top:"42.9%",borderRadius:"50%"});return(0,v.jsxs)(v.Fragment,{children:[n?(0,v.jsx)("div",{ref:i,"data-part":"ears","aria-hidden":!0,style:NR(NM({},c),{inset:0,transition:u}),children:[0,1].map(function(e){return(0,v.jsx)("span",{"data-part":"ear",style:NR(NM({},c),{borderRadius:"50%",left:0===e?"9%":"79%",top:"37%",width:"12%",height:"30%",background:"linear-gradient(".concat(0===e?135:225,"deg, ").concat(s,", ").concat(l,")"),boxShadow:"0 0 6px ".concat(l,"66, inset 0 0 0 2px #0000001f")}),children:(0,v.jsx)("span",{style:NR(NM({},c),{borderRadius:"50%",inset:"16% 22%",background:"radial-gradient(circle at 40% 30%, #3b3e45, #15171b)"})})},e)})}):null,(0,v.jsx)("div",{"aria-hidden":!0,"data-part":"head",style:NR(NM(NR(NM({},c),{overflow:"hidden",left:"15%",top:"24%",width:"70%",height:"52%",borderRadius:"50%"}),function(e){if(1===e.mode){var t,n,r,a=null!=(t=e.palette[0])?t:N_[0],i=null!=(n=e.palette[1])?n:N_[1],o=null!=(r=e.palette[2])?r:N_[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(i,", ").concat(o,")")}}return{backgroundColor:e.body}}(t)),{boxShadow:"inset -6px -8px 14px #0000002e, inset 5px 6px 12px #ffffff66"})}),(0,v.jsxs)("div",{ref:a,"aria-hidden":!0,"data-part":"face",style:NR(NM({},c),{inset:0,transition:u}),children:[(0,v.jsx)("span",{"data-part":"eye",style:NR(NM({},d),{left:"29.9%"})}),(0,v.jsx)("span",{"data-part":"eye",style:NR(NM({},d),{left:"61.8%"})}),(0,v.jsx)("span",{"data-part":"line",style:NR(NM({},c),{backgroundColor:t.eye,left:"34%",width:"32%",height:"1.6%",top:"46.6%",borderRadius:"999px"})})]})]})}function N$(e){var t=e.className,n=e.size,r=void 0===n?280:n,a=e.label,i=e.variant,o=void 0===i?"white":i,s=e.color,l=e.eyeColor,u=e.colors,c=e.interactive,d=void 0===c||c,f=e.blink,p=void 0===f||f,m=e.ears,h=void 0===m||m,y=e.earColors,b=(0,g.useRef)(null),x=(0,g.useRef)(null),w=NI((0,g.useState)(!1),2),j=w[0],S=w[1];(0,g.useEffect)(function(){var e=b.current;if(e)return x.current=NW(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S}),function(){var e;null==(e=x.current)||e.destroy(),x.current=null}},[]),(0,g.useEffect)(function(){var e;null==(e=x.current)||e.setOptions({variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S})},[o,s,l,u,d,p,h,y]);var E=Nz(o,s,l,u,y);return(0,v.jsxs)("div",{"data-slot":"live-orb",role:"img","aria-label":void 0===a?"Assistant avatar":a,className:yt("relative shrink-0",t),style:{position:"relative",width:r,height:r},children:[j?null:(0,v.jsx)(NU,{resolved:E,ears:h,interactive:d}),(0,v.jsx)("canvas",{ref:b,className:"absolute inset-0 size-full"})]})}function NH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NG(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Nq(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){NG(i,r,a,o,s,"next",e)}function s(e){NG(i,r,a,o,s,"throw",e)}o(void 0)})}}function NY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||NK(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NK(e,t){if(e){if("string"==typeof e)return NH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NH(e,t)}}function NZ(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function NX(e){var t=e.text,n=NY((0,g.useState)("auto"),2),r=n[0],a=n[1],i=(0,g.useRef)(null);return(0,g.useEffect)(function(){i.current&&a(i.current.offsetWidth)},[t]),(0,v.jsxs)("span",{className:"relative inline-flex items-center justify-center overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",style:{width:r},children:[(0,v.jsx)("span",{ref:i,className:"invisible whitespace-nowrap px-1",children:t}),(0,v.jsx)("span",{className:"absolute inset-0 flex items-center justify-center whitespace-nowrap animate-in fade-in zoom-in-95 duration-300",children:t},t)]})}function NQ(e){var t=e.model,n=e.className,r={"Composer 2.5":"https://cdn.21st.dev/assets/mirror/7d/7dc00bc09f225fcda46cbc9c6b669c69c025a231877d6c17baa6a003f04f02b2.svg","Gemini 3.5 Flash":"https://cdn.21st.dev/assets/mirror/cd/cda2df6631d5fa227de3fa04ed78cf354f910ba92a9f086e7455655c10ad9d09.svg","GPT 5.5":"https://cdn.21st.dev/assets/mirror/b9/b93fa7942be639a1dae60194ff12141145d7d9fd59581582d6ff23335755f19c.svg","Opus 4.8":"https://cdn.21st.dev/assets/mirror/5d/5de1221c77cc91e748066fd642ad0eee1c1fa65328814f5178166f901e599709.svg","GLM 5.2":"https://cdn.21st.dev/assets/mirror/b2/b2a6c0ff63efd8a555edf8a174ea6fcfeca120ac1595a2d461ca11d3ae89276c.svg"};return(0,v.jsx)("img",{src:r[t]||r["GPT 5.5"],alt:t,className:yt("object-contain",{"GPT 5.5":"dark:invert"}[t],n)})}function NJ(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 12V2M7 2L2.5 6.5M7 2L11.5 6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}function N0(){return(0,v.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"5",y:"1",width:"4",height:"7",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M2.75 6.5V7a4.25 4.25 0 0 0 8.5 0v-.5M7 11.25V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function N1(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})})}function N2(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 2.5V11.5M2.5 7H11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function N3(){return(0,v.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M2.5 2.5L11.5 11.5M11.5 2.5L2.5 11.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function N5(e){var t=e.level;return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"1.5",y:"8",width:"2.5",height:"4.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:1}),(0,v.jsx)("rect",{x:"5.75",y:"5",width:"2.5",height:"7.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Medium"===t||"Max Effort"===t?1:.3}),(0,v.jsx)("rect",{x:"10",y:"2",width:"2.5",height:"10.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Max Effort"===t?1:.3})]})}function N4(e){var t=e.attachment,n=e.index,r=e.onRemove,a=e.onOpen,i=e.registerRef,o=NY((0,g.useState)(!1),2),s=o[0],l=o[1],u=(0,g.useRef)(null);return(0,v.jsxs)("button",{ref:function(e){u.current=e,i(t.id,e)},type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onClick:function(e){e.stopPropagation(),u.current&&a(t,u.current.getBoundingClientRect())},style:{animationDelay:"".concat(35*n,"ms"),animationFillMode:"backwards"},className:yt("group relative size-12 shrink-0 overflow-hidden rounded-xl border border-border bg-muted outline-none","transition-transform duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:scale-[1.04] active:scale-[0.96]","animate-in fade-in slide-in-from-top-3 zoom-in-90 duration-400"),"aria-label":"Open preview of ".concat(t.name),children:[(0,v.jsx)("img",{src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-start justify-end bg-black/0 transition-colors duration-200",s&&"bg-black/25"),children:(0,v.jsx)("span",{role:"button",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),r(t.id)},className:yt("m-1 flex size-4 items-center justify-center rounded-full bg-background/90 text-foreground/70 shadow-sm transition-all duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-background hover:text-foreground hover:scale-110",s?"opacity-100 scale-100":"opacity-0 scale-50 pointer-events-none"),"aria-label":"Remove ".concat(t.name),children:(0,v.jsx)(N3,{})})})]})}function N6(e){var t=e.attachment,n=e.originRect,r=e.onClose,a=NY((0,g.useState)("opening"),2),i=a[0],o=a[1],s=NY((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useRef)(null);(0,g.useEffect)(function(){var e=Math.min(.86*window.innerWidth,560),n=Math.min(.78*window.innerHeight,720),r=t.width||800,a=t.height||600,i=Math.min(e/r,n/a,1.6),s=r*i,l=a*i;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return o("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,g.useCallback)(function(){return o("closing")},[]);(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&d()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[d]);var f="open"===i,p="closing"===i,m=f&&l?l:{top:n.top,left:n.left,width:n.width,height:n.height,radius:12},h=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",y=p?"0.3s":"0.45s",b="top ".concat(y," ").concat(h,", left ").concat(y," ").concat(h,", width ").concat(y," ").concat(h,", height ").concat(y," ").concat(h,", border-radius ").concat(y," ").concat(h);return(0,v.jsxs)("div",{className:"fixed inset-0 z-[100]",onClick:d,role:"dialog","aria-modal":"true",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-md transition-opacity duration-400",style:{opacity:+!!f}}),(0,v.jsx)("div",{style:{position:"fixed",top:m.top,left:m.left,width:m.width,height:m.height,borderRadius:m.radius,transition:b,overflow:"hidden",boxShadow:f?"0 24px 60px -12px rgb(0 0 0 / 0.35)":"0 0px 0px 0px rgb(0 0 0 / 0)"},className:"bg-muted",onTransitionEnd:function(){"closing"===i&&r()},onClick:function(e){return e.stopPropagation()},children:(0,v.jsx)("img",{ref:c,src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1})}),(0,v.jsx)("button",{type:"button",onClick:d,style:{opacity:+!!f,transform:f?"scale(1)":"scale(0.7)"},className:yt("fixed right-4 top-4 flex size-9 items-center justify-center rounded-full bg-card/90 text-foreground/70 shadow-md backdrop-blur-sm","transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-card hover:text-foreground",!f&&"pointer-events-none"),children:(0,v.jsx)("span",{className:"scale-150",children:(0,v.jsx)(N3,{})})})]})}var N8=g.forwardRef(function(e,t){var n=e.onSubmit,r=e.placeholder,a=void 0===r?"Ask anything":r,i=e.className,o=e.models,s=void 0===o?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:o,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,m=void 0===p?6:p,h=NY((0,g.useState)(!1),2),y=h[0],b=h[1],x=NY((0,g.useState)(!1),2),w=x[0],j=x[1],S=NY((0,g.useState)(void 0===c?"":c),2),E=S[0],O=S[1],k=NY((0,g.useState)(s[0]),2),A=k[0],D=k[1],P=NY((0,g.useState)(1),2),C=P[0],T=P[1],N=NY((0,g.useState)(!1),2),M=N[0],R=N[1],I=NY((0,g.useState)([]),2),_=I[0],L=I[1],F=NY((0,g.useState)(null),2),B=F[0],V=F[1],z=NY((0,g.useState)(!1),2),W=z[0],U=z[1],$=NY((0,g.useState)([,,,,,].fill(0)),2),H=$[0],G=$[1],q=(0,g.useRef)(void 0!==d?d:E),Y=(0,g.useRef)(null),K=(0,g.useRef)(null),Z=(0,g.useRef)(null),X=(0,g.useRef)(null),Q=(0,g.useRef)(null),J=(0,g.useRef)(null),ee=NY((0,g.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),et=ee[0],en=ee[1],er=NY((0,g.useState)(116),2),ea=er[0],ei=er[1],eo=NY((0,g.useState)(68),2),es=eo[0],el=eo[1],eu=NY((0,g.useState)(!1),2),ec=eu[0],ed=eu[1],ef=void 0!==d,ep=ef?d:E,em=""!==ep.trim()||_.length>0,eh=_.length>0,ey=(0,g.useRef)(null),ev=(0,g.useRef)(null),eg=(0,g.useRef)(null),eb=(0,g.useRef)(null),ex=(0,g.useRef)(null),ew=(0,g.useRef)(new Map);(0,g.useEffect)(function(){q.current=ep},[ep]);var ej=function(){var e=ey.current;if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;eg.current&&(eg.current.style.opacity=Math.min(t/20,1).toString()),eb.current&&(eb.current.style.opacity=Math.min(Math.max(n-r-t-16,0)/10,1).toString())}},eS=(0,g.useCallback)(function(e){j(!0),ef||O(e),null==f||f(e)},[ef,f]),eE=(0,g.useCallback)(function(){X.current&&(X.current.stop(),X.current=null),Z.current&&(cancelAnimationFrame(Z.current),Z.current=null),Y.current&&(Y.current.getTracks().forEach(function(e){return e.stop()}),Y.current=null),K.current&&(K.current.close(),K.current=null),Q.current&&(window.clearInterval(Q.current),Q.current=null),J.current&&(window.clearInterval(J.current),J.current=null),U(!1),G([,,,,,].fill(0))},[]),eO=(0,g.useCallback)(function(){return Nq(function(){var e,t,n,r,a,i,o,s;function l(){var e="Can you build a high fidelity Framer Motion layout animation for a dark mode dashboard?".split(" "),t=0,n=q.current;J.current=window.setInterval(function(){t<e.length?(eS(n=(n?n+" ":"")+e[t]),t++):eE()},300)}return NZ(this,function(u){switch(u.label){case 0:j(!1),b(!0),e=null,u.label=1;case 1:if(u.trys.push([1,4,,5]),!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return[3,3];return[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:e=u.sent(),u.label=3;case 3:return[3,5];case 4:return u.sent(),console.warn("Microphone access denied or unavailable. Falling back to simulated voice mode for demo."),[3,5];case 5:return U(!0),e?(Y.current=e,K.current=t=new(window.AudioContext||window.webkitAudioContext),(n=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(n),r=new Uint8Array(n.frequencyBinCount),(a=function(){n.getByteFrequencyData(r);for(var e=[,,,,,].fill(0),t=Math.floor(r.length/5),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=r[i*t+s];e[i]=o/t/255}G(e),Z.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=q.current,o.onresult=function(e){for(var t="",n="",r=e.resultIndex;r<e.results.length;++r)e.results[r].isFinal?n+=e.results[r][0].transcript:t+=e.results[r][0].transcript;n&&(s+=(s?" ":"")+n),eS((s+(t?" "+t:"")).trim())},o.onerror=function(e){console.error("Speech recognition error",e),eE()},o.onend=function(){eE()},X.current=o,o.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(Q.current=window.setInterval(function(){G(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[eS,eE]);(0,g.useEffect)(function(){W&&ey.current&&(ey.current.scrollTop=ey.current.scrollHeight)},[ep,W]),(0,g.useEffect)(function(){return function(){eE(),_.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,_]),(0,g.useEffect)(function(){(""!==ep.trim()||eh)&&!y&&(j(!1),b(!0))},[ep,y,eh]),(0,g.useEffect)(function(){if(y&&!W){var e=setTimeout(function(){if(ey.current){ey.current.focus();var e=ey.current.value.length;ey.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[y,W]),(0,g.useEffect)(function(){if(ey.current){var e=ey.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var n=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var r=Math.max(68,Math.min(n,160));e.style.height="".concat(r,"px"),el(r),ed(n>160),setTimeout(ej,0)}},[ep,y]),(0,g.useEffect)(function(){ei(Math.max(116,es+48)),setTimeout(ej,0)},[es]),(0,g.useEffect)(function(){if(M){var e=function(e){ev.current&&!ev.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[M]);var ek=function(){(""!==ep.trim()||eh)&&(j(!1),null==n||n(ep,{model:A,effort:u[C],attachments:_.map(function(e){return e.file})}),eS(""),_.forEach(function(e){return URL.revokeObjectURL(e.url)}),L([]),b(!1),R(!1))},eA=function(e,t,n,r){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));L(function(i){return((function(e){if(Array.isArray(e))return NH(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||NK(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:a,file:e,url:t,name:e.name,width:n,height:r}])})},eD=function(e){j(!0),L(function(t){var n=t.find(function(t){return t.id===e});return n&&URL.revokeObjectURL(n.url),t.filter(function(t){return t.id!==e})}),ew.current.delete(e)},eP=em&&!W,eC=!em&&!W;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),ev.current=e},onBlur:function(e){!(ev.current&&ev.current.contains(e.relatedTarget))&&(""!==ep.trim()||eh||W||(j(!1),b(!1),R(!1)))},className:yt("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:w?"max-width 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},children:[(0,v.jsx)("input",{ref:ex,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return Nq(function(){var t,n,r,a,i,o,s,l,u,c;return NZ(this,function(d){if(!(t=e.target.files)||(n=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===n.length))return[2];r=Math.max(0,m-_.length),a=n.slice(0,r),y?j(!0):(j(!1),b(!0)),i=!0,o=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),n=new Image;n.onload=function(){return eA(e,t,n.naturalWidth,n.naturalHeight)},n.onerror=function(){return eA(e,t,800,600)},n.src=t},u=a[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)l()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return[2]})})()},className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,v.jsx)("div",{"aria-hidden":!eh,style:{height:eh&&y?68:0,transition:w?"height 0.15s ease-out":"height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:"w-full relative z-0 overflow-hidden",children:(0,v.jsx)("div",{style:{position:"absolute",bottom:-8,left:20,right:20,height:68,transform:eh&&y?"translateY(0)":"translateY(100%)",opacity:eh&&y?1:0,transition:w?"transform 0.15s ease-out, opacity 0.15s ease-out":"transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out"},className:"border border-border border-b-0 bg-muted rounded-t-2xl px-2 pt-2 pb-1 flex items-start gap-2 overflow-x-auto prompt-scrollbar",children:_.map(function(e,t){return(0,v.jsx)(N4,{attachment:e,index:t,onRemove:eD,onOpen:function(e,t){return V({attachment:e,rect:t})},registerRef:function(e,t){return ew.current.set(e,t)}},e.id)})})}),(0,v.jsxs)("div",{onMouseDown:function(e){var t,n=e.target===ey.current;!y||n||W||(e.preventDefault(),null==(t=ey.current)||t.focus())},style:{borderRadius:24,height:y?ea:48,transition:w?"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",overflow:y?"visible":"hidden"},className:yt("relative w-full border border-border bg-card shadow-sm focus-within:border-ring/40 focus-within:ring-1 focus-within:ring-ring/20 hover:border-border/80 z-10",y?"cursor-text":"cursor-default"),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .prompt-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-track { background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }\n .prompt-scrollbar:hover::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); }\n "}}),(0,v.jsx)("textarea",{ref:ey,value:ep,onChange:function(e){return eS(e.target.value)},onScroll:ej,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ek()),"Escape"!==e.key||""!==ep.trim()||eh||(j(!1),b(!1),R(!1))},placeholder:a,"aria-label":"Prompt",disabled:W,style:{transition:w?"height 0.15s ease-out":"opacity 0.3s ease-out, transform 0.3s ease-out, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:yt("prompt-scrollbar absolute top-0 inset-x-0 z-[1] w-full resize-none bg-transparent pl-4 pr-12 py-3.5 text-sm leading-[22px] text-foreground outline-none placeholder:font-medium placeholder:text-muted-foreground/80 cursor-text",y?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-1 pointer-events-none",ec?"overflow-y-auto":"overflow-y-hidden",W&&"pointer-events-none")}),(0,v.jsx)("div",{ref:eg,className:"absolute left-4 right-12 top-0 z-[2] h-8 bg-gradient-to-b from-card via-card/90 to-transparent pointer-events-none"}),(0,v.jsx)("div",{ref:eb,className:"absolute left-4 right-12 z-[2] h-8 bg-gradient-to-t from-card via-card/90 to-transparent pointer-events-none",style:{opacity:0,top:"".concat(es-32,"px"),transition:w?"top 0.15s ease-out":"top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}}),(0,v.jsx)("button",{type:"button",onClick:function(){j(!1),b(!0)},style:{transition:w?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:yt("absolute inset-x-0 top-0 z-[1] cursor-text pl-4 pr-12 py-[15px] text-left text-sm font-medium leading-[17px] text-muted-foreground/80 outline-none truncate",y?"opacity-0 scale-105 translate-y-1 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open prompt input",children:a}),(0,v.jsxs)("div",{className:yt("absolute bottom-2 left-3 right-12 z-[10] flex items-center gap-0 transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",y&&!W?"opacity-100 blur-0 translate-y-0 pointer-events-auto":"opacity-0 blur-sm translate-y-2 pointer-events-none"),children:[(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),R(function(e){return!e})},className:yt("group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 outline-none hover:bg-accent/60 hover:text-foreground cursor-default",M?"bg-accent/60 text-foreground":""),"aria-label":"Select model. Current: ".concat(A),children:[(0,v.jsx)(NQ,{model:A,className:"size-3.5 opacity-70 group-hover:opacity-100 transition-opacity"}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(NX,{text:A})})]}),(0,v.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){en(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={opacity:0,transform:e.transform.replace("scale(1)","scale(0.95)"),transition:"opacity 0.2s ease-in, transform 0.2s ease-out"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t})},className:yt("absolute bottom-full left-0 mb-2.5 z-50 w-44 rounded-2xl border border-border bg-card/95 p-1 shadow-xl backdrop-blur-md flex flex-col gap-0.5 transition-all duration-400 cursor-default",M?"opacity-100 scale-100 translate-y-0 pointer-events-auto ease-[cubic-bezier(0.34,1.56,0.64,1)]":"opacity-0 scale-95 translate-y-3 pointer-events-none ease-[cubic-bezier(0.175,0.885,0.32,1.275)]"),children:(0,v.jsxs)("div",{className:"relative flex flex-col gap-0.5",children:[(0,v.jsx)("div",{style:et,className:"absolute left-0 right-0 top-0 h-8 -z-10 rounded-xl bg-accent pointer-events-none"}),s.map(function(e,t){return(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){en(function(e){return{opacity:1,transform:"translateY(".concat(34*t,"px) scale(1)"),transition:0===e.opacity?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease"}})},onClick:function(t){t.stopPropagation(),D(e),R(!1)},className:"group relative flex h-8 w-full items-center justify-between rounded-xl px-2.5 py-1.5 text-left text-xs font-medium text-foreground/80 outline-none active:scale-[0.98] cursor-default",children:(0,v.jsxs)("span",{className:"flex items-center gap-2",children:[(0,v.jsx)(NQ,{model:e,className:"size-3.5 opacity-85 group-hover:opacity-100 transition-opacity"}),e]})},e)})]})})]}),(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),T(function(e){return(e+1)%u.length})},className:"group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default",children:[(0,v.jsx)(N5,{level:u[C]}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(NX,{text:u[C]})})]}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ex.current)||t.click()},disabled:_.length>=m,className:"ml-auto flex size-7 items-center justify-center rounded-full text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default disabled:opacity-40 disabled:pointer-events-none",children:(0,v.jsx)(N2,{})})]}),(0,v.jsx)("div",{className:yt("absolute right-12 bottom-2 z-[10] flex h-8 items-center justify-end gap-[3px] transition-all duration-400 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",W?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:H.map(function(e,t){return(0,v.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),W?eE():em?ek():eO()},"aria-label":eP?"Send prompt":W?"Stop recording":"Use voice input",style:{borderRadius:9999},className:"absolute right-2 bottom-2 z-[10] flex h-8 w-8 items-center justify-center bg-primary text-primary-foreground transition-all duration-300 hover:opacity-90 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-default",children:(0,v.jsxs)("span",{className:"relative flex h-full w-full items-center justify-center",children:[(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eP?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(NJ,{})}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eC?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(N0,{})}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",W?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(N1,{})})]})})]})]}),B&&(0,v.jsx)(N6,{attachment:B.attachment,originRect:B.rect,onClose:function(){return V(null)}})]})});function N9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}N8.displayName="PromptInput";var N7=(0,g.lazy)(function(){return n.e("1808").then(n.bind(n,339))}),Me=new Set;function Mt(e){if(!("u"<typeof document||Me.has(e))){Me.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function Mn(e){var t,n=e.scene,r=e.className,a=e.onLoad,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return N9(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N9(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,v.jsxs)("div",{className:"relative ".concat(void 0===r?"w-full h-full":r," overflow-hidden"),children:[!o&&(0,v.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-[#030708] text-teal-400 gap-3 transition-opacity duration-300",children:[(0,v.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"}),(0,v.jsx)("span",{className:"text-xs font-mono tracking-widest text-teal-300/80 uppercase animate-pulse",children:"Initialisation Robot 3D..."})]}),(0,v.jsx)("div",{className:"w-full h-full transition-opacity duration-500 ".concat(o?"opacity-100":"opacity-0"),children:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(N7,{scene:n,className:"w-full h-full",onLoad:function(e){s(!0),a&&a(e)}})})})]})}var Mr={mode:"dark",hue:0,saturation:1,brightness:1},Ma={title:"Recursive Erosion particle sphere background",source:"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Recursive Erosion Particle Sphere</title>\n <style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: #0a0908;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #stage {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n }\n </style>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"><\/script>\n</head>\n<body>\n <canvas id=\"stage\"></canvas>\n\n <script>\n (function() {\n var canvas = document.getElementById('stage');\n var width = window.innerWidth;\n var height = window.innerHeight;\n\n // Ensure canvas has dimension\n canvas.width = width;\n canvas.height = height;\n\n // Mouse tracking\n var mouseX = 0, mouseY = 0;\n var targetRotX = 0, targetRotY = 0;\n window.addEventListener('mousemove', function(e) {\n mouseX = (e.clientX / window.innerWidth) * 2 - 1;\n mouseY = -(e.clientY / window.innerHeight) * 2 + 1;\n });\n\n // Simple 3D noise approximation\n function snoise(x, y, z) {\n return Math.sin(x * 1.7 + y * 2.3) * Math.cos(y * 1.5 + z * 2.1) * Math.sin(z * 1.9 + x * 0.9);\n }\n\n // Check if THREE is loaded\n if (typeof THREE !== 'undefined') {\n initThree();\n } else {\n // In case external CDN fails, fallback to standalone canvas 2D rendering\n initCanvasFallback();\n }\n\n function initThree() {\n var scene = new THREE.Scene();\n var camera = new THREE.PerspectiveCamera(50, width / height, 0.1, 1000);\n camera.position.z = 240;\n\n var renderer = new THREE.WebGLRenderer({\n canvas: canvas,\n antialias: true,\n alpha: true,\n powerPreference: \"high-performance\"\n });\n renderer.setSize(width, height);\n renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\n // Create 7,000 points on Fibonacci sphere\n var particleCount = 7000;\n var geometry = new THREE.BufferGeometry();\n var positions = new Float32Array(particleCount * 3);\n var basePositions = new Float32Array(particleCount * 3);\n var colors = new Float32Array(particleCount * 3);\n var sizes = new Float32Array(particleCount);\n\n var sphereRadius = 82;\n var goldenRatio = (1 + Math.sqrt(5)) / 2;\n\n for (var i = 0; i < particleCount; i++) {\n var y = 1 - (i / (particleCount - 1)) * 2;\n var radiusAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / goldenRatio;\n\n var x = Math.cos(theta) * radiusAtY;\n var z = Math.sin(theta) * radiusAtY;\n\n var bx = x * sphereRadius;\n var by = y * sphereRadius;\n var bz = z * sphereRadius;\n\n basePositions[i * 3] = bx;\n basePositions[i * 3 + 1] = by;\n basePositions[i * 3 + 2] = bz;\n\n positions[i * 3] = bx;\n positions[i * 3 + 1] = by;\n positions[i * 3 + 2] = bz;\n\n // Warm orange / amber / golden palette with organic gradient\n var ratio = (y + 1) * 0.5;\n var r = 1.0;\n var g = 0.38 + ratio * 0.28 + Math.random() * 0.12;\n var b = 0.05 + ratio * 0.08;\n\n colors[i * 3] = r;\n colors[i * 3 + 1] = g;\n colors[i * 3 + 2] = b;\n\n sizes[i] = 1.2 + Math.random() * 2.0;\n }\n\n geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));\n geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));\n\n // Circular glow particle texture\n var circleCanvas = document.createElement('canvas');\n circleCanvas.width = 64;\n circleCanvas.height = 64;\n var ctx = circleCanvas.getContext('2d');\n var grad = ctx.createRadialGradient(32, 32, 0, 32, 32, 32);\n grad.addColorStop(0, 'rgba(255, 255, 255, 1)');\n grad.addColorStop(0.2, 'rgba(255, 160, 60, 0.9)');\n grad.addColorStop(0.5, 'rgba(255, 90, 20, 0.4)');\n grad.addColorStop(1, 'rgba(255, 60, 0, 0)');\n ctx.fillStyle = grad;\n ctx.fillRect(0, 0, 64, 64);\n\n var pTexture = new THREE.CanvasTexture(circleCanvas);\n\n var material = new THREE.PointsMaterial({\n size: 3.2,\n vertexColors: true,\n map: pTexture,\n transparent: true,\n blending: THREE.AdditiveBlending,\n depthWrite: false,\n opacity: 0.92\n });\n\n var points = new THREE.Points(geometry, material);\n scene.add(points);\n\n // 8 jagged lightning arcs that strike across the sphere\n var arcGroup = new THREE.Group();\n var arcLines = [];\n var ARC_COUNT = 8;\n var ARC_SEGMENTS = 20;\n\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcGeo = new THREE.BufferGeometry();\n var arcPos = new Float32Array(ARC_SEGMENTS * 3);\n arcGeo.setAttribute('position', new THREE.BufferAttribute(arcPos, 3));\n\n var arcMat = new THREE.LineBasicMaterial({\n color: new THREE.Color(1.0, 0.72 + Math.random() * 0.25, 0.3),\n transparent: true,\n opacity: 0.75,\n blending: THREE.AdditiveBlending,\n linewidth: 1.5\n });\n\n var line = new THREE.Line(arcGeo, arcMat);\n arcLines.push({ line: line, geo: arcGeo, phase: Math.random() * Math.PI * 2, speed: 0.8 + Math.random() * 0.6 });\n arcGroup.add(line);\n }\n scene.add(arcGroup);\n\n // Inner glowing core\n var coreGeo = new THREE.SphereGeometry(sphereRadius * 0.3, 16, 16);\n var coreMat = new THREE.MeshBasicMaterial({\n color: 0xff5500,\n transparent: true,\n opacity: 0.08,\n blending: THREE.AdditiveBlending,\n wireframe: true\n });\n var coreMesh = new THREE.Mesh(coreGeo, coreMat);\n scene.add(coreMesh);\n\n var clock = new THREE.Clock();\n\n function animate() {\n requestAnimationFrame(animate);\n var time = clock.getElapsedTime();\n\n // 4-second erosion breathing loop\n var loopCycle = (time % 4.0) / 4.0; // 0 to 1\n var erosionPulse = Math.sin(loopCycle * Math.PI * 2);\n\n var posAttr = geometry.attributes.position;\n var posArray = posAttr.array;\n\n for (var i = 0; i < particleCount; i++) {\n var i3 = i * 3;\n var bx = basePositions[i3];\n var by = basePositions[i3 + 1];\n var bz = basePositions[i3 + 2];\n\n // 3D noise for recursive erosion crumpling & hole creation\n var nVal = snoise(bx * 0.025 + time * 0.4, by * 0.025 + time * 0.3, bz * 0.025);\n var isHole = nVal > (0.42 - erosionPulse * 0.25);\n\n var displace = isHole ? (1.0 + (nVal - 0.3) * 0.65) : (1.0 + nVal * 0.12 * erosionPulse);\n posArray[i3] = bx * displace;\n posArray[i3 + 1] = by * displace;\n posArray[i3 + 2] = bz * displace;\n }\n posAttr.needsUpdate = true;\n\n // Lightning arcs updates\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcObj = arcLines[a];\n var aGeo = arcObj.geo;\n var aPos = aGeo.attributes.position.array;\n\n var tPhase = time * arcObj.speed + arcObj.phase;\n var p1Idx = Math.floor(Math.abs(Math.sin(tPhase * 0.7) * (particleCount - 1)));\n var p2Idx = Math.floor(Math.abs(Math.cos(tPhase * 0.5) * (particleCount - 1)));\n\n var x1 = posArray[p1Idx * 3], y1 = posArray[p1Idx * 3 + 1], z1 = posArray[p1Idx * 3 + 2];\n var x2 = posArray[p2Idx * 3], y2 = posArray[p2Idx * 3 + 1], z2 = posArray[p2Idx * 3 + 2];\n\n for (var s = 0; s < ARC_SEGMENTS; s++) {\n var tSeg = s / (ARC_SEGMENTS - 1);\n var sx = x1 + (x2 - x1) * tSeg;\n var sy = y1 + (y2 - y1) * tSeg;\n var sz = z1 + (z2 - z1) * tSeg;\n\n // Jagged lightning noise displacement\n if (s > 0 && s < ARC_SEGMENTS - 1) {\n var jitter = Math.sin(tSeg * Math.PI) * 7.5;\n sx += (Math.random() - 0.5) * jitter;\n sy += (Math.random() - 0.5) * jitter;\n sz += (Math.random() - 0.5) * jitter;\n }\n\n aPos[s * 3] = sx;\n aPos[s * 3 + 1] = sy;\n aPos[s * 3 + 2] = sz;\n }\n aGeo.attributes.position.needsUpdate = true;\n arcObj.line.material.opacity = 0.3 + Math.random() * 0.65;\n }\n\n // Smooth rotation & interactive mouse tilt\n targetRotX = mouseY * 0.45;\n targetRotY = mouseX * 0.55;\n\n points.rotation.y += 0.0035;\n points.rotation.x += (targetRotX - points.rotation.x) * 0.05;\n points.rotation.z += (targetRotY * 0.2 - points.rotation.z) * 0.05;\n\n arcGroup.rotation.copy(points.rotation);\n coreMesh.rotation.copy(points.rotation);\n\n renderer.render(scene, camera);\n }\n\n animate();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n camera.aspect = width / height;\n camera.updateProjectionMatrix();\n renderer.setSize(width, height);\n });\n }\n\n function initCanvasFallback() {\n var ctx = canvas.getContext('2d');\n var particles = [];\n var count = 3000;\n for (var i = 0; i < count; i++) {\n var y = 1 - (i / (count - 1)) * 2;\n var rAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / 1.6180339887;\n particles.push({\n x: Math.cos(theta) * rAtY,\n y: y,\n z: Math.sin(theta) * rAtY,\n baseRadius: 180\n });\n }\n\n var angleX = 0, angleY = 0;\n function renderLoop() {\n requestAnimationFrame(renderLoop);\n ctx.fillStyle = '#0a0908';\n ctx.fillRect(0, 0, width, height);\n\n var cx = width / 2;\n var cy = height / 2;\n\n angleY += 0.005;\n angleX = mouseY * 0.3;\n\n for (var i = 0; i < count; i += 2) {\n var p = particles[i];\n var cosY = Math.cos(angleY), sinY = Math.sin(angleY);\n var cosX = Math.cos(angleX), sinX = Math.sin(angleX);\n\n var x1 = p.x * cosY - p.z * sinY;\n var z1 = p.z * cosY + p.x * sinY;\n\n var y2 = p.y * cosX - z1 * sinX;\n var z2 = z1 * cosX + p.y * sinX;\n\n var scale = 400 / (400 + z2 * p.baseRadius);\n var px = cx + x1 * p.baseRadius * scale;\n var py = cy + y2 * p.baseRadius * scale;\n\n var alpha = Math.max(0.1, Math.min(1, (z2 + 1.2) * 0.45));\n ctx.fillStyle = 'rgba(255, 140, 40, ' + alpha + ')';\n ctx.beginPath();\n ctx.arc(px, py, Math.max(1, 2.0 * scale), 0, Math.PI * 2);\n ctx.fill();\n }\n }\n renderLoop();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n });\n }\n })();\n <\/script>\n</body>\n</html>",background:"#0a0908",theme:{lightBackground:"#f4f3f1",darkBackground:"#0a0908"},targets:[{selector:"#stage",role:"background"}],hiddenTargets:["#badge",".sr"]};function Mi(e,t,n){return Math.min(n,Math.max(t,e))}function Mo(e,t){var n,r;return null!=(n=null==(r=e.theme)?void 0:r["".concat(t,"Background")])?n:e.background}function Ms(e){var t=e.mode,n=void 0===t?Mr.mode:t,r=e.hue,a=void 0===r?Mr.hue:r,i=e.saturation,o=void 0===i?Mr.saturation:i,s=e.brightness,l=void 0===s?Mr.brightness:s,u=e.className,c=e.style,d="light"===n?"light":"dark",f=Mo(Ma,d),p=(0,g.useMemo)(function(){var e,t,n,r,a,i,o,s;return t=Mo(Ma,d),n=Ma.source,r=JSON.stringify(Ma.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=Ma.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),i=JSON.stringify(d),o="<style data-threeui-focus>\nhtml, body { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: ".concat(t," !important; color-scheme: ").concat(d,' !important; }\nbody { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; }\nbody > * { visibility: hidden !important; }\nbody[data-threeui-ready] > [data-threeui-role] { visibility: visible !important; }\n[data-threeui-residual] { display: none !important; }\n[data-threeui-hidden] { display: none !important; }\n[data-threeui-role="background"] { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; z-index: 0 !important; opacity: 1 !important; pointer-events: none !important; }\n[data-threeui-role="button"] { position: relative !important; z-index: 2 !important; opacity: 1 !important; flex: none !important; }\n[data-threeui-role="visual"] { position: relative !important; z-index: 1 !important; width: min(100%, 1040px) !important; max-width: 1040px !important; max-height: 100% !important; margin: auto !important; padding: 24px !important; overflow: auto !important; opacity: 1 !important; filter: none !important; }\n</style>'),s="<script data-threeui-focus>\n(function () {\n document.documentElement.dataset.sfMode = ".concat(i,";\n var isolated = false;\n function isolate() {\n if (isolated) return;\n var specs = ").concat(r,";\n var hiddenSelectors = ").concat(a,";\n var roots = [];\n hiddenSelectors.forEach(function (selector) {\n document.querySelectorAll(selector).forEach(function (element) {\n element.setAttribute('data-threeui-hidden', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n });\n specs.forEach(function (spec) {\n var element = document.querySelector(spec.selector);\n if (!element) return;\n element.setAttribute('data-threeui-role', spec.role);\n if (!roots.some(function (root) { return root.contains(element); })) roots.push(element);\n });\n if (!roots.length) return;\n isolated = true;\n roots.forEach(function (root) {\n var placeholderLink = root.matches('a[href=\"#\"]') ? root : root.querySelector('a[href=\"#\"]');\n if (placeholderLink) placeholderLink.addEventListener('click', function (event) { event.preventDefault(); });\n document.body.appendChild(root);\n });\n Array.from(document.body.children).forEach(function (element) {\n if (roots.indexOf(element) !== -1) return;\n element.setAttribute('data-threeui-residual', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n document.body.setAttribute('data-threeui-ready', '');\n requestAnimationFrame(function () { window.dispatchEvent(new Event('resize')); });\n }\n function scheduleIsolation() { setTimeout(isolate, 100); }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scheduleIsolation, { once: true });\n else scheduleIsolation();\n window.addEventListener('load', isolate, { once: true });\n})();\n<\/script>"),n.replace(/<\/head>/i,"".concat(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),m=Mi(a,-180,180),h=Mi(o,0,2),y=Mi(l,.35,1.65),b=0===m&&1===h&&1===y?void 0:"hue-rotate(".concat(m,"deg) saturate(").concat(h,") brightness(").concat(y,")");return(0,v.jsx)("iframe",{className:u,"data-mode":d,title:Ma.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mu(e){if(Array.isArray(e))return e}function Mc(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Md(e,t){if(e){if("string"==typeof e)return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ml(e,t)}}var Mf=(0,g.forwardRef)(function(e,t){var n,r,a,i=Mu(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Md(n)||Mc(),o=i[0],s=i.slice(1),l=o.children,u=o.optionsComponent,c=o.header,d=o.footer,f=o.align,p=o.width,m=o.className,h=void 0===m?"":m,y=o.contentClassName,g=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(Mu(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||Md(s,1)||Mc())[0],x=h.includes("fixed")||h.includes("absolute");return(0,v.jsx)("div",(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:b,className:"".concat(x?"":"absolute top-full mt-2"," z-[9999] text-xs text-slate-100 select-none overflow-hidden\n bg-slate-950/90 backdrop-blur-3xl rounded-2xl border border-white/20\n shadow-[0_16px_48px_0_rgba(0,0,0,0.65)]\n before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/[0.12] before:to-transparent before:pointer-events-none\n animate-in fade-in zoom-in-95 duration-150\n ").concat({right:"right-0",left:"left-0",center:"left-1/2 -translate-x-1/2",none:""}[void 0===f?"right":f],"\n ").concat(p||"","\n ").concat(h,"\n ")},g),a=a={children:(0,v.jsxs)("div",{className:"relative z-10 p-1.5 ".concat(void 0===y?"":y),children:[c&&(0,v.jsx)("div",{className:"pb-1.5 mb-1.5 border-b border-white/10 px-2 pt-1",children:c}),u||l,d&&(0,v.jsx)("div",{className:"pt-1.5 mt-1.5 border-t border-white/10 px-2 pb-1",children:d})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r))});Mf.displayName="WaterGlassModal";function Mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mm=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");Mp(this,"ctx",null),Mp(this,"isMuted",!1),Mp(this,"volume",.5),Mp(this,"lastPlayTimes",{}),Mp(this,"noiseBuffer",null);try{var n=localStorage.getItem("egen_xbox_sound_muted");null!==n&&(this.isMuted="true"===n);var r=localStorage.getItem("egen_xbox_sound_volume");null!==r&&(this.volume=parseFloat(r)||.5)}catch(e){}if("u">typeof window){var a=function(){e.initContext(),window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",a)};window.addEventListener("pointerdown",a,{passive:!0}),window.addEventListener("keydown",a,{passive:!0})}}return e=[{key:"initContext",value:function(){if(!this.ctx&&"u">typeof window){var e=window.AudioContext||window.webkitAudioContext;e&&(this.ctx=new e,this.generateNoiseBuffer())}return this.ctx&&"suspended"===this.ctx.state&&this.ctx.resume().catch(function(){}),this.ctx}},{key:"generateNoiseBuffer",value:function(){if(this.ctx){for(var e=.5*this.ctx.sampleRate,t=this.ctx.createBuffer(2,e,this.ctx.sampleRate),n=0;n<2;n++)for(var r=t.getChannelData(n),a=0;a<e;a++)r[a]=2*Math.random()-1;this.noiseBuffer=t}}},{key:"getIsMuted",value:function(){return this.isMuted}},{key:"setMuted",value:function(e){this.isMuted=e;try{localStorage.setItem("egen_xbox_sound_muted",String(e))}catch(e){}}},{key:"toggleMute",value:function(){return this.setMuted(!this.isMuted),this.isMuted||this.play("select"),this.isMuted}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=Math.max(0,Math.min(1,e));try{localStorage.setItem("egen_xbox_sound_volume",String(this.volume))}catch(e){}}},{key:"play",value:function(e){if(!this.isMuted){var t=performance.now();if(!this.lastPlayTimes[e]||!(t-this.lastPlayTimes[e]<({hover:40,scroll:40,boundary:160,select:60,back:60,modalOpen:100,folderOpen:120,notification:180,achievement:250,toastSuccess:120,toastInfo:120,toastWarning:120,toastError:120,toggle:60})[e])){this.lastPlayTimes[e]=t;var n=this.initContext();if(n)try{switch(e){case"hover":this.playHover(n);break;case"select":this.playSelect(n);break;case"back":this.playBack(n);break;case"modalOpen":this.playModalOpen(n);break;case"folderOpen":this.playFolderOpen(n);break;case"scroll":this.playScroll(n);break;case"boundary":this.playBoundary(n);break;case"notification":this.playNotification(n);break;case"achievement":this.playAchievement(n);break;case"toastSuccess":this.playToastSuccess(n);break;case"toastInfo":this.playToastInfo(n);break;case"toastWarning":this.playToastWarning(n);break;case"toastError":this.playToastError(n);break;case"toggle":this.playToggle(n)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(2200,t),n.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var i=.12*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.025),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="sine",n.frequency.setValueAtTime(920,t),n.frequency.exponentialRampToValueAtTime(1480,t+.035),n.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.003),r.gain.exponentialRampToValueAtTime(.001,t+.07),n.connect(r),r.connect(e.destination);var i=e.createOscillator(),o=e.createGain();i.type="triangle",i.frequency.setValueAtTime(460,t),i.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(s,t+.004),o.gain.exponentialRampToValueAtTime(.001,t+.05),i.connect(o),o.connect(e.destination),n.start(t),i.start(t),n.stop(t+.08),i.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(750,t),n.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02);var i=e.createOscillator(),o=e.createGain(),s=e.createBiquadFilter();i.type="sine",i.frequency.setValueAtTime(540,t),i.frequency.exponentialRampToValueAtTime(210,t+.085),s.type="lowpass",s.frequency.setValueAtTime(1200,t),s.frequency.exponentialRampToValueAtTime(360,t+.09),s.Q.setValueAtTime(1.8,t);var l=.28*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(l,t+.004),o.gain.exponentialRampToValueAtTime(1e-4,t+.095),i.connect(s),s.connect(o),o.connect(e.destination);var u=e.createOscillator(),c=e.createGain();u.type="sine",u.frequency.setValueAtTime(230,t),u.frequency.exponentialRampToValueAtTime(95,t+.095);var d=.18*this.volume;c.gain.setValueAtTime(0,t),c.gain.linearRampToValueAtTime(d,t+.005),c.gain.exponentialRampToValueAtTime(1e-4,t+.1),u.connect(c),c.connect(e.destination),i.start(t),u.start(t),i.stop(t+.1),u.stop(t+.11)}},{key:"playModalOpen",value:function(e){var t=this,n=e.currentTime,r=e.createBiquadFilter();if(r.type="lowpass",r.frequency.setValueAtTime(1100,n),r.Q.setValueAtTime(.7,n),r.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,n),i.frequency.exponentialRampToValueAtTime(700,n+.1),i.Q.setValueAtTime(1.2,n);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.03),o.gain.exponentialRampToValueAtTime(1e-4,n+.18),a.connect(i),i.connect(o),o.connect(r),a.start(n),a.stop(n+.19)}[{freqStart:370,freqEnd:392,startOffset:0,dur:.22,vol:.14},{freqStart:554,freqEnd:587.33,startOffset:.022,dur:.24,vol:.12},{freqStart:740,freqEnd:783.99,startOffset:.045,dur:.2,vol:.08}].forEach(function(a){var i=e.createOscillator(),o=e.createGain();i.type="sine";var s=n+a.startOffset;i.frequency.setValueAtTime(a.freqStart,s),i.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.022),o.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),i.connect(o),o.connect(r),i.start(s),i.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,n=e.currentTime;if(this.noiseBuffer){var r=e.createBufferSource();r.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,n),a.frequency.exponentialRampToValueAtTime(2400,n+.12),a.frequency.exponentialRampToValueAtTime(600,n+.28),a.Q.setValueAtTime(3.5,n);var i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,n),i.gain.linearRampToValueAtTime(o,n+.08),i.gain.exponentialRampToValueAtTime(1e-4,n+.28),r.connect(a),a.connect(i),i.connect(e.destination),r.start(n),r.stop(n+.3)}[659.25,987.77,1318.5].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*r,n),i.frequency.exponentialRampToValueAtTime(r,n+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.04),o.gain.exponentialRampToValueAtTime(1e-4,n+.35),i.connect(o),o.connect(e.destination),i.start(n),i.stop(n+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(1400,t),n.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var i=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(450,t),n.frequency.exponentialRampToValueAtTime(180,t+.06),n.Q.setValueAtTime(1.2,t),n.connect(e.destination);var r=e.createOscillator(),a=e.createGain();r.type="sine",r.frequency.setValueAtTime(210,t),r.frequency.exponentialRampToValueAtTime(85,t+.055);var i=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(i,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),r.connect(a),a.connect(n),r.start(t),r.stop(t+.07);var o=e.createOscillator(),s=e.createGain();o.type="triangle",o.frequency.setValueAtTime(110,t),o.frequency.exponentialRampToValueAtTime(55,t+.045);var l=.11*this.volume;s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(l,t+.002),s.gain.exponentialRampToValueAtTime(1e-4,t+.05),o.connect(s),s.connect(n),o.start(t),o.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,n=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.f,n+r.start);var o=t.volume*r.vol;i.gain.setValueAtTime(0,n+r.start),i.gain.linearRampToValueAtTime(o,n+r.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.start+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.start),a.stop(n+r.start+r.dur)})}},{key:"playAchievement",value:function(e){var t=this,n=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.freq,n+r.time);var o=.3*t.volume;i.gain.setValueAtTime(0,n+r.time),i.gain.linearRampToValueAtTime(o,n+r.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.time+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.time),a.stop(n+r.time+r.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(r,n+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,n+.12),o.gain.linearRampToValueAtTime(s,n+.14),o.gain.exponentialRampToValueAtTime(1e-4,n+.85),i.connect(o),o.connect(e.destination),i.start(n+.12),i.stop(n+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,n=e.currentTime;[{f:739.99,delay:0,dur:.2,vol:.24},{f:932.33,delay:.04,dur:.22,vol:.26},{f:1108.73,delay:.08,dur:.42,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,n=e.currentTime;[{f:880,delay:0,dur:.22,vol:.24},{f:1318.5,delay:.045,dur:.3,vol:.26},{f:440,delay:0,dur:.15,vol:.12}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,n=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(r){var a=e.createOscillator(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,n+r.delay),o.Q.setValueAtTime(2.2,n+r.delay);var s=n+r.delay;a.frequency.setValueAtTime(r.f,s);var l=t.volume*r.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+r.dur),a.connect(o),o.connect(i),i.connect(e.destination),a.start(s),a.stop(s+r.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sawtooth",n.frequency.setValueAtTime(392,t),n.frequency.exponentialRampToValueAtTime(220,t+.12),a.type="lowpass",a.frequency.setValueAtTime(650,t),a.frequency.exponentialRampToValueAtTime(200,t+.12),a.Q.setValueAtTime(2,t);var i=.24*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.005),r.gain.exponentialRampToValueAtTime(1e-4,t+.13),n.connect(a),a.connect(r),r.connect(e.destination);var o=e.createOscillator(),s=e.createGain();o.type="sine",o.frequency.setValueAtTime(140,t),o.frequency.exponentialRampToValueAtTime(60,t+.15),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.18*this.volume,t+.005),s.gain.exponentialRampToValueAtTime(1e-4,t+.15),o.connect(s),s.connect(e.destination),n.start(t),o.start(t),n.stop(t+.14),o.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(1100,t),n.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.03),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.035)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function Mh(e){Mm.play(e)}function My(){return Mm.getIsMuted()}function Mv(){return Mm.toggleMute()}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Mb(e,t,n[t])})}return e}function Mw(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Mj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||ME(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MS(e){return function(e){if(Array.isArray(e))return Mg(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ME(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ME(e,t){if(e){if("string"==typeof e)return Mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mg(e,t)}}var MO={type:"spring",stiffness:560,damping:34,mass:.7};function Mk(e,t){return e.find(function(e){return e.id===t})}function MA(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function MD(e){var t,n,r=e.anchorKey,a=e.label,i=e.onClose,o=e.children,s=g.useRef(null),l=An(),u=Mj(g.useState(null),2),c=u[0],d=u[1],f=Mj(g.useState(!1),2),p=f[0],m=f[1],h=Mj(g.useState(null),2),y=h[0],b=h[1];g.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(r,'"]'));d(e),m(!!(null==e?void 0:e.closest(".dark")))},[r]);var x=g.useRef(r);return x.current=r,g.useEffect(function(){return function(){var e;null==(e=document.querySelector('[data-fb-anchor="'.concat(x.current,'"]')))||e.focus()}},[]),g.useLayoutEffect(function(){if(c){var e=function(){var e=s.current;if(e){var t=c.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight,a=t.left,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-n-8)),i+r>window.innerHeight-8&&(i=t.top-6-r),b({top:i,left:a})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[c]),g.useEffect(function(){var e=function(e){!s.current||s.current.contains(e.target)||c&&c.contains(e.target)||i()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),i())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,i]),(0,t1.createPortal)((0,v.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,v.jsx)(mq.div,{ref:s,role:"dialog","aria-label":a,initial:!l&&{opacity:0,y:-3,scale:.985},animate:{opacity:1,y:0,scale:1},transition:{duration:.12,ease:[.2,.8,.2,1]},style:{position:"fixed",top:null!=(t=null==y?void 0:y.top)?t:-9999,left:null!=(n=null==y?void 0:y.left)?n:-9999,zIndex:60},className:"min-w-[13rem] max-w-[18rem] overflow-hidden rounded-lg border border-[var(--fb-border)] bg-[var(--fb-bg-surface)] shadow-[0_10px_30px_-8px_rgba(0,0,0,0.25)]",children:o})}),document.body)}function MP(e){var t=e.items,n=e.multi,r=e.loading,a=e.error,i=e.searchable,o=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=Mj(g.useState(""),2),f=d[0],p=d[1],m=Mj(g.useState(0),2),h=m[0],y=m[1],b=g.useId(),x=g.useRef(null),w=g.useRef(null),j=g.useMemo(function(){if(s)return t;var e=f.trim().toLowerCase();return e?t.filter(function(t){return t.label.toLowerCase().includes(e)}):t},[t,f,s]);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=x.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]),g.useEffect(function(){y(function(e){return Math.min(e,Math.max(0,j.length-1))})},[j.length]),g.useEffect(function(){var e,t=null==(e=w.current)?void 0:e.querySelector('[data-idx="'.concat(h,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[h]);var S=function(e){var t=j[e];t&&l(t.value)},E=function(e){"ArrowDown"===e.key?(e.preventDefault(),y(function(e){return Math.min(e+1,j.length-1)})):"ArrowUp"===e.key?(e.preventDefault(),y(function(e){return Math.max(e-1,0)})):"Home"===e.key?(e.preventDefault(),y(0)):"End"===e.key?(e.preventDefault(),y(j.length-1)):"Enter"===e.key&&(e.preventDefault(),S(h))};return(0,v.jsxs)("div",{children:[(void 0===i||i)&&(0,v.jsx)("div",{className:"border-b border-[var(--fb-border)] p-1.5",children:(0,v.jsx)("input",{ref:x,role:"combobox","aria-expanded":"true","aria-controls":b,"aria-activedescendant":j[h]?"".concat(b,"-").concat(h):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:E,placeholder:void 0===o?"Rechercher…":o,className:"w-full bg-transparent px-1.5 py-1 text-[13px] text-[var(--fb-fg)] outline-none placeholder:text-[var(--fb-fg-subtle)]",autoComplete:"off",spellCheck:!1})}),(0,v.jsxs)("ul",{ref:w,id:b,role:"listbox","aria-multiselectable":n||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:E,tabIndex:-1,children:[r&&(0,v.jsxs)("li",{className:"flex items-center gap-2 px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)(M_,{})," Chargement des options…"]}),a&&!r&&(0,v.jsxs)("li",{className:"px-2 py-2.5 text-[13px]",children:[(0,v.jsx)("p",{className:"text-[var(--fb-fg-muted)]",children:"Impossible de charger les options."}),(0,v.jsx)("button",{type:"button",onClick:u,className:"mt-1 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-[var(--fb-fg)] underline decoration-[var(--fb-fg-subtle)] underline-offset-2 hover:decoration-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60",children:"R\xe9essayer"})]}),!r&&!a&&0===j.length&&(0,v.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!r&&!a&&j.map(function(e,t){var r=t===h;return(0,v.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":n?!!e.selected:r,onMouseEnter:function(){return y(t)},onClick:function(){return l(e.value)},className:["flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-[var(--fb-fg)]",r?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[n&&(0,v.jsx)("span",{"aria-hidden":!0,className:["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-[4px] border transition-colors",e.selected?"border-[var(--fb-border-strong)] bg-[var(--fb-border-strong)] text-[var(--fb-fg-on-accent)]":"border-[var(--fb-border)]"].join(" "),children:e.selected&&(0,v.jsx)(MI,{})}),e.glyph&&(0,v.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,v.jsx)("span",{className:"truncate",children:e.label}),!n&&e.selected&&(0,v.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,v.jsx)(MI,{})})]},e.value)})]})]})}function MC(e){var t=e.inputType,n=e.arity,r=e.values,a=e.onCommit,i=e.ariaLabel,o=e.rangeLabels,s=void 0===o?["Min","Max"]:o,l=e.placeholder,u=g.useRef(null);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=u.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]);var c="w-full rounded-md border border-[var(--fb-border)] bg-transparent px-2 py-1.5 text-[13px] text-[var(--fb-fg)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60";if(2===n){var d=Mj(r,2),f=d[0],p=void 0===f?"":f,m=d[1],h=void 0===m?"":m;return(0,v.jsxs)("div",{className:"flex items-start gap-2 p-2",children:[(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[0]}),(0,v.jsx)("input",{ref:u,type:t,value:p,"aria-label":"".concat(i," — ").concat(s[0]),onChange:function(e){return a([e.target.value,h])},className:c})]}),(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[1]}),(0,v.jsx)("input",{type:t,value:h,"aria-label":"".concat(i," — ").concat(s[1]),onChange:function(e){return a([p,e.target.value])},className:c})]})]})}var y=Mj(r,1)[0];return(0,v.jsx)("div",{className:"p-2",children:(0,v.jsx)("input",{ref:u,type:t,value:void 0===y?"":y,placeholder:l,"aria-label":i,onChange:function(e){return a([e.target.value])},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:c})})}function MT(e){var t=e.role,n=e.children,r=e.onOpen,a=e.registerRef,i=e.tabIndex,o=e.ariaLabel,s=e.anchorKey,l=e.onFocus,u=e.muted,c=e.active,d=e.flash,f=e.disabled;return(0,v.jsx)("button",{type:"button",ref:a,tabIndex:i,"aria-label":o,"aria-haspopup":"listbox","aria-expanded":c,"aria-disabled":f||void 0,"data-fb-anchor":s,onFocus:l,onClick:r,"data-flash":d?"":void 0,className:["relative flex items-center gap-1 whitespace-nowrap px-2 py-[4px] text-[13px] leading-[1.35] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70",f?"cursor-default":"active:scale-[0.98]",u?"text-[var(--fb-fg-muted)]":"text-[var(--fb-fg)]",c?"bg-[var(--fb-bg-active)]":f?"":"hover:bg-[var(--fb-bg-hover)]","field"===t?"rounded-l-md font-medium":"","data-[flash]:animate-[fb-flash_620ms_ease-out]"].join(" "),children:n})}function MN(e){var t,n,r=e.fields,a=e.value,i=e.onChange,o=e.addLabel,s=void 0===o?"Filtre":o,l=e.emptyLabel,u=void 0===l?"Ajouter un filtre":l,c=e.clearLabel,d=e.allowDuplicateFields,f=void 0!==d&&d,p=e.disabled,m=e.className,h=e["aria-label"],y=An(),b=Mj(g.useState(null),2),x=b[0],w=b[1],j=Mj(g.useState(null),2),S=j[0],E=j[1],O=g.useRef([]),k=Mj(g.useState(0),2),A=k[0],D=k[1],P=Mj(g.useState({}),2),C=P[0],T=P[1],N=[];a.forEach(function(e){N.push({filterId:e.id,kind:"field"}),N.push({filterId:e.id,kind:"operator"}),N.push({filterId:e.id,kind:"value"}),N.push({filterId:e.id,kind:"remove"})}),N.push({kind:"add"}),g.useEffect(function(){A>N.length-1&&D(N.length-1)},[N.length,A]);var M=function(e){var t,n=Math.max(0,Math.min(e,N.length-1));D(n),null==(t=O.current[n])||t.focus()},R=function(e){var t,n,o=Mk(r,e);if(o){var s=o.operators[0],l={id:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"f_".concat(Math.random().toString(36).slice(2,9)),field:e,operator:null!=(t=null==s?void 0:s.value)?t:"is",values:[]};i(MS(a).concat([l])),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var n,o=Mk(r,t),s=null==o?void 0:o.operators[0];i(a.map(function(n){var r;return n.id===e?Mw(Mx({},n),{field:t,operator:null!=(r=null==s?void 0:s.value)?r:n.operator,values:[]}):n})),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:e})},_=function(e,t){var n,o,s=a.find(function(t){return t.id===e}),l=MA(Mk(r,null!=(n=null==s?void 0:s.field)?n:""),t),u=null!=(o=null==l?void 0:l.arity)?o:1;i(a.map(function(n){if(n.id!==e)return n;var r=0===u?[]:(null==l?void 0:l.multi)?n.values:n.values.slice(0,u);return Mw(Mx({},n),{operator:t,values:r})})),w(0===u?null:{kind:"value",filterId:e})},L=function(e,t,n){i(a.map(function(r){if(r.id!==e)return r;if(!n)return Mw(Mx({},r),{values:[t]});var a=r.values.includes(t);return Mw(Mx({},r),{values:a?r.values.filter(function(e){return e!==t}):MS(r.values).concat([t])})})),E(e),window.setTimeout(function(){return E(function(t){return t===e?null:t})},640),n||w(null)},F=function(e,t){i(a.map(function(n){return n.id===e?Mw(Mx({},n),{values:t}):n}))},B=function(e,t){i(a.filter(function(t){return t.id!==e})),w(null);var n=Math.max(0,(null!=t?t:A)-1);requestAnimationFrame(function(){return M(n)})},V=g.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(T(function(t){var n,r;return Mw(Mx({},t),Mb({},e.id,{loading:!0,error:!1,options:null!=(n=null==(r=t[e.id])?void 0:r.options)?n:[]}))}),e.loadOptions(t).then(function(t){return T(function(n){return Mw(Mx({},n),Mb({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return T(function(t){return Mw(Mx({},t),Mb({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);g.useEffect(function(){if(x&&"value"===x.kind){var e,t,n=a.find(function(e){return e.id===x.filterId}),i=Mk(r,null!=(e=null==n?void 0:n.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=C[i.id])?void 0:t.options.length)&&V(i)}},[x]);var z=0,W=function(){var e=z++;return{idx:e,register:function(t){return O.current[e]=t},tabIndex:e===A?0:-1,onFocus:function(){return D(e)}}},U=x?"add"===x.kind?"add":"".concat(x.filterId,":").concat(x.kind):null,$=function(){if(!x)return"";if("add"===x.kind)return u;if("field"===x.kind)return"Modifier le champ du filtre";if("operator"===x.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===x.filterId}),n=Mk(r,null!=(e=null==t?void 0:t.field)?e:"");return n?"Valeur pour ".concat(n.label):"Valeur du filtre"}(),H=a.length>1;return(0,v.jsxs)("div",{role:"toolbar","aria-label":void 0===h?"Filtres":h,"aria-orientation":"horizontal","aria-disabled":p||void 0,onKeyDown:function(e){if(!x){var t=N.length-1;if("ArrowRight"===e.key)e.preventDefault(),M(A>=t?0:A+1);else if("ArrowLeft"===e.key)e.preventDefault(),M(A<=0?t:A-1);else if("Home"===e.key)e.preventDefault(),M(0);else if("End"===e.key)e.preventDefault(),M(t);else if("Backspace"===e.key||"Delete"===e.key){var n=N[A];(null==n?void 0:n.filterId)&&(e.preventDefault(),B(n.filterId,A))}}},className:["flex flex-wrap items-center gap-1.5",p?"pointer-events-none opacity-50":"",null!=m?m:""].join(" "),children:[(0,v.jsx)("style",{children:"\n:root {\n --fb-fg: #18181b;\n --fb-fg-muted: #71717a;\n --fb-fg-subtle: #a1a1aa;\n --fb-fg-on-accent: #ffffff;\n --fb-bg-surface: #ffffff;\n --fb-bg-chip: rgba(24, 24, 27, 0.04);\n --fb-bg-hover: rgba(24, 24, 27, 0.06);\n --fb-bg-active: rgba(24, 24, 27, 0.08);\n --fb-border: rgba(24, 24, 27, 0.09);\n --fb-border-strong: #18181b;\n --fb-accent: #3b82f6;\n --fb-accent-rgb: 59 130 246;\n}\n.dark {\n --fb-fg: #f4f4f5;\n --fb-fg-muted: #a1a1aa;\n --fb-fg-subtle: #71717a;\n --fb-fg-on-accent: #18181b;\n --fb-bg-surface: #18181b;\n --fb-bg-chip: rgba(255, 255, 255, 0.05);\n --fb-bg-hover: rgba(255, 255, 255, 0.08);\n --fb-bg-active: rgba(255, 255, 255, 0.12);\n --fb-border: rgba(255, 255, 255, 0.08);\n --fb-border-strong: #f4f4f5;\n --fb-accent: #60a5fa;\n --fb-accent-rgb: 96 165 250;\n}\n@keyframes fb-flash {\n 0% { background-color: rgb(var(--fb-accent-rgb) / 0.18); }\n 100% { background-color: transparent; }\n}\n@media (prefers-reduced-motion: reduce) {\n @keyframes fb-flash {\n 0%, 100% { background-color: transparent; }\n }\n}\n"}),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,n,a,i,o,s,l,u,c,d=Mk(r,e.field),f=MA(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,m=null!=(n=null==d?void 0:d.type)?n:"select",h=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===m?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var n=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},r=function(e){var t,r;return null!=(t=null==(r=n(e))?void 0:r.label)?t:e},a=t.map(function(e){var t;return null==(t=n(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:r(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(r).join(", "),empty:!1,glyphs:a}:{text:"".concat(r(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=C[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,n){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!n.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var r,a,i,o=function(t){if(!t)return"…";if("date"!==e)return t;var n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleDateString()};return 2===t?{text:"".concat(o(null!=(a=n[0])?a:"")," – ").concat(o(null!=(i=n[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(r=n[0])?r:""),empty:!1,glyphs:[]}}(m,p,e.values),g=W(),b=W(),j=W(),E=W(),O=S===e.id;return(0,v.jsxs)(mq.div,{layout:!y,initial:!y&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:y?{opacity:0}:{opacity:0,scale:.9},transition:MO,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,v.jsxs)(MT,{role:"field",registerRef:g.register,tabIndex:g.tabIndex,onFocus:g.onFocus,anchorKey:"".concat(e.id,":field"),active:(null==x?void 0:x.kind)==="field"&&x.filterId===e.id,ariaLabel:"Champ : ".concat(null!=(a=null==d?void 0:d.label)?a:e.field,". Modifier le champ."),onOpen:function(){return w({kind:"field",filterId:e.id})},children:[(null==d?void 0:d.icon)&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]","aria-hidden":!0,children:d.icon}),null!=(i=null==d?void 0:d.label)?i:e.field]}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsx)(MT,{role:"operator",registerRef:b.register,tabIndex:b.tabIndex,onFocus:b.onFocus,anchorKey:"".concat(e.id,":operator"),muted:!0,active:(null==x?void 0:x.kind)==="operator"&&x.filterId===e.id,ariaLabel:"Op\xe9rateur : ".concat(null!=(o=null==f?void 0:f.label)?o:e.operator,". Modifier l'op\xe9rateur."),onOpen:function(){return w({kind:"operator",filterId:e.id})},children:null!=(s=null==f?void 0:f.label)?s:e.operator}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsxs)(MT,{role:"value",registerRef:j.register,tabIndex:j.tabIndex,onFocus:j.onFocus,anchorKey:"".concat(e.id,":value"),muted:h.empty||0===p,disabled:0===p,active:(null==x?void 0:x.kind)==="value"&&x.filterId===e.id,flash:O,ariaLabel:0===p?"Valeur : aucune valeur requise pour l'op\xe9rateur ".concat(null!=(l=null==f?void 0:f.label)?l:e.operator,"."):"Valeur : ".concat(h.empty?"aucune s\xe9lectionn\xe9e":h.text,". Modifier la valeur."),onOpen:function(){0!==p&&w({kind:"value",filterId:e.id})},children:[!h.empty&&h.glyphs.length>0&&(0,v.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:h.glyphs.map(function(e,t){return(0,v.jsx)("span",{className:"flex items-center",children:e},t)})}),(0,v.jsx)("span",{className:"max-w-[12rem] truncate font-medium text-[var(--fb-fg)]",children:h.empty?(0,v.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:h.text}):h.text})]}),(0,v.jsx)("button",{type:"button",ref:E.register,tabIndex:E.tabIndex,onFocus:E.onFocus,onClick:function(){return B(e.id,E.idx)},"aria-label":"Supprimer le filtre ".concat(null!=(u=null==d?void 0:d.label)?u:e.field),className:"flex items-center px-1.5 text-[var(--fb-fg-subtle)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:(0,v.jsx)(MR,{})})]},e.id)})}),(t=W(),n=0===a.length,(0,v.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":n?u:s,"aria-haspopup":"listbox","aria-expanded":(null==x?void 0:x.kind)==="add",onClick:function(){return w({kind:"add"})},className:"flex items-center gap-1 rounded-md border border-dashed border-[var(--fb-border)] px-2 py-[6px] text-[13px] font-medium leading-none text-[var(--fb-fg-muted)] transition-colors hover:border-[var(--fb-border-strong)]/40 hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:[(0,v.jsx)(MM,{}),n?u:s]})),H&&(0,v.jsx)("button",{type:"button",onClick:function(){i([]),w(null),requestAnimationFrame(function(){return M(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),x&&U&&(0,v.jsx)(MD,{anchorKey:U,label:$,onClose:function(){return w(null)},children:function(){if(!x)return null;if("add"===x.kind||"field"===x.kind){var e,t,n,i,o,s="field"===x.kind?x.filterId:null,l=new Set(a.filter(function(e){return e.id!==s}).map(function(e){return e.field})),u=r.filter(function(e){return f||!l.has(e.id)}).map(function(e){return{value:e.id,label:e.label,glyph:e.icon}});return(0,v.jsx)(MP,{ariaLabel:$,items:u,multi:!1,onPick:function(e){return"add"===x.kind?R(e):I(x.filterId,e)}},null!=U?U:void 0)}var c=a.find(function(e){return e.id===x.filterId}),d=Mk(r,null!=(e=null==c?void 0:c.field)?e:"");if(!c||!d)return null;if("operator"===x.kind){var p=d.operators.map(function(e){return{value:e.value,label:e.label,selected:e.value===c.operator}});return(0,v.jsx)(MP,{ariaLabel:$,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return _(c.id,e)}},null!=U?U:void 0)}var m=MA(d,c.operator),h=null!=(t=null==m?void 0:m.arity)?t:1;if(0===h)return null;var y=null!=(n=d.type)?n:"select";if("text"===y||"number"===y||"date"===y)return(0,v.jsx)(MC,{inputType:y,arity:h,values:c.values,onCommit:function(e){return F(c.id,e)},ariaLabel:$,rangeLabels:"date"===y?["Du","Au"]:["Min","Max"],placeholder:"text"===y?"Rechercher…":void 0},null!=U?U:void 0);var g=!!(null==m?void 0:m.multi),b=d.loadOptions?C[d.id]:void 0,w=(d.loadOptions?null!=(i=null==b?void 0:b.options)?i:[]:null!=(o=d.options)?o:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,v.jsx)(MP,{ariaLabel:$,items:w,multi:g,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return V(d,e)}:void 0,onRetry:function(){return V(d)},onPick:function(e){return L(c.id,e,g)}},null!=U?U:void 0)}()})]})}function MM(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M6 2.5v7M2.5 6h7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function MR(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function MI(){return(0,v.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M2.5 6.2l2.2 2.3L9.5 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function M_(){return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:"animate-spin",children:[(0,v.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M12.5 7A5.5 5.5 0 0 0 7 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}let ML=MN;var MF={text:[{value:"contains",label:"contient"},{value:"not_contains",label:"ne contient pas"},{value:"equals",label:"est exactement"},{value:"starts_with",label:"commence par"},{value:"is_empty",label:"est vide",arity:0},{value:"is_not_empty",label:"n'est pas vide",arity:0}],number:[{value:"eq",label:"="},{value:"neq",label:"≠"},{value:"gt",label:">"},{value:"gte",label:"≥"},{value:"lt",label:"<"},{value:"lte",label:"≤"},{value:"between",label:"entre",arity:2}],date:[{value:"on",label:"le"},{value:"before",label:"avant le"},{value:"after",label:"apr\xe8s le"},{value:"between",label:"entre",arity:2}],boolean:[{value:"is",label:"est"}],select:[{value:"is",label:"est"},{value:"is_not",label:"n'est pas"},{value:"is_any_of",label:"est l'un de",multi:!0}]},MB=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function MV(e,t){var n=function(e){var n,r;return null!=(n=null==(r=t.find(function(t){return t.field===e}))?void 0:r.values)?n:[]};return e.fields.filter(function(e){return!e.dependsOn||n(e.dependsOn).length>0}).map(function(e){if("boolean"===e.type)return{id:e.id,label:e.label,icon:e.icon,type:"select",operators:null!=(a=e.operators)?a:MF.boolean,options:null!=(i=e.options)?i:MB};var t,r,a,i,o=null!=(t=e.operators)?t:MF[e.type];if("select"!==e.type)return{id:e.id,label:e.label,icon:e.icon,type:e.type,operators:o};var s=e.dependsOn?n(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:s.flatMap(function(t){var n,r;return null!=(n=null==(r=e.optionsByParent)?void 0:r[t])?n:[]})}:e.loadOptions?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:null!=(r=e.options)?r:[]}})}function Mz(e,t){for(var n=t,r=0;r<e.fields.length&&"break"!==function(){var t=!1,r=n.filter(function(r){var a=e.fields.find(function(e){return e.id===r.field});if(!(null==a?void 0:a.dependsOn))return!0;var i=n.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(n=r.map(function(n){var a,i=e.fields.find(function(e){return e.id===n.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return n;var o=r.find(function(e){return e.field===i.dependsOn}),s=new Set((null!=(a=null==o?void 0:o.values)?a:[]).flatMap(function(e){var t,n,r;return null!=(t=null==(r=i.optionsByParent)||null==(n=r[e])?void 0:n.map(function(e){return e.value}))?t:[]})),l=n.values.filter(function(e){return s.has(e)});return l.length!==n.values.length&&(t=!0),l.length===n.values.length?n:Mw(Mx({},n),{values:l})}),!t)return"break"}();r++);return n}function MW(e,t,n){return{fields:g.useMemo(function(){return MV(e,t)},[e,t]),onChange:g.useCallback(function(t){return n(Mz(e,t))},[e,n])}}function MU(e,t,n,r){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(n);case"is_not_empty":return""!==a(n);case"contains":return a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"not_contains":return!a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"starts_with":return a(n).toLowerCase().startsWith(a(r[0]).toLowerCase());case"equals":return a(n).toLowerCase()===a(r[0]).toLowerCase();case"is":return a(n)===r[0];case"is_not":return a(n)!==r[0];case"is_any_of":return r.includes(a(n));case"eq":return Number(n)===Number(r[0]);case"neq":return Number(n)!==Number(r[0]);case"gt":return Number(n)>Number(r[0]);case"gte":return Number(n)>=Number(r[0]);case"lt":return Number(n)<Number(r[0]);case"lte":return Number(n)<=Number(r[0]);case"between":var i=Mj(r,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(n)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(n),f=void 0===o||""===o||d>=Number(o),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(n).slice(0,10)===a(r[0]).slice(0,10);case"before":return new Date(a(n)).getTime()<new Date(r[0]).getTime();case"after":return new Date(a(n)).getTime()>new Date(r[0]).getTime();default:return!0}}function M$(e,t,n,r){return Array.isArray(n)?n.some(function(n){return MU(e,t,n,r)}):MU(e,t,n,r)}function MH(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function MG(e,t,n,r){return t.every(function(t){if(!MH(t.operator,t.values))return!0;var a=n.fields.find(function(e){return e.id===t.field}),i=null==a?void 0:a.type;return M$("boolean"===i||void 0===i?"select":i,t.operator,r(e,t.field),t.values)})}var Mq=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],MY={fields:[{id:"status",label:"Statut",type:"select",options:[{value:"draft",label:"Brouillon"},{value:"published",label:"Publi\xe9"},{value:"archived",label:"Archiv\xe9"}]},{id:"category",label:"Cat\xe9gorie",type:"select",options:[{value:"politique",label:"Politique"},{value:"sport",label:"Sport"},{value:"economie",label:"\xc9conomie"},{value:"culture",label:"Culture"}]},{id:"subcategory",label:"Sous-cat\xe9gorie",type:"select",dependsOn:"category",optionsByParent:{politique:[{value:"national",label:"National"},{value:"international",label:"International"},{value:"institutions",label:"Institutions"}],sport:[{value:"football",label:"Football"},{value:"basketball",label:"Basketball"},{value:"athletisme",label:"Athl\xe9tisme"}],economie:[{value:"marches",label:"March\xe9s"},{value:"entreprises",label:"Entreprises"},{value:"emploi",label:"Emploi"}],culture:[{value:"musique",label:"Musique"},{value:"cinema",label:"Cin\xe9ma"},{value:"litterature",label:"Litt\xe9rature"}]}},{id:"tags",label:"Tags",type:"select",loadOptions:function(e){return new Promise(function(t){window.setTimeout(function(){var n=e.trim().toLowerCase();t(Mq.filter(function(e){return e.toLowerCase().includes(n)}).map(function(e){return{value:e,label:e}}))},350)})}},{id:"title",label:"Titre",type:"text"},{id:"views",label:"Vues",type:"number"},{id:"publishedAt",label:"Date de publication",type:"date"},{id:"featured",label:"\xc0 la une",type:"boolean"}]},MK=[{id:"1",title:"Le budget 2027 d\xe9voil\xe9 \xe0 l'Assembl\xe9e",status:"published",category:"politique",subcategory:"national",tags:["budget","\xe9lections"],views:4300,publishedAt:"2026-09-02",featured:!0},{id:"2",title:"Sommet r\xe9gional sur le climat \xe0 Libreville",status:"published",category:"politique",subcategory:"international",tags:["climat","diplomatie"],views:2100,publishedAt:"2026-08-20",featured:!1},{id:"3",title:"Les Panth\xe8res qualifi\xe9es pour la CAN",status:"published",category:"sport",subcategory:"football",tags:["football"],views:9800,publishedAt:"2026-09-10",featured:!0},{id:"4",title:"R\xe9forme du syst\xe8me \xe9ducatif : ce qui change",status:"draft",category:"politique",subcategory:"institutions",tags:["\xe9ducation"],views:120,publishedAt:"2026-09-15",featured:!1},{id:"5",title:"Les march\xe9s locaux r\xe9sistent \xe0 l'inflation",status:"published",category:"economie",subcategory:"marches",tags:["budget"],views:1560,publishedAt:"2026-07-30",featured:!1},{id:"6",title:"Festival de musique urbaine \xe0 Port-Gentil",status:"published",category:"culture",subcategory:"musique",tags:[],views:870,publishedAt:"2026-09-05",featured:!1},{id:"7",title:"Nouvelle campagne de vaccination lanc\xe9e",status:"published",category:"politique",subcategory:"national",tags:["sant\xe9"],views:3400,publishedAt:"2026-06-18",featured:!1},{id:"8",title:"Championnat national de basketball : bilan",status:"archived",category:"sport",subcategory:"basketball",tags:[],views:640,publishedAt:"2026-05-02",featured:!1}];function MZ(e,t){switch(t){case"status":return e.status;case"category":return e.category;case"subcategory":return e.subcategory;case"tags":return e.tags;case"title":return e.title;case"views":return e.views;case"publishedAt":return e.publishedAt;case"featured":return e.featured;default:return}}var MX={contains:"icontains",not_contains:"icontains",equals:"iexact",starts_with:"istartswith",is_empty:"isnull",is_not_empty:"isnull",eq:"exact",neq:"exact",gt:"gt",gte:"gte",lt:"lt",lte:"lte",on:"exact",before:"lt",after:"gt",is:"exact",is_not:"exact",is_any_of:"in"};function MQ(){var e=Mj(g.useState([]),2),t=e[0],n=MW(MY,t,e[1]),r=n.fields,a=n.onChange,i=g.useMemo(function(){return MK.filter(function(e){return MG(e,t,MY,MZ)})},[t]),o=g.useMemo(function(){return function(e){var t=new URLSearchParams,n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l,u=i.value;if(MH(u.operator,u.values)){if("between"===u.operator){var c=Mj(u.values,2),d=c[0],f=c[1];d&&t.append("".concat(u.field,"__gte"),d),f&&t.append("".concat(u.field,"__lte"),f);continue}if("is_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"true");continue}if("is_not_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"false");continue}var p=null!=(s=MX[u.operator])?s:"exact",m="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),m)}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t.toString()}(t)},[t]);return(0,v.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,v.jsx)(MN,{fields:r,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,v.jsxs)("ul",{className:"flex flex-col gap-2",children:[i.map(function(e){return(0,v.jsxs)("li",{className:"rounded-md border border-[var(--fb-border)] px-3 py-2 text-[13px] text-[var(--fb-fg)]",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,v.jsx)("span",{className:"font-medium",children:e.title}),e.featured&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]",children:"★ \xe0 la une"})]}),(0,v.jsxs)("div",{className:"mt-0.5 text-[12px] text-[var(--fb-fg-muted)]",children:[e.category," / ",e.subcategory," \xb7 ",e.views," vues \xb7 ",new Date(e.publishedAt).toLocaleDateString()]})]},e.id)}),0===i.length&&(0,v.jsx)("li",{className:"rounded-md border border-dashed border-[var(--fb-border)] px-3 py-4 text-center text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun article ne correspond \xe0 ces filtres."})]}),(0,v.jsxs)("details",{className:"text-[12px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)("summary",{className:"cursor-pointer select-none",children:"Voir l'\xe9tat brut (\xe0 des fins p\xe9dagogiques)"}),(0,v.jsx)("p",{className:"mt-2",children:"\xc9tat `filters` produit par <FilterBar> :"}),(0,v.jsx)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:JSON.stringify(t,null,2)}),(0,v.jsx)("p",{className:"mt-2",children:"Query string \xe9quivalente (convention django-filter) :"}),(0,v.jsxs)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:["?",o||"(aucun filtre actif)"]})]})]})}var MJ=OK("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),M0=OK("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),M1=OK("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),M2=OK("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),M3=OK("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),M5=OK("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);function M4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M6(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M4(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M8(e){var t,n=e.currentCategory,r=e.onSelectCategory,a=e.sortOption,i=e.onSelectSort,o=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=M6((0,g.useState)(!1),2),d=c[0],f=c[1],p=M6((0,g.useState)(!1),2),m=p[0],h=p[1],y=[{id:"all",label:"Tout",icon:(0,v.jsx)(O6,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,v.jsx)(kc,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,v.jsx)(MJ,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,v.jsx)(M0,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,v.jsx)(M1,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,v.jsx)(M2,{className:"w-3.5 h-3.5"})}],b=[{id:"recent",label:"Plus r\xe9cents"},{id:"oldest",label:"Plus anciens"},{id:"name_asc",label:"Nom A → Z"},{id:"name_desc",label:"Nom Z → A"},{id:"items_count",label:"Nombre d’\xe9l\xe9ments"}],x=(null==(t=b.find(function(e){return e.id===a}))?void 0:t.label)||"Plus r\xe9cents";return(0,v.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2.5 py-1 relative z-20",children:[(0,v.jsx)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:pb-0 scrollbar-none w-full sm:w-auto",children:y.map(function(e){var t=n===e.id;return(0,v.jsxs)("button",{onClick:function(){return r(e.id)},className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold whitespace-nowrap transition-all duration-200 cursor-pointer ".concat(t?"bg-emerald-500/25 text-white border border-emerald-400/80 shadow-[0_0_12px_rgba(16,185,129,0.3)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]":"bg-transparent text-white/70 hover:text-white hover:bg-white/5 border border-white/10 hover:border-white/20 drop-shadow-[0_1px_1px_rgba(0,0,0,0.8)]"),children:[(0,v.jsx)("span",{className:t?"text-emerald-400":"text-white/60",children:e.icon}),(0,v.jsx)("span",{children:e.label})]},e.id)})}),(0,v.jsxs)("div",{className:"flex items-center justify-between sm:justify-end gap-1.5 sm:gap-2 w-full sm:w-auto mt-0.5 sm:mt-0",children:[(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){f(!d),h(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Tri :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[70px] sm:max-w-none",children:x})]}),(0,v.jsx)(M3,{className:"w-3 h-3 text-white/50 shrink-0"})]}),d&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-44 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:b.map(function(e){return(0,v.jsx)("button",{onClick:function(){i(e.id),f(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(a===e.id?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e.label},e.id)})})]}),(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){h(!m),f(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Type :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[60px] sm:max-w-none",children:l})]}),(0,v.jsx)(M3,{className:"w-3 h-3 text-white/50 shrink-0"})]}),m&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-36 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:["Tous","Dossiers","Documents","Images","Vid\xe9os","Archives"].map(function(e){return(0,v.jsx)("button",{onClick:function(){u(e),h(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(l===e?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e},e)})})]}),(0,v.jsxs)("div",{className:"flex items-center p-0.5 rounded-lg bg-black/20 border border-white/10 shrink-0",children:[(0,v.jsx)("button",{onClick:function(){return s("grid")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("grid"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Grille",children:(0,v.jsx)(M5,{className:"w-3.5 h-3.5"})}),(0,v.jsx)("button",{onClick:function(){return s("list")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("list"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Liste",children:(0,v.jsx)(TZ,{className:"w-3.5 h-3.5"})})]})]})]})}},5923(e,t,n){"use strict";n.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var r=n(2974),a=n(240),i=n(2298),o=n(345),s=n(9405);function l(e){let t,n="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,(0,r.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,i.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#t;constructor(e=0,t=0,n=0,a=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,i.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,n,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,i.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,n){"use strict";n.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>i});var r=n(5923),a=n(5504);function i(e,t,n,r){let a=(t=s(e,t))-1,i=-2;return n<=2?i=0:o(t)&&(i=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+i+r)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class c{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),u=Math.floor(s/36524),c=(0,a.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,a.z)(c,1461)/365),[p,m]=l(400*n+100*u+4*d+f+ +(4!==u&&4!==f)),h=e-i(p,m,1,1),y=2;e<i(p,m,3,1)?y=0:o(m)&&(y=1);let v=Math.floor(((h+y)*12+373)/367),g=e-i(p,m,v,1)+1;return new(0,r.ng)(p,m,v,g)}toJulianDay(e){return i(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,n){"use strict";n.d(t,{Ou:()=>w,Tr:()=>f,Yd:()=>m,ay:()=>p,cd:()=>b,gw:()=>h,oU:()=>s,tR:()=>y,uB:()=>g,yP:()=>v});var r=n(5923),a=n(2974),i=n(345),o=n(240);function s(e){return e=v(e,new(0,i.FG)),l((0,i.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:i,minute:s,second:u}=d(e,t);return l(n,r,a,i,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let n=c.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function f(e,t,n="compatible"){var r,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===n&&!(0,o.rS)()){c=v(c,new(0,i.FG));let e=new Date,t=(0,i.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),m=u(p-864e5,t),h=u(p+864e5,t),g=(r=c,((a=p-m)==(l=p-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===g.length)return g[0];if(g.length>1)switch(n){case"compatible":case"earlier":return g[0];case"later":return g[g.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(p-m,p-h);case"compatible":case"later":return Math.max(p-m,p-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,n="compatible"){return new Date(f(e,t,n))}function m(e,t){let n=u(e,t),a=new Date(e+n),i=a.getUTCFullYear(),o=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,r.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,l,c,d,f)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let n=0,a=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:i,millisecond:o}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,i,o)}function v(e,t){if((0,o.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function g(e,t,n){return e instanceof r.Ip?e.timeZone===t?e:x(e,t):m(f(e,t,n),t)}function b(e){return new Date(s(e)-e.offset)}function x(e,t){return v(m(s(e)-e.offset,t),e.calendar)}function w(e){return x(e,(0,o.Xj)())}},227(e,t,n){"use strict";let r,a;n.d(t,{d:()=>K});var i=n(5923),o=n(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,o.LA)(t.era,t.year);return new(0,i.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,o.f5)(e.year+-543);return new(0,i.ng)(t,n,e.month,e.day)}function u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c(e,t){let n=Math.floor(4*(t-e)/1461);t>=u(e,n+1,1,1)&&n++;let r=1+Math.floor((t-u(e,n,1,1))/30),a=t+1-u(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,n,r]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends p{fromJulianDay(e){let[t,n,r]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends p{fromJulianDay(e){let[t,n,r]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=n(5504);let v=765433;function g(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(n+1),7)&&(n+=1),n}function x(e){let t,n;return b(e)+(t=b(e-1),n=b(e),b(e+1)-n==356?2:+(n-t==382))}function w(e){return x(e+1)-x(e)}function j(e,t){if(t>=6&&!g(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=w(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!g(e):30}class S{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/v*19+234)/235)+1,r=x(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=x(--n)));let o=1,s=0;for(;s<a;)s+=j(n,o),o++;let l=a-(s-=j(n,--o));return new(0,i.ng)(this,n,o,l)}toJulianDay(e){let t=x(e.year);for(let n=1;n<e.month;n++)t+=j(e.year,n);return t+e.day+347997}getDaysInMonth(e){return j(e.year,e.month)}getMonthsInYear(e){return g(e.year)?13:12}getDaysInYear(e){return w(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(g(t.year)&&!g(e.year)&&t.month>6?e.month--:!g(t.year)&&g(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class E extends o.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,o.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(a.year-1)?31:30)+155+90+10):(t=(0,o.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,i.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,i]=(0,o.f5)(r);return((0,o.U_)(i)?(t=31,n=(0,o.rG)(a,i,3,21)):(t=30,n=(0,o.rG)(a,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function k(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+O(t,r,1,1)))/29.5)+1),o=n-O(t,r,a,1)+1;return new(0,i.ng)(e,r,a,o)}function A(e){return(14+11*e)%30<11}class D{fromJulianDay(e){return k(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&A(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return A(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class P extends D{fromJulianDay(e){return k(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function C(e){return 460322+a[e-1300]}function T(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let n=C(e);for(let r=1;r<t;r++)n+=T(e,r);return n}function M(e){return a[e+1-1300]-a[e-1300]}class R extends D{constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=T(t,n)}}}fromJulianDay(e){let t=e-1948440,n=C(1300),r=C(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-C(++e)+1;let a=M(e);if(r===a){n=12;break}if(r<a){let t=T(e,n);for(n=1;r>t;)r-=t,t=T(e,++n);break}}return new(0,i.ng)(this,e,n,t-N(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+N(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):T(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):M(e.year)}}let I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],L=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function B(e){let t=I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?I.length-1:0===t?0:t-1}function V(e){let t=L[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,i.ng)(e.year+t,e.month,e.day)}class z extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=B(t);return new(0,i.ng)(this,F[n],t.year-L[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(V(e))}balanceDate(e){let t=V(e),n=B(t);F[n]!==e.era&&(e.era=F[n],e.year=t.year-L[n]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),n=_[t];if(null!=n){let[r,a,i]=n,o=r-L[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),n=I[t],r=I[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(V(e))}getMinimumMonthInYear(e){let t=W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function W(e){if(1===e.year)return I[F.indexOf(e.era)]}let U=[0,31,62,93,124,155,186,216,246,276,306,336];class ${fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-U[a]+1;return new(0,i.ng)(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=U[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=G((0,o.LA)(t.era,t.year));return new(0,i.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=G(H(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,o.f5)(H(e));return new(0,i.ng)(t,n,e.month,e.day)}function K(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new S;case"indian":return new E;case"islamic-civil":return new D;case"islamic-tbla":return new P;case"islamic-umalqura":return new R;case"japanese":return new z;case"persian":return new $;case"roc":return new q;default:return new(0,o.FG)}}},2974(e,t,n){"use strict";n.d(t,{AU:()=>u,D8:()=>O,E0:()=>j,Rb:()=>m,Re:()=>d,WQ:()=>i,XH:()=>E,YP:()=>g,d_:()=>S,gt:()=>x,hZ:()=>f,ib:()=>p,tY:()=>v,xy:()=>b});var r=n(9405),a=n(345);function i(e,t){let n=e.copy(),r="hour"in n?y(n,t):0;o(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let i=n.calendar.getMonthsInYear(n);return n.month>i&&(n.month=i,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return i(e,c(t))}function f(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),u(n),n}function p(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function h(e,t){let n=e%t;return n<0&&(n+=t),n}function y(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function v(e,t){let n=e.copy();return y(n,t),n}function g(e,t){return v(e,c(t))}function b(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=w(i,n,0,t.length-1,r?.round),a.era=t[i],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=w(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=w(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=w(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function x(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(r?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=w(t,n,i,o,r?.round);break}case"minute":a.minute=w(e.minute,n,0,59,r?.round);break;case"second":a.second=w(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=w(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function w(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function j(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=i((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function S(e,t){return j(e,c(t))}function E(e,t,n,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let n=e.hour>=12;t=12*!!n,o=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],c=(0,r.yP)(p(s,{hour:o}),new(0,a.FG)),d=[(0,r.Tr)(c,e.timeZone,"earlier"),(0,r.Tr)(c,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,r.oU)(e)-e.offset,m=Math.floor(f/36e5),h=f%36e5;return f=36e5*w(m,n,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+h,(0,r.yP)((0,r.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x(e,t,n,i);case"era":case"year":case"month":case"day":{let a=b((0,r.tR)(e),t,n,i),o=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,n){let a=(0,r.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,r.Tr)(i,e.timeZone,n);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}},240(e,t,n){"use strict";n.d(t,{p9:()=>w,$I:()=>E,RZ:()=>A,tB:()=>f,rS:()=>b,kq:()=>S,Jg:()=>l,Py:()=>D,tF:()=>o,Xj:()=>g,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>i,D:()=>j,ZI:()=>P,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>x});var r=n(9405);let a={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function i(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,r.yP)(t,e.calendar),e=x(e),t=x(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&i(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return i(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?c[n]:function(e){let t=k.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return k.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&a[n]||0};k.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function f(e){return(0,r.Yd)(Date.now(),e)}function p(e){return(0,r.gw)(f(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let v=null;function g(){return null==v&&(v=new Intl.DateTimeFormat().resolvedOptions().timeZone),v}function b(){return!1}function x(e){return e.subtract({days:e.day-1})}function w(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function j(e){return x(e.subtract({months:e.month-1}))}function S(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function E(e,t,n){return S(e,t,n).add({days:6})}let O=new Map,k=new Map;function A(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(x(e),t,n)+r)/7)}function D(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function P(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>h,ot:()=>f,qk:()=>m});var r=n(5923),a=n(9405),i=n(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let n=new(0,r.ng)(d(t[1],0,9999),d(t[2],1,12),1);return n.day=d(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let n=d(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return a.day=d(t[3],0,a.calendar.getDaysInMonth(a)),a}function d(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function f(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function p(e){let t,n=(0,a.yP)(e,new(0,i.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function m(e){return`${p(e)}T${f(e)}`}function h(e){var t;let n,r,a,i,o;return`${m(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},99(e,t,n){"use strict";n.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var r=n(9726),a=n(5565),i=n(8048);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",r=arguments.length>2?arguments[2]:void 0;return s(function(){var a,i,o,s,d,p,m;return u(this,function(u){switch(u.label){case 0:return a=(null==r?void 0:r.maxLoadingTime)&&!(r.maxLoadingTime<=0)?r.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==r?void 0:r.importMap),new Promise(function(t,n){i=setTimeout(function(){var t;n(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=a)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},a)})])];case 1:var h;if(u.sent(),i&&clearTimeout(i),o=c(e),!((void 0===(h=s=window[o])?"undefined":l(h))==="object"&&null!==h&&"init"in h&&"function"==typeof h.init&&"get"in h&&"function"==typeof h.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(n.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(m="Container for ".concat(e," did not return an ESM module as expected")),Error(m);return[2,p]}})})()}function f(e,t){return s(function(){var n,o,s,l,d,f,h;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(n=c(e),window[n])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,i.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,n){var r,a,i,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[m];if(s||(s=window[m]=new Set([])),o)s.has(e)?(i=function(){r&&o.removeEventListener("load",r),a&&o.removeEventListener("error",a)},r=function(){i(),t(null)},a=function(e){i(),n(e.message)},o.addEventListener("load",r),o.addEventListener("error",a)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var r,a="Failed to load script from ".concat(e);console.error(a,t),n(null!=(r=t.message)?r:a)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return h=u.sent(),f&&(0,r.Vt)({kind:"error",title:(0,a.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,a.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,a.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,i.w_)(),window.location.reload()}}),[2,Promise.reject(h)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,i.F$)()]})})()}var m=Symbol("__egen_script_loading")},8048(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,l,"next",e)}function l(e){r(o,a,i,s,l,"throw",e)}s(void 0)})}}function i(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}n.d(t,{BX:()=>S,E:()=>w,F$:()=>m,SM:()=>O,fd:()=>x,o5:()=>y,q1:()=>b,tK:()=>h,uT:()=>v,w_:()=>j,xI:()=>g});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return a(function(){var e,t,n,r,a,o,s;return i(this,function(i){switch(i.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],n=0,i.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],i.label=2;case 2:if(i.trys.push([2,7,,8]),!r.src)return[3,5];return[4,fetch(r.src)];case 3:return a=i.sent(),o=t.push,[4,a.json()];case 4:return o.apply(t,[i.sent()]),[3,6];case 5:r.textContent&&t.push(JSON.parse(r.textContent)),i.label=6;case 6:return[3,8];case 7:return s=i.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(n),s),[3,8];case 8:return n++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function p(){var e={};try{for(var t=g(),n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=r.slice(o.length);if(!t.includes(a)){var i=localStorage.getItem(r);i&&(e[a]=i)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function m(){return a(function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function h(){return a(function(){return i(this,function(e){return[2,d()]})})()}function y(){return a(function(){return i(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function v(e){if(!u)return{imports:{}};if(e){for(var t={},n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=localStorage.getItem(r);a&&(t[r.slice(o.length)]=a)}}return{imports:t}}return p()}function g(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&g().includes(e)}function x(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function w(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=g().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function j(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(o))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function S(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=g().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var E=!1;function O(){!E&&(E=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,n){"use strict";n.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>j,SM:()=>a.SM,zU:()=>v,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>g,Yv:()=>r.Yv,tK:()=>a.tK,Ln:()=>r.Ln,FM:()=>y,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>x,KI:()=>w,rL:()=>r.rL,WY:()=>b,F$:()=>a.F$,zC:()=>r.zC,_m:()=>E,q1:()=>a.q1,uT:()=>a.uT});var r=n(99),a=n(8048),i=n(2235);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,n,r,a,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],n=0,s.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!r.src)return[3,5];return[4,fetch(r.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:r.textContent&&(a=JSON.parse(r.textContent)),s.label=6;case 6:return a&&(0,i.S)(a)&&t.push(a),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(n),o),[3,8];case 8:return n++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function h(){return s(function(){var e,t,n,r,a,o,c,d,f,p,m,h;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],n=0;n<localStorage.length;n++)(null==(r=localStorage.key(n))?void 0:r.startsWith(u))&&(a=localStorage.getItem(r))&&t.push({moduleName:r.slice(u.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,n=e.raw;return s(function(){var e,r;return l(this,function(a){switch(a.label){case 0:if(e=JSON.parse(n),(0,i.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,a.sent().json()];case 2:if(r=a.sent(),(0,i.j)(r))return[2,{moduleName:t,routes:r}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(m=p.next()).done);c=!0)h=m.value,"fulfilled"===h.status?e[h.value.moduleName]=h.value.routes:console.warn("[route-maps] Failed to load route override",h.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(n){switch(n.label){case 0:return[4,p()];case 1:if(e=n.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,h()];case 3:t=n.sent(),n.label=4;case 4:return[2,m([e,t])]}})})()}function v(){return s(function(){return l(this,function(e){return[2,p()]})})()}function g(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,h()];case 2:return[2,m.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(null==n?void 0:n.startsWith(u)){var r=localStorage.getItem(n);r&&(e[n.slice(u.length)]=r)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function x(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var n,r=JSON.parse(t);if(!(0,i.j)(r))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(r))}else if(n=URL,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,i.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function w(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function j(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(u))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var S=null;function E(){return S||(S=(d="development"===window.spaEnv)?h().then(function(e){f=e}):Promise.resolve())}},8507(e,t,n){"use strict";n.d(t,{J:()=>i,N:()=>a});var r=n(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var n=o(t);n.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(e){var t,n;if(null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,n){"use strict";n.d(t,{dX:()=>r.dX,wE:()=>r.wE,_3:()=>r._3,uN:()=>r.uN,$F:()=>r.$F,Gz:()=>r.Gz,eb:()=>r.eb,Sj:()=>r.Sj,mv:()=>r.mv,yp:()=>l,PQ:()=>r.PQ});var r=n(6014),a=n(4356),i=n(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,n={globals:s({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,n),function(e){if(Array.isArray(e))return o(e)}(t=n.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return n=e,r=t,u(n.argument,r);case"BinaryExpression":return a=e,i=t,[u(a.left,i),u(a.right,i)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,m=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),m;case"ArrowFunctionExpression":return function(e,t){var n=s({},t);n.isLocalExpression=!0;var r=null!=(d=null==(p=e.params)?void 0:p.map(c(n)))?d:[],a=null!=(f=u(e.body,n))?f:[];if(a&&Array.isArray(a)){var i=!0,o=!1,l=void 0;try{for(var d,f,p,m,h=a[Symbol.iterator]();!(i=(m=h.next()).done);i=!0){var y=m.value;r.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{i||null==h.return||h.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return h=e,y=t,u(h.object,y),void((v=s({},y)).isLocalExpression=!0,u(h.property,v));case"ArrayExpression":return g=e,b=t,void(null==(x=g.elements)||x.map(c(b)));case"SequenceExpression":return w=e,j=t,void(null==(S=w.expressions)||S.map(c(j)));case"NewExpression":return E=e,O=t,void(null==(k=E.arguments)||k.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var n,r,a,i,o,l,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O,k,A,D,P,C,T=e,N=t;if(!(T.name in N.globals))if(N.isLocalExpression)return T.name;else N.variables.add(T.name);return;case"TemplateLiteral":return A=e,D=t,void(null==(P=A.expressions)||P.map(c(D)),null==(C=A.quasis)||C.map(c(D)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,n){"use strict";n.r(t),n.d(t,{ASSISTANT_MODES:()=>g.wJ8,ActionMenu:()=>g.WyE,ActionMenuButton:()=>g.EDM,ActionMenuButton2:()=>g.Wjo,ActionableNotificationComponent:()=>g.drd,ActivityIcon:()=>g.npY,AddIcon:()=>g.REV,AllergiesIcon:()=>g.UgN,AnimatedHomeBackground:()=>g.BpM,AppointmentsAltPictogram:()=>g.MnZ,AppointmentsPictogram:()=>g.B1u,ArrowDownIcon:()=>g.ZLN,ArrowLeftIcon:()=>g.A60,ArrowRightIcon:()=>g.flY,ArrowUpIcon:()=>g.Kpk,Assessment1Pictogram:()=>g.IHy,Assessment2Pictogram:()=>g.$iy,AsyncSelect:()=>g.DWK,AttachmentIcon:()=>g.PtA,Autocomplete:()=>g.jT8,BabyIcon:()=>g.qYP,BloodBankPictogram:()=>g.nvs,Breakpoint:()=>g.EA,CalendarHeatMapIcon:()=>g.mmM,CalendarIcon:()=>g.CTc,CardHeader:()=>g.aRn,CardModal:()=>g.oVc,CardModalWarpGlow:()=>g.F$l,CardiologyPictogram:()=>g.uU$,CaretDownIcon:()=>g.bDP,CaretLeftIcon:()=>g.eCO,CaretRightIcon:()=>g.JJd,CaretUpIcon:()=>g.SwV,Carousel:()=>g.FNf,CarouselContext:()=>g.Ycj,CascadingNavDropdown:()=>g._PX,ChartAverageIcon:()=>g.ZHE,ChartLineIcon:()=>g.SCH,CheckmarkFilledIcon:()=>g.FtQ,CheckmarkOutlineIcon:()=>g.pm$,ChemistryIcon:()=>g.W4t,ChevronDownIcon:()=>g.D3D,ChevronLeftIcon:()=>g.YJP,ChevronRightIcon:()=>g.vKP,ChevronUpIcon:()=>g.Mtm,CircularGallery:()=>g.GF9,ClassificationTags:()=>g.QpY,CloseFilledIcon:()=>g.oCk,CloseIcon:()=>g.USm,CloseOutlineIcon:()=>g.Wdn,ColumnWithSearch:()=>g.Fny,Combobox:()=>g.G3_,ConditionsIcon:()=>g.ci3,ContentSection:()=>g.Fe_,CtScanPictogram:()=>g.DeE,CustomOverflowMenu:()=>g.TQT,CustomOverflowMenuItem:()=>g.cxd,DEFAULT_BOOLEAN_OPTIONS:()=>g.ofx,DEFAULT_OPERATORS:()=>g.whL,DEFAULT_ZONE_SIZES:()=>g.AnT,DecoratedCard:()=>g.mqB,DefaultPageBackground:()=>g.NOx,DentistryPictogram:()=>g.TNY,DocumentAttachmentIcon:()=>g.Ce6,DocumentIcon:()=>g.pyG,DocumentToolbar:()=>g.PAB,DownloadIcon:()=>g.s3U,DrugOrderIcon:()=>g.uqj,DynamicField:()=>g.koC,EditIcon:()=>g.qUP,EgenDatePicker:()=>g.O_s,EgenDateRangePicker:()=>g.tKr,EmergencyDepartmentPictogram:()=>g.sgv,EmptyCard:()=>g.slS,EmptyCardIllustration:()=>g.Ua6,EntityBannerActionsMenu:()=>g.M9T,EntityBannerContactDetails:()=>g.EGc,EntityBannerEntityIdentifiers:()=>g.teX,EntityBannerEntityInfo:()=>g.Zpy,EntityDetailBrowser:()=>g.NIm,EntityPhoto:()=>g.Klm,ErrorCard:()=>g.JrA,ErrorState:()=>g.W5n,EventScheduleIcon:()=>g.XaH,EventsIcon:()=>g.Jc,FacilityPictogram:()=>g.ECF,FilterBar:()=>g.Qnn,FilterBarDefault:()=>g.vNL,FilterBarDemo:()=>g.RJr,FolderGallery:()=>g.fNA,GenderFemaleIcon:()=>g.XB2,GenderMaleIcon:()=>g.szA,GenderOtherIcon:()=>g.hXZ,GenderUnknownIcon:()=>g.x1U,GenericOrderTypeIcon:()=>g.naI,GeriatricsPictogram:()=>g.SQq,GlobalPageBackground:()=>g.Nqf,GradientBlur:()=>g.wtE,GradientWave:()=>g.GcC,GroupAccessIcon:()=>g.Pyy,GroupIcon:()=>g.nFg,GynaecologyPictogram:()=>g.owH,HeroMosaic:()=>g.LdX,HeroTileCard:()=>g.b6Z,HomePictogram:()=>g.KKH,HospitalBedIcon:()=>g.jMM,Icon:()=>g.Int,ImageMedicalIcon:()=>g.Ix5,ImageSwiper:()=>g.QeH,InPatientPictogram:()=>g.thS,InformationFilledIcon:()=>g._e_,InformationIcon:()=>g.uQc,InformationSquareIcon:()=>g.ZrL,InteractiveSelector:()=>g.wmT,InventoryManagementIcon:()=>g.vFG,LabOrderIcon:()=>g.hi6,LaboratoryPictogram:()=>g.ehn,Labs2Pictogram:()=>g.rpF,LayoutGrid:()=>g.D6i,LeftRail:()=>g.pkp,LiquidGlassCard:()=>g.lok,ListCheckedIcon:()=>g.Rt$,LiveOrb:()=>g.AFR,Loader:()=>g.aHM,LocationIcon:()=>g.BT6,LocationPicker:()=>g.MTs,MORPH_SELECT_DEFAULT_TRANSITION:()=>g.AOq,MaterialOrderIcon:()=>g.zZ0,MaximizeIcon:()=>g._Xm,MaybeIcon:()=>g.oy0,MaybePictogram:()=>g.bmf,MedicationIcon:()=>g.Fnj,MenuToggleButton:()=>g.qLc,MessageQueueIcon:()=>g.uFu,MicroscopeIcon:()=>g.u4h,MoneyIcon:()=>g.yBj,MorphSelect:()=>g.NGl,MorphSelectContent:()=>g.EiO,MorphSelectItem:()=>g.iRo,MorphSelectTrigger:()=>g.PK0,MorphSelectValue:()=>g.qXl,MotherIcon:()=>g.XEq,MovementIcon:()=>g.lyJ,NAV_ALL_WORKSPACES:()=>c.Xr,Notification:()=>g.Eg0,NumericDataPoint:()=>g.YiA,ObstetricsPictogram:()=>g.Bk2,OverflowMenuHorizontalIcon:()=>g.rv3,OverflowMenuVerticalIcon:()=>g.Rnm,PageBackground:()=>g.Kz$,PageBackgroundProvider:()=>g.z0Y,PageHeader:()=>g.zYs,PageHeaderContent:()=>g.gpz,Pagination:()=>g.dKS,PasswordIcon:()=>g.BGy,PatientListsPictogram:()=>g.$2H,PatientSearchPictogram:()=>g.cxq,PatientsPictogram:()=>g.X25,PaymentsDeskPictogram:()=>g.dNG,PedestrianFamilyIcon:()=>g.PPo,PenIcon:()=>g.rZj,Pharmacy2Pictogram:()=>g.Q92,PharmacyPictogram:()=>g.w21,Pictogram:()=>g.bF1,PrinterIcon:()=>g.wwY,ProcedureOrderIcon:()=>g.H0x,ProgramsIcon:()=>g.lq$,PromptInput:()=>g.Plc,RECURSIVE_EROSION_DEFAULTS:()=>g.Km0,RadiologyIcon:()=>g.SA3,RecursiveErosionBackground:()=>g.OoY,ReferralOrderIcon:()=>g.tCH,RegistrationPictogram:()=>g.et7,RenewIcon:()=>g.JTN,ReportIcon:()=>g.cQD,ResetIcon:()=>g.NAP,ResponsiveWrapper:()=>g.KFv,RightRail:()=>g.Bic,SECTION_CARD_CLASS:()=>g.YpM,SHELL_RAIL_BOTTOM_SLOT:()=>c.R6,SHELL_RAIL_LEFT_SLOT:()=>c.p$,SHELL_RAIL_RIGHT_SLOT:()=>c.SW,STICKY_VARS:()=>g.Ddn,SaveIcon:()=>g.LPu,SearchIcon:()=>g.WIv,Section:()=>g.wn6,SectionAction:()=>g.SnF,SectionBody:()=>g.iq0,SectionCard:()=>g.ivh,SectionCardTitleButton:()=>g.Q5Y,SectionDivider:()=>g.nBS,SectionFooter:()=>g.lFh,SectionGrid:()=>g.KGd,SectionHeader:()=>g.X3I,SectionNavPanel:()=>g.frg,SectionSlot:()=>g.y0l,Select:()=>g.l6P,SelectContent:()=>g.gCo,SelectContext:()=>g.CW5,SelectTrigger:()=>g.bqE,ServiceQueuesPictogram:()=>g.Y21,SettingsIcon:()=>g.Zes,Sheet:()=>g.cjw,SheetClose:()=>g.kNS,SheetContent:()=>g.hae,SheetContext:()=>g.P8U,SheetDescription:()=>g.Qsg,SheetFooter:()=>g.XWC,SheetHeader:()=>g.Fm9,SheetOverlay:()=>g.YP7,SheetPortal:()=>g.yde,SheetRoot:()=>g.KId,SheetTitle:()=>g.qpM,SheetTrigger:()=>g.CGR,ShoppingCartAddItemIcon:()=>g.Uve,ShoppingCartArrowDownIcon:()=>g.Lfm,ShoppingCartIcon:()=>g.aJF,SiteActivityPanel:()=>g.Xac,SiteApplicationsPanel:()=>g.pyx,SiteBanner:()=>g.cBB,SiteCarousel:()=>g.aiS,SiteMembersPanel:()=>g.tyG,SitePanelHeader:()=>g.Xhy,SiteResourcesPanel:()=>g.Nvq,SiteSearchBar:()=>g.ttj,SiteSettingsPanel:()=>g.rmb,SiteTabbedLayout:()=>g.eFc,SiteTasksPanel:()=>g.SLu,Slider:()=>g.Apm,SliderContainer:()=>g.Jbi,SliderDotButton:()=>g.vY7,Snackbar:()=>g.qb_,SplineScene:()=>g.C44,Splitter:()=>g.O3W,StaggeredMenuPanel:()=>g._kB,StickyNoteAddIcon:()=>g.OC$,StockManagementPictogram:()=>g.q__,SwitcherIcon:()=>g.RFy,SyringeIcon:()=>g.hZg,TOOL_WINDOW_HEADER_ATTRIBUTE:()=>g.lHJ,TOOL_WINDOW_SLOTS:()=>c.As,TOPBAR_LEVEL2_NAV_SLOT:()=>c.H9,TableBatchActions:()=>g.GGC,TableIcon:()=>g.KbA,TableOfContentsIcon:()=>g.pYV,TestimonialCard:()=>g._f_,TestimonialCardStack:()=>g.uDL,ThumbsSlider:()=>g.BM2,TimeIcon:()=>g.b1c,Toast:()=>g.y8,ToolWindowHeader:()=>g.ICb,ToolWindowZone:()=>g.p4K,ToolsIcon:()=>g.dwU,TopBar:()=>g.Vsm,TopBarAvatar:()=>g.mIk,TopBarDivider:()=>g.AA7,TopBarIconButton:()=>g.gFP,TransferPictogram:()=>g.SKX,TranslateIcon:()=>g.SwB,TrashCanIcon:()=>g.EJV,TreeViewAltIcon:()=>g.MO4,TriagePictogram:()=>g.XHu,UserAvatarIcon:()=>g.yDT,UserFollowIcon:()=>g.osL,UserIcon:()=>g.nys,UserXrayIcon:()=>g.feL,ViewIcon:()=>g.tCQ,ViewOffIcon:()=>g.Oi_,WORKBENCH_ICONS:()=>g.BDu,WORKBENCH_STORAGE_KEY:()=>g.gHx,WarningIcon:()=>g.id,WaterGlassModal:()=>g.BIq,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>g.ozP,WorkspaceContainer:()=>g.XvC,WorkspaceNotification:()=>g.tMf,XrayPictogram:()=>g.B2u,ZONE_ANCHORS:()=>g.c0o,activateOfflineCapability:()=>m.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>x.KW,ageAsDuration:()=>x.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>m.FO,buildFilterFields:()=>g.mOW,canAccessStorage:()=>x._g,canBeginEditSynchronizationItemsOfType:()=>m.xN,canCloseWorkspaceWithoutPrompting:()=>g.SvQ,cancelPrompt:()=>g.zlb,cardModalAnimationPresets:()=>g.QsE,cardModalPresetStyles:()=>g.Zqu,changeWorkspaceContext:()=>g.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,clampZoneSize:()=>g.foY,cleanCascadingFilters:()=>g._Jn,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>g.G_3,closeToolWindow:()=>g.T7Q,closeWorkspace:()=>g.MJ8,closeWorkspaceGroup2:()=>g.biy,cn:()=>g.cn,compile:()=>u.wE,convertToLocaleCalendar:()=>x.d4,createAttachment:()=>s.cD,createErrorHandler:()=>l.J,createLiveOrb:()=>g.Ogf,defaultValidation:()=>g.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>m.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>x.QC,duration:()=>x.p0,egenOfflineCachingStrategyHttpHeaderName:()=>m.T$,egenOfflineResponseBodyHttpHeaderName:()=>m.Q1,egenOfflineResponseStatusHttpHeaderName:()=>m.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>g.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,evaluateFilter:()=>g.Ws0,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>x.Yq,formatDatetime:()=>x.Rt,formatDuration:()=>x.a3,formatDurationBetween:()=>x.g2,formatEntityName:()=>x.MS,formatPartialDate:()=>x.LW,formatPatientName:()=>x.Qr,formatTime:()=>x.fU,formatToolWindowBadge:()=>g.pd,formattedName:()=>x.qK,generateOfflineUuid:()=>m.sA,getActiveModuleNames:()=>g.pJo,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>m.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>x.a7,getDefaultsFromConfigSchema:()=>x.kd,getDynamicOfflineDataEntries:()=>m.FE,getDynamicOfflineDataEntriesFor:()=>m.WA,getDynamicOfflineDataHandlers:()=>m.qb,getEgenServiceWorker:()=>m.b1,getEntityName:()=>x.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>m.C$,getFullSynchronizationItemsFor:()=>m.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>x.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getNavBehavior:()=>c.Yw,getOfflineDb:()=>m.e,getOfflineEntityDataStore:()=>m.sm,getOfflineSynchronizationStore:()=>m.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>x.Vp,getPromptBeforeClosingFcn:()=>g.OeE,getRegisteredWorkspace2Names:()=>g.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getSavedAssistantMode:()=>g.T7$,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>m.Gp,getSynchronizationItems:()=>m.pb,getSynchronizationItemsFor:()=>m.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>g.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>g.XzH,goBackInHistory:()=>p.tA,iconIds:()=>g.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>g.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>x.pf,isEgenDateToday:()=>x.L8,isEgenRoutes:()=>f.Ss,isFilterReady:()=>g.iVR,isImportMapOverrideDisabled:()=>o.q1,isNavEntryInWorkspace:()=>c.oE,isNavEntryMeta:()=>c.DK,isOfflineUuid:()=>m.bO,isOnline:()=>x.sc,isToolWindowMeta:()=>c.oW,isVersionSatisfied:()=>x.rX,isXboxAudioMuted:()=>g.lgu,jsep:()=>u.PQ,launchWorkspace:()=>g.TC2,launchWorkspace2:()=>g.pTx,launchWorkspaceGroup:()=>g.aN0,launchWorkspaceGroup2:()=>g.GYk,loadLifeCycles:()=>y.oB,loaderMarkup:()=>g.ilK,matchLocale:()=>x.w7,matchesFilters:()=>g.lu9,messageEgenServiceWorker:()=>m.Oc,navBehaviorStore:()=>c.rf,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>g.Fmw,offlineUuidPrefix:()=>m.jU,parseDate:()=>x._U,parseDateInput:()=>x.qE,pictogramIds:()=>g.vJW,playPageEnter:()=>g.m9A,playXboxSound:()=>g.x4I,preloadImport:()=>o.zC,preloadSplineScene:()=>g.Pfj,promptBeforeClosing:()=>g.F3N,promptForClosingWorkspaces:()=>g.hLN,putDynamicOfflineData:()=>m.yD,putDynamicOfflineDataFor:()=>m.ff,queueSynchronizationItem:()=>m.Zr,queueSynchronizationItemFor:()=>m.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>x.XE,registerEgenServiceWorker:()=>m.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerNavBehavior:()=>c.ZJ,registerOfflineEntityHandler:()=>m.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>m.NU,removeDynamicOfflineDataFor:()=>m.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>g.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>g.CU$,renderLoadingSpinner:()=>g.uWG,renderPageBackground:()=>g.uTG,renderSnackbars:()=>g.ZLm,renderToasts:()=>g.f1b,renderWorkbench:()=>g.OFC,renderWorkspaceWindowsAndMenu:()=>g.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>g._1W,resetZoneSize:()=>g.zkr,resolveWorkbenchIcon:()=>g.zLd,retry:()=>x.L5,runSynchronization:()=>m.AO,saveAssistantMode:()=>g.Pe5,saveWorkSession:()=>s.XM,selectPreferredName:()=>x.VO,setCurrentOfflineMode:()=>m.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setToolWindowBadge:()=>g.a8E,setZoneSize:()=>g.uge,setupDynamicOfflineDataHandler:()=>m.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>g.EPe,setupOfflineSync:()=>m.cy,setupPageTransitions:()=>g.d1P,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>x.bN,showActionableNotification:()=>g.ZyP,showModal:()=>g.toY,showNotification:()=>g.Dsh,showPageLoader:()=>g.EDr,showSnackbar:()=>g.tdF,showToast:()=>g.P0c,showWorkspacePrompts:()=>g.ctS,slugify:()=>o.Yv,stickyStyleVars:()=>g.paI,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>m.Td,syncDynamicOfflineData:()=>m.u1,syncOfflineEntityData:()=>m.Oj,toDateObjectStrict:()=>x.kQ,toEgenIsoString:()=>x.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,toggleToolWindow:()=>g.Hwc,toggleXboxAudio:()=>g.MiD,toolWindowTitle:()=>g.tp2,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>g._RD,useActiveAppModules:()=>g.Y26,useCarouselContext:()=>g.RGi,useCustomOverflowMenu:()=>g.ckU,useEntityPhoto:()=>g.XhU,useFilterSchema:()=>g.d4y,usePageBackground:()=>g.DYW,usePageLoading:()=>g.v99,useSelectContext:()=>g.hPu,useSheetContext:()=>g.sCq,useToolWindows:()=>g.ncA,useWorkspace2Context:()=>g.WO_,useWorkspace2Store:()=>g.AkA,useWorkspaces:()=>g.CH0,workbenchBadgeStore:()=>g.UcB,workbenchStore:()=>g.Tqd,workspace2Store:()=>c.J_,workspace2StoreActions:()=>g.cJy,workspaceStore:()=>g.x9q,xboxAudio:()=>g.o81});var r=n(4896),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a);var i=n(2804),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);n.d(t,a);var o=n(101),s=n(3447),l=n(8507),u=n(9360),c=n(8625),d=n(5794),f=n(5895),p=n(7774),m=n(6563),h=n(5429),a={};for(let e in h)0>["evaluateAsTypeAsync","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","getGroupByWindowName","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","removeDynamicOfflineData","subscribePrecacheStaticDependencies","putDynamicOfflineData","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","subscribeNotificationShown","deleteSynchronizationItem","putDynamicOfflineDataFor","dispatchPrecacheStaticDependencies","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","isNavEntryMeta","getDynamicOfflineDataEntries","WorkSessionStatus","syncOfflineEntityData","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","navigate","registerBreadcrumbs"].indexOf(e)&&(a[e]=()=>h[e]);n.d(t,a);var y=n(7334),v=n(1442),a={};for(let e in v)0>["registerBreadcrumbs","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","finishRegisteringAllApps","evaluateAsTypeAsync","getGroupByWindowName","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","removeDynamicOfflineData","subscribePrecacheStaticDependencies","putDynamicOfflineData","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","subscribeNotificationShown","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","putDynamicOfflineDataFor","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","loadLifeCycles","getDynamicOfflineDataEntries","isNavEntryMeta","syncOfflineEntityData","WorkSessionStatus","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","navigate"].indexOf(e)&&(a[e]=()=>v[e]);n.d(t,a);var g=n(488),b=n(5565),x=n(7184)},5895(e,t,n){"use strict";n.d(t,{$3:()=>r.$3,FI:()=>r.FI,LQ:()=>r.LQ,Ss:()=>a.S,Vt:()=>r.Vt,Yt:()=>r.Yt,bJ:()=>r.bJ,bK:()=>r.bK,dX:()=>r.dX,ff:()=>r.ff,gj:()=>r.gj,j0:()=>a.j,ls:()=>r.ls,pc:()=>r.pc,sT:()=>r.sT});var r=n(9726),a=n(2235)},2235(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];return"string"==typeof n&&i(a)})}n.d(t,{S:()=>o,j:()=>i})},7334(e,t,n){"use strict";n.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var r=n(9250),a=n(2804),i=n(5794),o=n(8625),s=n(8148);function l(e,t){var n=t.name;if(!n)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(n," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var r=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:n,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var a=!0,i=!1,l=void 0;try{for(var u,c,d,f=r[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;(0,o.K0)(p,n)}}catch(e){i=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,a.registerModuleWithConfigSystem)(e);var n,r,d,f,p,m,h,y,v,g=null!=(n=t.extensions)?n:[],b=null!=(r=t.modals)?r:[],x=null!=(d=t.workspaces)?d:[],w=null!=(f=t.workspaceGroups)?f:[],j=null!=(p=t.featureFlags)?p:[],S=null!=(m=t.workspaceGroups2)?m:[],E=null!=(h=t.workspaceWindows2)?h:[],O=null!=(y=t.workspaces2)?y:[];null==(v=t.pages)||v.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var n,r;c.push((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t),r=r={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),g.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var n;(n=t.name)?t.component?(0,o.Ju)({name:n,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var n=t.name;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var r=t.title;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:n,title:r,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var a=!0,i=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;(0,o.io)({name:d,members:[n]})}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var n,r;(r=t.name)?(0,o.io)({name:r,members:null!=(n=t.members)?n:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,S),function(e,t){(0,o.Qb)(e,t);var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(e,E),(0,o.Uh)(e,O),j.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,i.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,n=!1,a=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),m=null!=(u=d.containerDomId)?u:"egen-apps-container",h=document.getElementById(m),y="single-spa-application:".concat(p);if(h){var v=document.createElement("div");v.id=y,null==h||h.appendChild(v)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(m,'"; DOM element does not exist.'));!function(e,t){var n,a,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(n=function e(t){if(Array.isArray(t)){var n,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,r.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(n=RegExp)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),a=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,i.jj)(l))&&n(e)}:n);(0,r.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){n=!0,a=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}},8148(e,t,n){"use strict";n.d(t,{o:()=>u});var r=n(99),a=n(2804);function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var n,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(n=t.indexOf("#"))>=0)?t.substring(0,n):e,d=i?t.substring(n+1):t,[4,(0,r.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var m,h;return[2,(m=u,h=f,o(function(){var e,t;return s(this,function(n){switch(n.label){case 0:if(m in l)return[3,5];if(null==h)return[3,1];return t=h,[3,3];case 1:return[4,(0,r.rL)(m)];case 2:t=n.sent(),n.label=3;case 3:return e=t,[4,l[m]=new Promise(function(t,n){if(Object.hasOwn(e,"startupApp")){var r=e.startupApp;if("function"==typeof r)return Promise.resolve(r()).then(function(){(0,a.registerModuleLoad)(m),t(null)}).catch(n)}(0,a.registerModuleLoad)(m),t(null)})];case 4:return n.sent(),[3,7];case 5:return[4,l[m]];case 6:n.sent(),n.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,n){"use strict";n.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>en,a7:()=>ee,L8:()=>q,Yq:()=>er,L3:()=>K,fU:()=>ei,_U:()=>Z,d4:()=>es,p0:()=>em,kQ:()=>Y,qE:()=>eu,pf:()=>G});var r,a=n(9405),i=n(227);if("u">typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(r||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},m={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},h={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:`\\(?(?:${Object.keys(p).join("|")})\\)?`,MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...h,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},v={},g=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){let n=t.toLowerCase(),r=v[n];if(r)return r;let a=new e(t);return v[n]=a,a}constructor(e=o){this.locale=e,this.lookups={...m},this.vars={...h};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){return"number"==typeof e?e:"string"==typeof e?this.stringToInt(e):void 0}stringToInt(e){if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!Number.isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.stringToInt(t):2===t.length?10*this.stringToInt(t):this.stringToInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.stringToInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(n)+(r?this.stringToInt(r):0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){let t=f[e];if(t)return t;if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let n=u[e];if(!n)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(n),a=String.fromCharCode(n+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(n+e)]=e;return f[e]={group:`[${r}-${a}]`,lookup:i},f[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,y)Object.hasOwn(y,n)&&(this.vars[n]=y[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,i)=>{e[n+a+(i<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let i=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let o=0;o<12;o++){let s=i.formatToParts(n[o]).find(r);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===a?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=o+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let i=0;i<12;i++){let o=a.formatToParts(n[i]).find(r);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=i+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let i=Intl.DateTimeFormat(this.locale,{weekday:a});for(let o=0;o<7;o++){let s=i.formatToParts(e[o]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===a?(l=l.replace(/\.$/,""),n.push(`${l}\\.?`)):n.push(l),r[l]=o}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let i=0;i<2;i++){let o=a.formatToParts(e[i]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*i}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],x={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},w=()=>new Date;function j(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var S=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))e in n||void 0===t||(n[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},E=["year","month","day","hour","minute","second","millisecond","offset"],O={};function k(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var A=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],D={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...A],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:A,id:A,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function P(e,t=o){let n=function(e){var t,n;let r,a,i=O[e];if(i)return i;let o=g.factory(e),s=new S({doneChecker:k,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:j(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:j(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:j(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=w(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n]??0;0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:([,e,t,n,r])=>{let a,i=parseFloat(t);"week"===(a=n.length<=2?x[n]:(a=n.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||r)&&(i*=-1);let o=w();return"millisecond"===a?o.setUTCMilliseconds(o.getUTCMilliseconds()+i):"second"===a?o.setUTCSeconds(o.getUTCSeconds()+i):"minute"===a?o.setUTCMinutes(o.getUTCMinutes()+i):"hour"===a?o.setUTCHours(o.getUTCHours()+i):"day"===a?o.setUTCDate(o.getUTCDate()+i):"month"===a?o.setUTCMonth(o.getUTCMonth()+i):"year"===a&&o.setUTCFullYear(o.getUTCFullYear()+i),{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:e=>{let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:e=>{let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:j(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:j(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:j(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:j(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:j(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:j(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:j(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:j(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:j(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:j(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:j(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:j(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:j(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:j(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:j(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:j(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:j(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:j(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:j(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:j(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:j(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:j(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:j(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:j(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:j(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:j(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(E.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})});return O[e]=s,s}(t),r=function(e,t){let n=D[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function C(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year??NaN,(e.month??NaN)-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function T(e,t=o){let n=P(e,t),r=n.invalid?new s(NaN):C(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function N(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):T(e,t)}Date.fromString=s.fromString=T,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:T,fromAny:N,fromObject:C,attempt:P});var M=n(5350),R=n.n(M),I=n(648),_=n(6871),L=n(2147);let F=function(e){return null==e};var B=n(313),V=n(1851);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){W(e,t,n[t])})}return e}function $(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}R().extend(I),R().extend(L),R().extend(_);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&R()(e,H).isValid()}function q(e){return R()(e).isToday()}function Y(e){return G(e)?R()(e,H).toDate():null}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=R()(e);return t&&(n=n.utc()),n.format(H)}function Z(e){return R()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,n=X,r={writable:!0,value:new Map};if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,r)}return e=[{key:"register",value:function(e,t){$(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if($(this,X).has(t))return $(this,X).get(t)}if(e.language&&$(this,X).has(e.language))return $(this,X).get(e.language);var n=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return $(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),n),n}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,n=null!=e?e:(0,V.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)?n:new Intl.Locale(n))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(e,(0,V.J)());if(n.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(n.day)&&F(n.month)&&(n=Object.assign({},(0,B.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},(0,B.A)(n,"day"),{date:n.day}));var r=R()().set(n).toDate();return F(n.year)&&(t.year=!1),F(n.month)&&(t.month=!1),F(n.date)&&(t.day=!1),er(r,t)}function er(e,t){var n,r,a=null!=(n=null==t?void 0:t.locale)?n:(0,V.J)(),i=new Intl.Locale(a),o=U({},et,{noToday:"am"===i.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,m=o.numberingSystem,h={calendar:null!=s?s:ee(i),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},y=R()(e).isToday();if(y&&!p)r=(r=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+r.slice(1);else{"en"===i.language&&(a="en-GB");var v=new Intl.DateTimeFormat(a,h).formatToParts(e);("en"===i.language||"am"===i.language)&&"standard"==l&&f&&c&&(v=v.map(ea("-"))),"wide"==l&&(v=v.map(ea(" — "))),"ethiopic"===h.calendar&&(v=v.filter(function(e,t,n){return"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type)})),r=v.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(r+=", ".concat(ei(e))),r}var ea=function(e){return function(t,n,r){return"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e}}};function ei(e){return e.toLocaleTimeString((0,V.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var n,r;return er(e,(n=U({},t),r=r={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function es(e,t){var n=ee("string"==typeof t?new Intl.Locale(t):t);return n?(0,a.yP)(e,(0,i.d)(n)):e}function el(e,t){return new Intl.DurationFormat((0,V.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var n=P(e,(0,V.J)());return n.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(n.day&&!n.month&&(n=U({},(0,B.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=U({},(0,B.A)(n,"day"),{date:n.day})),R()(t).set(n))}return R()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function em(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R()(),r=arguments.length>2?arguments[2]:void 0,a=R()(n),i=eu(e,a);if(null==i)return null;if("string"==typeof r){var o=ef(r);return W({},o,a.diff(i,o))}var s=null!=r?r:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,n){for(var r=ec.indexOf(n),a=0;a<ec.length;a++){var i=ec[a];if(t.diff(e,i)>0)return a<=r?i:n}return n}(i,a,null!=f?f:"seconds"):ef(u),function(e,t,n,r){var a=ec.indexOf(n),i=ec.indexOf(r),o=ec.slice(a,i+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,h=t.diff(l,m);s[m]=h,l=l.add(h,m)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(i,a,d,null!=f?f:d)}var p=(t=function(e){var t=U({},ep);if(e){var n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return z(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}return t}(l),a.diff(i,"seconds")<t.seconds?"seconds":a.diff(i,"minutes")<t.minutes?"minutes":a.diff(i,"hours")<t.hours?"hours":a.diff(i,"days")<t.days?"days":a.diff(i,"months")<t.months?"months":"years");return W({},p,a.diff(i,p))}var eh={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R()(),n=arguments.length>2?arguments[2]:void 0,r=em(e,t,n);return null==r?null:el(r,(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&n.formatOptions?U({},eh,n.formatOptions):eh)}},1851(e,t,n){"use strict";function r(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},7184(e,t,n){"use strict";n.d(t,{g2:()=>i.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>i.a3,LW:()=>i.LW,MS:()=>h,He:()=>f,rX:()=>O,L8:()=>i.L8,VO:()=>g,QC:()=>m,_U:()=>i._U,kQ:()=>i.kQ,qE:()=>i.qE,KW:()=>s,pf:()=>i.pf,kd:()=>function e(t){var n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if(w(t[l])&&t[l].hasOwnProperty("_default"))n[l]=t[l]._default;else{if(l.startsWith("_"))continue;w(t[l])?n[l]=e(t[l]):n[l]=t[l]}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n},L5:()=>P,XE:()=>i.XE,Qr:()=>y,_g:()=>x,a7:()=>i.a7,sc:()=>u.s,w7:()=>d,L3:()=>i.L3,Yq:()=>i.Yq,fU:()=>i.fU,qK:()=>v,d4:()=>i.d4,Cy:()=>o,p0:()=>i.p0,Vp:()=>p,Rt:()=>i.Rt});var r=n(5350),a=n.n(r),i=n(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=a()(t),r=(0,i.qE)(e,n);if(null==r)return null;var o=n.diff(r,"hours"),s=n.diff(r,"days"),l=n.diff(r,"weeks"),u=n.diff(r,"months"),c=n.diff(r,"years"),d={};if(o<2)d.minutes=n.diff(r,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=n.subtract(l,"weeks").diff(r,"days");d.weeks=l,d.days=f}else if(c<2){var p=n.subtract(u,"months").diff(r,"days");d.months=u,d.days=p}else if(c<18){var m=n.subtract(c,"year").diff(r,"months");d.years=c,d.months=m}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=o(e,t);if(null==n)return null;var r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),(0,i.a3)(n,r)}var l=n(1851),u=n(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,n){if(null==e)return n;var r=c(e);if(!r)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),n;var a=[],i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}a.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}for(var p=r;p;){var m=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",n=a.find(function(e){return e.canonical.startsWith(t)});if(n)return{v:n.original};if("ht"===p)return p="fr-HT","continue";var r=p.lastIndexOf("-");if(-1===r)return"break";var i=(p=p.slice(0,r)).lastIndexOf("-");-1!==i&&p.length-i==2&&(p=p.slice(0,i))}();if("object"==(m&&"u">typeof Symbol&&m.constructor===Symbol?"symbol":typeof m))return m.v;if("break"===m)break}return n}function f(e){return h(g(e,"usual","official"))}function p(e){return f(e)}function m(e){return f(e)}function h(e){var t,n,r,a;return e?null!=(t=e.text)?t:(a=null!=(r=(n=e).given)?r:[],(n.family?a.concat(n.family):a).join(" ")):""}function y(e){return h(e)}function v(e){return h(e)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];0===n.length&&(n=["usual"]);var a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=function(){var t,n=s.value,r=null==(t=e.name)?void 0:t.find(function(e){var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(r)return{v:r}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}var b=n(8254);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function w(e){return!!e&&e.constructor===Object}var j=n(8164);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return S(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],a=n[1],i=n[2];return"".concat(r,".").concat(a,".").concat(i)}function O(e,t){var n=function(e){var t=e.indexOf("-");if(t>=0){var n=E(e.slice(0,t)),r=e.slice(t+1);return"".concat(n,"-").concat(r)}return E(e)}(t);return j.satisfies(n,e,{includePrerelease:!0})}function k(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function A(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){k(i,r,a,o,s,"next",e)}function s(e){k(i,r,a,o,s,"throw",e)}o(void 0)})}}function D(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function P(e){return A(function(e){var t,n,r,a,i,o,s,l=arguments;return D(this,function(u){switch(u.label){case 0:n=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,r=t.getDelay,a=t.onError,n=null!=n?n:function(e){return e<=5},r=null!=r?r:function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,n?e+1:e)}(e,1e3)},i=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=r(i),A(function(){return D(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==a||a(s,i),o=s,[3,5];case 5:if(n(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
|
|
20
|
+
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[t]),(0,v.jsx)(ES,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:!1===i?e:g.cloneElement(e,{ref:c})})}let EO=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dD(Ek),d=(0,g.useId)(),f=(0,g.useRef)(n),p=(0,g.useRef)(r);dB(()=>{f.current=n,p.current=r});let m=!0,h=(0,g.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;r&&r()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[n,c,r]);return i&&m&&(h={...h}),(0,g.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),g.useEffect(()=>{n||c.size||!r||r()},[n]),e=(0,v.jsx)(EE,{pop:"popLayout"===o,isPresent:n,anchorX:s,anchorY:l,root:u,children:e}),(0,v.jsx)(dA.Provider,{value:h,children:e})};function Ek(){return new Map}let EA=e=>e.key||"";function ED(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}let EP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=p_(o),f=(0,g.useMemo)(()=>ED(e),[e]),p=o&&!c?[]:f.map(EA),m=(0,g.useRef)(!0),h=(0,g.useRef)(f),y=dD(()=>new Map),b=(0,g.useRef)(new Set),[x,w]=(0,g.useState)(f),[j,S]=(0,g.useState)(f);dB(()=>{m.current=!1,h.current=f;for(let e=0;e<j.length;e++){let t=EA(j[e]);p.includes(t)?(y.delete(t),b.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[j,p.length,p.join("-")]);let E=[];if(f!==x){let e=[...f];for(let t=0;t<j.length;t++){let n=j[t],r=EA(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return"wait"===i&&E.length&&(e=E),S(ED(e)),w(f),null}let{forceRender:O}=(0,g.useContext)(dh);return(0,v.jsx)(v.Fragment,{children:j.map(e=>{let g=EA(e),x=(!o||!!c)&&(f===j||p.includes(g));return(0,v.jsx)(EO,{isPresent:x,initial:(!m.current||!!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:i,root:u,onExitComplete:x?void 0:()=>{if(b.current.has(g)||!y.has(g))return;b.current.add(g),y.set(g,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(O?.(),S(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:l,children:e},g)})})},EC={wrapper:"+MhaVae6THwsk5E6SgD91g==",trigger:"erLmyNa4KNmSTnIWruF98w==",triggerIcon:"vgVuFlAm9oz2YIX+R3KGog==",triggerChevron:"EdRjow+3atz2LikqTtwRiA==","triggerChevron--open":"_3Qo5hPFht+fmaD5wpyrVDA==","triggerChevron--up":"LhY70oEV9rW+HCjBflQttg==",overlay:"j+0L8iAqopV5T3dTF0FKHA==",panel:"DLLKVOAuRvynO719yhZLdQ==",panelInner:"DfOdez6SxH290+Zy++HamA==",column:"BLcH+6UWPrpxna6xW7CaRg==",columnSearch:"VF7IQhw8YUnuNbxqB5uxgg==",columnSearchIcon:"L3Vzmgyzo+bBL73XihSy8g==",columnSearchInput:"nxz89i96vOH2bJ8IlCF3vw==",columnList:"XXN4Osw2SEvuhRZebn+W4g==",columnItem:"iEw8FhekcP+mGRJY9ZWi+Q==",columnItemIcon:"Z+QCa3t-znECWPm2IMJvdg==",columnItemLabel:"TvYE56z6ZZPeeL4ZRozI9w==",columnItemChevron:"NEPWPyiPTSNucX+JQPDvag==",columnEmpty:"_8a9jyeZZX6-xJ78eLrafow=="};function ET(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EN=function(e){var t,n=e.columnItems,r=e.columnIndex,a=e.activeItems,i=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(""))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return ET(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ET(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useMemo)(function(){if(!c.trim())return n;var e=c.trim().toLowerCase();return n.filter(function(t){return t.label.toLowerCase().includes(e)})},[n,c]);return(0,v.jsxs)(mq.div,{className:EC.column,initial:{opacity:0,width:0},animate:{opacity:1,width:"var(--cnd-column-width)"},exit:{opacity:0,width:0},transition:{duration:.2,ease:"easeOut"},children:[i&&(0,v.jsxs)("div",{className:EC.columnSearch,children:[(0,v.jsx)(sl,{className:EC.columnSearchIcon,size:14}),(0,v.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:EC.columnSearchInput,"aria-label":o})]}),(0,v.jsxs)("ul",{className:EC.columnList,role:"list",children:[f.map(function(e){var t,n=a[r]===e.id,i=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:EC.columnItem,"data-active":n||void 0,onMouseEnter:function(){return s(e,r)},onFocus:function(){return s(e,r)},onClick:function(){!i&&e.path&&l(e.path)},children:[o&&(0,v.jsx)(o,{className:EC.columnItemIcon,size:16}),(0,v.jsx)("span",{className:EC.columnItemLabel,children:e.label}),i&&(0,v.jsx)(oS,{className:EC.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,v.jsx)("li",{className:EC.columnEmpty,children:"—"})]})]})};function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||EL(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E_(e){return function(e){if(Array.isArray(e))return EM(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||EL(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EL(e,t){if(e){if("string"==typeof e)return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}}var EF=function(e){var t,n,r=e.items,a=e.triggerLabel,i=e.triggerIcon,o=e.direction,s=void 0===o?"down":o,l=e.searchable,u=void 0!==l&&l,c=e.searchPlaceholder,d=void 0===c?"Rechercher…":c,f=e.onNavigate,p=e.className,m=EI((0,g.useState)(!1),2),h=m[0],y=m[1],b=EI((0,g.useState)([r]),2),x=b[0],j=b[1],S=EI((0,g.useState)([]),2),E=S[0],O=S[1],k=EI((0,g.useState)(null),2),A=k[0],D=k[1],P=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){h||(j([r]),O([]))},[r,h]),(0,g.useLayoutEffect)(function(){if(h&&P.current){var e=P.current.getBoundingClientRect();D("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[h,s]);var C=function(e,t){var n,r=E_(E);r[t]=e.id,(null==(n=e.children)?void 0:n.length)?j(E_(x.slice(0,t+1)).concat([e.children])):j(x.slice(0,t+1)),O(r)},T=function(e){y(!1),null==f||f(e)};return(0,v.jsxs)("div",{className:w()(EC.wrapper,p),children:[(0,v.jsxs)("button",{ref:P,type:"button",className:EC.trigger,onClick:function(){return y(function(e){return!e})},"aria-haspopup":"true","aria-expanded":h,children:[i&&(0,v.jsx)(i,{className:EC.triggerIcon,size:16}),(0,v.jsx)("span",{children:void 0===a?"Navigation":a}),(0,v.jsx)(ow,{className:w()(EC.triggerChevron,(ER(t={},EC["triggerChevron--open"],h),ER(t,EC["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,v.jsx)(EP,{children:h&&A&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:EC.overlay,onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsx)(mq.div,{className:w()(EC.panel,EC["panel--".concat(s)]),style:(ER(n={left:A.left,top:A.top,bottom:A.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),ER(n,"--cnd-column-width","16rem"),n),initial:{opacity:0,y:"up"===s?10:-10,scale:.96},animate:{opacity:1,y:0,scale:1,width:"var(--cnd-panel-width)",transition:{opacity:{duration:.18},y:{duration:.28,type:"spring",stiffness:200,damping:20},scale:{duration:.18},width:{duration:.28,ease:"easeOut"}}},exit:{opacity:0,y:"up"===s?10:-10,scale:.96,transition:{duration:.18}},children:(0,v.jsx)("div",{className:EC.panelInner,children:(0,v.jsx)(EP,{mode:"sync",children:x.map(function(e,t){return(0,v.jsx)(EN,{columnItems:e,columnIndex:t,activeItems:E,searchable:u,searchPlaceholder:d,onHover:C,onNavigate:T},t)})})})})]})})]})},EB=(0,g.createContext)(null),EV=function(){var e=(0,g.useContext)(EB);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function Ez(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EW=function(e){var t,n=e.children,r=e.open,a=e.onOpenChange,i=e.defaultOpen,o=e.className,s=e.side,l=e.height,u=e.closeThreshold,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(null!=i&&i))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ez(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ez(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=void 0!==r,m=p?r:d,h=(0,g.useCallback)(function(e){null==a||a(e),p||f(e)},[a,p]);return(0,v.jsx)(EB.Provider,{value:{isOpen:m,onOpenChange:h,contentProps:{height:void 0===l?"55vh":l,className:void 0===o?"":o,closeThreshold:void 0===u?.3:u,side:void 0===s?"top":s}},children:n})};function EU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E$=function(e){var t,n=e.children,r=e.container,a=e.className,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return EU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return EU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];if((0,g.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=a?(0,v.jsx)("div",{className:a,children:n}):n;return(0,t1.createPortal)(l,r||document.body)};let EH={triggerReset:"UTfMgRiNPzIznEurby664A==",container:"aWpQhbD4hQ2xfoFCY+v98A==","container--closed":"_6a2quhyuamg6Jnu2R0XZRg==",overlay:"uA7DGJbtkeLtyEgBWLudcg==",panel:"z6F4H-lgJLzzAj5DnVRryQ==","panel--top":"_38Sx-y4GdtWmNrETgQugkQ==","panel--bottom":"NGUY6C9LOAYjl6PSdt1xRw==",body:"IMmoKiNl8EmbBwnED75RbA==",scrollArea:"iAvbXCoavXWllacp5gpmHw==",handleRow:"ME49NFGQ57X-WijIuZhL-g==",handle:"lmM97ycxqOLoc3p10FNnJQ==",header:"e3jwSgdciqRPypRFgEXIEg==",title:"BmFFjd7CzigiMTXcFmiVwQ==",description:"PDFT4QgaZAFZt5sPYzNKxw==",footer:"p-rskDegBYgDoo-4cR88Nw=="};function EG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eq(e){if(Array.isArray(e))return e}function EY(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function EK(e,t){if(e){if("string"==typeof e)return EG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EG(e,t)}}var EZ=(0,g.forwardRef)(function(e,t){var n,r=Eq(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||EK(n)||EY(),a=r[0],i=r.slice(1),o=a.className,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(a,["className"]),l=(Eq(i)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(i)||EK(i,1)||EY())[0],u=EV(),c=u.isOpen,d=u.onOpenChange,f=(0,g.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,v.jsx)(mq.div,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:w()(EH.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function EX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function EQ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}EZ.displayName="SheetOverlay";var EJ=function(e){var t=e.asChild,n=e.children,r=e.className,a=EV().onOpenChange,i=function(){return a(!0)};return t&&b().isValidElement(n)?b().cloneElement(n,EQ(EX({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(EH.triggerReset,r),children:n})},E0=function(e){var t=e.asChild,n=e.children,r=e.className,a=EV().onOpenChange,i=function(){return a(!1)};return t&&b().isValidElement(n)?b().cloneElement(n,EQ(EX({},n.props),{className:w()(n.props.className,r),onClick:function(e){var t,r;null==(t=(r=n.props).onClick)||t.call(r,e),i()}})):(0,v.jsx)("button",{onClick:i,type:"button",className:w()(EH.triggerReset,r),children:n})};function E1(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&dG(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{E1(e,t)})})}function E2(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){ub(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let a=[];return t.forEach(e=>{a.push(fK(e,n,{transitionOverride:r}))}),Promise.all(a)},set:n=>(ub(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?E1(t,r):"string"==typeof r?E1(t,[r]):dG(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let E3=function(){let e=dD(E2);return dB(e.mount,[]),e};function E5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E4=function(e){var t,n=e.children,r=e.className,a=EV(),i=a.isOpen,o=a.onOpenChange,s=a.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=E3(),f=(0,g.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return E5(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E5(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=p[0],h=p[1],y="top"===c?-1:1,b=(0,g.useCallback)(function(){return o(!1)},[o]),x=(0,g.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,n=window.innerWidth;return e=n<=640?.6*t:n<=1024?.55*t:.5*t,l.includes("vh")?e=parseInt(l,10)/100*t:l.includes("px")&&(e=parseInt(l,10)),Math.min(e,.8*t)},[l]);(0,g.useEffect)(function(){var e=function(){return h(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,g.useEffect)(function(){return i?(document.body.style.overflow="hidden",d.start({y:0,transition:{type:"spring",stiffness:400,damping:40,mass:.8}})):(document.body.style.overflow="",d.start({y:y*(m+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[i,d,m,y]),(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&i&&b()};return i&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[i,b]);var j=(0,g.useCallback)(function(e,t){var n=y*t.offset.y>m*u,r=y*t.velocity.y>800;n||r?b():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,b,u,m,y]),S=(0,g.useCallback)(function(e){e.target===f.current&&b()},[b]);if(0===m)return null;var E="top"===c?{top:-m,bottom:0}:{top:0,bottom:m};return(0,v.jsx)(E$,{children:(0,v.jsxs)("div",{className:w()(EH.container,!i&&EH["container--closed"]),children:[(0,v.jsx)(mq.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!i},transition:{duration:.2,ease:"easeOut"},onClick:S,className:EH.overlay,style:{pointerEvents:i?"auto":"none"}}),(0,v.jsxs)(mq.div,{drag:"y",dragConstraints:E,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:j,animate:d,initial:{y:y*(m+50)},className:w()(EH.panel,EH["panel--".concat(c)],void 0===r?"":r),style:{height:m},children:["bottom"===c&&(0,v.jsx)("div",{className:EH.handleRow,children:(0,v.jsx)("div",{className:EH.handle})}),(0,v.jsx)("div",{className:EH.body,children:(0,v.jsx)("div",{className:EH.scrollArea,children:n})}),"top"===c&&(0,v.jsx)("div",{className:EH.handleRow,children:(0,v.jsx)("div",{className:EH.handle})})]})]})})},E6=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(EH.header,n),children:t})},E8=function(e){var t=e.children,n=e.className;return(0,v.jsx)("h3",{className:w()(EH.title,n),children:t})},E9=function(e){var t=e.children,n=e.className;return(0,v.jsx)("p",{className:w()(EH.description,n),children:t})},E7=function(e){var t=e.children,n=e.className;return(0,v.jsx)("div",{className:w()(EH.footer,n),children:t})},Oe=EW;function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Oa=function(e){var t=e.items,n=e.title,r=e.hint,a=void 0===r?"Glisser une carte vers le bas pour fermer":r,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.className,u=e.style,c=e.itemWidth,d=void 0===c?"14rem":c,f=e.itemHeight,p=void 0===f?"18rem":f,m=e.accentColor,h=Or((0,g.useState)(void 0!==o&&o),2),y=h[0],b=h[1],x=Or((0,g.useState)(!1),2),j=x[0],S=x[1],E=void 0!==i,O=E?i:y,k=function(e){null==s||s(e),E||b(e)},A=function(e,t){t.offset.y>100&&O&&(k(!1),S(!1))},D=(t.length-1)/2,P=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){On(e,t,n[t])})}return e}({},m?On({},"--fg-accent",m):void 0,u);return(0,v.jsx)("div",{className:w()("mf1PQJZJIkTcC6ieajp06g==",l),style:P,children:(0,v.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,v.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,v.jsxs)(mq.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,v.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,v.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,v.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,v.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var n=t-D,r=1-.03*Math.abs(n);return(0,v.jsx)(mq.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:A,className:w()("x+8qV1iWMRfwOVcjmG22XA==",On({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*n,rotate:0,scale:1.05,zIndex:50}:{y:j?-10*n-40:-5*n,x:j?30*n:3*n,rotate:j?8*n:3*n,scale:r,zIndex:t+10},whileHover:O?{scale:1.1,zIndex:100}:void 0,whileDrag:O?{scale:1.05+.1,rotate:5,zIndex:150}:void 0,transition:{type:"spring",stiffness:350,damping:30},children:e.content},e.id)})}),(0,v.jsx)(mq.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:j?-25:0,y:10*!!j,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},onClick:function(){return k(!0)},children:(0,v.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,v.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,v.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,v.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===n?"Dossier":n})})]})})]}),a&&(0,v.jsx)(mq.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:a})]})})};function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ol(e){var t=e.items,n=e.className,r=e.style,a=Os((0,g.useState)(null),2),i=a[0],o=a[1],s=Os((0,g.useState)(null),2),l=s[0],u=s[1],c=function(e){u(i),o(e)},d=function(){u(i),o(null)};return(0,g.useEffect)(function(){if(i){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[i]),(0,v.jsxs)("div",{className:w()("cwEvWWvWR1VRjUW5EIdhaA==",n),style:r,children:[t.map(function(e){var t,n=(null==i?void 0:i.id)===e.id,r=!n&&(null==l?void 0:l.id)===e.id;return(0,v.jsx)("div",{className:e.className,children:(0,v.jsxs)(mq.div,{role:"button",tabIndex:0,"aria-pressed":n,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:w()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(Oo(t={},"wpWM12DNjfwunfLOmmaBnQ==",n),Oo(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!n),Oo(t,"_1zQI0+1IAUASZtCPebAKvg==",r),t)),layoutId:"layout-grid-card-".concat(e.id),children:[n&&(0,v.jsx)(Oc,{item:i}),(0,v.jsx)(Ou,{item:e})]})},e.id)}),(0,v.jsx)(mq.div,{onClick:d,className:w()("SfuCW8U7MUzYHVthm3806Q==",Oo({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==i?void 0:i.id))),animate:{opacity:+(null!=i&&!!i.id)},"aria-hidden":"true"})]})}function Ou(e){var t=e.item;return(0,v.jsx)(mq.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function Oc(e){var t=e.item;return(0,v.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,v.jsx)(mq.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,v.jsx)(mq.div,{layoutId:"layout-grid-content-".concat(null==t?void 0:t.id),initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100},transition:{duration:.3,ease:"easeInOut"},className:"F2vzEavwn6vgxochiCbbkQ==",children:null==t?void 0:t.content})]})}let Od="VL60poBQJU5GXBc55DtOgg==",Of="Z-QYx9GU0-9PvqywVAWDOw==",Op="k5GwrlmSGQEXCHiD9NJSgg==",Om="Sd+oehXhY2IvCEPY7LquSQ==",Oh="_2TUXiGgesFw6MMltbcDw7g==",Oy="aaY-ypFw8QYOvR34L1Ad3g==",Ov="_0FXGSaE3Vf6Xfst6Bn-1XQ==",Og="J+6pxxgImJiBa+5uolSRLA==",Ob="-cMLmEDNbTRZO+q9J5EnZQ==",Ox="pNL9YXjomLOkN1Sc1NOXsw==",Ow="YY-ar9Letsk0I16pNK2koQ==";var Oj=function(){return(0,v.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,v.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function OS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ok=function(e){var t=e.title,n=e.coverImageUrl,r=e.category,a=e.itemCountLabel,i=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=OO((0,g.useState)(!1),2),f=d[0],p=d[1],m=OO((0,g.useState)(null),2),h=m[0],y=m[1],b=OO((0,g.useState)(null),2),x=b[0],j=b[1],S=OO((0,g.useState)(0),2),E=S[0],O=S[1],k=OO((0,g.useState)("translateY(0px)"),2),A=k[0],D=k[1],P=(0,g.useRef)(null),C=(0,g.useRef)(new Map),T=null!==h,N=f||T;(0,g.useEffect)(function(){if(null!==h){var e=function(){var e=C.current.get(h);e&&P.current&&O(e.getBoundingClientRect().top-P.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[h]);var M=function(e){if(e.detail){var t=C.current.get(e.id);if(t&&P.current){var n=window.innerHeight-t.getBoundingClientRect().bottom+P.current.offsetTop-390;D("translateY(".concat(n,"px)"))}y(e.id),j(e)}};return(0,v.jsx)("div",{className:w()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,v.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,v.jsxs)("div",{ref:P,className:w()("_09AECjHCq6I9nuofSaItrA==",OE({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,v.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,v.jsxs)("div",{className:Od,children:[(0,v.jsx)("img",{className:Of,src:n,alt:""}),(0,v.jsx)("img",{className:w()(Of,Op),src:n,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,v.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,v.jsx)("h1",{className:Om,children:t}),(0,v.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[r&&(0,v.jsx)("p",{className:Oh,children:r}),r&&a&&(0,v.jsx)("div",{className:Ov}),a&&(0,v.jsx)("p",{className:Oh,children:a}),a&&i&&(0,v.jsx)("div",{className:Ov}),i&&(0,v.jsx)("p",{className:Oh,children:i})]})]}),(0,v.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,v.jsxs)("div",{ref:(t=e.id,function(e){e?C.current.set(t,e):C.current.delete(t)}),className:Og,onClick:function(){return M(e)},children:[(0,v.jsx)("p",{className:Oy,children:e.title}),(0,v.jsxs)("div",{className:Ob,children:[(0,v.jsx)("button",{type:"button",className:Ox,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,v.jsx)(o4,{size:20})}),e.meta&&(0,v.jsx)("p",{className:Oh,children:e.meta})]})]},e.id)})})]})]}),x&&(0,v.jsxs)("div",{className:w()("T5TjonuT8CpL6L9LnfYUbg==",OE({},"Yw84bwYkOFxUPSl8uIlHYA==",T)),style:{top:"".concat(E,"px"),transform:A},children:[(0,v.jsxs)("div",{className:Og,children:[(0,v.jsx)("p",{className:Oy,children:x.title}),(0,v.jsxs)("div",{className:Ob,children:[(0,v.jsx)("button",{type:"button",className:Ox,onClick:function(){D("translateY(0px)"),y(null)},"aria-label":"Fermer",children:(0,v.jsx)(oa,{size:20,className:Ow})}),x.meta&&(0,v.jsx)("p",{className:Oh,children:x.meta})]})]}),(0,v.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,v.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,v.jsx)(Oj,{})]}),s&&(0,v.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":T?"none":void 0},children:[(0,v.jsx)("button",{type:"button",className:"GXOllnKpaSxbHHOmgv+RcQ==",onClick:function(){return p(function(e){return!e})},"aria-label":f?"Fermer":"Voir les d\xe9tails",children:(0,v.jsx)(oa,{size:24,className:w()(OE({},Ow,f))})}),(0,v.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,v.jsxs)("div",{className:Od,children:[(0,v.jsx)("h1",{className:Om,children:s.name}),(0,v.jsx)("img",{className:Of,src:s.photoUrl,alt:""}),(0,v.jsx)("img",{className:w()(Of,Op),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,v.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,v.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,v.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,v.jsx)("p",{className:w()(Oh,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,v.jsx)("div",{className:Ov}),s.itemCountLabel&&(0,v.jsx)("p",{className:Oh,children:s.itemCountLabel})]}),s.statLabel&&(0,v.jsx)("p",{className:Oh,children:s.statLabel})]}),s.description&&(0,v.jsx)("p",{className:Oy,children:s.description})]})]}),(0,v.jsx)(Oj,{}),(0,v.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})};function OA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OD(e,t){if(e){if("string"==typeof e)return OA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OA(e,t)}}var OP=/-page-\d+$/;function OC(){return new Set((0,ht.getMountedApps)().map(function(e){return e.replace(OP,"")}))}function OT(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,g.useState)(OC))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||OD(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return(0,g.useEffect)(function(){var e=function(){return r(function(e){var t=OC();return e.size===t.size&&((function(e){if(Array.isArray(e))return OA(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).every(function(e){return t.has(e)})?e:t})};return window.addEventListener("single-spa:routing-event",e),e(),function(){return window.removeEventListener("single-spa:routing-event",e)}},[]),n}function ON(e){var t=e.moduleName,n=e.meta;return n.titleKey?(0,V.t)(t,n.titleKey,n.title):n.title}function OM(e,t){var n=(0,j.useAssignedExtensions)(hr.As[e]),r=OT();return(0,g.useMemo)(function(){return n.map(function(e,t){return{extension:e,index:t}}).filter(function(e){var t=e.extension;return(0,hr.oW)(t.meta)}).filter(function(n){var r,a=n.extension;return!t||"bottom"!==e||(null!=(r=a.meta.rail)?r:"left")===t}).filter(function(t){var n=t.extension;return"right"===e||!0===n.meta.global||r.has(n.moduleName)}).sort(function(e,t){var n,r;return(null!=(n=e.extension.meta.order)?n:e.index)-(null!=(r=t.extension.meta.order)?r:t.index)||e.index-t.index}).map(function(e){var t=e.extension;return{id:t.name,moduleName:t.moduleName,meta:t.meta}})},[n,r,e,t])}var OR=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e,t,n){return!!e&&""!==e.trim()&&n.indexOf(e)===t}).join(" ").trim()},OI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};function O_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OL(e){if(Array.isArray(e))return e}function OF(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function OB(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function OV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Oz(e,t){return OL(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||OU(e,t)||OB()}function OW(e){return function(e){if(Array.isArray(e))return O_(e)}(e)||OF(e)||OU(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OU(e,t){if(e){if("string"==typeof e)return O_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O_(e,t)}}var O$=(0,g.forwardRef)(function(e,t){var n,r,a,i=OL(n=[e,t])||OF(n)||OU(n)||OB(),o=i[0],s=i.slice(1),l=o.color,u=o.size,c=void 0===u?24:u,d=o.strokeWidth,f=void 0===d?2:d,p=o.absoluteStrokeWidth,m=o.className,h=o.children,y=o.iconNode,v=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]),b=Oz(s,1)[0];return(0,g.createElement)("svg",OV((r=OV({ref:b},OI),a=a={width:c,height:c,stroke:void 0===l?"currentColor":l,strokeWidth:p?24*Number(f)/Number(c):f,className:OR("lucide",void 0===m?"":m)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r),v),OW(y.map(function(e){var t=Oz(e,2),n=t[0],r=t[1];return(0,g.createElement)(n,r)})).concat(OW(Array.isArray(h)?h:[h])))});function OH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OG(e){if(Array.isArray(e))return e}function Oq(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function OY(e,t){if(e){if("string"==typeof e)return OH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OH(e,t)}}var OK=function(e,t){var n=(0,g.forwardRef)(function(n,r){var a,i=OG(a=[n,r])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||OY(a)||Oq(),o=i[0],s=i.slice(1),l=o.className,u=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["className"]),c=(OG(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||OY(s,1)||Oq())[0];return(0,g.createElement)(O$,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:c,iconNode:t,className:OR("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l)},u))});return n.displayName="".concat(e),n},OZ=OK("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),OX=OK("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),OQ=OK("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),OJ=OK("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),O0=OK("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),O1=OK("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),O2=OK("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),O3=OK("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),O5=OK("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),O4=OK("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),O6=OK("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),O8=OK("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]),O9=OK("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),O7=OK("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),ke=OK("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),kt=OK("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),kn=OK("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),kr=OK("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),ka=OK("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),ki=OK("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),ko=OK("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),ks=OK("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),kl=OK("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]),ku=OK("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),kc=OK("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),kd=OK("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),kf=OK("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),kp=OK("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]),km=OK("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),kh={BookOpen:OZ,Bell:OX,Bot:OQ,Building2:OJ,CalendarDays:O0,CircleHelp:O1,Folder:O2,FolderTree:O3,House:O5,Info:O4,LayoutGrid:O6,ListTree:O8,MapPin:O9,Megaphone:O7,Newspaper:ke,Search:kt,Settings:kn,Terminal:kr,Users:ka,Calendar:ki,CalendarCheck:ko,Compass:ks,Contact:kl,FileCheck:ku,FileText:kc,Globe:kd,Layers:kf,Radio:kp,Star:km,Zap:OK("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])};function ky(e){return e?kh[e]:void 0}function kv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kv(e,t,n[t])})}return e}function kb(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var kx="egen-workbench-layout",kw=["left","bottom","right"],kj={left:280,right:320,bottom:240},kS={left:{min:200,max:640},right:{min:220,max:640},bottom:{min:120,max:720}};function kE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:window.innerWidth,height:window.innerHeight},r=kS[e],a=r.min,i=r.max,o=Math.floor(("bottom"===e?.7*n.height:.5*n.width)||i),s=Math.max(a,Math.min(i,o));return Number.isFinite(t)?Math.round(Math.min(s,Math.max(a,t))):kj[e]}var kO=(0,hn.getGlobalStore)("workbench",function(){var e={sizes:kg({},kj),active:{left:null,right:null,bottom:null}};try{var t=window.localStorage.getItem(kx);if(!t)return e;var n=JSON.parse(t),r=!0,a=!1,i=void 0;try{for(var o,s=kw[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l,u,c=o.value,d=null==n||null==(l=n.sizes)?void 0:l[c];"number"==typeof d&&(e.sizes[c]=kE(c,d));var f=null==n||null==(u=n.active)?void 0:u[c];"string"==typeof f&&f.length>0&&(e.active[c]=f)}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}}catch(e){}return e}());function kk(e,t){var n=kO.getState().active;kO.setState({active:kb(kg({},n),kv({},e,n[e]===t?null:t))})}function kA(e){var t=kO.getState().active;null!==t[e]&&kO.setState({active:kb(kg({},t),kv({},e,null))})}function kD(e,t){var n=kO.getState().sizes,r=kE(e,t);n[e]!==r&&kO.setState({sizes:kb(kg({},n),kv({},e,r))})}function kP(e){kD(e,kj[e])}function kC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){kC(e,t,n[t])})}return e}kO.subscribe(function(e){try{window.localStorage.setItem(kx,JSON.stringify(e))}catch(e){}});var kN=(0,hn.getGlobalStore)("workbench-badges",{});function kM(e,t){var n,r,a=kN.getState();if(null==t||0===t||""===t){if(!(e in a))return;var i=kT({},a);delete i[e],kN.setState(i,!0);return}a[e]!==t&&kN.setState((n=kT({},a),r=null!=(r=kC({},e,t))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function kR(e){return"number"==typeof e&&e>99?"99+":String(e)}let kI={rail:"U-q0gY3cs3x5fbfEPnKCCQ==",railGroup:"ESBJAakRqUW3PKIR5eV7Ww==",railSpacer:"_80Qn0Gk7qaDa88KjnPoGaQ==",railBadge:"C7TqDakmZFR78UB-J0UZ8w==",railButton:"C1ayWSxgdA7nzrIoTIKRyA==",zone:"u7xBFkQcPLpLJlBCCG-wRw==",zoneHeader:"H4atJr2Xz56lwQF+UBpF9A==",zoneBody:"WhUjoxzwMEo+qqZXOwgINQ==","zone-left":"JG5S5j2hPjiJYAueOOpoZA==","zone-right":"IMXowfKwDYTJochm61bF3w==","zone-bottom":"tQPrkL3qbV2IAVC5VLJBrQ==",zoneTitle:"hjXw0i5pEu+GS+zHg-eDqw==",zoneHeaderTools:"pt+li0reVnJAMCPiIuAeOw==",zoneClose:"tyRTBpax-KejsMfsJ+bp6w==",zoneSlot:"Je+gZyA7+g660GqeJM+DTQ==",splitter:"qtg-hGW1DTeZScDybl76hQ==","splitter-left":"l2-471oYB4znZs5ivaNk4g==","splitter-right":"l9zLlul-KnjOFEeoewlqkQ==","splitter-bottom":"xtsAK0rdIruEBnmIik4+wQ=="};function k_(e){var t=e.anchor,n=e.label,r=OM(t,e.rail),a=(0,j.useStore)(kO).active[t];return 0===r.length?null:(0,v.jsx)("div",{role:"group","aria-label":n,"data-anchor":t,className:"".concat(kI.railGroup," egen-anim-stagger egen-anim-stagger--fade"),children:r.map(function(e){return(0,v.jsx)(kL,{tool:e,active:e.id===a,onClick:function(){return kk(t,e.id)}},e.id)})})}function kL(e){var t=e.tool,n=e.active,r=e.onClick,a=ON(t),i=ky(t.meta.icon),o=(0,j.useStore)(kN)[t.id];return(0,v.jsxs)("button",{type:"button",className:kI.railButton,"aria-pressed":n,"aria-label":a,title:a,"data-active":n,onClick:r,children:[i?(0,v.jsx)(i,{size:18,"aria-hidden":"true"}):(0,v.jsx)("span",{"aria-hidden":"true",children:a.charAt(0).toUpperCase()}),void 0!==o&&(0,v.jsx)("span",{className:kI.railBadge,"data-testid":"workbench-badge-".concat(t.id),children:kR(o)})]})}function kF(){return(0,v.jsxs)("nav",{"aria-label":"Outils de l'application","data-testid":"workbench-rail-left",className:kI.rail,children:[(0,v.jsx)(k_,{anchor:"left",label:"Panneau lat\xe9ral"}),(0,v.jsx)("span",{className:kI.railSpacer}),(0,v.jsx)(k_,{anchor:"bottom",rail:"left",label:"Panneau inf\xe9rieur"})]})}function kB(){return(0,v.jsxs)("nav",{"aria-label":"Outils globaux","data-testid":"workbench-rail-right",className:kI.rail,children:[(0,v.jsx)(k_,{anchor:"right",label:"Panneau droit"}),(0,v.jsx)("span",{className:kI.railSpacer}),(0,v.jsx)(k_,{anchor:"bottom",rail:"right",label:"Panneau inf\xe9rieur"})]})}var kV=OK("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kz="data-workbench-resizing";function kW(e){var t=e.anchor,n=e.label,r=(0,j.useStore)(kO).sizes[t],a=(0,g.useRef)(null),i="bottom"!==t,o=function(e){var t,n;a.current&&(a.current=null,null==(t=(n=e.currentTarget).releasePointerCapture)||t.call(n,e.pointerId),document.documentElement.removeAttribute(kz))};return(0,v.jsx)("div",{role:"separator",tabIndex:0,"aria-label":n,"aria-orientation":i?"vertical":"horizontal","aria-valuenow":r,"aria-valuemin":kE(t,0),"aria-valuemax":kE(t,Number.MAX_SAFE_INTEGER),"data-anchor":t,className:"".concat(kI.splitter," ").concat(kI["splitter-".concat(t)]),onPointerDown:function(e){if(0===e.button){var n,r,i,o,s=null!=(n=null==(r=e.currentTarget.parentElement)?void 0:r.parentElement)?n:e.currentTarget.parentElement;if(s){var l=s.getBoundingClientRect(),u="left"===t?l.left:"right"===t?l.right:l.bottom,c="left"===t?l.right:"right"===t?l.left:l.top;a.current={edge:u,grab:("bottom"===t?e.clientY:e.clientX)-c},null==(i=(o=e.currentTarget).setPointerCapture)||i.call(o,e.pointerId),document.documentElement.setAttribute(kz,t),e.preventDefault()}}},onPointerMove:function(e){if(a.current){var n,r,i,o;kD(t,(n=e.clientX,r=e.clientY,i=a.current.edge,o=a.current.grab,"left"===t?n-o-i:"right"===t?i-(n-o):i-(r-o)))}},onPointerUp:o,onPointerCancel:o,onDoubleClick:function(){return kP(t)},onKeyDown:function(e){var n="left"===t?"ArrowRight":"right"===t?"ArrowLeft":"ArrowUp",r="left"===t?"ArrowLeft":"right"===t?"ArrowRight":"ArrowDown";if(e.key===n)kD(t,kO.getState().sizes[t]+16);else if(e.key===r)kD(t,kO.getState().sizes[t]-16);else if("Home"===e.key)kD(t,0);else{if("End"!==e.key)return;kD(t,Number.MAX_SAFE_INTEGER)}e.preventDefault()}})}function kU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k$="data-tool-window-header";function kH(e){var t,n=e.children,r=(0,g.useRef)(null),a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kU(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kU(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return(0,g.useLayoutEffect)(function(){var e,t,n=null==(t=r.current)?void 0:t.closest("aside[data-anchor]");o(null!=(e=null==n?void 0:n.querySelector("[".concat(k$,"]")))?e:null)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{ref:r,hidden:!0}),void 0===i?null:null===i?n:(0,t1.createPortal)(n,i)]})}function kG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kq={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench"},kY={left:"--egen-zone-left-width",right:"--egen-zone-right-width",bottom:"--egen-zone-bottom-height"},kK={left:"egen-anim-slide-in-from-left",right:"egen-anim-slide-in-from-right",bottom:"egen-anim-slide-in-from-bottom"},kZ={left:"egen-anim-slide-out-to-left",right:"egen-anim-slide-out-to-right",bottom:"egen-anim-slide-out-to-bottom"};function kX(e){var t,n,r=e.anchor,a=OM(r),i=(0,j.useStore)(kO),o=i.active,s=i.sizes,l=o[r],u=s[r],c=a.find(function(e){return e.id===l}),d=!!c,f=(0,g.useRef)(void 0),p=(0,g.useRef)(!1),m=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)("open"))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return kG(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kG(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=m[0],y=m[1];c&&(f.current=c);var b=null!=c?c:"closing"===h?f.current:void 0,x=!!b;(0,g.useLayoutEffect)(function(){if(d!==p.current){p.current=d,y(d?"opening":"closing");var e=window.setTimeout(function(){d||(f.current=void 0),y("open")},300);return function(){return window.clearTimeout(e)}}},[d]),(0,g.useEffect)(function(){document.documentElement.style.setProperty(kY[r],d?"".concat(u,"px"):"0px")},[r,d,u]),(0,g.useEffect)(function(){return function(){document.documentElement.style.removeProperty(kY[r])}},[r]);var w=null==b?void 0:b.id,S=(0,g.useCallback)(function(e){return e.filter(function(e){return e.name===w})},[w]),E=b?ON(b):"",O="closing"===h?kZ[r]:"opening"===h?kK[r]:"";return(0,v.jsx)("aside",{"data-testid":"workbench-zone-".concat(r),"data-anchor":r,"data-open":d,"data-phase":h,"aria-label":E||void 0,hidden:!x,style:{"--egen-zone-inner-size":"".concat(u,"px")},className:"".concat(kI.zone," ").concat(kI["zone-".concat(r)]," ").concat(O),children:x&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("header",{className:kI.zoneHeader,children:[(0,v.jsx)("h2",{className:kI.zoneTitle,children:E}),(0,v.jsx)("div",(k$ in(n={className:kI.zoneHeaderTools})?Object.defineProperty(n,k$,{value:"",enumerable:!0,configurable:!0,writable:!0}):n[k$]="",n)),(0,v.jsx)("button",{type:"button",className:kI.zoneClose,"aria-label":"Fermer ".concat(E),title:"Fermer ".concat(E),onClick:function(){return kA(r)},children:(0,v.jsx)(kV,{size:14,"aria-hidden":"true"})})]}),(0,v.jsx)("div",{className:"".concat(kI.zoneBody," egen-anim-fade-in"),children:(0,v.jsx)(j.ComponentContext.Provider,{value:kq,children:(0,v.jsx)(j.ExtensionSlot,{name:hr.As[r],select:S,className:kI.zoneSlot})})},w),"closing"!==h&&(0,v.jsx)(kW,{anchor:r,label:"Redimensionner ".concat(E)})]})})}var kQ={moduleName:"@egen-civitas/esm-styleguide",featureName:"workbench",strictMode:!1},kJ=(0,j.egenComponentDecorator)(kQ)(kF),k0=(0,j.egenComponentDecorator)(kQ)(kB),k1=(0,j.egenComponentDecorator)(kQ)(kX);function k2(e){var t=e.railLeft,n=e.railRight,r=e.zoneLeft,a=e.zoneRight,i=e.zoneBottom;t&&(0,hF.createRoot)(t).render((0,v.jsx)(kJ,{})),n&&(0,hF.createRoot)(n).render((0,v.jsx)(k0,{})),r&&(0,hF.createRoot)(r).render((0,v.jsx)(k1,{anchor:"left"})),a&&(0,hF.createRoot)(a).render((0,v.jsx)(k1,{anchor:"right"})),i&&(0,hF.createRoot)(i).render((0,v.jsx)(k1,{anchor:"bottom"}))}function k3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||k6(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k4(e){return function(e){if(Array.isArray(e))return k3(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k6(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k6(e,t){if(e){if("string"==typeof e)return k3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k3(e,t)}}var k8=function(e,t,n){return t?(0,V.t)(e,t,n):n};function k9(){var e=window.getEgenSpaBase().replace(/\/$/,""),t=window.location.pathname;return(t.startsWith(e)?t.slice(e.length):t).replace(/^\/+|\/+$/g,"")}function k7(e){var t,n,r,a=e.section,i=(0,j.useAssignedExtensions)(hr.H9),o=(n=(t=k5((0,g.useState)(k9),2))[0],r=t[1],(0,g.useEffect)(function(){var e=function(){return r(k9())};return window.addEventListener("single-spa:routing-event",e),window.addEventListener("popstate",e),e(),function(){window.removeEventListener("single-spa:routing-event",e),window.removeEventListener("popstate",e)}},[]),n),s=k5((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useMemo)(function(){var e=new Map,t=!0,n=!1,r=void 0;try{for(var o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l=o.value;if((0,hr.DK)(l.meta)&&l.meta.section===a){var u=l.meta,c=null!=(f=u.group)?f:"",d=e.get(c);if(!d){var f,p,m=u.group?null!=(p=u.groupLabel)?p:u.group:void 0;d={key:c,label:m?k8(l.moduleName,u.groupLabelKey,m):void 0,entries:[]},e.set(c,d)}d.entries.push({name:l.name,moduleName:l.moduleName,meta:u})}}}catch(e){n=!0,r=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw r}}return k4(e.values())},[i,a]),d=(0,g.useMemo)(function(){var e,t,n=c.flatMap(function(e){return e.entries}).filter(function(e){var t;return o===(t=e.meta.route)||o.startsWith("".concat(t,"/"))});if(0===n.length)return null;var r=(e=Math).max.apply(e,k4(n.map(function(e){return e.meta.route.length}))),a=n.filter(function(e){return e.meta.route.length===r});return(null!=(t=a.find(function(e){return e.name===l}))?t:a[0]).name},[c,o,l]);return 0===c.length?null:(0,v.jsx)("nav",{className:"_7eztyhT6g8BBF+b2zwNxzQ==","data-testid":"section-nav-".concat(a),children:c.map(function(e){return(0,v.jsxs)("div",{className:"_39E0CGSd4CEdvjRf4uhk1A==",role:"group","aria-label":e.label,children:[e.label&&(0,v.jsx)("h3",{className:"Qe0xVBpoxvmDH+4PTCE6sA==",children:e.label}),(0,v.jsx)("ul",{className:"aTi-X-2m0FLjgtWqGpnRAQ==",children:e.entries.map(function(e){var t=ky(e.meta.icon),n=k8(e.moduleName,e.meta.labelKey,e.meta.label),r=e.meta.description?k8(e.moduleName,e.meta.descriptionKey,e.meta.description):void 0;return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",className:"znzmYEQH9TLAv93dGs-RHw==","data-active":e.name===d,"aria-current":e.name===d?"page":void 0,title:r,onClick:function(){u(e.name),(0,ge.oo)({to:"${egenSpaBase}/".concat(e.meta.route)})},children:[t&&(0,v.jsx)(t,{size:16,"aria-hidden":"true",className:"kE-ZZCWIUUr-U9WBp1ALhQ=="}),(0,v.jsx)("span",{className:"K-KnQoVYGW8SaVVvvZhYAg==",children:n})]})},e.name)})})]},e.key)})})}var Ae={fade:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},scale:{initial:{opacity:0,scale:.94},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96}},zoom:{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6}},"slide-up":{initial:{opacity:0,y:48},animate:{opacity:1,y:0},exit:{opacity:0,y:24}},"slide-down":{initial:{opacity:0,y:-48},animate:{opacity:1,y:0},exit:{opacity:0,y:-24}},"slide-left":{initial:{opacity:0,x:48},animate:{opacity:1,x:0},exit:{opacity:0,x:24}},"slide-right":{initial:{opacity:0,x:-48},animate:{opacity:1,x:0},exit:{opacity:0,x:-24}},warp:{initial:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100},animate:{opacity:1,rotateX:0,skewY:0,scaleY:1,scaleX:1,y:0,transition:{duration:.35,ease:[.59,0,.35,1],y:{type:"spring",visualDuration:.7,bounce:.2}}},exit:{opacity:0,rotateX:-5,skewY:-1.5,scaleY:2,scaleX:.4,y:100,transition:{duration:.35,ease:[.59,0,.35,1]}}},none:{initial:{},animate:{},exit:{}}},At={warp:{transformPerspective:1e3,originX:.5,originY:0}};function An(){cN.current||cR();let[e]=(0,g.useState)(cT.current);return e}let Ar={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",warpGlow:"lYwavaEqP5zZdSgBjnAJMA==",warpWave:"jRakhK4YumTwCC7BXtuFBg==",warpWaveTint:"cU-bGBRAWHh2yEPWcXkLIQ==",warpBlob:"h0LgItaR7oviJoeBaSTnpg==",warpBlobA:"QN0RGZu3WONOa+NKEx3Yfg==",warpBlobB:"xt+VET70amAh1iOdz50cJw==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};var Aa=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({opacity:.9,transition:{duration:.5,scale:{duration:15,repeat:1/0,repeatType:"loop",ease:"easeInOut",delay:.35}}},e?{}:{scale:[1,.7,1]})},Ai=function(){var e=An();return(0,v.jsxs)("div",{className:Ar.warpGlow,"aria-hidden":"true",children:[(0,v.jsx)(mq.div,{className:Ar.warpWave,initial:{scale:0,opacity:1},animate:{scale:e?1:10,opacity:.2,transition:{duration:.5,opacity:{duration:.5,ease:"easeInOut"}}},exit:{scale:0,opacity:1,transition:{duration:.25}}}),(0,v.jsx)(mq.div,{className:"".concat(Ar.warpBlob," ").concat(Ar.warpBlobA),initial:{opacity:0},animate:Aa(e),exit:{opacity:0,transition:{duration:.25}}}),(0,v.jsx)(mq.div,{className:"".concat(Ar.warpBlob," ").concat(Ar.warpBlobB),initial:{opacity:0},animate:Aa(e),exit:{opacity:0,transition:{duration:.25}}})]})};function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function As(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){As(e,t,n[t])})}return e}function Au(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ac=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ad=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Af=function(e){var t,n,r,a,i,o,s,l,u,c=e.open,d=e.defaultOpen,f=e.onOpenChange,p=e.trigger,m=e.children,h=e.showCloseButton,y=e.renderCloseButton,b=e.cardVariant,x=e.cardProps,j=e.draggable,S=void 0!==j&&j,E=e.dockable,O=void 0!==E&&E,k=e.dockIcon,A=e.dockEdgeThreshold,D=void 0===A?80:A,P=e.dockUndockDistance,C=void 0===P?120:P,T=e.dockSize,N=void 0===T?56:T,M=e.closeOnOverlayClick,R=e.closeOnEscape,I=void 0===R||R,_=e.showOverlay,F=e.lockScroll,B=void 0===F||F,V=e.animation,z=void 0===V?"scale":V,W=e.overlayAnimation,U=e.overlayEffect,$=e.warpColor,H=e.className,G=e.style,q=e.overlayClassName,Y=Au((0,g.useState)(void 0!==d&&d),2),K=Y[0],Z=Y[1],X=Au((0,g.useState)(!1),2),Q=X[0],J=X[1],ee=Au((0,g.useState)(null),2),et=ee[0],en=ee[1],er=(0,g.useRef)(null),ea=(0,g.useId)(),ei=void 0!==c,eo=ei?c:K,es=(0,g.useCallback)(function(e){null==f||f(e),ei||Z(e)},[f,ei]),el=(0,g.useCallback)(function(){return es(!1)},[es]);(0,g.useEffect)(function(){return J(!0)},[]),(0,g.useEffect)(function(){eo&&en(null)},[eo]);var eu=(0,g.useCallback)(function(){if(O&&er.current&&"u">typeof window){var e=er.current.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;if(et)return void(Math.abs(t-("left"===et.side?0:window.innerWidth))>C?en(null):en({side:et.side,y:Ac(n,N)}));t<=D?en({side:"left",y:Ac(n,N)}):t>=window.innerWidth-D&&en({side:"right",y:Ac(n,N)})}},[O,et,D,C,N]);(0,g.useEffect)(function(){if(eo&&B)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[eo,B]),(0,g.useEffect)(function(){if(eo&&I){var e=function(e){"Escape"===e.key&&el()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[eo,I,el]);var ec=Ad(z)?z:{preset:z},ed=null!=(r=ec.variants)?r:Ae[null!=(a=ec.preset)?a:"scale"],ef={duration:null!=(i=ec.duration)?i:.25,ease:null!=(o=ec.ease)?o:[.16,1,.3,1]},ep=ec.variants?void 0:null!=(s=ec.preset)?s:"scale",em=ep?At[ep]:void 0,eh=null!=U?U:"warp"===ep?"warp":"none",ey={duration:null!=(l=null==W?void 0:W.duration)?l:.2,ease:null!=(u=null==W?void 0:W.ease)?u:"easeOut"},ev=(0,v.jsx)(EP,{children:eo&&(0,v.jsxs)("div",{className:Ar.root,children:[(void 0===_||_)&&!et&&(0,v.jsx)(mq.div,{className:w()(Ar.overlay,q),style:"warp"===eh?{"--card-modal-warp-color":null!=$?$:"var(--colors-error-500)"}:void 0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ey,onClick:void 0===M||M?el:void 0,"aria-hidden":"true",children:"warp"===eh&&(0,v.jsx)(Ai,{})}),et?(0,v.jsx)(mq.div,{ref:er,className:w()(Ar.dockBubble,Ar["dockBubble--".concat(et.side)]),style:As({top:et.y,width:N,height:N},et.side,-(N/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eu,initial:{scale:.3,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.3,opacity:0},transition:{type:"spring",stiffness:420,damping:32},whileDrag:{cursor:"grabbing"},role:"button",tabIndex:0,"aria-label":"D\xe9ployer le modal",onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&en(null)},children:null!=k?k:(0,v.jsx)(oQ,{size:20})}):(0,v.jsx)("div",{className:Ar.centerLayer,children:(0,v.jsx)(mq.div,{ref:er,role:"dialog","aria-modal":"true","aria-labelledby":(null==x?void 0:x.title)?ea:void 0,className:w()(Ar.panel,H),style:Al({},em,G),variants:ed,initial:"initial",animate:"animate",exit:"exit",transition:ef,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:O?eu:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,v.jsxs)(L,(t=Al({variant:void 0===b?"default":b},x),n=n={children:[(void 0===h||h)&&(y?y(el):(0,v.jsx)("button",{type:"button",className:Ar.closeButton,onClick:el,"aria-label":"Fermer",children:(0,v.jsx)(oO,{size:18})})),m]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})})]})});return(0,v.jsxs)(v.Fragment,{children:[p&&(0,v.jsx)("span",{className:Ar.triggerWrap,onClick:function(){return es(!0)},children:p}),Q&&(0,t1.createPortal)(ev,document.body)]})},Ap=(0,g.createContext)(null);function Am(){var e=(0,g.useContext)(Ap);if(!e)throw Error("Select compound components must be used within <Select>");return e}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e){var t,n=e.children,r=e.options,a=e.selectedOptionId,i=e.onOptionChange,o=e.open,s=e.onOpenChange,l=e.getOptionId,u=void 0===l?function(e){return e.id}:l,c=e.getOptionName,d=void 0===c?function(e){return e.name}:c,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Ah(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ah(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(null),y=void 0!==o,b=y?o:p,x=(0,g.useCallback)(function(e){null==s||s(e),y||m(e)},[s,y]),w=(0,g.useMemo)(function(){var e;return a&&null!=(e=r.find(function(e){return u(e)===a}))?e:r[0]},[r,a,u]),j=(0,g.useCallback)(function(e){null==i||i(e),x(!1)},[i,x]);return(0,v.jsx)(Ap.Provider,{value:{open:b,setOpen:x,selectedOption:w,options:r,onOptionSelect:j,getOptionId:u,getOptionName:d,triggerRef:h},children:n})}function Av(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ag=function(e){var t,n=e.src,r=e.name,a=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Av(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Av(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=a[0],o=a[1];return n&&!i?(0,v.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:n,alt:"",onError:function(){return o(!0)}}):(0,v.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:r.charAt(0).toUpperCase()})};function Ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ax=function(e){var t,n,r=e.className,a=e.renderTrigger,i=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Am(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,v.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ab(e,t,n[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:w()("t3j-WppHuYF4Q80G8ssYTw==",r),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),n=n={children:[a?a(d,u):(0,v.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,v.jsxs)(v.Fragment,{children:[(void 0===i||i)&&(0,v.jsx)(Ag,{src:d.logo,name:f(d)}),(0,v.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,v.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,v.jsx)(ow,{className:w()("Mx+cKK19Fg1ZkYsq9XTF+Q==",Ab({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};function Aw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Aw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var AE=function(e){var t=e.className,n=e.style,r=e.renderOption,a=e.title,i=void 0===a?"Options":a,o=e.searchable,s=e.searchPlaceholder,l=void 0===s?"Rechercher…":s,u=e.onSearch,c=e.emptyMessage,d=e.showAvatar,f=void 0===d||d,p=e.children,m=Am(),h=m.open,y=m.setOpen,b=m.options,x=m.selectedOption,j=m.onOptionSelect,S=m.getOptionId,E=m.getOptionName,O=m.triggerRef,k=AS((0,g.useState)(""),2),A=k[0],D=k[1],P=AS((0,g.useState)(null),2),C=P[0],T=P[1],N=(0,g.useRef)(null);(0,g.useLayoutEffect)(function(){if(h&&O.current){var e=O.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[h,O]),(0,g.useLayoutEffect)(function(){if(h){var e=function(e){var t,n,r=e.target;(null==(t=N.current)?void 0:t.contains(r))||(null==(n=O.current)?void 0:n.contains(r))||y(!1)},t=function(e){"Escape"===e.key&&y(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[h,y,O]),(0,g.useLayoutEffect)(function(){null==u||u(A)},[A,u]);var M=(0,g.useMemo)(function(){if(!A.trim())return b;var e=A.trim().toLowerCase();return b.filter(function(t){return E(t).toLowerCase().includes(e)})},[b,A,E]);return(0,v.jsx)(EP,{children:h&&C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return y(!1)},"aria-hidden":"true"}),(0,v.jsxs)(mq.div,{ref:N,role:"listbox",className:w()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Aj(e,t,n[t])})}return e}({top:C.top,left:C.left,minWidth:C.width},n),initial:{opacity:0,y:-6,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-6,scale:.98,transition:{duration:.15}},transition:{duration:.18,ease:"easeOut"},children:[i&&(0,v.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,v.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:i})}),void 0!==o&&o&&(0,v.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,v.jsx)(sl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,v.jsx)("input",{type:"search",value:A,onChange:function(e){return D(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,v.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===M.length?(0,v.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):M.map(function(e){var t=!!(x&&S(x)===S(e));return(0,v.jsx)("button",{type:"button",role:"option","aria-selected":t,className:w()("mqfrCZDVzn25GOVXds14vw==",Aj({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return j(e)},children:r?r(e,t):(0,v.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,v.jsx)(Ag,{src:e.logo,name:E(e)}),(0,v.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,v.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:E(e)}),"string"==typeof e.plan&&(0,v.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,v.jsx)(ob,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},S(e))})}),p&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,v.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let AO="YDxgnSM2QPGOYYICdgjq7Q==";function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||AD(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AD(e,t){if(e){if("string"==typeof e)return Ak(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ak(e,t)}}function AP(e){var t=e.options,n=e.defaultActiveIndex,r=e.onChange,a=e.title,i=e.subtitle,o=e.className,s=e.style,l=AA((0,g.useState)(void 0===n?0:n),2),u=l[0],c=l[1],d=AA((0,g.useState)([]),2),f=d[0],p=d[1],m=function(e){e!==u&&(c(e),null==r||r(e))};return(0,g.useEffect)(function(){var e=[];return t.forEach(function(t,n){var r=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return Ak(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AD(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([n])})},180*n);e.push(r)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,v.jsxs)("div",{className:w()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(a||i)&&(0,v.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[a&&(0,v.jsx)("h1",{className:w()("TsIf8Q8vAVSLc-vC4h6-UA==",AO,"CUA6-RpM0KPkwxkPhWbpzg=="),children:a}),i&&(0,v.jsx)("p",{className:w()("GiaxLFLhrXHmZTTZjk2qqg==",AO,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:i})]}),(0,v.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,v.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var n=u===t,r=f.includes(t);return(0,v.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":n,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:n?"auto 100%":"auto 120%",opacity:+!!r,transform:r?"translateX(0)":"translateX(-60px)",borderColor:n?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:n?"0 20px 60px color-mix(in srgb, var(--colors-neutral-950) 50%, transparent)":"0 10px 30px color-mix(in srgb, var(--colors-neutral-950) 30%, transparent)",flex:n?"7 1 0%":"1 1 0%",zIndex:n?10:1},onClick:function(){return m(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),m(t))},children:[(0,v.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:n?"0":"-40px",boxShadow:n?"inset 0 -120px 120px -120px var(--colors-neutral-950), inset 0 -120px 120px -80px var(--colors-neutral-950)":"inset 0 -120px 0px -120px var(--colors-neutral-950), inset 0 -120px 0px -80px var(--colors-neutral-950)"}}),(0,v.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,v.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,v.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,v.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.title}),(0,v.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!n,transform:n?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function AC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function AT(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var AN=function(e){return AC({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},e)},AM=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"m6 9 6 6 6-6"})}))},AR=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"M20 6 9 17l-5-5"})}))},AI=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,v.jsx)("path",{d:"m7 9 5-5 5 5"})]}))},A_=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,v.jsx)("path",{d:"m21 21-4.3-4.3"})]}))},AL=function(e){return(0,v.jsxs)("svg",AT(AC({},AN(e)),{children:[(0,v.jsx)("path",{d:"M18 6 6 18"}),(0,v.jsx)("path",{d:"m6 6 12 12"})]}))},AF=function(e){return(0,v.jsx)("svg",AT(AC({},AN(e)),{children:(0,v.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))};function AB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return AB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AB(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Az={type:"spring",duration:.5,bounce:.22},AW="flex w-full items-center justify-between gap-2 px-3.5 py-2.5 text-sm",AU={hidden:{opacity:0,y:-6,filter:"blur(3px)"},show:{opacity:1,y:0,filter:"blur(0px)"}},A$=(0,g.createContext)(null);function AH(e){var t=(0,g.useContext)(A$);if(!t)throw Error("".concat(e," must be used within <MorphSelect>"));return t}function AG(e){var t,n=e.value,r=e.defaultValue,a=e.onValueChange,i=e.open,o=e.defaultOpen,s=e.onOpenChange,l=e.disabled,u=void 0!==l&&l,c=e.transition,d=void 0===c?Az:c,f=e.radius,p=void 0===f?12:f,m=e.stagger,h=void 0===m?.035:m,y=e.staggerDelay,b=void 0===y?.08:y,x=e.className,w=e.children,j=null!=(t=An())&&t,S=(0,g.useId)(),E=(0,g.useRef)(null),O=AV((0,g.useState)(void 0!==o&&o),2),k=O[0],A=O[1],D=void 0!==i,P=D?i:k,C=(0,g.useCallback)(function(e){D||A(e),null==s||s(e)},[D,s]),T=AV((0,g.useState)(r),2),N=T[0],M=T[1],R=AV((0,g.useState)(new Map),2),I=R[0],_=R[1],L=AV((0,g.useState)("Select"),2),F=L[0],B=L[1],V=void 0!==n,z=V?n:N,W=(0,g.useCallback)(function(e){V||M(e),null==a||a(e),C(!1)},[V,a,C]),U=(0,g.useCallback)(function(e,t){_(function(n){var r,a,i=new Map(n);return i.set(e,{label:t,count:(null!=(r=null==(a=n.get(e))?void 0:a.count)?r:0)+1}),i})},[]),$=(0,g.useCallback)(function(e){_(function(t){var n=t.get(e);if(!n)return t;var r=new Map(t);return n.count<=1?r.delete(e):r.set(e,{label:n.label,count:n.count-1}),r})},[]);(0,g.useEffect)(function(){if(P){var e=function(e){return"Escape"===e.key&&C(!1)},t=function(e){E.current&&!E.current.contains(e.target)&&C(!1)};return window.addEventListener("keydown",e),window.addEventListener("pointerdown",t),function(){window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t)}}},[P,C]);var H=(0,g.useMemo)(function(){return{value:z,open:P,setOpen:C,select:W,register:U,unregister:$,labelFor:function(e){var t;return void 0===e||null==(t=I.get(e))?void 0:t.label},placeholder:F,setPlaceholder:B,reduce:j,layoutId:"".concat(S,"-surface"),triggerId:"".concat(S,"-trigger"),listId:"".concat(S,"-list"),disabled:u,transition:d,radius:p,stagger:h,staggerDelay:b}},[z,P,C,W,U,$,I,F,j,S,u,d,p,h,b]);return(0,v.jsx)(A$.Provider,{value:H,children:(0,v.jsx)("div",{ref:E,className:yt("relative",x),children:w})})}function Aq(e){var t,n=e.placeholder,r=e.className,a=AH("MorphSelectValue");(0,g.useEffect)(function(){n&&a.setPlaceholder(n)},[n,a.setPlaceholder]);var i=a.labelFor(a.value);return(0,v.jsx)("span",{className:yt(i?"text-foreground":"text-muted-foreground",r),children:null!=(t=null!=i?i:n)?t:"Select"})}function AY(e){var t,n,r=e.className,a=e.icon,i=e.children,o=AH("MorphSelectTrigger"),s=null!=a?a:(0,v.jsx)(AM,{className:"h-4 w-4"});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"aria-hidden":!0},{inert:""}),n=n={className:yt(AW,"invisible rounded-xl border border-border"),children:[i,s]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:o.open?null:(0,v.jsxs)(mq.button,{layoutId:o.layoutId,type:"button",id:o.triggerId,disabled:o.disabled,"aria-haspopup":"listbox","aria-expanded":o.open,"aria-controls":o.listId,onClick:function(){return o.setOpen(!0)},transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:yt(AW,"absolute inset-x-0 top-0 z-10 border border-border bg-background text-foreground outline-none transition-colors","hover:border-input focus-visible:ring-2 focus-visible:ring-foreground/20","disabled:pointer-events-none disabled:opacity-50",r),children:[(0,v.jsx)(mq.span,{layout:"position",className:"min-w-0 truncate",children:i}),(0,v.jsx)(mq.span,{layout:"position",className:"text-muted-foreground",children:s})]},"trigger")})]})}function AK(e){var t=e.className,n=e.headerClassName,r=e.listClassName,a=e.icon,i=e.children,o=AH("MorphSelectContent"),s=o.labelFor(o.value),l=(0,g.useMemo)(function(){return{hidden:{},show:{transition:{staggerChildren:o.stagger,delayChildren:o.staggerDelay}}}},[o.stagger,o.staggerDelay]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"hidden",children:i}),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:o.open?(0,v.jsxs)(mq.div,{layoutId:o.layoutId,id:o.listId,role:"listbox","aria-labelledby":o.triggerId,transition:o.reduce?{duration:0}:o.transition,style:{borderRadius:o.radius},className:yt("absolute inset-x-0 top-0 z-30 overflow-hidden border border-border bg-background shadow-lg",t),children:[(0,v.jsxs)(mq.button,{type:"button",layout:"position","aria-expanded":!0,onClick:function(){return o.setOpen(!1)},className:yt(AW,"outline-none",n),children:[(0,v.jsx)("span",{className:yt("min-w-0 truncate",s?"text-foreground":"text-muted-foreground"),children:null!=s?s:o.placeholder}),(0,v.jsx)(mq.span,{animate:{rotate:180},transition:o.reduce?{duration:0}:o.transition,className:"text-muted-foreground",children:null!=a?a:(0,v.jsx)(AM,{className:"h-4 w-4"})})]}),(0,v.jsx)("div",{className:"h-px bg-border"}),(0,v.jsx)(mq.ul,{initial:"hidden",animate:"show",variants:o.reduce?void 0:l,className:yt("p-1",r),children:i})]},"panel"):null})]})}function AZ(e){var t=e.value,n=e.disabled,r=e.label,a=e.indicator,i=e.className,o=e.children,s=AH("MorphSelectItem"),l=s.value===t,u=null!=r?r:"string"==typeof o?o:t;return(0,g.useLayoutEffect)(function(){return s.register(t,u),function(){return s.unregister(t)}},[s.register,s.unregister,t,u]),(0,v.jsx)(mq.li,{variants:s.reduce?void 0:AU,children:(0,v.jsxs)("button",{type:"button",role:"option","aria-selected":l,disabled:void 0!==n&&n,onClick:function(){return s.select(t)},className:yt("flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors",l?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted","disabled:pointer-events-none disabled:opacity-50",i),children:[o,l?null!=a?a:(0,v.jsx)(AR,{className:"h-3.5 w-3.5 shrink-0"}):null]})})}function AX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AQ(e){if(Array.isArray(e))return e}function AJ(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function A0(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function A1(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function A3(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function A5(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function A4(e,t){return AQ(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||A8(e,t)||A1()}function A6(e){return AQ(e)||A0(e)||A8(e)||A1()}function A8(e,t){if(e){if("string"==typeof e)return AX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AX(e,t)}}var A9=function(e){var t=e.state;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 text-muted-foreground transition-colors group-hover:text-foreground pointer-events-none",children:(0,v.jsx)("path",{d:"x"===t?"M 6 18 L 18 6 M 18 18 L 6 6":"up"===t?"M 6 15 L 12 9 M 18 15 L 12 9":"M 6 9 L 12 15 M 18 9 L 12 15",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",style:{transition:"d 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}})})},A7=function(e){var t=e.className;return(0,v.jsx)("svg",{viewBox:"0 0 24 24",className:yt("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,v.jsx)("polyline",{points:"20 6 9 17 4 12"})})},De=function(e){var t=e.className;return(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:yt("w-4 h-4",t),fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,v.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})},Dt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A4(g.useState(!1),2),n=t[0],r=t[1],a=g.useRef(null),i=g.useRef(null),o=g.useRef(null),s=function(t){if(!e&&a.current&&i.current){r(!0),null==(n=o.current)||n.cancel();var n,s=a.current.getBoundingClientRect(),l=Math.max(s.width,s.height),u=Math.max(.35*l,75),c=Math.floor(.2*l),d=Math.sqrt(Math.pow(s.width,2)+Math.pow(s.height,2)),f=Math.min(Math.max(400,1.5*d),1e3),p={x:(s.width-c)/2,y:(s.height-c)/2},m=p;t&&"clientX"in t&&(m={x:t.clientX-s.left-c/2,y:t.clientY-s.top-c/2}),i.current.style.width="".concat(c,"px"),i.current.style.height="".concat(c,"px"),o.current=i.current.animate([{transform:"translate(".concat(m.x,"px, ").concat(m.y,"px) scale(1)")},{transform:"translate(".concat(p.x,"px, ").concat(p.y,"px) scale(").concat((d+10+u)/c,")")}],{duration:f,easing:"cubic-bezier(0.2, 0, 0, 1)",fill:"forwards"})}},l=function(){var e;return(e=function(){var e;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!((e=o.current)&&"number"==typeof e.currentTime&&e.currentTime<300))return[3,2];return[4,new Promise(function(t){return setTimeout(t,300-e.currentTime)})];case 1:t.sent(),t.label=2;case 2:return r(!1),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){AJ(i,r,a,o,s,"next",e)}function s(e){AJ(i,r,a,o,s,"throw",e)}o(void 0)})})()};return{surfaceRef:a,rippleRef:i,pressed:n,events:{onPointerDown:function(e){0===e.button&&s(e)},onPointerUp:l,onPointerLeave:l,onPointerCancel:l}}},Dn=g.forwardRef(function(e,t){var n=e.pressed,r=e.rippleRef;return(0,v.jsxs)("div",{ref:t,className:"absolute inset-0 overflow-hidden rounded-[inherit] pointer-events-none z-0",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-current opacity-0 transition-opacity duration-200 group-hover/m3item:opacity-[0.08] group-data-[active=true]:opacity-[0.08]"}),(0,v.jsx)("div",{ref:r,className:"absolute rounded-full opacity-0 bg-current",style:{background:"radial-gradient(closest-side, currentColor max(calc(100% - 70px), 65%), transparent 100%)",transition:"opacity 375ms linear",opacity:n?"0.12":"0",transitionDuration:n?"100ms":"375ms"}})]})});Dn.displayName="RippleLayer";var Dr=g.forwardRef(function(e,t){var n=A6([e,t]),r=n[0],a=n.slice(1),i=r.children,o=r.className,s=r.viewportRef,l=A5(r,["children","className","viewportRef"]),u=A4(a,1)[0],c=g.useRef(null),d=s||c,f=g.useRef(null),p=g.useRef(null),m=A4(g.useState(0),2),h=m[0],y=m[1],b=A4(g.useState(0),2),x=b[0],w=b[1],j=A4(g.useState(!1),2),S=j[0],E=j[1],O=g.useRef({startY:0,startScrollTop:0}),k=g.useCallback(function(){if(d.current){var e=d.current,t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;if(f.current&&(f.current.style.opacity=t>0?"1":"0"),p.current&&(p.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1"),n>r){var a=Math.max(r/n*r,30);y(a),w((r-a)/(n-r)*t)}else y(0)}},[d]);return g.useEffect(function(){var e=d.current;if(e){k();var t=new ResizeObserver(function(){return k()});t.observe(e),e.firstElementChild&&t.observe(e.firstElementChild);var n=new MutationObserver(function(){return k()});return n.observe(e,{childList:!0,subtree:!0,characterData:!0}),function(){t.disconnect(),n.disconnect()}}},[k,d]),g.useEffect(function(){if(S){var e=function(e){if(d.current){var t=e.clientY-O.current.startY,n=d.current,r=n.scrollHeight,a=n.clientHeight,i=Math.max(a/r*a,30);d.current.scrollTop=O.current.startScrollTop+(r-a)/(a-i)*t}},t=function(){E(!1),document.body.style.userSelect=""};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),function(){window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}}},[S,d]),(0,v.jsxs)("div",A3(A2({ref:u,"data-dragging":S,className:yt("relative overflow-hidden group/scroll",o)},l),{children:[(0,v.jsx)("div",{ref:f,className:"absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),(0,v.jsx)("div",{ref:d,onScroll:k,style:{maxHeight:"inherit"},className:"w-full overflow-y-auto m3-hide-scroll rounded-[inherit]",children:i}),(0,v.jsx)("div",{ref:p,className:"absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-card to-transparent pointer-events-none z-20 transition-opacity duration-300 opacity-0"}),h>0&&(0,v.jsx)("div",{className:yt("absolute inset-y-0 right-0 z-50 flex items-start justify-end py-0.5 px-0.5 w-4 transition-opacity duration-300 cursor-default","opacity-0 pointer-events-none","group-hover/scroll:opacity-100 group-hover/scroll:pointer-events-auto","group-data-[dragging=true]/scroll:opacity-100 group-data-[dragging=true]/scroll:pointer-events-auto"),children:(0,v.jsx)("div",{className:yt("bg-border rounded-full transition-all duration-200 cursor-default touch-none shadow-sm","w-1 hover:w-1.5 hover:bg-muted-foreground","group-data-[dragging=true]/scroll:w-1.5 group-data-[dragging=true]/scroll:bg-muted-foreground"),style:{height:h,transform:"translateY(".concat(x,"px)")},onPointerDown:function(e){var t;e.preventDefault(),e.stopPropagation(),E(!0),O.current={startY:e.clientY,startScrollTop:(null==(t=d.current)?void 0:t.scrollTop)||0},document.body.style.userSelect="none"}})})]}))});Dr.displayName="CustomFloatingScrollArea";var Da=function(){return(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @keyframes m3-auto-item-cinematic { \n 0% { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } \n 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } \n }\n \n @keyframes m3-chip-enter { \n 0% { opacity: 0; transform: scale(0.8) translate3d(8px, 0, 0); } \n 100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } \n }\n\n .m3-chip-animate {\n animation: m3-chip-enter 200ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;\n }\n \n .m3-auto-container[data-state="open"] .m3-auto-item { \n opacity: 0; \n animation: m3-auto-item-cinematic 350ms cubic-bezier(0.1, 0.8, 0.2, 1) forwards; \n }\n\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(1) { animation-delay: 50ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(2) { animation-delay: 100ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(3) { animation-delay: 150ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(4) { animation-delay: 200ms; }\n .m3-auto-container[data-state="open"] .m3-auto-item:nth-child(n+5) { animation-delay: 250ms; }\n\n .m3-hide-scroll {\n scrollbar-width: none;\n -ms-overflow-style: none;\n }\n .m3-hide-scroll::-webkit-scrollbar {\n display: none;\n }\n '}})},Di=g.forwardRef(function(e,t){var n=A6([e,t]),r=n[0],a=n.slice(1),i=r.className,o=r.children,s=r.isActive,l=r.isSelected,u=r.onSelectAction,c=A5(r,["className","children","isActive","isSelected","onSelectAction"]),d=A4(a,1)[0],f=Dt(),p=f.surfaceRef,m=f.rippleRef,h=f.pressed,y=f.events;return(0,v.jsxs)("li",A3(A2({ref:function(e){p.current=e,"function"==typeof d?d(e):d&&(d.current=e)},role:"option","aria-selected":l,"data-active":s,className:yt("m3-auto-item group/m3item relative flex items-center p-3 px-4 cursor-pointer text-sm outline-none transition-colors overflow-hidden",s&&"bg-secondary/50 text-secondary-foreground",i),onMouseDown:function(e){e.preventDefault()},onClick:function(){setTimeout(function(){return u()},150)}},y,c),{children:[(0,v.jsx)(Dn,{rippleRef:m,pressed:h}),(0,v.jsx)("span",{className:"relative z-10 flex w-full items-center pointer-events-none",children:o})]}))});function Do(e){var t=e.items,n=e.placeholder,r=e.emptyMessage,a=e.value,i=e.onValueChange,o=e.disabled,s=e.isCreatable,l=e.onCreate,u=e.className,c=e.onInputChange,d=e.loading,f=e.filterFn,p=e.debounceInterval,m=void 0===p?0:p,h=e.name,y=e.id,b=e.required,x=e["aria-label"],w=e["aria-labelledby"],j=e.maxOptions,S=e.minOptions,E=e.classNames,O=e.labels,k=e.renderItem,A=e.maxListHeight,D=void 0===A?260:A,P=e.chipMaxWidth,C=void 0===P?120:P,T=e.style,N=Array.isArray(a),M=null!=(eE=null==O?void 0:O.empty)?eE:void 0===r?"No results found.":r,R=null!=(eO=null==O?void 0:O.loading)?eO:"Loading results...",I=null!=(ek=null==O?void 0:O.clear)?ek:"Clear",_=null!=(eA=null==O?void 0:O.toggle)?eA:"Toggle options",L=null!=(eD=null==O?void 0:O.create)?eD:function(e){return'Create "'.concat(e,'"')},F=g.useId(),B=y?"".concat(y,"-listbox"):"".concat(F,"-listbox"),V=function(e){return"".concat(B,"-option-").concat(e)},z=A4(g.useState(function(){if(a){var e;return Array.isArray(a)?"":(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||""}return""}),2),W=z[0],U=z[1],$=A4(g.useState(W),2),H=$[0],G=$[1],q=A4(g.useState(!1),2),Y=q[0],K=q[1],Z=A4(g.useState("closed"),2),X=Z[0],Q=Z[1],J=A4(g.useState(-1),2),ee=J[0],et=J[1],en=g.useRef("mouse"),er=A4(g.useState("bottom"),2),ea=er[0],ei=er[1],eo=A4(g.useState(D),2),es=eo[0],el=eo[1],eu=g.useRef(null),ec=g.useRef(null),ed=g.useRef(null),ef=g.useRef(null),ep=g.useRef(null),em=g.useRef(null),eh=g.useRef(null),ey=g.useRef(null),ev=g.useRef(null),eg=A4(g.useState(a),2),eb=eg[0],ex=eg[1],ew=A4(g.useState(t),2),ej=ew[0],eS=ew[1];if(a!==eb||t!==ej)if(ex(a),eS(t),N)a&&0!==a.length||(U(""),G(""));else if(a){var eE,eO,ek,eA,eD,eP,eC=(null==(eP=t.find(function(e){return e.value===a}))?void 0:eP.label)||"";U(eC),G(eC)}else U(""),G("");var eT=Dt(o),eN=eT.surfaceRef,eM=eT.rippleRef,eR=eT.pressed,eI=eT.events,e_=Dt(o),eL=e_.surfaceRef,eF=e_.rippleRef,eB=e_.pressed,eV=e_.events,ez=g.useMemo(function(){return!1===f||null===f?t:f?t.filter(function(e){return f(e,H)}):H?t.filter(function(e){return e.label.toLowerCase().includes(H.toLowerCase())}):t},[t,H,f]),eW=A4(g.useState(ez),2),eU=eW[0],e$=eW[1];g.useEffect(function(){"open"===X&&e$(ez)},[ez,X]);var eH=g.useCallback(function(){if(ec.current){var e=ec.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top,r=t<280&&n>t?"top":"bottom";ei(r),el(Math.max(100,Math.min(D,("bottom"===r?t:n)-16)))}},[D]);g.useEffect(function(){var e=ec.current;if(e){var t=new ResizeObserver(function(){eH()});return t.observe(e),e.parentElement&&t.observe(e.parentElement),window.addEventListener("resize",eH),function(){t.disconnect(),window.removeEventListener("resize",eH)}}},[eH]),g.useEffect(function(){if(Y)return window.addEventListener("scroll",eH,{capture:!0,passive:!0}),function(){window.removeEventListener("scroll",eH,!0)}},[Y,eH]);var eG=g.useCallback(function(e){U(e),ev.current&&clearTimeout(ev.current),m&&m>0?ev.current=setTimeout(function(){G(e),c&&c(e)},m):(G(e),c&&c(e))},[m,c]),eq=g.useCallback(function(e){if(K(!0),Q("open"),ey.current&&clearTimeout(ey.current),"number"==typeof e)et(e);else{var t=ez.findIndex(function(e){return e.value===a});et(t>=0?t:-1)}},[ez,a]),eY=g.useCallback(function(){if(K(!1),Q("closing"),et(-1),N)U(""),G("");else if(a){var e,n=(null==(e=t.find(function(e){return e.value===a}))?void 0:e.label)||"";U(n),G(n)}else U(""),G("");ey.current&&clearTimeout(ey.current),ey.current=setTimeout(function(){Q(function(e){return"closing"===e?"closed":e})},300)},[a,t,N]);g.useEffect(function(){return function(){ey.current&&clearTimeout(ey.current),ev.current&&clearTimeout(ev.current)}},[]),g.useEffect(function(){var e=function(e){ec.current&&!ec.current.contains(e.target)&&Y&&eY()};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[Y,eY]),g.useEffect(function(){if(ee>=0&&ed.current&&"keyboard"===en.current){var e=ed.current.children[ee];e&&e.scrollIntoView({block:"nearest"})}},[ee]);var eK=g.useCallback(function(){var e=ep.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;em.current&&(em.current.style.opacity=t>1?"1":"0"),eh.current&&(eh.current.style.opacity=Math.ceil(t+r)>=n-1?"0":"1")}},[]),eZ=g.useRef(0);g.useEffect(function(){if(N){var e=ep.current;if(e){var t=(null==a?void 0:a.length)||0;t>eZ.current&&requestAnimationFrame(function(){e.scrollLeft=e.scrollWidth}),eZ.current=t}}},[a,N]),g.useEffect(function(){var e,t,n=ep.current;if(n){var r=!1,a=function(a){r=!0,e=a.pageX-n.offsetLeft,t=n.scrollLeft,document.body.style.userSelect="none"},i=function(){r&&(r=!1,document.body.style.userSelect="")},o=function(a){if(r){a.preventDefault();var i=(a.pageX-n.offsetLeft-e)*1.5;n.scrollLeft=t-i}},s=function(e){0!==e.deltaY&&(e.preventDefault(),n.scrollLeft+=e.deltaY)};n.addEventListener("mousedown",a),n.addEventListener("mouseleave",i),n.addEventListener("mouseup",i),n.addEventListener("mousemove",o),n.addEventListener("wheel",s,{passive:!1}),eK(),n.addEventListener("scroll",eK);var l=new ResizeObserver(function(){return eK()});return l.observe(n),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseleave",i),n.removeEventListener("mouseup",i),n.removeEventListener("mousemove",o),n.removeEventListener("wheel",s),n.removeEventListener("scroll",eK),l.disconnect(),document.body.style.userSelect=""}}},[Y,a,eK]);var eX=void 0!==s&&s&&W.length>0&&!t.some(function(e){return e.label.toLowerCase()===W.toLowerCase()}),eQ=function(e){var n;if(N){var r,o,s=a||[];if(s.includes(e)){if("number"==typeof S&&s.length<=S){null==(r=eu.current)||r.focus();return}var l=s.filter(function(t){return t!==e});i&&i(l)}else{if("number"==typeof j&&s.length>=j){null==(o=eu.current)||o.focus();return}var u=((function(e){if(Array.isArray(e))return AX(e)})(s)||A0(s)||A8(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);i&&i(u)}U(""),G(""),c&&c("")}else{if(a===e)U(""),G(""),i&&i("");else{var d,f=(null==(d=t.find(function(t){return t.value===e}))?void 0:d.label)||"";U(f),G(f),i&&i(e)}eY()}null==(n=eu.current)||n.focus()},eJ=function(){var e;l&&W&&l(W),N||eY(),null==(e=eu.current)||e.focus()},e0=W.length>0?"x":Y?"up":"down",e1="closing"===X?eU:ez,e2=N&&(a||[]).length>0,e3=g.useCallback(function(e){if(!N)return!1;var t=a||[];return!t.includes(e)&&"number"==typeof j&&!!(t.length>=j)},[N,a,j]),e5=Y||"closing"===X;return(0,v.jsxs)("div",{ref:ec,style:T,className:yt("relative w-full transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",e2?"h-[5.25rem]":"h-11",u,null==E?void 0:E.root),children:[(0,v.jsx)(Da,{}),h&&(N?(a||[]).length>0?(a||[]).map(function(e){return(0,v.jsx)("input",{type:"hidden",name:h,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:h,value:"",required:b}):(0,v.jsx)("input",{type:"hidden",name:h,value:a||"",required:b})),(0,v.jsxs)("div",{"data-state":X,className:yt("m3-auto-container absolute inset-x-0 flex bg-card overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]","top"===ea?"bottom-0 flex-col-reverse":"top-0 flex-col",e5?"z-50 rounded-[1.25rem] border border-border shadow-[0px_16px_32px_rgba(0,0,0,0.14)]":"z-10 rounded-xl border border-input/60 shadow-sm hover:border-input h-full",null==E?void 0:E.container),children:[(0,v.jsxs)("div",{className:yt("relative flex items-center w-full h-11 flex-shrink-0 pl-4 pr-1.5 z-30",null==E?void 0:E.inputRow),children:[(0,v.jsx)("input",{ref:eu,id:y,role:"combobox","aria-expanded":Y,"aria-autocomplete":"list","aria-controls":B,"aria-activedescendant":ee>=0?V(ee):void 0,"aria-label":x,"aria-labelledby":w,value:W,onChange:function(e){var t=e.target.value;eG(t);var n=t.length>0?0:-1;Y?et(n):eq(n),en.current="keyboard"},onFocus:function(){return eq()},onKeyDown:function(e){var t=ez.length+ +!!eX;if("Tab"===e.key){Y&&eY();return}if(!Y&&("ArrowDown"===e.key||"ArrowUp"===e.key)){e.preventDefault(),eq();return}if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),en.current="keyboard",et(function(e){return(e+1)%t});break;case"ArrowUp":e.preventDefault(),en.current="keyboard",et(function(e){return(e-1+t)%t});break;case"Home":e.preventDefault(),en.current="keyboard",et(0);break;case"End":e.preventDefault(),en.current="keyboard",et(t-1);break;case"Enter":if(e.preventDefault(),ee>=0)if(ee<ez.length){var n=ez[ee],r=N&&a||[],i=r.includes(n.value);N&&!i&&"number"==typeof j&&r.length>=j||eQ(n.value)}else eX&&eJ();break;case"Escape":eY()}},disabled:o,placeholder:n||"Select an option...",autoComplete:"off",className:yt("flex-1 h-full bg-transparent outline-none text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==E?void 0:E.input)}),(0,v.jsxs)("button",A3(A2({ref:eN,type:"button",tabIndex:-1,className:yt("p-1.5 rounded-full z-20 hover:bg-muted/50 transition-all relative overflow-hidden h-8 w-8 flex items-center justify-center flex-shrink-0",null==E?void 0:E.toggleButton),onClick:function(e){var t;e.preventDefault(),null==(t=eu.current)||t.focus(),W.length>0?(eG(""),!N&&i&&i(""),Y||eq(-1)):Y?eY():eq()},disabled:o,"aria-label":_},eI),{children:[(0,v.jsx)(Dn,{rippleRef:eM,pressed:eR}),(0,v.jsx)("span",{className:"relative z-10 flex items-center justify-center pointer-events-none",children:(0,v.jsx)(A9,{state:e0})})]}))]}),N&&(a||[]).length>0&&(0,v.jsxs)("div",{className:yt("relative flex items-center justify-between h-10 overflow-hidden flex-shrink-0 border-border/40","top"===ea?"border-b":"border-t",null==E?void 0:E.chipsRow),children:[(0,v.jsx)("div",{ref:em,className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(0,v.jsx)("div",{ref:ep,className:"flex items-center gap-1.5 overflow-x-auto m3-hide-scroll flex-1 min-w-0 h-full py-0.5 pl-4 pr-12 select-none cursor-default",children:(a||[]).map(function(e){var n=t.find(function(t){return t.value===e});return n?(0,v.jsxs)("button",{type:"button",className:yt("m3-chip-animate group/chip relative flex items-center h-6 px-3 bg-secondary text-secondary-foreground text-xs font-medium rounded-full flex-shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] overflow-hidden cursor-default select-none",null==E?void 0:E.chip),onClick:function(){var t,n=a||[];if("number"!=typeof S||!(n.length<=S)){var r=n.filter(function(t){return t!==e});i&&i(r),null==(t=eu.current)||t.focus()}},children:[(0,v.jsx)("span",{className:"truncate",style:{maxWidth:C},children:n.label}),(0,v.jsx)("div",{className:"absolute inset-y-0 right-0 w-8 flex items-center justify-end pr-2 bg-gradient-to-l from-secondary via-secondary/90 to-transparent opacity-0 translate-x-2 group-hover/chip:opacity-100 group-hover/chip:translate-x-0 transition-all duration-150 pointer-events-none",children:(0,v.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-3 h-3 stroke-current text-muted-foreground",fill:"none",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,v.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,v.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},e):null})}),(0,v.jsx)("div",{ref:eh,className:"absolute right-[60px] top-0 bottom-0 w-12 bg-gradient-to-l from-card to-transparent pointer-events-none z-20 transition-opacity duration-150 opacity-0"}),(!S||0===S)&&(0,v.jsxs)("button",A3(A2({ref:eL,type:"button",onClick:function(){var e;i&&i([]),null==(e=eu.current)||e.focus()},className:yt("px-3 h-8 rounded-full text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:bg-muted/50 transition-all relative overflow-hidden flex-shrink-0 flex items-center justify-center mr-1.5 cursor-default z-30",null==E?void 0:E.clearButton)},eV),{children:[(0,v.jsx)(Dn,{rippleRef:eF,pressed:eB}),(0,v.jsx)("span",{className:"relative",children:I})]}))]}),(0,v.jsx)("div",{className:yt("grid transition-[grid-template-rows,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] relative z-10",Y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),onMouseDown:function(e){e.preventDefault()},children:(0,v.jsx)("div",{className:"overflow-hidden",children:"closed"!==X&&(0,v.jsx)("div",{className:"flex flex-col w-full",children:(0,v.jsx)(Dr,{viewportRef:ef,style:{maxHeight:"".concat(es,"px")},className:"w-full",children:(0,v.jsx)("ul",{ref:ed,id:B,role:"listbox","aria-multiselectable":N,className:yt("w-full text-popover-foreground outline-none pb-2 pt-1",null==E?void 0:E.list),children:void 0!==d&&d?(0,v.jsxs)("li",{className:yt("m3-auto-item p-6 flex flex-col items-center justify-center gap-2 text-xs text-muted-foreground",null==E?void 0:E.loadingState),children:[(0,v.jsxs)("svg",{className:"animate-spin h-5 w-5 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,v.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3.5"}),(0,v.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,v.jsx)("span",{className:"font-medium tracking-wide",children:R})]}):0!==e1.length||eX?(0,v.jsxs)(v.Fragment,{children:[e1.map(function(e,t){var n=e3(e.value),r=N?!!(null==a?void 0:a.includes(e.value)):a===e.value,i=ee===t;return(0,v.jsxs)(Di,{id:V(t),isActive:i,isSelected:r,onSelectAction:function(){n||eQ(e.value)},onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==t&&et(t))},className:yt(n&&"opacity-40 cursor-not-allowed pointer-events-none",null==E?void 0:E.item),children:[r&&(0,v.jsx)(A7,{className:"mr-3 flex-shrink-0 text-primary"}),k?k(e,{isActive:i,isSelected:r,isDisabled:n}):(0,v.jsxs)("div",{className:"flex flex-col w-full",children:[(0,v.jsx)("span",{className:"whitespace-normal break-words font-medium",children:e.label}),(e.description||e.tag)&&(0,v.jsxs)("div",{className:"flex justify-between items-center text-[11px] font-medium text-muted-foreground/70 w-full mt-0.5 gap-4",children:[(0,v.jsx)("span",{className:"truncate uppercase tracking-wider",children:e.description}),(0,v.jsx)("span",{className:"truncate",children:e.tag})]})]})]},e.value)}),eX&&(0,v.jsxs)(Di,{id:V(ez.length),isActive:ee===ez.length,isSelected:!1,onSelectAction:eJ,onMouseMove:function(e){(0!==e.movementX||0!==e.movementY)&&(en.current="mouse",ee!==ez.length&&et(ez.length))},className:yt("text-primary/90 font-medium border-t border-border/40",null==E?void 0:E.item),children:[(0,v.jsx)(De,{className:"mr-3 flex-shrink-0"}),(0,v.jsx)("span",{children:L(W)})]})]}):(0,v.jsx)("li",{className:yt("m3-auto-item p-4 px-4 text-sm text-center text-muted-foreground",null==E?void 0:E.emptyState),children:M})})})})})})]})]})}function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Dc(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Du(e){return function(e){if(Array.isArray(e))return Ds(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dc(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dc(e,t){if(e){if("string"==typeof e)return Ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ds(e,t)}}Di.displayName="M3AutocompleteItem";var Dd=function(e,t){var n,r=t.trim().toLowerCase();return!r||[e.label,e.value,e.description].concat(Du(null!=(n=e.keywords)?n:[])).filter(Boolean).some(function(e){return String(e).toLowerCase().includes(r)})};function Df(e){var t,n,r=e.items,a=e.value,i=e.defaultValue,o=e.onValueChange,s=e.open,l=e.defaultOpen,u=e.onOpenChange,c=e.disabled,d=e.placeholder,f=e.searchPlaceholder,p=e.emptyMessage,m=e.searchable,h=e.allowDeselect,y=void 0===h||h,b=e.closeOnSelect,x=void 0===b||b,w=e.filterFn,j=e.onSearchChange,S=e.side,E=void 0===S?"auto":S,O=e.align,k=void 0===O?"center":O,A=e.sideOffset,D=void 0===A?4:A,P=e.renderItem,C=e.renderValue,T=e.triggerIcon,N=e.checkIcon,M=e.name,R=e.id,I=e["aria-label"],_=e.classNames,L=e.className,F=e.style,B=g.useId(),V="".concat(B,"-listbox"),z=function(e){return"".concat(B,"-option-").concat(e)},W=void 0!==a,U=Dl(g.useState(void 0===i?"":i),2),$=U[0],H=U[1],G=W?a:$,q=void 0!==s,Y=Dl(g.useState(void 0!==l&&l),2),K=Y[0],Z=Y[1],X=q?s:K,Q=g.useCallback(function(e){q||Z(e),null==u||u(e)},[q,u]),J=Dl(g.useState(""),2),ee=J[0],et=J[1],en=Dl(g.useState(0),2),er=en[0],ea=en[1],ei=Dl(g.useState("bottom"),2),eo=ei[0],es=ei[1],el=g.useRef("mouse"),eu=g.useRef(null),ec=g.useRef(null),ed=g.useRef(null),ef=g.useRef(null),ep=g.useMemo(function(){return r.find(function(e){return e.value===G})},[r,G]),em=g.useMemo(function(){if(!1===w)return r;var e=null!=w?w:Dd;return r.filter(function(t){return e(t,ee)})},[r,ee,w]),eh=g.useCallback(function(e){var t,n=y&&e===G?"":e;W||H(n),null==o||o(n),x&&(Q(!1),null==(t=ec.current)||t.focus())},[y,G,W,o,x,Q]);g.useEffect(function(){if(!X)return void et("");var e=em.findIndex(function(e){return e.value===G&&!e.disabled});ea(e>=0?e:Math.max(0,em.findIndex(function(e){return!e.disabled})));var t=requestAnimationFrame(function(){var e;return null==(e=ed.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(t)}},[X]),g.useLayoutEffect(function(){if(X&&eu.current){if("auto"!==E)return void es(E);var e=eu.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;es(t<340&&n>t?"top":"bottom")}},[X,E]),g.useEffect(function(){if(X){var e=function(e){eu.current&&!eu.current.contains(e.target)&&Q(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[X,Q]),g.useEffect(function(){X&&ea(Math.max(0,em.findIndex(function(e){return!e.disabled})))},[ee]),g.useEffect(function(){var e,t;X&&"keyboard"===el.current&&(null==(t=ef.current)||null==(e=t.querySelector('[data-index="'.concat(er,'"]')))||e.scrollIntoView({block:"nearest"}))},[er,X]);var ey=function(e,t){var n=em.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!em[r=(r+e+n)%n].disabled)return r;return t},ev=yt("bottom"===eo?"top-full":"bottom-full","start"===k&&"left-0","center"===k&&"left-1/2","end"===k&&"right-0"),eg=(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},"bottom"===eo?{marginTop:D}:{marginBottom:D}),n=n={"--egen-combobox-to":"center"===k?"translateX(-50%)":"translateX(0)","--egen-combobox-from-bottom":"".concat("center"===k?"translateX(-50%) ":"","translateY(-8px)"),"--egen-combobox-from-top":"".concat("center"===k?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===k?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),eb=[];em.forEach(function(e,t){var n=eb[eb.length-1];n&&n.heading===e.group?n.entries.push({item:e,index:t}):eb.push({heading:e.group,entries:[{item:e,index:t}]})});var ex=function(e){var t=e.item,n=e.index,r=G===t.value,a=er===n;return(0,v.jsxs)("div",{id:z(n),role:"option","data-index":n,"data-selected":a,"data-disabled":t.disabled?"true":void 0,"aria-selected":r,"aria-disabled":t.disabled||void 0,onMouseMove:function(){t.disabled||(el.current="mouse",er!==n&&ea(n))},onClick:function(){return!t.disabled&&eh(t.value)},className:yt("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==_?void 0:_.item),children:[P?P(t,{isActive:a,isSelected:r}):(0,v.jsxs)(v.Fragment,{children:[t.icon,t.description?(0,v.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,v.jsx)("span",{className:"truncate",children:t.label}),(0,v.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:t.description})]}):t.label]}),N&&r?(0,v.jsx)("span",{className:yt("ml-auto",null==_?void 0:_.itemCheck),children:N}):(0,v.jsx)(AR,{className:yt("ml-auto",r?"opacity-100":"opacity-0",null==_?void 0:_.itemCheck)})]},t.value)};return(0,v.jsxs)("div",{ref:eu,style:F,className:yt("relative w-full max-w-xs",L,null==_?void 0:_.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-combobox-in-bottom { from { opacity: 0; transform: var(--egen-combobox-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n@keyframes egen-combobox-in-top { from { opacity: 0; transform: var(--egen-combobox-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-combobox-to) scale(1); } }\n.egen-combobox-content[data-side="bottom"] { animation: egen-combobox-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-combobox-content[data-side="top"] { animation: egen-combobox-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-combobox-content { animation: none !important; } }\n'}}),M?(0,v.jsx)("input",{type:"hidden",name:M,value:G}):null,(0,v.jsxs)("button",{ref:ec,id:R,type:"button",role:"combobox","aria-expanded":X,"aria-haspopup":"listbox","aria-controls":X?V:void 0,"aria-label":I,disabled:void 0!==c&&c,onClick:function(){return Q(!X)},onKeyDown:function(e){X||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),Q(!0))},className:yt("inline-flex h-9 w-full shrink-0 items-center justify-between gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium whitespace-nowrap text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",null==_?void 0:_.trigger),children:[(0,v.jsx)("span",{className:"min-w-0 truncate",children:C?C(ep):ep?ep.label:void 0===d?"Select...":d}),null!=T?T:(0,v.jsx)(AI,{className:"size-4 shrink-0 opacity-50"})]}),X?(0,v.jsx)("div",{"data-side":eo,"data-state":"open",style:eg,className:yt("egen-combobox-content absolute z-50 w-72 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",ev,null==_?void 0:_.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),Q(!1),null==(t=ec.current)||t.focus();return}if("Tab"===e.key)return void Q(!1);if(0!==em.length)switch(e.key){case"ArrowDown":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(1,e)});break;case"ArrowUp":e.preventDefault(),el.current="keyboard",ea(function(e){return ey(-1,e)});break;case"Home":e.preventDefault(),el.current="keyboard",ea(Math.max(0,em.findIndex(function(e){return!e.disabled})));break;case"End":e.preventDefault(),el.current="keyboard";var n=Du(em).reverse().findIndex(function(e){return!e.disabled});ea(n>=0?em.length-1-n:0);break;case"Enter":e.preventDefault();var r=em[er];r&&!r.disabled&&eh(r.value)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[void 0===m||m?(0,v.jsxs)("div",{className:yt("flex h-9 items-center gap-2 border-b border-border px-3",null==_?void 0:_.searchWrapper),children:[(0,v.jsx)(A_,{className:yt("size-4 shrink-0 opacity-50",null==_?void 0:_.searchIcon)}),(0,v.jsx)("input",{ref:ed,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":V,"aria-activedescendant":em.length?z(er):void 0,placeholder:void 0===f?"Search...":f,value:ee,onChange:function(e){et(e.target.value),el.current="keyboard",null==j||j(e.target.value)},className:yt("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==_?void 0:_.searchInput)})]}):(0,v.jsx)("input",{ref:ed,readOnly:!0,"aria-label":I,"aria-controls":V,"aria-activedescendant":em.length?z(er):void 0,className:"sr-only"}),(0,v.jsx)("div",{ref:ef,id:V,role:"listbox",className:yt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",null==_?void 0:_.list),children:0===em.length?(0,v.jsx)("div",{className:yt("py-6 text-center text-sm",null==_?void 0:_.empty),children:void 0===p?"No results found.":p}):eb.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:yt("overflow-hidden p-1 text-foreground",null==_?void 0:_.group),children:[e.heading?(0,v.jsx)("div",{className:yt("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==_?void 0:_.groupHeading),children:e.heading}):null,e.entries.map(ex)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))})})]})}):null]})}function Dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dh(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Dv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||Db(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dg(e){return function(e){if(Array.isArray(e))return Dm(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Db(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Db(e,t){if(e){if("string"==typeof e)return Dm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dm(e,t)}}var Dx=function(e){return void 0===e||""===e?[]:Array.isArray(e)?e:[e]},Dw=function(e){var t;return Array.isArray(e)?{items:e,hasMore:!1}:{items:null!=(t=e.items)?t:[],hasMore:!!e.hasMore}},Dj=function(e){return"number"==typeof e?"".concat(e,"px"):e};function DS(e){var t,n,r,a,i,o,s,l,u,c,d=e.fetcher,f=e.getOptionValue,p=e.getOptionLabel,m=e.renderOption,h=e.getDisplayValue,y=e.getOptionGroup,b=e.getOptionDisabled,x=e.preload,w=void 0!==x&&x,j=e.filterFn,S=e.debounceMs,E=e.minQueryLength,O=void 0===E?0:E,k=e.fetchOnOpen,A=e.cacheResults,D=void 0===A||A,P=e.reloadKey,C=e.initialOptions,T=e.resolveOption,N=e.open,M=e.defaultOpen,R=e.onOpenChange,I=e.disabled,_=void 0!==I&&I,L=e.name,F=e.id,B=e["aria-label"],V=e.label,z=e.placeholder,W=void 0===z?"Select...":z,U=e.searchPlaceholder,$=e.noResultsMessage,H=e.minQueryMessage,G=e.loadingMessage,q=e.retryLabel,Y=e.clearLabel,K=e.removeLabel,Z=void 0===K?function(e){return"Remove ".concat(e)}:K,X=e.errorMessage,Q=void 0===X?"Failed to fetch options":X,J=e.loadMoreErrorLabel,ee=e.searchable,et=e.clearable,en=void 0===et||et,er=e.showClearButton,ea=e.closeOnSelect,ei=e.width,eo=e.contentWidth,es=void 0===eo?"trigger":eo,el=e.side,eu=void 0===el?"auto":el,ec=e.align,ed=void 0===ec?"start":ec,ef=e.sideOffset,ep=void 0===ef?4:ef,em=e.maxListHeight,eh=void 0===em?300:em,ey=e.loadingSkeleton,ev=e.loadingIndicator,eg=e.notFound,eb=e.renderError,ex=e.header,ew=e.footer,ej=e.triggerIcon,eS=e.checkIcon,eE=e.controllerRef,eO=e.classNames,ek=e.className,eA=e.triggerClassName,eD=e.style,eP=!0===e.multiple,eC=!0===e.multiple?e.maxSelected:void 0,eT=!0===e.multiple&&null!=(u=e.maxVisibleTags)?u:3,eN=!0===e.multiple?e.renderTag:void 0,eM=null!=ea?ea:!eP,eR=g.useId(),eI="".concat(eR,"-listbox"),e_=function(e){return"".concat(eR,"-option-").concat(e)},eL=g.useCallback(function(e){return p?p(e):f(e)},[p,f]),eF=void 0!==e.value,eB=Dv(g.useState(function(){return Dx(e.defaultValue)}),2),eV=eB[0],ez=eB[1],eW=eF?Dx(e.value):eV,eU=void 0!==N,e$=Dv(g.useState(void 0!==M&&M),2),eH=e$[0],eG=e$[1],eq=eU?N:eH,eY=g.useCallback(function(e){eU||eG(e),null==R||R(e)},[eU,R]),eK=g.useRef(new Map),eZ=g.useRef(new Set),eX=Dv(g.useReducer(function(e){return e+1},0),2)[1];g.useMemo(function(){null==C||C.forEach(function(e){return eK.current.set(f(e),e)})},[C]);var eQ=g.useRef(T);eQ.current=T;var eJ=eW.join("\0");g.useEffect(function(){var e=eQ.current;if(e){var t=!1;return eW.forEach(function(n){eK.current.has(n)||eZ.current.has(n)||(eZ.current.add(n),Promise.resolve(e(n)).then(function(e){t||void 0===e||(eK.current.set(n,e),eX())}).catch(function(){}))}),function(){t=!0}}},[eJ]);var e0=Dv(g.useState(""),2),e1=e0[0],e2=e0[1],e3=(t=w?"":e1,n=w?0:void 0===S?300:S,i=(a=function(e){if(Array.isArray(e))return e}(r=g.useState(t))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(r)||function(e){if(e){if("string"==typeof e)return Dp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dp(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=a[1],g.useEffect(function(){if(!(n<=0)){var e=setTimeout(function(){return o(t)},n);return function(){return clearTimeout(e)}}},[t,n]),n<=0?t:i),e5=e3.trim(),e4=!w&&e5.length>0&&e5.length<O,e6=Dv(g.useState([]),2),e8=e6[0],e9=e6[1],e7=Dv(g.useState("idle"),2),te=e7[0],tt=e7[1],tn=Dv(g.useState(null),2),tr=tn[0],ta=tn[1],ti=Dv(g.useState(!1),2),to=ti[0],ts=ti[1],tl=Dv(g.useState(!1),2),tu=tl[0],tc=tl[1],td=Dv(g.useState(!1),2),tf=td[0],tp=td[1],tm=Dv(g.useState(0),2),th=tm[0],ty=tm[1],tv=g.useRef(d);tv.current=d;var tg=g.useRef(f);tg.current=f;var tb=g.useRef(new Map),tx=g.useRef(0),tw=g.useRef(0),tj=g.useRef(null),tS=(eq||!(void 0===k||k))&&!e4,tE="".concat(null!=P?P:"","\0").concat(th,"\0").concat(""===e5?"":e3),tO=g.useCallback(function(e){e.forEach(function(e){return eK.current.set(tg.current(e),e)})},[]);g.useEffect(function(){if(tS){var e,t=D?tb.current.get(tE):void 0;if(t){e9(t.items),ts(t.hasMore),tp(!1),tw.current=t.page,ta(null),tt("ready");return}null==(e=tj.current)||e.abort();var n=new AbortController,r=++tx.current;return tt("loading"),ta(null),tp(!1),Promise.resolve().then(function(){return tv.current(""===e5?"":e3,{signal:n.signal,page:0})}).then(function(e){if(!n.signal.aborted&&r===tx.current){var t=Dw(e);tO(t.items),D&&tb.current.set(tE,{items:t.items,hasMore:t.hasMore,page:0}),tw.current=0,e9(t.items),ts(t.hasMore),tt("ready"),eX()}}).catch(function(e){if(!n.signal.aborted&&r===tx.current){var t;ta((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)&&e.message?e.message:Q),tt("error")}}),function(){return n.abort()}}},[tS,tE,D]);var tk=g.useCallback(function(){tb.current.delete(tE),ty(function(e){return e+1})},[tE]),tA=g.useCallback(function(){var e;return(e=function(){var e,t,n,r,a;return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:if("ready"!==te||!to||tu)return[2];e=tx.current,t=tw.current+1,tj.current=n=new AbortController,tc(!0),tp(!1),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,tv.current(""===e5?"":e3,{signal:n.signal,page:t})];case 2:if(r=i.sent(),n.signal.aborted||e!==tx.current)return[2];return tO((a=Dw(r)).items),e9(function(e){var n=new Set(e.map(function(e){return tg.current(e)})),r=Dg(e).concat(Dg(a.items.filter(function(e){return!n.has(tg.current(e))})));return D&&tb.current.set(tE,{items:r,hasMore:a.hasMore,page:t}),r}),tw.current=t,ts(a.hasMore),[3,5];case 3:return i.sent(),n.signal.aborted||e!==tx.current||tp(!0),[3,5];case 4:return tj.current===n&&(tj.current=null,tc(!1)),[7];case 5:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Dh(i,r,a,o,s,"next",e)}function s(e){Dh(i,r,a,o,s,"throw",e)}o(void 0)})})()},[te,to,tu,e5,e3,tO,D,tE]);g.useEffect(function(){return function(){var e;tx.current+=1,null==(e=tj.current)||e.abort()}},[]);var tD=g.useMemo(function(){return!1===j?null:j||(w?function(e,t){var n=t.trim().toLowerCase();return!n||eL(e).toLowerCase().includes(n)}:null)},[j,w,eL]),tP=g.useMemo(function(){return tD&&e1?e8.filter(function(e){return tD(e,e1)}):e8},[e8,tD,e1]),tC=eW.map(function(e){return eK.current.get(e)}),tT=eP&&void 0!==eC&&eW.length>=eC,tN=function(e){return!!(null==b?void 0:b(e))||tT&&!eW.includes(f(e))},tM=function(t){var n,r,a;eF||ez(t),!0===e.multiple?null==(n=e.onChange)||n.call(e,t,t.map(function(e){return eK.current.get(e)}).filter(function(e){return void 0!==e})):null==(a=e.onChange)||a.call(e,null!=(r=t[0])?r:"",void 0!==t[0]?eK.current.get(t[0]):void 0)},tR=g.useRef(null),tI=g.useRef(null),t_=g.useRef(null),tL=g.useRef(null),tF=g.useRef(null),tB=function(e){var t,n=f(e);if(eK.current.set(n,e),eP){var r=eW.includes(n);if(!r&&tT)return;tM(r?eW.filter(function(e){return e!==n}):Dg(eW).concat([n]))}else tM(en&&eW[0]===n?[]:[n]);eM&&(eY(!1),null==(t=tR.current)||t.focus())},tV=function(e){return tM(eW.filter(function(t){return t!==e}))},tz=function(){return tM([])};g.useImperativeHandle(eE,function(){return{open:function(){return!_&&eY(!0)},close:function(){return eY(!1)},focus:function(){var e;return null==(e=tR.current)?void 0:e.focus()},clear:tz,refresh:function(){tb.current.clear(),ty(function(e){return e+1})}}},[_,eY,eW,eF]);var tW=Dv(g.useState(0),2),tU=tW[0],t$=tW[1],tH=Dv(g.useState("bottom"),2),tG=tH[0],tq=tH[1],tY=g.useRef("mouse"),tK=function(){return Math.max(0,tP.findIndex(function(e){return!tN(e)}))};g.useEffect(function(){if(!eq)return void e2("");var e=requestAnimationFrame(function(){var e;return null==(e=t_.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[eq]),g.useEffect(function(){if(eq){var e=eP||void 0===eW[0]?-1:tP.findIndex(function(e){return f(e)===eW[0]&&!tN(e)});t$(e>=0?e:tK())}},[eq,e1,te]),g.useLayoutEffect(function(){if(eq&&tI.current){if("auto"!==eu)return void tq(eu);var e=tI.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;tq(t<Math.min(eh,300)+48&&n>t?"top":"bottom")}},[eq,eu,eh]),g.useEffect(function(){if(eq){var e=function(e){tI.current&&!tI.current.contains(e.target)&&eY(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[eq,eY]),g.useEffect(function(){var e,t,n;eq&&"keyboard"===tY.current&&(null==(n=tL.current)||null==(t=n.querySelector('[data-index="'.concat(tU,'"]')))||null==(e=t.scrollIntoView)||e.call(t,{block:"nearest"}))},[tU,eq]),g.useEffect(function(){if(!(!eq||!to||"ready"!==te||tf||"u"<typeof IntersectionObserver)){var e=tF.current;if(e){var t=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&tA()},{root:tL.current,rootMargin:"48px"});return t.observe(e),function(){return t.disconnect()}}}},[eq,to,te,tf,tA,tP.length]);var tZ=function(e,t){var n=tP.length;if(0===n)return -1;for(var r=t,a=0;a<n;a++)if(!tN(tP[r=(r+e+n)%n]))return r;return t},tX=yt("bottom"===tG?"top-full":"bottom-full","start"===ed&&"left-0","center"===ed&&"left-1/2","end"===ed&&"right-0"),tQ=(s=Dy({width:"trigger"===es?"100%":Dj(es)},"bottom"===tG?{marginTop:ep}:{marginBottom:ep}),l=l={"--egen-async-select-to":"center"===ed?"translateX(-50%)":"translateX(0)","--egen-async-select-from-bottom":"".concat("center"===ed?"translateX(-50%) ":"","translateY(-8px)"),"--egen-async-select-from-top":"".concat("center"===ed?"translateX(-50%) ":"","translateY(8px)"),transform:"center"===ed?"translateX(-50%)":"none"},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(l)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(l,e))}),s),tJ=[];tP.forEach(function(e,t){var n=null==y?void 0:y(e),r=tJ[tJ.length-1];r&&r.heading===n?r.entries.push({item:e,index:t}):tJ.push({heading:n,entries:[{item:e,index:t}]})});var t0=function(e){var t=e.item,n=e.index,r=f(t),a=eW.includes(r),i=tU===n,o=tN(t);return(0,v.jsxs)("div",{id:e_(n),role:"option","data-index":n,"data-selected":i,"data-disabled":o?"true":void 0,"aria-selected":a,"aria-disabled":o||void 0,onMouseMove:function(){o||(tY.current="mouse",tU!==n&&t$(n))},onClick:function(){return!o&&tB(t)},className:yt("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",null==eO?void 0:eO.item),children:[m?m(t,{isActive:i,isSelected:a,isDisabled:o}):eL(t),eS&&a?(0,v.jsx)("span",{className:yt("ml-auto",null==eO?void 0:eO.itemCheck),children:eS}):(0,v.jsx)(AR,{className:yt("ml-auto size-3",a?"opacity-100":"opacity-0",null==eO?void 0:eO.itemCheck)})]},r)},t1=function(e,t){return void 0!==t?eL(t):e},t2=eW.length>0,t3=null!=U?U:"Search ".concat(V.toLowerCase(),"..."),t5=null!=$?$:"No ".concat(V.toLowerCase()," found."),t4="loading"===te;return(0,v.jsxs)("div",{ref:tI,style:Dy({width:Dj(void 0===ei?"200px":ei)},eD),className:yt("relative",ek,null==eO?void 0:eO.root),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n@keyframes egen-async-select-in-bottom { from { opacity: 0; transform: var(--egen-async-select-from-bottom) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n@keyframes egen-async-select-in-top { from { opacity: 0; transform: var(--egen-async-select-from-top) scale(0.95); } to { opacity: 1; transform: var(--egen-async-select-to) scale(1); } }\n.egen-async-select-content[data-side="bottom"] { animation: egen-async-select-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n.egen-async-select-content[data-side="top"] { animation: egen-async-select-in-top 150ms cubic-bezier(0.16, 1, 0.3, 1); }\n@media (prefers-reduced-motion: reduce) { .egen-async-select-content { animation: none !important; } }\n'}}),L?eP?eW.map(function(e){return(0,v.jsx)("input",{type:"hidden",name:L,value:e},e)}):(0,v.jsx)("input",{type:"hidden",name:L,value:null!=(c=eW[0])?c:""}):null,(0,v.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:t4?void 0===G?"Loading...":G:""}),(0,v.jsxs)("div",{ref:tR,id:F,role:"combobox",tabIndex:_?-1:0,"aria-expanded":eq,"aria-haspopup":"listbox","aria-controls":eq?eI:void 0,"aria-label":null!=B?B:V,"aria-disabled":_||void 0,"aria-busy":t4||void 0,"data-disabled":_?"true":void 0,"data-state":eq?"open":"closed",onClick:function(){return!_&&eY(!eq)},onKeyDown:function(e){!_&&(eq||"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key&&" "!==e.key?!eq&&eP&&"Backspace"===e.key&&t2&&tV(eW[eW.length-1]):(e.preventDefault(),eY(!0)))},className:yt("flex min-h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm font-medium text-foreground shadow-xs transition-all outline-none","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",eA,null==eO?void 0:eO.trigger),children:[(0,v.jsx)("span",{className:yt("flex min-w-0 flex-1 items-center",null==eO?void 0:eO.triggerValue),children:function(){if(!t2)return(0,v.jsx)("span",{className:yt("truncate text-muted-foreground",null==eO?void 0:eO.placeholder),children:W});if(!eP){var e=tC[0];return(0,v.jsx)("span",{className:"min-w-0 truncate",children:void 0!==e?h?h(e):eL(e):eW[0]})}var t=eW.slice(0,Math.max(0,eT)),n=eW.slice(t.length);return(0,v.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[t.map(function(e){var t=eK.current.get(e),n=t1(e,t);return(0,v.jsxs)("span",{className:yt("inline-flex max-w-full items-center gap-1 rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-foreground",null==eO?void 0:eO.tag),children:[(0,v.jsx)("span",{className:"truncate",children:eN?eN(t,e):n}),_?null:(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":Z(n),onMouseDown:function(e){return e.preventDefault()},onClick:function(t){t.stopPropagation(),tV(e)},className:yt("rounded-sm opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.tagRemove),children:(0,v.jsx)(AL,{className:"size-3"})})]},e)}),n.length>0?(0,v.jsxs)("span",{title:n.map(function(e){return t1(e,eK.current.get(e))}).join(", "),className:yt("rounded-sm bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.tag),children:["+",n.length]}):null]})}()}),void 0!==er&&er&&t2&&!_?(0,v.jsx)("button",{type:"button",tabIndex:-1,"aria-label":void 0===Y?"Clear":Y,onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),tz()},className:yt("shrink-0 rounded-sm opacity-50 outline-none transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50",null==eO?void 0:eO.clearButton),children:(0,v.jsx)(AL,{className:"size-4"})}):null,null!=ej?ej:(0,v.jsx)(AI,{className:yt("size-3 shrink-0 opacity-50",null==eO?void 0:eO.triggerIcon)})]}),eq?(0,v.jsx)("div",{"data-side":tG,"data-state":"open",style:tQ,className:yt("egen-async-select-content absolute z-50 rounded-md border border-border bg-popover p-0 text-popover-foreground shadow-md outline-hidden",tX,null==eO?void 0:eO.content),onKeyDown:function(e){if("Escape"===e.key){var t;e.preventDefault(),eY(!1),null==(t=tR.current)||t.focus();return}if("Tab"===e.key)return void eY(!1);if("Backspace"===e.key&&eP&&""===e1&&eW.length>0)return void tV(eW[eW.length-1]);if(0!==tP.length)switch(e.key){case"ArrowDown":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(1,e)});break;case"ArrowUp":e.preventDefault(),tY.current="keyboard",t$(function(e){return tZ(-1,e)});break;case"Home":e.preventDefault(),tY.current="keyboard",t$(tK());break;case"End":e.preventDefault(),tY.current="keyboard";var n=Dg(tP).reverse().findIndex(function(e){return!tN(e)});t$(n>=0?tP.length-1-n:0);break;case"Enter":e.preventDefault();var r=tP[tU];r&&!tN(r)&&tB(r)}},children:(0,v.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",children:[ex?(0,v.jsx)("div",{className:null==eO?void 0:eO.header,children:ex}):null,void 0===ee||ee?(0,v.jsxs)("div",{className:yt("relative flex h-9 items-center gap-2 border-b border-border px-3",null==eO?void 0:eO.searchWrapper),children:[(0,v.jsx)(A_,{className:yt("size-4 shrink-0 opacity-50",null==eO?void 0:eO.searchIcon)}),(0,v.jsx)("input",{ref:t_,type:"text",role:"searchbox",autoComplete:"off",spellCheck:!1,"aria-controls":eI,"aria-activedescendant":tP.length?e_(tU):void 0,placeholder:t3,value:e1,onChange:function(e){e2(e.target.value),tY.current="keyboard"},className:yt("flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",null==eO?void 0:eO.searchInput)}),t4&&tP.length>0?(0,v.jsx)("span",{className:yt("flex shrink-0 items-center text-muted-foreground",null==eO?void 0:eO.searchSpinner),"aria-hidden":!0,children:null!=ev?ev:(0,v.jsx)(AF,{className:"size-4 animate-spin"})}):null]}):(0,v.jsx)("input",{ref:t_,readOnly:!0,"aria-label":null!=B?B:V,"aria-controls":eI,"aria-activedescendant":tP.length?e_(tU):void 0,className:"sr-only"}),(0,v.jsxs)("div",{ref:tL,id:eI,role:"listbox","aria-multiselectable":eP||void 0,"aria-busy":t4||void 0,style:{maxHeight:eh},className:yt("scroll-py-1 overflow-x-hidden overflow-y-auto",null==eO?void 0:eO.list),children:[e4?(0,v.jsx)("div",{className:yt("py-6 text-center text-sm text-muted-foreground",null==eO?void 0:eO.hint),children:null!=H?H:"Type at least ".concat(O," characters to search.")}):"error"===te?eb?eb(null!=tr?tr:Q,tk):(0,v.jsxs)("div",{role:"alert",className:yt("flex flex-col items-center gap-2 p-4 text-center text-sm text-destructive",null==eO?void 0:eO.error),children:[(0,v.jsx)("span",{children:null!=tr?tr:Q}),(0,v.jsx)("button",{type:"button",onClick:tk,className:"rounded-md border border-border px-2 py-1 text-xs font-medium text-foreground outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===q?"Retry":q})]}):(t4||"idle"===te)&&0===tP.length?null!=ey?ey:(0,v.jsx)("div",{className:yt("p-1",null==eO?void 0:eO.skeleton),"aria-hidden":!0,children:[1,2,3].map(function(e){return(0,v.jsxs)("div",{className:"flex items-center gap-2 rounded-sm px-2 py-1.5",children:[(0,v.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-muted"}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,v.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-muted"})]})]},e)})}):0===tP.length?null!=eg?eg:(0,v.jsx)("div",{className:yt("py-6 text-center text-sm",null==eO?void 0:eO.empty),children:t5}):tJ.map(function(e,t){var n;return(0,v.jsxs)("div",{role:"group","aria-label":e.heading,className:yt("overflow-hidden p-1 text-foreground",null==eO?void 0:eO.group),children:[e.heading?(0,v.jsx)("div",{className:yt("px-2 py-1.5 text-xs font-medium text-muted-foreground",null==eO?void 0:eO.groupHeading),children:e.heading}):null,e.entries.map(t0)]},"".concat(null!=(n=e.heading)?n:"_","-").concat(t))}),to&&"ready"===te?(0,v.jsx)("div",{ref:tF,className:yt("flex items-center justify-center p-2 text-xs text-muted-foreground",null==eO?void 0:eO.loadMore),children:tf?(0,v.jsx)("button",{type:"button",onClick:function(){tA()},className:"rounded-md px-2 py-1 text-destructive outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/50",children:void 0===J?"Failed to load more. Retry":J}):tu?null!=ev?ev:(0,v.jsx)(AF,{className:"size-4 animate-spin"}):null}):null]}),ew?(0,v.jsx)("div",{className:null==eO?void 0:eO.footer,children:ew}):null]})}):null]})}function DE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function DO(e,t){if(e){if("string"==typeof e)return DE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DE(e,t)}}var Dk=function(e){var t,n=e.images,r=e.cardWidth,a=void 0===r?256:r,i=e.cardHeight,o=void 0===i?352:i,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,g.useRef)(null),f=(0,g.useRef)(!1),p=(0,g.useRef)(0),m=(0,g.useRef)(0),h=(0,g.useRef)(null),y=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return Array.from({length:n.length},function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||DO(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=y[0],x=y[1];(0,g.useEffect)(function(){x(Array.from({length:n.length},function(e,t){return t}))},[n.length]);var j=(0,g.useCallback)(function(e,t){var n,r,a=null==(r=getComputedStyle(t||document.documentElement))||null==(n=r.getPropertyValue(e))?void 0:n.trim();return a?a.endsWith("ms")?parseFloat(a):a.endsWith("s")?1e3*parseFloat(a):parseFloat(a)||0:0},[]),S=(0,g.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),E=(0,g.useCallback)(function(){return S()[0]||null},[S]),O=(0,g.useCallback)(function(){S().forEach(function(e,t){e.style.setProperty("--i",(t+1).toString()),e.style.setProperty("--swipe-x","0px"),e.style.setProperty("--swipe-rotate","0deg"),e.style.opacity="1"})},[S]),k=(0,g.useCallback)(function(e){var t=E();t&&(t.style.setProperty("--swipe-x","".concat(e,"px")),t.style.setProperty("--swipe-rotate","".concat(.2*e,"deg")),t.style.opacity=(1-.75*Math.min(Math.abs(e)/100,1)).toString())},[E]),A=(0,g.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,m.current=e;var t=E();t&&(t.style.transition="none")}},[E]),D=(0,g.useCallback)(function(){if(f.current){h.current&&(cancelAnimationFrame(h.current),h.current=null);var e=m.current-p.current,t=j("--card-swap-duration",d.current),n=E();if(n)if(n.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var r=Math.sign(e);n.style.setProperty("--swipe-x","".concat(300*r,"px")),n.style.setProperty("--swipe-rotate","".concat(20*r,"deg")),setTimeout(function(){E()===n&&n.style.setProperty("--swipe-rotate","".concat(-(20*r),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],r>0?"right":"left"),((function(e){if(Array.isArray(e))return DE(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||DO(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e[0]]))})},t)}else k(0);f.current=!1,p.current=0,m.current=0}},[j,E,k,c]),P=(0,g.useCallback)(function(e){f.current&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(function(){m.current=e;var t=m.current-p.current;k(t),Math.abs(t)>50&&D()}))},[k,D]);return(0,g.useEffect)(function(){var e=d.current;if(e){var t=function(e){return A(e.clientX)},n=function(e){return P(e.clientX)},r=function(){return D()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",n),e.addEventListener("pointerup",r),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",n),e.removeEventListener("pointerup",r),h.current&&cancelAnimationFrame(h.current)}}},[A,P,D]),(0,g.useEffect)(function(){O()},[b,O]),(0,v.jsx)("section",{ref:d,className:w()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":n.length.toString(),"--card-swap-duration":"0.3s"},l),children:b.map(function(e,t){return(0,v.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:n.length-t,width:a,height:o},children:(0,v.jsx)("img",{src:n[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(n[e],"-").concat(e))})})},DA=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,DD=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,DP=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,DC=/(^[#\.][a-z]|[a-y][a-z])/i,DT=Math.PI/180,DN=180/Math.PI,DM=Math.sin,DR=Math.cos,DI=Math.abs,D_=Math.sqrt,DL=Math.atan2,DF=function(e){return"string"==typeof e},DB=function(e){return"number"==typeof e},DV={},Dz={},DW=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},DU=function(e){return Math.round(1e5*e)/1e5||0},D$=function(e){return Math.round(1e10*e)/1e10||0},DH=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},DG=function(e,t,n,r){var a=e[t],i=1===r?6:D5(a,n,r);if((i||!r)&&i+n+2<a.length)return e.splice(t,0,a.slice(0,n+i+2)),a.splice(0,n+i),1},Dq=function(e,t,n){var r=e.length,a=~~(n*r);if(e[a]>t){for(;--a&&e[a]>t;);a<0&&(a=0)}else for(;e[++a]<t&&a<r;);return a<r?a:r-1},DY=function(e,t){var n=e.length;for(t||e.reverse();n--;)e[n].reversed||function(e){var t,n=0;for(e.reverse();n<e.length;n+=2)t=e[n],e[n]=e[n+1],e[n+1]=t;e.reversed=!e.reversed}(e[n])},DK=function(e,t){return t.totalLength=e.totalLength,e.samples?(t.samples=e.samples.slice(0),t.lookup=e.lookup.slice(0),t.minLength=e.minLength,t.resolution=e.resolution):e.totalPoints&&(t.totalPoints=e.totalPoints),t},DZ=function(e,t){var n=e.length,r=e[n-1]||[],a=r.length;n&&t[0]===r[a-2]&&t[1]===r[a-1]&&(t=r.concat(t.slice(2)),n--),e[n]=t};function DX(e){var t,n=(e=DF(e)&&DC.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return n&&(e=e.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(t=n._gsPath[e])&&!t._dirty?t:n._gsPath[e]=D9(e)):e?DF(e)?D9(e):DB(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var DQ=function(e,t){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(e.attributes),i=a.length;for(t=","+t+",";--i>-1;)n=a[i].nodeName.toLowerCase(),0>t.indexOf(","+n+",")&&r.setAttributeNS(null,n,a[i].nodeValue);return r},DJ={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},D0=function(e,t){for(var n=t?t.split(","):[],r={},a=n.length;--a>-1;)r[n[a]]=+e.getAttribute(n[a])||0;return r};function D1(e,t,n){var r,a=e[t],i=e[t+2],o=e[t+4];return a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,r=i+(o+(e[t+6]-o)*n-i)*n-a,a=e[t+1],i=e[t+3],o=e[t+5],a+=(i-a)*n,i+=(o-i)*n,a+=(i-a)*n,DU(DL(i+(o+(e[t+7]-o)*n-i)*n-a,r)*DN)}function D2(e,t,n){var r=Math.max(0,~~(DI((n=void 0===n?1:D$(n)||0)-(t=D$(t)||0))-1e-8)),a=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=DK(e[n],e[n].slice(0));return DK(e,t)}(e);if(t>n&&(t=1-t,n=1-n,DY(a),a.totalLength=0),t<0||n<0){var i=Math.abs(~~Math.min(t,n))+1;t+=i,n+=i}a.totalLength||D3(a);var o,s,l,u,c,d,f,p,m=n>1,h=D4(a,t,DV,!0),y=D4(a,n,Dz),v=y.segment,g=h.segment,b=y.segIndex,x=h.segIndex,w=y.i,j=h.i,S=x===b,E=w===j&&S;if(m||r){for(o=b<x||S&&w<j||E&&y.t<h.t,DG(a,x,j,h.t)&&(x++,!o&&(b++,E?(y.t=(y.t-h.t)/(1-h.t),w=0):S&&(w-=j))),1e-5>Math.abs(1-(n-t))?b=x-1:!y.t&&b?b--:DG(a,b,w,y.t)&&o&&x++,1===h.t&&(x=(x+1)%a.length),c=[],f=1+(d=a.length)*r,p=x,f+=(d-x+b)%d,u=0;u<f;u++)DZ(c,a[p++%d]);a=c}else if(l=1===y.t?6:D5(v,w,y.t),t!==n)for(s=D5(g,j,E?h.t/y.t:h.t),S&&(l+=s),v.splice(w+l+2),(s||j)&&g.splice(0,j+s),u=a.length;u--;)(u<x||u>b)&&a.splice(u,1);else v.angle=D1(v,w+l,0),w+=l,h=v[w],y=v[w+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(h,y,h,y,h,y,h,y);return a.totalLength=0,a}function D3(e,t){var n,r,a;for(a=n=r=0;a<e.length;a++)e[a].resolution=~~t||12,n+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v,g,b=~~e.resolution||12,x=1/b,w=e.length,j=e[t],S=e[t+1],E=t?t/6*b:0,O=e.samples,k=e.lookup,A=(t?e.minLength:1e8)||1e8,D=O[E+(void 0)*b-1],P=t?O[E-1]:0;for(O.length=k.length=0,r=t+2;r<w;r+=6){if(a=e[r+4]-j,i=e[r+2]-j,o=e[r]-j,u=e[r+5]-S,c=e[r+3]-S,d=e[r+1]-S,s=l=f=p=0,.01>DI(a)&&.01>DI(u)&&DI(o)+DI(d)<.01)e.length>8&&(e.splice(r,6),r-=6,w-=6);else for(n=1;n<=b;n++)m=1-(h=x*n),s=l-(l=(h*h*a+3*m*(h*i+m*o))*h),(v=D_((f=p-(p=(h*h*u+3*m*(h*c+m*d))*h))*f+s*s))<A&&(A=v),P+=v,O[E++]=P;j+=a,S+=u}if(D)for(D-=P;E<O.length;E++)O[E]+=D;if(O.length&&A){if(e.totalLength=g=O[O.length-1]||0,e.minLength=A,g/A<9999)for(n=0,v=y=0;n<g;n+=A)k[v++]=O[y]<n?++y:y}else e.totalLength=O[0]=0;return t?P-O[t/2-1]:P}(e[a]),r+=e[a].length;return e.totalPoints=r,e.totalLength=n,e}function D5(e,t,n){if(n<=0||n>=1)return 0;var r=e[t],a=e[t+1],i=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=r+(i-r)*n,f=i+(s-i)*n,p=a+(o-a)*n,m=o+(l-o)*n,h=d+(f-d)*n,y=p+(m-p)*n,v=s+(u-s)*n,g=l+(c-l)*n;return f+=(v-f)*n,m+=(g-m)*n,e.splice(t+2,4,DU(d),DU(p),DU(h),DU(y),DU(h+(f-h)*n),DU(y+(m-y)*n),DU(f),DU(m),DU(v),DU(g)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function D4(e,t,n,r){n=n||{},e.totalLength||D3(e),(t<0||t>1)&&(t=DW(t));var a,i,o,s,l,u,c,d=0,f=e[0];if(t)if(1===t)c=1,d=e.length-1,u=(f=e[d]).length-8;else{if(e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)d=u;t=(o-(s=l-(f=e[d]).totalLength))/(l-s)||0}a=f.samples,i=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:Dq(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),c=1/i*((o-s)/(l-s)+u%i),u=6*~~(u/i),r&&1===c&&(u+6<f.length?(u+=6,c=0):d+1<e.length&&(u=c=0,f=e[++d]))}else c=u=d=0,f=e[0];return n.t=c,n.i=u,n.path=e,n.segment=f,n.segIndex=d,n}function D6(e,t,n,r){var a,i,o,s,l,u,c,d,f,p=e[0],m=r||{};if((t<0||t>1)&&(t=DW(t)),p.lookup||D3(e),e.length>1){for(o=e.totalLength*t,l=u=0;(l+=e[u++].totalLength)<o;)p=e[u];t=(o-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,i=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:Dq(a,o,t))?a[u-1]:0,(l=a[u])<o&&(s=l,l=a[++u]),f=1-(c=1/i*((o-s)/(l-s)+u%i)||0),d=p[u=6*~~(u/i)],m.x=DU((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),m.y=DU((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),n&&(m.angle=p.totalLength?D1(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),m}function D8(e,t,n,r,a,i,o){for(var s,l,u,c,d,f=e.length;--f>-1;)for(u=0,l=(s=e[f]).length;u<l;u+=2)c=s[u],d=s[u+1],s[u]=c*t+d*r+i,s[u+1]=c*n+d*a+o;return e._dirty=1,e}function D9(e){var t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y=(e+"").replace(DP,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(DA)||[],v=[],g=0,b=0,x=2/3,w=y.length,j=0,S="ERROR: malformed path: "+e,E=function(e,t,n,r){c=(n-e)/3,d=(r-t)/3,s.push(e+c,t+d,n-c,r-d,n,r)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(S),v;for(t=0;t<w;t++)if(p=i,isNaN(y[t])?o=(i=y[t].toUpperCase())!==y[t]:t--,r=+y[t+1],a=+y[t+2],o&&(r+=g,a+=b),t||(l=r,u=a),"M"===i)s&&(s.length<8?v.length-=1:j+=s.length,DH(s)),g=l=r,b=u=a,s=[r,a],v.push(s),t+=2,i="L";else if("C"===i)s||(s=[0,0]),o||(g=b=0),s.push(r,a,g+ +y[t+3],b+ +y[t+4],g+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===i)c=g,d=b,("C"===p||"S"===p)&&(c+=g-s[s.length-4],d+=b-s[s.length-3]),o||(g=b=0),s.push(c,d,r,a,g+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===i)c=g+(r-g)*x,d=b+(a-b)*x,o||(g=b=0),g+=+y[t+3],b+=+y[t+4],s.push(c,d,g+(r-g)*x,b+(a-b)*x,g,b),t+=4;else if("T"===i)c=g-s[s.length-4],d=b-s[s.length-3],s.push(g+c,b+d,r+(g+1.5*c-r)*x,a+(b+1.5*d-a)*x,g=r,b=a),t+=2;else if("H"===i)E(g,b,g=r,b),t+=1;else if("V"===i)E(g,b,g,b=r+(o?b-g:0)),t+=1;else if("L"===i||"Z"===i)"Z"===i&&(r=l,a=u,s.closed=!0),("L"===i||DI(g-r)>.5||DI(b-a)>.5)&&(E(g,b,r,a),"L"===i&&(t+=2)),g=r,b=a;else if("A"===i){if(m=y[t+4],h=y[t+5],c=y[t+6],d=y[t+7],n=7,m.length>1&&(m.length<3?(d=c,c=h,n--):(d=h,c=m.substr(2),n-=2),h=m.charAt(1),m=m.charAt(0)),f=function(e,t,n,r,a,i,o,s,l){if(e!==s||t!==l){n=DI(n),r=DI(r);var u=a%360*DT,c=DR(u),d=DM(u),f=Math.PI,p=2*f,m=(e-s)/2,h=(t-l)/2,y=c*m+d*h,v=-d*m+c*h,g=y*y,b=v*v,x=g/(n*n)+b/(r*r);x>1&&(n=D_(x)*n,r=D_(x)*r);var w=n*n,j=r*r,S=(w*j-w*b-j*g)/(w*b+j*g);S<0&&(S=0);var E=(i===o?-1:1)*D_(S),O=n*v/r*E,k=-(r*y/n*E),A=(e+s)/2+(c*O-d*k),D=(t+l)/2+(d*O+c*k),P=(y-O)/n,C=(v-k)/r,T=(-y-O)/n,N=(-v-k)/r,M=P*P+C*C,R=(C<0?-1:1)*Math.acos(P/D_(M)),I=(P*N-C*T<0?-1:1)*Math.acos((P*T+C*N)/D_(M*(T*T+N*N)));isNaN(I)&&(I=f),!o&&I>0?I-=p:o&&I<0&&(I+=p),R%=p;var _,L=Math.ceil(DI(I%=p)/(p/4)),F=[],B=I/L,V=4/3*DM(B/2)/(1+DR(B/2)),z=c*n,W=d*n,U=-(d*r),$=c*r;for(_=0;_<L;_++)y=DR(a=R+_*B),v=DM(a),P=DR(a+=B),C=DM(a),F.push(y-V*v,v+V*y,P+V*C,C-V*P,P,C);for(_=0;_<F.length;_+=2)y=F[_],v=F[_+1],F[_]=y*z+v*U+A,F[_+1]=y*W+v*$+D;return F[_-2]=s,F[_-1]=l,F}}(g,b,+y[t+1],+y[t+2],+y[t+3],+m,+h,(o?g:0)+ +c,(o?b:0)+ +d),t+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);g=s[s.length-2],b=s[s.length-1]}else console.log(S);return(t=s.length)<6?(v.pop(),t=0):DH(s),v.totalPoints=j+t,v}function D7(e,t){1e-4>DI(e[0]-e[2])&&1e-4>DI(e[1]-e[3])&&(e=e.slice(2));var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v=e.length-2,g=+e[0],b=+e[1],x=+e[2],w=+e[3],j=[g,b,g,b],S=x-g,E=w-b,O=e.nonSmooth||[],k=.001>Math.abs(e[v]-g)&&.001>Math.abs(e[v+1]-b);if(!v)return[g,b,g,b,g,b,g,b];for(k&&(e.push(x,w),x=g,w=b,g=e[v-2],b=e[v-1],e.unshift(g,b),v+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,a=2;a<v;a+=2)if(n=g,r=b,g=x,b=w,x=+e[a+2],w=+e[a+3],g!==x||b!==w){if(i=S,o=E,S=x-g,E=w-b,O[a]){j.push(g-(g-n)/4,b-(b-r)/4,g,b,g+(x-g)/4,b+(w-b)/4);continue}s=D_(i*i+o*o),l=D_(S*S+E*E),u=D_(Math.pow(S/l+i/s,2)+Math.pow(E/l+o/s,2)),c=(s+l)*t*.25/u,d=g-(g-n)*(s?c/s:0),f=g+(x-g)*(l?c/l:0),p=g-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),m=b-(b-r)*(s?c/s:0),h=b+(w-b)*(l?c/l:0),y=b-(m+((h-m)*(3*s/(s+l)+.5)/4||0)),j.push(DU(d+p),DU(m+y),DU(g),DU(b),DU(f+p),DU(h+y))}return g!==x||b!==w||j.length<4?j.push(DU(x),DU(w),DU(x),DU(w)):j.length-=2,2===j.length?j.push(g,b,g,b,g,b):k&&(j.splice(0,6),j.length-=6),j.closed=k,j}function Pe(e){DB(e[0])&&(e=[e]);var t,n,r,a,i="",o=e.length;for(n=0;n<o;n++){for(i+="M"+DU((a=e[n])[0])+","+DU(a[1])+" C",t=a.length,r=2;r<t;r++)i+=DU(a[r++])+","+DU(a[r++])+" "+DU(a[r++])+","+DU(a[r++])+" "+DU(a[r++])+","+DU(a[r])+" ";a.closed&&(i+="z")}return i}var Pt,Pn,Pr,Pa,Pi,Po,Ps,Pl,Pu,Pc,Pd,Pf="transform",Pp=Pf+"Origin",Pm=function(e){var t=e.ownerDocument||e;for(!(Pf in e.style)&&("msTransform"in e.style)&&(Pp=(Pf="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(Pa=window,Pu=new PE,t){Pr=t,Pi=t.documentElement,Po=t.body,(Pc=Pr.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),r=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.style.position="static",n.style.transform="translate3d(0,0,1px)",Pd=r.offsetParent!==n,a.removeChild(n))}return t},Ph=function(e){for(var t,n;e&&e!==Po;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},Py=[],Pv=[],Pg=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},Pb=function e(t,n){if(t.parentNode&&(Pr||Pm(t))){var r=Pg(t),a=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=r?n?"rect":"g":"div",o=100*(2===n),s=100*(3===n),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=Pr.createElementNS?Pr.createElementNS(a.replace(/^https/,"http"),i):Pr.createElement(i);return n&&(r?(Pl||(Pl=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),Pl.appendChild(u)):(Ps||Object.assign((Ps=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),Ps.appendChild(u))),u}throw"Need document and parent."},Px=function(e){for(var t=new PE,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},Pw=function(e){var t,n=e.getCTM();return n||(t=e.style[Pf],e.style[Pf]="none",e.appendChild(Pc),n=Pc.getCTM(),e.removeChild(Pc),t?e.style[Pf]=t:e.style.removeProperty(Pf.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Pu.clone()},Pj=function(e,t){var n,r,a,i,o,s,l=Pg(e),u=e===l,c=l?Py:Pv,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===Pa)return e;if(c.length||c.push(Pb(e,1),Pb(e,2),Pb(e,3)),n=l?Pl:Ps,l)u?(i=-(a=Pw(e)).e/a.a,o=-a.f/a.d,r=Pu):e.getBBox?(a=e.getBBox(),i=(r=(r=e.transform?e.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?Px(r):r.getItem(0).matrix:Pu).a*a.x+r.c*a.y,o=r.b*a.x+r.d*a.y):(r=new PE,i=o=0),t&&"g"===e.tagName.toLowerCase()&&(i=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+i)+","+(r.f+o)+")");else{if(i=o=0,Pd)for(r=e.offsetParent,a=e;a&&(a=a.parentNode)&&a!==r&&a.parentNode;)(Pa.getComputedStyle(a)[Pf]+"").length>4&&(i=a.offsetLeft,o=a.offsetTop,a=0);if("absolute"!==(s=Pa.getComputedStyle(e)).position&&"fixed"!==s.position)for(r=e.offsetParent;d&&d!==r;)i+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(a=n.style).top=e.offsetTop-o+"px",a.left=e.offsetLeft-i+"px",a[Pf]=s[Pf],a[Pp]=s[Pp],a.position="fixed"===s.position?"fixed":"absolute",f.appendChild(n)}return n},PS=function(e,t,n,r,a,i,o){return e.a=t,e.b=n,e.c=r,e.d=a,e.e=i,e.f=o,e},PE=function(){function e(e,t,n,r,a,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===i&&(i=0),PS(this,e,t,n,r,a,i)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,i=this.f,o=e*r-t*n||1e-10;return PS(this,r/o,-t/o,-n/o,e/o,(n*i-r*a)/o,-(e*i-t*a)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return PS(this,s*t+u*r,s*n+u*a,l*t+c*r,l*n+c*a,i+d*t+f*r,o+d*n+f*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,a=this.d,i=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&a===e.d&&i===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var n=e.x,r=e.y,a=this.a,i=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=n*a+r*o+l||0,t.y=n*i+r*s+u||0,t},e}();function PO(e,t,n,r){if(!e||!e.parentNode||(Pr||Pm(e)).documentElement===e)return new PE;var a=Ph(e),i=Pg(e)?Py:Pv,o=Pj(e,n),s=i[0].getBoundingClientRect(),l=i[1].getBoundingClientRect(),u=i[2].getBoundingClientRect(),c=o.parentNode,d=!r&&function e(t){return"fixed"===Pa.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new PE((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:Pa.pageXOffset||Pr.scrollLeft||Pi.scrollLeft||Po.scrollLeft||0),s.top+(d?0:Pa.pageYOffset||Pr.scrollTop||Pi.scrollTop||Po.scrollTop||0));if(c.removeChild(o),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var Pk,PA,PD,PP,PC,PT,PN="x,translateX,left,marginLeft,xPercent".split(","),PM="y,translateY,top,marginTop,yPercent".split(","),PR=Math.PI/180,PI=function(e,t,n,r){for(var a=t.length,i=2===r?0:r,o=0;o<a;o++)e[i]=parseFloat(t[o][n]),2===r&&(e[i+1]=0),i+=2;return e},P_=function(e,t,n){return parseFloat(e._gsap.get(e,t,n||"px"))||0},PL=function(e){var t,n=e[0],r=e[1];for(t=2;t<e.length;t+=2)n=e[t]+=n,r=e[t+1]+=r},PF=function(e,t,n,r,a,i,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(P_(n,r,s),a?P_(n,a,l):0),o.relative&&PL(t),t=[(a?D7:function(e,t){void 0===t&&(t=1);for(var n=e[0],r=0,a=[n,0],i=2;i<e.length;i+=2)a.push(n,r,e[i],r=(e[i]-n)*t/2,n=e[i],-r);return a})(t,o.curviness)]),t=i(PU(t,n,o)),P$(e,n,r,t,"x",s),a&&P$(e,n,a,t,"y",l),D3(t,o.resolution||(0===o.curviness?20:12))},PB=function(e){return e},PV=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Pz=function(e,t,n){var r,a=PO(e),i=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(r=e.viewBox.baseVal).width||(r={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):r=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(i=t.push?t[0]*(r?r.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(r?r.height:e.offsetHeight||0):t.y),n.apply(i||o?a.apply({x:i,y:o}):{x:a.e,y:a.f})},PW=function(e,t,n,r){var a,i=PO(e.parentNode,!0,!0),o=i.clone().multiply(PO(t)),s=Pz(e,n,i),l=Pz(t,r,i),u=l.x,c=l.y;return o.e=o.f=0,"auto"===r&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(a=t.getAttribute("d").match(PV)||[],u+=(a=o.apply({x:+a[0],y:+a[1]})).x,c+=a.y),a&&(u-=(a=o.apply(t.getBBox())).x,c-=a.y),o.e=u-s.x,o.f=c-s.y,o},PU=function(e,t,n){var r,a,i,o=n.align,s=n.matrix,l=n.offsetX,u=n.offsetY,c=n.alignOrigin,d=e[0][0],f=e[0][1],p=P_(t,"x"),m=P_(t,"y");return e&&e.length?(o&&("self"===o||(r=PP(o)[0]||t)===t?D8(e,1,0,0,1,p-d,m-f):(c&&!1!==c[2]?Pk.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(P_(t,"xPercent")/100),-(P_(t,"yPercent")/100)],i=(a=PW(t,r,c,"auto")).apply({x:d,y:f}),D8(e,a.a,a.b,a.c,a.d,p+a.e-(i.x-a.e),m+a.f-(i.y-a.f)))),s?D8(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&D8(e,1,0,0,1,l||0,u||0),e):DX("M0,0L0,0")},P$=function(e,t,n,r,a,i){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[n],u=l&&0>l.indexOf(",")?l:n,c=e._pt=new PA(e._pt,t,u,0,0,PB,0,o.set(t,u,e));c.u=PD(o.get(t,u,i))||0,c.path=r,c.pp=a,e._props.push(u)},PH={version:"3.15.0",name:"motionPath",register:function(e,t,n){PD=(Pk=e).utils.getUnit,PP=Pk.utils.toArray,PC=Pk.core.getStyleSaver,PT=Pk.core.reverting||function(){},PA=n},init:function(e,t,n){if(!Pk)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(r=t)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&!t.style&&t.path||(t={path:t});var r,a,i,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,m=u.x,h=u.y,y=c[0],v=(a=t.start,i="end"in t?t.end:1,function(e){return a||1!==i?D2(e,a,i):e});if(this.rawPaths=l,this.target=e,this.tween=n,this.styles=PC&&PC(e,"transform"),(this.rotate=d||0===d)&&(this.rOffset=parseFloat(d)||0,this.radians=!!t.useRadians,this.rProp=t.rotation||"rotation",this.rSet=e._gsap.set(e,this.rProp,this),this.ru=PD(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)D3(o=v(PU(DX(t.path),e,t)),t.resolution),l.push(o),P$(this,e,t.x||"x",o,"x",t.unitX||"px"),P$(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!m&&~PN.indexOf(s)?m=s:!h&&~PM.indexOf(s)&&(h=s);for(s in m&&h?l.push(PF(this,PI(PI([],c,m,0),c,h,1),e,m,h,v,t,f||PD(c[0][m]),p||PD(c[0][h]))):m=h=0,y)s!==m&&s!==h&&l.push(PF(this,PI([],c,s,2),e,s,0,v,t,PD(c[0][s])))}n.vars.immediateRender&&this.render(n.progress(),this)},render:function(e,t){var n=t.rawPaths,r=n.length,a=t._pt;if(t.tween._time||!PT()){for(e>1?e=1:e<0&&(e=0);r--;)D6(n[r],e,!r&&t.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,e),a=a._next;t.rotate&&t.rSet(t.target,t.rProp,n[0].angle*(t.radians?PR:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return D3(DX(e)).totalLength},sliceRawPath:D2,getRawPath:DX,pointsToSegment:D7,stringToRawPath:D9,rawPathToString:Pe,transformRawPath:D8,getGlobalMatrix:PO,getPositionOnPath:D6,cacheRawPathMeasurements:D3,convertToPath:function(e,t){return PP(e).map(function(e){var n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O;return n=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=DQ(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),E=D0(e,DJ[O]),"rect"===O?(o=E.rx,s=E.ry||o,a=E.x,i=E.y,f=E.width-2*o,p=E.height-2*s,o||s?(m=a+.44771525016900005*o,v=(y=(h=a+o)+f)+.552284749831*o,g=y+o,b=i+.44771525016900005*s,j=(w=(x=i+s)+p)+.552284749831*s,S=w+s,r="M"+g+","+x+" V"+w+" C"+[g,j,v,S,y,S,y-(y-h)/3,S,h+(y-h)/3,S,h,S,m,S,a,j,a,w,a,w-(w-x)/3,a,x+(w-x)/3,a,x,a,b,m,i,h,i,h+(y-h)/3,i,y-(y-h)/3,i,y,i,v,i,g,b,g,x].join(",")+"z"):r="M"+(a+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=E.r):(o=E.rx,c=.552284749831*(s=E.ry)),a=E.cx,i=E.cy,u=.552284749831*o,r="M"+(a+o)+","+i+" C"+[a+o,i+c,a+u,i+s,a,i+s,a-u,i+s,a-o,i+c,a-o,i,a-o,i-c,a-u,i-s,a,i-s,a+u,i-s,a+o,i-c,a+o,i].join(",")+"z"):"line"===O?r="M"+E.x1+","+E.y1+" L"+E.x2+","+E.y2:("polyline"===O||"polygon"===O)&&(r="M"+(a=(d=(e.getAttribute("points")+"").match(DD)||[]).shift())+","+(i=d.shift())+" L"+d.join(","),"polygon"===O&&(r+=","+a+","+i+"z")),l.setAttribute("d",Pe(l._gsRawPath=D9(r))),n&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,n){var r=PO(t,!0,!0).multiply(PO(e));return n?r.apply(n):r},getAlignMatrix:PW,getRelativePosition:function(e,t,n,r){var a=PW(e,t,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function(e,t){var n=PI(PI([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&PL(n),["cubic"===t.type?n:D7(n,t.curviness)]}};(Pk||"u">typeof window&&(Pk=window.gsap)&&Pk.registerPlugin&&Pk)&&Pk.registerPlugin(PH);let PG="_91T10b5z4yVLEvBTiOHB2w==",Pq="DV-xKWaHEEvN+MaZK6G-sw==",PY="BiOYgCt0Z+UKXxmzw9enhg==";function PK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function PX(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}Eh.registerPlugin(PH);var PQ=function(e){var t,n=e.url,r=e.title,a=e.open,i=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!0))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return PK(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return PK(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=(0,g.useRef)(null),p={transformOrigin:"center center"},m=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},h=function(){return{cx:200,cy:200,r:49}};return(0,g.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,n=c?0:e+t;a?Eh.timeline().set(f.current,PZ({},p,m())).to(f.current,PX(PZ({},p,h()),{duration:t,ease:"power3.inOut"})).to(f.current,PX(PZ({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):Eh.timeline({overwrite:!0}).set(f.current,PZ({},p,{cx:5100,cy:200,r:4900})).to(f.current,PX(PZ({},p,h()),{delay:n,duration:e,ease:"power4.out"})).to(f.current,PX(PZ({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},m()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[a]),(0,v.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PG,children:[(0,v.jsxs)("defs",{children:[(0,v.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,v.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,v.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,v.jsx)("rect",{width:400,height:400})})]}),(0,v.jsx)("g",{clipPath:"url(#".concat(o).concat(i?"_squareClip":"_circleClip",")"),children:(0,v.jsx)("image",{width:400,height:400,href:n,className:Pq,children:(0,v.jsx)("title",{children:r})})})]})},PJ=function(e){var t=e.images,n=e.onSelect,r=function(e){return 200-(24*t.length-10)/2+24*e},a=function(){return 370};return(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 ".concat(400," ").concat(400),preserveAspectRatio:"xMidYMid slice",className:PG,children:t.map(function(e,t){return(0,v.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,v.jsx)("circle",{cx:r(t),cy:a(),r:7})})}),(0,v.jsx)("image",{x:r(t)-7,y:a()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:Pq,preserveAspectRatio:"xMidYMid slice"}),(0,v.jsx)("circle",{onClick:function(){return n(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:r(t),cy:a(),r:9,children:(0,v.jsx)("title",{children:e.title})})]},e.url)})})};function P0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P0(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P2=function(e){var t=e.images,n=e.autoplay,r=void 0===n||n,a=e.autoplayInterval,i=void 0===a?4500:a,o=e.className,s=e.style,l=P1((0,g.useState)(0),2),u=l[0],c=l[1],d=P1((0,g.useState)(0),2),f=d[0],p=d[1],m=P1((0,g.useState)(!1),2),h=m[0],y=m[1],b=(0,g.useRef)(null),x=function(e){return p(e)},j=(0,g.useCallback)(function(){c(function(e){var n=e+1;return n>=t.length&&(n=0),n})},[t.length]),S=(0,g.useCallback)(function(){c(function(e){var n=e-1;return n<0&&(n=t.length-1),n})},[t.length]);return(0,g.useEffect)(function(){return y(!0)},[u]),(0,g.useEffect)(function(){return y(!1)},[f]),(0,g.useEffect)(function(){if(r)return b.current&&clearInterval(b.current),b.current=window.setInterval(j,i),function(){b.current&&clearInterval(b.current)}},[u,r,i,j]),(0,v.jsxs)("div",{className:w()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,v.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,n){return(0,v.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===n?n:t.length+1},children:(0,v.jsx)(PQ,{total:t.length,id:n,url:e.url,title:e.title,open:u===n,inPlace:f===n,onInPlace:x})},e.url)}),(0,v.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,v.jsx)(PJ,{images:t,onSelect:function(e){h||c(e)}})})]}),(0,v.jsx)("button",{type:"button",className:w()(PY,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:S,disabled:h,"aria-label":"Image pr\xe9c\xe9dente",children:(0,v.jsx)(oj,{size:28})}),(0,v.jsx)("button",{type:"button",className:w()(PY,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:j,disabled:h,"aria-label":"Image suivante",children:(0,v.jsx)(oS,{size:28})})]})};function P3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P5(e){var t=e.handleShuffle,n=e.testimonial,r=e.position,a=e.id,i=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,g.useRef)(0),f="front"===r;return(0,v.jsxs)(mq.div,{style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){P3(e,t,n[t])})}return e}({zIndex:"front"===r?2:+("middle"===r),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===r?"-6deg":"middle"===r?"0deg":"6deg",x:"front"===r?"0%":"middle"===r?"33%":"66%"},drag:!0,dragElastic:.35,dragListener:f,dragConstraints:{top:0,left:0,right:0,bottom:0},onDragStart:function(e){d.current=e.clientX},onDragEnd:function(e){var n=e.clientX;d.current-n>150&&t(),d.current=0},transition:{duration:.35},className:w()("ohCq+RO21+rIvJcyy3o2gw==",P3({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,v.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(a),alt:"Avatar of ".concat(i),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,v.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',n,'"']}),(0,v.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:i})]})}function P4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P6(e){if(Array.isArray(e))return e}function P8(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function P9(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P7(e,t){if(e){if("string"==typeof e)return P4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P4(e,t)}}function Ce(e){var t,n=e.testimonials,r=e.cardWidth,a=void 0===r?350:r,i=e.cardHeight,o=void 0===i?450:i,s=e.className,l=e.style,u=e.onShuffle,c=P6(t=(0,g.useState)(function(){return n.map(function(e,t){return t})}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||P7(t,2)||P9(),d=c[0],f=c[1];(0,g.useEffect)(function(){f(n.map(function(e,t){return t}))},[n]);var p=(0,g.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,r=P6(e)||P8(e)||P7(e)||P9(),a=r[0],i=r.slice(1);return null==u||u(null==(t=n[a])?void 0:t.id),((function(e){if(Array.isArray(e))return P4(e)})(i)||P8(i)||P7(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([a])})},[u,n]);return(0,v.jsx)("div",{className:w()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({width:a,height:o},l),children:d.map(function(e,t){var r=n[e];return r?(0,v.jsx)(P5,{id:r.id,testimonial:r.testimonial,author:r.author,avatarUrl:r.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:a,cardHeight:o},r.id):null})})}var Ct=(0,g.createContext)(null),Cn=function(){var e=(0,g.useContext)(Ct);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Cr(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Ca(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(function(n){var r=e[n],a=t[n];return"function"==typeof r?"".concat(r)==="".concat(a):Cr(r)&&Cr(a)?Ca(r,a):r===a})}function Ci(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e){return"number"==typeof e}function Cl(e){return"string"==typeof e}function Cu(e){return"boolean"==typeof e}function Cc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cd(e){return Math.abs(e)}function Cf(e){return Math.sign(e)}function Cp(e){return Cv(e).map(Number)}function Cm(e){return e[Ch(e)]}function Ch(e){return Math.max(0,e.length-1)}function Cy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,n){return t+n})}function Cv(e){return Object.keys(e)}function Cg(e,t){var n;return void 0!==t.MouseEvent&&(null!=(n=t.MouseEvent)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)}function Cb(){var e=[],t={add:function(n,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in n?(n.addEventListener(r,a,o),i=function(){return n.removeEventListener(r,a,o)}):(n.addListener(a),i=function(){return n.removeListener(a)}),e.push(i),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function Cx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Cd(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function Cw(e){var t=e;function n(e){return Cs(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function Cj(e,t){var n="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},r=t.style,a=null,i=!1;return{clear:function(){!i&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!i){var o=Math.round(100*e.direction(t))/100;o!==a&&(r.transform=n(o),a=o)}},toggleActive:function(e){i=!e}}}var CS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function CE(e,t,n){var r,a,i,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,n){return[t,n].reduce(function(t,n){return Cv(n).forEach(function(r){var a=t[r],i=n[r],o=Cc(a)&&Cc(i);t[r]=o?e(a,i):i}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){var r=n.breakpoints||{},a=Cv(r).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return r[e]}).reduce(function(e,n){return t(e,n)},{});return t(n,a)},optionsMediaQueries:function(t){return t.map(function(e){return Cv(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),m=(o=[],{init:function(e,t){return(o=t.filter(function(e){var t=e.options;return!1!==p.optionsAtMedia(t).active})).forEach(function(t){return t.init(e,p)}),t.reduce(function(e,t){var n,r;return Object.assign(e,(n={},r=t.name,r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),h=Cb(),y=(a={},i={init:function(e){r=e},emit:function(e){return(a[e]||[]).forEach(function(t){return t(r,e)}),i},off:function(e,t){return a[e]=(a[e]||[]).filter(function(e){return e!==t}),i},on:function(e,t){return a[e]=(a[e]||[]).concat([t]),i},clear:function(){a={}}}),v=p.mergeOptions,g=p.optionsAtMedia,b=p.optionsMediaQueries,x=y.on,w=y.off,j=y.emit,S=!1,E=v(CS,CE.globalOptions),O=v(E),k=[];function A(t,n){var r,a,i,o;!S&&(O=g(E=v(E,t)),k=n||k,r=O.container,a=O.slides,u=(Cl(r)?e.querySelector(r):r)||e.children[0],i=Cl(a)?u.querySelectorAll(a):a,c=[].slice.call(i||u.children),s=function t(n){var r=function(e,t,n,r,a,i,o){var s,l,u,c,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O,k,A,D,P,C,T,N,M,R,I,_,L,F,B,V,z,W,U,$,H,G,q,Y,K,Z,X=i.align,Q=i.axis,J=i.direction,ee=i.startIndex,et=i.loop,en=i.duration,er=i.dragFree,ea=i.dragThreshold,ei=i.inViewThreshold,eo=i.slidesToScroll,es=i.skipSnaps,el=i.containScroll,eu=i.watchResize,ec=i.watchSlides,ed=i.watchDrag,ef=i.watchFocus,ep={measure:function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return{top:t,right:n+r,bottom:t+a,left:n,width:r,height:a}}},em=ep.measure(t),eh=n.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,m=f?"top":d?"right":"left",h=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:m,endEdge:h,measureSize:function(e){var t=e.height,n=e.width;return f?t:n},direction:function(e){return e*p}}),ev=ey.measureSize(em),eg={measure:function(e){return e/100*ev}},eb=(s=X,l=ev,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Cl(s)?u[s](e):s(l,e,t)}}),ex=!et&&!!el,ew=et||!!el,ej=(y=ey.measureSize,v=ey.startEdge,g=ey.endEdge,b=eh[0]&&ew,x=function(){if(!b)return 0;var e=eh[0];return Cd(em[v]-e[v])}(),w=b?parseFloat(a.getComputedStyle(Cm(n)).getPropertyValue("margin-".concat(g))):0,j=eh.map(y),S=eh.map(function(e,t,n){var r=t===Ch(n);return t?r?j[t]+w:n[t+1][v]-e[v]:j[t]+x}).map(Cd),{slideSizes:j,slideSizesWithGaps:S,startGap:x,endGap:w}),eS=ej.slideSizes,eE=ej.slideSizesWithGaps,eO=ej.startGap,ek=ej.endGap,eA=(E=ey.startEdge,O=ey.endEdge,k=ey.direction,A=Cs(eo),{groupSlides:function(e){return A?Cp(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?Cp(e).reduce(function(t,n,r){var a=Cm(t)||0,i=n===Ch(e),o=em[E]-eh[a][E],s=em[E]-eh[n][O],l=et||0!==a?0:k(eO),u=Cd(s-(!et&&i?k(ek):0)-(o+l));return r&&u>ev+2&&t.push(n),i&&t.push(e.length),t},[]).map(function(t,n,r){var a=Math.max(r[n-1]||0);return e.slice(a,t)}):[]}}),eD=(D=ey.startEdge,P=ey.endEdge,T=(C=eA.groupSlides)(eh).map(function(e){return Cm(e)[P]-e[0][D]}).map(Cd).map(eb.measure),M=C(N=eh.map(function(e){return em[D]-e[D]}).map(function(e){return-Cd(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:M}),eP=eD.snaps,eC=eD.snapsAligned,eT=-Cm(eP)+Cm(eE),eN=function(e,t,n,r){var a,i,o=Cx(-t+e,0),s=n.map(function(e,t){var r=o.min,a=o.max,i=o.constrain(e),s=t===Ch(n);return t?s||function(e,t){return 1>=Cd(e-t)}(r,i)?r:function(e,t){return 1>=Cd(e-t)}(a,i)?a:i:a}).map(function(e){return parseFloat(e.toFixed(3))}),l=(a=s[0],i=Cm(s),Cx(s.lastIndexOf(a),s.indexOf(i)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;var n=l.min,a=l.max;return s.slice(n,a)}(),scrollContainLimit:l}}(ev,eT,eC,el),eM=eN.snapsContained,eR=eN.scrollContainLimit,eI=ex?eM:eC,e_=(R=eI[0],{limit:Cx(et?R-eT:Cm(eI),R)}).limit,eL=function e(t,n,r){var a=Cx(0,t).constrain,i=t+1,o=s(n);function s(e){return r?Cd((i+e)%i):a(e)}function l(){return e(t,o,r)}var u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(Ch(eI),ee,et),eF=eL.clone(),eB=Cp(n),eV=function(e){var t=e.dragHandler,n=e.scrollBody,r=e.scrollBounds;e.options.loop||r.constrain(t.pointerDown()),n.seek()},ez=function(e,t){var n=e.scrollBody,r=e.translate,a=e.location,i=e.offsetLocation,o=e.previousLocation,s=e.scrollLooper,l=e.slideLooper,u=e.dragHandler,c=e.animation,d=e.eventHandler,f=e.scrollBounds,p=e.options.loop,m=n.settled(),h=!f.shouldConstrain(),y=p?m:m&&h,v=y&&!u.pointerDown();v&&c.stop();var g=a.get()*t+o.get()*(1-t);i.set(g),p&&(s.loop(n.direction()),l.loop()),r.to(i.get()),v&&d.emit("settle"),y||d.emit("scroll")},eW=function(e,t,n,r){var a=Cb(),i=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,n(),n());var a=e-o;for(o=e,s+=a;s>=i;)n(),s-=i;r(s/i),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){a.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),a.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:r}}(r,a,function(){return eV(e2)},function(e){return ez(e2,e)}),eU=eI[eL.get()],e$=Cw(eU),eH=Cw(eU),eG=Cw(eU),eq=Cw(eU),eY=function(e,t,n,r,a){var i=0,o=0,s=a,l=.68,u=e.get(),c=0;function d(e){return s=e,p}function f(e){return l=e,p}var p={direction:function(){return o},duration:function(){return s},velocity:function(){return i},seek:function(){var t=r.get()-e.get(),a=0;return s?(n.set(e),i+=t/s,i*=l,u+=i,e.add(i),a=u-c):(i=0,n.set(r),e.set(r),a=t),o=Cf(a),c=u,p},settled:function(){return .001>Cd(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(a)},useFriction:f,useDuration:d};return p}(e$,eG,eH,eq,en),eK=function(e,t,n,r,a){var i=r.reachedAny,o=r.removeOffset,s=r.constrain;function l(e){return e.concat().sort(function(e,t){return Cd(e)-Cd(t)})[0]}function u(t,r){var a=[t,t+n,t-n];if(!e)return t;if(!r)return l(a);var i=a.filter(function(e){return Cf(e)===r});return i.length?l(i):Cm(a)-n}return{byDistance:function(n,r){var l,c=a.get()+n,d=(l=e?o(c):s(c),{index:t.map(function(e,t){return{diff:u(e-l,0),index:t}}).sort(function(e,t){return Cd(e.diff)-Cd(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,m=!e&&i(c);if(!r||m)return{index:f,distance:n};var h=n+u(t[f]-p,0);return{index:f,distance:h}},byIndex:function(e,n){var r=u(t[e]-a.get(),n);return{index:e,distance:r}},shortcut:u}}(et,eI,eT,e_,eq),eZ=function(e,t,n,r,a,i,o){function s(a){var s=a.distance,l=a.index!==t.get();i.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(a.index),o.emit("select"))}return{distance:function(e,t){s(a.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);s(a.byIndex(r.get(),n))}}}(eW,eL,eF,eY,eK,eq,o),eX=(I=e_.max,_=e_.length,{get:function(e){return _?-((e-I)/_):0}}),eQ=Cb(),eJ=(F={},B=null,V=null,z=!1,{init:function(){L=new IntersectionObserver(function(e){z||(e.forEach(function(e){F[n.indexOf(e.target)]=e}),B=null,V=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ei}),n.forEach(function(e){return L.observe(e)})},destroy:function(){L&&L.disconnect(),z=!0},get:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(e&&B)return B;if(!e&&V)return V;var t=Cv(F).reduce(function(t,n){var r=parseInt(n),a=F[r].isIntersecting;return(e&&a||!e&&!a)&&t.push(r),t},[]);return e&&(B=t),e||(V=t),t}}),e0=(W=eA.groupSlides,U=eR.min,$=eR.max,{slideRegistry:(c=W(eB),1===eI.length?[eB]:ex&&"keepSnaps"!==el?c.slice(U,$).map(function(e,t,n){var r=t===Ch(n);return t?r?Cy(Ch(eB)-Cm(n)[0]+1,Cm(n)[0]):e:Cy(Cm(n[0])+1)}):c)}).slideRegistry,e1=function(e,t,n,r,a,i,o,s){var l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){s&&(i.add(document,"keydown",c,!1),t.forEach(function(t,c){i.add(t,"focus",function(t){(Cu(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var i=n.findIndex(function(e){return e.includes(t)});Cs(i)&&(a.useDuration(0),r.index(i,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,n,e0,eZ,eY,eQ,o,ef),e2={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:em,slideRects:eh,animation:eW,axis:ey,dragHandler:function(e,t,n,r,a,i,o,s,l,u,c,d,f,p,m,h,y,v){var g=e.cross,b=e.direction,x=["INPUT","SELECT","TEXTAREA"],w={passive:!1},j=Cb(),S=Cb(),E=Cx(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},k={mouse:500,touch:600},A=m?43:25,D=!1,P=0,C=0,T=!1,N=!1,M=!1,R=!1;function I(e){if(!Cg(e,r)&&e.touches.length>=2)return _(e);var t=i.readPoint(e),n=i.readPoint(e,g),o=Cd(t-P),l=Cd(n-C);if(!N&&!R&&(!e.cancelable||!(N=o>l)))return _(e);var c=i.pointerMove(e);o>h&&(M=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(b(c)),e.preventDefault()}function _(e){var t,n,r,a=c.byDistance(0,!1).index!==d.get(),o=i.pointerUp(e)*(m?k:O)[R?"mouse":"touch"],s=(t=b(o),n=d.add(-1*Cf(t)),r=c.byDistance(t,!m).distance,m||Cd(t)<E?r:y&&a?.5*r:c.byIndex(n.get(),0).distance),p=function(e,t){if(0===e||0===t||Cd(e)<=Cd(t))return 0;var n,r,a=(n=Cd(e),r=Cd(t),Cd(n-r));return Cd(a/e)}(o,s);N=!1,T=!1,S.clear(),u.useDuration(A-10*p).useFriction(.68+p/50),l.distance(s,!m),R=!1,f.emit("pointerUp")}function L(e){M&&(e.stopPropagation(),e.preventDefault(),M=!1)}return{init:function(e){v&&j.add(t,"dragstart",function(e){return e.preventDefault()},w).add(t,"touchmove",function(){},w).add(t,"touchend",function(){}).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",_).add(t,"contextmenu",_).add(t,"click",L,!0);function s(s){var l,c,d,p;(Cu(v)||v(e,s))&&(R=p=Cg(l=s,r),M=m&&p&&!l.buttons&&D,D=Cd(a.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",x.includes(c)||(T=!0,i.pointerDown(l),u.useFriction(0).useDuration(0),a.set(o),d=R?n:t,S.add(d,"touchmove",I,w).add(d,"touchend",_).add(d,"mousemove",I,w).add(d,"mouseup",_),P=i.readPoint(l),C=i.readPoint(l,g),f.emit("pointerDown"))))}},destroy:function(){j.clear(),S.clear()},pointerDown:function(){return T}}}(ey,e,r,a,eq,function(e,t){var n,r;function a(e){return e.timeStamp}function i(n,r){var a=r||e.scroll;return(Cg(n,t)?n:n.touches[0])["client".concat("x"===a?"X":"Y")]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){var t=i(e)-i(r),o=a(e)-a(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;var t=i(r)-i(n),o=a(e)-a(n),s=a(e)-a(r)>170,l=t/o;return o&&!s&&Cd(l)>.1?l:0},readPoint:i}}(ey,a),e$,eW,eZ,eY,eK,eL,o,eg,er,ea,es,ed),eventStore:eQ,percentOfView:eg,index:eL,indexPrevious:eF,limit:e_,location:e$,offsetLocation:eG,previousLocation:eH,options:i,resizeHandler:function(e,t,n,r,a,i,o){var s,l,u=[e].concat(r),c=[],d=!1;function f(e){return a.measureSize(o.measure(e))}return{init:function(a){i&&(l=f(e),c=r.map(f),s=new ResizeObserver(function(n){(Cu(i)||i(a,n))&&function(n){var i=!0,o=!1,s=void 0;try{for(var u,p=n[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var m=u.value;if(d)return;var h=m.target===e,y=r.indexOf(m.target),v=h?l:c[y],g=f(h?e:r[y]);if(Cd(g-v)>=.5){a.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}(n)}),n.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,a,n,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,n,r,a){var i=a.measure(10),o=a.measure(50),s=Cx(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(a){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=Cd(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(c/o);n.subtract(d*f),!a&&Cd(d)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(e_,eG,eq,eY,eg),scrollLooper:(H=[e$,eG,eH,eq],q=(G=Cx(e_.min+.1,e_.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&q(eG.get())){var t=-1*e*eT;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eI.map(eX.get),scrollSnaps:eI,scrollTarget:eK,scrollTo:eZ,slideLooper:function(e,t,n,r,a,i,o,s,l){var u=Cp(a),c=Cp(a).reverse(),d=m(p(c,o[0]),n,!1).concat(m(p(u,t-o[0]-1),-n,!0));function f(e,t){return e.reduce(function(e,t){return e-a[t]},t)}function p(e,t){return e.reduce(function(e,n){return f(e,t)>0?e.concat([n]):e},[])}function m(a,o,u){var c=i.map(function(e,n){return{start:e-r[n]+.5+o,end:e+t-.5+o}});return a.map(function(t){var r=u?0:-n,a=u?n:0,i=c[t][u?"end":"start"];return{index:t,loopPoint:i,slideLocation:Cw(-1),translate:Cj(e,l[t]),target:function(){return s.get()>i?r:a}}})}return{canLoop:function(){return d.every(function(e){var n=e.index;return .1>=f(u.filter(function(e){return e!==n}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,n=e.translate,r=e.slideLocation,a=t();a!==r.get()&&(n.to(a),r.set(a))})},loopPoints:d}}(ey,ev,eT,eS,eE,eP,eI,eG,n),slideFocus:e1,slidesHandler:(Z=!1,{init:function(e){ec&&(K=new MutationObserver(function(t){!Z&&(Cu(ec)||ec(e,t))&&function(t){var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(t)})).observe(t,{childList:!0})},destroy:function(){K&&K.disconnect(),Z=!0}}),slidesInView:eJ,slideIndexes:eB,slideRegistry:e0,slidesToScroll:eA,target:eq,translate:Cj(ey,t)};return e2}(e,u,c,d,f,n,y);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(O),b([E].concat(function(e){if(Array.isArray(e))return Co(e)}(o=k.map(function(e){return e.options}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e){if(e){if("string"==typeof e)return Co(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Co(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).forEach(function(e){return h.add(e,"change",D)}),O.active&&(s.translate.to(s.location.get()),s.animation.init(),s.slidesInView.init(),s.slideFocus.init(N),s.eventHandler.init(N),s.resizeHandler.init(N),s.slidesHandler.init(N),s.options.loop&&s.slideLooper.loop(),u.offsetParent&&c.length&&s.dragHandler.init(N),l=m.init(N,k)))}function D(e,t){var n=T();P(),A(v({startIndex:n},e),t),y.emit("reInit")}function P(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),m.destroy(),h.clear()}function C(e,t,n){O.active&&!S&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,n||0))}function T(){return s.index.get()}var N={canScrollNext:function(){return s.index.add(1).get()!==T()},canScrollPrev:function(){return s.index.add(-1).get()!==T()},containerNode:function(){return u},internalEngine:function(){return s},destroy:function(){S||(S=!0,h.clear(),P(),y.emit("destroy"),y.clear())},off:w,on:x,emit:j,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:D,rootNode:function(){return e},scrollNext:function(e){C(s.index.add(1).get(),e,-1)},scrollPrev:function(e){C(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:C,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return A(t,n),setTimeout(function(){return y.emit("init")},0),N}function CO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ck(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CO(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,g.useRef)(e),r=(0,g.useRef)(t),a=Ck((0,g.useState)(),2),i=a[0],o=a[1],s=Ck((0,g.useState)(),2),l=s[0],u=s[1],c=(0,g.useCallback)(function(){i&&i.reInit(n.current,r.current)},[i]);return(0,g.useEffect)(function(){Ca(n.current,e)||(n.current=e,c())},[e,c]),(0,g.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var n=Ci(e),r=Ci(t);return n.every(function(e,t){return Ca(e,r[t])})}(r.current,t)&&(r.current=t,c())},[t,c]),(0,g.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){CE.globalOptions=CA.globalOptions;var e=CE(l,n.current,r.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,i]}CE.globalOptions=void 0,CA.globalOptions=void 0;let CD={root:"tdejYd2vuxy0mfD4W2J+jw==",viewport:"BzM337PSXvRayyYwjsiCKw==","viewport--x":"_98E0ZUOehP1rxRPgPQZzQg==","viewport--y":"CCMIiXjCBQAMwkqxJsI3Pg==",container:"TG-E6FLJUAkSIHrYBvoXtg==","container--x":"aUzVDJOwTVV4q-Kn0oqNPA==","container--y":"Q-tXlloS3nMGAM5J9W6GwA==",slide:"eqtMmBhS05zGHR0EesgHaw==","slide--x":"_0fY9RrAfetQ4jWZ6O0WhJQ==","slide--y":"_9d8JpyHV87JtGiAWP8Btuw==",thumbsViewport:"gavQFViS+IVYeAlNj8hlBQ==",thumbsContainer:"umsVBn0z4F-ma9IJu78PFw==","thumbsContainer--x":"HMLba9Ijt06btOrMVkk-jg==","thumbsContainer--y":"IuqTKMYP2zQBbtfSj1+0XQ==",thumb:"_6tC7bHzuA6DP75VG3mb1Vw==","thumb--active":"rSXJb09-+ekHWs9Kr6eK-g==",thumbImage:"H3rE7ZtwW0NN8Ti1+k45Sg==",dots:"xhwJiTmcB78zUtdgAtJm4Q==",dot:"ftAUylfEUwMcgWd8ag4h8g==","dot--active":"_9GeJo3THY2950-iACPngew=="};function CP(e){var t=e.children,n=e.className,r=Cn(),a=r.axis,i=r.mainViewportRef;return(0,v.jsx)("div",{ref:i,className:w()(CD.viewport,CD["viewport--".concat(a)],n),children:(0,v.jsx)("div",{className:w()(CD.container,CD["container--".concat(a)]),children:t})})}function CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CC(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CN(e){var t,n,r,a=e.children,i=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(r=null==i?void 0:i.axis)?r:"x",f=CT(CA((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},i),n=n={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t),o),2),p=f[0],m=f[1],h=CT(CA({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),y=h[0],x=h[1],j=CT((0,g.useState)(0),2),S=j[0],E=j[1],O=(0,g.useMemo)(function(){return function(e){var t=b().Children.toArray(e),n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(b().isValidElement(s)&&s.type===CP){var l=s.props;return b().Children.toArray(l.children).filter(b().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return[]}(a)},[a]),k=(0,g.useCallback)(function(e){null==m||m.scrollTo(e)},[m]),A=(0,g.useCallback)(function(){if(m){var e=m.selectedScrollSnap();E(e),null==x||x.scrollTo(e)}},[m,x]);return(0,g.useEffect)(function(){if(m)return A(),m.on("select",A).on("reInit",A),function(){m.off("select",A).off("reInit",A)}},[m,A]),(0,v.jsx)(Ct.Provider,{value:{axis:d,mainViewportRef:p,mainApi:m,thumbsViewportRef:y,thumbsApi:x,selectedIndex:S,scrollTo:k,thumbnails:O},children:(0,v.jsx)("div",{className:w()(CD.root,u),style:c,children:a})})}function CM(e){var t=e.children,n=e.className,r=Cn().axis;return(0,v.jsx)("div",{className:w()(CD.slide,CD["slide--".concat(r)],n),children:t})}function CR(e){var t=e.className,n=e.thumbsSliderClassName,r=Cn(),a=r.axis,i=r.thumbsViewportRef,o=r.thumbnails,s=r.selectedIndex,l=r.scrollTo;return 0===o.length?null:(0,v.jsx)("div",{ref:i,className:w()(CD.thumbsViewport,t),children:(0,v.jsx)("div",{className:w()(CD.thumbsContainer,CD["thumbsContainer--".concat(a)]),children:o.map(function(e,t){var r,a,i=t===s;return(0,v.jsx)("button",{type:"button",onClick:function(){return l(t)},className:w()(CD.thumb,(r={},a=CD["thumb--active"],a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),i&&n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":i,children:e&&(0,v.jsx)("img",{src:e,alt:"",className:CD.thumbImage})},t)})})})}function CI(e){var t=e.className,n=e.dotClassName,r=Cn(),a=r.thumbnails,i=r.selectedIndex,o=r.scrollTo;return 0===a.length?null:(0,v.jsx)("div",{className:w()(CD.dots,t),children:a.map(function(e,t){var r,a,s;return(0,v.jsx)("button",{type:"button",onClick:function(){return o(t)},className:w()(CD.dot,(r={},a=CD["dot--active"],s=t===i,a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r),n),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===i},t)})})}function C_(e){var t=e.id,n=e.as,r=e.variant,a=void 0===r?"transparent":r,i=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(i||s||l);return(0,v.jsxs)(void 0===n?"section":n,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===a?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===a?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,v.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,v.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[i&&(0,v.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:i}),s&&(0,v.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,v.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,v.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}var CL={collapse:"Replier la section",expand:"D\xe9plier la section"},CF=(0,g.createContext)({tone:"onDark",density:"comfortable",classNames:{},labels:CL,headerLayout:"split",footerLayout:"between",divider:!0,footerDivider:!0,collapsible:!1,collapsed:!1,toggle:function(){}});function CB(){return(0,g.useContext)(CF)}var CV={sm:{text:"h-7 px-2.5 text-xs",icon:"size-7"},md:{text:"h-8 px-3 text-[13px]",icon:"size-8"}};function Cz(e){var t=e.children,n=e.icon,r=e.label,a=e.active,i=void 0!==a&&a,o=e.variant,s=void 0===o?"ghost":o,l=e.size,u=void 0===l?"md":l,c=e.href,d=e.target,f=e.rel,p=e.disabled,m=e.type,h=e.onClick,y=e.className,g=!t,b=yt("inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-md","font-medium leading-none no-underline outline-none transition-colors duration-150","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70","aria-disabled:pointer-events-none aria-disabled:opacity-40 disabled:pointer-events-none disabled:opacity-40",g?yt(CV[u].icon,"p-0"):CV[u].text,"solid"===s?"border-0 bg-(--section-accent,#10b981) text-white hover:brightness-110":"outline"===s?yt("border border-solid border-(--section-line,rgba(255,255,255,0.12))",i?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"):yt("border-0",i?"bg-(--section-fg,#fff)/12 text-(--section-fg,#fff)":"bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) hover:bg-(--section-fg,#fff)/8 hover:text-(--section-fg,#fff)"),y),x=(0,v.jsxs)(v.Fragment,{children:[n,t]});return c?(0,v.jsx)("a",{href:c,target:d,rel:null!=f?f:"_blank"===d?"noreferrer noopener":void 0,title:r,"aria-label":g?r:void 0,"aria-current":i||void 0,"aria-disabled":p||void 0,onClick:h,className:b,children:x}):(0,v.jsx)("button",{type:void 0===m?"button":m,title:r,"aria-label":g?r:void 0,"aria-pressed":i||void 0,disabled:p,onClick:h,className:b,children:x})}var CW={none:"gap-0",xs:"gap-2",sm:"gap-3",md:"gap-5",lg:"gap-8",xl:"gap-10"},CU={base:1,md:2,lg:3},C$=["base","sm","md","lg","xl","2xl"];function CH(e){var t=e.as,n=e.columns,r=void 0===n?CU:n,a=e.minItemWidth,i=e.gap,o=e.className,s=e.children,l={};if(a)l["--sg-min"]=a;else{var u="number"==typeof r?{base:r}:r,c=!0,d=!1,f=void 0;try{for(var p,m=C$[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var h=p.value,y=u[h];"number"==typeof y&&y>0&&(l["--sg-".concat(h)]=String(Math.floor(y)))}}catch(e){d=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(d)throw f}}}return(0,v.jsx)(void 0===t?"div":t,{"data-section-part":"grid",style:l,className:yt("grid min-w-0",CW[void 0===i?"md":i],a?"grid-cols-[repeat(auto-fill,minmax(min(100%,var(--sg-min)),1fr))]":yt("grid-cols-[repeat(var(--sg-base,1),minmax(0,1fr))]","sm:grid-cols-[repeat(var(--sg-sm,var(--sg-base,1)),minmax(0,1fr))]","md:grid-cols-[repeat(var(--sg-md,var(--sg-sm,var(--sg-base,1))),minmax(0,1fr))]","lg:grid-cols-[repeat(var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))),minmax(0,1fr))]","xl:grid-cols-[repeat(var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1))))),minmax(0,1fr))]","2xl:grid-cols-[repeat(var(--sg-2xl,var(--sg-xl,var(--sg-lg,var(--sg-md,var(--sg-sm,var(--sg-base,1)))))),minmax(0,1fr))]"),o),children:s})}function CG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CG(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var CY={position:"--section-header-position",top:"--section-sticky-top",zIndex:"--section-sticky-z"};function CK(e){var t=e.sticky,n=e.offset,r=e.zIndex,a={};return void 0!==t&&(a[CY.position]=t?"sticky":"static"),void 0!==n&&(a[CY.top]=n),void 0!==r&&(a[CY.zIndex]=r),a}var CZ=(c={},d=CY.position,f="static",d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c);function CX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function CJ(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var C0={compact:"pb-2",comfortable:"pb-3",spacious:"pb-4"},C1={compact:"pt-3",comfortable:"pt-4",spacious:"pt-6"},C2={compact:"mt-3",comfortable:"mt-4",spacious:"mt-6"},C3={compact:"pt-2",comfortable:"pt-3",spacious:"pt-4"},C5={sm:"text-base font-medium leading-snug",md:"text-xl font-light leading-tight sm:text-2xl",lg:"text-2xl font-light leading-tight sm:text-3xl"},C4={split:"flex-wrap items-center justify-between",stacked:"flex-col items-start",centered:"flex-col items-center text-center"},C6={split:"ml-auto justify-end",stacked:"justify-start",centered:"justify-center"},C8={between:"justify-between",start:"justify-start",center:"justify-center",end:"justify-end"};function C9(e){var t=e.className,n=CB().classNames;return(0,v.jsx)("div",{role:"presentation","aria-hidden":"true","data-section-part":"divider",className:yt("h-px w-full shrink-0 bg-(--section-line,rgba(255,255,255,0.12))",n.divider,t)})}function C7(){var e=CB(),t=e.collapsed,n=e.toggle,r=e.labels,a=e.bodyId,i=t?r.expand:r.collapse;return(0,v.jsx)("button",{type:"button",onClick:n,title:i,"aria-label":i,"aria-expanded":!t,"aria-controls":a,className:yt("inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-(--section-muted,rgba(255,255,255,0.65)) outline-none transition-colors duration-150","hover:bg-(--section-fg,#fff)/10 hover:text-(--section-fg,#fff)","focus-visible:ring-2 focus-visible:ring-(--section-accent,#34d399)/70"),children:(0,v.jsx)("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:yt("transition-transform duration-300 motion-reduce:transition-none",!t&&"rotate-180"),children:(0,v.jsx)("path",{d:"M4 6l4 4 4-4"})})})}function Te(e){var t,n,r,a,i,o,s,l,u=e.title,c=e.titleAs,d=e.titleSize,f=e.icon,p=e.description,m=e.count,h=e.actions,y=e.children,b=e.layout,x=e.divider,w=e.className,j=CB(),S=j.classNames,E=j.density,O=j.collapsible,k=null!=b?b:j.headerLayout,A=null!=x?x:j.divider,D=(0,g.useRef)(null),P=(t=j.stickyKey,n=(0,g.useRef)(null),a=(r=Cq((0,g.useState)(!1),2))[0],i=r[1],s=(o=Cq((0,g.useState)(!1),2))[0],l=o[1],(0,g.useEffect)(function(){var e=D.current;i(!!e&&"sticky"===getComputedStyle(e).position)},[D,t]),(0,g.useEffect)(function(){var e=D.current,t=n.current;if(!a||!e||!t||"u"<typeof IntersectionObserver)return void l(!1);var r=parseFloat(getComputedStyle(e).top)||0,i=new IntersectionObserver(function(e){return l(!Cq(e,1)[0].isIntersecting)},{rootMargin:"-".concat(r,"px 0px 0px 0px"),threshold:0});return i.observe(t),function(){return i.disconnect()}},[D,a]),{isSticky:a,stuck:s,sentinelRef:n}),C=P.isSticky,T=P.stuck,N=P.sentinelRef,M=null!=m&&""!==m,R=null!=h&&!1!==h;return(0,v.jsxs)(v.Fragment,{children:[C?(0,v.jsx)("div",{ref:N,"aria-hidden":"true","data-section-part":"sticky-sentinel",className:"pointer-events-none -mb-px h-px w-full shrink-0"}):null,(0,v.jsxs)("div",{ref:D,"data-section-part":"header","data-stuck":C?String(T):void 0,className:yt("flex flex-col","[position:var(--section-header-position,static)] top-(--section-sticky-top,0px) z-(--section-sticky-z,10)","transition-[background-color,box-shadow] duration-200 motion-reduce:transition-none","data-[stuck=true]:bg-(--section-sticky-bg,rgb(8_12_20/0.72)) data-[stuck=true]:backdrop-blur-xl","data-[stuck=true]:shadow-[0_8px_24px_-12px_rgb(0_0_0/0.45)]",S.header,w),children:[(0,v.jsxs)("div",{className:yt("flex gap-x-4 gap-y-2",C4[k],C0[E]),children:[null!=y?(0,v.jsx)("div",{className:"min-w-0 flex-1",children:y}):(0,v.jsxs)("div",{className:yt("flex min-w-0 flex-col gap-1","split"===k&&"flex-1 basis-48",S.heading),children:[(0,v.jsxs)("div",{className:yt("flex min-w-0 items-center gap-2.5","centered"===k&&"justify-center"),children:[f?(0,v.jsx)("span",{className:yt("inline-flex shrink-0 items-center justify-center text-(--section-accent,#34d399)",S.leading),children:f}):null,u?(0,v.jsx)(void 0===c?"h2":c,{id:j.headingId,className:yt("m-0 min-w-0 text-balance tracking-tight text-(--section-fg,#fff)",C5[void 0===d?"md":d],S.title),children:u}):null,M?(0,v.jsx)("span",{className:yt("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1.5","bg-(--section-fg,#fff)/10 text-[11px] font-medium leading-none text-(--section-muted,rgba(255,255,255,0.65))",S.count),children:m}):null]}),p?(0,v.jsx)("p",{className:yt("m-0 max-w-3xl text-sm leading-relaxed text-(--section-muted,rgba(255,255,255,0.65))",S.description),children:p}):null]}),R||O?(0,v.jsxs)("div",{className:yt("flex flex-wrap items-center gap-1.5",C6[k],null!=y&&"split"===k&&"shrink-0",S.actions),children:[h,O?(0,v.jsx)(C7,{}):null]}):null]}),A?(0,v.jsx)(C9,{}):null]})]})}function Tt(e){var t,n=e.children,r=e.flush,a=e.maxHeight,i=e.className,o=CB(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=o.bodyId,f=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(c))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return CX(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CX(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=f[0],m=f[1],h=(0,g.useRef)(!0);(0,g.useEffect)(function(){if(h.current){h.current=!1;return}m(!0);var e=setTimeout(function(){return m(c)},320);return function(){return clearTimeout(e)}},[c]);var y=(0,v.jsx)("div",{"data-section-part":"body",className:yt("min-w-0",!(void 0!==r&&r)&&C1[l],a&&"overflow-y-auto overscroll-contain",s.body,i),style:a?CJ(CQ({},CZ),{maxHeight:a}):CZ,children:n});return u?(0,v.jsx)("div",CJ(CQ({id:d,"aria-hidden":c||void 0},c?{inert:""}:{}),{className:yt("grid transition-[grid-template-rows] duration-300 ease-out motion-reduce:transition-none",c?"grid-rows-[0fr]":"grid-rows-[1fr]"),children:(0,v.jsx)("div",{className:yt("min-h-0",p&&"overflow-hidden"),children:y})})):(0,v.jsx)("div",{id:d,children:y})}function Tn(e){var t=e.children,n=e.actions,r=e.layout,a=e.divider,i=e.className,o=CB(),s=o.classNames,l=o.density,u=o.collapsible,c=o.collapsed,d=null!=r?r:o.footerLayout,f=null!=a?a:o.footerDivider,p=null!=t&&!1!==t,m=null!=n&&!1!==n;return u&&c?null:(0,v.jsxs)("div",{"data-section-part":"footer",className:yt("flex flex-col",C2[l],s.footer,i),children:[f?(0,v.jsx)(C9,{}):null,(0,v.jsxs)("div",{className:yt("flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-(--section-muted,rgba(255,255,255,0.65))",C3[l],C8[d]),children:[p?(0,v.jsx)("div",{className:yt("min-w-0",s.footerStart),children:t}):null,m?(0,v.jsx)("div",{className:yt("flex flex-wrap items-center gap-1.5","between"===d&&"ml-auto",s.footerEnd),children:n}):null]})]})}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ta={plain:"",glass:"rounded-2xl p-5 backdrop-blur-xl ring-1 ring-inset ring-(--section-line,rgba(255,255,255,0.12))"},Ti={onDark:"bg-black/40",onLight:"bg-white/70"},To=new Set([Te,Tt,Tn]);function Ts(e){return null!=e&&!1!==e&&""!==e}var Tl=Object.assign(function(e){var t,n=e.id,r=e.as,a=e.ariaLabel,i=e.variant,o=void 0===i?"plain":i,s=e.tone,l=void 0===s?"onDark":s,u=e.density,c=void 0===u?"comfortable":u,d=e.title,f=e.titleAs,p=e.titleSize,m=e.icon,h=e.description,y=e.count,b=e.actions,x=e.header,w=e.headerLayout,j=void 0===w?"split":w,S=e.divider,E=void 0===S||S,O=e.stickyHeader,k=e.stickyOffset,A=e.stickyZIndex,D=e.footer,P=e.footerActions,C=e.footerLayout,T=void 0===C?"between":C,N=e.footerDivider,M=void 0===N||N,R=e.bodyMaxHeight,I=e.bodyFlush,_=e.collapsible,L=void 0!==_&&_,F=e.collapsed,B=e.defaultCollapsed,V=e.onCollapsedChange,z=e.labels,W=e.className,U=e.classNames,$=void 0===U?{}:U,H=e.children,G=(0,g.useId)(),q="".concat(G,"-title"),Y="".concat(G,"-body"),K=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(void 0!==B&&B))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return Tr(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Tr(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),Z=K[0],X=K[1],Q=L&&(null!=F?F:Z),J=(0,g.useCallback)(function(){var e=!Q;void 0===F&&X(e),null==V||V(e)},[Q,F,V]),ee=Ts(d),et=(0,g.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},CL,z)},[z]),en=(0,g.useMemo)(function(){return{tone:l,density:c,classNames:$,labels:et,headerLayout:j,footerLayout:T,divider:E,footerDivider:M,collapsible:L,collapsed:Q,toggle:J,headingId:ee?q:void 0,bodyId:Y,stickyKey:"".concat(O,"|").concat(k,"|").concat(A)}},[l,c,$,et,j,T,E,M,L,Q,J,ee,q,Y,O,k,A]),er=ee||Ts(h)||Ts(b)||Ts(m)||Ts(x)||null!=y&&""!==y||L,ea=Ts(D)||Ts(P),ei=Ts(H),eo=g.Children.toArray(H).some(function(e){return(0,g.isValidElement)(e)&&To.has(e.type)});return(0,v.jsx)(CF.Provider,{value:en,children:(0,v.jsxs)(void 0===r?"section":r,{id:n,"aria-label":a,"aria-labelledby":!a&&ee?q:void 0,"data-section-variant":o,style:CK({sticky:O,offset:k,zIndex:A}),className:yt("relative flex w-full min-w-0 flex-col text-(--section-fg,#fff)","onLight"===l&&"[--section-fg:#0f172a] [--section-muted:rgba(15,23,42,0.62)] [--section-line:rgba(15,23,42,0.14)] [--section-sticky-bg:rgb(255_255_255/0.82)]",Ta[o],"glass"===o&&Ti[l],W,$.root),children:[er?(0,v.jsx)(Te,{title:d,titleAs:f,titleSize:p,icon:m,description:h,count:y,actions:b,children:x}):null,ei?eo?H:(0,v.jsx)(Tt,{flush:I,maxHeight:R,children:H}):null,ea?(0,v.jsx)(Tn,{actions:P,children:D}):null]})})},{Header:Te,Body:Tt,Footer:Tn,Divider:C9,Action:Cz,Grid:CH});function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var Tc={none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-10",xl:"gap-14"};function Td(e){var t=e.name,n=e.state,r=e.select,a=e.stickyHeaders,i=e.stickyOffset,o=e.stickyZIndex,s=e.gap,l=e.renderItem,u=e.className,c=e.itemClassName,d=e.style,f=Tu({},CK({sticky:void 0===a||a,offset:void 0===i?"0px":i,zIndex:void 0===o?10:o}),d),p=yt("flex w-full min-w-0 flex-col",Tc[void 0===s?"lg":s],u);return(0,v.jsx)(j.ExtensionSlot,{name:t,select:r,"data-section-slot":t,className:p,style:f,children:function(e){var t=(0,v.jsx)(j.Extension,{state:n}),r={name:e.name,moduleName:e.moduleName,meta:Tu({},e.meta)};return(0,v.jsx)("div",{"data-section-slot-item":e.name,className:yt("min-w-0",c),children:l?l(t,r):t})}})}var Tf=yt("group relative flex min-w-0 flex-col rounded-2xl border border-white/10 bg-slate-900/45 p-4","text-slate-100 shadow-lg backdrop-blur-sm outline-none transition-all duration-300","hover:-translate-y-1 hover:border-teal-400/50 hover:bg-slate-900/75 hover:shadow-2xl","has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-emerald-400");function Tp(e){var t,n,r=e.as,a=e.className,i=e.children,o=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["as","className","children"]);return(0,v.jsx)(void 0===r?"div":r,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"data-section-card":"",className:yt(Tf,a)},o),n=n={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}function Tm(e){var t=e.onClick,n=e.className,r=e.children;return(0,v.jsx)("button",{type:"button",onClick:t,className:yt("block w-full cursor-pointer border-0 bg-transparent p-0 outline-none [color:inherit] [font:inherit] [text-align:inherit]","after:absolute after:inset-0 after:content-['']",n),children:r})}function Th(e){var t,n=e.tile,r=e.size,a=e.onSelect,i=e.className;return(0,v.jsxs)(mq.div,{whileHover:{scale:"large"===r?1.008:1.012},transition:{duration:.2},onClick:function(){return a(n)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(n))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===r?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=i?i:""].join(" "),children:[(0,v.jsx)("img",{src:n.imageUrl,alt:n.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,v.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,v.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===r?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:n.title}),(0,v.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=n.linkText)?t:"En savoir plus →"})]}):(0,v.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:n.title})})]})}function Ty(e){var t=e.mainTile,n=e.secondaryTiles,r=e.onSelectTile;return(0,v.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,v.jsx)(Th,{tile:t,size:"large",onSelect:r}),n.slice(0,4).map(function(e){return(0,v.jsx)(Th,{tile:e,size:"medium",onSelect:r},e.id)})]})}function Tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tg(e){if(Array.isArray(e))return e}function Tb(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Tx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function Tw(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Tj(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}function TS(e,t){return Tg(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TO(e,t)||Tb()}function TE(e){return Tg(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TO(e)||Tb()}function TO(e,t){if(e){if("string"==typeof e)return Tv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tv(e,t)}}var Tk=(0,g.forwardRef)(function(e,t){var n=e.left,r=e.center,a=e.right,i=e.secondary,o=e.children,s=e.sticky,l=void 0===s||s,u=e.stickyOffset,c=e.variant,d=e.ariaLabel,f=e.className,p=e.wrapperClassName;return(0,v.jsxs)("div",{className:yt("flex flex-col w-full z-(--z-index-sticky,200)",l&&"sticky",p),style:l?{top:void 0===u?"var(--own-offline-banner-height, 0px)":u}:void 0,children:[(0,v.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:yt("relative flex w-full items-center justify-between gap-2 px-3 sm:px-4 select-none","h-(--layout-header-height,48px) border-b","border-b-(--panel-header-border,rgba(255,255,255,0.08))","text-(--colors-surface-foreground,#f4f4f4)","glass"===(void 0===c?"glass":c)?"bg-(--panel-header-background,rgba(11,25,44,0.72)) backdrop-blur-xl shadow-(--panel-header-box-shadow,0_1px_12px_rgba(0,0,0,0.25))":"bg-(--colors-surface-card,#0b192c) shadow-(--panel-header-box-shadow,none)",f),children:[(0,v.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:n}),r?(0,v.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:r}):null,(0,v.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:a}),o]}),i?(0,v.jsx)("div",{className:"w-full",children:i}):null]})}),TA=(0,g.forwardRef)(function(e,t){var n=TE([e,t]),r=n[0],a=n.slice(1),i=r.icon,o=r.label,s=r.badge,l=r.active,u=void 0!==l&&l,c=r.className,d=r.type,f=Tj(r,["icon","label","badge","active","className","type"]),p=TS(a,1)[0],m=null!=s&&""!==s&&0!==s;return(0,v.jsxs)("button",Tw(Tx({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:yt("relative inline-flex h-9 min-w-9 cursor-pointer items-center justify-center rounded-md border-0 p-0","bg-transparent text-inherit transition-colors duration-150 outline-none","hover:bg-white/10 focus-visible:ring-2 focus-visible:ring-primary-400",u&&"bg-primary-500/25 text-primary-200",c)},f),{children:[i,m?(0,v.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-500 px-1 text-[10px] font-bold leading-none text-white",children:s}):null]}))});function TD(e){var t=e.className;return(0,v.jsx)("div",{"aria-hidden":"true",className:yt("mx-1 h-5 w-px bg-white/15",t)})}var TP=(0,g.forwardRef)(function(e,t){var n=TE([e,t]),r=n[0],a=n.slice(1),i=r.src,o=r.name,s=r.active,l=r.className,u=r.type,c=Tj(r,["src","name","active","className","type"]),d=TS(a,1)[0],f=o.split(/\s+/).filter(Boolean).slice(0,2).map(function(e){var t;return null==(t=e[0])?void 0:t.toUpperCase()}).join("");return(0,v.jsx)("button",Tw(Tx({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:yt("relative inline-flex h-8 w-8 cursor-pointer items-center justify-center overflow-hidden rounded-full p-0","border border-primary-400/50 bg-primary-900/40 text-xs font-bold text-white outline-none","transition-transform duration-150 hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary-400",void 0!==s&&s&&"ring-2 ring-primary-400",l)},c),{children:i?(0,v.jsx)("img",{src:i,alt:"",className:"h-full w-full object-cover"}):f}))}),TC=OK("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),TT=OK("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function TN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TR(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TR(e,t){if(e){if("string"==typeof e)return TN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TN(e,t)}}function TI(e){var t=e.sites,n=e.onSelect,r=e.height,a=e.className,i=(0,g.useRef)(0),o=function(e){return e.map(function(e){return{site:e,key:i.current++}})},s=TM((0,g.useState)(function(){return o(t)}),2),l=s[0],u=s[1],c=TM((0,g.useState)(350),2),d=c[0],f=c[1],p=(0,g.useRef)(!1),m=(0,g.useRef)(0),h=(0,g.useRef)(0);(0,g.useEffect)(function(){return u(o(t))},[t]),(0,g.useEffect)(function(){var e=function(){return f(window.matchMedia("(min-width: 640px)").matches?350:280)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var y=function(e){return u(function(t){if(t.length<2)return t;for(var n=function(e){if(Array.isArray(e))return TN(e)}(t)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||TR(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=0;r<Math.abs(e);r++){var a=e>0?n.shift():n.pop();if(!a)break;var o=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},a),{key:i.current++});e>0?n.push(o):n.unshift(o)}return n})},b=function(){var e=h.current-m.current;Math.abs(e)>=45&&y(e<0?1:-1),setTimeout(function(){p.current=!1},50)},x="flex h-12 w-12 sm:h-14 sm:w-14 items-center justify-center border-2 border-white/20 bg-slate-950/80 text-slate-100 transition-colors hover:bg-teal-500 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-teal-400";return(0,v.jsxs)("div",{onPointerDown:function(e){m.current=h.current=e.clientX,p.current=!1},onPointerMove:function(e){h.current=e.clientX,Math.abs(h.current-m.current)>10&&(p.current=!0)},onPointerUp:b,onPointerCancel:b,className:yt("relative w-full overflow-hidden cursor-grab active:cursor-grabbing touch-pan-y select-none",a),style:{height:void 0===r?500:r},children:[l.map(function(e,t){var r=e.site,a=e.key,i=l.length%2?t-(l.length+1)/2:t-l.length/2,o=0===i;return(0,v.jsxs)("div",{role:"button",tabIndex:o?0:-1,"aria-label":r.name,onKeyDown:function(e){return"Enter"===e.key&&o&&(null==n?void 0:n(r))},onClick:function(){p.current||(o?null==n||n(r):y(i))},className:yt("absolute left-1/2 top-1/2 cursor-pointer border-2 p-7 sm:p-8 transition-all duration-500 ease-in-out",o?"z-10 bg-teal-500 text-slate-950 border-teal-300":"z-0 bg-slate-900/70 text-slate-100 border-white/15 hover:border-teal-400/60"),style:{width:d,height:d,clipPath:"polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0)",transform:"translate(-50%, -50%) translateX(".concat(d/1.5*i,"px) translateY(").concat(o?-30:i%2?20:-10,"px) rotate(").concat(o?0:i%2?2.5:-2.5,"deg)"),boxShadow:o?"0 8px 0 4px rgba(255,255,255,0.14)":"none"},children:[r.imageUrl&&(0,v.jsx)("img",{src:r.imageUrl,alt:"",className:"mb-3 sm:mb-4 h-12 w-10 sm:h-14 sm:w-12 bg-slate-800 object-cover object-top rounded-xs shadow-sm"}),(0,v.jsxs)("h3",{className:"text-sm sm:text-base md:text-lg font-medium leading-snug line-clamp-4",children:[r.name," — ",r.description]}),(0,v.jsxs)("p",{className:yt("absolute bottom-6 sm:bottom-8 left-7 sm:left-8 right-7 sm:right-8 text-xs sm:text-sm italic truncate",o?"text-slate-950/80":"text-slate-400"),children:[r.shortName," • ",r.head," (",r.memberCount," membres, ",r.appCount," apps)"]})]},a)}),(0,v.jsxs)("div",{className:"absolute bottom-3 sm:bottom-4 left-1/2 flex -translate-x-1/2 gap-2 z-20",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return y(-1)},className:x,"aria-label":"Site pr\xe9c\xe9dent",children:(0,v.jsx)(TC,{className:"w-6 h-6"})}),(0,v.jsx)("button",{type:"button",onClick:function(){return y(1)},className:x,"aria-label":"Site suivant",children:(0,v.jsx)(TT,{className:"w-6 h-6"})})]})]})}var T_=OK("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]),TL=OK("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);function TF(e){var t=e.value,n=e.onChange,r=e.placeholder,a=void 0===r?"Rechercher…":r,i=e.activeFilterCount,o=void 0===i?0:i,s=e.filterPanel,l=e.filtersOpen,u=void 0!==l&&l,c=e.onFiltersOpenChange,d=e.onReset,f=e.className,p=(0,g.useRef)(null),m=!!s&&(u||o>0),h="p-1.5 rounded-lg border border-white/10 text-slate-400 transition-colors cursor-pointer";return(0,v.jsxs)("div",{className:yt("relative rounded-2xl border border-white/15 backdrop-blur-sm shadow-lg overflow-hidden transition-all","focus-within:border-teal-400/80 focus-within:ring-2 focus-within:ring-teal-400/20",f),children:[(0,v.jsxs)("div",{className:"flex items-center px-4 py-2.5 sm:py-3 gap-3",children:[(0,v.jsx)("div",{className:"w-8 h-8 rounded-xl border border-white/10 flex items-center justify-center text-teal-300 shrink-0",children:(0,v.jsx)(kt,{className:"w-4 h-4"})}),(0,v.jsx)("input",{ref:p,type:"text",value:t,onChange:function(e){return n(e.target.value)},placeholder:a,"aria-label":a,className:"flex-1 min-w-0 bg-transparent border-none text-white placeholder-slate-400 text-xs sm:text-sm font-medium focus:outline-none truncate"}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[t&&(0,v.jsx)("button",{type:"button",title:"Effacer la recherche",onClick:function(){var e;n(""),null==(e=p.current)||e.focus()},className:yt(h,"hover:bg-white/10 hover:text-white"),children:(0,v.jsx)(kV,{className:"w-3.5 h-3.5"})}),s&&(0,v.jsxs)("button",{type:"button",title:"Filtres avanc\xe9s","aria-expanded":m,onClick:function(){return null==c?void 0:c(!u)},className:yt("flex items-center gap-1.5 px-3 py-1.5 rounded-xl border text-xs font-semibold transition-all cursor-pointer",m?"bg-teal-500 text-slate-950 border-teal-400 shadow-sm":"text-slate-300 hover:text-white hover:bg-white/10 border-white/15"),children:[(0,v.jsx)(T_,{className:"w-3.5 h-3.5"}),(0,v.jsx)("span",{className:"hidden sm:inline",children:"Filtres"}),o>0&&(0,v.jsx)("span",{className:"min-w-[1.1rem] rounded-full bg-slate-950 px-1 text-center text-[10px] font-black leading-[1.1rem] text-teal-300",children:o})]}),d&&(t||o>0)&&(0,v.jsx)("button",{type:"button",title:"R\xe9initialiser",onClick:d,className:yt(h,"hover:bg-rose-500/20 hover:text-rose-300"),children:(0,v.jsx)(TL,{className:"w-3.5 h-3.5"})})]})]}),m&&(0,v.jsx)("div",{className:"dark w-full px-4 pb-3 pt-2 border-t border-white/10",children:s})]})}function TB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TV(e){var t,n=e.activeTab,r=e.onTabChange,a=e.tabs,i=e.sidebarHeader,o=e.sidebarFooter,s=e.mainHeader,l=e.children,u=e.className,c=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(function(){return"u"<typeof window||window.innerWidth>=768}))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return TB(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return TB(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],f=c[1],p=(0,g.useRef)(null);return(0,g.useEffect)(function(){var e=function(){return f(window.innerWidth>=768)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),(0,v.jsx)("div",{className:yt("w-full h-[calc(100vh-120px)] my-2 sm:my-3 text-slate-100 overflow-hidden px-3 sm:px-6 lg:px-8 flex flex-col",u),children:(0,v.jsxs)("div",{className:"max-w-7xl w-full mx-auto flex-1 min-h-0 flex flex-col md:flex-row items-stretch gap-4 md:gap-8 overflow-hidden",children:[(0,v.jsxs)("aside",{className:"w-full md:w-[20%] shrink-0 min-w-0 flex flex-col justify-start md:justify-center space-y-2 md:space-y-4",children:[i,(0,v.jsx)("div",{ref:p,role:"tablist","aria-orientation":d?"vertical":"horizontal",onKeyDown:function(e){var t,i,o,s=a.filter(function(e){return!e.disabled}),l=s.findIndex(function(e){return e.id===n});e.key===(d?"ArrowDown":"ArrowRight")?o=s[(l+1)%s.length]:e.key===(d?"ArrowUp":"ArrowLeft")?o=s[(l-1+s.length)%s.length]:"Home"===e.key?o=s[0]:"End"===e.key&&(o=s[s.length-1]),o&&(e.preventDefault(),r(o.id),null==(i=p.current)||null==(t=i.querySelector('[data-tab="'.concat(o.id,'"]')))||t.focus())},className:"w-full flex md:flex-col items-center md:items-stretch gap-2 overflow-x-auto touch-pan-x scroll-smooth select-none py-1",children:a.map(function(e){var t=e.id===n;return(0,v.jsxs)("button",{type:"button",role:"tab","data-tab":e.id,"aria-selected":t,tabIndex:t?0:-1,disabled:e.disabled,onClick:function(){return r(e.id)},className:yt("shrink-0 flex items-center gap-2 text-left px-3.5 py-2 text-xs sm:text-sm md:text-base font-medium whitespace-nowrap cursor-pointer transition-all border-0 border-l-2",t?"border-teal-400 text-teal-300 bg-white/5":"border-transparent text-slate-400 hover:text-white",e.disabled&&"opacity-40 cursor-not-allowed"),children:[e.icon&&(0,v.jsx)("span",{className:"shrink-0",children:e.icon}),(0,v.jsx)("span",{children:e.label}),e.badge&&(0,v.jsx)("span",{className:"ml-auto shrink-0",children:e.badge})]},e.id)})}),o]}),(0,v.jsxs)("main",{role:"tabpanel",className:"w-full md:w-[80%] h-full flex-1 min-h-0 flex flex-col overflow-y-auto",children:[s,(0,v.jsx)("div",{className:"flex-1 min-h-0 flex flex-col",children:l})]})]})})}function Tz(e){var t=e.icon,n=e.title,r=e.description,a=e.actions,i=e.className;return(0,v.jsxs)("div",{className:yt("flex flex-col sm:flex-row sm:items-center justify-between gap-3 p-3 rounded-xl bg-slate-900/60 border border-white/10 backdrop-blur-md shrink-0",i),children:[(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2",children:[t,(0,v.jsx)("h2",{className:"text-sm sm:text-base font-bold text-white truncate",children:n})]}),r&&(0,v.jsx)("p",{className:"text-xs text-slate-400 mt-0.5",children:r})]}),a&&(0,v.jsx)("div",{className:"shrink-0 self-start sm:self-auto",children:a})]})}var TW=OK("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function TU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||TH(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TH(e,t){if(e){if("string"==typeof e)return TU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TU(e,t)}}function TG(e){var t=e.applications,n=e.onOpen,r=e.title,a=e.description,i=e.allLabel,o=void 0===i?"Tous":i,s=e.className,l=T$((0,g.useState)(""),2),u=l[0],c=l[1],d=T$((0,g.useState)(o),2),f=d[0],p=d[1],m=(0,g.useMemo)(function(){var e;return[o].concat(function(e){if(Array.isArray(e))return TU(e)}(e=Array.from(new Set(t.map(function(e){return e.category}))))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||TH(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},[t,o]),h=(0,g.useMemo)(function(){var e=u.trim().toLowerCase();return t.filter(function(t){return(f===o||t.category===f)&&(!e||t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[t,u,f,o]);return(0,v.jsxs)("div",{className:yt("space-y-6",s),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===r?"Applications & Outils M\xe9tier":r}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===a?"S\xe9lectionnez une application pour y acc\xe9der directement.":a})]}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(kt,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:u,onChange:function(e){return c(e.target.value)},placeholder:"Rechercher un outil...","aria-label":"Rechercher un outil",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]})]}),(0,v.jsx)("div",{className:"flex flex-wrap gap-3 text-xs font-medium",children:m.map(function(e){return(0,v.jsx)("button",{type:"button",onClick:function(){return p(e)},className:yt("transition-colors cursor-pointer",f===e?"text-teal-300 font-bold border-b-2 border-teal-400 pb-0.5":"text-slate-400 hover:text-white"),children:e},e)})}),(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:h.map(function(e){var t,r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return n(e)},className:"group text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex flex-col justify-between space-y-3",children:[(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)("div",{className:yt("p-2 rounded-lg bg-gradient-to-br text-white shadow-xs",null!=(t=e.gradient)?t:"from-teal-500 to-emerald-600"),children:(0,v.jsx)(r,{className:"w-5 h-5"})}),(0,v.jsx)("span",{className:"text-[10px] font-semibold text-slate-400",children:e.status})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("h3",{className:"text-sm font-bold text-white group-hover:text-teal-300 transition-colors flex items-center justify-between",children:[(0,v.jsx)("span",{children:e.name}),(0,v.jsx)(TW,{className:"w-3.5 h-3.5 opacity-0 group-hover:opacity-100 transition-opacity text-teal-300"})]}),(0,v.jsx)("p",{className:"text-[11px] text-teal-400/80 font-medium mt-0.5",children:e.category})]}),(0,v.jsx)("p",{className:"text-xs text-slate-300 line-clamp-2 leading-relaxed",children:e.description})]}),(0,v.jsxs)("div",{className:"pt-2 border-t border-white/5 flex items-center justify-between text-[11px] text-slate-400 group-hover:text-slate-200",children:[(0,v.jsx)("span",{children:"Acc\xe9der \xe0 l'application"}),(0,v.jsx)("span",{className:"text-teal-400 font-semibold group-hover:translate-x-1 transition-transform",children:"→"})]})]},e.id)})})]})}var Tq=OK("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),TY={teal:{card:"from-teal-900/50 to-slate-900 border-teal-500/30 hover:border-teal-400",text:"text-teal-300",icon:"text-teal-400"},cyan:{card:"from-cyan-900/50 to-slate-900 border-cyan-500/30 hover:border-cyan-400",text:"text-cyan-300",icon:"text-cyan-400"}};function TK(e){var t=e.resources,n=e.shortcuts,r=void 0===n?[]:n,a=e.onShortcut,i=e.onDownload,o=e.primaryAction,s=e.title,l=e.description,u=e.className;return(0,v.jsxs)("div",{className:yt("space-y-6",u),children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("h2",{className:"text-xl font-bold text-white",children:void 0===s?"Ressources Documentaires & GED":s}),(0,v.jsx)("p",{className:"text-xs text-slate-300 mt-1",children:void 0===l?"Guides, formulaires administratifs et acc\xe8s direct \xe0 la Gestion \xc9lectronique des Documents.":l})]}),o]}),r.length>0&&(0,v.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(function(e){var t,n=TY[null!=(t=e.tone)?t:"teal"],r=e.icon;return(0,v.jsxs)("button",{type:"button",onClick:function(){return null==a?void 0:a(e)},className:yt("text-left p-4 rounded-xl bg-gradient-to-r border transition-all cursor-pointer flex items-center justify-between",n.card),children:[(0,v.jsxs)("span",{className:"space-y-1",children:[(0,v.jsx)("span",{className:yt("block text-[10px] font-bold uppercase tracking-wider",n.text),children:e.eyebrow}),(0,v.jsx)("span",{className:"block text-sm font-bold text-white",children:e.title}),(0,v.jsx)("span",{className:"block text-xs text-slate-300",children:e.description})]}),(0,v.jsx)(r,{className:yt("w-8 h-8 shrink-0 ml-2",n.icon)})]},e.id)})}),(0,v.jsxs)("div",{className:"space-y-3",children:[(0,v.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"Documents r\xe9cents & proc\xe9dures officielles"}),(0,v.jsx)("ul",{className:"space-y-2",children:t.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-lg bg-slate-900/60 border border-white/10 hover:border-teal-400/40 flex items-center justify-between transition-colors",children:[(0,v.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,v.jsx)("div",{className:"p-2 rounded-lg bg-white/5 text-teal-300 shrink-0",children:(0,v.jsx)(kc,{className:"w-4 h-4"})}),(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsx)("h4",{className:"text-xs font-bold text-white truncate",children:e.title}),(0,v.jsxs)("p",{className:"flex flex-wrap items-center gap-1.5 sm:gap-3 text-[10px] text-slate-400 mt-0.5",children:[(0,v.jsx)("span",{className:"text-teal-400 font-semibold",children:e.category}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.type}),(0,v.jsx)("span",{children:"•"}),(0,v.jsx)("span",{children:e.size}),(0,v.jsx)("span",{children:"•"}),(0,v.jsxs)("span",{children:["Mis \xe0 jour le ",e.updated]})]})]})]}),i&&(0,v.jsx)("button",{type:"button",title:"T\xe9l\xe9charger","aria-label":"T\xe9l\xe9charger ".concat(e.title),onClick:function(){return i(e)},className:"p-2 rounded-lg hover:bg-white/10 text-slate-300 hover:text-white transition-colors cursor-pointer shrink-0 ml-2",children:(0,v.jsx)(Tq,{className:"w-4 h-4"})})]},e.id)})})]})]})}var TZ=OK("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);function TX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function TQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TX(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TJ="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");function T0(e){var t=e.member,n=e.size;return t.avatar?(0,v.jsx)("img",{src:t.avatar,alt:"",className:yt("rounded-full object-cover border border-white/20 shrink-0",n)}):(0,v.jsx)("span",{className:yt("rounded-full bg-teal-600/40 border border-white/20 flex items-center justify-center font-bold text-teal-100 shrink-0",n),children:t.name.slice(0,1).toUpperCase()})}function T1(e){var t=e.siteName,n=e.members,r=e.teams,a=void 0===r?[]:r,i=e.onSelect,o=e.className,s=TQ((0,g.useState)(""),2),l=s[0],u=s[1],c=TQ((0,g.useState)("all"),2),d=c[0],f=c[1],p=TQ((0,g.useState)(""),2),m=p[0],h=p[1],y=TQ((0,g.useState)("grid"),2),b=y[0],x=y[1],w=(0,g.useMemo)(function(){return new Set(n.map(function(e){return e.name.slice(0,1).toUpperCase()}))},[n]),j=(0,g.useMemo)(function(){var e=l.trim().toLowerCase();return n.filter(function(t){return("all"===d||t.teamId===d)&&(!m||t.name.toUpperCase().startsWith(m))&&(!e||[t.name,t.role,t.email,t.phone].some(function(t){return null==t?void 0:t.toLowerCase().includes(e)}))}).sort(function(e,t){return e.name.localeCompare(t.name,"fr")})},[n,l,d,m]),S=function(e){return yt("px-3 py-1 rounded-full border text-xs font-medium whitespace-nowrap transition-colors cursor-pointer",e?"bg-teal-500 text-slate-950 border-teal-400 font-bold":"border-white/15 text-slate-300 hover:text-white hover:bg-white/10")};return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",o),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(ka,{className:"w-4 h-4 text-teal-400"}),title:"Membres & \xc9quipes — ".concat(t),description:"".concat(j.length," membre").concat(j.length>1?"s":""," affich\xe9").concat(j.length>1?"s":""," sur ").concat(n.length),actions:(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-lg border border-white/10",children:["grid","list"].map(function(e){return(0,v.jsx)("button",{type:"button","aria-pressed":b===e,"aria-label":"grid"===e?"Vue grille":"Vue liste",onClick:function(){return x(e)},className:yt("p-1.5 rounded-md cursor-pointer",b===e?"bg-teal-500 text-slate-950":"text-slate-300 hover:text-white"),children:"grid"===e?(0,v.jsx)(O6,{className:"w-4 h-4"}):(0,v.jsx)(TZ,{className:"w-4 h-4"})},e)})})}),(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsx)(kt,{className:"w-4 h-4 text-slate-400 absolute left-3 top-2.5"}),(0,v.jsx)("input",{type:"text",value:l,onChange:function(e){return u(e.target.value)},placeholder:"Rechercher par nom, fonction, e-mail ou t\xe9l\xe9phone...","aria-label":"Rechercher un membre",className:"w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"})]}),a.length>0&&(0,v.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1",children:[(0,v.jsx)("button",{type:"button",className:S("all"===d),onClick:function(){return f("all")},children:"Toutes les \xe9quipes"}),a.map(function(e){return(0,v.jsx)("button",{type:"button",className:S(d===e.id),onClick:function(){return f(e.id)},children:e.name},e.id)})]}),(0,v.jsxs)("div",{className:"flex gap-1 overflow-x-auto text-[11px]","aria-label":"Filtre alphab\xe9tique",children:[(0,v.jsx)("button",{type:"button",className:S(!m),onClick:function(){return h("")},children:"Tous"}),TJ.map(function(e){return(0,v.jsx)("button",{type:"button",disabled:!w.has(e),onClick:function(){return h(m===e?"":e)},className:yt(S(m===e),"px-2 disabled:opacity-30 disabled:cursor-not-allowed"),children:e},e)})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto pr-1",children:0===j.length?(0,v.jsx)("p",{className:"text-center py-12 text-slate-400 text-xs",children:"Aucun membre ne correspond \xe0 votre recherche."}):"grid"===b?(0,v.jsx)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-3",children:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(e)},className:"w-full text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(T0,{member:e,size:"w-12 h-12 text-base"}),(0,v.jsxs)("span",{className:"min-w-0",children:[(0,v.jsx)("span",{className:"block text-sm font-bold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"block text-[11px] text-teal-400/80 truncate",children:e.role}),e.email&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400 truncate",children:e.email})]})]})},e.id)})}):(0,v.jsx)("ul",{className:"divide-y divide-white/10 rounded-xl border border-white/10 bg-slate-900/60",children:j.map(function(e){return(0,v.jsx)("li",{children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==i?void 0:i(e)},className:"w-full text-left px-3 py-2 hover:bg-white/5 transition-colors cursor-pointer flex items-center gap-3",children:[(0,v.jsx)(T0,{member:e,size:"w-8 h-8 text-xs"}),(0,v.jsx)("span",{className:"flex-1 min-w-0 text-xs font-semibold text-white truncate",children:e.name}),(0,v.jsx)("span",{className:"hidden sm:block text-[11px] text-teal-400/80 truncate max-w-[40%]",children:e.role}),e.email&&(0,v.jsx)("span",{className:"hidden lg:block text-[11px] text-slate-400 truncate max-w-[30%]",children:e.email})]})},e.id)})})})]})}var T2=OK("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),T3=OK("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),T5=OK("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),T4=OK("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),T6=OK("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function T8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function T7(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T8(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nt=[{id:"all",label:"Toutes"},{id:"todo",label:"\xc0 faire"},{id:"in_progress",label:"En cours"},{id:"done",label:"Termin\xe9es"}],Nn={haute:{label:"Priorit\xe9 Haute",cls:"bg-rose-500/20 text-rose-300 border-rose-500/30"},moyenne:{label:"Priorit\xe9 Moyenne",cls:"bg-amber-500/20 text-amber-300 border-amber-500/30"},basse:{label:"Priorit\xe9 Normale",cls:"bg-emerald-500/20 text-emerald-300 border-emerald-500/30"}},Nr="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-teal-400";function Na(e){var t=e.siteName,n=e.tasks,r=e.onToggleStatus,a=e.onCreate,i=e.className,o=Ne((0,g.useState)("all"),2),s=o[0],l=o[1],u=Ne((0,g.useState)(""),2),c=u[0],d=u[1],f=Ne((0,g.useState)(!1),2),p=f[0],m=f[1],h=Ne((0,g.useState)({title:"",description:"",priority:"moyenne",dueDate:""}),2),y=h[0],b=h[1],x=(0,g.useMemo)(function(){return{all:n.length,todo:n.filter(function(e){return"todo"===e.status}).length,in_progress:n.filter(function(e){return"in_progress"===e.status}).length,done:n.filter(function(e){return"done"===e.status}).length}},[n]),w=(0,g.useMemo)(function(){var e=c.trim().toLowerCase();return n.filter(function(t){return("all"===s||t.status===s)&&(!e||t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[n,s,c]);return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",i),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(T2,{className:"w-4 h-4 text-teal-400"}),title:"Mes t\xe2ches — ".concat(t),description:"Suivi des livrables, validations documentaires et actions assign\xe9es dans cet espace.",actions:(0,v.jsxs)("button",{type:"button",onClick:function(){return m(!0)},className:"px-3 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-1.5 shadow-md transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(T3,{className:"w-4 h-4"}),(0,v.jsx)("span",{children:"Nouvelle t\xe2che"})]})}),(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Nt.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return l(e.id)},className:yt("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",s===e.id?"bg-teal-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label," (",x[e.id],")"]},e.id)})}),(0,v.jsxs)("div",{className:"relative w-full sm:w-64",children:[(0,v.jsx)(kt,{className:"w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),(0,v.jsx)("input",{type:"text",value:c,onChange:function(e){return d(e.target.value)},placeholder:"Rechercher une t\xe2che...","aria-label":"Rechercher une t\xe2che",className:"w-full pl-8 pr-3 py-1 rounded-lg bg-slate-900/60 border border-white/10 text-xs text-white placeholder-slate-400 focus:outline-none focus:border-teal-400/80"})]})]}),(0,v.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:0===w.length?(0,v.jsxs)("div",{className:"text-center py-12 text-slate-400 text-xs",children:[(0,v.jsx)(T5,{className:"w-8 h-8 mx-auto mb-2 text-slate-500"}),"Aucune t\xe2che ne correspond \xe0 vos filtres."]}):w.map(function(e){return(0,v.jsxs)("div",{className:yt("p-3 rounded-xl border transition-all flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3","done"===e.status?"bg-slate-950/40 border-white/5 opacity-70":"bg-slate-900/60 border-white/10 hover:border-teal-400/40"),children:[(0,v.jsxs)("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[(0,v.jsxs)("button",{type:"button",onClick:function(){return r(e)},title:"Changer le statut","aria-label":"Changer le statut de ".concat(e.title),className:yt("mt-0.5 w-5 h-5 rounded-md border flex items-center justify-center transition-colors cursor-pointer shrink-0","done"===e.status?"bg-emerald-500 border-emerald-400 text-slate-950":"in_progress"===e.status?"bg-amber-500/20 border-amber-400 text-amber-300":"border-white/20 hover:border-teal-400"),children:["done"===e.status&&(0,v.jsx)(T4,{className:"w-3.5 h-3.5"}),"in_progress"===e.status&&(0,v.jsx)("span",{className:"w-2 h-2 rounded-full bg-amber-400"})]}),(0,v.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,v.jsx)("h4",{className:yt("text-xs sm:text-sm font-semibold text-white","done"===e.status&&"line-through text-slate-400"),children:e.title}),(0,v.jsx)("p",{className:"text-[11px] text-slate-400 mt-0.5 line-clamp-2",children:e.description}),(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 text-[10px]",children:[(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(ki,{className:"w-3 h-3"}),e.dueDate]}),(0,v.jsx)("span",{className:"text-white/20",children:"•"}),(0,v.jsxs)("span",{className:"flex items-center gap-1 text-slate-400",children:[(0,v.jsx)(T6,{className:"w-3 h-3 text-teal-400"}),"Assign\xe9 \xe0 : ",(0,v.jsx)("strong",{className:"text-slate-200",children:e.assignedTo})]}),e.tags.map(function(e){return(0,v.jsx)("span",{className:"px-1.5 rounded bg-white/5 border border-white/10 text-slate-300",children:e},e)})]})]})]}),(0,v.jsxs)("div",{className:"flex sm:flex-col items-center sm:items-end justify-between w-full sm:w-auto gap-1 shrink-0",children:[(0,v.jsx)("span",{className:yt("px-2 py-0.5 rounded-full text-[10px] font-bold uppercase border",Nn[e.priority].cls),children:Nn[e.priority].label}),(0,v.jsx)("span",{className:yt("text-[10px] font-semibold","done"===e.status?"text-emerald-400":"in_progress"===e.status?"text-amber-400":"text-slate-400"),children:"done"===e.status?"✓ Termin\xe9e":"in_progress"===e.status?"● En cours":"○ \xc0 faire"})]})]},e.id)})}),p&&(0,v.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Nouvelle t\xe2che",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",onKeyDown:function(e){return"Escape"===e.key&&m(!1)},children:(0,v.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-slate-900 border border-white/20 p-5 shadow-2xl",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between pb-3 border-b border-white/10",children:[(0,v.jsxs)("h3",{className:"font-bold text-sm text-white flex items-center gap-2",children:[(0,v.jsx)(T2,{className:"w-4 h-4 text-teal-400"}),"Nouvelle t\xe2che pour ",t]}),(0,v.jsx)("button",{type:"button","aria-label":"Fermer",onClick:function(){return m(!1)},className:"text-slate-400 hover:text-white cursor-pointer",children:(0,v.jsx)(kV,{className:"w-4 h-4"})})]}),(0,v.jsxs)("form",{onSubmit:function(e){e.preventDefault(),y.title.trim()&&(a(T7(T9({},y),{title:y.title.trim(),description:y.description.trim()})),b({title:"",description:"",priority:"moyenne",dueDate:""}),m(!1))},className:"space-y-3 mt-4",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Titre de la t\xe2che"}),(0,v.jsx)("input",{autoFocus:!0,required:!0,className:Nr,value:y.title,onChange:function(e){return b(T7(T9({},y),{title:e.target.value}))}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description / Consignes"}),(0,v.jsx)("textarea",{rows:3,className:yt(Nr,"resize-none"),value:y.description,onChange:function(e){return b(T7(T9({},y),{description:e.target.value}))}})]}),(0,v.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Priorit\xe9"}),(0,v.jsxs)("select",{className:Nr,value:y.priority,onChange:function(e){return b(T7(T9({},y),{priority:e.target.value}))},children:[(0,v.jsx)("option",{value:"haute",children:"Haute"}),(0,v.jsx)("option",{value:"moyenne",children:"Moyenne"}),(0,v.jsx)("option",{value:"basse",children:"Basse"})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"\xc9ch\xe9ance"}),(0,v.jsx)("input",{className:Nr,value:y.dueDate,onChange:function(e){return b(T7(T9({},y),{dueDate:e.target.value}))}})]})]}),(0,v.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-3 border-t border-white/10",children:[(0,v.jsx)("button",{type:"button",onClick:function(){return m(!1)},className:"px-3 py-1.5 rounded-lg text-xs text-slate-300 hover:text-white cursor-pointer",children:"Annuler"}),(0,v.jsx)("button",{type:"submit",className:"px-4 py-1.5 rounded-lg bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs shadow-md active:scale-95 cursor-pointer",children:"Cr\xe9er la t\xe2che"})]})]})]})})]})}var Ni=OK("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),No=OK("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Nu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nc=[{id:"all",label:"Tous les \xe9v\xe9nements"},{id:"upload",label:"T\xe9l\xe9versements & GED"},{id:"validate",label:"Validations & Scellements"},{id:"member_join",label:"Habilitations & Membres"},{id:"security",label:"S\xe9curit\xe9 & Audit"}],Nd={upload:{cls:"bg-sky-500",glyph:"↑"},validate:{cls:"bg-emerald-500",glyph:"✓"},member_join:{cls:"bg-amber-500",glyph:"+"},security:{cls:"bg-indigo-500",glyph:"!"},edit:{cls:"bg-teal-500",glyph:"✎"}};function Nf(e){var t=e.siteName,n=e.activities,r=e.onRefresh,a=e.className,i=Nu((0,g.useState)("all"),2),o=i[0],s=i[1],l=Nu((0,g.useState)(!1),2),u=l[0],c=l[1],d=(0,g.useMemo)(function(){return n.filter(function(e){return"all"===o||e.action===o})},[n,o]);return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-3 text-slate-100",a),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(Ni,{className:"w-4 h-4 text-sky-400"}),title:"Activit\xe9 & Journal d'Audit — ".concat(t),description:"Tra\xe7abilit\xe9 en temps r\xe9el des versements, consultations, modifications et habilitations du site.",actions:r&&(0,v.jsxs)("button",{type:"button",disabled:u,onClick:function(){var e;return(e=function(){return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:c(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,null==r?void 0:r()];case 2:return e.sent(),[3,4];case 3:return c(!1),[7];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Nl(i,r,a,o,s,"next",e)}function s(e){Nl(i,r,a,o,s,"throw",e)}o(void 0)})})()},className:"px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-slate-200 text-xs flex items-center gap-1.5 transition-colors cursor-pointer disabled:opacity-60",children:[(0,v.jsx)(No,{className:yt("w-3.5 h-3.5",u&&"animate-spin text-teal-400")}),(0,v.jsx)("span",{children:"Actualiser le flux"})]})}),(0,v.jsx)("div",{className:"flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",children:Nc.map(function(e){return(0,v.jsxs)("button",{type:"button",onClick:function(){return s(e.id)},className:yt("px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer",o===e.id?"bg-sky-500 text-slate-950 font-bold":"text-slate-300 hover:text-white"),children:[e.label,"all"===e.id&&" (".concat(n.length,")")]},e.id)})}),(0,v.jsx)("ul",{className:"flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",children:d.map(function(e){return(0,v.jsxs)("li",{className:"p-3 rounded-xl bg-slate-900/60 border border-white/10 hover:border-sky-400/40 transition-all flex items-start gap-3",children:[(0,v.jsxs)("div",{className:"relative shrink-0",children:[e.userAvatar?(0,v.jsx)("img",{src:e.userAvatar,alt:"",className:"w-8 h-8 rounded-full object-cover border border-white/20"}):(0,v.jsx)("span",{className:"w-8 h-8 rounded-full bg-slate-700 border border-white/20 flex items-center justify-center text-[11px] font-bold",children:e.userName.slice(0,1)}),(0,v.jsx)("span",{"aria-hidden":"true",className:yt("absolute -bottom-1 -right-1 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold text-white border border-slate-950",Nd[e.action].cls),children:Nd[e.action].glyph})]}),(0,v.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,v.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-1",children:[(0,v.jsxs)("p",{className:"text-xs text-white",children:[(0,v.jsx)("strong",{className:"font-semibold text-sky-300",children:e.userName}),(0,v.jsxs)("span",{className:"text-slate-400",children:[" (",e.userRole,") "]}),(0,v.jsx)("span",{className:"text-slate-300",children:e.actionLabel})]}),(0,v.jsx)("span",{className:"text-[10px] text-slate-400 shrink-0 font-mono",children:e.timeAgo})]}),(0,v.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 p-2 rounded-lg bg-black/30 border border-white/5",children:[(0,v.jsx)(kc,{className:"w-3.5 h-3.5 text-sky-400 shrink-0"}),(0,v.jsx)("span",{className:"text-xs font-semibold text-white truncate",children:e.targetTitle}),(0,v.jsx)("span",{className:"ml-auto text-[9px] px-1.5 rounded bg-white/10 text-slate-300 shrink-0",children:e.targetType})]})]})]},e.id)})})]})}var Np=OK("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Nm=OK("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]),Nh=OK("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Ny=OK("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),Nv=OK("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);function Ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nb(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function Nx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ng(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nw=[{id:"PUBLIC",label:"Public",hint:"Accessible \xe0 tous les collaborateurs de l'organisation.",icon:kd},{id:"MODERATED",label:"Mod\xe9r\xe9",hint:"Adh\xe9sion soumise \xe0 l'approbation du gestionnaire du site.",icon:ka},{id:"PRIVATE",label:"Priv\xe9",hint:"Strictement r\xe9serv\xe9 aux membres invit\xe9s manuellement.",icon:Np}],Nj="p-4 rounded-xl bg-slate-900/60 border border-white/10 space-y-3",NS="text-xs font-bold text-teal-300 uppercase tracking-wider flex items-center gap-2",NE="w-full px-3 py-1.5 rounded-lg bg-black/40 border border-white/15 text-xs text-white focus:outline-none focus:border-teal-400";function NO(e){var t=e.label,n=e.hint,r=e.checked,a=e.onChange;return(0,v.jsxs)("label",{className:"flex items-center justify-between gap-3 cursor-pointer",children:[(0,v.jsxs)("span",{children:[(0,v.jsx)("span",{className:"block text-xs font-semibold text-white",children:t}),n&&(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:n})]}),(0,v.jsx)("input",{type:"checkbox",checked:r,onChange:function(e){return a(e.target.checked)},className:"w-4 h-4 accent-teal-500 cursor-pointer shrink-0"})]})}function Nk(e){var t=e.siteName,n=e.siteUuid,r=e.initialValue,a=e.storage,i=e.onSave,o=e.className,s=Nx((0,g.useState)(r),2),l=s[0],u=s[1],c=Nx((0,g.useState)(!1),2),d=c[0],f=c[1],p=function(e){return u(function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t,e)})};return(0,v.jsxs)("div",{className:yt("flex-1 min-h-0 flex flex-col gap-4 text-slate-100 overflow-y-auto pr-1",o),children:[(0,v.jsx)(Tz,{icon:(0,v.jsx)(kn,{className:"w-4 h-4 text-teal-400"}),title:"Param\xe8tres du Site — ".concat(t),description:"Administration de l'espace collaboratif, visibilit\xe9, quotas et politique de s\xe9curit\xe9.",actions:d&&(0,v.jsxs)("span",{role:"status",className:"flex items-center gap-1.5 px-3 py-1 rounded-lg bg-emerald-500/20 border border-emerald-500/30 text-emerald-300 text-xs font-semibold",children:[(0,v.jsx)(T5,{className:"w-4 h-4 text-emerald-400"}),"Param\xe8tres enregistr\xe9s"]})}),(0,v.jsxs)("form",{onSubmit:function(e){var t;return(t=function(){return function(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return e.preventDefault(),[4,i(l)];case 1:return t.sent(),f(!0),setTimeout(function(){return f(!1)},3e3),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(e){Nb(i,r,a,o,s,"next",e)}function s(e){Nb(i,r,a,o,s,"throw",e)}o(void 0)})})()},className:"space-y-4",children:[(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Nm,{className:"w-3.5 h-3.5"}),"Informations g\xe9n\xe9rales"]}),(0,v.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Nom public du site"}),(0,v.jsx)("input",{className:NE,value:l.title,onChange:function(e){return p({title:e.target.value})}})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Identifiant unique (UUID)"}),(0,v.jsx)("input",{readOnly:!0,className:yt(NE,"bg-black/60 border-white/10 text-slate-400 font-mono"),value:n})]})]}),(0,v.jsxs)("label",{className:"block text-xs font-semibold text-slate-300",children:[(0,v.jsx)("span",{className:"block mb-1",children:"Description & mission du site"}),(0,v.jsx)("textarea",{rows:2,className:yt(NE,"resize-none"),value:l.description,onChange:function(e){return p({description:e.target.value})}})]})]}),(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Nh,{className:"w-3.5 h-3.5"}),"Visibilit\xe9 & acc\xe8s"]}),(0,v.jsx)("div",{role:"radiogroup","aria-label":"Visibilit\xe9",className:"grid grid-cols-1 sm:grid-cols-3 gap-2.5",children:Nw.map(function(e){var t=e.id,n=e.label,r=e.hint,a=e.icon;return(0,v.jsxs)("button",{type:"button",role:"radio","aria-checked":l.visibility===t,onClick:function(){return p({visibility:t})},className:yt("p-3 rounded-xl border text-left transition-all cursor-pointer",l.visibility===t?"bg-teal-500/15 border-teal-400 text-white shadow-md":"bg-black/30 border-white/10 text-slate-400 hover:text-white"),children:[(0,v.jsxs)("span",{className:"flex items-center gap-2 mb-1",children:[(0,v.jsx)(a,{className:"w-4 h-4 text-teal-400"}),(0,v.jsx)("span",{className:"font-bold text-xs",children:n})]}),(0,v.jsx)("span",{className:"block text-[11px] text-slate-400",children:r})]},t)})}),(0,v.jsx)(NO,{label:"Autoriser les collaborateurs \xe0 inviter des tiers",hint:"Les collaborateurs r\xe9guliers peuvent proposer de nouveaux membres.",checked:l.allowMemberInvites,onChange:function(e){return p({allowMemberInvites:e})}})]}),(0,v.jsxs)("section",{className:Nj,children:[(0,v.jsxs)("h3",{className:NS,children:[(0,v.jsx)(Ny,{className:"w-3.5 h-3.5"}),"Stockage & notifications"]}),a&&(0,v.jsxs)("div",{className:"space-y-1",children:[(0,v.jsxs)("div",{className:"flex justify-between text-xs text-slate-300",children:[(0,v.jsxs)("span",{children:["Espace utilis\xe9 : ",(0,v.jsx)("strong",{children:a.usedLabel})]}),(0,v.jsxs)("span",{children:["Quota allou\xe9 : ",(0,v.jsx)("strong",{children:a.quotaLabel})]})]}),(0,v.jsx)("div",{className:"w-full h-2 rounded-full bg-black/40 overflow-hidden border border-white/10",children:(0,v.jsx)("div",{className:"h-full bg-teal-400 rounded-full",style:{width:"".concat(Math.min(100,Math.max(0,a.percent)),"%")}})})]}),(0,v.jsxs)("div",{className:"pt-2 space-y-2 border-t border-white/10",children:[(0,v.jsx)(NO,{label:"Notifier lors du t\xe9l\xe9versement d'un nouveau document",checked:l.notifyOnUpload,onChange:function(e){return p({notifyOnUpload:e})}}),(0,v.jsx)(NO,{label:"Alerter lors de la validation officielle d'un bordereau",checked:l.notifyOnValidation,onChange:function(e){return p({notifyOnValidation:e})}})]})]}),(0,v.jsx)("div",{className:"flex justify-end pt-2",children:(0,v.jsxs)("button",{type:"submit",className:"px-5 py-2 rounded-xl bg-teal-500 hover:bg-teal-400 text-slate-950 font-bold text-xs flex items-center gap-2 shadow-lg transition-all active:scale-95 cursor-pointer",children:[(0,v.jsx)(Nv,{className:"w-4 h-4"}),"Enregistrer les param\xe8tres du site"]})})]})]})}function NA(e){var t=e.title,n=e.subtitle,r=e.avatar,a=e.following,i=e.onToggleFollow,o=e.actions,s=e.className;return(0,v.jsx)("div",{className:yt("w-full bg-teal-700 border-b border-teal-500/30 text-white px-3 sm:px-6 py-2 shadow-xs",s),children:(0,v.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between gap-2",children:[(0,v.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[r&&(0,v.jsx)("div",{className:"w-8 h-8 bg-slate-900/50 border border-teal-300/40 flex items-center justify-center shrink-0",children:r}),(0,v.jsxs)("div",{className:"flex flex-col -space-y-0.5 min-w-0",children:[(0,v.jsx)("h1",{className:"text-sm sm:text-base font-bold tracking-tight leading-tight truncate",children:t}),n&&(0,v.jsx)("p",{className:"text-teal-100/80 text-[10px] sm:text-[11px] leading-none truncate",children:n})]})]}),(0,v.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[i&&(0,v.jsxs)("button",{type:"button","aria-pressed":a,onClick:i,className:"flex items-center gap-1.5 px-2.5 py-1 border border-white/30 hover:bg-white/10 text-xs font-semibold transition-colors cursor-pointer",children:[(0,v.jsx)(km,{className:yt("w-3.5 h-3.5",a&&"fill-amber-300 text-amber-300")}),(0,v.jsx)("span",{className:"hidden sm:inline",children:a?"Suivi":"Suivre"})]}),o]})]})})}var ND={conversation:{id:"conversation",number:"1",name:"Mode Conversation",shortName:"Conversation",tagline:"Comprendre & R\xe9pondre",badgeLabel:"Conv",emoji:"\uD83D\uDCAC",iconName:"MessageSquare",color:{text:"text-sky-400",bg:"bg-sky-500/10",border:"border-sky-500/30",ring:"ring-sky-500/40",badgeBg:"bg-sky-500",badgeText:"text-slate-950",glow:"shadow-sky-500/25",accent:"#38bdf8"},principle:"L'agent comprend et r\xe9pond.",bullets:["Questions & r\xe9ponses","Explications & clarifications","Discussion en langage naturel","Conseil informationnel"],example:"\xab Qu'est-ce que cette fonctionnalit\xe9 ? \xbb"},recherche:{id:"recherche",number:"2",name:"Mode Recherche / Analyse",shortName:"Recherche",tagline:"Chercher, R\xe9cup\xe9rer & Interpr\xe9ter",badgeLabel:"Rech",emoji:"\uD83D\uDD0E",iconName:"Search",color:{text:"text-amber-400",bg:"bg-amber-500/10",border:"border-amber-500/30",ring:"ring-amber-500/40",badgeBg:"bg-amber-400",badgeText:"text-slate-950",glow:"shadow-amber-500/25",accent:"#fbbf24"},principle:"L'agent cherche, r\xe9cup\xe8re et interpr\xe8te de l'information.",bullets:["Recherche dans la base de connaissances","Consultation & extraction documentaire","Analyse et croisement de donn\xe9es","Comparaison & synth\xe8se structur\xe9e"],example:"\xab Trouve les documents concernant ce projet et r\xe9sume-les. \xbb"},action:{id:"action",number:"3",name:"Mode Action",shortName:"Action",tagline:"Agir sur le Syst\xe8me via Outils",badgeLabel:"Act",emoji:"⚙️",iconName:"Zap",color:{text:"text-emerald-400",bg:"bg-emerald-500/10",border:"border-emerald-500/30",ring:"ring-emerald-500/40",badgeBg:"bg-emerald-400",badgeText:"text-slate-950",glow:"shadow-emerald-500/25",accent:"#34d399"},principle:"L'agent agit sur le syst\xe8me \xe0 travers des outils (diff\xe9rence cl\xe9 avec un simple chatbot).",bullets:["Cr\xe9er, modifier, supprimer des contenus","Publier & programmer des diffusions","Appeler des API & int\xe9grations","D\xe9clencher des workflows & automatisations"],example:"\xab Cr\xe9e cette actualit\xe9 et programme sa publication demain. \xbb"},autonome:{id:"autonome",number:"4",name:"Mode Autonome",shortName:"Autonome",tagline:"Orchestration Multi-\xe9tapes vers un Objectif",badgeLabel:"Auto",emoji:"\uD83E\uDD16",iconName:"Cpu",color:{text:"text-purple-400",bg:"bg-purple-500/10",border:"border-purple-500/30",ring:"ring-purple-500/40",badgeBg:"bg-purple-400",badgeText:"text-slate-950",glow:"shadow-purple-500/25",accent:"#c084fc"},principle:"L'agent re\xe7oit un objectif et d\xe9termine lui-m\xeame les \xe9tapes n\xe9cessaires sans guidage pas-\xe0-pas.",bullets:["Planification intelligente de l’objectif","Recherche & analyse autonome","Cr\xe9ation & ex\xe9cution des actions requises","V\xe9rification & production du r\xe9sultat final"],example:"\xab Pr\xe9pare toute la communication de notre \xe9v\xe9nement. \xbb",schema:["Objectif","Planification","Recherche","Analyse","Cr\xe9ation","Actions","V\xe9rification","R\xe9sultat"]}},NP="egen_assistant_mode";function NC(){if("u"<typeof window)return"conversation";try{var e=localStorage.getItem(NP);if(e&&ND[e])return e}catch(e){}return"conversation"}function NT(e){if("u">typeof window)try{localStorage.setItem(NP,e)}catch(e){}}function NN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function NR(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function NI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return NN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NN(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N_=["#7C6AF7","#7DD3C7","#E8B4D4"],NL=["#3DBA2E","#F2E62F"],NF="\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform float u_speed;\nuniform mat3 u_rot;\nuniform float u_blink;\nuniform float u_mode;\nuniform float u_ears;\nuniform vec3 u_body;\nuniform vec3 u_eye;\nuniform vec3 u_c1;\nuniform vec3 u_c2;\nuniform vec3 u_c3;\nuniform vec3 u_ear1;\nuniform vec3 u_ear2;\n\n// ---- Camera ---------------------------------------------------------------\nconst float CAM_DIST = 6.0;\nconst float HALF_VIEW = ".concat("1.3761",";\n\n// ---- Head (local space, +z = face) ----------------------------------------\nconst vec3 HEAD_R = vec3(1.0, 0.74, 0.86);\n\n// ---- Face (decals projected on the head surface) --------------------------\nconst float EYE_X = 0.455;\nconst float EYE_Y = 0.075;\nconst float EYE_RX = 0.118;\nconst float EYE_RY = 0.128;\nconst float LINE_HALF = 0.021;\n\n// ---- Ear-cups (headphones) -------------------------------------------------\nconst vec3 EAR_C = vec3(1.02, -0.10, 0.02);\nconst float EAR_R = 0.385;\nconst float EAR_HT = 0.072;\nconst float EAR_ROUND = 0.045;\nconst float RECESS_R = 0.335;\nconst float RECESS_D = 0.020;\nconst float RING_R = 0.272;\nconst float RING_T = 0.034;\nconst float RING_X = 0.062;\n// cos / sin of the toe-in (cup faces slightly forward)\nconst float EC = 0.9287;\nconst float ES = 0.3709;\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n float a = hash(i);\n float b = hash(i + vec2(1.0, 0.0));\n float c = hash(i + vec2(0.0, 1.0));\n float d = hash(i + vec2(1.0, 1.0));\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;\n}\n\nfloat fbm(vec2 p) {\n float v = 0.0;\n float a = 0.5;\n mat2 m = mat2(1.6, 1.2, -1.2, 1.6);\n for (int i = 0; i < 5; i++) {\n v += a * noise(p);\n p = m * p;\n a *= 0.5;\n }\n return v;\n}\n\nvec3 wash(vec3 n, float t) {\n vec2 q = n.xy * 2.2 + n.z * 0.85;\n vec2 w1 = vec2(\n fbm(q * 1.4 + vec2(t * 0.22, t * 0.18)),\n fbm(q * 1.4 + vec2(-t * 0.16, t * 0.24) + 4.1)\n );\n q += (w1 - 0.5) * 0.72;\n float f = fbm(q * 2.1 + vec2(0.0, t * 0.12));\n float g = fbm(q * 4.6 - vec2(t * 0.2, 0.0));\n vec3 col = mix(u_c1, u_c2, smoothstep(0.28, 0.72, f));\n return mix(col, u_c3, pow(smoothstep(0.42, 0.9, g), 1.4));\n}\n\nfloat smin(float a, float b, float k) {\n float h = max(k - abs(a - b), 0.0) / k;\n return min(a, b) - h * h * k * 0.25;\n}\n\nfloat smax(float a, float b, float k) {\n return -smin(-a, -b, k);\n}\n\nfloat sdEllipsoid(vec3 p, vec3 r) {\n float k0 = length(p / r);\n float k1 = length(p / (r * r));\n return k0 * (k0 - 1.0) / max(k1, 1e-4);\n}\n\n// Ear frame: x = cup axis (outward, toed-in), (y, z) = radial plane. Mirrored.\nvec3 earFrame(vec3 p) {\n vec3 q = vec3(abs(p.x), p.y, p.z) - EAR_C;\n return vec3(EC * q.x + ES * q.z, q.y, -ES * q.x + EC * q.z);\n}\n\nfloat sdCup(vec3 e) {\n float rr = EAR_ROUND;\n float rad = length(e.yz);\n vec2 w = vec2(rad - EAR_R + rr, abs(e.x) - EAR_HT + rr);\n float d = min(max(w.x, w.y), 0.0) + length(max(w, 0.0)) - rr;\n // shallow recess in the outer face: the rim stays proud around it\n float rec = max(rad - RECESS_R, (EAR_HT - RECESS_D) - e.x);\n return smax(d, -rec, 0.012);\n}\n\nfloat sdRing(vec3 e) {\n vec2 t = vec2(length(e.yz) - RING_R, e.x - RING_X);\n return length(t) - RING_T;\n}\n\n// x = distance to the whole shape, y = distance to the neon ring\nvec2 map(vec3 p) {\n float d = sdEllipsoid(p, HEAD_R);\n float dr = 1e3;\n if (u_ears > 0.5) {\n vec3 e = earFrame(p);\n d = smin(d, sdCup(e), 0.045);\n dr = sdRing(e);\n d = min(d, dr);\n }\n return vec2(d, dr);\n}\n\nvec3 calcNormal(vec3 p) {\n const vec2 k = vec2(1.0, -1.0);\n const float h = 0.0016;\n return normalize(\n k.xyy * map(p + k.xyy * h).x +\n k.yyx * map(p + k.yyx * h).x +\n k.yxy * map(p + k.yxy * h).x +\n k.xxx * map(p + k.xxx * h).x\n );\n}\n\nfloat calcAO(vec3 p, vec3 n) {\n float occ = 0.0;\n float s = 1.0;\n for (int i = 1; i <= 4; i++) {\n float h = 0.045 * float(i);\n occ += (h - map(p + n * h).x) * s;\n s *= 0.72;\n }\n return clamp(1.0 - 2.4 * occ, 0.0, 1.0);\n}\n\nfloat softShadow(vec3 ro, vec3 rd) {\n float res = 1.0;\n float t = 0.05;\n for (int i = 0; i < 22; i++) {\n float h = map(ro + rd * t).x;\n res = min(res, 9.0 * h / t);\n t += clamp(h, 0.02, 0.22);\n if (res < 0.002 || t > 2.6) break;\n }\n return clamp(res, 0.0, 1.0);\n}\n\nvoid main() {\n vec2 uv = (gl_FragCoord.xy / u_resolution.xy) * 2.0 - 1.0;\n float aspect = u_resolution.x / max(u_resolution.y, 1.0);\n uv.x *= aspect;\n\n float kView = HALF_VIEW / CAM_DIST;\n float pixAng = 2.0 * kView / max(u_resolution.y, 1.0);\n\n vec3 rdW = normalize(vec3(uv * kView, -1.0));\n vec3 roW = vec3(0.0, 0.0, CAM_DIST);\n // world -> head space (u_rot is head -> world; v * M == transpose(M) * v)\n vec3 ro = roW * u_rot;\n vec3 rd = rdW * u_rot;\n\n // bounding sphere\n float bnd = 1.55;\n float b = dot(ro, rd);\n float c = dot(ro, ro) - bnd * bnd;\n float disc = b * b - c;\n if (disc < 0.0) {\n gl_FragColor = vec4(0.0);\n return;\n }\n float sq = sqrt(disc);\n float tEnd = -b + sq;\n float t = max(-b - sq, 0.0);\n\n float minD = 1e3;\n float tMin = t;\n float glow = 0.0;\n bool hit = false;\n vec2 m = vec2(1e3);\n\n for (int i = 0; i < 80; i++) {\n vec3 p = ro + rd * t;\n m = map(p);\n float eps = max(0.0007, 0.35 * t * pixAng);\n if (m.x < eps) {\n hit = true;\n break;\n }\n if (m.x < minD) {\n minD = m.x;\n tMin = t;\n }\n float stp = m.x * 0.85;\n glow += exp(-m.y * m.y * 150.0) * stp;\n t += stp;\n if (t > tEnd) break;\n }\n\n vec3 glowCol = mix(u_ear1, u_ear2, 0.5);\n float ga = (u_ears > 0.5) ? (1.0 - exp(-glow * 3.0)) * 0.8 : 0.0;\n\n float cov = 0.0;\n vec3 col = vec3(0.0);\n\n if (hit) {\n cov = 1.0;\n vec3 pl = ro + rd * t;\n vec3 nl = calcNormal(pl);\n vec3 nW = normalize(u_rot * nl);\n vec3 v = -rdW;\n\n // lights are fixed in the world: turning the head re-shades it\n vec3 keyW = normalize(vec3(-0.5, 0.72, 0.78));\n vec3 fillW = normalize(vec3(0.85, 0.05, 0.45));\n vec3 keyL = keyW * u_rot;\n float sh = softShadow(pl + nl * 0.012, keyL);\n float ao = calcAO(pl, nl);\n\n float ndl = dot(nW, keyW);\n float wrap = clamp((ndl + 0.35) / 1.35, 0.0, 1.0);\n float fill = clamp((dot(nW, fillW) + 0.3) / 1.3, 0.0, 1.0);\n float sky = nW.y * 0.5 + 0.5;\n vec3 amb = mix(vec3(0.60, 0.61, 0.64), vec3(0.80, 0.81, 0.84), sky);\n vec3 lightSum = amb * ao\n + vec3(1.0, 0.975, 0.94) * 0.62 * wrap * mix(0.55, 1.0, sh) * (0.55 + 0.45 * ao)\n + vec3(0.82, 0.86, 1.0) * 0.12 * fill * ao;\n\n vec3 hv = normalize(keyW + v);\n float ndh = max(dot(nW, hv), 0.0);\n float specK = (pow(ndh, 64.0) * 0.55 + pow(ndh, 14.0) * 0.10) * sh;\n float ndv = max(dot(nW, v), 0.0);\n float fres = 0.04 + 0.96 * pow(1.0 - ndv, 5.0);\n vec3 refl = reflect(-v, nW);\n vec3 env = mix(vec3(0.30, 0.31, 0.34), vec3(0.96, 0.97, 0.99), smoothstep(-0.25, 0.95, refl.y));\n\n float px = t * pixAng;\n vec3 body = (u_mode > 0.5) ? wash(nl, u_time * u_speed) : u_body;\n\n // ---- ear materials ------------------------------------------------------\n float plate = 0.0;\n float ringMask = 0.0;\n vec3 ringCol = vec3(0.0);\n float spill = 0.0;\n if (u_ears > 0.5) {\n vec3 e = earFrame(pl);\n float rad = length(e.yz);\n float outward = smoothstep(0.02, 0.05, e.x);\n plate = (1.0 - smoothstep(RECESS_R - 0.006 - px, RECESS_R + 0.004 + px, rad)) * outward;\n float dRing = sdRing(e);\n ringMask = 1.0 - smoothstep(0.0, 0.01 + px, dRing);\n float ang = atan(e.z, e.y);\n float gradT = 0.5 + 0.5 * sin(ang + (pl.x > 0.0 ? 0.6 : 2.5));\n vec3 neon = mix(u_ear1, u_ear2, gradT);\n float core = exp(-pow(dRing / RING_T + 1.0, 2.0) * 1.1);\n ringCol = mix(neon, vec3(1.0), 0.40 * core) * (1.05 + 0.08 * sin(u_time * 1.7));\n spill = exp(-max(dRing, 0.0) * 14.0) * outward;\n }\n vec3 plateCol = mix(vec3(0.16, 0.17, 0.20), u_body * 0.22 + vec3(0.07), 0.5);\n body = mix(body, plateCol, plate);\n\n // ---- face decals: eyes + connecting line --------------------------------\n float onFace = smoothstep(0.18, 0.42, pl.z);\n float lid = mix(1.0, 0.10, u_blink);\n float aa = max(px * 1.1, 0.0035);\n vec2 pe = pl.xy - vec2(0.0, EYE_Y);\n vec2 dl = vec2(abs(pe.x) - EYE_X, pe.y) / vec2(EYE_RX, EYE_RY * lid);\n float eyeM = 1.0 - smoothstep(1.0 - aa / EYE_RX, 1.0 + aa / EYE_RX, length(dl));\n float lw = max(LINE_HALF, 0.6 * px);\n float lineM =\n (1.0 - smoothstep(lw - aa, lw + aa, abs(pe.y))) *\n (1.0 - smoothstep(EYE_X - aa, EYE_X + aa, abs(pe.x)));\n float face = clamp(max(eyeM, lineM), 0.0, 1.0) * onFace;\n\n // ---- shade ----------------------------------------------------------------\n vec3 lit = body * lightSum;\n lit += vec3(1.0) * specK * (1.0 - plate * 0.6);\n lit = mix(lit, env * mix(vec3(1.0), body, 0.35), fres * 0.42);\n\n vec3 eyeLit = u_eye * (0.84 + 0.16 * wrap) + vec3(1.0) * specK * 0.42 + env * fres * 0.16;\n col = mix(lit, eyeLit, face);\n\n // neon spills light on the cup face and on the head next to it\n col += mix(u_ear1, u_ear2, 0.5) * spill * 0.34 * (1.0 - face);\n // the ring itself emits: no lighting\n col = mix(col, ringCol, ringMask);\n } else if (minD < 1e2) {\n // anti-aliased silhouette: how close did the ray pass to the surface?\n float r = minD / max(tMin * pixAng, 1e-5);\n cov = 1.0 - smoothstep(0.0, 1.15, r);\n // soft rim colour for the faded edge: reuse the body tone\n vec3 body = (u_mode > 0.5) ? wash(normalize(ro + rd * tMin), u_time * u_speed) : u_body;\n col = body * 0.9;\n }\n\n // neon halo behind / around the ring\n vec3 premul = col * cov + glowCol * ga * (1.0 - cov);\n float a = cov + ga * (1.0 - cov);\n gl_FragColor = vec4(clamp(premul / max(a, 1e-4), 0.0, 1.0), clamp(a, 0.0, 1.0));\n}\n");function NB(){return"u">typeof process&&(null==process.env?void 0:"production")!=="production"}function NV(e){var t=e.replace("#","").trim(),n=Number.parseInt(3===t.length?t.split("").map(function(e){return e+e}).join(""):t.padEnd(6,"0").slice(0,6),16);return Number.isNaN(n)?[.96,.96,.96]:[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]}function Nz(e,t,n){var r=e.createShader(t);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(NB()&&console.warn("LiveOrb: shader failed to compile\n",e.getShaderInfoLog(r)),e.deleteShader(r),null):null}function NW(e,t,n,r,a){var i,o,s,l,u="#F4F4F5",c="#09090B",d=0,f=N_,p=NL;return"black"===e?(u="#18181B",c="#F4F4F5"):"webgl"===e?(u=null!=(i=(f=r&&r.length>0?r:N_)[1])?i:N_[1],c="#0C0C10",d=1,p=[null!=(o=f[0])?o:N_[0],null!=(s=f[2])?s:N_[2]]):"custom"===e&&(u=null!=t?t:"#7C5CFF",c=null!=n?n:"#FAFAFA"),a&&a.length>0&&(p=[a[0],null!=(l=a[1])?l:a[0]]),{body:u,eye:c,mode:d,palette:f,ear:p}}function NU(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=NM({variant:"white",interactive:!0,blink:!0,ears:!0},n),a={x:0,y:.06,vx:0,vy:0},i={x:0,y:.06},o=!1,s=e.getContext("webgl",{alpha:!0,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"high-performance"});if(!s)return null;var l=Nz(s,s.VERTEX_SHADER,"\nattribute vec2 a_position;\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n}\n"),u=Nz(s,s.FRAGMENT_SHADER,NF);if(!l||!u)return null;var c=s.createProgram();if(!c)return null;if(s.attachShader(c,l),s.attachShader(c,u),s.linkProgram(c),!s.getProgramParameter(c,s.LINK_STATUS))return NB()&&console.warn("LiveOrb: program failed to link\n",s.getProgramInfoLog(c)),null;s.useProgram(c),null==(t=r.onHasGl)||t.call(r,!0);var d=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,d),s.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW);var f=s.getAttribLocation(c,"a_position");s.enableVertexAttribArray(f),s.vertexAttribPointer(f,2,s.FLOAT,!1,0,0);var p=function(e){return s.getUniformLocation(c,e)},m=p("u_resolution"),h=p("u_time"),y=p("u_speed"),v=p("u_rot"),g=p("u_blink"),b=p("u_mode"),x=p("u_ears"),w=p("u_body"),j=p("u_eye"),S=p("u_c1"),E=p("u_c2"),O=p("u_c3"),k=p("u_ear1"),A=p("u_ear2");s.disable(s.BLEND);var D=0,P=!0,C=!0,T=performance.now(),N=T,M=T+1800+2400*Math.random(),R=-1e4,I=function(){var t=e.parentElement;if(t){var n=Math.min(window.devicePixelRatio||1,2),r=t.clientWidth,a=t.clientHeight;r<=0||a<=0||(e.width=Math.max(1,Math.floor(r*n)),e.height=Math.max(1,Math.floor(a*n)),e.style.width="".concat(r,"px"),e.style.height="".concat(a,"px"),s.viewport(0,0,e.width,e.height))}};I();var _=new ResizeObserver(I);e.parentElement&&_.observe(e.parentElement);var L="u">typeof IntersectionObserver?new IntersectionObserver(function(e){var t=NI(e,1)[0];C=!t||t.isIntersecting}):null;null==L||L.observe(e);var F=window.matchMedia("(prefers-reduced-motion: reduce)"),B=function(){o=F.matches};B(),F.addEventListener("change",B);var V=function(t){if(r.interactive){var n=e.parentElement;if(n){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var o=3*Math.max(a.width,a.height)+120,s=t.clientX-(a.left+a.width/2),l=a.top+a.height/2-t.clientY;i.x=Math.tanh(s/o*2.2),i.y=Math.tanh(l/o*2.2)}}}},z=function(e){null===e.relatedTarget&&(i.x=0,i.y=.06)};window.addEventListener("pointermove",V,{passive:!0}),document.addEventListener("mouseout",z);var W=function(e){var t;e.preventDefault(),P=!1,cancelAnimationFrame(D),null==(t=r.onHasGl)||t.call(r,!1)};e.addEventListener("webglcontextlost",W);var U=function(t){if(P){D=requestAnimationFrame(U);var n,l,u=Math.min(.05,Math.max(.001,(t-N)/1e3));if(N=t,C&&!document.hidden){var c,d,f,p,I,_,L,F,B,V=NW(r.variant,r.color,r.eyeColor,r.colors,r.earColors),z=(t-T)/1e3,W=r.interactive?i.x:0,$=r.interactive?i.y:.06;a.vx+=((W-a.x)*130-17*a.vx)*u,a.vy+=(($-a.y)*130-17*a.vy)*u,a.x+=a.vx*u,a.y+=a.vy*u;var H=+!o,G=Math.max(-1,Math.min(1,a.x))+.03*Math.sin(.9*z)*H,q=Math.max(-1,Math.min(1,a.y))+.022*Math.sin(.67*z+1.3)*H;!o&&r.blink&&t>=M&&(R=t,M=t+2200+3800*Math.random());var Y=(t-R)/1e3,K=0;!o&&r.blink&&(Y<.055?K=Y/.055:Y<.1?K=1:Y<.18&&(K=1-(Y-.1)/.08));var Z=NV(V.body),X=NV(V.eye),Q=[0,1,2].map(function(e){var t;return NV(null!=(t=V.palette[e%V.palette.length])?t:N_[e])}),J=NV(null!=(n=V.ear[0])?n:NL[0]),ee=NV(null!=(l=V.ear[1])?l:NL[1]);s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.uniform2f(m,e.width,e.height),s.uniform1f(h,o?0:z),s.uniform1f(y,.55*!o),s.uniformMatrix3fv(v,!1,(c=.62*G,d=-(.4*q),f=-(.09*G),p=Math.cos(c),I=Math.sin(c),_=Math.cos(d),L=Math.sin(d),new Float32Array([p*(F=Math.cos(f))+I*L*(B=Math.sin(f)),_*B,-I*F+p*L*B,-p*B+I*L*F,_*F,I*B+p*L*F,I*_,-L,p*_]))),s.uniform1f(g,K),s.uniform1f(b,V.mode),s.uniform1f(x,+!!r.ears),s.uniform3f(w,Z[0],Z[1],Z[2]),s.uniform3f(j,X[0],X[1],X[2]),s.uniform3f(S,Q[0][0],Q[0][1],Q[0][2]),s.uniform3f(E,Q[1][0],Q[1][1],Q[1][2]),s.uniform3f(O,Q[2][0],Q[2][1],Q[2][2]),s.uniform3f(k,J[0],J[1],J[2]),s.uniform3f(A,ee[0],ee[1],ee[2]),s.drawArrays(s.TRIANGLES,0,6)}}};return D=requestAnimationFrame(U),{setOptions:function(e){r=NM({},r,e)},destroy:function(){var t;P=!1,cancelAnimationFrame(D),_.disconnect(),null==L||L.disconnect(),F.removeEventListener("change",B),window.removeEventListener("pointermove",V),document.removeEventListener("mouseout",z),e.removeEventListener("webglcontextlost",W),null==(t=r.onHasGl)||t.call(r,!1),s.deleteProgram(c),s.deleteShader(l),s.deleteShader(u),s.deleteBuffer(d)}}}function N$(e){var t=e.resolved,n=e.ears,r=e.interactive,a=(0,g.useRef)(null),i=(0,g.useRef)(null);(0,g.useEffect)(function(){if(r){var e=a.current,t=i.current,n=null==e?void 0:e.parentElement;if(e&&n){var o=function(r){var a=n.getBoundingClientRect();if(!(a.width<=0)&&!(a.height<=0)){var i=3*Math.max(a.width,a.height)+120,o=Math.tanh((r.clientX-(a.left+a.width/2))/i*2.2),s=Math.tanh((a.top+a.height/2-r.clientY)/i*2.2);e.style.transform="translate(".concat((5.5*o).toFixed(2),"%, ").concat((-(3.4*s)).toFixed(2),"%)"),t&&(t.style.transform="translate(".concat((-(1.8*o)).toFixed(2),"%, ").concat((-(1.2*s)).toFixed(2),"%)"))}};return window.addEventListener("pointermove",o,{passive:!0}),function(){return window.removeEventListener("pointermove",o)}}}},[r]);var o=NI(t.ear,2),s=o[0],l=o[1],u="transform 140ms ease-out",c={position:"absolute"},d=NR(NM({},c),{backgroundColor:t.eye,width:"8.3%",height:"9%",top:"42.9%",borderRadius:"50%"});return(0,v.jsxs)("div",{"data-part":"zoom","aria-hidden":!0,style:NR(NM({},c),{inset:0,transform:"scale(".concat(1.09,")")}),children:[n?(0,v.jsx)("div",{ref:i,"data-part":"ears","aria-hidden":!0,style:NR(NM({},c),{inset:0,transition:u}),children:[0,1].map(function(e){return(0,v.jsx)("span",{"data-part":"ear",style:NR(NM({},c),{borderRadius:"50%",left:0===e?"9%":"79%",top:"37%",width:"12%",height:"30%",background:"linear-gradient(".concat(0===e?135:225,"deg, ").concat(s,", ").concat(l,")"),boxShadow:"0 0 6px ".concat(l,"66, inset 0 0 0 2px #0000001f")}),children:(0,v.jsx)("span",{style:NR(NM({},c),{borderRadius:"50%",inset:"16% 22%",background:"radial-gradient(circle at 40% 30%, #3b3e45, #15171b)"})})},e)})}):null,(0,v.jsx)("div",{"aria-hidden":!0,"data-part":"head",style:NR(NM(NR(NM({},c),{overflow:"hidden",left:"15%",top:"24%",width:"70%",height:"52%",borderRadius:"50%"}),function(e){if(1===e.mode){var t,n,r,a=null!=(t=e.palette[0])?t:N_[0],i=null!=(n=e.palette[1])?n:N_[1],o=null!=(r=e.palette[2])?r:N_[2];return{backgroundImage:"linear-gradient(135deg, ".concat(a,", ").concat(i,", ").concat(o,")")}}return{backgroundColor:e.body}}(t)),{boxShadow:"inset -6px -8px 14px #0000002e, inset 5px 6px 12px #ffffff66"})}),(0,v.jsxs)("div",{ref:a,"aria-hidden":!0,"data-part":"face",style:NR(NM({},c),{inset:0,transition:u}),children:[(0,v.jsx)("span",{"data-part":"eye",style:NR(NM({},d),{left:"29.9%"})}),(0,v.jsx)("span",{"data-part":"eye",style:NR(NM({},d),{left:"61.8%"})}),(0,v.jsx)("span",{"data-part":"line",style:NR(NM({},c),{backgroundColor:t.eye,left:"34%",width:"32%",height:"1.6%",top:"46.6%",borderRadius:"999px"})})]})]})}function NH(e){var t=e.className,n=e.size,r=void 0===n?280:n,a=e.label,i=e.variant,o=void 0===i?"white":i,s=e.color,l=e.eyeColor,u=e.colors,c=e.interactive,d=void 0===c||c,f=e.blink,p=void 0===f||f,m=e.ears,h=void 0===m||m,y=e.earColors,b=(0,g.useRef)(null),x=(0,g.useRef)(null),w=NI((0,g.useState)(!1),2),j=w[0],S=w[1];(0,g.useEffect)(function(){var e=b.current;if(e)return x.current=NU(e,{variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S}),function(){var e;null==(e=x.current)||e.destroy(),x.current=null}},[]),(0,g.useEffect)(function(){var e;null==(e=x.current)||e.setOptions({variant:o,color:s,eyeColor:l,colors:u,interactive:d,blink:p,ears:h,earColors:y,onHasGl:S})},[o,s,l,u,d,p,h,y]);var E=NW(o,s,l,u,y);return(0,v.jsxs)("div",{"data-slot":"live-orb",role:"img","aria-label":void 0===a?"Assistant avatar":a,className:yt("relative shrink-0",t),style:{position:"relative",width:r,height:r},children:[j?null:(0,v.jsx)(N$,{resolved:E,ears:h,interactive:d}),(0,v.jsx)("canvas",{ref:b,className:"absolute inset-0 size-full"})]})}function NG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nq(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function NY(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){Nq(i,r,a,o,s,"next",e)}function s(e){Nq(i,r,a,o,s,"throw",e)}o(void 0)})}}function NK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||NZ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NZ(e,t){if(e){if("string"==typeof e)return NG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NG(e,t)}}function NX(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function NQ(e){var t=e.text,n=NK((0,g.useState)("auto"),2),r=n[0],a=n[1],i=(0,g.useRef)(null);return(0,g.useEffect)(function(){i.current&&a(i.current.offsetWidth)},[t]),(0,v.jsxs)("span",{className:"relative inline-flex items-center justify-center overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",style:{width:r},children:[(0,v.jsx)("span",{ref:i,className:"invisible whitespace-nowrap px-1",children:t}),(0,v.jsx)("span",{className:"absolute inset-0 flex items-center justify-center whitespace-nowrap animate-in fade-in zoom-in-95 duration-300",children:t},t)]})}function NJ(e){var t=e.model,n=e.className,r={"Composer 2.5":"https://cdn.21st.dev/assets/mirror/7d/7dc00bc09f225fcda46cbc9c6b669c69c025a231877d6c17baa6a003f04f02b2.svg","Gemini 3.5 Flash":"https://cdn.21st.dev/assets/mirror/cd/cda2df6631d5fa227de3fa04ed78cf354f910ba92a9f086e7455655c10ad9d09.svg","GPT 5.5":"https://cdn.21st.dev/assets/mirror/b9/b93fa7942be639a1dae60194ff12141145d7d9fd59581582d6ff23335755f19c.svg","Opus 4.8":"https://cdn.21st.dev/assets/mirror/5d/5de1221c77cc91e748066fd642ad0eee1c1fa65328814f5178166f901e599709.svg","GLM 5.2":"https://cdn.21st.dev/assets/mirror/b2/b2a6c0ff63efd8a555edf8a174ea6fcfeca120ac1595a2d461ca11d3ae89276c.svg"};return(0,v.jsx)("img",{src:r[t]||r["GPT 5.5"],alt:t,className:yt("object-contain",{"GPT 5.5":"dark:invert"}[t],n)})}function N0(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 12V2M7 2L2.5 6.5M7 2L11.5 6.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})}function N1(){return(0,v.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"5",y:"1",width:"4",height:"7",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M2.75 6.5V7a4.25 4.25 0 0 0 8.5 0v-.5M7 11.25V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function N2(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})})}function N3(){return(0,v.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 2.5V11.5M2.5 7H11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function N5(){return(0,v.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M2.5 2.5L11.5 11.5M11.5 2.5L2.5 11.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function N4(e){var t=e.level;return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,v.jsx)("rect",{x:"1.5",y:"8",width:"2.5",height:"4.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:1}),(0,v.jsx)("rect",{x:"5.75",y:"5",width:"2.5",height:"7.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Medium"===t||"Max Effort"===t?1:.3}),(0,v.jsx)("rect",{x:"10",y:"2",width:"2.5",height:"10.5",rx:"1",fill:"currentColor",className:"transition-opacity duration-300",opacity:"Max Effort"===t?1:.3})]})}function N6(e){var t=e.attachment,n=e.index,r=e.onRemove,a=e.onOpen,i=e.registerRef,o=NK((0,g.useState)(!1),2),s=o[0],l=o[1],u=(0,g.useRef)(null);return(0,v.jsxs)("button",{ref:function(e){u.current=e,i(t.id,e)},type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onClick:function(e){e.stopPropagation(),u.current&&a(t,u.current.getBoundingClientRect())},style:{animationDelay:"".concat(35*n,"ms"),animationFillMode:"backwards"},className:yt("group relative size-12 shrink-0 overflow-hidden rounded-xl border border-border bg-muted outline-none","transition-transform duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:scale-[1.04] active:scale-[0.96]","animate-in fade-in slide-in-from-top-3 zoom-in-90 duration-400"),"aria-label":"Open preview of ".concat(t.name),children:[(0,v.jsx)("img",{src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-start justify-end bg-black/0 transition-colors duration-200",s&&"bg-black/25"),children:(0,v.jsx)("span",{role:"button",tabIndex:-1,onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),r(t.id)},className:yt("m-1 flex size-4 items-center justify-center rounded-full bg-background/90 text-foreground/70 shadow-sm transition-all duration-200 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-background hover:text-foreground hover:scale-110",s?"opacity-100 scale-100":"opacity-0 scale-50 pointer-events-none"),"aria-label":"Remove ".concat(t.name),children:(0,v.jsx)(N5,{})})})]})}function N8(e){var t=e.attachment,n=e.originRect,r=e.onClose,a=NK((0,g.useState)("opening"),2),i=a[0],o=a[1],s=NK((0,g.useState)(null),2),l=s[0],u=s[1],c=(0,g.useRef)(null);(0,g.useEffect)(function(){var e=Math.min(.86*window.innerWidth,560),n=Math.min(.78*window.innerHeight,720),r=t.width||800,a=t.height||600,i=Math.min(e/r,n/a,1.6),s=r*i,l=a*i;u({top:(window.innerHeight-l)/2,left:(window.innerWidth-s)/2,width:s,height:l,radius:20});var c=requestAnimationFrame(function(){return o("open")});return function(){return cancelAnimationFrame(c)}},[t]);var d=(0,g.useCallback)(function(){return o("closing")},[]);(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&d()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[d]);var f="open"===i,p="closing"===i,m=f&&l?l:{top:n.top,left:n.left,width:n.width,height:n.height,radius:12},h=p?"ease-out":"cubic-bezier(0.175, 0.885, 0.32, 1.275)",y=p?"0.3s":"0.45s",b="top ".concat(y," ").concat(h,", left ").concat(y," ").concat(h,", width ").concat(y," ").concat(h,", height ").concat(y," ").concat(h,", border-radius ").concat(y," ").concat(h);return(0,v.jsxs)("div",{className:"fixed inset-0 z-[100]",onClick:d,role:"dialog","aria-modal":"true",children:[(0,v.jsx)("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-md transition-opacity duration-400",style:{opacity:+!!f}}),(0,v.jsx)("div",{style:{position:"fixed",top:m.top,left:m.left,width:m.width,height:m.height,borderRadius:m.radius,transition:b,overflow:"hidden",boxShadow:f?"0 24px 60px -12px rgb(0 0 0 / 0.35)":"0 0px 0px 0px rgb(0 0 0 / 0)"},className:"bg-muted",onTransitionEnd:function(){"closing"===i&&r()},onClick:function(e){return e.stopPropagation()},children:(0,v.jsx)("img",{ref:c,src:t.url,alt:t.name,className:"size-full object-cover",draggable:!1})}),(0,v.jsx)("button",{type:"button",onClick:d,style:{opacity:+!!f,transform:f?"scale(1)":"scale(0.7)"},className:yt("fixed right-4 top-4 flex size-9 items-center justify-center rounded-full bg-card/90 text-foreground/70 shadow-md backdrop-blur-sm","transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] hover:bg-card hover:text-foreground",!f&&"pointer-events-none"),children:(0,v.jsx)("span",{className:"scale-150",children:(0,v.jsx)(N5,{})})})]})}var N9=g.forwardRef(function(e,t){var n=e.onSubmit,r=e.placeholder,a=void 0===r?"Ask anything":r,i=e.className,o=e.models,s=void 0===o?["GPT 5.5","Opus 4.8","Gemini 3.5 Flash","Composer 2.5","GLM 5.2"]:o,l=e.efforts,u=void 0===l?["Low","Medium","Max Effort"]:l,c=e.defaultValue,d=e.value,f=e.onChange,p=e.maxAttachments,m=void 0===p?6:p,h=NK((0,g.useState)(!1),2),y=h[0],b=h[1],x=NK((0,g.useState)(!1),2),w=x[0],j=x[1],S=NK((0,g.useState)(void 0===c?"":c),2),E=S[0],O=S[1],k=NK((0,g.useState)(s[0]),2),A=k[0],D=k[1],P=NK((0,g.useState)(1),2),C=P[0],T=P[1],N=NK((0,g.useState)(!1),2),M=N[0],R=N[1],I=NK((0,g.useState)([]),2),_=I[0],L=I[1],F=NK((0,g.useState)(null),2),B=F[0],V=F[1],z=NK((0,g.useState)(!1),2),W=z[0],U=z[1],$=NK((0,g.useState)([,,,,,].fill(0)),2),H=$[0],G=$[1],q=(0,g.useRef)(void 0!==d?d:E),Y=(0,g.useRef)(null),K=(0,g.useRef)(null),Z=(0,g.useRef)(null),X=(0,g.useRef)(null),Q=(0,g.useRef)(null),J=(0,g.useRef)(null),ee=NK((0,g.useState)({opacity:0,transform:"translateY(0px) scale(0.95)",transition:"none"}),2),et=ee[0],en=ee[1],er=NK((0,g.useState)(116),2),ea=er[0],ei=er[1],eo=NK((0,g.useState)(68),2),es=eo[0],el=eo[1],eu=NK((0,g.useState)(!1),2),ec=eu[0],ed=eu[1],ef=void 0!==d,ep=ef?d:E,em=""!==ep.trim()||_.length>0,eh=_.length>0,ey=(0,g.useRef)(null),ev=(0,g.useRef)(null),eg=(0,g.useRef)(null),eb=(0,g.useRef)(null),ex=(0,g.useRef)(null),ew=(0,g.useRef)(new Map);(0,g.useEffect)(function(){q.current=ep},[ep]);var ej=function(){var e=ey.current;if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;eg.current&&(eg.current.style.opacity=Math.min(t/20,1).toString()),eb.current&&(eb.current.style.opacity=Math.min(Math.max(n-r-t-16,0)/10,1).toString())}},eS=(0,g.useCallback)(function(e){j(!0),ef||O(e),null==f||f(e)},[ef,f]),eE=(0,g.useCallback)(function(){X.current&&(X.current.stop(),X.current=null),Z.current&&(cancelAnimationFrame(Z.current),Z.current=null),Y.current&&(Y.current.getTracks().forEach(function(e){return e.stop()}),Y.current=null),K.current&&(K.current.close(),K.current=null),Q.current&&(window.clearInterval(Q.current),Q.current=null),J.current&&(window.clearInterval(J.current),J.current=null),U(!1),G([,,,,,].fill(0))},[]),eO=(0,g.useCallback)(function(){return NY(function(){var e,t,n,r,a,i,o,s;function l(){var e="Can you build a high fidelity Framer Motion layout animation for a dark mode dashboard?".split(" "),t=0,n=q.current;J.current=window.setInterval(function(){t<e.length?(eS(n=(n?n+" ":"")+e[t]),t++):eE()},300)}return NX(this,function(u){switch(u.label){case 0:j(!1),b(!0),e=null,u.label=1;case 1:if(u.trys.push([1,4,,5]),!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return[3,3];return[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:e=u.sent(),u.label=3;case 3:return[3,5];case 4:return u.sent(),console.warn("Microphone access denied or unavailable. Falling back to simulated voice mode for demo."),[3,5];case 5:return U(!0),e?(Y.current=e,K.current=t=new(window.AudioContext||window.webkitAudioContext),(n=t.createAnalyser()).fftSize=64,t.createMediaStreamSource(e).connect(n),r=new Uint8Array(n.frequencyBinCount),(a=function(){n.getByteFrequencyData(r);for(var e=[,,,,,].fill(0),t=Math.floor(r.length/5),i=0;i<5;i++){for(var o=0,s=0;s<t;s++)o+=r[i*t+s];e[i]=o/t/255}G(e),Z.current=requestAnimationFrame(a)})(),(i=window.SpeechRecognition||window.webkitSpeechRecognition)?((o=new i).continuous=!0,o.interimResults=!0,s=q.current,o.onresult=function(e){for(var t="",n="",r=e.resultIndex;r<e.results.length;++r)e.results[r].isFinal?n+=e.results[r][0].transcript:t+=e.results[r][0].transcript;n&&(s+=(s?" ":"")+n),eS((s+(t?" "+t:"")).trim())},o.onerror=function(e){console.error("Speech recognition error",e),eE()},o.onend=function(){eE()},X.current=o,o.start()):(console.warn("Speech Recognition API not supported in this browser. Using simulated text."),l())):(Q.current=window.setInterval(function(){G(Array.from({length:5},function(){return .8*Math.random()+.1}))},100),l()),[2]}})})()},[eS,eE]);(0,g.useEffect)(function(){W&&ey.current&&(ey.current.scrollTop=ey.current.scrollHeight)},[ep,W]),(0,g.useEffect)(function(){return function(){eE(),_.forEach(function(e){return URL.revokeObjectURL(e.url)})}},[eE,_]),(0,g.useEffect)(function(){(""!==ep.trim()||eh)&&!y&&(j(!1),b(!0))},[ep,y,eh]),(0,g.useEffect)(function(){if(y&&!W){var e=setTimeout(function(){if(ey.current){ey.current.focus();var e=ey.current.value.length;ey.current.setSelectionRange(e,e)}},50);return function(){return clearTimeout(e)}}},[y,W]),(0,g.useEffect)(function(){if(ey.current){var e=ey.current,t=e.style.height;e.style.transition="none",e.style.height="0px";var n=e.scrollHeight;e.style.height=t,e.offsetHeight,e.style.transition="";var r=Math.max(68,Math.min(n,160));e.style.height="".concat(r,"px"),el(r),ed(n>160),setTimeout(ej,0)}},[ep,y]),(0,g.useEffect)(function(){ei(Math.max(116,es+48)),setTimeout(ej,0)},[es]),(0,g.useEffect)(function(){if(M){var e=function(e){ev.current&&!ev.current.contains(e.target)&&R(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[M]);var ek=function(){(""!==ep.trim()||eh)&&(j(!1),null==n||n(ep,{model:A,effort:u[C],attachments:_.map(function(e){return e.file})}),eS(""),_.forEach(function(e){return URL.revokeObjectURL(e.url)}),L([]),b(!1),R(!1))},eA=function(e,t,n,r){var a="".concat(e.name,"-").concat(e.lastModified,"-").concat(Math.random().toString(36).slice(2,8));L(function(i){return((function(e){if(Array.isArray(e))return NG(e)})(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||NZ(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([{id:a,file:e,url:t,name:e.name,width:n,height:r}])})},eD=function(e){j(!0),L(function(t){var n=t.find(function(t){return t.id===e});return n&&URL.revokeObjectURL(n.url),t.filter(function(t){return t.id!==e})}),ew.current.delete(e)},eP=em&&!W,eC=!em&&!W;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{ref:function(e){"function"==typeof t?t(e):t&&(t.current=e),ev.current=e},onBlur:function(e){!(ev.current&&ev.current.contains(e.relatedTarget))&&(""!==ep.trim()||eh||W||(j(!1),b(!1),R(!1)))},className:yt("relative flex flex-col w-full",i),style:{maxWidth:"100%",transition:w?"max-width 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},children:[(0,v.jsx)("input",{ref:ex,type:"file",accept:"image/*",multiple:!0,onChange:function(e){return NY(function(){var t,n,r,a,i,o,s,l,u,c;return NX(this,function(d){if(!(t=e.target.files)||(n=Array.from(t).filter(function(e){return e.type.startsWith("image/")}),e.target.value="",0===n.length))return[2];r=Math.max(0,m-_.length),a=n.slice(0,r),y?j(!0):(j(!1),b(!0)),i=!0,o=!1,s=void 0;try{for(l=function(){var e=c.value,t=URL.createObjectURL(e),n=new Image;n.onload=function(){return eA(e,t,n.naturalWidth,n.naturalHeight)},n.onerror=function(){return eA(e,t,800,600)},n.src=t},u=a[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)l()}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return[2]})})()},className:"hidden",tabIndex:-1,"aria-hidden":"true"}),(0,v.jsx)("div",{"aria-hidden":!eh,style:{height:eh&&y?68:0,transition:w?"height 0.15s ease-out":"height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:"w-full relative z-0 overflow-hidden",children:(0,v.jsx)("div",{style:{position:"absolute",bottom:-8,left:20,right:20,height:68,transform:eh&&y?"translateY(0)":"translateY(100%)",opacity:eh&&y?1:0,transition:w?"transform 0.15s ease-out, opacity 0.15s ease-out":"transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out"},className:"border border-border border-b-0 bg-muted rounded-t-2xl px-2 pt-2 pb-1 flex items-start gap-2 overflow-x-auto prompt-scrollbar",children:_.map(function(e,t){return(0,v.jsx)(N6,{attachment:e,index:t,onRemove:eD,onOpen:function(e,t){return V({attachment:e,rect:t})},registerRef:function(e,t){return ew.current.set(e,t)}},e.id)})})}),(0,v.jsxs)("div",{onMouseDown:function(e){var t,n=e.target===ey.current;!y||n||W||(e.preventDefault(),null==(t=ey.current)||t.focus())},style:{borderRadius:24,height:y?ea:48,transition:w?"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.15s ease-out":"max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)",overflow:y?"visible":"hidden"},className:yt("relative w-full border border-border bg-card shadow-sm focus-within:border-ring/40 focus-within:ring-1 focus-within:ring-ring/20 hover:border-border/80 z-10",y?"cursor-text":"cursor-default"),children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .prompt-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-track { background: transparent; }\n .prompt-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }\n .prompt-scrollbar:hover::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); }\n "}}),(0,v.jsx)("textarea",{ref:ey,value:ep,onChange:function(e){return eS(e.target.value)},onScroll:ej,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),ek()),"Escape"!==e.key||""!==ep.trim()||eh||(j(!1),b(!1),R(!1))},placeholder:a,"aria-label":"Prompt",disabled:W,style:{transition:w?"height 0.15s ease-out":"opacity 0.3s ease-out, transform 0.3s ease-out, height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:yt("prompt-scrollbar absolute top-0 inset-x-0 z-[1] w-full resize-none bg-transparent pl-4 pr-12 py-3.5 text-sm leading-[22px] text-foreground outline-none placeholder:font-medium placeholder:text-muted-foreground/80 cursor-text",y?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 -translate-y-1 pointer-events-none",ec?"overflow-y-auto":"overflow-y-hidden",W&&"pointer-events-none")}),(0,v.jsx)("div",{ref:eg,className:"absolute left-4 right-12 top-0 z-[2] h-8 bg-gradient-to-b from-card via-card/90 to-transparent pointer-events-none"}),(0,v.jsx)("div",{ref:eb,className:"absolute left-4 right-12 z-[2] h-8 bg-gradient-to-t from-card via-card/90 to-transparent pointer-events-none",style:{opacity:0,top:"".concat(es-32,"px"),transition:w?"top 0.15s ease-out":"top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"}}),(0,v.jsx)("button",{type:"button",onClick:function(){j(!1),b(!0)},style:{transition:w?"none":"all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)"},className:yt("absolute inset-x-0 top-0 z-[1] cursor-text pl-4 pr-12 py-[15px] text-left text-sm font-medium leading-[17px] text-muted-foreground/80 outline-none truncate",y?"opacity-0 scale-105 translate-y-1 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open prompt input",children:a}),(0,v.jsxs)("div",{className:yt("absolute bottom-2 left-3 right-12 z-[10] flex items-center gap-0 transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",y&&!W?"opacity-100 blur-0 translate-y-0 pointer-events-auto":"opacity-0 blur-sm translate-y-2 pointer-events-none"),children:[(0,v.jsxs)("div",{className:"relative",children:[(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),R(function(e){return!e})},className:yt("group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 outline-none hover:bg-accent/60 hover:text-foreground cursor-default",M?"bg-accent/60 text-foreground":""),"aria-label":"Select model. Current: ".concat(A),children:[(0,v.jsx)(NJ,{model:A,className:"size-3.5 opacity-70 group-hover:opacity-100 transition-opacity"}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(NQ,{text:A})})]}),(0,v.jsx)("div",{style:{transformOrigin:"bottom left"},onMouseLeave:function(){en(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={opacity:0,transform:e.transform.replace("scale(1)","scale(0.95)"),transition:"opacity 0.2s ease-in, transform 0.2s ease-out"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t})},className:yt("absolute bottom-full left-0 mb-2.5 z-50 w-44 rounded-2xl border border-border bg-card/95 p-1 shadow-xl backdrop-blur-md flex flex-col gap-0.5 transition-all duration-400 cursor-default",M?"opacity-100 scale-100 translate-y-0 pointer-events-auto ease-[cubic-bezier(0.34,1.56,0.64,1)]":"opacity-0 scale-95 translate-y-3 pointer-events-none ease-[cubic-bezier(0.175,0.885,0.32,1.275)]"),children:(0,v.jsxs)("div",{className:"relative flex flex-col gap-0.5",children:[(0,v.jsx)("div",{style:et,className:"absolute left-0 right-0 top-0 h-8 -z-10 rounded-xl bg-accent pointer-events-none"}),s.map(function(e,t){return(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onMouseEnter:function(){en(function(e){return{opacity:1,transform:"translateY(".concat(34*t,"px) scale(1)"),transition:0===e.opacity?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease"}})},onClick:function(t){t.stopPropagation(),D(e),R(!1)},className:"group relative flex h-8 w-full items-center justify-between rounded-xl px-2.5 py-1.5 text-left text-xs font-medium text-foreground/80 outline-none active:scale-[0.98] cursor-default",children:(0,v.jsxs)("span",{className:"flex items-center gap-2",children:[(0,v.jsx)(NJ,{model:e,className:"size-3.5 opacity-85 group-hover:opacity-100 transition-opacity"}),e]})},e)})]})})]}),(0,v.jsxs)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),T(function(e){return(e+1)%u.length})},className:"group flex items-center gap-1 rounded-full px-2 py-1 text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default",children:[(0,v.jsx)(N4,{level:u[C]}),(0,v.jsx)("span",{className:"text-xs font-semibold select-none transition-colors",children:(0,v.jsx)(NQ,{text:u[C]})})]}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){var t;e.stopPropagation(),null==(t=ex.current)||t.click()},disabled:_.length>=m,className:"ml-auto flex size-7 items-center justify-center rounded-full text-foreground/50 transition-all duration-200 hover:bg-accent/60 hover:text-foreground outline-none cursor-default disabled:opacity-40 disabled:pointer-events-none",children:(0,v.jsx)(N3,{})})]}),(0,v.jsx)("div",{className:yt("absolute right-12 bottom-2 z-[10] flex h-8 items-center justify-end gap-[3px] transition-all duration-400 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",W?"w-16 opacity-100 translate-x-0":"w-0 opacity-0 translate-x-4 pointer-events-none"),children:H.map(function(e,t){return(0,v.jsx)("div",{className:"w-1 rounded-full bg-primary transition-[height] duration-75 ease-out",style:{height:"".concat(Math.max(4,24*e),"px")}},t)})}),(0,v.jsx)("button",{type:"button",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),W?eE():em?ek():eO()},"aria-label":eP?"Send prompt":W?"Stop recording":"Use voice input",style:{borderRadius:9999},className:"absolute right-2 bottom-2 z-[10] flex h-8 w-8 items-center justify-center bg-primary text-primary-foreground transition-all duration-300 hover:opacity-90 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-default",children:(0,v.jsxs)("span",{className:"relative flex h-full w-full items-center justify-center",children:[(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eP?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(N0,{})}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",eC?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 -rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(N1,{})}),(0,v.jsx)("span",{className:yt("absolute inset-0 flex items-center justify-center transition-all duration-300 ease-[cubic-bezier(0.175,0.885,0.32,1.275)]",W?"opacity-100 scale-100 rotate-0 blur-none":"opacity-0 scale-50 rotate-45 blur-[1px] pointer-events-none"),children:(0,v.jsx)(N2,{})})]})})]})]}),B&&(0,v.jsx)(N8,{attachment:B.attachment,originRect:B.rect,onClose:function(){return V(null)}})]})});function N7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}N9.displayName="PromptInput";var Me=(0,g.lazy)(function(){return n.e("1808").then(n.bind(n,339))}),Mt=new Set;function Mn(e){if(!("u"<typeof document||Mt.has(e))){Mt.add(e);var t=document.createElement("link");t.rel="preload",t.as="fetch",t.crossOrigin="anonymous",t.href=e,document.head.appendChild(t)}}function Mr(e){var t,n=e.scene,r=e.className,a=e.onLoad,i=function(e){if(Array.isArray(e))return e}(t=(0,g.useState)(!1))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return N7(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N7(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],s=i[1];return(0,v.jsxs)("div",{className:"relative ".concat(void 0===r?"w-full h-full":r," overflow-hidden"),children:[!o&&(0,v.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-[#030708] text-teal-400 gap-3 transition-opacity duration-300",children:[(0,v.jsx)("div",{className:"w-10 h-10 border-2 border-teal-400 border-t-transparent rounded-full animate-spin"}),(0,v.jsx)("span",{className:"text-xs font-mono tracking-widest text-teal-300/80 uppercase animate-pulse",children:"Initialisation Robot 3D..."})]}),(0,v.jsx)("div",{className:"w-full h-full transition-opacity duration-500 ".concat(o?"opacity-100":"opacity-0"),children:(0,v.jsx)(g.Suspense,{fallback:null,children:(0,v.jsx)(Me,{scene:n,className:"w-full h-full",onLoad:function(e){s(!0),a&&a(e)}})})})]})}var Ma={mode:"dark",hue:0,saturation:1,brightness:1},Mi={title:"Recursive Erosion particle sphere background",source:"<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Recursive Erosion Particle Sphere</title>\n <style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: #0a0908;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #stage {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n }\n </style>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js\"><\/script>\n</head>\n<body>\n <canvas id=\"stage\"></canvas>\n\n <script>\n (function() {\n var canvas = document.getElementById('stage');\n var width = window.innerWidth;\n var height = window.innerHeight;\n\n // Ensure canvas has dimension\n canvas.width = width;\n canvas.height = height;\n\n // Mouse tracking\n var mouseX = 0, mouseY = 0;\n var targetRotX = 0, targetRotY = 0;\n window.addEventListener('mousemove', function(e) {\n mouseX = (e.clientX / window.innerWidth) * 2 - 1;\n mouseY = -(e.clientY / window.innerHeight) * 2 + 1;\n });\n\n // Simple 3D noise approximation\n function snoise(x, y, z) {\n return Math.sin(x * 1.7 + y * 2.3) * Math.cos(y * 1.5 + z * 2.1) * Math.sin(z * 1.9 + x * 0.9);\n }\n\n // Check if THREE is loaded\n if (typeof THREE !== 'undefined') {\n initThree();\n } else {\n // In case external CDN fails, fallback to standalone canvas 2D rendering\n initCanvasFallback();\n }\n\n function initThree() {\n var scene = new THREE.Scene();\n var camera = new THREE.PerspectiveCamera(50, width / height, 0.1, 1000);\n camera.position.z = 240;\n\n var renderer = new THREE.WebGLRenderer({\n canvas: canvas,\n antialias: true,\n alpha: true,\n powerPreference: \"high-performance\"\n });\n renderer.setSize(width, height);\n renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\n // Create 7,000 points on Fibonacci sphere\n var particleCount = 7000;\n var geometry = new THREE.BufferGeometry();\n var positions = new Float32Array(particleCount * 3);\n var basePositions = new Float32Array(particleCount * 3);\n var colors = new Float32Array(particleCount * 3);\n var sizes = new Float32Array(particleCount);\n\n var sphereRadius = 82;\n var goldenRatio = (1 + Math.sqrt(5)) / 2;\n\n for (var i = 0; i < particleCount; i++) {\n var y = 1 - (i / (particleCount - 1)) * 2;\n var radiusAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / goldenRatio;\n\n var x = Math.cos(theta) * radiusAtY;\n var z = Math.sin(theta) * radiusAtY;\n\n var bx = x * sphereRadius;\n var by = y * sphereRadius;\n var bz = z * sphereRadius;\n\n basePositions[i * 3] = bx;\n basePositions[i * 3 + 1] = by;\n basePositions[i * 3 + 2] = bz;\n\n positions[i * 3] = bx;\n positions[i * 3 + 1] = by;\n positions[i * 3 + 2] = bz;\n\n // Warm orange / amber / golden palette with organic gradient\n var ratio = (y + 1) * 0.5;\n var r = 1.0;\n var g = 0.38 + ratio * 0.28 + Math.random() * 0.12;\n var b = 0.05 + ratio * 0.08;\n\n colors[i * 3] = r;\n colors[i * 3 + 1] = g;\n colors[i * 3 + 2] = b;\n\n sizes[i] = 1.2 + Math.random() * 2.0;\n }\n\n geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));\n geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3));\n\n // Circular glow particle texture\n var circleCanvas = document.createElement('canvas');\n circleCanvas.width = 64;\n circleCanvas.height = 64;\n var ctx = circleCanvas.getContext('2d');\n var grad = ctx.createRadialGradient(32, 32, 0, 32, 32, 32);\n grad.addColorStop(0, 'rgba(255, 255, 255, 1)');\n grad.addColorStop(0.2, 'rgba(255, 160, 60, 0.9)');\n grad.addColorStop(0.5, 'rgba(255, 90, 20, 0.4)');\n grad.addColorStop(1, 'rgba(255, 60, 0, 0)');\n ctx.fillStyle = grad;\n ctx.fillRect(0, 0, 64, 64);\n\n var pTexture = new THREE.CanvasTexture(circleCanvas);\n\n var material = new THREE.PointsMaterial({\n size: 3.2,\n vertexColors: true,\n map: pTexture,\n transparent: true,\n blending: THREE.AdditiveBlending,\n depthWrite: false,\n opacity: 0.92\n });\n\n var points = new THREE.Points(geometry, material);\n scene.add(points);\n\n // 8 jagged lightning arcs that strike across the sphere\n var arcGroup = new THREE.Group();\n var arcLines = [];\n var ARC_COUNT = 8;\n var ARC_SEGMENTS = 20;\n\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcGeo = new THREE.BufferGeometry();\n var arcPos = new Float32Array(ARC_SEGMENTS * 3);\n arcGeo.setAttribute('position', new THREE.BufferAttribute(arcPos, 3));\n\n var arcMat = new THREE.LineBasicMaterial({\n color: new THREE.Color(1.0, 0.72 + Math.random() * 0.25, 0.3),\n transparent: true,\n opacity: 0.75,\n blending: THREE.AdditiveBlending,\n linewidth: 1.5\n });\n\n var line = new THREE.Line(arcGeo, arcMat);\n arcLines.push({ line: line, geo: arcGeo, phase: Math.random() * Math.PI * 2, speed: 0.8 + Math.random() * 0.6 });\n arcGroup.add(line);\n }\n scene.add(arcGroup);\n\n // Inner glowing core\n var coreGeo = new THREE.SphereGeometry(sphereRadius * 0.3, 16, 16);\n var coreMat = new THREE.MeshBasicMaterial({\n color: 0xff5500,\n transparent: true,\n opacity: 0.08,\n blending: THREE.AdditiveBlending,\n wireframe: true\n });\n var coreMesh = new THREE.Mesh(coreGeo, coreMat);\n scene.add(coreMesh);\n\n var clock = new THREE.Clock();\n\n function animate() {\n requestAnimationFrame(animate);\n var time = clock.getElapsedTime();\n\n // 4-second erosion breathing loop\n var loopCycle = (time % 4.0) / 4.0; // 0 to 1\n var erosionPulse = Math.sin(loopCycle * Math.PI * 2);\n\n var posAttr = geometry.attributes.position;\n var posArray = posAttr.array;\n\n for (var i = 0; i < particleCount; i++) {\n var i3 = i * 3;\n var bx = basePositions[i3];\n var by = basePositions[i3 + 1];\n var bz = basePositions[i3 + 2];\n\n // 3D noise for recursive erosion crumpling & hole creation\n var nVal = snoise(bx * 0.025 + time * 0.4, by * 0.025 + time * 0.3, bz * 0.025);\n var isHole = nVal > (0.42 - erosionPulse * 0.25);\n\n var displace = isHole ? (1.0 + (nVal - 0.3) * 0.65) : (1.0 + nVal * 0.12 * erosionPulse);\n posArray[i3] = bx * displace;\n posArray[i3 + 1] = by * displace;\n posArray[i3 + 2] = bz * displace;\n }\n posAttr.needsUpdate = true;\n\n // Lightning arcs updates\n for (var a = 0; a < ARC_COUNT; a++) {\n var arcObj = arcLines[a];\n var aGeo = arcObj.geo;\n var aPos = aGeo.attributes.position.array;\n\n var tPhase = time * arcObj.speed + arcObj.phase;\n var p1Idx = Math.floor(Math.abs(Math.sin(tPhase * 0.7) * (particleCount - 1)));\n var p2Idx = Math.floor(Math.abs(Math.cos(tPhase * 0.5) * (particleCount - 1)));\n\n var x1 = posArray[p1Idx * 3], y1 = posArray[p1Idx * 3 + 1], z1 = posArray[p1Idx * 3 + 2];\n var x2 = posArray[p2Idx * 3], y2 = posArray[p2Idx * 3 + 1], z2 = posArray[p2Idx * 3 + 2];\n\n for (var s = 0; s < ARC_SEGMENTS; s++) {\n var tSeg = s / (ARC_SEGMENTS - 1);\n var sx = x1 + (x2 - x1) * tSeg;\n var sy = y1 + (y2 - y1) * tSeg;\n var sz = z1 + (z2 - z1) * tSeg;\n\n // Jagged lightning noise displacement\n if (s > 0 && s < ARC_SEGMENTS - 1) {\n var jitter = Math.sin(tSeg * Math.PI) * 7.5;\n sx += (Math.random() - 0.5) * jitter;\n sy += (Math.random() - 0.5) * jitter;\n sz += (Math.random() - 0.5) * jitter;\n }\n\n aPos[s * 3] = sx;\n aPos[s * 3 + 1] = sy;\n aPos[s * 3 + 2] = sz;\n }\n aGeo.attributes.position.needsUpdate = true;\n arcObj.line.material.opacity = 0.3 + Math.random() * 0.65;\n }\n\n // Smooth rotation & interactive mouse tilt\n targetRotX = mouseY * 0.45;\n targetRotY = mouseX * 0.55;\n\n points.rotation.y += 0.0035;\n points.rotation.x += (targetRotX - points.rotation.x) * 0.05;\n points.rotation.z += (targetRotY * 0.2 - points.rotation.z) * 0.05;\n\n arcGroup.rotation.copy(points.rotation);\n coreMesh.rotation.copy(points.rotation);\n\n renderer.render(scene, camera);\n }\n\n animate();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n camera.aspect = width / height;\n camera.updateProjectionMatrix();\n renderer.setSize(width, height);\n });\n }\n\n function initCanvasFallback() {\n var ctx = canvas.getContext('2d');\n var particles = [];\n var count = 3000;\n for (var i = 0; i < count; i++) {\n var y = 1 - (i / (count - 1)) * 2;\n var rAtY = Math.sqrt(Math.max(0, 1 - y * y));\n var theta = 2 * Math.PI * i / 1.6180339887;\n particles.push({\n x: Math.cos(theta) * rAtY,\n y: y,\n z: Math.sin(theta) * rAtY,\n baseRadius: 180\n });\n }\n\n var angleX = 0, angleY = 0;\n function renderLoop() {\n requestAnimationFrame(renderLoop);\n ctx.fillStyle = '#0a0908';\n ctx.fillRect(0, 0, width, height);\n\n var cx = width / 2;\n var cy = height / 2;\n\n angleY += 0.005;\n angleX = mouseY * 0.3;\n\n for (var i = 0; i < count; i += 2) {\n var p = particles[i];\n var cosY = Math.cos(angleY), sinY = Math.sin(angleY);\n var cosX = Math.cos(angleX), sinX = Math.sin(angleX);\n\n var x1 = p.x * cosY - p.z * sinY;\n var z1 = p.z * cosY + p.x * sinY;\n\n var y2 = p.y * cosX - z1 * sinX;\n var z2 = z1 * cosX + p.y * sinX;\n\n var scale = 400 / (400 + z2 * p.baseRadius);\n var px = cx + x1 * p.baseRadius * scale;\n var py = cy + y2 * p.baseRadius * scale;\n\n var alpha = Math.max(0.1, Math.min(1, (z2 + 1.2) * 0.45));\n ctx.fillStyle = 'rgba(255, 140, 40, ' + alpha + ')';\n ctx.beginPath();\n ctx.arc(px, py, Math.max(1, 2.0 * scale), 0, Math.PI * 2);\n ctx.fill();\n }\n }\n renderLoop();\n\n window.addEventListener('resize', function() {\n width = window.innerWidth;\n height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n });\n }\n })();\n <\/script>\n</body>\n</html>",background:"#0a0908",theme:{lightBackground:"#f4f3f1",darkBackground:"#0a0908"},targets:[{selector:"#stage",role:"background"}],hiddenTargets:["#badge",".sr"]};function Mo(e,t,n){return Math.min(n,Math.max(t,e))}function Ms(e,t){var n,r;return null!=(n=null==(r=e.theme)?void 0:r["".concat(t,"Background")])?n:e.background}function Ml(e){var t=e.mode,n=void 0===t?Ma.mode:t,r=e.hue,a=void 0===r?Ma.hue:r,i=e.saturation,o=void 0===i?Ma.saturation:i,s=e.brightness,l=void 0===s?Ma.brightness:s,u=e.className,c=e.style,d="light"===n?"light":"dark",f=Ms(Mi,d),p=(0,g.useMemo)(function(){var e,t,n,r,a,i,o,s;return t=Ms(Mi,d),n=Mi.source,r=JSON.stringify(Mi.targets).replace(/</g,"\\u003c"),a=JSON.stringify(null!=(e=Mi.hiddenTargets)?e:[]).replace(/</g,"\\u003c"),i=JSON.stringify(d),o="<style data-threeui-focus>\nhtml, body { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: ".concat(t," !important; color-scheme: ").concat(d,' !important; }\nbody { position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important; }\nbody > * { visibility: hidden !important; }\nbody[data-threeui-ready] > [data-threeui-role] { visibility: visible !important; }\n[data-threeui-residual] { display: none !important; }\n[data-threeui-hidden] { display: none !important; }\n[data-threeui-role="background"] { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; z-index: 0 !important; opacity: 1 !important; pointer-events: none !important; }\n[data-threeui-role="button"] { position: relative !important; z-index: 2 !important; opacity: 1 !important; flex: none !important; }\n[data-threeui-role="visual"] { position: relative !important; z-index: 1 !important; width: min(100%, 1040px) !important; max-width: 1040px !important; max-height: 100% !important; margin: auto !important; padding: 24px !important; overflow: auto !important; opacity: 1 !important; filter: none !important; }\n</style>'),s="<script data-threeui-focus>\n(function () {\n document.documentElement.dataset.sfMode = ".concat(i,";\n var isolated = false;\n function isolate() {\n if (isolated) return;\n var specs = ").concat(r,";\n var hiddenSelectors = ").concat(a,";\n var roots = [];\n hiddenSelectors.forEach(function (selector) {\n document.querySelectorAll(selector).forEach(function (element) {\n element.setAttribute('data-threeui-hidden', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n });\n specs.forEach(function (spec) {\n var element = document.querySelector(spec.selector);\n if (!element) return;\n element.setAttribute('data-threeui-role', spec.role);\n if (!roots.some(function (root) { return root.contains(element); })) roots.push(element);\n });\n if (!roots.length) return;\n isolated = true;\n roots.forEach(function (root) {\n var placeholderLink = root.matches('a[href=\"#\"]') ? root : root.querySelector('a[href=\"#\"]');\n if (placeholderLink) placeholderLink.addEventListener('click', function (event) { event.preventDefault(); });\n document.body.appendChild(root);\n });\n Array.from(document.body.children).forEach(function (element) {\n if (roots.indexOf(element) !== -1) return;\n element.setAttribute('data-threeui-residual', '');\n element.setAttribute('aria-hidden', 'true');\n if ('inert' in element) element.inert = true;\n });\n document.body.setAttribute('data-threeui-ready', '');\n requestAnimationFrame(function () { window.dispatchEvent(new Event('resize')); });\n }\n function scheduleIsolation() { setTimeout(isolate, 100); }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', scheduleIsolation, { once: true });\n else scheduleIsolation();\n window.addEventListener('load', isolate, { once: true });\n})();\n<\/script>"),n.replace(/<\/head>/i,"".concat(o,"</head>")).replace(/<\/body>/i,"".concat(s,"</body>"))},[d]),m=Mo(a,-180,180),h=Mo(o,0,2),y=Mo(l,.35,1.65),b=0===m&&1===h&&1===y?void 0:"hue-rotate(".concat(m,"deg) saturate(").concat(h,") brightness(").concat(y,")");return(0,v.jsx)("iframe",{className:u,"data-mode":d,title:Mi.title,srcDoc:p,sandbox:"allow-scripts",loading:"eager",style:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({display:"block",width:"100%",height:"100%",border:0,background:f,filter:b},c)})}function Mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mc(e){if(Array.isArray(e))return e}function Md(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mf(e,t){if(e){if("string"==typeof e)return Mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mu(e,t)}}var Mp=(0,g.forwardRef)(function(e,t){var n,r,a,i=Mc(n=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Mf(n)||Md(),o=i[0],s=i.slice(1),l=o.children,u=o.optionsComponent,c=o.header,d=o.footer,f=o.align,p=o.width,m=o.className,h=void 0===m?"":m,y=o.contentClassName,g=function(e,t){if(null==e)return{};var n,r,a,i={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,a={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(o,["children","optionsComponent","header","footer","align","width","className","contentClassName"]),b=(Mc(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),1!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||Mf(s,1)||Md())[0],x=h.includes("fixed")||h.includes("absolute");return(0,v.jsx)("div",(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:b,className:"".concat(x?"":"absolute top-full mt-2"," z-[9999] text-xs text-slate-100 select-none overflow-hidden\n bg-slate-950/90 backdrop-blur-3xl rounded-2xl border border-white/20\n shadow-[0_16px_48px_0_rgba(0,0,0,0.65)]\n before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/[0.12] before:to-transparent before:pointer-events-none\n animate-in fade-in zoom-in-95 duration-150\n ").concat({right:"right-0",left:"left-0",center:"left-1/2 -translate-x-1/2",none:""}[void 0===f?"right":f],"\n ").concat(p||"","\n ").concat(h,"\n ")},g),a=a={children:(0,v.jsxs)("div",{className:"relative z-10 p-1.5 ".concat(void 0===y?"":y),children:[c&&(0,v.jsx)("div",{className:"pb-1.5 mb-1.5 border-b border-white/10 px-2 pt-1",children:c}),u||l,d&&(0,v.jsx)("div",{className:"pt-1.5 mt-1.5 border-t border-white/10 px-2 pb-1",children:d})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}),r))});Mp.displayName="WaterGlassModal";function Mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mh=new(function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");Mm(this,"ctx",null),Mm(this,"isMuted",!1),Mm(this,"volume",.5),Mm(this,"lastPlayTimes",{}),Mm(this,"noiseBuffer",null);try{var n=localStorage.getItem("egen_xbox_sound_muted");null!==n&&(this.isMuted="true"===n);var r=localStorage.getItem("egen_xbox_sound_volume");null!==r&&(this.volume=parseFloat(r)||.5)}catch(e){}if("u">typeof window){var a=function(){e.initContext(),window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",a)};window.addEventListener("pointerdown",a,{passive:!0}),window.addEventListener("keydown",a,{passive:!0})}}return e=[{key:"initContext",value:function(){if(!this.ctx&&"u">typeof window){var e=window.AudioContext||window.webkitAudioContext;e&&(this.ctx=new e,this.generateNoiseBuffer())}return this.ctx&&"suspended"===this.ctx.state&&this.ctx.resume().catch(function(){}),this.ctx}},{key:"generateNoiseBuffer",value:function(){if(this.ctx){for(var e=.5*this.ctx.sampleRate,t=this.ctx.createBuffer(2,e,this.ctx.sampleRate),n=0;n<2;n++)for(var r=t.getChannelData(n),a=0;a<e;a++)r[a]=2*Math.random()-1;this.noiseBuffer=t}}},{key:"getIsMuted",value:function(){return this.isMuted}},{key:"setMuted",value:function(e){this.isMuted=e;try{localStorage.setItem("egen_xbox_sound_muted",String(e))}catch(e){}}},{key:"toggleMute",value:function(){return this.setMuted(!this.isMuted),this.isMuted||this.play("select"),this.isMuted}},{key:"getVolume",value:function(){return this.volume}},{key:"setVolume",value:function(e){this.volume=Math.max(0,Math.min(1,e));try{localStorage.setItem("egen_xbox_sound_volume",String(this.volume))}catch(e){}}},{key:"play",value:function(e){if(!this.isMuted){var t=performance.now();if(!this.lastPlayTimes[e]||!(t-this.lastPlayTimes[e]<({hover:40,scroll:40,boundary:160,select:60,back:60,modalOpen:100,folderOpen:120,notification:180,achievement:250,toastSuccess:120,toastInfo:120,toastWarning:120,toastError:120,toggle:60})[e])){this.lastPlayTimes[e]=t;var n=this.initContext();if(n)try{switch(e){case"hover":this.playHover(n);break;case"select":this.playSelect(n);break;case"back":this.playBack(n);break;case"modalOpen":this.playModalOpen(n);break;case"folderOpen":this.playFolderOpen(n);break;case"scroll":this.playScroll(n);break;case"boundary":this.playBoundary(n);break;case"notification":this.playNotification(n);break;case"achievement":this.playAchievement(n);break;case"toastSuccess":this.playToastSuccess(n);break;case"toastInfo":this.playToastInfo(n);break;case"toastWarning":this.playToastWarning(n);break;case"toastError":this.playToastError(n);break;case"toggle":this.playToggle(n)}}catch(e){console.warn("Xbox Audio error:",e)}}}}},{key:"playHover",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sine",n.frequency.setValueAtTime(2200,t),n.frequency.exponentialRampToValueAtTime(1400,t+.025),a.type="bandpass",a.frequency.setValueAtTime(1800,t),a.Q.setValueAtTime(3,t);var i=.12*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.025),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.03)}},{key:"playSelect",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="sine",n.frequency.setValueAtTime(920,t),n.frequency.exponentialRampToValueAtTime(1480,t+.035),n.frequency.exponentialRampToValueAtTime(1100,t+.07);var a=.28*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.003),r.gain.exponentialRampToValueAtTime(.001,t+.07),n.connect(r),r.connect(e.destination);var i=e.createOscillator(),o=e.createGain();i.type="triangle",i.frequency.setValueAtTime(460,t),i.frequency.exponentialRampToValueAtTime(320,t+.05);var s=.15*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(s,t+.004),o.gain.exponentialRampToValueAtTime(.001,t+.05),i.connect(o),o.connect(e.destination),n.start(t),i.start(t),n.stop(t+.08),i.stop(t+.06)}},{key:"playBack",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(750,t),n.frequency.exponentialRampToValueAtTime(260,t+.015);var a=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02);var i=e.createOscillator(),o=e.createGain(),s=e.createBiquadFilter();i.type="sine",i.frequency.setValueAtTime(540,t),i.frequency.exponentialRampToValueAtTime(210,t+.085),s.type="lowpass",s.frequency.setValueAtTime(1200,t),s.frequency.exponentialRampToValueAtTime(360,t+.09),s.Q.setValueAtTime(1.8,t);var l=.28*this.volume;o.gain.setValueAtTime(0,t),o.gain.linearRampToValueAtTime(l,t+.004),o.gain.exponentialRampToValueAtTime(1e-4,t+.095),i.connect(s),s.connect(o),o.connect(e.destination);var u=e.createOscillator(),c=e.createGain();u.type="sine",u.frequency.setValueAtTime(230,t),u.frequency.exponentialRampToValueAtTime(95,t+.095);var d=.18*this.volume;c.gain.setValueAtTime(0,t),c.gain.linearRampToValueAtTime(d,t+.005),c.gain.exponentialRampToValueAtTime(1e-4,t+.1),u.connect(c),c.connect(e.destination),i.start(t),u.start(t),i.stop(t+.1),u.stop(t+.11)}},{key:"playModalOpen",value:function(e){var t=this,n=e.currentTime,r=e.createBiquadFilter();if(r.type="lowpass",r.frequency.setValueAtTime(1100,n),r.Q.setValueAtTime(.7,n),r.connect(e.destination),this.noiseBuffer){var a=e.createBufferSource();a.buffer=this.noiseBuffer;var i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(450,n),i.frequency.exponentialRampToValueAtTime(700,n+.1),i.Q.setValueAtTime(1.2,n);var o=e.createGain(),s=.045*this.volume;o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.03),o.gain.exponentialRampToValueAtTime(1e-4,n+.18),a.connect(i),i.connect(o),o.connect(r),a.start(n),a.stop(n+.19)}[{freqStart:370,freqEnd:392,startOffset:0,dur:.22,vol:.14},{freqStart:554,freqEnd:587.33,startOffset:.022,dur:.24,vol:.12},{freqStart:740,freqEnd:783.99,startOffset:.045,dur:.2,vol:.08}].forEach(function(a){var i=e.createOscillator(),o=e.createGain();i.type="sine";var s=n+a.startOffset;i.frequency.setValueAtTime(a.freqStart,s),i.frequency.exponentialRampToValueAtTime(a.freqEnd,s+.06);var l=t.volume*a.vol;o.gain.setValueAtTime(0,s),o.gain.linearRampToValueAtTime(l,s+.022),o.gain.exponentialRampToValueAtTime(1e-4,s+a.dur),i.connect(o),o.connect(r),i.start(s),i.stop(s+a.dur+.01)})}},{key:"playFolderOpen",value:function(e){var t=this,n=e.currentTime;if(this.noiseBuffer){var r=e.createBufferSource();r.buffer=this.noiseBuffer;var a=e.createBiquadFilter();a.type="bandpass",a.frequency.setValueAtTime(350,n),a.frequency.exponentialRampToValueAtTime(2400,n+.12),a.frequency.exponentialRampToValueAtTime(600,n+.28),a.Q.setValueAtTime(3.5,n);var i=e.createGain(),o=.2*this.volume;i.gain.setValueAtTime(0,n),i.gain.linearRampToValueAtTime(o,n+.08),i.gain.exponentialRampToValueAtTime(1e-4,n+.28),r.connect(a),a.connect(i),i.connect(e.destination),r.start(n),r.stop(n+.3)}[659.25,987.77,1318.5].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(.85*r,n),i.frequency.exponentialRampToValueAtTime(r,n+.09);var s=.12*t.volume/(a+1);o.gain.setValueAtTime(0,n),o.gain.linearRampToValueAtTime(s,n+.04),o.gain.exponentialRampToValueAtTime(1e-4,n+.35),i.connect(o),o.connect(e.destination),i.start(n),i.stop(n+.36)})}},{key:"playScroll",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="triangle",n.frequency.setValueAtTime(1400,t),n.frequency.exponentialRampToValueAtTime(800,t+.018),a.type="bandpass",a.frequency.setValueAtTime(1200,t),a.Q.setValueAtTime(2,t);var i=.16*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.018),n.connect(a),a.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.02)}},{key:"playBoundary",value:function(e){var t=e.currentTime,n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(450,t),n.frequency.exponentialRampToValueAtTime(180,t+.06),n.Q.setValueAtTime(1.2,t),n.connect(e.destination);var r=e.createOscillator(),a=e.createGain();r.type="sine",r.frequency.setValueAtTime(210,t),r.frequency.exponentialRampToValueAtTime(85,t+.055);var i=.17*this.volume;a.gain.setValueAtTime(0,t),a.gain.linearRampToValueAtTime(i,t+.003),a.gain.exponentialRampToValueAtTime(1e-4,t+.065),r.connect(a),a.connect(n),r.start(t),r.stop(t+.07);var o=e.createOscillator(),s=e.createGain();o.type="triangle",o.frequency.setValueAtTime(110,t),o.frequency.exponentialRampToValueAtTime(55,t+.045);var l=.11*this.volume;s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(l,t+.002),s.gain.exponentialRampToValueAtTime(1e-4,t+.05),o.connect(s),s.connect(n),o.start(t),o.stop(t+.055)}},{key:"playNotification",value:function(e){var t=this,n=e.currentTime;[{f:880,start:0,dur:.22,vol:.25},{f:1320,start:.08,dur:.35,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.f,n+r.start);var o=t.volume*r.vol;i.gain.setValueAtTime(0,n+r.start),i.gain.linearRampToValueAtTime(o,n+r.start+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.start+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.start),a.stop(n+r.start+r.dur)})}},{key:"playAchievement",value:function(e){var t=this,n=e.currentTime;[{freq:739.99,time:0,dur:.15},{freq:1108.73,time:.08,dur:.55}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine",a.frequency.setValueAtTime(r.freq,n+r.time);var o=.3*t.volume;i.gain.setValueAtTime(0,n+r.time),i.gain.linearRampToValueAtTime(o,n+r.time+.01),i.gain.exponentialRampToValueAtTime(1e-4,n+r.time+r.dur),a.connect(i),i.connect(e.destination),a.start(n+r.time),a.stop(n+r.time+r.dur)}),[1479.98,1864.66,2217.46,2959.96].forEach(function(r,a){var i=e.createOscillator(),o=e.createGain();i.type="sine",i.frequency.setValueAtTime(r,n+.12);var s=.22*t.volume/(a+1);o.gain.setValueAtTime(0,n+.12),o.gain.linearRampToValueAtTime(s,n+.14),o.gain.exponentialRampToValueAtTime(1e-4,n+.85),i.connect(o),o.connect(e.destination),i.start(n+.12),i.stop(n+.9)})}},{key:"playToastSuccess",value:function(e){var t=this,n=e.currentTime;[{f:739.99,delay:0,dur:.2,vol:.24},{f:932.33,delay:.04,dur:.22,vol:.26},{f:1108.73,delay:.08,dur:.42,vol:.3}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.008),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastInfo",value:function(e){var t=this,n=e.currentTime;[{f:880,delay:0,dur:.22,vol:.24},{f:1318.5,delay:.045,dur:.3,vol:.26},{f:440,delay:0,dur:.15,vol:.12}].forEach(function(r){var a=e.createOscillator(),i=e.createGain();a.type="sine";var o=n+r.delay;a.frequency.setValueAtTime(r.f,o);var s=t.volume*r.vol;i.gain.setValueAtTime(0,o),i.gain.linearRampToValueAtTime(s,o+.006),i.gain.exponentialRampToValueAtTime(1e-4,o+r.dur),a.connect(i),i.connect(e.destination),a.start(o),a.stop(o+r.dur+.02)})}},{key:"playToastWarning",value:function(e){var t=this,n=e.currentTime;[{f:554.37,delay:0,dur:.06,vol:.25},{f:466.16,delay:.075,dur:.12,vol:.26}].forEach(function(r){var a=e.createOscillator(),i=e.createGain(),o=e.createBiquadFilter();a.type="triangle",o.type="bandpass",o.frequency.setValueAtTime(900,n+r.delay),o.Q.setValueAtTime(2.2,n+r.delay);var s=n+r.delay;a.frequency.setValueAtTime(r.f,s);var l=t.volume*r.vol;i.gain.setValueAtTime(0,s),i.gain.linearRampToValueAtTime(l,s+.005),i.gain.exponentialRampToValueAtTime(1e-4,s+r.dur),a.connect(o),o.connect(i),i.connect(e.destination),a.start(s),a.stop(s+r.dur+.01)})}},{key:"playToastError",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain(),a=e.createBiquadFilter();n.type="sawtooth",n.frequency.setValueAtTime(392,t),n.frequency.exponentialRampToValueAtTime(220,t+.12),a.type="lowpass",a.frequency.setValueAtTime(650,t),a.frequency.exponentialRampToValueAtTime(200,t+.12),a.Q.setValueAtTime(2,t);var i=.24*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(i,t+.005),r.gain.exponentialRampToValueAtTime(1e-4,t+.13),n.connect(a),a.connect(r),r.connect(e.destination);var o=e.createOscillator(),s=e.createGain();o.type="sine",o.frequency.setValueAtTime(140,t),o.frequency.exponentialRampToValueAtTime(60,t+.15),s.gain.setValueAtTime(0,t),s.gain.linearRampToValueAtTime(.18*this.volume,t+.005),s.gain.exponentialRampToValueAtTime(1e-4,t+.15),o.connect(s),s.connect(e.destination),n.start(t),o.start(t),n.stop(t+.14),o.stop(t+.16)}},{key:"playToggle",value:function(e){var t=e.currentTime,n=e.createOscillator(),r=e.createGain();n.type="triangle",n.frequency.setValueAtTime(1100,t),n.frequency.exponentialRampToValueAtTime(1600,t+.02);var a=.18*this.volume;r.gain.setValueAtTime(0,t),r.gain.linearRampToValueAtTime(a,t+.002),r.gain.exponentialRampToValueAtTime(1e-4,t+.03),n.connect(r),r.connect(e.destination),n.start(t),n.stop(t+.035)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function My(e){Mh.play(e)}function Mv(){return Mh.getIsMuted()}function Mg(){return Mh.toggleMute()}function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Mx(e,t,n[t])})}return e}function Mj(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function MS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||MO(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ME(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||MO(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MO(e,t){if(e){if("string"==typeof e)return Mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mb(e,t)}}var Mk={type:"spring",stiffness:560,damping:34,mass:.7};function MA(e,t){return e.find(function(e){return e.id===t})}function MD(e,t){return null==e?void 0:e.operators.find(function(e){return e.value===t})}function MP(e){var t,n,r=e.anchorKey,a=e.label,i=e.onClose,o=e.children,s=g.useRef(null),l=An(),u=MS(g.useState(null),2),c=u[0],d=u[1],f=MS(g.useState(!1),2),p=f[0],m=f[1],h=MS(g.useState(null),2),y=h[0],b=h[1];g.useLayoutEffect(function(){var e=document.querySelector('[data-fb-anchor="'.concat(r,'"]'));d(e),m(!!(null==e?void 0:e.closest(".dark")))},[r]);var x=g.useRef(r);return x.current=r,g.useEffect(function(){return function(){var e;null==(e=document.querySelector('[data-fb-anchor="'.concat(x.current,'"]')))||e.focus()}},[]),g.useLayoutEffect(function(){if(c){var e=function(){var e=s.current;if(e){var t=c.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight,a=t.left,i=t.bottom+6;a=Math.max(8,a=Math.min(a,window.innerWidth-n-8)),i+r>window.innerHeight-8&&(i=t.top-6-r),b({top:i,left:a})}};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[c]),g.useEffect(function(){var e=function(e){!s.current||s.current.contains(e.target)||c&&c.contains(e.target)||i()},t=function(e){"Escape"===e.key&&(e.stopPropagation(),i())};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t,!0)}},[c,i]),(0,t1.createPortal)((0,v.jsx)("div",{className:p?"dark":"",style:{display:"contents"},children:(0,v.jsx)(mq.div,{ref:s,role:"dialog","aria-label":a,initial:!l&&{opacity:0,y:-3,scale:.985},animate:{opacity:1,y:0,scale:1},transition:{duration:.12,ease:[.2,.8,.2,1]},style:{position:"fixed",top:null!=(t=null==y?void 0:y.top)?t:-9999,left:null!=(n=null==y?void 0:y.left)?n:-9999,zIndex:60},className:"min-w-[13rem] max-w-[18rem] overflow-hidden rounded-lg border border-[var(--fb-border)] bg-[var(--fb-bg-surface)] shadow-[0_10px_30px_-8px_rgba(0,0,0,0.25)]",children:o})}),document.body)}function MC(e){var t=e.items,n=e.multi,r=e.loading,a=e.error,i=e.searchable,o=e.placeholder,s=e.onQuery,l=e.onPick,u=e.onRetry,c=e.ariaLabel,d=MS(g.useState(""),2),f=d[0],p=d[1],m=MS(g.useState(0),2),h=m[0],y=m[1],b=g.useId(),x=g.useRef(null),w=g.useRef(null),j=g.useMemo(function(){if(s)return t;var e=f.trim().toLowerCase();return e?t.filter(function(t){return t.label.toLowerCase().includes(e)}):t},[t,f,s]);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=x.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]),g.useEffect(function(){y(function(e){return Math.min(e,Math.max(0,j.length-1))})},[j.length]),g.useEffect(function(){var e,t=null==(e=w.current)?void 0:e.querySelector('[data-idx="'.concat(h,'"]'));null==t||t.scrollIntoView({block:"nearest"})},[h]);var S=function(e){var t=j[e];t&&l(t.value)},E=function(e){"ArrowDown"===e.key?(e.preventDefault(),y(function(e){return Math.min(e+1,j.length-1)})):"ArrowUp"===e.key?(e.preventDefault(),y(function(e){return Math.max(e-1,0)})):"Home"===e.key?(e.preventDefault(),y(0)):"End"===e.key?(e.preventDefault(),y(j.length-1)):"Enter"===e.key&&(e.preventDefault(),S(h))};return(0,v.jsxs)("div",{children:[(void 0===i||i)&&(0,v.jsx)("div",{className:"border-b border-[var(--fb-border)] p-1.5",children:(0,v.jsx)("input",{ref:x,role:"combobox","aria-expanded":"true","aria-controls":b,"aria-activedescendant":j[h]?"".concat(b,"-").concat(h):void 0,"aria-label":c,value:f,onChange:function(e){p(e.target.value),null==s||s(e.target.value)},onKeyDown:E,placeholder:void 0===o?"Rechercher…":o,className:"w-full bg-transparent px-1.5 py-1 text-[13px] text-[var(--fb-fg)] outline-none placeholder:text-[var(--fb-fg-subtle)]",autoComplete:"off",spellCheck:!1})}),(0,v.jsxs)("ul",{ref:w,id:b,role:"listbox","aria-multiselectable":n||void 0,"aria-label":c,className:"max-h-60 overflow-y-auto p-1",onKeyDown:E,tabIndex:-1,children:[r&&(0,v.jsxs)("li",{className:"flex items-center gap-2 px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)(ML,{})," Chargement des options…"]}),a&&!r&&(0,v.jsxs)("li",{className:"px-2 py-2.5 text-[13px]",children:[(0,v.jsx)("p",{className:"text-[var(--fb-fg-muted)]",children:"Impossible de charger les options."}),(0,v.jsx)("button",{type:"button",onClick:u,className:"mt-1 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-[var(--fb-fg)] underline decoration-[var(--fb-fg-subtle)] underline-offset-2 hover:decoration-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60",children:"R\xe9essayer"})]}),!r&&!a&&0===j.length&&(0,v.jsx)("li",{className:"px-2 py-3 text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun r\xe9sultat"}),!r&&!a&&j.map(function(e,t){var r=t===h;return(0,v.jsxs)("li",{id:"".concat(b,"-").concat(t),"data-idx":t,role:"option","aria-selected":n?!!e.selected:r,onMouseEnter:function(){return y(t)},onClick:function(){return l(e.value)},className:["flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-[var(--fb-fg)]",r?"bg-[var(--fb-bg-active)]":"bg-transparent"].join(" "),children:[n&&(0,v.jsx)("span",{"aria-hidden":!0,className:["flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-[4px] border transition-colors",e.selected?"border-[var(--fb-border-strong)] bg-[var(--fb-border-strong)] text-[var(--fb-fg-on-accent)]":"border-[var(--fb-border)]"].join(" "),children:e.selected&&(0,v.jsx)(M_,{})}),e.glyph&&(0,v.jsx)("span",{className:"shrink-0","aria-hidden":!0,children:e.glyph}),(0,v.jsx)("span",{className:"truncate",children:e.label}),!n&&e.selected&&(0,v.jsx)("span",{className:"ml-auto text-[var(--fb-fg-muted)]",children:(0,v.jsx)(M_,{})})]},e.value)})]})]})}function MT(e){var t=e.inputType,n=e.arity,r=e.values,a=e.onCommit,i=e.ariaLabel,o=e.rangeLabels,s=void 0===o?["Min","Max"]:o,l=e.placeholder,u=g.useRef(null);g.useEffect(function(){var e=requestAnimationFrame(function(){var e;return null==(e=u.current)?void 0:e.focus()});return function(){return cancelAnimationFrame(e)}},[]);var c="w-full rounded-md border border-[var(--fb-border)] bg-transparent px-2 py-1.5 text-[13px] text-[var(--fb-fg)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/60";if(2===n){var d=MS(r,2),f=d[0],p=void 0===f?"":f,m=d[1],h=void 0===m?"":m;return(0,v.jsxs)("div",{className:"flex items-start gap-2 p-2",children:[(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[0]}),(0,v.jsx)("input",{ref:u,type:t,value:p,"aria-label":"".concat(i," — ").concat(s[0]),onChange:function(e){return a([e.target.value,h])},className:c})]}),(0,v.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,v.jsx)("span",{className:"text-[11px] text-[var(--fb-fg-muted)]",children:s[1]}),(0,v.jsx)("input",{type:t,value:h,"aria-label":"".concat(i," — ").concat(s[1]),onChange:function(e){return a([p,e.target.value])},className:c})]})]})}var y=MS(r,1)[0];return(0,v.jsx)("div",{className:"p-2",children:(0,v.jsx)("input",{ref:u,type:t,value:void 0===y?"":y,placeholder:l,"aria-label":i,onChange:function(e){return a([e.target.value])},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur()},className:c})})}function MN(e){var t=e.role,n=e.children,r=e.onOpen,a=e.registerRef,i=e.tabIndex,o=e.ariaLabel,s=e.anchorKey,l=e.onFocus,u=e.muted,c=e.active,d=e.flash,f=e.disabled;return(0,v.jsx)("button",{type:"button",ref:a,tabIndex:i,"aria-label":o,"aria-haspopup":"listbox","aria-expanded":c,"aria-disabled":f||void 0,"data-fb-anchor":s,onFocus:l,onClick:r,"data-flash":d?"":void 0,className:["relative flex items-center gap-1 whitespace-nowrap px-2 py-[4px] text-[13px] leading-[1.35] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70",f?"cursor-default":"active:scale-[0.98]",u?"text-[var(--fb-fg-muted)]":"text-[var(--fb-fg)]",c?"bg-[var(--fb-bg-active)]":f?"":"hover:bg-[var(--fb-bg-hover)]","field"===t?"rounded-l-md font-medium":"","data-[flash]:animate-[fb-flash_620ms_ease-out]"].join(" "),children:n})}function MM(e){var t,n,r=e.fields,a=e.value,i=e.onChange,o=e.addLabel,s=void 0===o?"Filtre":o,l=e.emptyLabel,u=void 0===l?"Ajouter un filtre":l,c=e.clearLabel,d=e.allowDuplicateFields,f=void 0!==d&&d,p=e.disabled,m=e.className,h=e["aria-label"],y=An(),b=MS(g.useState(null),2),x=b[0],w=b[1],j=MS(g.useState(null),2),S=j[0],E=j[1],O=g.useRef([]),k=MS(g.useState(0),2),A=k[0],D=k[1],P=MS(g.useState({}),2),C=P[0],T=P[1],N=[];a.forEach(function(e){N.push({filterId:e.id,kind:"field"}),N.push({filterId:e.id,kind:"operator"}),N.push({filterId:e.id,kind:"value"}),N.push({filterId:e.id,kind:"remove"})}),N.push({kind:"add"}),g.useEffect(function(){A>N.length-1&&D(N.length-1)},[N.length,A]);var M=function(e){var t,n=Math.max(0,Math.min(e,N.length-1));D(n),null==(t=O.current[n])||t.focus()},R=function(e){var t,n,o=MA(r,e);if(o){var s=o.operators[0],l={id:"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"f_".concat(Math.random().toString(36).slice(2,9)),field:e,operator:null!=(t=null==s?void 0:s.value)?t:"is",values:[]};i(ME(a).concat([l])),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:l.id})}},I=function(e,t){var n,o=MA(r,t),s=null==o?void 0:o.operators[0];i(a.map(function(n){var r;return n.id===e?Mj(Mw({},n),{field:t,operator:null!=(r=null==s?void 0:s.value)?r:n.operator,values:[]}):n})),w((null!=(n=null==s?void 0:s.arity)?n:1)===0?null:{kind:"value",filterId:e})},_=function(e,t){var n,o,s=a.find(function(t){return t.id===e}),l=MD(MA(r,null!=(n=null==s?void 0:s.field)?n:""),t),u=null!=(o=null==l?void 0:l.arity)?o:1;i(a.map(function(n){if(n.id!==e)return n;var r=0===u?[]:(null==l?void 0:l.multi)?n.values:n.values.slice(0,u);return Mj(Mw({},n),{operator:t,values:r})})),w(0===u?null:{kind:"value",filterId:e})},L=function(e,t,n){i(a.map(function(r){if(r.id!==e)return r;if(!n)return Mj(Mw({},r),{values:[t]});var a=r.values.includes(t);return Mj(Mw({},r),{values:a?r.values.filter(function(e){return e!==t}):ME(r.values).concat([t])})})),E(e),window.setTimeout(function(){return E(function(t){return t===e?null:t})},640),n||w(null)},F=function(e,t){i(a.map(function(n){return n.id===e?Mj(Mw({},n),{values:t}):n}))},B=function(e,t){i(a.filter(function(t){return t.id!==e})),w(null);var n=Math.max(0,(null!=t?t:A)-1);requestAnimationFrame(function(){return M(n)})},V=g.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.loadOptions&&(T(function(t){var n,r;return Mj(Mw({},t),Mx({},e.id,{loading:!0,error:!1,options:null!=(n=null==(r=t[e.id])?void 0:r.options)?n:[]}))}),e.loadOptions(t).then(function(t){return T(function(n){return Mj(Mw({},n),Mx({},e.id,{loading:!1,error:!1,options:t}))})}).catch(function(){return T(function(t){return Mj(Mw({},t),Mx({},e.id,{loading:!1,error:!0,options:[]}))})}))},[]);g.useEffect(function(){if(x&&"value"===x.kind){var e,t,n=a.find(function(e){return e.id===x.filterId}),i=MA(r,null!=(e=null==n?void 0:n.field)?e:"");(null==i?void 0:i.loadOptions)&&!(null==(t=C[i.id])?void 0:t.options.length)&&V(i)}},[x]);var z=0,W=function(){var e=z++;return{idx:e,register:function(t){return O.current[e]=t},tabIndex:e===A?0:-1,onFocus:function(){return D(e)}}},U=x?"add"===x.kind?"add":"".concat(x.filterId,":").concat(x.kind):null,$=function(){if(!x)return"";if("add"===x.kind)return u;if("field"===x.kind)return"Modifier le champ du filtre";if("operator"===x.kind)return"Choisir un op\xe9rateur";var e,t=a.find(function(e){return e.id===x.filterId}),n=MA(r,null!=(e=null==t?void 0:t.field)?e:"");return n?"Valeur pour ".concat(n.label):"Valeur du filtre"}(),H=a.length>1;return(0,v.jsxs)("div",{role:"toolbar","aria-label":void 0===h?"Filtres":h,"aria-orientation":"horizontal","aria-disabled":p||void 0,onKeyDown:function(e){if(!x){var t=N.length-1;if("ArrowRight"===e.key)e.preventDefault(),M(A>=t?0:A+1);else if("ArrowLeft"===e.key)e.preventDefault(),M(A<=0?t:A-1);else if("Home"===e.key)e.preventDefault(),M(0);else if("End"===e.key)e.preventDefault(),M(t);else if("Backspace"===e.key||"Delete"===e.key){var n=N[A];(null==n?void 0:n.filterId)&&(e.preventDefault(),B(n.filterId,A))}}},className:["flex flex-wrap items-center gap-1.5",p?"pointer-events-none opacity-50":"",null!=m?m:""].join(" "),children:[(0,v.jsx)("style",{children:"\n:root {\n --fb-fg: #18181b;\n --fb-fg-muted: #71717a;\n --fb-fg-subtle: #a1a1aa;\n --fb-fg-on-accent: #ffffff;\n --fb-bg-surface: #ffffff;\n --fb-bg-chip: rgba(24, 24, 27, 0.04);\n --fb-bg-hover: rgba(24, 24, 27, 0.06);\n --fb-bg-active: rgba(24, 24, 27, 0.08);\n --fb-border: rgba(24, 24, 27, 0.09);\n --fb-border-strong: #18181b;\n --fb-accent: #3b82f6;\n --fb-accent-rgb: 59 130 246;\n}\n.dark {\n --fb-fg: #f4f4f5;\n --fb-fg-muted: #a1a1aa;\n --fb-fg-subtle: #71717a;\n --fb-fg-on-accent: #18181b;\n --fb-bg-surface: #18181b;\n --fb-bg-chip: rgba(255, 255, 255, 0.05);\n --fb-bg-hover: rgba(255, 255, 255, 0.08);\n --fb-bg-active: rgba(255, 255, 255, 0.12);\n --fb-border: rgba(255, 255, 255, 0.08);\n --fb-border-strong: #f4f4f5;\n --fb-accent: #60a5fa;\n --fb-accent-rgb: 96 165 250;\n}\n@keyframes fb-flash {\n 0% { background-color: rgb(var(--fb-accent-rgb) / 0.18); }\n 100% { background-color: transparent; }\n}\n@media (prefers-reduced-motion: reduce) {\n @keyframes fb-flash {\n 0%, 100% { background-color: transparent; }\n }\n}\n"}),(0,v.jsx)(EP,{initial:!1,mode:"popLayout",children:a.map(function(e){var t,n,a,i,o,s,l,u,c,d=MA(r,e.field),f=MD(d,e.operator),p=null!=(t=null==f?void 0:f.arity)?t:1,m=null!=(n=null==d?void 0:d.type)?n:"select",h=0===p?{text:"—",empty:!1,glyphs:[]}:"select"===m?function(e,t){if(!t.length)return{text:"Choisir…",empty:!0,glyphs:[]};var n=function(t){return null==e?void 0:e.find(function(e){return e.value===t})},r=function(e){var t,r;return null!=(t=null==(r=n(e))?void 0:r.label)?t:e},a=t.map(function(e){var t;return null==(t=n(e))?void 0:t.glyph}).filter(Boolean).slice(0,3);return 1===t.length?{text:r(t[0]),empty:!1,glyphs:a}:t.length<=3?{text:t.map(r).join(", "),empty:!1,glyphs:a}:{text:"".concat(r(t[0])," +").concat(t.length-1),empty:!1,glyphs:a}}((null==d?void 0:d.loadOptions)?null==(c=C[d.id])?void 0:c.options:null==d?void 0:d.options,e.values):function(e,t,n){if(0===t)return{text:"—",empty:!1,glyphs:[]};if(!n.some(function(e){return""!==e&&null!=e}))return{text:"Choisir une valeur…",empty:!0,glyphs:[]};var r,a,i,o=function(t){if(!t)return"…";if("date"!==e)return t;var n=new Date(t);return Number.isNaN(n.getTime())?t:n.toLocaleDateString()};return 2===t?{text:"".concat(o(null!=(a=n[0])?a:"")," – ").concat(o(null!=(i=n[1])?i:"")),empty:!1,glyphs:[]}:{text:o(null!=(r=n[0])?r:""),empty:!1,glyphs:[]}}(m,p,e.values),g=W(),b=W(),j=W(),E=W(),O=S===e.id;return(0,v.jsxs)(mq.div,{layout:!y,initial:!y&&{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:y?{opacity:0}:{opacity:0,scale:.9},transition:Mk,className:"group flex items-stretch overflow-hidden rounded-md border border-[var(--fb-border)] bg-[var(--fb-bg-chip)]",children:[(0,v.jsxs)(MN,{role:"field",registerRef:g.register,tabIndex:g.tabIndex,onFocus:g.onFocus,anchorKey:"".concat(e.id,":field"),active:(null==x?void 0:x.kind)==="field"&&x.filterId===e.id,ariaLabel:"Champ : ".concat(null!=(a=null==d?void 0:d.label)?a:e.field,". Modifier le champ."),onOpen:function(){return w({kind:"field",filterId:e.id})},children:[(null==d?void 0:d.icon)&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]","aria-hidden":!0,children:d.icon}),null!=(i=null==d?void 0:d.label)?i:e.field]}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsx)(MN,{role:"operator",registerRef:b.register,tabIndex:b.tabIndex,onFocus:b.onFocus,anchorKey:"".concat(e.id,":operator"),muted:!0,active:(null==x?void 0:x.kind)==="operator"&&x.filterId===e.id,ariaLabel:"Op\xe9rateur : ".concat(null!=(o=null==f?void 0:f.label)?o:e.operator,". Modifier l'op\xe9rateur."),onOpen:function(){return w({kind:"operator",filterId:e.id})},children:null!=(s=null==f?void 0:f.label)?s:e.operator}),(0,v.jsx)("span",{"aria-hidden":!0,className:"w-px self-stretch bg-[var(--fb-border)]"}),(0,v.jsxs)(MN,{role:"value",registerRef:j.register,tabIndex:j.tabIndex,onFocus:j.onFocus,anchorKey:"".concat(e.id,":value"),muted:h.empty||0===p,disabled:0===p,active:(null==x?void 0:x.kind)==="value"&&x.filterId===e.id,flash:O,ariaLabel:0===p?"Valeur : aucune valeur requise pour l'op\xe9rateur ".concat(null!=(l=null==f?void 0:f.label)?l:e.operator,"."):"Valeur : ".concat(h.empty?"aucune s\xe9lectionn\xe9e":h.text,". Modifier la valeur."),onOpen:function(){0!==p&&w({kind:"value",filterId:e.id})},children:[!h.empty&&h.glyphs.length>0&&(0,v.jsx)("span",{className:"flex shrink-0 items-center gap-0.5","aria-hidden":!0,children:h.glyphs.map(function(e,t){return(0,v.jsx)("span",{className:"flex items-center",children:e},t)})}),(0,v.jsx)("span",{className:"max-w-[12rem] truncate font-medium text-[var(--fb-fg)]",children:h.empty?(0,v.jsx)("span",{className:"font-normal text-[var(--fb-fg-subtle)]",children:h.text}):h.text})]}),(0,v.jsx)("button",{type:"button",ref:E.register,tabIndex:E.tabIndex,onFocus:E.onFocus,onClick:function(){return B(e.id,E.idx)},"aria-label":"Supprimer le filtre ".concat(null!=(u=null==d?void 0:d.label)?u:e.field),className:"flex items-center px-1.5 text-[var(--fb-fg-subtle)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:(0,v.jsx)(MI,{})})]},e.id)})}),(t=W(),n=0===a.length,(0,v.jsxs)("button",{type:"button",ref:t.register,tabIndex:t.tabIndex,onFocus:t.onFocus,"data-fb-anchor":"add","aria-label":n?u:s,"aria-haspopup":"listbox","aria-expanded":(null==x?void 0:x.kind)==="add",onClick:function(){return w({kind:"add"})},className:"flex items-center gap-1 rounded-md border border-dashed border-[var(--fb-border)] px-2 py-[6px] text-[13px] font-medium leading-none text-[var(--fb-fg-muted)] transition-colors hover:border-[var(--fb-border-strong)]/40 hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70 active:scale-[0.98]",children:[(0,v.jsx)(MR,{}),n?u:s]})),H&&(0,v.jsx)("button",{type:"button",onClick:function(){i([]),w(null),requestAnimationFrame(function(){return M(0)})},className:"ml-0.5 rounded-md px-2 py-[6px] text-[13px] leading-none text-[var(--fb-fg-muted)] transition-colors hover:bg-[var(--fb-bg-hover)] hover:text-[var(--fb-fg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--fb-accent)]/70",children:void 0===c?"R\xe9initialiser":c}),x&&U&&(0,v.jsx)(MP,{anchorKey:U,label:$,onClose:function(){return w(null)},children:function(){if(!x)return null;if("add"===x.kind||"field"===x.kind){var e,t,n,i,o,s="field"===x.kind?x.filterId:null,l=new Set(a.filter(function(e){return e.id!==s}).map(function(e){return e.field})),u=r.filter(function(e){return f||!l.has(e.id)}).map(function(e){return{value:e.id,label:e.label,glyph:e.icon}});return(0,v.jsx)(MC,{ariaLabel:$,items:u,multi:!1,onPick:function(e){return"add"===x.kind?R(e):I(x.filterId,e)}},null!=U?U:void 0)}var c=a.find(function(e){return e.id===x.filterId}),d=MA(r,null!=(e=null==c?void 0:c.field)?e:"");if(!c||!d)return null;if("operator"===x.kind){var p=d.operators.map(function(e){return{value:e.value,label:e.label,selected:e.value===c.operator}});return(0,v.jsx)(MC,{ariaLabel:$,items:p,multi:!1,searchable:p.length>6,onPick:function(e){return _(c.id,e)}},null!=U?U:void 0)}var m=MD(d,c.operator),h=null!=(t=null==m?void 0:m.arity)?t:1;if(0===h)return null;var y=null!=(n=d.type)?n:"select";if("text"===y||"number"===y||"date"===y)return(0,v.jsx)(MT,{inputType:y,arity:h,values:c.values,onCommit:function(e){return F(c.id,e)},ariaLabel:$,rangeLabels:"date"===y?["Du","Au"]:["Min","Max"],placeholder:"text"===y?"Rechercher…":void 0},null!=U?U:void 0);var g=!!(null==m?void 0:m.multi),b=d.loadOptions?C[d.id]:void 0,w=(d.loadOptions?null!=(i=null==b?void 0:b.options)?i:[]:null!=(o=d.options)?o:[]).map(function(e){return{value:e.value,label:e.label,glyph:e.glyph,selected:c.values.includes(e.value)}});return(0,v.jsx)(MC,{ariaLabel:$,items:w,multi:g,loading:null==b?void 0:b.loading,error:null==b?void 0:b.error,onQuery:d.loadOptions?function(e){return V(d,e)}:void 0,onRetry:function(){return V(d)},onPick:function(e){return L(c.id,e,g)}},null!=U?U:void 0)}()})]})}function MR(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M6 2.5v7M2.5 6h7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function MI(){return(0,v.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}function M_(){return(0,v.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none","aria-hidden":!0,children:(0,v.jsx)("path",{d:"M2.5 6.2l2.2 2.3L9.5 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function ML(){return(0,v.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":!0,className:"animate-spin",children:[(0,v.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),(0,v.jsx)("path",{d:"M12.5 7A5.5 5.5 0 0 0 7 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}let MF=MM;var MB={text:[{value:"contains",label:"contient"},{value:"not_contains",label:"ne contient pas"},{value:"equals",label:"est exactement"},{value:"starts_with",label:"commence par"},{value:"is_empty",label:"est vide",arity:0},{value:"is_not_empty",label:"n'est pas vide",arity:0}],number:[{value:"eq",label:"="},{value:"neq",label:"≠"},{value:"gt",label:">"},{value:"gte",label:"≥"},{value:"lt",label:"<"},{value:"lte",label:"≤"},{value:"between",label:"entre",arity:2}],date:[{value:"on",label:"le"},{value:"before",label:"avant le"},{value:"after",label:"apr\xe8s le"},{value:"between",label:"entre",arity:2}],boolean:[{value:"is",label:"est"}],select:[{value:"is",label:"est"},{value:"is_not",label:"n'est pas"},{value:"is_any_of",label:"est l'un de",multi:!0}]},MV=[{value:"true",label:"Oui"},{value:"false",label:"Non"}];function Mz(e,t){var n=function(e){var n,r;return null!=(n=null==(r=t.find(function(t){return t.field===e}))?void 0:r.values)?n:[]};return e.fields.filter(function(e){return!e.dependsOn||n(e.dependsOn).length>0}).map(function(e){if("boolean"===e.type)return{id:e.id,label:e.label,icon:e.icon,type:"select",operators:null!=(a=e.operators)?a:MB.boolean,options:null!=(i=e.options)?i:MV};var t,r,a,i,o=null!=(t=e.operators)?t:MB[e.type];if("select"!==e.type)return{id:e.id,label:e.label,icon:e.icon,type:e.type,operators:o};var s=e.dependsOn?n(e.dependsOn):[];return e.optionsByParent?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:s.flatMap(function(t){var n,r;return null!=(n=null==(r=e.optionsByParent)?void 0:r[t])?n:[]})}:e.loadOptions?{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,loadOptions:function(t){return e.loadOptions(t,{parentValues:s})}}:{id:e.id,label:e.label,icon:e.icon,type:"select",operators:o,options:null!=(r=e.options)?r:[]}})}function MW(e,t){for(var n=t,r=0;r<e.fields.length&&"break"!==function(){var t=!1,r=n.filter(function(r){var a=e.fields.find(function(e){return e.id===r.field});if(!(null==a?void 0:a.dependsOn))return!0;var i=n.find(function(e){return e.field===a.dependsOn}),o=!!i&&i.values.length>0;return o||(t=!0),o});if(n=r.map(function(n){var a,i=e.fields.find(function(e){return e.id===n.field});if(!(null==i?void 0:i.dependsOn)||!i.optionsByParent)return n;var o=r.find(function(e){return e.field===i.dependsOn}),s=new Set((null!=(a=null==o?void 0:o.values)?a:[]).flatMap(function(e){var t,n,r;return null!=(t=null==(r=i.optionsByParent)||null==(n=r[e])?void 0:n.map(function(e){return e.value}))?t:[]})),l=n.values.filter(function(e){return s.has(e)});return l.length!==n.values.length&&(t=!0),l.length===n.values.length?n:Mj(Mw({},n),{values:l})}),!t)return"break"}();r++);return n}function MU(e,t,n){return{fields:g.useMemo(function(){return Mz(e,t)},[e,t]),onChange:g.useCallback(function(t){return n(MW(e,t))},[e,n])}}function M$(e,t,n,r){var a=function(e){return null==e?"":String(e)};switch(t){case"is_empty":return""===a(n);case"is_not_empty":return""!==a(n);case"contains":return a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"not_contains":return!a(n).toLowerCase().includes(a(r[0]).toLowerCase());case"starts_with":return a(n).toLowerCase().startsWith(a(r[0]).toLowerCase());case"equals":return a(n).toLowerCase()===a(r[0]).toLowerCase();case"is":return a(n)===r[0];case"is_not":return a(n)!==r[0];case"is_any_of":return r.includes(a(n));case"eq":return Number(n)===Number(r[0]);case"neq":return Number(n)!==Number(r[0]);case"gt":return Number(n)>Number(r[0]);case"gte":return Number(n)>=Number(r[0]);case"lt":return Number(n)<Number(r[0]);case"lte":return Number(n)<=Number(r[0]);case"between":var i=MS(r,2),o=i[0],s=i[1];if("date"===e){var l=new Date(a(n)).getTime(),u=!o||l>=new Date(o).getTime(),c=!s||l<=new Date(s).getTime();return u&&c}var d=Number(n),f=void 0===o||""===o||d>=Number(o),p=void 0===s||""===s||d<=Number(s);return f&&p;case"on":return a(n).slice(0,10)===a(r[0]).slice(0,10);case"before":return new Date(a(n)).getTime()<new Date(r[0]).getTime();case"after":return new Date(a(n)).getTime()>new Date(r[0]).getTime();default:return!0}}function MH(e,t,n,r){return Array.isArray(n)?n.some(function(n){return M$(e,t,n,r)}):M$(e,t,n,r)}function MG(e,t){return"is_empty"===e||"is_not_empty"===e||t.some(function(e){return""!==e&&void 0!==e})}function Mq(e,t,n,r){return t.every(function(t){if(!MG(t.operator,t.values))return!0;var a=n.fields.find(function(e){return e.id===t.field}),i=null==a?void 0:a.type;return MH("boolean"===i||void 0===i?"select":i,t.operator,r(e,t.field),t.values)})}var MY=["\xe9lections","corruption","budget","diplomatie","sant\xe9","\xe9ducation","climat","s\xe9curit\xe9"],MK={fields:[{id:"status",label:"Statut",type:"select",options:[{value:"draft",label:"Brouillon"},{value:"published",label:"Publi\xe9"},{value:"archived",label:"Archiv\xe9"}]},{id:"category",label:"Cat\xe9gorie",type:"select",options:[{value:"politique",label:"Politique"},{value:"sport",label:"Sport"},{value:"economie",label:"\xc9conomie"},{value:"culture",label:"Culture"}]},{id:"subcategory",label:"Sous-cat\xe9gorie",type:"select",dependsOn:"category",optionsByParent:{politique:[{value:"national",label:"National"},{value:"international",label:"International"},{value:"institutions",label:"Institutions"}],sport:[{value:"football",label:"Football"},{value:"basketball",label:"Basketball"},{value:"athletisme",label:"Athl\xe9tisme"}],economie:[{value:"marches",label:"March\xe9s"},{value:"entreprises",label:"Entreprises"},{value:"emploi",label:"Emploi"}],culture:[{value:"musique",label:"Musique"},{value:"cinema",label:"Cin\xe9ma"},{value:"litterature",label:"Litt\xe9rature"}]}},{id:"tags",label:"Tags",type:"select",loadOptions:function(e){return new Promise(function(t){window.setTimeout(function(){var n=e.trim().toLowerCase();t(MY.filter(function(e){return e.toLowerCase().includes(n)}).map(function(e){return{value:e,label:e}}))},350)})}},{id:"title",label:"Titre",type:"text"},{id:"views",label:"Vues",type:"number"},{id:"publishedAt",label:"Date de publication",type:"date"},{id:"featured",label:"\xc0 la une",type:"boolean"}]},MZ=[{id:"1",title:"Le budget 2027 d\xe9voil\xe9 \xe0 l'Assembl\xe9e",status:"published",category:"politique",subcategory:"national",tags:["budget","\xe9lections"],views:4300,publishedAt:"2026-09-02",featured:!0},{id:"2",title:"Sommet r\xe9gional sur le climat \xe0 Libreville",status:"published",category:"politique",subcategory:"international",tags:["climat","diplomatie"],views:2100,publishedAt:"2026-08-20",featured:!1},{id:"3",title:"Les Panth\xe8res qualifi\xe9es pour la CAN",status:"published",category:"sport",subcategory:"football",tags:["football"],views:9800,publishedAt:"2026-09-10",featured:!0},{id:"4",title:"R\xe9forme du syst\xe8me \xe9ducatif : ce qui change",status:"draft",category:"politique",subcategory:"institutions",tags:["\xe9ducation"],views:120,publishedAt:"2026-09-15",featured:!1},{id:"5",title:"Les march\xe9s locaux r\xe9sistent \xe0 l'inflation",status:"published",category:"economie",subcategory:"marches",tags:["budget"],views:1560,publishedAt:"2026-07-30",featured:!1},{id:"6",title:"Festival de musique urbaine \xe0 Port-Gentil",status:"published",category:"culture",subcategory:"musique",tags:[],views:870,publishedAt:"2026-09-05",featured:!1},{id:"7",title:"Nouvelle campagne de vaccination lanc\xe9e",status:"published",category:"politique",subcategory:"national",tags:["sant\xe9"],views:3400,publishedAt:"2026-06-18",featured:!1},{id:"8",title:"Championnat national de basketball : bilan",status:"archived",category:"sport",subcategory:"basketball",tags:[],views:640,publishedAt:"2026-05-02",featured:!1}];function MX(e,t){switch(t){case"status":return e.status;case"category":return e.category;case"subcategory":return e.subcategory;case"tags":return e.tags;case"title":return e.title;case"views":return e.views;case"publishedAt":return e.publishedAt;case"featured":return e.featured;default:return}}var MQ={contains:"icontains",not_contains:"icontains",equals:"iexact",starts_with:"istartswith",is_empty:"isnull",is_not_empty:"isnull",eq:"exact",neq:"exact",gt:"gt",gte:"gte",lt:"lt",lte:"lte",on:"exact",before:"lt",after:"gt",is:"exact",is_not:"exact",is_any_of:"in"};function MJ(){var e=MS(g.useState([]),2),t=e[0],n=MU(MK,t,e[1]),r=n.fields,a=n.onChange,i=g.useMemo(function(){return MZ.filter(function(e){return Mq(e,t,MK,MX)})},[t]),o=g.useMemo(function(){return function(e){var t=new URLSearchParams,n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l,u=i.value;if(MG(u.operator,u.values)){if("between"===u.operator){var c=MS(u.values,2),d=c[0],f=c[1];d&&t.append("".concat(u.field,"__gte"),d),f&&t.append("".concat(u.field,"__lte"),f);continue}if("is_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"true");continue}if("is_not_empty"===u.operator){t.append("".concat(u.field,"__isnull"),"false");continue}var p=null!=(s=MQ[u.operator])?s:"exact",m="is_any_of"===u.operator?u.values.join(","):null!=(l=u.values[0])?l:"";t.append("".concat(u.field,"__").concat(p),m)}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t.toString()}(t)},[t]);return(0,v.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,v.jsx)(MM,{fields:r,value:t,onChange:a,"aria-label":"Filtrer les articles"}),(0,v.jsxs)("ul",{className:"flex flex-col gap-2",children:[i.map(function(e){return(0,v.jsxs)("li",{className:"rounded-md border border-[var(--fb-border)] px-3 py-2 text-[13px] text-[var(--fb-fg)]",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,v.jsx)("span",{className:"font-medium",children:e.title}),e.featured&&(0,v.jsx)("span",{className:"text-[var(--fb-fg-muted)]",children:"★ \xe0 la une"})]}),(0,v.jsxs)("div",{className:"mt-0.5 text-[12px] text-[var(--fb-fg-muted)]",children:[e.category," / ",e.subcategory," \xb7 ",e.views," vues \xb7 ",new Date(e.publishedAt).toLocaleDateString()]})]},e.id)}),0===i.length&&(0,v.jsx)("li",{className:"rounded-md border border-dashed border-[var(--fb-border)] px-3 py-4 text-center text-[13px] text-[var(--fb-fg-muted)]",children:"Aucun article ne correspond \xe0 ces filtres."})]}),(0,v.jsxs)("details",{className:"text-[12px] text-[var(--fb-fg-muted)]",children:[(0,v.jsx)("summary",{className:"cursor-pointer select-none",children:"Voir l'\xe9tat brut (\xe0 des fins p\xe9dagogiques)"}),(0,v.jsx)("p",{className:"mt-2",children:"\xc9tat `filters` produit par <FilterBar> :"}),(0,v.jsx)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:JSON.stringify(t,null,2)}),(0,v.jsx)("p",{className:"mt-2",children:"Query string \xe9quivalente (convention django-filter) :"}),(0,v.jsxs)("pre",{className:"mt-1 overflow-x-auto rounded-md bg-[var(--fb-bg-chip)] p-2",children:["?",o||"(aucun filtre actif)"]})]})]})}var M0=OK("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),M1=OK("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),M2=OK("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),M3=OK("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),M5=OK("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),M4=OK("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);function M6(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M6(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M9(e){var t,n=e.currentCategory,r=e.onSelectCategory,a=e.sortOption,i=e.onSelectSort,o=e.viewMode,s=e.onToggleViewMode,l=e.typeFilter,u=e.onSelectTypeFilter,c=M8((0,g.useState)(!1),2),d=c[0],f=c[1],p=M8((0,g.useState)(!1),2),m=p[0],h=p[1],y=[{id:"all",label:"Tout",icon:(0,v.jsx)(O6,{className:"w-3.5 h-3.5"})},{id:"documents",label:"Documents",icon:(0,v.jsx)(kc,{className:"w-3.5 h-3.5"})},{id:"images",label:"Images",icon:(0,v.jsx)(M0,{className:"w-3.5 h-3.5"})},{id:"videos",label:"Vid\xe9os",icon:(0,v.jsx)(M1,{className:"w-3.5 h-3.5"})},{id:"music",label:"Musique",icon:(0,v.jsx)(M2,{className:"w-3.5 h-3.5"})},{id:"archives",label:"Archives",icon:(0,v.jsx)(M3,{className:"w-3.5 h-3.5"})}],b=[{id:"recent",label:"Plus r\xe9cents"},{id:"oldest",label:"Plus anciens"},{id:"name_asc",label:"Nom A → Z"},{id:"name_desc",label:"Nom Z → A"},{id:"items_count",label:"Nombre d’\xe9l\xe9ments"}],x=(null==(t=b.find(function(e){return e.id===a}))?void 0:t.label)||"Plus r\xe9cents";return(0,v.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2.5 py-1 relative z-20",children:[(0,v.jsx)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:pb-0 scrollbar-none w-full sm:w-auto",children:y.map(function(e){var t=n===e.id;return(0,v.jsxs)("button",{onClick:function(){return r(e.id)},className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold whitespace-nowrap transition-all duration-200 cursor-pointer ".concat(t?"bg-emerald-500/25 text-white border border-emerald-400/80 shadow-[0_0_12px_rgba(16,185,129,0.3)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.8)]":"bg-transparent text-white/70 hover:text-white hover:bg-white/5 border border-white/10 hover:border-white/20 drop-shadow-[0_1px_1px_rgba(0,0,0,0.8)]"),children:[(0,v.jsx)("span",{className:t?"text-emerald-400":"text-white/60",children:e.icon}),(0,v.jsx)("span",{children:e.label})]},e.id)})}),(0,v.jsxs)("div",{className:"flex items-center justify-between sm:justify-end gap-1.5 sm:gap-2 w-full sm:w-auto mt-0.5 sm:mt-0",children:[(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){f(!d),h(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Tri :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[70px] sm:max-w-none",children:x})]}),(0,v.jsx)(M5,{className:"w-3 h-3 text-white/50 shrink-0"})]}),d&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-44 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:b.map(function(e){return(0,v.jsx)("button",{onClick:function(){i(e.id),f(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(a===e.id?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e.label},e.id)})})]}),(0,v.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,v.jsxs)("button",{onClick:function(){h(!m),f(!1)},className:"w-full sm:w-auto flex items-center justify-between sm:justify-start gap-1 px-2.5 py-1 rounded-lg text-[10px] sm:text-xs font-semibold bg-black/30 hover:bg-white/5 border border-white/10 hover:border-white/20 text-white/90 transition-colors cursor-pointer",children:[(0,v.jsxs)("div",{className:"flex items-center gap-1",children:[(0,v.jsx)("span",{className:"text-white/40 hidden xs:inline",children:"Type :"}),(0,v.jsx)("span",{className:"text-white font-semibold truncate max-w-[60px] sm:max-w-none",children:l})]}),(0,v.jsx)(M5,{className:"w-3 h-3 text-white/50 shrink-0"})]}),m&&(0,v.jsx)("div",{className:"absolute right-0 mt-2 w-36 py-1 rounded-lg bg-[#040d10]/95 border border-white/15 shadow-[0_10px_30px_rgba(0,0,0,0.9)] backdrop-blur-xl z-50 animate-in fade-in zoom-in-95 duration-150",children:["Tous","Dossiers","Documents","Images","Vid\xe9os","Archives"].map(function(e){return(0,v.jsx)("button",{onClick:function(){u(e),h(!1)},className:"w-full text-left px-3 py-1.5 text-[10px] sm:text-xs transition-colors cursor-pointer ".concat(l===e?"bg-emerald-500/20 text-emerald-300 font-bold":"text-white/75 hover:bg-white/[0.08] hover:text-white"),children:e},e)})})]}),(0,v.jsxs)("div",{className:"flex items-center p-0.5 rounded-lg bg-black/20 border border-white/10 shrink-0",children:[(0,v.jsx)("button",{onClick:function(){return s("grid")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("grid"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Grille",children:(0,v.jsx)(M4,{className:"w-3.5 h-3.5"})}),(0,v.jsx)("button",{onClick:function(){return s("list")},className:"p-1 rounded-md transition-all cursor-pointer ".concat("list"===o?"bg-emerald-500/20 text-emerald-400":"text-white/40 hover:text-white/70"),title:"Vue Liste",children:(0,v.jsx)(TZ,{className:"w-3.5 h-3.5"})})]})]})]})}},5923(e,t,n){"use strict";n.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var r=n(2974),a=n(240),i=n(2298),o=n(345),s=n(9405);function l(e){let t,n="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,(0,r.AU)(this)}copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)(this,e)}cycle(e,t,n){return(0,r.xy)(this,e,t,n)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,i.$T)(this)}compare(e){return(0,a.SE)(this,e)}}class c{#t;constructor(e=0,t=0,n=0,a=0){this.hour=e,this.minute=t,this.second=n,this.millisecond=a,(0,r.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.tY)(this,e)}subtract(e){return(0,r.YP)(this,e)}set(e){return(0,r.ib)(this,e)}cycle(e,t,n){return(0,r.gt)(this,e,t,n)}toString(){return(0,i.ot)(this)}compare(e){return(0,a.Nu)(this,e)}}class d{#t;constructor(...e){let[t,n,a,i,o]=l(e);this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new d(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.WQ)(this,e)}subtract(e){return(0,r.Re)(this,e)}set(e){return(0,r.hZ)((0,r.ib)(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return(0,r.xy)(this,e,t,n);default:return(0,r.gt)(this,e,t,n)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,i.qk)(this)}compare(e){let t=(0,a.SE)(this,e);return 0===t?(0,a.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,n,a,i,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=n,this.year=a,this.month=i,this.day=o,this.timeZone=s,this.offset=u,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,r.AU)(this)}copy(){return this.era?new f(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new f(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,r.E0)(this,e)}subtract(e){return(0,r.d_)(this,e)}set(e,t){return(0,r.D8)(this,e,t)}cycle(e,t,n){return(0,r.XH)(this,e,t,n)}toDate(){return(0,s.cd)(this)}toString(){return(0,i.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,n){"use strict";n.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>i});var r=n(5923),a=n(5504);function i(e,t,n,r){let a=(t=s(e,t))-1,i=-2;return n<=2?i=0:o(t)&&(i=-1),1721425+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*n-362)/12+i+r)}function o(e){return e%4==0&&(e%100!=0||e%400==0)}function s(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class c{fromJulianDay(e){let t=e-1721426,n=Math.floor(t/146097),s=(0,a.z)(t,146097),u=Math.floor(s/36524),c=(0,a.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,a.z)(c,1461)/365),[p,m]=l(400*n+100*u+4*d+f+ +(4!==u&&4!==f)),h=e-i(p,m,1,1),y=2;e<i(p,m,3,1)?y=0:o(m)&&(y=1);let v=Math.floor(((h+y)*12+373)/367),g=e-i(p,m,v,1)+1;return new(0,r.ng)(p,m,v,g)}toJulianDay(e){return i(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return u[o(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return o(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}},9405(e,t,n){"use strict";n.d(t,{Ou:()=>w,Tr:()=>f,Yd:()=>m,ay:()=>p,cd:()=>b,gw:()=>h,oU:()=>s,tR:()=>y,uB:()=>g,yP:()=>v});var r=n(5923),a=n(2974),i=n(345),o=n(240);function s(e){return e=v(e,new(0,i.FG)),l((0,i.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function u(e,t){if("UTC"===t)return 0;if(e>0&&t===(0,o.Xj)()&&!(0,o.rS)())return -6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:i,minute:s,second:u}=d(e,t);return l(n,r,a,i,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let n=c.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let e of r)"literal"!==e.type&&(a[e.type]=e.value);return{year:"BC"===a.era||"B"===a.era?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function f(e,t,n="compatible"){var r,a,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===n&&!(0,o.rS)()){c=v(c,new(0,i.FG));let e=new Date,t=(0,i.LA)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let p=s(c),m=u(p-864e5,t),h=u(p+864e5,t),g=(r=c,((a=p-m)==(l=p-h)?[a]:[a,l]).filter(e=>{var n;let a;return n=r,a=d(e,t),n.year===a.year&&n.month===a.month&&n.day===a.day&&n.hour===a.hour&&n.minute===a.minute&&n.second===a.second}));if(1===g.length)return g[0];if(g.length>1)switch(n){case"compatible":case"earlier":return g[0];case"later":return g[g.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(p-m,p-h);case"compatible":case"later":return Math.max(p-m,p-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,n="compatible"){return new Date(f(e,t,n))}function m(e,t){let n=u(e,t),a=new Date(e+n),i=a.getUTCFullYear(),o=a.getUTCMonth()+1,s=a.getUTCDate(),l=a.getUTCHours(),c=a.getUTCMinutes(),d=a.getUTCSeconds(),f=a.getUTCMilliseconds();return new(0,r.Ip)(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,l,c,d,f)}function h(e){return new(0,r.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let n=0,a=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:a,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:i,millisecond:o}=t),new(0,r._l)(e.calendar,e.era,e.year,e.month,e.day,n,a,i,o)}function v(e,t){if((0,o.Jg)(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,a.AU)(r),r}function g(e,t,n){return e instanceof r.Ip?e.timeZone===t?e:x(e,t):m(f(e,t,n),t)}function b(e){return new Date(s(e)-e.offset)}function x(e,t){return v(m(s(e)-e.offset,t),e.calendar)}function w(e){return x(e,(0,o.Xj)())}},227(e,t,n){"use strict";let r,a;n.d(t,{d:()=>K});var i=n(5923),o=n(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=(0,o.LA)(t.era,t.year);return new(0,i.ng)(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(l(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(l(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function l(e){let[t,n]=(0,o.f5)(e.year+-543);return new(0,i.ng)(t,n,e.month,e.day)}function u(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c(e,t){let n=Math.floor(4*(t-e)/1461);t>=u(e,n+1,1,1)&&n++;let r=1+Math.floor((t-u(e,n,1,1))/30),a=t+1-u(e,n,r,1);return[n,r,a]}function d(e){return Math.floor(e%4/3)}function f(e,t){return t%13!=0?30:d(e)+5}class p{fromJulianDay(e){let[t,n,r]=c(1723856,e),a="AM";return t<=0&&(a="AA",t+=5500),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=5500),u(1723856,t,e.month,e.day)}getDaysInMonth(e){return f(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+d(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class m extends p{fromJulianDay(e){let[t,n,r]=c(1723856,e);return t+=5500,new(0,i.ng)(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class h extends p{fromJulianDay(e){let[t,n,r]=c(1824665,e),a="CE";return t<=0&&(a="BCE",t=1-t),new(0,i.ng)(this,a,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),u(1824665,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),f(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}var y=n(5504);let v=765433;function g(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),n=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(n+1),7)&&(n+=1),n}function x(e){let t,n;return b(e)+(t=b(e-1),n=b(e),b(e+1)-n==356?2:+(n-t==382))}function w(e){return x(e+1)-x(e)}function j(e,t){if(t>=6&&!g(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=w(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?30*!!g(e):30}class S{fromJulianDay(e){let t=e-347997,n=Math.floor((25920*t/v*19+234)/235)+1,r=x(n),a=Math.floor(t-r);for(;a<1;)a=Math.floor(t-(r=x(--n)));let o=1,s=0;for(;s<a;)s+=j(n,o),o++;let l=a-(s-=j(n,--o));return new(0,i.ng)(this,n,o,l)}toJulianDay(e){let t=x(e.year);for(let n=1;n<e.month;n++)t+=j(e.year,n);return t+e.day+347997}getDaysInMonth(e){return j(e.year,e.month)}getMonthsInYear(e){return g(e.year)?13:12}getDaysInYear(e){return w(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(g(t.year)&&!g(e.year)&&t.month>6?e.month--:!g(t.year)&&g(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class E extends o.FG{fromJulianDay(e){let t,n,r,a=super.fromJulianDay(e),s=a.year-78,l=e-(0,o.rG)(a.era,a.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(a.year-1)?31:30)+155+90+10):(t=(0,o.U_)(a.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new(0,i.ng)(this,s,n,r)}toJulianDay(e){let t,n,r=e.year+78,[a,i]=(0,o.f5)(r);return((0,o.U_)(i)?(t=31,n=(0,o.rG)(a,i,3,21)):(t=30,n=(0,o.rG)(a,i,3,22)),1===e.month)?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=(e.month-7)*30),n+=e.day-1)}getDaysInMonth(e){return 1===e.month&&(0,o.U_)(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function O(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function k(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),a=Math.min(12,Math.ceil((n-(29+O(t,r,1,1)))/29.5)+1),o=n-O(t,r,a,1)+1;return new(0,i.ng)(e,r,a,o)}function A(e){return(14+11*e)%30<11}class D{fromJulianDay(e){return k(this,1948440,e)}toJulianDay(e){return O(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&A(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return A(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class P extends D{fromJulianDay(e){return k(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function C(e){return 460322+a[e-1300]}function T(e,t){return(r[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let n=C(e);for(let r=1;r<t;r++)n+=T(e,r);return n}function M(e){return a[e+1-1300]-a[e-1300]}class R extends D{constructor(){if(super(),this.identifier="islamic-umalqura",r||(r=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!a){a=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){a[t-1300]=e;for(let n=1;n<=12;n++)e+=T(t,n)}}}fromJulianDay(e){let t=e-1948440,n=C(1300),r=C(1600);if(t<n||t>r)return super.fromJulianDay(e);{let e=1299,n=1,r=1;for(;r>0;){r=t-C(++e)+1;let a=M(e);if(r===a){n=12;break}if(r<a){let t=T(e,n);for(n=1;r>t;)r-=t,t=T(e,++n);break}}return new(0,i.ng)(this,e,n,t-N(e,n)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+N(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):T(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):M(e.year)}}let I=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],L=[1867,1911,1925,1988,2018],F=["meiji","taisho","showa","heisei","reiwa"];function B(e){let t=I.findIndex(([t,n,r])=>!!(e.year<t)||e.year===t&&!!(e.month<n)||e.year===t&&e.month===n&&!!(e.day<r));return -1===t?I.length-1:0===t?0:t-1}function V(e){let t=L[F.indexOf(e.era)];if(!t)throw Error("Unknown era: "+e.era);return new(0,i.ng)(e.year+t,e.month,e.day)}class z extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),n=B(t);return new(0,i.ng)(this,F[n],t.year-L[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(V(e))}balanceDate(e){let t=V(e),n=B(t);F[n]!==e.era&&(e.era=F[n],e.year=t.year-L[n]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),n=_[t];if(null!=n){let[r,a,i]=n,o=r-L[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(a,e.month),e.month===a&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=I[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),n=I[t],r=I[t+1];if(null==r)return 9999-n[0]+1;let a=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&a++,a}getDaysInMonth(e){return super.getDaysInMonth(V(e))}getMinimumMonthInYear(e){let t=W(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=W(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function W(e){if(1===e.year)return I[F.indexOf(e.era)]}let U=[0,31,62,93,124,155,186,216,246,276,306,336];class ${fromJulianDay(e){let t=e-1948320,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),a=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-U[a]+1;return new(0,i.ng)(this,n,a+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=U[e.month-1],t+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>(0,y.z)(25*e.year+11,33)?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function H(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function G(e){let t=e-1911;return t>0?["minguo",t]:["before_minguo",1-t]}class q extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[n,r]=G((0,o.LA)(t.era,t.year));return new(0,i.ng)(this,n,r,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=G(H(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Y(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function Y(e){let[t,n]=(0,o.f5)(H(e));return new(0,i.ng)(t,n,e.month,e.day)}function K(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new m;case"coptic":return new h;case"hebrew":return new S;case"indian":return new E;case"islamic-civil":return new D;case"islamic-tbla":return new P;case"islamic-umalqura":return new R;case"japanese":return new z;case"persian":return new $;case"roc":return new q;default:return new(0,o.FG)}}},2974(e,t,n){"use strict";n.d(t,{AU:()=>u,D8:()=>O,E0:()=>j,Rb:()=>m,Re:()=>d,WQ:()=>i,XH:()=>E,YP:()=>g,d_:()=>S,gt:()=>x,hZ:()=>f,ib:()=>p,tY:()=>v,xy:()=>b});var r=n(9405),a=n(345);function i(e,t){let n=e.copy(),r="hour"in n?y(n,t):0;o(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,s(n),l(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,s(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,s(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){let e=n.calendar.isInverseEra?.(n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let i=n.calendar.getMonthsInYear(n);return n.month>i&&(n.month=i,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function o(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function s(e){for(;e.month<1;)o(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,o(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function d(e,t){return i(e,c(t))}function f(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),u(n),n}function p(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),m(n),n}function m(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function h(e,t){let n=e%t;return n<0&&(n+=t),n}function y(e,t){let n;return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=h(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=h(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=h(e.minute,60),n=Math.floor(e.hour/24),e.hour=h(e.hour,24),n}function v(e,t){let n=e.copy();return y(n,t),n}function g(e,t){return v(e,c(t))}function b(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw Error("Invalid era: "+e.era);i=w(i,n,0,t.length-1,r?.round),a.era=t[i],u(a);break}case"year":a.calendar.isInverseEra?.(a)&&(n=-n),a.year=w(e.year,n,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=w(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":a.day=w(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),u(a),a}function x(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(r?.hourCycle===12){let e=t>=12;i=12*!!e,o=e?23:11}a.hour=w(t,n,i,o,r?.round);break}case"minute":a.minute=w(e.minute,n,0,59,r?.round);break;case"second":a.second=w(e.second,n,0,59,r?.round);break;case"millisecond":a.millisecond=w(e.millisecond,n,0,999,r?.round);break;default:throw Error("Unsupported field "+t)}return a}function w(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function j(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let a=i((0,r.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=(0,r.Tr)(a,e.timeZone)}else n=(0,r.oU)(e)-e.offset;n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0);let a=(0,r.Yd)(n,e.timeZone);return(0,r.yP)(a,e.calendar)}function S(e,t){return j(e,c(t))}function E(e,t,n,i){switch(t){case"hour":{let t=0,o=23;if(i?.hourCycle===12){let n=e.hour>=12;t=12*!!n,o=n?23:11}let s=(0,r.tR)(e),l=(0,r.yP)(p(s,{hour:t}),new(0,a.FG)),u=[(0,r.Tr)(l,e.timeZone,"earlier"),(0,r.Tr)(l,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===l.day)[0],c=(0,r.yP)(p(s,{hour:o}),new(0,a.FG)),d=[(0,r.Tr)(c,e.timeZone,"earlier"),(0,r.Tr)(c,e.timeZone,"later")].filter(t=>(0,r.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,r.oU)(e)-e.offset,m=Math.floor(f/36e5),h=f%36e5;return f=36e5*w(m,n,Math.floor(u/36e5),Math.floor(d/36e5),i?.round)+h,(0,r.yP)((0,r.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x(e,t,n,i);case"era":case"year":case"month":case"day":{let a=b((0,r.tR)(e),t,n,i),o=(0,r.Tr)(a,e.timeZone);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,n){let a=(0,r.tR)(e),i=p(f(a,t),t);if(0===i.compare(a))return e;let o=(0,r.Tr)(i,e.timeZone,n);return(0,r.yP)((0,r.Yd)(o,e.timeZone),e.calendar)}},240(e,t,n){"use strict";n.d(t,{p9:()=>w,$I:()=>E,RZ:()=>A,tB:()=>f,rS:()=>b,kq:()=>S,Jg:()=>l,Py:()=>D,tF:()=>o,Xj:()=>g,Nu:()=>h,SJ:()=>d,SE:()=>m,ro:()=>i,D:()=>j,ZI:()=>P,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>x});var r=n(9405);let a={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function i(e,t){return t=(0,r.yP)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function o(e,t){return t=(0,r.yP)(t,e.calendar),e=x(e),t=x(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&i(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return i(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,n){let r=Math.ceil(e.calendar.toJulianDay(e)+1-(n?c[n]:function(e){let t=k.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo()))return k.set(e,t),t.firstDay}let n=function(e){if(Intl.Locale){let t=O.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&O.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];t="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&a[n]||0};k.set(e,t)}return t.firstDay}(t)))%7;return r<0&&(r+=7),r}function f(e){return(0,r.Yd)(Date.now(),e)}function p(e){return(0,r.gw)(f(e))}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function h(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let v=null;function g(){return null==v&&(v=new Intl.DateTimeFormat().resolvedOptions().timeZone),v}function b(){return!1}function x(e){return e.subtract({days:e.day-1})}function w(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function j(e){return x(e.subtract({months:e.month-1}))}function S(e,t,n){let r=d(e,t,n);return e.subtract({days:r})}function E(e,t,n){return S(e,t,n).add({days:6})}let O=new Map,k=new Map;function A(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d(x(e),t,n)+r)/7)}function D(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function P(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,n){"use strict";n.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>h,ot:()=>f,qk:()=>m});var r=n(5923),a=n(9405),i=n(345);let o=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,s=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function u(e){let t=e.match(o);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date string: "+e)}let n=new(0,r.ng)(d(t[1],0,9999),d(t[2],1,12),1);return n.day=d(t[3],1,n.calendar.getDaysInMonth(n)),n}function c(e){let t=e.match(s);if(!t){if(l.test(e))throw Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`);throw Error("Invalid ISO 8601 date time string: "+e)}let n=d(t[1],-9999,9999),a=new(0,r._l)(n<1?"BC":"AD",n<1?-n+1:n,d(t[2],1,12),1,t[4]?d(t[4],0,23):0,t[5]?d(t[5],0,59):0,t[6]?d(t[6],0,59):0,t[7]?1e3*d(t[7],0,1/0):0);return a.day=d(t[3],0,a.calendar.getDaysInMonth(a)),a}function d(e,t,n){let r=Number(e);if(r<t||r>n)throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function f(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function p(e){let t,n=(0,a.yP)(e,new(0,i.FG));return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function m(e){return`${p(e)}T${f(e)}`}function h(e){var t;let n,r,a,i,o;return`${m(e)}${n=0>Math.sign(t=e.offset)?"-":"+",r=Math.floor((t=Math.abs(t))/36e5),a=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${n}${String(r).padStart(2,"0")}:${String(a).padStart(2,"0")}`,0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,n){"use strict";function r(e,t){return e-t*Math.floor(e/t)}n.d(t,{z:()=>r})},99(e,t,n){"use strict";n.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var r=n(9726),a=n(5565),i=n(8048);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function c(e){return e.replace(/[\/\-@]/g,"_")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"./start",r=arguments.length>2?arguments[2]:void 0;return s(function(){var a,i,o,s,d,p,m;return u(this,function(u){switch(u.label){case 0:return a=(null==r?void 0:r.maxLoadingTime)&&!(r.maxLoadingTime<=0)?r.maxLoadingTime:6e5,i=void 0,[4,Promise.race([f(e,null==r?void 0:r.importMap),new Promise(function(t,n){i=setTimeout(function(){var t;n(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=a)<1e3?"".concat(t," milliseconds"):t<6e4?"".concat(Math.floor(t/1e3)," seconds"):t<36e5?"".concat(Math.floor(t/6e4)," minutes"):t<864e5?"".concat(Math.floor(t/36e5)," hours"):"".concat(Math.floor(t/864e5)," days"),".")))},a)})])];case 1:var h;if(u.sent(),i&&clearTimeout(i),o=c(e),!((void 0===(h=s=window[o])?"undefined":l(h))==="object"&&null!==h&&"init"in h&&"function"==typeof h.init&&"get"in h&&"function"==typeof h.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(n.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(m="Container for ".concat(e," did not return an ESM module as expected")),Error(m);return[2,p]}})})()}function f(e,t){return s(function(){var n,o,s,l,d,f,h;return u(this,function(u){switch(u.label){case 0:if("string"!=typeof e||0===e.trim().length)throw console.error("Attempted to call importDynamic() without supplying a package to load"),Error("Attempted to call importDynamic() without supplying a package to load");if(n=c(e),window[n])return[3,7];if(null==t)return[3,1];return s=t,[3,3];case 1:return[4,p()];case 2:s=u.sent(),u.label=3;case 3:if(!(o=s).imports.hasOwnProperty(e))throw console.error(l="Could not find the package ".concat(e," defined in the current importmap")),Error(l);(d=o.imports[e]).startsWith("./")&&(d=window.spaBase+d.substring(1)),f=e in(0,i.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,n){var r,a,i,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[m];if(s||(s=window[m]=new Set([])),o)s.has(e)?(i=function(){r&&o.removeEventListener("load",r),a&&o.removeEventListener("error",a)},r=function(){i(),t(null)},a=function(e){i(),n(e.message)},o.addEventListener("load",r),o.addEventListener("error",a)):(console.warn("Script at ".concat(e," already loaded. Not loading it again.")),t(null));else{s.add(e);var l,u,c,d=document.createElement("script");d.src=e,d.type="text/javascript",d.async=!0;var f=setTimeout(function(){console.error("The script at ".concat(e," did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration."))},5e3);c=function(){clearTimeout(f),s.delete(e),l&&d.removeEventListener("load",l),u&&d.removeEventListener("error",u)},l=function(){c(),t(null)},u=function(t){c();var r,a="Failed to load script from ".concat(e);console.error(a,t),n(null!=(r=t.message)?r:a)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return h=u.sent(),f&&(0,r.Vt)({kind:"error",title:(0,a.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,a.V)("scriptLoadingError","Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",{url:d}),actionButtonLabel:(0,a.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,i.w_)(),window.location.reload()}}),[2,Promise.reject(h)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,i.F$)()]})})()}var m=Symbol("__egen_script_loading")},8048(e,t,n){"use strict";function r(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var o=e.apply(t,n);function s(e){r(o,a,i,s,l,"next",e)}function l(e){r(o,a,i,s,l,"throw",e)}s(void 0)})}}function i(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}n.d(t,{BX:()=>S,E:()=>w,F$:()=>m,SM:()=>O,fd:()=>x,o5:()=>y,q1:()=>b,tK:()=>h,uT:()=>v,w_:()=>j,xI:()=>g});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return a(function(){var e,t,n,r,a,o,s;return i(this,function(i){switch(i.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],n=0,i.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],i.label=2;case 2:if(i.trys.push([2,7,,8]),!r.src)return[3,5];return[4,fetch(r.src)];case 3:return a=i.sent(),o=t.push,[4,a.json()];case 4:return o.apply(t,[i.sent()]),[3,6];case 5:r.textContent&&t.push(JSON.parse(r.textContent)),i.label=6;case 6:return[3,8];case 7:return s=i.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(n),s),[3,8];case 8:return n++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function p(){var e={};try{for(var t=g(),n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=r.slice(o.length);if(!t.includes(a)){var i=localStorage.getItem(r);i&&(e[a]=i)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function m(){return a(function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,d()];case 1:if(e=t.sent(),!u)return[2,e];return[2,f([e,null!=c?c:p()])]}})})()}function h(){return a(function(){return i(this,function(e){return[2,d()]})})()}function y(){return a(function(){return i(this,function(e){switch(e.label){case 0:if(!u)return[2,d()];return[4,d()];case 1:return[2,f([e.sent(),p()])]}})})()}function v(e){if(!u)return{imports:{}};if(e){for(var t={},n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(null==r?void 0:r.startsWith(o)){var a=localStorage.getItem(r);a&&(t[r.slice(o.length)]=a)}}return{imports:t}}return p()}function g(){if(!u)return[];try{var e=localStorage.getItem(s);if(e){var t=JSON.parse(e);if(Array.isArray(t))return t}}catch(e){}return[]}function b(e){return!!u&&g().includes(e)}function x(e,t){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.setItem(o+e,t),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to write import-map override to localStorage",e)}}function w(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=g().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}function j(){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(o))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to clear import-map overrides from localStorage",e)}}function S(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=g().filter(function(t){return t!==e});t.length>0?localStorage.setItem(s,JSON.stringify(t)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent(l))}catch(e){console.warn("[import-maps] Failed to update import-map overrides in localStorage",e)}}var E=!1;function O(){!E&&(E=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,n){"use strict";n.d(t,{xI:()=>a.xI,E:()=>a.E,eH:()=>j,SM:()=>a.SM,zU:()=>v,BX:()=>a.BX,w_:()=>a.w_,Y6:()=>g,Yv:()=>r.Yv,tK:()=>a.tK,Ln:()=>r.Ln,FM:()=>y,o5:()=>a.o5,fd:()=>a.fd,Tx:()=>x,KI:()=>w,rL:()=>r.rL,WY:()=>b,F$:()=>a.F$,zC:()=>r.zC,_m:()=>E,q1:()=>a.q1,uT:()=>a.uT});var r=n(99),a=n(8048),i=n(2235);function o(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)})}}function l(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var u="egen-routes:",c="egen-routes:change",d=!1,f=null;function p(){return s(function(){var e,t,n,r,a,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],n=0,s.label=1;case 1:if(!(n<e.length))return[3,9];r=e[n],s.label=2;case 2:if(s.trys.push([2,7,,8]),a=void 0,!r.src)return[3,5];return[4,fetch(r.src)];case 3:return[4,s.sent().json()];case 4:return a=s.sent(),[3,6];case 5:r.textContent&&(a=JSON.parse(r.textContent)),s.label=6;case 6:return a&&(0,i.S)(a)&&t.push(a),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(n),o),[3,8];case 8:return n++,[3,1];case 9:return[2,m(t)]}})})()}function m(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}function h(){return s(function(){var e,t,n,r,a,o,c,d,f,p,m,h;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],n=0;n<localStorage.length;n++)(null==(r=localStorage.key(n))?void 0:r.startsWith(u))&&(a=localStorage.getItem(r))&&t.push({moduleName:r.slice(u.length),raw:a});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,n=e.raw;return s(function(){var e,r;return l(this,function(a){switch(a.label){case 0:if(e=JSON.parse(n),(0,i.j)(e))return[2,{moduleName:t,routes:e}];if(!("string"==typeof e&&e.startsWith("http")))return[3,3];return[4,fetch(e)];case 1:return[4,a.sent().json()];case 2:if(r=a.sent(),(0,i.j)(r))return[2,{moduleName:t,routes:r}];throw Error("".concat(e," did not resolve to a valid EgenAppRoutes object"));case 3:throw Error("Override for ".concat(t," is neither a valid routes object nor a URL"))}})})()}))];case 2:o=y.sent(),c=!0,d=!1,f=void 0;try{for(p=o[Symbol.iterator]();!(c=(m=p.next()).done);c=!0)h=m.value,"fulfilled"===h.status?e[h.value.moduleName]=h.value.routes:console.warn("[route-maps] Failed to load route override",h.reason)}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return[3,4];case 3:return console.warn("[route-maps] Failed to read route overrides from localStorage",y.sent()),[3,4];case 4:return[2,e]}})})()}function y(){return s(function(){var e,t;return l(this,function(n){switch(n.label){case 0:return[4,p()];case 1:if(e=n.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,h()];case 3:t=n.sent(),n.label=4;case 4:return[2,m([e,t])]}})})()}function v(){return s(function(){return l(this,function(e){return[2,p()]})})()}function g(){return s(function(){var e;return l(this,function(t){switch(t.label){case 0:if(!d)return[2,p()];return[4,p()];case 1:return e=[t.sent()],[4,h()];case 2:return[2,m.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(null==n?void 0:n.startsWith(u)){var r=localStorage.getItem(n);r&&(e[n.slice(u.length)]=r)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function x(e,t){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{if("string"==typeof t)if(t.startsWith("http"))localStorage.setItem(u+e,JSON.stringify(t));else{var n,r=JSON.parse(t);if(!(0,i.j)(r))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(r))}else if(n=URL,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,i.j)(t))return void console.error("Override for ".concat(e," is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL"),t);localStorage.setItem(u+e,JSON.stringify(t))}window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to write route override to localStorage",e)}}function w(e){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{localStorage.removeItem(u+e),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to remove route override from localStorage",e)}}function j(){if(!d)return void console.warn("[Security] Route overrides are disabled outside development mode.");try{for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null==n?void 0:n.startsWith(u))&&e.push(n)}e.forEach(function(e){return localStorage.removeItem(e)}),window.dispatchEvent(new CustomEvent(c))}catch(e){console.warn("[route-maps] Failed to clear route overrides from localStorage",e)}}var S=null;function E(){return S||(S=(d="development"===window.spaEnv)?h().then(function(e){f=e}):Promise.resolve())}},8507(e,t,n){"use strict";n.d(t,{J:()=>i,N:()=>a});var r=n(9726);function a(e){var t=o(e);setTimeout(function(){throw t})}function i(){var e=Error();return function(t){var n=o(t);n.stack+="\nAsync stacktrace:\n".concat(e.stack),a(t)}}function o(e){var t,n;if(null!=(n=Error)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;if(null===e)return Error("'null' was thrown as an error");if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"){try{t="Object thrown as error: ".concat(JSON.stringify(e))}catch(n){t="Object thrown as error with the following properties: ".concat(Object.keys(e))}return Error(t)}if(void 0===e)return Error("'undefined' was thrown as an error");return Error(e.toString())}window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.Vt)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,n){"use strict";n.d(t,{dX:()=>r.dX,wE:()=>r.wE,_3:()=>r._3,uN:()=>r.uN,$F:()=>r.$F,Gz:()=>r.Gz,eb:()=>r.eb,Sj:()=>r.Sj,mv:()=>r.mv,yp:()=>l,PQ:()=>r.PQ});var r=n(6014),a=n(4356),i=n(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e){if("string"!=typeof e&&((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");var t,n={globals:s({},i.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,a.A)(e):e,n),function(e){if(Array.isArray(e))return o(e)}(t=n.variables)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){switch(e.type){case"UnaryExpression":return n=e,r=t,u(n.argument,r);case"BinaryExpression":return a=e,i=t,[u(a.left,i),u(a.right,i)].filter(Boolean);case"ConditionalExpression":return o=e,l=t,[u(o.consequent,l),u(o.test,l),u(o.alternate,l)].filter(Boolean);case"CallExpression":return d=e,f=t,m=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),m;case"ArrowFunctionExpression":return function(e,t){var n=s({},t);n.isLocalExpression=!0;var r=null!=(d=null==(p=e.params)?void 0:p.map(c(n)))?d:[],a=null!=(f=u(e.body,n))?f:[];if(a&&Array.isArray(a)){var i=!0,o=!1,l=void 0;try{for(var d,f,p,m,h=a[Symbol.iterator]();!(i=(m=h.next()).done);i=!0){var y=m.value;r.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{i||null==h.return||h.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return h=e,y=t,u(h.object,y),void((v=s({},y)).isLocalExpression=!0,u(h.property,v));case"ArrayExpression":return g=e,b=t,void(null==(x=g.elements)||x.map(c(b)));case"SequenceExpression":return w=e,j=t,void(null==(S=w.expressions)||S.map(c(j)));case"NewExpression":return E=e,O=t,void(null==(k=E.arguments)||k.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var n,r,a,i,o,l,d,f,p,m,h,y,v,g,b,x,w,j,S,E,O,k,A,D,P,C,T=e,N=t;if(!(T.name in N.globals))if(N.isLocalExpression)return T.name;else N.variables.add(T.name);return;case"TemplateLiteral":return A=e,D=t,void(null==(P=A.expressions)||P.map(c(D)),null==(C=A.quasis)||C.map(c(D)));default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function c(e){return function(t){return null===t?null:u(t,e)}}},8162(e,t,n){"use strict";n.r(t),n.d(t,{ASSISTANT_MODES:()=>g.wJ8,ActionMenu:()=>g.WyE,ActionMenuButton:()=>g.EDM,ActionMenuButton2:()=>g.Wjo,ActionableNotificationComponent:()=>g.drd,ActivityIcon:()=>g.npY,AddIcon:()=>g.REV,AllergiesIcon:()=>g.UgN,AnimatedHomeBackground:()=>g.BpM,AppointmentsAltPictogram:()=>g.MnZ,AppointmentsPictogram:()=>g.B1u,ArrowDownIcon:()=>g.ZLN,ArrowLeftIcon:()=>g.A60,ArrowRightIcon:()=>g.flY,ArrowUpIcon:()=>g.Kpk,Assessment1Pictogram:()=>g.IHy,Assessment2Pictogram:()=>g.$iy,AsyncSelect:()=>g.DWK,AttachmentIcon:()=>g.PtA,Autocomplete:()=>g.jT8,BabyIcon:()=>g.qYP,BloodBankPictogram:()=>g.nvs,Breakpoint:()=>g.EA,CalendarHeatMapIcon:()=>g.mmM,CalendarIcon:()=>g.CTc,CardHeader:()=>g.aRn,CardModal:()=>g.oVc,CardModalWarpGlow:()=>g.F$l,CardiologyPictogram:()=>g.uU$,CaretDownIcon:()=>g.bDP,CaretLeftIcon:()=>g.eCO,CaretRightIcon:()=>g.JJd,CaretUpIcon:()=>g.SwV,Carousel:()=>g.FNf,CarouselContext:()=>g.Ycj,CascadingNavDropdown:()=>g._PX,ChartAverageIcon:()=>g.ZHE,ChartLineIcon:()=>g.SCH,CheckmarkFilledIcon:()=>g.FtQ,CheckmarkOutlineIcon:()=>g.pm$,ChemistryIcon:()=>g.W4t,ChevronDownIcon:()=>g.D3D,ChevronLeftIcon:()=>g.YJP,ChevronRightIcon:()=>g.vKP,ChevronUpIcon:()=>g.Mtm,CircularGallery:()=>g.GF9,ClassificationTags:()=>g.QpY,CloseFilledIcon:()=>g.oCk,CloseIcon:()=>g.USm,CloseOutlineIcon:()=>g.Wdn,ColumnWithSearch:()=>g.Fny,Combobox:()=>g.G3_,ConditionsIcon:()=>g.ci3,ContentSection:()=>g.Fe_,CtScanPictogram:()=>g.DeE,CustomOverflowMenu:()=>g.TQT,CustomOverflowMenuItem:()=>g.cxd,DEFAULT_BOOLEAN_OPTIONS:()=>g.ofx,DEFAULT_OPERATORS:()=>g.whL,DEFAULT_ZONE_SIZES:()=>g.AnT,DecoratedCard:()=>g.mqB,DefaultPageBackground:()=>g.NOx,DentistryPictogram:()=>g.TNY,DocumentAttachmentIcon:()=>g.Ce6,DocumentIcon:()=>g.pyG,DocumentToolbar:()=>g.PAB,DownloadIcon:()=>g.s3U,DrugOrderIcon:()=>g.uqj,DynamicField:()=>g.koC,EditIcon:()=>g.qUP,EgenDatePicker:()=>g.O_s,EgenDateRangePicker:()=>g.tKr,EmergencyDepartmentPictogram:()=>g.sgv,EmptyCard:()=>g.slS,EmptyCardIllustration:()=>g.Ua6,EntityBannerActionsMenu:()=>g.M9T,EntityBannerContactDetails:()=>g.EGc,EntityBannerEntityIdentifiers:()=>g.teX,EntityBannerEntityInfo:()=>g.Zpy,EntityDetailBrowser:()=>g.NIm,EntityPhoto:()=>g.Klm,ErrorCard:()=>g.JrA,ErrorState:()=>g.W5n,EventScheduleIcon:()=>g.XaH,EventsIcon:()=>g.Jc,FacilityPictogram:()=>g.ECF,FilterBar:()=>g.Qnn,FilterBarDefault:()=>g.vNL,FilterBarDemo:()=>g.RJr,FolderGallery:()=>g.fNA,GenderFemaleIcon:()=>g.XB2,GenderMaleIcon:()=>g.szA,GenderOtherIcon:()=>g.hXZ,GenderUnknownIcon:()=>g.x1U,GenericOrderTypeIcon:()=>g.naI,GeriatricsPictogram:()=>g.SQq,GlobalPageBackground:()=>g.Nqf,GradientBlur:()=>g.wtE,GradientWave:()=>g.GcC,GroupAccessIcon:()=>g.Pyy,GroupIcon:()=>g.nFg,GynaecologyPictogram:()=>g.owH,HeroMosaic:()=>g.LdX,HeroTileCard:()=>g.b6Z,HomePictogram:()=>g.KKH,HospitalBedIcon:()=>g.jMM,Icon:()=>g.Int,ImageMedicalIcon:()=>g.Ix5,ImageSwiper:()=>g.QeH,InPatientPictogram:()=>g.thS,InformationFilledIcon:()=>g._e_,InformationIcon:()=>g.uQc,InformationSquareIcon:()=>g.ZrL,InteractiveSelector:()=>g.wmT,InventoryManagementIcon:()=>g.vFG,LabOrderIcon:()=>g.hi6,LaboratoryPictogram:()=>g.ehn,Labs2Pictogram:()=>g.rpF,LayoutGrid:()=>g.D6i,LeftRail:()=>g.pkp,LiquidGlassCard:()=>g.lok,ListCheckedIcon:()=>g.Rt$,LiveOrb:()=>g.AFR,Loader:()=>g.aHM,LocationIcon:()=>g.BT6,LocationPicker:()=>g.MTs,MORPH_SELECT_DEFAULT_TRANSITION:()=>g.AOq,MaterialOrderIcon:()=>g.zZ0,MaximizeIcon:()=>g._Xm,MaybeIcon:()=>g.oy0,MaybePictogram:()=>g.bmf,MedicationIcon:()=>g.Fnj,MenuToggleButton:()=>g.qLc,MessageQueueIcon:()=>g.uFu,MicroscopeIcon:()=>g.u4h,MoneyIcon:()=>g.yBj,MorphSelect:()=>g.NGl,MorphSelectContent:()=>g.EiO,MorphSelectItem:()=>g.iRo,MorphSelectTrigger:()=>g.PK0,MorphSelectValue:()=>g.qXl,MotherIcon:()=>g.XEq,MovementIcon:()=>g.lyJ,NAV_ALL_WORKSPACES:()=>c.Xr,Notification:()=>g.Eg0,NumericDataPoint:()=>g.YiA,ObstetricsPictogram:()=>g.Bk2,OverflowMenuHorizontalIcon:()=>g.rv3,OverflowMenuVerticalIcon:()=>g.Rnm,PageBackground:()=>g.Kz$,PageBackgroundProvider:()=>g.z0Y,PageHeader:()=>g.zYs,PageHeaderContent:()=>g.gpz,Pagination:()=>g.dKS,PasswordIcon:()=>g.BGy,PatientListsPictogram:()=>g.$2H,PatientSearchPictogram:()=>g.cxq,PatientsPictogram:()=>g.X25,PaymentsDeskPictogram:()=>g.dNG,PedestrianFamilyIcon:()=>g.PPo,PenIcon:()=>g.rZj,Pharmacy2Pictogram:()=>g.Q92,PharmacyPictogram:()=>g.w21,Pictogram:()=>g.bF1,PrinterIcon:()=>g.wwY,ProcedureOrderIcon:()=>g.H0x,ProgramsIcon:()=>g.lq$,PromptInput:()=>g.Plc,RECURSIVE_EROSION_DEFAULTS:()=>g.Km0,RadiologyIcon:()=>g.SA3,RecursiveErosionBackground:()=>g.OoY,ReferralOrderIcon:()=>g.tCH,RegistrationPictogram:()=>g.et7,RenewIcon:()=>g.JTN,ReportIcon:()=>g.cQD,ResetIcon:()=>g.NAP,ResponsiveWrapper:()=>g.KFv,RightRail:()=>g.Bic,SECTION_CARD_CLASS:()=>g.YpM,SHELL_RAIL_BOTTOM_SLOT:()=>c.R6,SHELL_RAIL_LEFT_SLOT:()=>c.p$,SHELL_RAIL_RIGHT_SLOT:()=>c.SW,STICKY_VARS:()=>g.Ddn,SaveIcon:()=>g.LPu,SearchIcon:()=>g.WIv,Section:()=>g.wn6,SectionAction:()=>g.SnF,SectionBody:()=>g.iq0,SectionCard:()=>g.ivh,SectionCardTitleButton:()=>g.Q5Y,SectionDivider:()=>g.nBS,SectionFooter:()=>g.lFh,SectionGrid:()=>g.KGd,SectionHeader:()=>g.X3I,SectionNavPanel:()=>g.frg,SectionSlot:()=>g.y0l,Select:()=>g.l6P,SelectContent:()=>g.gCo,SelectContext:()=>g.CW5,SelectTrigger:()=>g.bqE,ServiceQueuesPictogram:()=>g.Y21,SettingsIcon:()=>g.Zes,Sheet:()=>g.cjw,SheetClose:()=>g.kNS,SheetContent:()=>g.hae,SheetContext:()=>g.P8U,SheetDescription:()=>g.Qsg,SheetFooter:()=>g.XWC,SheetHeader:()=>g.Fm9,SheetOverlay:()=>g.YP7,SheetPortal:()=>g.yde,SheetRoot:()=>g.KId,SheetTitle:()=>g.qpM,SheetTrigger:()=>g.CGR,ShoppingCartAddItemIcon:()=>g.Uve,ShoppingCartArrowDownIcon:()=>g.Lfm,ShoppingCartIcon:()=>g.aJF,SiteActivityPanel:()=>g.Xac,SiteApplicationsPanel:()=>g.pyx,SiteBanner:()=>g.cBB,SiteCarousel:()=>g.aiS,SiteMembersPanel:()=>g.tyG,SitePanelHeader:()=>g.Xhy,SiteResourcesPanel:()=>g.Nvq,SiteSearchBar:()=>g.ttj,SiteSettingsPanel:()=>g.rmb,SiteTabbedLayout:()=>g.eFc,SiteTasksPanel:()=>g.SLu,Slider:()=>g.Apm,SliderContainer:()=>g.Jbi,SliderDotButton:()=>g.vY7,Snackbar:()=>g.qb_,SplineScene:()=>g.C44,Splitter:()=>g.O3W,StaggeredMenuPanel:()=>g._kB,StickyNoteAddIcon:()=>g.OC$,StockManagementPictogram:()=>g.q__,SwitcherIcon:()=>g.RFy,SyringeIcon:()=>g.hZg,TOOL_WINDOW_HEADER_ATTRIBUTE:()=>g.lHJ,TOOL_WINDOW_SLOTS:()=>c.As,TOPBAR_LEVEL2_NAV_SLOT:()=>c.H9,TableBatchActions:()=>g.GGC,TableIcon:()=>g.KbA,TableOfContentsIcon:()=>g.pYV,TestimonialCard:()=>g._f_,TestimonialCardStack:()=>g.uDL,ThumbsSlider:()=>g.BM2,TimeIcon:()=>g.b1c,Toast:()=>g.y8,ToolWindowHeader:()=>g.ICb,ToolWindowZone:()=>g.p4K,ToolsIcon:()=>g.dwU,TopBar:()=>g.Vsm,TopBarAvatar:()=>g.mIk,TopBarDivider:()=>g.AA7,TopBarIconButton:()=>g.gFP,TransferPictogram:()=>g.SKX,TranslateIcon:()=>g.SwB,TrashCanIcon:()=>g.EJV,TreeViewAltIcon:()=>g.MO4,TriagePictogram:()=>g.XHu,UserAvatarIcon:()=>g.yDT,UserFollowIcon:()=>g.osL,UserIcon:()=>g.nys,UserXrayIcon:()=>g.feL,ViewIcon:()=>g.tCQ,ViewOffIcon:()=>g.Oi_,WORKBENCH_ICONS:()=>g.BDu,WORKBENCH_STORAGE_KEY:()=>g.gHx,WarningIcon:()=>g.id,WaterGlassModal:()=>g.BIq,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>g.ozP,WorkspaceContainer:()=>g.XvC,WorkspaceNotification:()=>g.tMf,XrayPictogram:()=>g.B2u,ZONE_ANCHORS:()=>g.c0o,activateOfflineCapability:()=>m.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>x.KW,ageAsDuration:()=>x.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>m.FO,buildFilterFields:()=>g.mOW,canAccessStorage:()=>x._g,canBeginEditSynchronizationItemsOfType:()=>m.xN,canCloseWorkspaceWithoutPrompting:()=>g.SvQ,cancelPrompt:()=>g.zlb,cardModalAnimationPresets:()=>g.QsE,cardModalPresetStyles:()=>g.Zqu,changeWorkspaceContext:()=>g.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,clampZoneSize:()=>g.foY,cleanCascadingFilters:()=>g._Jn,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>g.G_3,closeToolWindow:()=>g.T7Q,closeWorkspace:()=>g.MJ8,closeWorkspaceGroup2:()=>g.biy,cn:()=>g.cn,compile:()=>u.wE,convertToLocaleCalendar:()=>x.d4,createAttachment:()=>s.cD,createErrorHandler:()=>l.J,createLiveOrb:()=>g.Ogf,defaultValidation:()=>g.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>m.lY,detach:()=>c.Yo,detachAll:()=>c.No,dispatchActionableNotificationShown:()=>f.LQ,dispatchConnectivityChanged:()=>f.Yt,dispatchNotificationShown:()=>f.FI,dispatchPrecacheStaticDependencies:()=>f.pc,dispatchSnackbarShown:()=>f.$3,dispatchToastShown:()=>f.Vt,displayName:()=>x.QC,duration:()=>x.p0,egenOfflineCachingStrategyHttpHeaderName:()=>m.T$,egenOfflineResponseBodyHttpHeaderName:()=>m.Q1,egenOfflineResponseStatusHttpHeaderName:()=>m.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>g.uQD,evaluate:()=>u._3,evaluateAsBoolean:()=>u.eb,evaluateAsBooleanAsync:()=>u.Gz,evaluateAsNumber:()=>u.dX,evaluateAsNumberAsync:()=>u.$F,evaluateAsType:()=>u.Sj,evaluateAsTypeAsync:()=>u.uN,evaluateAsync:()=>u.mv,evaluateFilter:()=>g.Ws0,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>x.Yq,formatDatetime:()=>x.Rt,formatDuration:()=>x.a3,formatDurationBetween:()=>x.g2,formatEntityName:()=>x.MS,formatPartialDate:()=>x.LW,formatPatientName:()=>x.Qr,formatTime:()=>x.fU,formatToolWindowBadge:()=>g.pd,formattedName:()=>x.qK,generateOfflineUuid:()=>m.sA,getActiveModuleNames:()=>g.pJo,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>m.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>x.a7,getDefaultsFromConfigSchema:()=>x.kd,getDynamicOfflineDataEntries:()=>m.FE,getDynamicOfflineDataEntriesFor:()=>m.WA,getDynamicOfflineDataHandlers:()=>m.qb,getEgenServiceWorker:()=>m.b1,getEntityName:()=>x.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>m.C$,getFullSynchronizationItemsFor:()=>m.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>x.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getNavBehavior:()=>c.Yw,getOfflineDb:()=>m.e,getOfflineEntityDataStore:()=>m.sm,getOfflineSynchronizationStore:()=>m.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>x.Vp,getPromptBeforeClosingFcn:()=>g.OeE,getRegisteredWorkspace2Names:()=>g.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getSavedAssistantMode:()=>g.T7$,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>m.Gp,getSynchronizationItems:()=>m.pb,getSynchronizationItemsFor:()=>m.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>g.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>g.XzH,goBackInHistory:()=>p.tA,iconIds:()=>g.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>g.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>x.pf,isEgenDateToday:()=>x.L8,isEgenRoutes:()=>f.Ss,isFilterReady:()=>g.iVR,isImportMapOverrideDisabled:()=>o.q1,isNavEntryInWorkspace:()=>c.oE,isNavEntryMeta:()=>c.DK,isOfflineUuid:()=>m.bO,isOnline:()=>x.sc,isToolWindowMeta:()=>c.oW,isVersionSatisfied:()=>x.rX,isXboxAudioMuted:()=>g.lgu,jsep:()=>u.PQ,launchWorkspace:()=>g.TC2,launchWorkspace2:()=>g.pTx,launchWorkspaceGroup:()=>g.aN0,launchWorkspaceGroup2:()=>g.GYk,loadLifeCycles:()=>y.oB,loaderMarkup:()=>g.ilK,matchLocale:()=>x.w7,matchesFilters:()=>g.lu9,messageEgenServiceWorker:()=>m.Oc,navBehaviorStore:()=>c.rf,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>g.Fmw,offlineUuidPrefix:()=>m.jU,parseDate:()=>x._U,parseDateInput:()=>x.qE,pictogramIds:()=>g.vJW,playPageEnter:()=>g.m9A,playXboxSound:()=>g.x4I,preloadImport:()=>o.zC,preloadSplineScene:()=>g.Pfj,promptBeforeClosing:()=>g.F3N,promptForClosingWorkspaces:()=>g.hLN,putDynamicOfflineData:()=>m.yD,putDynamicOfflineDataFor:()=>m.ff,queueSynchronizationItem:()=>m.Zr,queueSynchronizationItemFor:()=>m.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>x.XE,registerEgenServiceWorker:()=>m.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerNavBehavior:()=>c.ZJ,registerOfflineEntityHandler:()=>m.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>m.NU,removeDynamicOfflineDataFor:()=>m.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>g.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>g.CU$,renderLoadingSpinner:()=>g.uWG,renderPageBackground:()=>g.uTG,renderSnackbars:()=>g.ZLm,renderToasts:()=>g.f1b,renderWorkbench:()=>g.OFC,renderWorkspaceWindowsAndMenu:()=>g.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>g._1W,resetZoneSize:()=>g.zkr,resolveWorkbenchIcon:()=>g.zLd,retry:()=>x.L5,runSynchronization:()=>m.AO,saveAssistantMode:()=>g.Pe5,saveWorkSession:()=>s.XM,selectPreferredName:()=>x.VO,setCurrentOfflineMode:()=>m.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setToolWindowBadge:()=>g.a8E,setZoneSize:()=>g.uge,setupDynamicOfflineDataHandler:()=>m.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>g.EPe,setupOfflineSync:()=>m.cy,setupPageTransitions:()=>g.d1P,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>x.bN,showActionableNotification:()=>g.ZyP,showModal:()=>g.toY,showNotification:()=>g.Dsh,showPageLoader:()=>g.EDr,showSnackbar:()=>g.tdF,showToast:()=>g.P0c,showWorkspacePrompts:()=>g.ctS,slugify:()=>o.Yv,stickyStyleVars:()=>g.paI,subscribeActionableNotificationShown:()=>f.bK,subscribeConnectivity:()=>f.sT,subscribeConnectivityChanged:()=>f.gj,subscribeEgenEvent:()=>s.mI,subscribeNotificationShown:()=>f.bJ,subscribePrecacheStaticDependencies:()=>f.ff,subscribeSnackbarShown:()=>f.ls,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>f.dX,syncAllDynamicOfflineData:()=>m.Td,syncDynamicOfflineData:()=>m.u1,syncOfflineEntityData:()=>m.Oj,toDateObjectStrict:()=>x.kQ,toEgenIsoString:()=>x.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,toggleToolWindow:()=>g.Hwc,toggleXboxAudio:()=>g.MiD,toolWindowTitle:()=>g.tp2,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>g._RD,useActiveAppModules:()=>g.Y26,useCarouselContext:()=>g.RGi,useCustomOverflowMenu:()=>g.ckU,useEntityPhoto:()=>g.XhU,useFilterSchema:()=>g.d4y,usePageBackground:()=>g.DYW,usePageLoading:()=>g.v99,useSelectContext:()=>g.hPu,useSheetContext:()=>g.sCq,useToolWindows:()=>g.ncA,useWorkspace2Context:()=>g.WO_,useWorkspace2Store:()=>g.AkA,useWorkspaces:()=>g.CH0,workbenchBadgeStore:()=>g.UcB,workbenchStore:()=>g.Tqd,workspace2Store:()=>c.J_,workspace2StoreActions:()=>g.cJy,workspaceStore:()=>g.x9q,xboxAudio:()=>g.o81});var r=n(4896),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a);var i=n(2804),a={};for(let e in i)"default"!==e&&(a[e]=()=>i[e]);n.d(t,a);var o=n(101),s=n(3447),l=n(8507),u=n(9360),c=n(8625),d=n(5794),f=n(5895),p=n(7774),m=n(6563),h=n(5429),a={};for(let e in h)0>["evaluateAsTypeAsync","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","getGroupByWindowName","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","removeDynamicOfflineData","subscribePrecacheStaticDependencies","putDynamicOfflineData","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","subscribeNotificationShown","deleteSynchronizationItem","putDynamicOfflineDataFor","dispatchPrecacheStaticDependencies","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","isNavEntryMeta","getDynamicOfflineDataEntries","WorkSessionStatus","syncOfflineEntityData","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","navigate","registerBreadcrumbs"].indexOf(e)&&(a[e]=()=>h[e]);n.d(t,a);var y=n(7334),v=n(1442),a={};for(let e in v)0>["registerBreadcrumbs","getImportMapOverrideMap","evaluateAsNumber","TOOL_WINDOW_SLOTS","importDynamic","registerNavBehavior","finishRegisteringAllApps","evaluateAsTypeAsync","getGroupByWindowName","tryRegisterExtension","WorkSessionMode","goBackInHistory","fetchCurrentEntity","updateInternalExtensionStore","compile","removeRouteMapOverride","checkStatus","getWorkSessionStore","getDynamicOfflineDataHandlers","setCurrentOfflineMode","dispatchConnectivityChanged","dispatchActionableNotificationShown","resetRouteMapOverrides","saveWorkSession","getModalRegistration","queueSynchronizationItem","getRouteMapNextPageMap","getBreadcrumbsFor","setupRouteMapOverrides","getWorkspaceGroupRegistration","registerEgenServiceWorker","registerWorkspace","attach","reset","updateWorkSession","beginEditSynchronizationItem","offlineUuidPrefix","SHELL_RAIL_RIGHT_SLOT","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","updateExtensionSlotState","getLocations","isEgenAppRoutes","clearHistory","dispatchSnackbarShown","NAV_ALL_WORKSPACES","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","removeDynamicOfflineData","subscribePrecacheStaticDependencies","putDynamicOfflineData","getExtensionNameFromId","getNavBehavior","cleanupObsoleteFeatureFlags","subscribeNotificationShown","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","putDynamicOfflineDataFor","registerBreadcrumb","TOPBAR_LEVEL2_NAV_SLOT","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","subscribeConnectivityChanged","getWorkSessionTypes","interpolateUrl","setupHistory","getOfflineEntityDataStore","getCurrentPageMap","subscribeToastShown","detachAll","generateOfflineUuid","queueSynchronizationItemFor","isNavEntryInWorkspace","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","SHELL_RAIL_LEFT_SLOT","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","navBehaviorStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","registerWorkspaces2","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","loadLifeCycles","getDynamicOfflineDataEntries","isNavEntryMeta","syncOfflineEntityData","WorkSessionStatus","getExtensionRegistrationFrom","isToolWindowMeta","SHELL_RAIL_BOTTOM_SLOT","navigate"].indexOf(e)&&(a[e]=()=>v[e]);n.d(t,a);var g=n(488),b=n(5565),x=n(7184)},5895(e,t,n){"use strict";n.d(t,{$3:()=>r.$3,FI:()=>r.FI,LQ:()=>r.LQ,Ss:()=>a.S,Vt:()=>r.Vt,Yt:()=>r.Yt,bJ:()=>r.bJ,bK:()=>r.bK,dX:()=>r.dX,ff:()=>r.ff,gj:()=>r.gj,j0:()=>a.j,ls:()=>r.ls,pc:()=>r.pc,sT:()=>r.sT});var r=n(9726),a=n(2235)},2235(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&!(Object.hasOwn(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||Object.hasOwn(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||Object.hasOwn(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||Object.hasOwn(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}function o(e){return!!e&&(void 0===e?"undefined":a(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(e)||function(e){if(e){if("string"==typeof e)return r(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];return"string"==typeof n&&i(a)})}n.d(t,{S:()=>o,j:()=>i})},7334(e,t,n){"use strict";n.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var r=n(9250),a=n(2804),i=n(5794),o=n(8625),s=n(8148);function l(e,t){var n=t.name;if(!n)return void console.error("An extension definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.'),t);t.slots&&t.slot&&console.warn("The extension ".concat(n," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var r=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition."),t);(0,o.VK)({name:n,load:function(){return(0,s.o)(e,t.component)},meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:null==(u=t.online)||u,offline:null!=(c=t.offline)&&c,featureFlag:t.featureFlag,displayExpression:t.displayExpression});var a=!0,i=!1,l=void 0;try{for(var u,c,d,f=r[Symbol.iterator]();!(a=(d=f.next()).done);a=!0){var p=d.value;(0,o.K0)(p,n)}}catch(e){i=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(i)throw l}}}function u(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var c=[];function d(e,t){if(e&&t&&(void 0===t?"undefined":u(t))==="object"){(0,a.registerModuleWithConfigSystem)(e);var n,r,d,f,p,m,h,y,v,g=null!=(n=t.extensions)?n:[],b=null!=(r=t.modals)?r:[],x=null!=(d=t.workspaces)?d:[],w=null!=(f=t.workspaceGroups)?f:[],j=null!=(p=t.featureFlags)?p:[],S=null!=(m=t.workspaceGroups2)?m:[],E=null!=(h=t.workspaceWindows2)?h:[],O=null!=(y=t.workspaces2)?y:[];null==(v=t.pages)||v.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))){var n,r;c.push((n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},t),r=r={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),g.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?l(e,t):console.warn("An extension for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),b.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")){var n;(n=t.name)?t.component?(0,o.Ju)({name:n,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition."),t):console.error("A modal definition in ".concat(e,' is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.'),t)}else console.warn("A modal for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),x.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var n=t.name;if(!n)return console.error("A workspace definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t);var r=t.title;if(!r)return console.error("A workspace definition in ".concat(e,' is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.'),t);if(!t.component)return console.error("The workspace ".concat(n," from ").concat(e," is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition."),t);(0,o.pm)({name:n,title:r,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:function(){return(0,s.o)(e,t.component)}});var a=!0,i=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;(0,o.io)({name:d,members:[n]})}}catch(e){i=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw l}}}(e,t):console.warn("A workspace for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),w.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var n,r;(r=t.name)?(0,o.io)({name:r,members:null!=(n=t.members)?n:[]}):console.error("A workspace group definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.'),t)}else console.warn("A workspace group for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),(0,o.rD)(e,S),function(e,t){(0,o.Qb)(e,t);var n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}}(e,E),(0,o.Uh)(e,O),j.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,i.uA)(t.flagName,t.label,t.description):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.'),t):console.error("A feature flag definition in ".concat(e,' is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.'),t);else console.warn("A feature flag for ".concat(e," could not be registered as it does not appear to have the required properties"),t)})}}function f(){c.sort(function(e,t){return e.appName.localeCompare(t.appName,"en")});var e=new Map,t=!0,n=!1,a=void 0;try{for(var o,l=c[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var u,d=o.value;e.has(d.appName)?e.set(d.appName,e.get(d.appName)+1):e.set(d.appName,0);var f=e.get(d.appName),p="".concat(d.appName,"-page-").concat(f),m=null!=(u=d.containerDomId)?u:"egen-apps-container",h=document.getElementById(m),y="single-spa-application:".concat(p);if(h){var v=document.createElement("div");v.id=y,null==h||h.appendChild(v)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(m,'"; DOM element does not exist.'));!function(e,t){var n,a,o,l,u=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===u)return console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);var c=(n=function e(t){if(Array.isArray(t)){var n,a=t.map(e);return function(e){return a.some(function(t){return t(e)})}}return"string"==typeof t?(0,r.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(n=RegExp)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),a=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==a||a)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,i.jj)(l))&&n(e)}:n);(0,r.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){n=!0,a=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}},8148(e,t,n){"use strict";n.d(t,{o:()=>u});var r=n(99),a=n(2804);function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)})}}function s(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var l=new Map;function u(e,t){return o(function(){var n,i,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(i=(n=t.indexOf("#"))>=0)?t.substring(0,n):e,d=i?t.substring(n+1):t,[4,(0,r.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var m,h;return[2,(m=u,h=f,o(function(){var e,t;return s(this,function(n){switch(n.label){case 0:if(m in l)return[3,5];if(null==h)return[3,1];return t=h,[3,3];case 1:return[4,(0,r.rL)(m)];case 2:t=n.sent(),n.label=3;case 3:return e=t,[4,l[m]=new Promise(function(t,n){if(Object.hasOwn(e,"startupApp")){var r=e.startupApp;if("function"==typeof r)return Promise.resolve(r()).then(function(){(0,a.registerModuleLoad)(m),t(null)}).catch(n)}(0,a.registerModuleLoad)(m),t(null)})];case 4:return n.sent(),[3,7];case 5:return[4,l[m]];case 6:n.sent(),n.label=7;case 7:return[2]}})})()).then(function(){return f[d]()})]}return f?f&&Object.hasOwn(f,d)?console.warn("The export ".concat(t,", defined in ").concat(e,"'s routes.json, is not a function")):console.warn("".concat(u,' does not define a component called "').concat(d,'", referenced in ').concat(e,"'s routes.json. This cannot be loaded.")):console.warn("Unknown app ".concat(u," for ").concat(t," defined in ").concat(e,"'s routes.json")),[2,c]}})})()}var c={bootstrap:function(){return Promise.resolve()},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}}},3903(e,t,n){"use strict";n.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>en,a7:()=>ee,L8:()=>q,Yq:()=>er,L3:()=>K,fU:()=>ei,_U:()=>Z,d4:()=>es,p0:()=>em,kQ:()=>Y,qE:()=>eu,pf:()=>G});var r,a=n(9405),i=n(227);if("u">typeof navigator){let e=navigator;r=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;r=e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}var o=function(e){e=(e=e.replace(/_/g,"-")).replace(/[.:][\w-]*$/,"");try{return new Intl.Locale(e).baseName}catch{return"en-US"}}(r||"en-US"),s=class extends Date{invalid=null;isValid(){return!Number.isNaN(this.valueOf())}},l={};for(let e=0;e<100;e++)l[(e<=9?"0":"")+e]=e+(e>51?1900:2e3);var u={arab:1632,arabext:1776,bali:6992,beng:2534,deva:2406,fullwide:65296,gujr:2790,khmr:6112,knda:3302,laoo:3792,limb:6470,mlym:3430,mong:6160,mymr:4160,orya:2918,tamldec:3046,telu:3174,thai:3664,tibt:3872},c="[1234567890一二三四五六七八九〇\\d]",d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9},f={},p={"Eastern Daylight Time":-240,"Eastern Standard Time":-300,"Central Daylight Time":-300,"Central Standard Time":-360,"Mountain Daylight Time":-360,"Mountain Standard Time":-420,"Pacific Daylight Time":-420,"Pacific Standard Time":-480,"Coordinated Universal Time":0,ACDT:630,ACST:570,ACT:480,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,AMST:-180,AMT:-240,ART:-180,AST:180,AWDT:540,AWST:480,AZOST:-60,AZT:240,BDT:360,BIOT:360,BIT:-720,BOT:-240,BRST:-120,BRT:-180,BTT:360,CAT:120,CCT:390,CDT:-300,CEDT:120,CEST:120,CET:60,CHADT:825,CHAST:765,CHOT:480,ChST:600,CHUT:600,CIST:-480,CIT:480,CKT:-600,CLST:-180,CLT:-240,COST:-240,COT:-300,CST:-360,CT:480,CVT:-60,CXT:420,DAVT:420,DDUT:600,DFT:60,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEDT:180,EEST:180,EET:120,EGST:0,EGT:-60,EIT:540,EST:-300,FET:180,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GIT:-540,GMT:0,GST:-120,GYT:-240,HADT:-540,HAEC:120,HAST:-600,HKT:480,HMT:300,HOVT:420,HST:-600,IBST:0,ICT:420,IDT:180,IOT:180,IRDT:270,IRKT:480,IRST:210,IST:120,JST:540,KGT:360,KOST:660,KRAT:420,KST:540,LHST:630,LINT:840,MAGT:720,MART:-510,MAWT:300,MDT:-360,MET:60,MEST:120,MHT:720,MIST:660,MIT:-510,MMT:390,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:660,NPT:345,NST:-150,NT:-150,NUT:-660,NZDT:780,NZST:720,OMST:360,ORAT:300,PDT:-420,PET:-300,PETT:720,PGT:600,PHOT:780,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PYST:-180,PYT:-240,RET:240,ROTT:-180,SAKT:660,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SLST:330,SRET:660,SRT:-180,SST:480,SYOT:180,TAHT:-600,THA:420,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TOT:780,TVT:720,UCT:0,ULAT:480,USZ1:120,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-240,VLAT:600,VOLT:240,VOST:360,VUT:660,WAKT:720,WAST:120,WAT:60,WEDT:60,WEST:60,WET:0,WIT:420,WST:480,YAKT:540,YEKT:300},m={zone:p,year:l,meridiem:{am:0,pm:12,"a.m.":0,"p.m.":12},month:{january:1,jan:1,february:2,feb:2,march:3,mar:3,april:4,apr:4,may:5,june:6,jun:6,july:7,jul:7,august:8,aug:8,september:9,sep:9,october:10,oct:10,november:11,nov:11,december:12,dec:12},dayname:{sunday:0,sun:0,monday:1,mon:1,tuesday:2,tue:2,wednesday:3,wed:3,thursday:4,thu:4,friday:5,fri:5,saturday:6,sat:6},digit:{}},h={MONTHNAME:"january|february|march|april|may|june|july|august|september|october|november|december|jan\\.?|feb\\.?|mar\\.?|apr\\.?|may\\.?|jun\\.?|jul\\.?|aug\\.?|sep\\.?|oct\\.?|nov\\.?|dec\\.?",DAYNAME:"sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun\\.?|mon\\.?|tue\\.?|wed\\.?|thu\\.?|fri\\.?|sat\\.?",ZONE:`\\(?(?:${Object.keys(p).join("|")})\\)?`,MERIDIEM:"am|pm|a.m.|p.m.",ORDINAL:"st|nd|rd|th|\\.",YEAR:"\\d{4}|\\d{2}",YEAR2:"\\d{2}",YEAR4:"\\d{4}",YEAR6:"-\\d{6}|\\+?\\d{5,6}",MONTH:"1[0-2]|0?[1-9]",MONTH2:"1[0-2]|0[1-9]",DAY:"3[01]|[12]\\d|0?[1-9]",DAY2:"3[01]|[12]\\d|0[1-9]",OFFSET:"(?:GMT)?[\xb1−+-](?:[01]\\d[0-5]\\d|[01]\\d:[0-5]\\d|[01]?\\d)",H24:"[01]\\d|2[0-3]",H12:"0?[1-9]|1[012]",MIN:"[0-5]\\d",SEC:"[0-5]\\d|60",MS:"\\d{9}|\\d{6}|\\d{1,3}",GAP:"[\\s/.,-]{1,}"},y={...h,YEAR:"*{4}|*{2}",YEAR4:"*{4}",YEAR6:"-*{6}|\\+?*{5,6}",MONTH:"*{1,2}",MONTH2:"*{2}",DAY:"*{1,2}",DAY2:"*{2}",OFFSET:"(?:GMT)?[\xb1−+-](?:*{4}|*{2}:*{2}|*{1,2})",H24:"*{2}",H12:"*{1,2}",MIN:"*{2}",SEC:"*{2}",MS:"*{9}|*{6}|*{3}"},v={},g=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){let n=t.toLowerCase(),r=v[n];if(r)return r;let a=new e(t);return v[n]=a,a}constructor(e=o){this.locale=e,this.lookups={...m},this.vars={...h};const t=new Intl.NumberFormat(this.locale);this.numberingSystem=t.resolvedOptions().numberingSystem,this.dateOptions=new Intl.DateTimeFormat(this.locale).resolvedOptions(),this.baseName=new Intl.Locale(this.locale).baseName,this.build()}toInt(e){return"number"==typeof e?e:"string"==typeof e?this.stringToInt(e):void 0}stringToInt(e){if("latn"===this.numberingSystem&&!this.baseName.startsWith("zh")){let t=parseInt(e,10);if(!Number.isNaN(t))return t}let t="";for(let n=0;n<e.length;n++)t+=String(this.lookups.digit[e[n]]);return parseInt(t,10)}millisecondToInt(e){if("number"==typeof e)return e;if("string"!=typeof e)return;let t=e.slice(0,3);return 1===t.length?100*this.stringToInt(t):2===t.length?10*this.stringToInt(t):this.stringToInt(t)}monthNameToInt(e){if("string"!=typeof e)return;let t=e.toLocaleLowerCase(this.locale).replace(/\.$/,"");return this.lookups.month[t]||12}h12ToInt(e,t){if("string"!=typeof e)return;let n=this.lookups.meridiem[t?.toLowerCase()]||0,r=this.stringToInt(e);return r<12&&12===n&&(r+=12),12===r&&0===n&&(r=0),r}zoneToOffset(e){if("string"==typeof e)return e=e.replace(/[^a-z\s]/gi,""),this.lookups.zone[e]}offsetToMinutes(e){if("string"!=typeof e)return;let t=e.match(/^(?:GMT)?([±−+-])(..?):?(..)?$/);if(t){let[,e,n,r]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(n)+(r?this.stringToInt(r):0))}return 0}build(){"latn"===this.dateOptions.numberingSystem?this.lookups.digit=d:this.buildNumbers(),!/^en/i.test(this.locale)&&(this.buildMonthNames(),this.buildDaynames(),/zh/i.test(this.locale)||this.buildMeridiems())}buildNumbers(){let{group:e,lookup:t}=function(e){let t=f[e];if(t)return t;if("fullwide"===e||"hanidec"===e)return{group:c,lookup:{...d}};let n=u[e];if(!n)return{group:"\\d",lookup:{...d}};let r=String.fromCharCode(n),a=String.fromCharCode(n+9),i={};for(let e=0;e<10;e++)i[String.fromCharCode(n+e)]=e;return f[e]={group:`[${r}-${a}]`,lookup:i},f[e]}(this.numberingSystem);for(let n in this.lookups.digit=t,y)Object.hasOwn(y,n)&&(this.vars[n]=y[n].replace(/\*/g,e))}buildMonthNames(){let e={},t={};if(/^fi/i.test(this.locale))"tammi|helmi|maalis|huhti|touko|kes\xe4|hein\xe4|elo|syys|loka|marras|joulu".split("|").forEach((n,r)=>{["","k","kuu","kuuta"].forEach((a,i)=>{e[n+a+(i<2?"\\.?":"")]=!0,t[n+a]=r+1})});else{let n=[],r=e=>"month"===e.type;for(let e=0;e<12;e++)n.push(new Date(2017,e,1));for(let a of["full","long","medium"]){let i=Intl.DateTimeFormat(this.locale,{dateStyle:a});for(let o=0;o<12;o++){let s=i.formatToParts(n[o]).find(r);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===a?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=o+1)}}let a=Intl.DateTimeFormat(this.locale,{month:"short"});for(let i=0;i<12;i++){let o=a.formatToParts(n[i]).find(r);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=i+1}}this.vars.MONTHNAME=Object.keys(e).join("|"),this.lookups.month=t}buildDaynames(){let e=[],t=e=>"weekday"===e.type;for(let t=0;t<7;t++)e.push(new Date(2017,0,t+1));let n=[],r={};for(let a of["long","short"]){let i=Intl.DateTimeFormat(this.locale,{weekday:a});for(let o=0;o<7;o++){let s=i.formatToParts(e[o]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===a?(l=l.replace(/\.$/,""),n.push(`${l}\\.?`)):n.push(l),r[l]=o}}this.vars.DAYNAME=n.join("|"),this.lookups.dayname=r}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,n=[],r={},a=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let i=0;i<2;i++){let o=a.formatToParts(e[i]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);n.push(s),r[s]=12*i}this.vars.MERIDIEM=n.join("|"),this.lookups.meridiem=r}compile(e){return RegExp(e.replace(/_([A-Z0-9]+)_/g,(e,t)=>{if(!this.vars[t])throw Error(`Template string contains invalid variable _${t}_`);return this.vars[t]}),"i")}},b=["ee-TG","en-AS","en-CA","en-FM","en-GH","en-GU","en-KE","en-KY","en-MH","en-MP","en-US","en-VI","en-WS","jp-JP","sm-AS","sm-SM"],x={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},w=()=>new Date;function j(e){return function(t){let n={};for(let r=0,a=e.length;r<a;r++){let a=e[r];a&&(n[a]=t[r])}return n}}var S=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:n,formatter:r}){this.doneChecker=e,this.fallback=t,this.patterns=n,this.formatter=r}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),n={},r=!1;for(let e of this.patterns){let a=t.match(e.regex);if(!a)continue;r=!0;let i=e.handler(a);if(i){for(let[e,t]of Object.entries(i))e in n||void 0===t||(n[e]=t);let e=a.index??0;if(t=(t=t.slice(0,e)+t.slice(e+a[0].length+1)).trim(),this.doneChecker(n,t))break}}return r?this.formatter(n):this.fallback(e)}},E=["year","month","day","hour","minute","second","millisecond","offset"],O={};function k(e,t){return""===t||/^\s+$/.test(t)||"year"in e&&("month"in e||"monthname"in e)&&"day"in e&&"hour"in e&&"minute"in e&&"second"in e&&"millisecond"in e&&("zone"in e||"offset"in e)}var A=[[/([^\d.]+)(\d{1,2})\.(\d{2})\.(\d{2})(\D|$)/,"$1$2:$3:$4$5"],[/([^\d.]+)(\d{1,2})\.(\d{2})(\D|$)/,"$1$2:$3$4"]],D={ar:[[/ /g," "]],bn:[[/,/g,""]],zh:[[/早上\s*([\d:]+)/,"$1am"],[/凌晨\s*([\d:]+)/,"$1am"],[/上午\s*([\d:]+)/,"$1am"],[/下午\s*([\d:]+)/,"$1pm"],[/晚上\s*([\d:]+)/,"$1pm"]],he:[[/ב/gi,""]],de:[[/ um /g," "]],pt:[[/\sde /gi," "]],es:[[/\sde /gi," "]],da:[[/\sden /gi," "],...A],ru:[[/ г\./g,""]],th:[[/\s*นาฬิกา\s*/i,":"],[/\s*นาที\s*/i,":"],[/\s*วินาที\s*/i," "]],ko:[[/\s*시\s*/,":"],[/\s*분\s*/,":"],[/\s*초\s*/,""],[/(오전|오후)\s*([\d:]+)/,"$2$1"],[/(\d{4})\. (\d{1,2})\. (\d{1,2})\./,"$1-$2-$3"]],fi:A,id:A,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function P(e,t=o){let n=function(e){var t,n;let r,a,i=O[e];if(i)return i;let o=g.factory(e),s=new S({doneChecker:k,fallback:(t=e,function(e){let n=String(e).slice(0,50);return""===n&&(n="(empty string)"),{invalid:`Unable to parse "${n}" with locale "${t}"`}}),patterns:(r=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","zone"])},{name:"timestampWithOffsetAndZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? (_OFFSET_|Z)\\s*(_ZONE_)$"),handler:j(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"chinese",regex:o.compile(`^(${c}{2,4})\\s*\u5E74\\s*(${c}{1,2})\\s*\u6708\\s*(${c}{1,2})\\s*\u65E5$`),handler:j(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:j(["","year","month","day"])},{name:"twitter",regex:/^(?:sun|mon|tue|wed|thu|fri|sat) (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) (\d{2}) (\d{2}):(\d{2}):(\d{2}) ([+-]\d{4}) (\d{4})$/i,handler:j(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=w(),n=e[0].toLowerCase(),r={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[n]??0;0!==r&&t.setTime(t.getTime()+r);let a={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===n?{...a,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:a}},{name:"ago",regex:/^(\+|-|in|) ?([\d.]+) ?(years?|months?|weeks?|days?|hours?|minutes?|seconds?|milliseconds?|ms|s|m|h|w|d|M|y)( ago)?$/i,handler:([,e,t,n,r])=>{let a,i=parseFloat(t);"week"===(a=n.length<=2?x[n]:(a=n.replace(/s$/,"")).toLowerCase())&&(a="day",i*=7),("-"===e||r)&&(i*=-1);let o=w();return"millisecond"===a?o.setUTCMilliseconds(o.getUTCMilliseconds()+i):"second"===a?o.setUTCSeconds(o.getUTCSeconds()+i):"minute"===a?o.setUTCMinutes(o.getUTCMinutes()+i):"hour"===a?o.setUTCHours(o.getUTCHours()+i):"day"===a?o.setUTCDate(o.getUTCDate()+i):"month"===a?o.setUTCMonth(o.getUTCMonth()+i):"year"===a&&o.setUTCFullYear(o.getUTCFullYear()+i),{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate(),hour:o.getUTCHours(),minute:o.getUTCMinutes(),second:o.getUTCSeconds(),millisecond:o.getUTCMilliseconds()}}},{name:"atSeconds",regex:/^@(\d+)$/,handler:e=>{let t=new Date(1e3*parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}},{name:"microsoftJson",regex:/^\/Date\((\d+)([+-]\d{4})?\)\/$/,handler:e=>{let t=new Date(parseInt(e[1],10));return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds(),offset:e[2]}}},{name:"full24",regex:o.compile("(?:^|[\\sT])(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?(Z)?$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:j(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:j(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:j(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:j(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:j(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:j(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:j(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:j(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:j(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:j(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:j(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:j(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:j(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:j(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:j(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:j(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:j(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:j(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:j(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:j(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:j(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:j(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:j(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:j(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:j(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:j(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:j(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:j(["offset"])}],a=o.baseName.slice(0,5),b.includes(a)?r:r.filter(e=>!["mdy","md"].includes(e.name))),formatter:(n=o,function(e){let t={};for(let[r,a]of Object.entries(e))if("monthname"===r){if(a){let e=n.monthNameToInt(a);void 0!==e&&(t.month=e)}}else if("hour"===r&&e.meridiem){let r=n.h12ToInt(a,e.meridiem);void 0!==r&&(t.hour=r)}else if("zone"===r){if(a){let e=n.zoneToOffset(a);void 0!==e&&(t.offset=e)}}else if("offset"===r){let e=n.offsetToMinutes(a);void 0!==e&&(t.offset=e)}else if("millisecond"===r){let e=n.millisecondToInt(a);"number"==typeof e&&(t.millisecond=e)}else if(E.includes(r)){let e=n.toInt(a);"number"==typeof e&&(t[r]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===n.dateOptions.calendar&&(t.year-=543),t})});return O[e]=s,s}(t),r=function(e,t){let n=D[t.slice(0,2).toLowerCase()];if(!n)return e;for(let[t,r]of n)e=e.replace(t,r);return e}(e,t);return n.attempt(r)}function C(e){e.month&&e.day&&void 0===e.year&&(e.year=new Date().getFullYear()),60===e.second&&(e.second=59);let t=new s(e.year??NaN,(e.month??NaN)-1,e.day,e.hour||0,e.minute||0,e.second||0,e.millisecond||0);return"number"==typeof e.offset?new s(t.valueOf()-60*e.offset*1e3):t}function T(e,t=o){let n=P(e,t),r=n.invalid?new s(NaN):C(n);return r.isValid()||(r.invalid=`Unable to parse date "${e}"`),r}function N(e,t=o){return e instanceof Date?new s(e.valueOf()):"number"==typeof e?new s(e):T(e,t)}Date.fromString=s.fromString=T,Date.fromAny=s.fromAny=N,"u">typeof window&&(window.anyDateParser={fromString:T,fromAny:N,fromObject:C,attempt:P});var M=n(5350),R=n.n(M),I=n(648),_=n(6871),L=n(2147);let F=function(e){return null==e};var B=n(313),V=n(1851);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){W(e,t,n[t])})}return e}function $(e,t){var n=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return n.get?n.get.call(e):n.value}R().extend(I),R().extend(L),R().extend(_);var H="YYYY-MM-DDTHH:mm:ss.SSSZZ";function G(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&("+"===e[23]||"-"===e[23])&&R()(e,H).isValid()}function q(e){return R()(e).isToday()}function Y(e){return G(e)?R()(e,H).toDate():null}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=R()(e);return t&&(n=n.utc()),n.format(H)}function Z(e){return R()(e).toDate()}var X=new WeakMap,Q=new(function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=this,n=X,r={writable:!0,value:new Map};if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,r)}return e=[{key:"register",value:function(e,t){$(this,X).set(e,t)}},{key:"getCalendar",value:function(e){if(e){if(e.calendar)return e.calendar;if(e.region){var t="".concat(e.language,"-").concat(e.region);if($(this,X).has(t))return $(this,X).get(t)}if(e.language&&$(this,X).has(e.language))return $(this,X).get(e.language);var n=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return $(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),n),n}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,n=null!=e?e:(0,V.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t)?n:new Intl.Locale(n))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=P(e,(0,V.J)());if(n.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(n.day)&&F(n.month)&&(n=Object.assign({},(0,B.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=Object.assign({},(0,B.A)(n,"day"),{date:n.day}));var r=R()().set(n).toDate();return F(n.year)&&(t.year=!1),F(n.month)&&(t.month=!1),F(n.date)&&(t.day=!1),er(r,t)}function er(e,t){var n,r,a=null!=(n=null==t?void 0:t.locale)?n:(0,V.J)(),i=new Intl.Locale(a),o=U({},et,{noToday:"am"===i.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,m=o.numberingSystem,h={calendar:null!=s?s:ee(i),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:m},y=R()(e).isToday();if(y&&!p)r=(r=new Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(a)+r.slice(1);else{"en"===i.language&&(a="en-GB");var v=new Intl.DateTimeFormat(a,h).formatToParts(e);("en"===i.language||"am"===i.language)&&"standard"==l&&f&&c&&(v=v.map(ea("-"))),"wide"==l&&(v=v.map(ea(" — "))),"ethiopic"===h.calendar&&(v=v.filter(function(e,t,n){return"era"!==e.type&&("literal"!==e.type||!(t<n.length-1)||"era"!==n[t+1].type)})),r=v.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(r+=", ".concat(ei(e))),r}var ea=function(e){return function(t,n,r){return"literal"!==t.type||" "!==t.value||n<r.length-1&&"era"===r[n+1].type?t:{type:"literal",value:e}}};function ei(e){return e.toLocaleTimeString((0,V.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var n,r;return er(e,(n=U({},t),r=r={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}function es(e,t){var n=ee("string"==typeof t?new Intl.Locale(t):t);return n?(0,a.yP)(e,(0,i.d)(n)):e}function el(e,t){return new Intl.DurationFormat((0,V.J)(),t).format(e)}function eu(e,t){if(null==e)return null;if("string"==typeof e){var n=P(e,(0,V.J)());return n.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(n.day&&!n.month&&(n=U({},(0,B.A)(n,"day"),{month:n.day})),n.month&&(n.month-=1),n.day&&(n=U({},(0,B.A)(n,"day"),{date:n.day})),R()(t).set(n))}return R()(e)}var ec=["years","months","days","hours","minutes","seconds"],ed={second:"seconds",minute:"minutes",hour:"hours",day:"days",month:"months",year:"years"};function ef(e){var t;return null!=(t=ed[e])?t:e}var ep={seconds:45,minutes:45,hours:22,days:26,months:11,years:1/0};function em(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R()(),r=arguments.length>2?arguments[2]:void 0,a=R()(n),i=eu(e,a);if(null==i)return null;if("string"==typeof r){var o=ef(r);return W({},o,a.diff(i,o))}var s=null!=r?r:{},l=s.thresholds,u=s.largestUnit,c=s.smallestUnit;if(void 0!==u||void 0!==c){var d,f=c?ef(c):void 0;return d="auto"===u||void 0===u?function(e,t,n){for(var r=ec.indexOf(n),a=0;a<ec.length;a++){var i=ec[a];if(t.diff(e,i)>0)return a<=r?i:n}return n}(i,a,null!=f?f:"seconds"):ef(u),function(e,t,n,r){var a=ec.indexOf(n),i=ec.indexOf(r),o=ec.slice(a,i+1),s={},l=e,u=!0,c=!1,d=void 0;try{for(var f,p=o[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,h=t.diff(l,m);s[m]=h,l=l.add(h,m)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(i,a,d,null!=f?f:d)}var p=(t=function(e){var t=U({},ep);if(e){var n=!0,r=!1,a=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s,l=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),2!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(s)||function(e){if(e){if("string"==typeof e)return z(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,2)}}(s)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];void 0!==c&&(t[ef(u)]=c)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}return t}(l),a.diff(i,"seconds")<t.seconds?"seconds":a.diff(i,"minutes")<t.minutes?"minutes":a.diff(i,"hours")<t.hours?"hours":a.diff(i,"days")<t.days?"days":a.diff(i,"months")<t.months?"months":"years");return W({},p,a.diff(i,p))}var eh={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R()(),n=arguments.length>2?arguments[2]:void 0,r=em(e,t,n);return null==r?null:el(r,(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&n.formatOptions?U({},eh,n.formatOptions):eh)}},1851(e,t,n){"use strict";function r(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}n.d(t,{J:()=>r})},7184(e,t,n){"use strict";n.d(t,{g2:()=>i.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>i.a3,LW:()=>i.LW,MS:()=>h,He:()=>f,rX:()=>O,L8:()=>i.L8,VO:()=>g,QC:()=>m,_U:()=>i._U,kQ:()=>i.kQ,qE:()=>i.qE,KW:()=>s,pf:()=>i.pf,kd:()=>function e(t){var n={},r=!0,a=!1,i=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;if(w(t[l])&&t[l].hasOwnProperty("_default"))n[l]=t[l]._default;else{if(l.startsWith("_"))continue;w(t[l])?n[l]=e(t[l]):n[l]=t[l]}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n},L5:()=>P,XE:()=>i.XE,Qr:()=>y,_g:()=>x,a7:()=>i.a7,sc:()=>u.s,w7:()=>d,L3:()=>i.L3,Yq:()=>i.Yq,fU:()=>i.fU,qK:()=>v,d4:()=>i.d4,Cy:()=>o,p0:()=>i.p0,Vp:()=>p,Rt:()=>i.Rt});var r=n(5350),a=n.n(r),i=n(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=a()(t),r=(0,i.qE)(e,n);if(null==r)return null;var o=n.diff(r,"hours"),s=n.diff(r,"days"),l=n.diff(r,"weeks"),u=n.diff(r,"months"),c=n.diff(r,"years"),d={};if(o<2)d.minutes=n.diff(r,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=n.subtract(l,"weeks").diff(r,"days");d.weeks=l,d.days=f}else if(c<2){var p=n.subtract(u,"months").diff(r,"days");d.months=u,d.days=p}else if(c<18){var m=n.subtract(c,"year").diff(r,"months");d.years=c,d.months=m}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a()(),n=o(e,t);if(null==n)return null;var r={style:"short",localeMatcher:"lookup"};return"minutes"in n&&0===n.minutes&&(r.minutesDisplay="always"),(0,i.a3)(n,r)}var l=n(1851),u=n(2316);function c(e){if("string"==typeof e&&0!==e.trim().length){var t=e.replaceAll("_","-");try{return new Intl.Locale(t).toString()}catch(e){return}}}function d(e,t,n){if(null==e)return n;var r=c(e);if(!r)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),n;var a=[],i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}a.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}for(var p=r;p;){var m=function(){var e=a.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",n=a.find(function(e){return e.canonical.startsWith(t)});if(n)return{v:n.original};if("ht"===p)return p="fr-HT","continue";var r=p.lastIndexOf("-");if(-1===r)return"break";var i=(p=p.slice(0,r)).lastIndexOf("-");-1!==i&&p.length-i==2&&(p=p.slice(0,i))}();if("object"==(m&&"u">typeof Symbol&&m.constructor===Symbol?"symbol":typeof m))return m.v;if("break"===m)break}return n}function f(e){return h(g(e,"usual","official"))}function p(e){return f(e)}function m(e){return f(e)}function h(e){var t,n,r,a;return e?null!=(t=e.text)?t:(a=null!=(r=(n=e).given)?r:[],(n.family?a.concat(n.family):a).join(" ")):""}function y(e){return h(e)}function v(e){return h(e)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];0===n.length&&(n=["usual"]);var a=!0,i=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var u=function(){var t,n=s.value,r=null==(t=e.name)?void 0:t.find(function(e){var t,r;return t=e,r=n,t.use?t.use===r:"usual"===r});if(r)return{v:r}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}var b=n(8254);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function w(e){return!!e&&e.constructor===Object}var j=n(8164);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(a.push(t.value),3!==a.length);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw n}}return a}}(t)||function(e){if(e){if("string"==typeof e)return S(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,3)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],a=n[1],i=n[2];return"".concat(r,".").concat(a,".").concat(i)}function O(e,t){var n=function(e){var t=e.indexOf("-");if(t>=0){var n=E(e.slice(0,t)),r=e.slice(t+1);return"".concat(n,"-").concat(r)}return E(e)}(t);return j.satisfies(n,e,{includePrerelease:!0})}function k(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}function A(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){k(i,r,a,o,s,"next",e)}function s(e){k(i,r,a,o,s,"throw",e)}o(void 0)})}}function D(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:l(0)}),s(o,"throw",{value:l(1)}),s(o,"return",{value:l(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function l(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function P(e){return A(function(e){var t,n,r,a,i,o,s,l=arguments;return D(this,function(u){switch(u.label){case 0:n=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,r=t.getDelay,a=t.onError,n=null!=n?n:function(e){return e<=5},r=null!=r?r:function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,n?e+1:e)}(e,1e3)},i=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=r(i),A(function(){return D(this,function(e){return c<=0?[2]:[2,new Promise(function(e){return setTimeout(e,c)})]})})())];case 2:return u.sent(),[4,e()];case 3:return[2,u.sent()];case 4:return s=u.sent(),null==a||a(s,i),o=s,[3,5];case 5:if(n(i++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
|