@egen-civitas/esm-app-shell 2.1.0 → 2.2.0
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 +25 -0
- package/dist/0e44e729978549df.js +1 -0
- package/dist/0e44e729978549df.js.map +1 -0
- package/dist/100e7c99afd2869a.js +1 -0
- package/dist/100e7c99afd2869a.js.map +1 -0
- package/dist/104a9d544f2d1bee.js +1 -0
- package/dist/104a9d544f2d1bee.js.map +1 -0
- package/dist/165cd7c9a57e9fd4.js +1 -0
- package/dist/165cd7c9a57e9fd4.js.map +1 -0
- package/dist/20c375935cdfd472.js +1 -0
- package/dist/20c375935cdfd472.js.map +1 -0
- package/dist/2387ac2d7d438c25.js +1 -0
- package/dist/2387ac2d7d438c25.js.map +1 -0
- package/dist/28213ad7c964ca67.js +1 -0
- package/dist/28213ad7c964ca67.js.map +1 -0
- package/dist/28ee358f798f3afc.js +1 -0
- package/dist/28ee358f798f3afc.js.map +1 -0
- package/dist/2a6578b999e69afa.js +1 -0
- package/dist/2a6578b999e69afa.js.map +1 -0
- package/dist/2e996b9d664c67d5.js +1 -0
- package/dist/2e996b9d664c67d5.js.map +1 -0
- package/dist/2f3c2b970b4f3f2a.js +1 -0
- package/dist/2f3c2b970b4f3f2a.js.map +1 -0
- package/dist/301f10a4f624d74f.js +1 -0
- package/dist/301f10a4f624d74f.js.map +1 -0
- package/dist/3421840c2ad1831a.js +1 -0
- package/dist/3421840c2ad1831a.js.map +1 -0
- package/dist/35750147bebf81e6.js +1 -0
- package/dist/35750147bebf81e6.js.map +1 -0
- package/dist/38e195234254e1ed.js +1 -0
- package/dist/38e195234254e1ed.js.map +1 -0
- package/dist/392ff79c3df465de.js +1 -0
- package/dist/392ff79c3df465de.js.map +1 -0
- package/dist/39e4bad4d556fdf0.js +1 -0
- package/dist/39e4bad4d556fdf0.js.map +1 -0
- package/dist/3f0bf1710c0f5c33.js +1 -0
- package/dist/3f0bf1710c0f5c33.js.map +1 -0
- package/dist/40a802fc37195f5f.js +1 -0
- package/dist/40a802fc37195f5f.js.map +1 -0
- package/dist/4726bdbff3230ea5.js +1 -0
- package/dist/4726bdbff3230ea5.js.map +1 -0
- package/dist/4ce174ac213a420d.js +1 -0
- package/dist/4ce174ac213a420d.js.map +1 -0
- package/dist/503f6ee851a6c84c.js +1 -0
- package/dist/503f6ee851a6c84c.js.map +1 -0
- package/dist/5a15fdd1c746d468.js +1 -0
- package/dist/5a15fdd1c746d468.js.map +1 -0
- package/dist/5c94ce2b2b091a81.js +1 -0
- package/dist/5c94ce2b2b091a81.js.map +1 -0
- package/dist/6740948aa3c94b36.js +1 -0
- package/dist/6740948aa3c94b36.js.map +1 -0
- package/dist/6face530dd71d3ab.js +1 -0
- package/dist/6face530dd71d3ab.js.map +1 -0
- package/dist/6ff5fd266c168d37.js +1 -0
- package/dist/6ff5fd266c168d37.js.map +1 -0
- package/dist/7133b1158c1eee9f.js +1 -0
- package/dist/7133b1158c1eee9f.js.map +1 -0
- package/dist/7405a39d009c0cd9.js +1 -0
- package/dist/7405a39d009c0cd9.js.map +1 -0
- package/dist/746d6624966d97cc.js +1 -0
- package/dist/746d6624966d97cc.js.map +1 -0
- package/dist/7486f1056be8aac2.js +1 -0
- package/dist/7486f1056be8aac2.js.map +1 -0
- package/dist/7fe1ae38f4e52228.js +1 -0
- package/dist/7fe1ae38f4e52228.js.map +1 -0
- package/dist/86ca4f4caca86a05.js +20 -0
- package/dist/86ca4f4caca86a05.js.map +1 -0
- package/dist/8a1e9fb14542294e.js +1 -0
- package/dist/8a1e9fb14542294e.js.map +1 -0
- package/dist/996aced69a32fb34.js +1 -0
- package/dist/996aced69a32fb34.js.map +1 -0
- package/dist/99b0e92c982b69e3.wasm +0 -0
- package/dist/99ff6ed3397c063c.js +1 -0
- package/dist/99ff6ed3397c063c.js.map +1 -0
- package/dist/9da38ddd134bbac0.wasm +0 -0
- package/dist/9f95152ca23cbda2.js +1 -0
- package/dist/9f95152ca23cbda2.js.map +1 -0
- package/dist/9fb2e1c5007395e8.js +1 -0
- package/dist/9fb2e1c5007395e8.js.map +1 -0
- package/dist/a2203b7ab1be4fe5.js +1 -0
- package/dist/a2203b7ab1be4fe5.js.map +1 -0
- package/dist/a5299431ca4e1890.js +1 -0
- package/dist/a5299431ca4e1890.js.map +1 -0
- package/dist/{888ab4f4534f9acb.css → a6455eee3c1cdefe.css} +1 -1
- package/dist/{888ab4f4534f9acb.css.map → a6455eee3c1cdefe.css.map} +1 -1
- package/dist/af9d1a058dafb22f.js +1 -0
- package/dist/b4c358eb41ead1a6.js +1 -0
- package/dist/b4c358eb41ead1a6.js.map +1 -0
- package/dist/b97ae94953bb55a1.js +1 -0
- package/dist/b97ae94953bb55a1.js.map +1 -0
- package/dist/bd220d0c8e3bcf3e.js +1 -0
- package/dist/bd220d0c8e3bcf3e.js.map +1 -0
- package/dist/c2c6850fc4d942cc.js +1 -0
- package/dist/c2c6850fc4d942cc.js.map +1 -0
- package/dist/c4bf6419e95bcb10.js +1 -0
- package/dist/c4bf6419e95bcb10.js.map +1 -0
- package/dist/c5be968929b7b675.js +1 -0
- package/dist/c5be968929b7b675.js.map +1 -0
- package/dist/c6231509ea43d4cf.js +1 -0
- package/dist/c6231509ea43d4cf.js.map +1 -0
- package/dist/c8956121db18ddca.js +1 -0
- package/dist/c8956121db18ddca.js.map +1 -0
- package/dist/cabfdf9ddd4121e9.wasm +0 -0
- package/dist/d2cacd093023c7fc.js +1 -0
- package/dist/d2cacd093023c7fc.js.map +1 -0
- package/dist/d427071073895236.js +1 -0
- package/dist/d427071073895236.js.map +1 -0
- package/dist/d63e75be7857458a.wasm +0 -0
- package/dist/d714a019d4dfd0f1.js +1 -0
- package/dist/d714a019d4dfd0f1.js.map +1 -0
- package/dist/db9d140f9cb6fbb6.js +1 -0
- package/dist/db9d140f9cb6fbb6.js.map +1 -0
- package/dist/deb33db385797b5e.js +1 -0
- package/dist/deb33db385797b5e.js.map +1 -0
- package/dist/ea485a963430e479.js +1 -0
- package/dist/ea485a963430e479.js.map +1 -0
- package/dist/eb96cd859ce842b3.js +1 -0
- package/dist/eb96cd859ce842b3.js.map +1 -0
- package/dist/{egen.f35ccbd9a7ae43e2.js → egen.8b9857424e0e5992.js} +4 -4
- package/dist/egen.8b9857424e0e5992.js.map +1 -0
- package/dist/{egen.a395d41c58c43ffb.css → egen.c5e7dd6c93adda21.css} +1 -1
- package/dist/f3f2147432dcd6ef.js +1 -0
- package/dist/f3f2147432dcd6ef.js.map +1 -0
- package/dist/f443206d9f3ee012.js +1 -0
- package/dist/f443206d9f3ee012.js.map +1 -0
- package/dist/f4941e9d6d02713b.js +1 -0
- package/dist/f4941e9d6d02713b.js.map +1 -0
- package/dist/f516f10149ceaf20.js +1 -0
- package/dist/f516f10149ceaf20.js.map +1 -0
- package/dist/f7e95e9103f6bea5.js +1 -0
- package/dist/f7e95e9103f6bea5.js.map +1 -0
- package/dist/f87c9fff5312393d.js +1 -0
- package/dist/f87c9fff5312393d.js.map +1 -0
- package/dist/fdd8e6bc172cc6c8.js +1 -0
- package/dist/fdd8e6bc172cc6c8.js.map +1 -0
- package/dist/icon_128x128.addc1ce9ab1985d5e40ed48c2de69bb5.png +0 -0
- package/dist/icon_144x144.f4cc490c1b5ae9623ea84e233facf32e.png +0 -0
- package/dist/icon_192x192.628002be9ce9c4510018b7d94b94b90e.png +0 -0
- package/dist/icon_256x256.04e54c3231fe1852ee4f14359bf8fc37.png +0 -0
- package/dist/icon_384x384.9bef3ed318d064b36823da2035f62bec.png +0 -0
- package/dist/icon_512x512.bd73077d044266a7cf5f8bd6d7cb3b1b.png +0 -0
- package/dist/icon_96x96.6ec9feb388f20c73eecf14e2e2aea004.png +0 -0
- package/dist/index.html +1 -1
- package/dist/logo-512.png +0 -0
- package/dist/logo.svg +0 -0
- package/dist/{manifest.60265363becdf876d27bddc4588dc7c2.json → manifest.5a7b59c177c6ce166fbd2239a14d5fb8.json} +7 -7
- package/package.json +3 -3
- package/dist/c18393f118f80bc5.js +0 -1
- package/dist/c18393f118f80bc5.js.map +0 -1
- package/dist/eb27d690cf45cd5e.js +0 -20
- package/dist/eb27d690cf45cd5e.js.map +0 -1
- package/dist/egen.f35ccbd9a7ae43e2.js.map +0 -1
- package/dist/icon_128x128.3dde25c6e69b1c010a6a5d6b27b3f436.png +0 -0
- package/dist/icon_144x144.e263e02b838d229b02ff9133e6e0f2ba.png +0 -0
- package/dist/icon_192x192.d3d318638bbe8a10a3c687d3d302d01a.png +0 -0
- package/dist/icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png +0 -0
- package/dist/icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png +0 -0
- package/dist/icon_512x512.7163efb26df832de513bc58d925ea22e.png +0 -0
- package/dist/icon_96x96.682ee334ae19d49894217370b8596f61.png +0 -0
package/dist/eb27d690cf45cd5e.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["6207"],{6871(e,t){var r,n;function i(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r=this,n=function(){return function(e,t,r){var n=t.prototype,a=function(e){var t=e.date,a=e.utc,o={};if(!(null===t||i(t,Date)||i(t,Array)||n.$utils().u(t)||"Object"!==t.constructor.name)){if(!Object.keys(t).length)return new Date;var s=a?r.utc():r();Object.keys(t).forEach(function(e){var r;o["date"===(r=n.$utils().p(e))?"day":r]=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,h=o.millisecond||0;return a?new Date(Date.UTC(u,c,l,d,f,p,h)):new Date(u,c,l,d,f,p,h)}return t},o=n.parse;n.parse=function(e){e.date=a.bind(this)(e),o.bind(this)(e)};var s=n.set,l=n.add,u=n.subtract,c=function(e,t,r,n){void 0===n&&(n=1);var i=Object.keys(t),a=this;return i.forEach(function(r){a=e.bind(a)(t[r]*n,r)}),a};n.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)},n.add=function(e,t){return"Object"===e.constructor.name?c.bind(this)(l,e,t):l.bind(this)(e,t)},n.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=n():"function"==typeof define&&define.amd?define(n):(r="u">typeof globalThis?globalThis:r||self).dayjs_plugin_objectSupport=n()},2147(e,t){var r,n;r=this,n=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,a){var o=i.prototype;a.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},o.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return a(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(n,i){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],a=i[0],o=60*i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(n)))return this;var o=16>=Math.abs(n)?60*n:n;if(0===o)return this.utc(i);var s=this.clone();if(i)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?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),i=a(e).local();return f.call(n,i,t,r)}}},"object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=n():"function"==typeof define&&define.amd?define(n):(r="u">typeof globalThis?globalThis:r||self).dayjs_plugin_utc=n()},904(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(e){if(!e||"[object Object]"!==r.call(e)||e.nodeType||e.setInterval)return!1;var n,i=t.call(e,"constructor"),a=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(n in e);return void 0===n||t.call(e,n)}e.exports=function e(){var t,r,i,a,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!=(r=arguments[c]))for(i in r)a=u[i],u!==(o=r[i])&&(f&&o&&(n(o)||(s=Array.isArray(o)))?(s?(s=!1,l=a&&Array.isArray(a)?a:[]):l=a&&n(a)?a:{},u[i]=e(f,l,o)):void 0!==o&&(u[i]=o));return u}},6768(e,t,r){!function(t){"use strict";var n=r(9375);function i(e){return function(t,r){var n;return(void 0===t?"undefined":(n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&(r=t,t=null),null==t&&(t=new Date().toString()),r||(r={}),e.call(this,t,r)}}var a=e.exports={generate:i(function(e,t){return new n(e,t)})};t&&(t.fn.geopattern=i(function(e,r){return this.each(function(){var n=t(this).attr("data-title-sha");n&&(r=t.extend({hash:n},r));var i=a.generate(e,r);t(this).css("background-image",i.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,r,n){return t+t+r+r+n+n});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,r,n=e.r,i=e.g,a=e.b,o=Math.max(n/=255,i/=255,a/=255),s=Math.min(n,i,a),l=(o+s)/2;if(o===s)t=r=0;else{var u=o-s;switch(r=l>.5?u/(2-o-s):u/(o+s),o){case n:t=(i-a)/u+6*(i<a);break;case i:t=(a-n)/u+2;break;case a:t=(n-i)/u+4}t/=6}return{h:t,s:r,l:l}},hsl2rgb:function(e){function t(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var r,n,i,a=e.h,o=e.s,s=e.l;if(0===o)r=n=i=s;else{var l=s<.5?s*(1+o):s+o-s*o,u=2*s-l;r=t(u,l,a+1/3),n=t(u,l,a),i=t(u,l,a-1/3)}return{r:Math.round(255*r),g:Math.round(255*n),b:Math.round(255*i)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},9375(e,t,r){"use strict";var n=r(904),i=r(8505),a=r(2088),o=r(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,r){return parseInt(e.substr(t,r||1),16)}function d(e,t,r,n,i){return(parseFloat(e)-t)*(i-n)/(r-t)+n}function f(e){return e%2==0?"#ddd":"#222"}function p(e){return d(e,0,15,.02,.15)}var h=e.exports=function(e,t){return this.opts=n({},s,t),this.hash=t.hash||a(e),this.svg=new o,this.generateBackground(),this.generatePattern(),this};function m(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 g(e,t,r,n,i){var a=y(n),o=p(i[0]),s=f(i[0]),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:s};e.polyline(a,l).transform({translate:[t+n,r],scale:[-1,1]}),e.polyline(a,l).transform({translate:[t+n,r+2*n],scale:[1,-1]}),l={stroke:u,"stroke-opacity":.02,"fill-opacity":o=p(i[1]),fill:s=f(i[1])},e.polyline(a,l).transform({translate:[t+n,r+2*n],scale:[-1,-1]}),e.polyline(a,l).transform({translate:[t+n,r],scale:[1,1]})}function v(e,t,r,n,i){var a=p(i),o=f(i),s=y(n),l={stroke:u,"stroke-opacity":.02,"fill-opacity":a,fill:o};e.polyline(s,l).transform({translate:[t,r+n],scale:[1,-1]}),e.polyline(s,l).transform({translate:[t+2*n,r+n],scale:[-1,-1]}),e.polyline(s,l).transform({translate:[t,r+n],scale:[1,1]}),e.polyline(s,l).transform({translate:[t+2*n,r+n],scale:[-1,1]})}h.prototype.toSvg=function(){return this.svg.toString()},h.prototype.toString=function(){return this.toSvg()},h.prototype.toBase64=function(){var e=this.toSvg();return"u">typeof window&&"function"==typeof window.btoa?window.btoa(e):new Buffer(e).toString("base64")},h.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},h.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},h.prototype.generateBackground=function(){var e,t,r,n;this.opts.color?r=i.hex2rgb(this.opts.color):(t=d(c(this.hash,14,3),0,4095,0,359),n=c(this.hash,17),(e=i.rgb2hsl(i.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,n%2==0?e.s=Math.min(1,(100*e.s+n)/100):e.s=Math.max(0,(100*e.s-n)/100),r=i.hsl2rgb(e)),this.color=i.rgb2hex(r),this.svg.rect(0,0,"100%","100%",{fill:i.rgb2rgbString(r)})},h.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)]()},h.prototype.geoHexagons=function(){var e,t,r,n,i,a,o,s,l,h=d(c(this.hash,0),0,15,8,60),m=h*Math.sqrt(3),y=2*h,g=(s=h/2,[0,l=Math.sin(60*Math.PI/180)*h,s,0,s+h,0,2*h,l,s+h,2*l,s,2*l,0,l].join(","));for(this.svg.setWidth(3*y+3*h),this.svg.setHeight(6*m),t=0,o=0;o<6;o++)for(a=0;a<6;a++)i=c(this.hash,t),e=a%2==0?o*m:o*m+m/2,r=p(i),n={fill:f(i),"fill-opacity":r,stroke:u,"stroke-opacity":.02},this.svg.polyline(g,n).transform({translate:[a*h*1.5-y/2,e-m/2]}),0===a&&this.svg.polyline(g,n).transform({translate:[6*h*1.5-y/2,e-m/2]}),0===o&&(e=a%2==0?6*m:6*m+m/2,this.svg.polyline(g,n).transform({translate:[a*h*1.5-y/2,e-m/2]})),0===a&&0===o&&this.svg.polyline(g,n).transform({translate:[6*h*1.5-y/2,5*m+m/2]}),t++},h.prototype.geoSineWaves=function(){var e,t,r,n,i,a,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++)r=p(a=c(this.hash,t)),e=f(a),o=s/4*.7,i={fill:"none",stroke:e,opacity:r,"stroke-width":""+u+"px"},n="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(n,i).transform({translate:[-s/4,u*t-1.5*l]}),this.svg.path(n,i).transform({translate:[-s/4,u*t-1.5*l+36*u]})},h.prototype.geoChevrons=function(){var e,t,r,n,i,a,o,s=d(c(this.hash,0),0,15,30,80),l=d(c(this.hash,0),0,15,30,80),h=(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(a=0;a<6;a++)r=p(i=c(this.hash,t)),n={stroke:u,"stroke-opacity":.02,fill:f(i),"fill-opacity":r,"stroke-width":1},this.svg.group(n).transform({translate:[a*s,o*l*.66-l/2]}).polyline(h).end(),0===o&&this.svg.group(n).transform({translate:[a*s,6*l*.66-l/2]}).polyline(h).end(),t+=1},h.prototype.geoPlusSigns=function(){var e,t,r,n,i,a,o,s,l=d(c(this.hash,0),0,15,10,25),h=3*l,y=m(l);for(this.svg.setWidth(12*l),this.svg.setHeight(12*l),r=0,s=0;s<6;s++)for(o=0;o<6;o++)n=p(a=c(this.hash,r)),t=f(a),e=+(s%2!=0),i={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":n},this.svg.group(i).transform({translate:[o*h-o*l+e*l-l,s*h-s*l-h/2]}).rect(y).end(),0===o&&this.svg.group(i).transform({translate:[4*h-o*l+e*l-l,s*h-s*l-h/2]}).rect(y).end(),0===s&&this.svg.group(i).transform({translate:[o*h-o*l+e*l-l,4*h-s*l-h/2]}).rect(y).end(),0===o&&0===s&&this.svg.group(i).transform({translate:[4*h-o*l+e*l-l,4*h-s*l-h/2]}).rect(y).end(),r++},h.prototype.geoXes=function(){var e,t,r,n,i,a,o,s=d(c(this.hash,0),0,15,10,25),l=m(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,o=0;o<6;o++)for(a=0;a<6;a++)r=p(i=c(this.hash,t)),e=a%2==0?o*u-.5*u:o*u-.5*u+u/4,n={fill:f(i),opacity:r},this.svg.group(n).transform({translate:[a*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===a&&this.svg.group(n).transform({translate:[6*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===o&&(e=a%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(n).transform({translate:[a*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end()),5===o&&this.svg.group(n).transform({translate:[a*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),0===a&&0===o&&this.svg.group(n).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(l).end(),t++},h.prototype.geoOverlappingCircles=function(){var e,t,r,n,i,a,o=d(c(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=p(n=c(this.hash,e)),r={fill:f(n),opacity:t},this.svg.circle(i*o,a*o,o,r),0===i&&this.svg.circle(6*o,a*o,o,r),0===a&&this.svg.circle(i*o,6*o,o,r),0===i&&0===a&&this.svg.circle(6*o,6*o,o,r),e++},h.prototype.geoOctogons=function(){var e,t,r,n,i,a,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),r=0,o=0;o<6;o++)for(a=0;a<6;a++)n=p(i=c(this.hash,r)),t=f(i),this.svg.polyline(l,{fill:t,"fill-opacity":n,stroke:u,"stroke-opacity":.02}).transform({translate:[a*s,o*s]}),r+=1},h.prototype.geoSquares=function(){var e,t,r,n,i,a,o=d(c(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),t=0,a=0;a<6;a++)for(i=0;i<6;i++)r=p(n=c(this.hash,t)),e=f(n),this.svg.rect(i*o,a*o,o,o,{fill:e,"fill-opacity":r,stroke:u,"stroke-opacity":.02}),t+=1},h.prototype.geoConcentricCircles=function(){var e,t,r,n,i,a,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,a=0;a<6;a++)for(i=0;i<6;i++)r=p(n=c(this.hash,t)),e=f(n),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/2,{fill:"none",stroke:e,opacity:r,"stroke-width":s+"px"}),r=p(n=c(this.hash,39-t)),e=f(n),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/4,{fill:e,"fill-opacity":r}),t+=1},h.prototype.geoOverlappingRings=function(){var e,t,r,n,i,a,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,a=0;a<6;a++)for(i=0;i<6;i++)t=p(n=c(this.hash,e)),r={fill:"none",stroke:f(n),opacity:t,"stroke-width":s+"px"},this.svg.circle(i*o,a*o,o-s/2,r),0===i&&this.svg.circle(6*o,a*o,o-s/2,r),0===a&&this.svg.circle(i*o,6*o,o-s/2,r),0===i&&0===a&&this.svg.circle(6*o,6*o,o-s/2,r),e+=1},h.prototype.geoTriangles=function(){var e,t,r,n,i,a,o,s,l=d(c(this.hash,0),0,15,15,80),h=l/2*Math.sqrt(3),m=[s=l/2,0,l,h,0,h,s,0].join(",");for(this.svg.setWidth(3*l),this.svg.setHeight(6*h),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=p(i=c(this.hash,e)),n={fill:f(i),"fill-opacity":t,stroke:u,"stroke-opacity":.02},r=o%2==0?180*(a%2==0):180*(a%2!=0),this.svg.polyline(m,n).transform({translate:[a*l*.5-l/2,h*o],rotate:[r,l/2,h/2]}),0===a&&this.svg.polyline(m,n).transform({translate:[6*l*.5-l/2,h*o],rotate:[r,l/2,h/2]}),e+=1},h.prototype.geoDiamonds=function(){var e,t,r,n,i,a,o,s=d(c(this.hash,0),0,15,10,50),l=d(c(this.hash,1),0,15,10,50),h=[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(a=0;a<6;a++)r=p(i=c(this.hash,t)),n={fill:f(i),"fill-opacity":r,stroke:u,"stroke-opacity":.02},e=o%2==0?0:s/2,this.svg.polyline(h,n).transform({translate:[a*s-s/2+e,l/2*o-l/2]}),0===a&&this.svg.polyline(h,n).transform({translate:[6*s-s/2+e,l/2*o-l/2]}),0===o&&this.svg.polyline(h,n).transform({translate:[a*s-s/2+e,l/2*6-l/2]}),0===a&&0===o&&this.svg.polyline(h,n).transform({translate:[6*s-s/2+e,l/2*6-l/2]}),t+=1},h.prototype.geoNestedSquares=function(){var e,t,r,n,i,a,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,a=0;a<6;a++)for(i=0;i<6;i++)t=p(n=c(this.hash,e)),r={fill:"none",stroke:f(n),opacity:t,"stroke-width":o+"px"},this.svg.rect(i*s+i*o*2+o/2,a*s+a*o*2+o/2,s,s,r),t=p(n=c(this.hash,39-e)),r={fill:"none",stroke:f(n),opacity:t,"stroke-width":o+"px"},this.svg.rect(i*s+i*o*2+o/2+2*o,a*s+a*o*2+o/2+2*o,3*o,3*o,r),e+=1},h.prototype.geoMosaicSquares=function(){var e,t,r,n=d(c(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*n),this.svg.setHeight(8*n),e=0,r=0;r<4;r++)for(t=0;t<4;t++)t%2==0?r%2==0?v(this.svg,t*n*2,r*n*2,n,c(this.hash,e)):g(this.svg,t*n*2,r*n*2,n,[c(this.hash,e),c(this.hash,e+1)]):r%2==0?g(this.svg,t*n*2,r*n*2,n,[c(this.hash,e),c(this.hash,e+1)]):v(this.svg,t*n*2,r*n*2,n,c(this.hash,e)),e+=1},h.prototype.geoPlaid=function(){var e,t,r,n,i,a,o=0,s=0;for(t=0;t<36;)o+=c(this.hash,t)+5,r=p(a=c(this.hash,t+1)),e=f(a),n=a+5,this.svg.rect(0,o,"100%",n,{opacity:r,fill:e}),o+=n,t+=2;for(t=0;t<36;)s+=c(this.hash,t)+5,r=p(a=c(this.hash,t+1)),e=f(a),i=a+5,this.svg.rect(s,0,i,"100%",{opacity:r,fill:e}),s+=i,t+=2;this.svg.setWidth(s),this.svg.setHeight(o)},h.prototype.geoTessellation=function(){var e,t,r,n,i=d(c(this.hash,0),0,15,5,40),a=i*Math.sqrt(3),o=2*i,s=i/2*Math.sqrt(3),l=[0,0,s,i/2,0,i,0,0].join(","),h=3*i+2*s,m=2*a+2*i;for(this.svg.setWidth(h),this.svg.setHeight(m),e=0;e<20;e++)switch(t=p(n=c(this.hash,e)),r={stroke:u,"stroke-opacity":.02,fill:f(n),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,r),this.svg.rect(h-i/2,-i/2,i,i,r),this.svg.rect(-i/2,m-i/2,i,i,r),this.svg.rect(h-i/2,m-i/2,i,i,r);break;case 1:this.svg.rect(o/2+s,a/2,i,i,r);break;case 2:this.svg.rect(-i/2,m/2-i/2,i,i,r),this.svg.rect(h-i/2,m/2-i/2,i,i,r);break;case 3:this.svg.rect(o/2+s,1.5*a+i,i,i,r);break;case 4:this.svg.polyline(l,r).transform({translate:[i/2,-i/2],rotate:[0,i/2,s/2]}),this.svg.polyline(l,r).transform({translate:[i/2,m- -i/2],rotate:[0,i/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(l,r).transform({translate:[h-i/2,-i/2],rotate:[0,i/2,s/2],scale:[-1,1]}),this.svg.polyline(l,r).transform({translate:[h-i/2,m+i/2],rotate:[0,i/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(l,r).transform({translate:[h/2+i/2,a/2]});break;case 7:this.svg.polyline(l,r).transform({translate:[h-h/2-i/2,a/2],scale:[-1,1]});break;case 8:this.svg.polyline(l,r).transform({translate:[h/2+i/2,m-a/2],scale:[1,-1]});break;case 9:this.svg.polyline(l,r).transform({translate:[h-h/2-i/2,m-a/2],scale:[-1,-1]});break;case 10:this.svg.polyline(l,r).transform({translate:[i/2,m/2-i/2]});break;case 11:this.svg.polyline(l,r).transform({translate:[h-i/2,m/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[-h+i/2,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,r).transform({translate:[i/2,m/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,r).transform({scale:[-1,1],translate:[-h+i/2,m/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,-m+m/2-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[-h+i/2,-m+m/2-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,r).transform({scale:[1,-1],translate:[i/2,-m+i/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,r).transform({scale:[-1,-1],translate:[-h+i/2,-m+i/2],rotate:[-30,0,0]})}}},2088(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,r=0x98badcfe,n=0x10325476,i=0xc3d2e1f0,a=new Uint32Array(80),o=0,s=24,l=0;function u(){for(var s,l,u=16;u<80;u++){var c=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=c<<1|c>>>31}var d=e,f=t,p=r,h=n,m=i;for(u=0;u<80;u++){u<20?(s=h^f&(p^h),l=0x5a827999):u<40?(s=f^p^h,l=0x6ed9eba1):u<60?(s=f&p|h&(f|p),l=0x8f1bbcdc):(s=f^p^h,l=0xca62c1d6);var y=(d<<5|d>>>27)+s+m+l+(0|a[u]);m=h,h=p,p=f<<30|f>>>2,f=d,d=y}for(u=0,e=e+d|0,t=t+f|0,r=r+p|0,n=n+h|0,i=i+m|0,o=0;u<16;u++)a[u]=0}function c(e){a[o]|=(255&e)<<s,s?s-=8:(o++,s=24),16===o&&u()}function d(e){for(var t="",r=28;r>=0;r-=4)t+=(e>>r&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;l+=8*t;for(var r=0;r<t;r++)c(e.charCodeAt(r));return}var n=e.length;l+=8*n;for(var i=0;i<n;i++)c(e[i])},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 a=24;a>=0;a-=8)c(l>>a);return d(e)+d(t)+d(r)+d(n)+d(i)}}}e.exports=function(e){if(void 0===e)return t();var r=t();return r.update(e),r.digest()}},959(e,t,r){"use strict";var n=r(904),i=r(52);function a(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=a,a.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},a.prototype.end=function(){return this.context.pop(),this},a.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},a.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},a.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})},a.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},a.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},a.prototype.toString=function(){return this.svg.toString()},a.prototype.rect=function(e,t,r,a,o){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(o))}),this;var l=i("rect");return this.currentContext().appendChild(l),this.setAttributes(l,n({x:e,y:t,width:r,height:a},o)),this},a.prototype.circle=function(e,t,r,a){var o=i("circle");return this.currentContext().appendChild(o),this.setAttributes(o,n({cx:e,cy:t,r:r},a)),this},a.prototype.path=function(e,t){var r=i("path");return this.currentContext().appendChild(r),this.setAttributes(r,n({d:e},t)),this},a.prototype.polyline=function(e,t){var r=this;if(Array.isArray(e))return e.forEach(function(e){r.polyline(e,t)}),this;var a=i("polyline");return this.currentContext().appendChild(a),this.setAttributes(a,n({points:e},t)),this},a.prototype.group=function(e){var t=i("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,n({},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,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=Symbol("SemVer ANY");e.exports=function(){var e,t;function r(e,t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");if(t=o(t),i(e,r))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===a?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],r=e.match(t);if(!r)throw TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=a}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(d("Comparator.test",e,this.options.loose),this.semver===a||e===a)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(!i(e,r))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 a}}],e&&n(r.prototype,e),t&&n(r,t),r}();var o=r(6480),s=r(4299),l=s.safeRe,u=s.t,c=r(570),d=r(7139),f=r(7583),p=r(7490)},7490(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var a=/\s+/g;e.exports=function(){var e;function t(e,r){var n=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(r=s(r),i(e,t))if(!!r.loose===e.loose&&!!r.includePrerelease===e.includePrerelease)return e;else return new t(e.raw,r);if(i(e,l))return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(a," "),this.set=this.raw.split("||").map(function(e){return n.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!S(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 h=f.value;if(1===h.length&&E(h[0])){this.set=[h];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],r=0;r<t.length;r++)r>0&&(this.formatted+=" "),this.formatted+=t[r].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,r=this;e=e.replace(x,"");var i=((this.options.includePrerelease&&b)|(this.options.loose&&w))+":"+e,a=o.get(i);if(a)return a;var s=this.options.loose,c=s?f[h.HYPHENRANGELOOSE]:f[h.HYPHENRANGE];u("hyphen replace",e=e.replace(c,M(this.options.includePrerelease))),u("comparator trim",e=e.replace(f[h.COMPARATORTRIM],m)),u("tilde trim",e=e.replace(f[h.TILDETRIM],y)),u("caret trim",e=e.replace(f[h.CARETTRIM],g));var d=e.split(" ").map(function(e){return O(e,r.options)}).join(" ").split(/\s+/).map(function(e){return I(e,r.options)});s&&(d=d.filter(function(e){return u("loose invalid filter",e,r.options),!!e.match(f[h.COMPARATORLOOSE])})),u("range list",d);var p=new Map,v=d.map(function(e){return new l(e,r.options)}),E=!0,D=!1,j=void 0;try{for(var P,C=v[Symbol.iterator]();!(E=(P=C.next()).done);E=!0){var k=P.value;if(S(k))return[k];p.set(k.value,k)}}catch(e){D=!0,j=e}finally{try{E||null==C.return||C.return()}finally{if(D)throw j}}p.size>1&&p.has("")&&p.delete("");var A=function(e){if(Array.isArray(e))return n(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 n(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 n(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(i,A),A}},{key:"intersects",value:function(e,r){if(!i(e,t))throw TypeError("a Range is required");return this.set.some(function(t){return D(t,r)&&e.set.some(function(e){return D(e,r)&&t.every(function(t){return e.every(function(e){return t.intersects(e,r)})})})})}},{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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();var o=new(r(3235)),s=r(6480),l=r(6503),u=r(7139),c=r(7583),d=r(4299),f=d.safeRe,p=d.src,h=d.t,m=d.comparatorTrimReplace,y=d.tildeTrimReplace,g=d.caretTrimReplace,v=r(9345),b=v.FLAG_INCLUDE_PRERELEASE,w=v.FLAG_LOOSE,x=RegExp(p[h.BUILD],"g"),S=function(e){return"<0.0.0-0"===e.value},E=function(e){return""===e.value},D=function(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t)}),i=n.pop();return r},O=function(e,t){return u("comp",e=e.replace(f[h.BUILD],""),t),u("caret",e=k(e,t)),u("tildes",e=P(e,t)),u("xrange",e=T(e,t)),u("stars",e=R(e,t)),e},j=function(e){return!e||"x"===e.toLowerCase()||"*"===e},P=function(e,t){return e.trim().split(/\s+/).map(function(e){return C(e,t)}).join(" ")},C=function(e,t){var r=t.loose?f[h.TILDELOOSE]:f[h.TILDE],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,i,a,o){var s;return u("tilde",e,t,r,i,a,o),j(r)?s="":j(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):j(a)?s=">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0"):o?(u("replaceTilde pr",o),s=">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(+i+1,".0-0")):s=">=".concat(r,".").concat(i,".").concat(a," <").concat(r,".").concat(+i+1,".0-0"),u("tilde return",s),s})},k=function(e,t){return e.trim().split(/\s+/).map(function(e){return A(e,t)}).join(" ")},A=function(e,t){u("caret",e,t);var r=t.loose?f[h.CARETLOOSE]:f[h.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,function(t,r,i,a,o){var s;return u("caret",e,t,r,i,a,o),j(r)?s="":j(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):j(a)?s="0"===r?">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0"):o?(u("replaceCaret pr",o),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a,"-").concat(o," <").concat(+r+1,".0.0-0")):(u("no pr"),s="0"===r?"0"===i?">=".concat(r,".").concat(i,".").concat(a," <").concat(r,".").concat(i,".").concat(+a+1,"-0"):">=".concat(r,".").concat(i,".").concat(a," <").concat(r,".").concat(+i+1,".0-0"):">=".concat(r,".").concat(i,".").concat(a," <").concat(+r+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 r=t.loose?f[h.XRANGELOOSE]:f[h.XRANGE];return e.replace(r,function(r,n,i,a,o,s){if(u("xRange",e,r,n,i,a,o,s),l=i,c=a,d=o,j(l)&&!j(c)||j(c)&&d&&!j(d))return e;var l,c,d,f=j(i),p=f||j(a),h=p||j(o);return"="===n&&h&&(n=""),s=t.includePrerelease?"-0":"",f?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(p&&(a=0),o=0,">"===n?(n=">=",p?(i=+i+1,a=0):a=+a+1,o=0):"<="===n&&(n="<",p?i=+i+1:a=+a+1),"<"===n&&(s="-0"),r="".concat(n+i,".").concat(a,".").concat(o).concat(s)):p?r=">=".concat(i,".0.0").concat(s," <").concat(+i+1,".0.0-0"):h&&(r=">=".concat(i,".").concat(a,".0").concat(s," <").concat(i,".").concat(+a+1,".0-0")),u("xRange return",r),r})},R=function(e,t){return u("replaceStars",e,t),e.trim().replace(f[h.STAR],"")},I=function(e,t){return u("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?h.GTE0PRE:h.GTE0],"")},M=function(e){return function(t,r,n,i,a,o,s,l,u,c,d,f){return r=j(n)?"":j(i)?">=".concat(n,".0.0").concat(e?"-0":""):j(a)?">=".concat(n,".").concat(i,".0").concat(e?"-0":""):o?">=".concat(r):">=".concat(r).concat(e?"-0":""),l=j(u)?"":j(c)?"<".concat(+u+1,".0.0-0"):j(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(r," ").concat(l).trim()}},_=function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(var i=0;i<e.length;i++)if(u(e[i].semver),e[i].semver!==l.ANY&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}},7583(e,t,r){"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var i=r(7139),a=r(9345),o=a.MAX_LENGTH,s=a.MAX_SAFE_INTEGER,l=r(4299),u=l.safeRe,c=l.t,d=r(6480),f=r(6640).compareIdentifiers,p=function(e,t){var r=t.split(".");if(r.length>e.length)return!1;for(var n=0;n<r.length;n++)if(0!==f(e[n],r[n]))return!1;return!0};e.exports=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(r=d(r),n(e,t))if(!!r.loose===e.loose&&!!r.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":(a=e)&&"u">typeof Symbol&&a.constructor===Symbol?"symbol":typeof a,'".'));if(e.length>o)throw TypeError("version is longer than ".concat(o," characters"));i("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var a,l=e.trim().match(r.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(i("SemVer.compare",this.version,this.options,e),!n(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(n(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(n(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 r=0;do{var a=this.prerelease[r],o=e.prerelease[r];if(i("prerelease compare",r,a,o),void 0===a&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===a)return -1;else if(a===o)continue;else return f(a,o)}while(++r)}},{key:"compareBuild",value:function(e){n(e,t)||(e=new t(e,this.options));var r=0;do{var a=this.build[r],o=e.build[r];if(i("build compare",r,a,o),void 0===a&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===a)return -1;else if(a===o)continue;else return f(a,o)}while(++r)}},{key:"inc",value:function(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){var n="-".concat(t).match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!n||n[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,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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 i=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[i];else{for(var a=this.prerelease.length;--a>=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);if(-1===a){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){var o=[t,i];!1===r&&(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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},5995(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},570(e,t,r){"use strict";function n(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var i=r(6534),a=r(9962),o=r(4907),s=r(9928),l=r(6228),u=r(4401);e.exports=function(e,t,r,c){switch(t){case"===":return(void 0===e?"undefined":n(e))==="object"&&(e=e.version),(void 0===r?"undefined":n(r))==="object"&&(r=r.version),e===r;case"!==":return(void 0===e?"undefined":n(e))==="object"&&(e=e.version),(void 0===r?"undefined":n(r))==="object"&&(r=r.version),e!==r;case"":case"=":case"==":return i(e,r,c);case"!=":return a(e,r,c);case">":return o(e,r,c);case">=":return s(e,r,c);case"<":return l(e,r,c);case"<=":return u(e,r,c);default:throw TypeError("Invalid operator: ".concat(t))}}},5877(e,t,r){"use strict";var n=r(7583),i=r(5749),a=r(4299),o=a.safeRe,s=a.t;e.exports=function(e,t){if(a=e,null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](a):a instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var a,l,u=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];(l=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&l.index+l[0].length===r.index+r[0].length||(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}else r=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===r)return null;var c=r[2],d=r[3]||"0",f=r[4]||"0",p=t.includePrerelease&&r[5]?"-".concat(r[5]):"",h=t.includePrerelease&&r[6]?"+".concat(r[6]):"";return i("".concat(c,".").concat(d,".").concat(f).concat(p).concat(h),t)}},2740(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r){var i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}},9478(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t){return n(e,t,!0)}},2057(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r){return new n(e,r).compare(new n(t,r))}},6003(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(0===a)return null;var o=a>0,s=o?r:i,l=o?i:r,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 r.major!==i.major?c+"major":r.minor!==i.minor?c+"minor":r.patch!==i.patch?c+"patch":"prerelease"}},6534(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0===n(e,t,r)}},4907(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(e,t,r)>0}},9928(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(e,t,r)>=0}},4006(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t,r,i,a){"string"==typeof r&&(a=i,i=r,r=void 0);try{return new n((null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)?e.version:e,r).inc(t,i,a).version}catch(e){return null}}},6228(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0>n(e,t,r)}},4401(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0>=n(e,t,r)}},9211(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).major}},2895(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).minor}},9962(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return 0!==n(e,t,r)}},5749(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=n&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},6008(e,t,r){"use strict";var n=r(7583);e.exports=function(e,t){return new n(e,t).patch}},510(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},6153(e,t,r){"use strict";var n=r(2057);e.exports=function(e,t,r){return n(t,e,r)}},9268(e,t,r){"use strict";var n=r(2740);e.exports=function(e,t){return e.sort(function(e,r){return n(r,e,t)})}},5775(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t,r){try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},4372(e,t,r){"use strict";var n=r(2740);e.exports=function(e,t){return e.sort(function(e,r){return n(e,r,t)})}},7406(e,t,r){"use strict";var n=r(5749),i=r(9345),a=r(7583),o=function(e,t){return n((null!=a&&"u">typeof Symbol&&a[Symbol.hasInstance]?!!a[Symbol.hasInstance](e):e instanceof a)?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,r){if(!i.RELEASE_TYPES.includes(t))return null;var n=o(e,r);return n&&s(n,t)}},3440(e,t,r){"use strict";var n=r(5749);e.exports=function(e,t){var r=n(e,t);return r?r.version:null}},8164(e,t,r){"use strict";var n=r(4299),i=r(9345),a=r(7583),o=r(6640);e.exports={parse:r(5749),valid:r(3440),clean:r(5995),inc:r(4006),diff:r(6003),major:r(9211),minor:r(2895),patch:r(6008),prerelease:r(510),compare:r(2057),rcompare:r(6153),compareLoose:r(9478),compareBuild:r(2740),sort:r(4372),rsort:r(9268),gt:r(4907),lt:r(6228),eq:r(6534),neq:r(9962),gte:r(9928),lte:r(4401),cmp:r(570),coerce:r(5877),truncate:r(7406),Comparator:r(6503),Range:r(7490),satisfies:r(5775),toComparators:r(7690),maxSatisfying:r(5901),minSatisfying:r(6975),minVersion:r(8158),validRange:r(3429),outside:r(3452),gtr:r(2560),ltr:r(9801),intersects:r(453),simplifyRange:r(1784),subset:r(7885),SemVer:a,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.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,r;function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}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),i=0;i<e;i++)t[i]=arguments[i];return(r=console).error.apply(r,["SEMVER"].concat(function(e){if(Array.isArray(e))return n(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 n(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 n(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]+$/,r=function(e,r){if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;var n=t.test(e),i=t.test(r);return n&&i&&(e*=1,r*=1),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:function(e,t){return r(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 r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}()},6480(e){"use strict";var t=Object.freeze({loose:!0}),r=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:r}},4299(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var i=r(9345),a=i.MAX_SAFE_COMPONENT_LENGTH,o=i.MAX_SAFE_BUILD_LENGTH,s=i.MAX_LENGTH,l=r(7139),u=(t=e.exports={}).re=[],c=t.safeRe=[],d=t.src=[],f=t.safeSrc=[],p=t.t={},h=0,m="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",s],[m,o]],g=function(e){var t=!0,r=!1,i=void 0;try{for(var a,o=y[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s,l=(s=a.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(s)||function(e){if(e){if("string"==typeof e)return n(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 n(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){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},v=function(e,t,r){var n=g(t),i=h++;l(e,i,t),p[e]=i,d[i]=t,f[i]=n,u[i]=new RegExp(t,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(m,"*")),v("MAINVERSION","(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")\\.")+"(".concat(d[p.NUMERICIDENTIFIER],")")),v("MAINVERSIONLOOSE","(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(d[p.NUMERICIDENTIFIERLOOSE],")")),v("PRERELEASEIDENTIFIER","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIER],")")),v("PRERELEASEIDENTIFIERLOOSE","(?:".concat(d[p.NONNUMERICIDENTIFIER],"|").concat(d[p.NUMERICIDENTIFIERLOOSE],")")),v("PRERELEASE","(?:-(".concat(d[p.PRERELEASEIDENTIFIER],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIER],")*))")),v("PRERELEASELOOSE","(?:-?(".concat(d[p.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(d[p.PRERELEASEIDENTIFIERLOOSE],")*))")),v("BUILDIDENTIFIER","".concat(m,"+")),v("BUILD","(?:\\+(".concat(d[p.BUILDIDENTIFIER],"(?:\\.").concat(d[p.BUILDIDENTIFIER],")*))")),v("FULLPLAIN","v?".concat(d[p.MAINVERSION]).concat(d[p.PRERELEASE],"?").concat(d[p.BUILD],"?")),v("FULL","^".concat(d[p.FULLPLAIN],"$")),v("LOOSEPLAIN","[v=\\s]*".concat(d[p.MAINVERSIONLOOSE]).concat(d[p.PRERELEASELOOSE],"?").concat(d[p.BUILD],"?")),v("LOOSE","^".concat(d[p.LOOSEPLAIN],"$")),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE","".concat(d[p.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),v("XRANGEIDENTIFIER","".concat(d[p.NUMERICIDENTIFIER],"|x|X|\\*")),v("XRANGEPLAIN","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIER],")")+"(?:".concat(d[p.PRERELEASE],")?").concat(d[p.BUILD],"?")+")?)?"),v("XRANGEPLAINLOOSE","[v=\\s]*(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(d[p.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(d[p.PRERELEASELOOSE],")?").concat(d[p.BUILD],"?")+")?)?"),v("XRANGE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAIN],"$")),v("XRANGELOOSE","^".concat(d[p.GTLT],"\\s*").concat(d[p.XRANGEPLAINLOOSE],"$")),v("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(a,"})")+"(?:\\.(\\d{1,".concat(a,"}))?")+"(?:\\.(\\d{1,".concat(a,"}))?")),v("COERCE","".concat(d[p.COERCEPLAIN],"(?:$|[^\\d])")),v("COERCEFULL",d[p.COERCEPLAIN]+"(?:".concat(d[p.PRERELEASE],")?")+"(?:".concat(d[p.BUILD],")?")+"(?:$|[^\\d])"),v("COERCERTL",d[p.COERCE],!0),v("COERCERTLFULL",d[p.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM","(\\s*)".concat(d[p.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",v("TILDE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAIN],"$")),v("TILDELOOSE","^".concat(d[p.LONETILDE]).concat(d[p.XRANGEPLAINLOOSE],"$")),v("LONECARET","(?:\\^)"),v("CARETTRIM","(\\s*)".concat(d[p.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",v("CARET","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAIN],"$")),v("CARETLOOSE","^".concat(d[p.LONECARET]).concat(d[p.XRANGEPLAINLOOSE],"$")),v("COMPARATORLOOSE","^".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],")$|^$")),v("COMPARATOR","^".concat(d[p.GTLT],"\\s*(").concat(d[p.FULLPLAIN],")$|^$")),v("COMPARATORTRIM","(\\s*)".concat(d[p.GTLT],"\\s*(").concat(d[p.LOOSEPLAIN],"|").concat(d[p.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE","^\\s*(".concat(d[p.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAIN],")")+"\\s*$"),v("HYPHENRANGELOOSE","^\\s*(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(d[p.XRANGEPLAINLOOSE],")")+"\\s*$"),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2560(e,t,r){"use strict";var n=r(3452);e.exports=function(e,t,r){return n(e,t,">",r)}},453(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t,r){return e=new n(e,r),t=new n(t,r),e.intersects(t,r)}},9801(e,t,r){"use strict";var n=r(3452);e.exports=function(e,t,r){return n(e,t,"<",r)}},5901(e,t,r){"use strict";var n=r(7583),i=r(7490);e.exports=function(e,t,r){var a=null,o=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!a||-1===o.compare(e))&&(o=new n(a=e,r))}),a}},6975(e,t,r){"use strict";var n=r(7583),i=r(7490);e.exports=function(e,t,r){var a=null,o=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(function(e){s.test(e)&&(!a||1===o.compare(e))&&(o=new n(a=e,r))}),a}},8158(e,t,r){"use strict";var n=r(7583),i=r(7490),a=r(4907);e.exports=function(e,t){e=new i(e,t);var r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(var o=0;o<e.set.length;++o)!function(t){var i=e.set[t],o=null;i.forEach(function(e){var t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||a(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: ".concat(e.operator))}}),o&&(!r||a(r,o))&&(r=o)}(o);return r&&e.test(r)?r:null}},3452(e,t,r){"use strict";var n=r(7583),i=r(6503),a=i.ANY,o=r(7490),s=r(5775),l=r(4907),u=r(6228),c=r(4401),d=r(9928);e.exports=function(e,t,r,f){var p,h,m,y,g;switch(e=new n(e,f),t=new o(t,f),r){case">":p=l,h=c,m=u,y=">",g=">=";break;case"<":p=u,h=d,m=l,y="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(var v=0;v<t.set.length;++v){var b=function(r){var n=t.set[r],o=null,s=null;return(n.forEach(function(e){e.semver===a&&(e=new i(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,f)?o=e:m(e.semver,s.semver,f)&&(s=e)}),o.operator===y||o.operator===g||(!s.operator||s.operator===y)&&h(e,s.semver)||s.operator===g&&m(e,s.semver))?{v:!1}:void 0}(v);if("object"==(b&&"u">typeof Symbol&&b.constructor===Symbol?"symbol":typeof b))return b.v}return!0}},1784(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var i=r(5775),a=r(2057);e.exports=function(e,t,r){var o=[],s=null,l=null,u=e.sort(function(e,t){return a(e,t,r)}),c=!0,d=!1,f=void 0;try{for(var p,h=u[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value;i(m,t,r)?(l=m,s||(s=m)):(l&&o.push([s,l]),l=null,s=null)}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}s&&o.push([s,null]);var y=[],g=!0,v=!1,b=void 0;try{for(var w,x=o[Symbol.iterator]();!(g=(w=x.next()).done);g=!0){var S,E=(S=w.value,function(e){if(Array.isArray(e))return e}(S)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(S)||function(e){if(e){if("string"==typeof e)return n(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 n(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.")}()),D=E[0],O=E[1];D===O?y.push(D):O||D!==u[0]?O?D===u[0]?y.push("<=".concat(O)):y.push("".concat(D," - ").concat(O)):y.push(">=".concat(D)):y.push("*")}}catch(e){v=!0,b=e}finally{try{g||null==x.return||x.return()}finally{if(v)throw b}}var j=y.join(" || "),P="string"==typeof t.raw?t.raw:String(t);return j.length<P.length?j:t}},7885(e,t,r){"use strict";var n=r(7490),i=r(6503),a=i.ANY,o=r(5775),s=r(2057),l=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],c=function(e,t,r){if(e===t)return!0;if(1===e.length&&e[0].semver===a)if(1===t.length&&t[0].semver===a)return!0;else e=r.includePrerelease?l:u;if(1===t.length&&t[0].semver===a)if(r.includePrerelease)return!0;else t=u;var n=new Set,i=!0,c=!1,p=void 0;try{for(var h,m,y,g=e[Symbol.iterator]();!(i=(y=g.next()).done);i=!0){var v=y.value;">"===v.operator||">="===v.operator?h=d(h,v,r):"<"===v.operator||"<="===v.operator?m=f(m,v,r):n.add(v.semver)}}catch(e){c=!0,p=e}finally{try{i||null==g.return||g.return()}finally{if(c)throw p}}if(n.size>1)return null;if(h&&m&&((S=s(h.semver,m.semver,r))>0||0===S&&(">="!==h.operator||"<="!==m.operator)))return null;var b=!0,w=!1,x=void 0;try{for(var S,E,D=n[Symbol.iterator]();!(b=(E=D.next()).done);b=!0){var O=E.value;if(h&&!o(O,String(h),r)||m&&!o(O,String(m),r))return null;var j=!0,P=!1,C=void 0;try{for(var k,A=t[Symbol.iterator]();!(j=(k=A.next()).done);j=!0){var T=k.value;if(!o(O,String(T),r))return!1}}catch(e){P=!0,C=e}finally{try{j||null==A.return||A.return()}finally{if(P)throw C}}return!0}}catch(e){w=!0,x=e}finally{try{b||null==D.return||D.return()}finally{if(w)throw x}}var N=!!m&&!r.includePrerelease&&!!m.semver.prerelease.length&&m.semver,R=!!h&&!r.includePrerelease&&!!h.semver.prerelease.length&&h.semver;N&&1===N.prerelease.length&&"<"===m.operator&&0===N.prerelease[0]&&(N=!1);var I=!0,M=!1,_=void 0;try{for(var L,F,B,V,U,W=t[Symbol.iterator]();!(I=(U=W.next()).done);I=!0){var $=U.value;if(V=V||">"===$.operator||">="===$.operator,B=B||"<"===$.operator||"<="===$.operator,h){if(R&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===R.major&&$.semver.minor===R.minor&&$.semver.patch===R.patch&&(R=!1),">"===$.operator||">="===$.operator){if((L=d(h,$,r))===$&&L!==h)return!1}else if(">="===h.operator&&!$.test(h.semver))return!1}if(m){if(N&&$.semver.prerelease&&$.semver.prerelease.length&&$.semver.major===N.major&&$.semver.minor===N.minor&&$.semver.patch===N.patch&&(N=!1),"<"===$.operator||"<="===$.operator){if((F=f(m,$,r))===$&&F!==m)return!1}else if("<="===m.operator&&!$.test(m.semver))return!1}if(!$.operator&&(m||h)&&0!==S)return!1}}catch(e){M=!0,_=e}finally{try{I||null==W.return||W.return()}finally{if(M)throw _}}return(!h||!B||!!m||0===S)&&(!m||!V||!!h||0===S)&&!R&&!N&&!0},d=function(e,t,r){if(!e)return t;var n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},f=function(e,t,r){if(!e)return t;var n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new n(e,r),t=new n(t,r);var i=!1,a=!0,o=!1,s=void 0;try{e:for(var l,u=e.set[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value,f=!0,p=!1,h=void 0;try{for(var m,y=t.set[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){var g=m.value,v=c(d,g,r);if(i=i||null!==v,v)continue e}}catch(e){p=!0,h=e}finally{try{f||null==y.return||y.return()}finally{if(p)throw h}}if(i)return!1}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}return!0}},7690(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t){return new n(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}},3429(e,t,r){"use strict";var n=r(7490);e.exports=function(e,t){try{return new n(e,t).range||"*"}catch(e){return null}}},1017(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(2804),i=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],a={primaryColor:{_type:n.Type.String,_description:"The color for displaying primary classification tags",_default:"red",_validators:[n.validators.oneOf(i)]},secondaryColor:{_type:n.Type.String,_description:"The color for displaying secondary classification tags",_default:"blue",_validators:[n.validators.oneOf(i)]}},o={"Brand color #1":{_default:"#005d5d",_type:n.Type.String},"Brand color #2":{_default:"#004144",_type:n.Type.String},"Brand color #3":{_default:"#007d79",_type:n.Type.String},excludeEntityIdentifierCodeTypes:{uuids:{_type:n.Type.Array,_description:"List of UUIDs of entity identifier types to exclude from rendering in the entity banner",_default:[],_elements:{_type:n.Type.UUID}}},implementationName:{_type:n.Type.String,_description:"The name of the deployment or authority displayed in the UI.",_default:"Framework"},entityPhotoConceptUuid:{_type:n.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:n.Type.Array,_description:"UUIDs of attribute types to show as contact details in the entity banner",_default:[],_elements:{_type:n.Type.UUID}}},preferredCalendar:{_type:n.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:[n.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:n.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:n.Type.String}},classificationTags:a}},2831(e,t,r){"use strict";let n,i,a,o,s,l,u;r.d(t,{dNG:()=>gu,JTN:()=>ti,FNf:()=>PH,eCO:()=>ep,UgN:()=>tk,MTs:()=>mr,wmT:()=>O_,CW5:()=>Ow,ozP:()=>bm,aRn:()=>x,X25:()=>gl,e_T:()=>vp,id:()=>tC,fNA:()=>DJ,vFG:()=>eK,YiA:()=>m3,uBm:()=>bd,yBj:()=>e2,_f_:()=>Ps,tCH:()=>tn,kNS:()=>DB,nFg:()=>eV,Lfm:()=>tf,WO_:()=>bc,Vsm:()=>P8,SvQ:()=>g1,B2u:()=>gg,QsE:()=>Of,toY:()=>mb,cJN:()=>t_,u4h:()=>e1,Bk2:()=>go,gpz:()=>yw,P0c:()=>gq,EPe:()=>mv,jCr:()=>b_,zYs:()=>yb,XEq:()=>e3,MnZ:()=>y2,rpF:()=>ga,LdX:()=>PX,Ojh:()=>h6,dKS:()=>yS,Uve:()=>tR,CU$:()=>mZ,ctS:()=>vc,Wjo:()=>bE,pm$:()=>eb,W5n:()=>lC,XWC:()=>DY,ZyP:()=>mQ,NIm:()=>Od,Kz$:()=>yf,P8U:()=>DD,$iy:()=>y4,jMM:()=>eW,BM2:()=>PK,DeE:()=>y8,Wdn:()=>eP,GF9:()=>Pa,Fny:()=>Dg,WyE:()=>vS,qUP:()=>eN,z0Y:()=>yo,XhU:()=>yz,cJy:()=>bl,et7:()=>gf,YP7:()=>DM,ZLm:()=>gN,LPu:()=>ts,EDM:()=>vb,b6Z:()=>Pq,aJF:()=>td,mqB:()=>I,Dsh:()=>mq,ehn:()=>gi,Qsg:()=>DK,cjw:()=>DZ,SwV:()=>em,GGC:()=>B,mmM:()=>ec,Nqf:()=>yd,tKr:()=>lE,Kpk:()=>el,M9T:()=>yj,JJd:()=>eh,Ua6:()=>lj,EGc:()=>y_,lq$:()=>tr,QeH:()=>OB,lok:()=>gB,gCo:()=>OT,hae:()=>Dz,hZg:()=>th,uDL:()=>Pp,y8:()=>g$,D3D:()=>ex,SQq:()=>gt,XHu:()=>gy,YJP:()=>eS,Fmw:()=>g5,uWG:()=>gI,REV:()=>ei,x9q:()=>vi,OeE:()=>g9,ZLN:()=>ea,CTc:()=>ed,osL:()=>tE,EJV:()=>tw,drd:()=>mj,mIk:()=>Ce,flY:()=>es,b1c:()=>tg,Klm:()=>yZ,zfR:()=>mX,QpY:()=>lD,Q92:()=>gd,q__:()=>gh,s3U:()=>eA,n6L:()=>tL,XvC:()=>v2,Ycj:()=>Ph,bmf:()=>gw,GcC:()=>yr,ckU:()=>K,tdF:()=>gR,EA:()=>c,W4t:()=>ew,bF1:()=>gx,bqE:()=>OP,npY:()=>en,wwY:()=>te,hPu:()=>Ox,pYV:()=>tm,_kB:()=>Di,XB2:()=>eM,yde:()=>Dk,ECF:()=>ge,gFP:()=>P9,Pyy:()=>eU,lyJ:()=>e4,$2H:()=>gb,pyG:()=>eC,A60:()=>eo,ci3:()=>tT,qb_:()=>gj,PtA:()=>tA,Fm9:()=>DH,TC2:()=>g4,slS:()=>lP,Zpy:()=>yU,CGR:()=>DF,Apm:()=>PG,vY7:()=>PY,hXZ:()=>eL,KFv:()=>gS,FtQ:()=>ev,TNY:()=>y9,ZrL:()=>eG,oVc:()=>Ob,Eg0:()=>mx,OC$:()=>tp,WIv:()=>tl,MO4:()=>tx,qLc:()=>Do,dwU:()=>tv,bDP:()=>ef,O_s:()=>lg,USm:()=>eO,uU$:()=>y6,uFu:()=>e0,w21:()=>gc,biy:()=>bi,H0x:()=>tt,cn:()=>yn,GYk:()=>bn,_PX:()=>DE,SCH:()=>eg,koC:()=>h4,_e_:()=>eH,Fnj:()=>eJ,G_3:()=>vl,_1W:()=>vf,rv3:()=>e5,XaH:()=>eR,nvs:()=>y5,qYP:()=>eu,RFy:()=>tc,teX:()=>yV,naI:()=>eB,F3N:()=>g8,CH0:()=>vu,sgv:()=>y7,qpM:()=>DG,RGi:()=>Pm,BpM:()=>yu,cxd:()=>Z,B1u:()=>y1,owH:()=>gr,n$t:()=>h0,uqj:()=>eT,szA:()=>e_,_Xm:()=>eQ,cxq:()=>gs,uQc:()=>ez,SA3:()=>tN,Y21:()=>gp,XzH:()=>va,DYW:()=>ys,vKP:()=>eE,aN0:()=>function e(t,r){var n,i=(0,ma.Q_)(t),a=r.state,o=r.onWorkspaceGroupLaunch,s=r.workspaceGroupCleanup,l=r.workspaceToLaunch,u=function(){return vi}();if(u.getState().openWorkspaces.length){var c=u.getState().workspaceGroup;c?g2(null==c?void 0:c.name,function(){e(t,r)}):vl(function(){e(t,r)})}else u.setState(function(e){return g0(gJ({},e),{workspaceGroup:{name:t,members:i.members,cleanup:s}})}),vp(t,a),null==o||o(),l&&g4(l.name,null!=(n=l.additionalProps)?n:{})},nys:()=>tO,BGy:()=>e8,KId:()=>DP,tMf:()=>vV,vJW:()=>y0,yDT:()=>tS,sCq:()=>DO,TQT:()=>Y,feL:()=>tD,AkA:()=>bu,JrA:()=>lk,Ce6:()=>ek,Rt$:()=>eZ,Oi_:()=>tj,BT6:()=>eq,zZ0:()=>eX,x1U:()=>eF,l6P:()=>OE,uQD:()=>M.u,NOx:()=>yc,Int:()=>tM,oCk:()=>ej,Jbi:()=>PW,KbA:()=>ty,pTx:()=>ba,SwB:()=>tb,MJ8:()=>vt,SKX:()=>gm,AA7:()=>P7,JKc:()=>vr,zlb:()=>g7,WMK:()=>p,rZj:()=>e7,thS:()=>gn,KKH:()=>gv,Fe_:()=>PZ,Ix5:()=>e$,Jc:()=>eI,cQD:()=>ta,Rnm:()=>e6,Zes:()=>tu,f1b:()=>gZ,D6i:()=>D3,PPo:()=>e9,IHy:()=>y3,NAP:()=>to,oy0:()=>tI,Mtm:()=>eD,kE8:()=>er,ZHE:()=>ey,wtE:()=>Os,hLN:()=>bs,tCQ:()=>tP,_RD:()=>vo,hi6:()=>eY});var c={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 d(){document.body.classList.toggle("egen-breakpoint-lt-tablet",window.innerWidth<c.TABLET_MIN),document.body.classList.toggle("egen-breakpoint-gt-phone",window.innerWidth>c.PHONE_MAX),document.body.classList.toggle("egen-breakpoint-gt-tablet",window.innerWidth>c.TABLET_MAX),document.body.classList.toggle("egen-breakpoint-lt-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-small-desktop",window.innerWidth<c.SMALL_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-lt-large-desktop",window.innerWidth<c.LARGE_DESKTOP_MIN),document.body.classList.toggle("egen-breakpoint-gt-small-desktop",window.innerWidth>c.SMALL_DESKTOP_MAX)}var f=!1;function p(){f||(window.addEventListener("resize",d),d(),f=!0)}var h=r(2883),m=r(8783),y=r.n(m),g=r(9663),v=r.n(g),b=r(346);function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){var t,r=e.title,n=e.children,i="tablet"===(0,b.useLayoutType)();return(0,h.jsxs)("div",{className:v()((w(t={},"Vkmd-M3ZdPZe+c6OloVbnw==",i),w(t,"ocWGqN+S6wY3-wV0QG3pOw==",!i),t)),children:[(0,h.jsx)("h4",{children:r}),n]})}let S={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 E=function(e){var t=e.dotsColor;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:S.hLineTop}),(0,h.jsx)("div",{className:S.hLineBottom}),(0,h.jsx)("div",{className:S.dotsFrame,children:(0,h.jsxs)("div",{className:S.dotsGrid,children:[(0,h.jsx)("span",{className:S.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,h.jsx)("span",{className:S.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}}),(0,h.jsx)("span",{className:S.dot,style:{background:t,transform:"translateX(-2.5px)"}}),(0,h.jsx)("span",{className:S.dot,style:{background:t,transform:"translateX(2.5px)",justifySelf:"end"}})]})})]})},D=function(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:S.gradientLineTop}),(0,h.jsx)("div",{className:S.gradientLineBottom}),(0,h.jsx)("div",{className:S.gradientSideLeft}),(0,h.jsx)("div",{className:S.gradientSideRight})]})},O=["topLeft","topRight","bottomLeft","bottomRight"],j=function(){return(0,h.jsx)(h.Fragment,{children:O.map(function(e){return(0,h.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,width:24,height:24,className:"".concat(S.plusIcon," ").concat(S["plusIcon--".concat(e)]),"aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})},e)})})},P=function(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"".concat(S.cornerBracket," ").concat(S["cornerBracket--topLeft"])}),(0,h.jsx)("div",{className:"".concat(S.cornerBracket," ").concat(S["cornerBracket--topRight"])}),(0,h.jsx)("div",{className:"".concat(S.cornerBracket," ").concat(S["cornerBracket--bottomLeft"])}),(0,h.jsx)("div",{className:"".concat(S.cornerBracket," ").concat(S["cornerBracket--bottomRight"])})]})};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e){if(Array.isArray(e))return e}function A(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function N(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function R(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}}var I=(0,m.forwardRef)(function(e,t){var r,n=k(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||R(r)||A(),i=n[0],a=n.slice(1),o=i.variant,s=void 0===o?"default":o,l=i.size,u=i.title,c=i.description,d=i.children,f=i.className,p=i.style,m=i.contentClassName,y=i.contentStyle,g=i.dotsColor,b=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["variant","size","title","description","children","className","style","contentClassName","contentStyle","dotsColor"]),w=(k(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||R(a,1)||A())[0],x=(0,h.jsxs)("div",{className:v()(S.content,m),style:y,children:[u&&(0,h.jsx)("h3",{className:S.title,children:u}),c&&(0,h.jsx)("p",{className:S.description,children:c}),d]}),O=v()(S.card,S["card--".concat(s)],f);switch(s){case"dots":return(0,h.jsxs)("div",N(T({ref:w,className:O,style:p},b),{children:[(0,h.jsx)(E,{dotsColor:void 0===g?"var(--colors-success-500)":g}),(0,h.jsx)("div",{className:S.dotsInner,children:x})]}));case"gradient":return(0,h.jsxs)("div",N(T({ref:w,className:O,style:p},b),{children:[(0,h.jsx)(D,{}),(0,h.jsx)("div",{className:S.gradientInner,children:x})]}));case"inner":return(0,h.jsx)("div",N(T({ref:w,className:O,style:p},b),{children:(0,h.jsx)("div",{className:S.innerPanel,children:x})}));case"plus":return(0,h.jsxs)("div",N(T({ref:w,className:O,style:p},b),{children:[(0,h.jsx)(j,{}),x]}));case"corners":return(0,h.jsxs)("div",N(T({ref:w,className:O,style:p},b),{children:[(0,h.jsx)(P,{}),x]}));case"mirror":return(0,h.jsxs)("div",N(T({ref:w,className:O,style:p},b),{children:[(0,h.jsx)("div",{className:v()(S.mirrorSurface,S["mirrorSurface--".concat(void 0===l?"default":l)]),children:x}),(0,h.jsx)("div",{className:S.mirrorShadow})]}));default:return(0,h.jsx)("div",N(T({ref:w,className:O,style:p},b),{children:x}))}});I.displayName="DecoratedCard";var M=r(1017),_=r(8300),L=r(5565),F={"carbon.table.batch.cancel":"cancel","carbon.table.batch.items.selected":"batchActionsItemsSelected","carbon.table.batch.item.selected":"batchActionItemSelected","carbon.table.batch.selectAll":"selectAll"},B=function(e){return(0,h.jsx)(_.TableBatchActions,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({translateWithId:function(e,t){var r=F[e];return r?(0,L.V)(r,e,t):e}},e))};let V="_8PykSzSXNNdifN25ybqq3w==",U="qsOLntRcFqCu-mnZH0czJA==",W="BserJewmzluWUcq5q8a0yw==",$="n86GzT7Rs8Kf8e25ihYZPg==";function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G=(0,m.createContext)(null);function K(){var e=(0,m.useContext)(G);if(!e)throw Error("useCustomOverflowMenu must be used within a CustomOverflowMenu");return e}function Y(e){var t,r=e.menuTitle,n=e.children,i=function(e){if(Array.isArray(e))return e}(t=y().useState(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||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)}}(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.")}(),a=i[0],o=i[1],s=(0,b.useOnClickOutside)(function(){return o(!1)},a),l="tablet"===(0,b.useLayoutType)(),u=(0,m.useCallback)(function(){return o(function(e){return!e})},[]),c=(0,m.useRef)(null),d=(0,m.useRef)(null),f=(0,m.useId)(),p="custom-overflow-menu-trigger-".concat(f),g="custom-overflow-menu-".concat(f),w=(0,m.useCallback)(function(){var e;o(!1),null==(e=c.current)||e.focus()},[]),x=(0,m.useMemo)(function(){return{closeMenu:w}},[w]),S=(0,m.useCallback)(function(e){"Escape"===e.key&&a&&(e.stopPropagation(),w())},[w,a]),E=m.Children.toArray(n);(0,m.useEffect)(function(){if(a&&d.current){var e=d.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[a]);var D=(0,m.useCallback)(function(e){e.currentIndex;var t,r,n,i,a,o,s=e.direction,l=null==(r=d.current)?void 0:r.querySelectorAll('[role="menuitem"]:not([disabled])');if(null==l?void 0:l.length){var u=null!=(t=null==(i=document.activeElement)||null==(n=i.closest)?void 0:n.call(i,'[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==(a=l[p])||a.focus()}},[]),O=E.map(function(e,t){return(0,m.isValidElement)(e)?(0,m.cloneElement)(e,{closeMenu:w,handleOverflowMenuItemFocus:D,index:t}):e});return(0,h.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",V),ref:s,children:[(0,h.jsx)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":a},$),"aria-controls":g,"aria-expanded":a,"aria-haspopup":"true",id:p,onClick:u,onKeyDown:S,ref:c,children:r}),(0,h.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",U,H({},W,a)),"aria-labelledby":p,"data-floating-menu-direction":"bottom",id:g,onKeyDown:S,ref:d,role:"menu",tabIndex:-1,children:[(0,h.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":l}),children:(0,h.jsx)(G.Provider,{value:x,children:O})}),(0,h.jsx)("span",{})]})]})}function Z(e){var t,r,n=(0,m.useContext)(G);return(0,h.jsx)(_.OverflowMenuItem,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){H(e,t,r[t])})}return e}({},e),r=r={closeMenu:null==n?void 0:n.closeMenu},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var q=r(3511),X=r(6587);function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function J(e){if(Array.isArray(e))return e}function ee(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function et(e,t){if(e){if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}}var er=["egen-icon-activity","egen-icon-add","egen-icon-arrow-down","egen-icon-arrow-left","egen-icon-arrow-right","egen-icon-arrow-up","egen-icon-baby","egen-icon-calendar-heat-map","egen-icon-calendar","egen-icon-caret-down","egen-icon-caret-left","egen-icon-caret-right","egen-icon-caret-up","egen-icon-chart-average","egen-icon-chart-line","egen-icon-checkmark-filled","egen-icon-checkmark-outline","egen-icon-chemistry","egen-icon-chevron-down","egen-icon-chevron-left","egen-icon-chevron-right","egen-icon-chevron-up","egen-icon-close","egen-icon-close-filled","egen-icon-close-outline","egen-icon-document","egen-icon-document-attachment","egen-icon-download","egen-icon-drug-order","egen-icon-edit","egen-icon-event-schedule","egen-icon-events","egen-icon-gender-female","egen-icon-gender-male","egen-icon-gender-other","egen-icon-gender-unknown","egen-icon-generic-order-type","egen-icon-group","egen-icon-group-access","egen-icon-hospital-bed","egen-icon-image-medical","egen-icon-information","egen-icon-information-filled","egen-icon-information-square","egen-icon-inventory-management","egen-icon-lab-order","egen-icon-list-checked","egen-icon-location","egen-icon-material-order","egen-icon-maximize","egen-icon-medication","egen-icon-message-queue","egen-icon-microscope","egen-icon-money","egen-icon-mother","egen-icon-movement","egen-icon-overflow-menu--horizontal","egen-icon-overflow-menu--vertical","egen-icon-password","egen-icon-pedestrian-family","egen-icon-pen","egen-icon-printer","egen-icon-procedure-order","egen-icon-programs","egen-icon-renew","egen-icon-referral-order","egen-icon-report","egen-icon-reset","egen-icon-save","egen-icon-search","egen-icon-settings","egen-icon-shopping-cart","egen-icon-shopping-cart--arrow-down","egen-icon-sticky-note-add","egen-icon-switcher","egen-icon-syringe","egen-icon-table-of-contents","egen-icon-table","egen-icon-time","egen-icon-tools","egen-icon-translate","egen-icon-trash-can","egen-icon-tree-view--alt","egen-icon-user-avatar","egen-icon-user-follow","egen-icon-user-xray","egen-icon-user","egen-icon-view-off","egen-icon-view","egen-icon-warning"],en=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-activity",iconProps:e})})),ei=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-add",iconProps:e})})),ea=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-arrow-down",iconProps:e})})),eo=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-arrow-left",iconProps:e})})),es=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-arrow-right",iconProps:e})})),el=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-arrow-up",iconProps:e})})),eu=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-baby",iconProps:e})})),ec=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-calendar-heat-map",iconProps:e})})),ed=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-calendar",iconProps:e})})),ef=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-caret-down",iconProps:e})})),ep=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-caret-left",iconProps:e})})),eh=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-caret-right",iconProps:e})})),em=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-caret-up",iconProps:e})})),ey=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chart-average",iconProps:e})})),eg=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chart-line",iconProps:e})})),ev=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-checkmark-filled",iconProps:e})})),eb=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-checkmark-outline",iconProps:e})})),ew=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chemistry",iconProps:e})})),ex=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chevron-down",iconProps:e})})),eS=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chevron-left",iconProps:e})})),eE=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chevron-right",iconProps:e})})),eD=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-chevron-up",iconProps:e})})),eO=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-close",iconProps:e})})),ej=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-close-filled",iconProps:e})})),eP=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-close-outline",iconProps:e})})),eC=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-document",iconProps:e})})),ek=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-document-attachment",iconProps:e})})),eA=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-download",iconProps:e})})),eT=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-drug-order",iconProps:e})})),eN=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-edit",iconProps:e})})),eR=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-event-schedule",iconProps:e})})),eI=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-events",iconProps:e})})),eM=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-gender-female",iconProps:e})})),e_=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-gender-male",iconProps:e})})),eL=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-gender-other",iconProps:e})})),eF=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-gender-unknown",iconProps:e})})),eB=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-generic-order-type",iconProps:e})})),eV=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-group",iconProps:e})})),eU=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-group-access",iconProps:e})})),eW=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-hospital-bed",iconProps:e})})),e$=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-image-medical",iconProps:e})})),ez=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-information",iconProps:e})})),eH=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-information-filled",iconProps:e})})),eG=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-information-square",iconProps:e})})),eK=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-inventory-management",iconProps:e})})),eY=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-lab-order",iconProps:e})})),eZ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-list-checked",iconProps:e})})),eq=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-location",iconProps:e})})),eX=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-material-order",iconProps:e})})),eQ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-maximize",iconProps:e})})),eJ=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-medication",iconProps:e})})),e0=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-message-queue",iconProps:e})})),e1=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-microscope",iconProps:e})})),e2=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-money",iconProps:e})})),e3=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-mother",iconProps:e})})),e4=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-movement",iconProps:e})})),e5=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),e6=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-overflow-menu--horizontal",iconProps:e})})),e8=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-password",iconProps:e})})),e9=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-pedestrian-family",iconProps:e})})),e7=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-pen",iconProps:e})})),te=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-printer",iconProps:e})})),tt=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-procedure-order",iconProps:e})})),tr=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-programs",iconProps:e})})),tn=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-referral-order",iconProps:e})})),ti=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-renew",iconProps:e})})),ta=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-report",iconProps:e})})),to=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-reset",iconProps:e})})),ts=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-save",iconProps:e})})),tl=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-search",iconProps:e})})),tu=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-settings",iconProps:e})})),tc=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-switcher",iconProps:e})})),td=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-shopping-cart",iconProps:e})})),tf=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-shopping-cart--arrow-down",iconProps:e})})),tp=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-sticky-note-add",iconProps:e})})),th=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-syringe",iconProps:e})})),tm=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-table-of-contents",iconProps:e})})),ty=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-table",iconProps:e})})),tg=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-time",iconProps:e})})),tv=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-tools",iconProps:e})})),tb=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-translate",iconProps:e})})),tw=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-trash-can",iconProps:e})})),tx=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-tree-view--alt",iconProps:e})})),tS=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-user-avatar",iconProps:e})})),tE=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-user-follow",iconProps:e})})),tD=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-user-xray",iconProps:e})})),tO=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-user",iconProps:e})})),tj=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-view-off",iconProps:e})})),tP=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-view",iconProps:e})})),tC=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(tM,{ref:t,icon:"egen-icon-warning",iconProps:e})})),tk=tC,tA=ek,tT=eZ,tN=e$,tR=tf,tI=(0,m.memo)((0,m.forwardRef)(function(e,t){var r,n=J(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||et(r)||ee(),i=n[0],a=n.slice(1),o=i.icon,s=i.fallback,l=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["icon","fallback"]),u=(J(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||et(a,1)||ee())[0],c=(0,m.useRef)(o?document.getElementById(o):void 0);return(0,m.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;"childList"===s.type&&(c.current=o?document.getElementById(o):void 0)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,h.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,h.jsx)(tM,{ref:u,icon:o,iconProps:l})})})),tM=(0,m.memo)((0,m.forwardRef)(function(e,t){var r=e.icon,n=Object.assign({},{fill:"currentColor",size:20},e.iconProps),i=n.className,a=n.fill,o=n.size;(o<=0||o>72)&&(console.error("Invalid size '".concat(o,"' specified for ").concat(r,". Defaulting to 20.")),o=20);var s=(0,m.useRef)(null);return(0,m.useImperativeHandle)(t,function(){return s.current}),(0,m.useEffect)(function(){s.current&&"currentColor"!==a&&s.current.style.setProperty("--egen-icon-fill",a)},[]),(0,h.jsx)("svg",{ref:s,className:v()("egen-icon","BfFhdfwf1e98NnHqJTMOmw==",i),height:o,width:o,viewBox:"0 0 16 16",children:(0,h.jsx)("use",{href:"#".concat(r)})})})),t_=function(e){var t=e.path,r=e.title,n=e.basePath,i=e.icon,a=(0,q.useTranslation)().t,o=(0,X.useLocation)(),s=(0,m.useMemo)(function(){if(!t)return!1;var e,r=t.startsWith("/")?t.slice(1):t;if(r.startsWith("http"))return r===window.location.href;var n=r.split("/").map(function(e){return decodeURIComponent(e)}),i=(null!=(e=o.pathname)?e:"").split("/").slice(1).map(function(e){return decodeURIComponent(e)});return i.some(function(e,t){return n.every(function(e,r){return i[t+r]===e})})},[o.pathname,t]);return(0,h.jsx)("div",{children:(0,h.jsx)(b.ConfigurableLink,{className:v()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(n,"/").concat(encodeURIComponent(t)),children:(0,h.jsxs)("span",{className:"ds1tfuMnfJ+PmahVRNLpnQ==",children:[(0,h.jsx)(tI,{icon:i,className:"_4ZrrhAdbDQb3EuiAijKGFw==",size:16}),(0,h.jsx)("span",{children:a(r)})]})})},t)};function tL(e){return function(t){var r=t.basePath;return(0,h.jsx)(X.BrowserRouter,{children:(0,h.jsx)(t_,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({basePath:r},e))})}}function tF(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let tB="u">typeof document?y().useLayoutEffect:()=>{},tV={prefix:String(Math.round(1e10*Math.random())),current:0},tU=y().createContext(tV),tW=y().createContext(!1),t$=("u">typeof window&&window.document&&window.document.createElement,new WeakMap),tz="function"==typeof y().useId?function(e){let t=y().useId(),[r]=(0,m.useState)(tY()),n=r?"react-aria":`react-aria${tV.prefix}`;return e||`${n}-${t}`}:function(e){let t=(0,m.useContext)(tU),r=function(e=!1){let t=(0,m.useContext)(tU),r=(0,m.useRef)(null);if(null===r.current&&!e){let e=y().__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let r=t$.get(e);null==r?t$.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,t$.delete(e))}r.current=++t.current}return r.current}(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`};function tH(){return!1}function tG(){return!0}function tK(e){return()=>{}}function tY(){return"function"==typeof y().useSyncExternalStore?y().useSyncExternalStore(tK,tH,tG):(0,m.useContext)(tW)}let tZ=!!("u">typeof window&&window.document&&window.document.createElement),tq=new Map;"u">typeof FinalizationRegistry&&(n=new FinalizationRegistry(e=>{tq.delete(e)}));let tX=new WeakMap;function tQ(e){let[t,r]=(0,m.useState)(e),i=(0,m.useRef)(null),a=tz(t),o=(0,m.useRef)(null),s=tX.get(o);if(n&&s!==a&&(null!=s&&n.unregister(o),n.register(o,a,o),tX.set(o,a)),tZ){let e=tq.get(a);e&&!e.includes(i)?e.push(i):tq.set(a,[i])}return tB(()=>()=>{n&&(n.unregister(o),tX.delete(o)),tq.delete(a)},[a]),(0,m.useEffect)(()=>{let e=i.current;return e&&r(e),()=>{e&&(i.current=null)}}),a}function tJ(e=[]){let t=tQ(),[r,n]=function(e){let[t,r]=(0,m.useState)(e),n=(0,m.useRef)(t),i=(0,m.useRef)(null),a=(0,m.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}n.current===e.value?a.current():r(e.value)});return tB(()=>{n.current=t,i.current&&a.current()}),[t,(0,m.useCallback)(e=>{i.current=e(n.current),a.current()},[a])]}(t),i=(0,m.useCallback)(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return tB(i,[t,i,...e]),r}function t0(...e){return 1===e.length&&e[0]?e[0]:t=>{let r=!1,n=e.map(e=>{let n=t1(e,t);return r||="function"==typeof n,n});if(r)return()=>{n.forEach((t,r)=>{"function"==typeof t?t():t1(e[r],null)})}}}function t1(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let t2=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n};function t3(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],i=n[e];"function"==typeof r&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=tF(r,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof i?t[e]=t2(r,i):"id"===e&&r&&i?t.id=function(e,t){if(e===t)return e;let r=tq.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=tq.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,i):"ref"===e&&r&&i?t.ref=t0(r,i):t[e]=void 0!==i?i:r}}return t}function t4(e){let t=(0,m.useRef)(null),r=(0,m.useRef)(void 0),n=(0,m.useCallback)(t=>{if("function"==typeof e){let r=e(t);return()=>{"function"==typeof r?r():e(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,m.useMemo)(()=>({get current(){return t.current},set current(value){t.current=value,r.current&&(r.current(),r.current=void 0),null!=value&&(r.current=n(value))}}),[n])}let t5=Symbol("default");function t6({values:e,children:t}){for(let[r,n]of e)t=y().createElement(r.Provider,{value:n},t);return t}function t8(e){let{className:t,style:r,children:n,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return(0,m.useMemo)(()=>{let e,u,c;return e="function"==typeof t?t({...s,defaultClassName:i}):t,u="function"==typeof r?r({...s,defaultStyle:o||{}}):r,c="function"==typeof n?n({...s,defaultChildren:a}):null==n?a:n,{className:e??i,style:u||o?{...o,...u}:void 0,children:c??a,"data-rac":"",render:l?e=>l(e,s):void 0}},[t,r,n,i,a,o,s,l])}function t9(e,t){let r=(0,m.useContext)(e);if(null===t)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=t||t5;if(!r.slots[e]){let e=new Intl.ListFormat().format(Object.keys(r.slots).map(e=>`"${e}"`)),n=t?`Invalid slot "${t}".`:"A slot prop is required.";throw Error(`${n} Valid slot names are ${e}.`)}return r.slots[e]}return r}function t7(e,t,r){let{ref:n,...i}=t9(r,e.slot)||{},a=t4((0,m.useMemo)(()=>t0(t,n),[t,n])),o=t3(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&("function"==typeof i.style||"function"==typeof e.style?o.style=t=>{let r="function"==typeof i.style?i.style(t):i.style,n={...t.defaultStyle,...r},a="function"==typeof e.style?e.style({...t,defaultStyle:n}):e.style;return{...n,...a}}:o.style={...i.style,...e.style}),[o,a]}function re(e=!0){let[t,r]=(0,m.useState)(e),n=(0,m.useRef)(!1),i=(0,m.useCallback)(e=>{n.current=!0,r(!!e)},[]);return tB(()=>{n.current||r(!1)},[]),[i,t]}function rt(e){let t=/^(data-.*)$/,r={};for(let n in e)t.test(n)||(r[n]=e[n]);return r}function rr(e,t,r){let{render:n,...i}=t,a=(0,m.useRef)(null),o=(0,m.useMemo)(()=>t0(r,a),[r,a]);tB(()=>{},[e,n]);let s={...i,ref:o};return n?n(s,void 0):y().createElement(e,s)}let rn={},ri=new Proxy({},{get(e,t){if("string"!=typeof t)return;let r=rn[t];return r||(r=(0,m.forwardRef)(rr.bind(null,t)),rn[t]=r),r}}),ra=(0,m.createContext)(null),ro=null;function rs(e,t="assertive",r=7e3){ro?ro.announce(e,t,r):(ro=new rl,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?ro.announce(e,t,r):setTimeout(()=>{ro?.isAttached()&&ro?.announce(e,t,r)},100))}class rl{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",r=7e3){if(!this.node)return;let n=document.createElement("div");"object"==typeof e?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),""!==e&&setTimeout(()=>{n.remove()},r)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}let ru=new Set(["id"]),rc=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),rd=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),rf=new Set(["dir","lang","hidden","inert","translate"]),rp=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"]),rh=/^(data-.*)$/;function rm(e,t={}){let{labelable:r,isLink:n,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ru.has(t)||r&&rc.has(t)||n&&rd.has(t)||i&&rf.has(t)||a&&(rp.has(t)||t.endsWith("Capture")&&rp.has(t.slice(0,-7)))||o?.has(t)||rh.test(t))&&(s[t]=e[t]);return s}function ry(e){if(function(){if(null==rg){rg=!1;try{document.createElement("div").focus({get preventScroll(){return rg=!0,!0}})}catch{}}return rg}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}let rg=null,rv=e=>{var t,r;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:rw(r=e)&&9===r.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},rb=e=>{let t=rv(e);return t?.defaultView??("u">typeof window?window:void 0)};function rw(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function rx(e,t,r,n){if(null==r||null==e)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,r,n);return()=>{for(let e of i)e.removeEventListener(t,r,n)}}function rS(e,t,r,n){if(null==e)return()=>{};let i=[];for(let a of Array.isArray(e)?e:[e]){let e=a.style.getPropertyValue(t),o=a.style.getPropertyPriority(t);a.style.setProperty(t,r,n),i.unshift(()=>{e?a.style.setProperty(t,e,o):a.style.removeProperty(t)})}return()=>{for(let e of i)e()}}function rE(e,t){return!!t&&!!e&&e.contains(t)}function rD(e){return e.target}function rO(e,t){if(null===t)return[];let r=[t=t??rb(e)];return r}function rj(e){if(!e)return!1;let t=e.getRootNode(),r=rb(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return!1;let n=t.activeElement;return null!=n&&e.contains(n)}let rP="u">typeof Element&&"checkVisibility"in Element.prototype;function rC(e,t){return rP?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=rb(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i="none"!==r&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=rb(e),{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||rC(e.parentElement,e))}let rk=["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"],rA=rk.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";rk.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let rT=rk.join(':not([hidden]):not([tabindex="-1"]),');function rN(e,t){return e.matches(rA)&&!rI(e)&&(t?.skipVisibilityCheck||rC(e))}function rR(e){return e.matches(rT)&&rC(e)&&!rI(e)}function rI(e){let t=e;for(;null!=t;){if(t instanceof rb(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function rM(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function r_(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function rL(e){let t=(0,m.useRef)({isFocused:!1,observer:null});return tB(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,m.useCallback)(r=>{let n=rD(r);(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&(t.current.isFocused=!0,n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=rM(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]}))},[e])}let rF=!1;function rB(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 rV(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function rU(e){let t=null;return()=>(null==t&&(t=e()),t)}let rW=rU(function(){return rV(/^Mac/i)}),r$=rU(function(){return rV(/^iPhone/i)}),rz=rU(function(){return rV(/^iPad/i)||rW()&&navigator.maxTouchPoints>1}),rH=rU(function(){return r$()||rz()});rU(function(){return rW()||rH()});let rG=rU(function(){return rB(/AppleWebKit/i)&&(rH()||!rK())});rU(function(){return rG()&&!rK()&&!rZ()});let rK=rU(function(){return rB(/Chrome|CriOS|CrMo/i)}),rY=rU(function(){return rB(/Android/i)}),rZ=rU(function(){return rB(/(Firefox|FxiOS)/i)});function rq(e){return""===e.pointerType&&!!e.isTrusted||(rY()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function rX(e,t,r=!0){let{metaKey:n,ctrlKey:i,altKey:a,shiftKey:o}=t;!rG()&&rZ()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(rW()?n=!0:i=!0);let s=rG()&&rW()&&!rz()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent("click",{metaKey:n,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});rX.isOpening=r,ry(e),e.dispatchEvent(s),rX.isOpening=!1}rX.isOpening=!1;let rQ=null,rJ=new Set,r0=new Map,r1=!1,r2=!1,r3={Tab:!0,Escape:!0};function r4(e,t){for(let r of rJ)r(e,t)}function r5(e){r1=!0,rX.isOpening||e.metaKey||!rW()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(rQ="keyboard",r4("keyboard",e))}function r6(e){rQ="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(r1=!0,r4("pointer",e))}function r8(e){!rX.isOpening&&rq(e)&&(r1=!0,rQ="virtual")}function r9(e){if(rF)return;let t=rD(e),r=rb(t),n=rv(t);if(t===r){r2=!0;return}t!==n&&e.isTrusted&&(r1||r2||(rQ="virtual",r4("virtual",e)),r1=!1,r2=!1)}function r7(){rF||(r1=!1,r2=!0)}function ne(e){if("u"<typeof window||"u"<typeof document)return;let t=rb(e),r=rv(e);if(r0.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){r1=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",r5,!0),r.addEventListener("keyup",r5,!0),r.addEventListener("click",r8,!0),t.addEventListener("focus",r9,!0),t.addEventListener("blur",r7,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",r6,!0),r.addEventListener("pointermove",r6,!0),r.addEventListener("pointerup",r6,!0)),t.addEventListener("beforeunload",()=>{nt(e)},{once:!0}),r0.set(t,{focus:n})}let nt=(e,t)=>{let r=rb(e),n=rv(e);t&&n.removeEventListener("DOMContentLoaded",t),r0.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:r0.get(r).focus}),n.removeEventListener("keydown",r5,!0),n.removeEventListener("keyup",r5,!0),n.removeEventListener("click",r8,!0),r.removeEventListener("focus",r9,!0),r.removeEventListener("blur",r7,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",r6,!0),n.removeEventListener("pointermove",r6,!0),n.removeEventListener("pointerup",r6,!0)),r0.delete(r))};function nr(){return"pointer"!==rQ}"u">typeof document&&("loading"!==(l=rv(void 0)).readyState?ne(void 0):l.addEventListener("DOMContentLoaded",()=>{ne(void 0)}));let nn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ni=new Map,na=new Set;function no(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=r=>{let n=rD(r);if(!e(r)||!n)return;let i=ni.get(n);if(i&&(i.delete(r.propertyName),0===i.size&&(n.removeEventListener("transitioncancel",t),ni.delete(n)),0===ni.size)){for(let e of na)e();na.clear()}};document.body.addEventListener("transitionrun",r=>{let n=rD(r);if(!e(r)||!n)return;let i=ni.get(n);i||(i=new Set,ni.set(n,i),n.addEventListener("transitioncancel",t,{once:!0})),i.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function ns(e){requestAnimationFrame(()=>{for(let[e]of ni)"isConnected"in e&&!e.isConnected&&ni.delete(e);0===ni.size?e():na.add(e)})}function nl(e){if(!e.isConnected)return;let t=rv(e);if("virtual"===rQ){let r=((e=document)=>e.activeElement)(t);ns(()=>{let n=((e=document)=>e.activeElement)(t);(n===r||n===t.body)&&e.isConnected&&ry(e)})}else ry(e)}function nu(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e,a=(0,m.useCallback)(e=>{if(rD(e)===e.currentTarget)return n&&n(e),i&&i(!1),!0},[n,i]),o=rL(a),s=(0,m.useCallback)(e=>{let t=rD(e),n=rv(t),a=n?((e=document)=>e.activeElement)(n):((e=document)=>e.activeElement)();t===e.currentTarget&&t===a&&(r&&r(e),i&&i(!0),o(e))},[i,r,o]);return{focusProps:{onFocus:!t&&(r||i||n)?s:void 0,onBlur:!t&&(n||i)?a:void 0}}}function nc(e){if(e)return t=>{let r=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){r=!0},continuePropagation(){r=!1,"function"==typeof t.continuePropagation&&t.continuePropagation()},isPropagationStopped:()=>r}),r&&!("function"==typeof t.isPropagationStopped&&t.isPropagationStopped())&&t.stopPropagation()}}"u">typeof document&&("loading"!==document.readyState?no():document.addEventListener("DOMContentLoaded",no));let nd=new Set(["shift","alt","control","meta","mod"]),nf=["Alt","Control","Meta","Shift"];function np(e){return nf.filter(t=>e.has(t))}function nh(e){return e.toLowerCase()}let nm={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function ny(e){let t,r,{shortcuts:n,allowRepeats:i=!1,allowComposing:a=!1}=e;if(n){let o=function(e){let t=new Map;for(let[r,n]of Object.entries(e)){let e=function(e){let t=e.split("+").reduce((e,t)=>{let r=t.toLowerCase();return nd.has(r)?"shift"===r?e.shift=!0:"alt"===r?e.alt=!0:"control"===r?e.ctrl=!0:"meta"===r?e.meta=!0:"mod"===r&&(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}(r);t.set(function(e){let t,r,n,i=np((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(rW()?"Meta":"Control"),t)),a=null!=(n=nm[r=nh(e.key)])?n:r;return i.length>0?`${i.join("+")}+${a}`:a}(e),n)}return e=>{let r,n,i,a=(n=np((r=new Set,e.altKey&&r.add("Alt"),e.ctrlKey&&r.add("Control"),e.metaKey&&r.add("Meta"),e.shiftKey&&r.add("Shift"),r)),i=nh(e.key),(n.length>0?`${n.join("+")}+`:"")+i),o=t.get(a),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()}}(n),s=nc(e=>{!rE(e.currentTarget,rD(e))||e.nativeEvent?.repeat&&!i||e.nativeEvent?.isComposing&&!a?e.continuePropagation():o(e)}),l=nc(e=>{!rE(e.currentTarget,rD(e))||e.nativeEvent?.repeat&&!i||e.nativeEvent?.isComposing,e.continuePropagation()});t=e.onKeyDown?tF(e.onKeyDown,s):s,r=e.onKeyUp?tF(e.onKeyUp,l):l}else t=nc(e.onKeyDown),r=nc(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:t,onKeyUp:r}}}function ng(e,t){tB(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let nv=y().createContext(null);function nb(e,t){let{focusProps:r}=nu(e),{keyboardProps:n}=ny(e),i=t3(r,n),a=function(e){let t=(0,m.useContext)(nv)||{};ng(t,e);let{ref:r,...n}=t;return n}(t),o=e.isDisabled?{}:a,s=(0,m.useRef)(e.autoFocus);(0,m.useEffect)(()=>{s.current&&t.current&&nl(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:t3({...i,tabIndex:l},o)}}y().forwardRef(function(e,t){let{children:r,...n}=e,i=t4(t),a={...n,ref:i};return y().createElement(nv.Provider,{value:a},r)});let nw="default",nx="",nS=new WeakMap;function nE(e){if(rH()&&rG())"disabled"===nw&&(nw="restoring",setTimeout(()=>{ns(()=>{if("restoring"===nw){let t=rv(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=nx||""),nx="",nw="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&nS.has(e)){let t=nS.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),nS.delete(e)}}let nD=new WeakMap;function nO(e){let t=rv(e),r=nD.get(t);return void 0!==(r??=function(e,t){let r,n=rb(t),i=rv(t);if(null==i||null==n)return;let a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=i.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&("csp-nonce"===e&&o.nonce&&(r??=o.nonce||void 0),o.content&&(r??=o.content||void 0)),"csp-nonce"===e&&(r??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),r}("csp-nonce",t))&&nD.set(t,r),r}let nj=y().createContext({register:()=>{}});nj.displayName="PressResponderContext";let nP=y().useInsertionEffect??tB;function nC(e){let t=(0,m.useRef)(null);return nP(()=>{t.current=e},[e]),(0,m.useCallback)((...e)=>{let r=t.current;return r?.(...e)},[])}function nk(){let e=(0,m.useRef)(new Map),t=(0,m.useCallback)((t,r,n,i)=>{let a=i?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,a,i)},[]),r=(0,m.useCallback)((t,r,n,i)=>{let a=e.current.get(n)?.fn||n;t.removeEventListener(r,a,i),e.current.delete(n)},[]),n=(0,m.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,m.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}var nA=r(803),nT=r.n(nA);class nN{#e;constructor(e,t,r,n){this.#e=!0;let i=n?.target??r.currentTarget;const a=i?.getBoundingClientRect();let o,s=0,l,u=null;null!=r.clientX&&null!=r.clientY&&(l=r.clientX,u=r.clientY),a&&(null!=l&&null!=u?(o=l-a.left,s=u-a.top):(o=a.width/2,s=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s,this.key=r.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}let nR=Symbol("linkClicked"),nI="react-aria-pressable-style",nM="data-react-aria-pressable";function n_(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,m.useContext)(nj);if(t){let{register:r,ref:n,...i}=t;e=t3(i,e),r()}return ng(t,e.ref),e}(e),[h,y]=(0,m.useState)(!1),g=(0,m.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:b}=nk(),w=(0,m.useCallback)((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,n){let r=new nN("pressstart",t,e);n(r),a=r.shouldStopPropagation}return r&&r(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,y(!0),a},[s,n,r]),x=(0,m.useCallback)((e,n,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(i){let t=new nN("pressend",n,e);i(t),l=t.shouldStopPropagation}if(r&&r(!1),y(!1),t&&a&&!s){let r=new nN("press",n,e);t(r),l&&=r.shouldStopPropagation}return o.isTriggeringEvent=!1,l},[s,i,r,t]),S=nC(x),E=nC((0,m.useCallback)((e,t)=>{let r=g.current;if(s)return!1;if(a){r.isTriggeringEvent=!0;let n=new nN("pressup",t,e);return a(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0},[s,a])),D=(0,m.useCallback)(e=>{let t=g.current;if(t.isPressed&&t.target){for(let r of(t.didFirePressStart&&null!=t.pointerType&&x(nB(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||nE(t.target),t.disposables))r();t.disposables=[]}},[d,b,x]),O=nC(D);(0,m.useEffect)(()=>{s&&g.current.isPressed&&O({currentTarget:g.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let j=(0,m.useCallback)(e=>{c&&D(e)},[c,D]),P=(0,m.useCallback)(e=>{s||o?.(e)},[s,o]),C=(0,m.useCallback)((e,t)=>{if(!s&&o){let r=new MouseEvent("click",e);r_(r,t),o(rM(r))}},[s,o]),k=(0,m.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(nF(t.nativeEvent,t.currentTarget)&&rE(t.currentTarget,rD(t))){nV(rD(t),t.key)&&t.preventDefault();let n=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",n=w(t,"keyboard"));let i=t.currentTarget;v(rv(t.currentTarget),"keyup",tF(t=>{nF(t,i)&&!t.repeat&&rE(i,rD(t))&&e.target&&E(nB(e.target,t),"keyboard")},r),!0),n&&t.stopPropagation(),t.metaKey&&rW()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||rE(t.currentTarget,rD(t)))&&t&&0===t.button&&!e.isTriggeringEvent&&!rX.isOpening){let r=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||rq(t.nativeEvent))){let e=w(t,"virtual"),n=E(t,"virtual"),i=S(t,"virtual");P(t),r=e&&n&&i}else if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",i=E(nB(t.currentTarget,t),n),a=S(nB(t.currentTarget,t),n,!0);r=i&&a,e.isOverTarget=!1,P(t),O(t)}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}},r=t=>{if(e.isPressed&&e.target&&nF(t,e.target)){nV(rD(t),t.key)&&t.preventDefault();let r=rD(t),n=rE(e.target,r);S(nB(e.target,t),"keyboard",n),n&&C(t,e.target),b(),"Enter"!==t.key&&nL(e.target)&&rE(e.target,r)&&!t[nR]&&(t[nR]=!0,rX(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 r of(e.metaKeyEvents=void 0,t.values()))e.target?.dispatchEvent(new KeyboardEvent("keyup",r))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!rE(t.currentTarget,rD(t)))return;if(i=t.nativeEvent,!rY()&&0===i.width&&0===i.height||rY()&&1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||function(e){if(rH()&&rG()){if("default"===nw){let t=rv(e);nx=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}nw="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";nS.set(e,e.style[t]),e.style[t]="none"}}(e.target),a=w(t,e.pointerType);let i=rD(t);"releasePointerCapture"in i&&("hasPointerCapture"in i?i.hasPointerCapture(t.pointerId)&&i.releasePointerCapture(t.pointerId):i.releasePointerCapture(t.pointerId)),v(rv(t.currentTarget),"pointerup",r,!1),v(rv(t.currentTarget),"pointercancel",n,!1)}a&&t.stopPropagation()},t.onMouseDown=t=>{if(rE(t.currentTarget,rD(t))&&0===t.button){if(u){let r=function(e){for(var t;e&&!rN(e,{skipVisibilityCheck:!0});)e=e.parentElement;let r=((e=document)=>e.activeElement)(rb(e).document);if(!r||r===e)return;let n=e?.getRootNode(),i=null!=n&&rw(t=n)&&11===t.nodeType&&"host"in t?n:rb(e),a=t=>t===e||null!=t&&rE(e,t),o=e=>e===r||null!=r&&null!=e&&rE(r,e);rF=!0;let s=!1,l=e=>{(o(rD(e))||s)&&e.stopImmediatePropagation()},u=t=>{(o(rD(t))||s)&&(t.stopImmediatePropagation(),e||s||(s=!0,ry(r),f()))},c=e=>{(a(rD(e))||s)&&e.stopImmediatePropagation()},d=e=>{(a(rD(e))||s)&&(e.stopImmediatePropagation(),s||(s=!0,ry(r),f()))};i.addEventListener("blur",l,!0),i.addEventListener("focusout",u,!0),i.addEventListener("focusin",d,!0),i.addEventListener("focus",c,!0);let f=()=>{cancelAnimationFrame(p),i.removeEventListener("blur",l,!0),i.removeEventListener("focusout",u,!0),i.removeEventListener("focusin",d,!0),i.removeEventListener("focus",c,!0),rF=!1,s=!1},p=requestAnimationFrame(f);return f}(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{rE(t.currentTarget,rD(t))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||E(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,w(nB(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,S(nB(e.target,t),e.pointerType,!1),j(t))};let r=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(rE(e.target,rD(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?O(t):(ry(e.target),e.target.click()))},80);v(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else O(t);e.isOverTarget=!1}},n=e=>{O(e)};t.onDragStart=e=>{rE(e.currentTarget,rD(e))&&O(e)}}return t},[v,s,u,b,d,j,w,P,C]);return(0,m.useEffect)(()=>{if(!f)return;let e=rv(f.current);if(!e||!e.head||e.getElementById(nI))return;let t=e.createElement("style");t.id=nI;let r=nO(e);r&&(t.nonce=r),t.textContent=`
|
|
2
|
-
@layer {
|
|
3
|
-
[${nM}] {
|
|
4
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
`.trim(),e.head.prepend(t)},[f]),(0,m.useEffect)(()=>{let e=g.current;return()=>{for(let t of(d||nE(e.target??void 0),e.disposables))t();e.disposables=[]}},[d]),{isPressed:l||h,pressProps:t3(p,k,{[nM]:!0})}}function nL(e){return"A"===e.tagName&&e.hasAttribute("href")}function nF(e,t){let{key:r,code:n}=e,i=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof rb(t).HTMLInputElement&&!nW(t,r)||t instanceof rb(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&nL(t))&&"Enter"!==r)}function nB(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function nV(e,t){return(!rW()||"Enter"!==t)&&(e instanceof HTMLInputElement?("Enter"!==t||"checkbox"!==e.type&&"radio"!==e.type)&&!nW(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!nL(e)))}let nU=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nW(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:nU.has(e.type)}"u">typeof HTMLTemplateElement&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));let n$=(0,m.createContext)(!1);function nz(e){let t=(t,r)=>(0,m.useContext)(n$)?null:e(t,r);return t.displayName=e.displayName||e.name,(0,m.forwardRef)(t)}function nH(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,a=(0,m.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=nk(),l=(0,m.useCallback)(e=>{rE(e.currentTarget,rD(e))&&a.current.isFocusWithin&&!rE(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),r&&r(e),i&&i(!1))},[r,i,a,s]),u=rL(l),c=(0,m.useCallback)(e=>{if(!rE(e.currentTarget,rD(e)))return;let t=rD(e),r=rv(t),s=((e=document)=>e.activeElement)(r);if(!a.current.isFocusWithin&&s===t){n&&n(e),i&&i(!0),a.current.isFocusWithin=!0,u(e);let t=e.currentTarget;o(r,"focus",e=>{let n=rD(e);if(a.current.isFocusWithin&&!rE(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});r_(e,t),l(rM(e))}},{capture:!0})}},[n,i,u,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function nG(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:i}=e,a=(0,m.useRef)({isFocused:!1,isFocusVisible:r||nr()}),[o,s]=(0,m.useState)(!1),[l,u]=(0,m.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),c=(0,m.useCallback)(()=>u(a.current.isFocused&&a.current.isFocusVisible),[]),d=(0,m.useCallback)(e=>{a.current.isFocused=e,a.current.isFocusVisible=nr(),s(e),c()},[c]);t={enabled:o,isTextInput:n},ne(),(0,m.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,r)=>{var n;let i,o,s,l,u,d,f,p;n=!!t?.isTextInput,o=rv(i=r?rD(r):void 0),l=void 0!==(s=rb(i))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,f=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(o),(n=n||p instanceof l&&!nn.has(p.type)||p instanceof u||p instanceof d&&p.isContentEditable)&&"keyboard"===e&&r instanceof f&&!r3[r.key]||(e=>{a.current.isFocusVisible=e,c()})(nr())};return rJ.add(e),()=>{rJ.delete(e)}},[n,o]);let{focusProps:f}=nu({isDisabled:i,onFocusChange:d}),{focusWithinProps:p}=nH({isDisabled:!i,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:i?p:f}}let nK=!1,nY=0;function nZ(e){"touch"===e.pointerType&&(nK=!0,setTimeout(()=>{nK=!1},500))}function nq(){let e=rv(null);if(void 0!==e)return 0===nY&&"u">typeof PointerEvent&&e.addEventListener("pointerup",nZ),nY++,()=>{!(--nY>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",nZ)}}function nX(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,o]=(0,m.useState)(!1),s=(0,m.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,m.useEffect)(nq,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=nk(),{hoverProps:c,triggerHoverEnd:d}=(0,m.useMemo)(()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:i,pointerType:t}),r&&r(!1),o(!1))},a={};return"u">typeof PointerEvent&&(a.onPointerEnter=n=>{nK&&"mouse"===n.pointerType||((n,a)=>{if(s.pointerType=a,i||"touch"===a||s.isHovered||!rE(n.currentTarget,rD(n)))return;s.isHovered=!0;let u=n.currentTarget;s.target=u,l(rv(rD(n)),"pointerover",t=>{s.isHovered&&s.target&&!rE(s.target,rD(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:a}),r&&r(!0),o(!0)})(n,n.pointerType)},a.onPointerLeave=t=>{!i&&rE(t.currentTarget,rD(t))&&e(t,t.pointerType)}),{hoverProps:a,triggerHoverEnd:e}},[t,r,n,i,s,l,u]);return(0,m.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:c,isHovered:a}}let nQ=(0,m.createContext)({}),nJ=nz(function(e,t){[e,t]=t7(e,t,nQ);let r=e,{isPending:n}=r,{buttonProps:i,isPressed:a}=function(e,t){let r,{elementType:n="button",isDisabled:i,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,type:y="button"}=e;r="button"===n?{type:y,disabled:i,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==n||i?void 0:p,target:"a"===n?h:void 0,type:"input"===n?y:void 0,disabled:"input"===n?i:void 0,"aria-disabled":i&&"input"!==n?i:void 0,rel:"a"===n?m:void 0};let{pressProps:g,isPressed:v}=n_({onPressStart:o,onPressEnd:s,onPressChange:u,onPress:a,onPressUp:l,onClick:f,isDisabled:i,preventFocusOnPress:c,ref:t}),{focusableProps:b}=nb(e,t);d&&(b.tabIndex=i?-1:b.tabIndex);let w=t3(b,g,rm(e,{labelable:!0}));return{isPressed:v,buttonProps:t3(r,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}(e,t);i=function(e,t){if(t){for(let t in e)t.startsWith("on")&&!n0.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}(i,n);let{focusProps:o,isFocused:s,isFocusVisible:l}=nG(e),{hoverProps:u,isHovered:c}=nX({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:n??!1},f=t8({...e,values:d,defaultClassName:"react-aria-Button"}),p=tQ(i.id),h=tQ(),g=i["aria-labelledby"];n&&(g?g=`${g} ${h}`:i["aria-label"]&&(g=`${p} ${h}`));let v=(0,m.useRef)(n);(0,m.useEffect)(()=>{let e={"aria-labelledby":g||p};!v.current&&s&&n?rs(e,"assertive"):v.current&&s&&!n&&rs(e,"assertive"),v.current=n},[n,s,g,p]);let b=rm(e,{global:!0});return delete b.onClick,y().createElement(ri.button,{...t3(b,f,i,o,u),type:"submit"===i.type&&n?"button":i.type,id:p,ref:t,"aria-labelledby":g,slot:e.slot||void 0,"aria-disabled":n?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-pending":n||void 0,"data-focus-visible":l||void 0},y().createElement(ra.Provider,{value:{id:h}},f.children))}),n0=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/,n1=(0,m.createContext)({}),n2=(0,m.createContext)({}),n3=nz(function(e,t){[e,t]=t7(e,t,n2);let{elementType:r="span",...n}=e,i=ri[r];return y().createElement(i,{className:"react-aria-Text",...n,ref:t})});var n4={};function n5(e,t){let r=(0,m.useRef)(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}n4={"ar-AE":{dateRange:e=>`${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,dateSelected:e=>`${e.date} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date}`,todayDateSelected:e=>`\u{627}\u{644}\u{64A}\u{648}\u{645}\u{60C} ${e.date} \u{645}\u{62D}\u{62F}\u{62F}`},"bg-BG":{dateRange:e=>`${e.startDate} \u{434}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{435} ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date}`,todayDateSelected:e=>`\u{414}\u{43D}\u{435}\u{441}, ${e.date} \u{441}\u{430} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{438}`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u{17E} ${e.endDate}`,dateSelected:e=>`Vybr\xe1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdběr rozsahu dat",maximumDate:"Posledn\xed dostupn\xe9 datum",minimumDate:"Prvn\xed dostupn\xe9 datum",next:"Dalš\xed",previous:"Předchoz\xed",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm zah\xe1j\xedte v\xfdběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xe1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xf8re valg af datoomr\xe5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xf8rste ledige dato",next:"N\xe6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xfcgbares Datum",minimumDate:"Erstes verf\xfcgbares Datum",next:"Weiter",previous:"Zur\xfcck",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xe4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,dateSelected:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, ${e.date}`,todayDateSelected:e=>`\u{3A3}\u{3AE}\u{3BC}\u{3B5}\u{3C1}\u{3B1}, \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3C4}\u{3B7}\u{3BA}\u{3B5} ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xdaltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks",maximumDate:"Viimane saadaolev kuup\xe4ev",minimumDate:"Esimene saadaolev kuup\xe4ev",next:"J\xe4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xf5psake kuup\xe4evavahemiku valimiseks",todayDate:e=>`T\xe4na, ${e.date}`,todayDateSelected:e=>`T\xe4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u{2013} ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",maximumDate:"Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",minimumDate:"Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.",todayDate:e=>`T\xe4n\xe4\xe4n, ${e.date}`,todayDateSelected:e=>`T\xe4n\xe4\xe4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xe0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xe9lectionner la plage de dates",maximumDate:"Derni\xe8re date disponible",minimumDate:"Premi\xe8re date disponible",next:"Suivant",previous:"Pr\xe9c\xe9dent",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u{2019}hui, ${e.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:e=>`${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,dateSelected:e=>`${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date}`,todayDateSelected:e=>`\u{5D4}\u{5D9}\u{5D5}\u{5DD}, ${e.date} \u{5E0}\u{5D1}\u{5D7}\u{5E8}`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u{2013}${e.endDate}`,dateSelected:e=>`${e.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez",maximumDate:"Utols\xf3 el\xe9rhető d\xe1tum",minimumDate:"Az első el\xe9rhető d\xe1tum",next:"K\xf6vetkező",previous:"Előző",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xf6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u{304B}\u{3089} ${e.endDate}`,dateSelected:e=>`${e.date} \u{3092}\u{9078}\u{629E}`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`\u{672C}\u{65E5}\u{3001}${e.date}`,todayDateSelected:e=>`\u{672C}\u{65E5}\u{3001}${e.date} \u{3092}\u{9078}\u{629E}`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \u{C120}\u{D0DD}\u{B428}`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`\u{C624}\u{B298}, ${e.date}`,todayDateSelected:e=>`\u{C624}\u{B298}, ${e.date} \u{C120}\u{D0DD}\u{B428}`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`\u{160}iandien, ${e.date}`,todayDateSelected:e=>`\u{160}iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u{12B}dz ${e.endDate}`,dateSelected:e=>`Atlas\u{12B}ts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`\u{160}odien, ${e.date}`,todayDateSelected:e=>`Atlas\u{12B}ta \u{161}odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xf8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xe5 starte valg av datoomr\xe5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wyb\xf3r zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wyb\xf3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xe7\xe3o do intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xe7\xe3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xdaltima data dispon\xedvel",minimumDate:"Primeira data dispon\xedvel",next:"Pr\xf3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xe7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u{103}`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"\xcenainte",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a \xeencepe selecţia razei pentru dată",todayDate:e=>`Ast\u{103}zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u{103}`},"ru-RU":{dateRange:e=>`\u{421} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,dateSelected:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{435}\u{433}\u{43E}\u{434}\u{43D}\u{44F}, \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xfd d\xe1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xedm dokonč\xedte v\xfdber rozsahu d\xe1tumov",maximumDate:"Posledn\xfd dostupn\xfd d\xe1tum",minimumDate:"Prv\xfd dostupn\xfd d\xe1tum",next:"Nasleduj\xface",previous:"Predch\xe1dzaj\xface",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xfd dne\u{161}n\xfd d\xe1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xf6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xe4ngliga datum",minimumDate:"F\xf6rsta tillg\xe4ngliga datum",next:"N\xe4sta",previous:"F\xf6reg\xe5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xf6r att v\xe4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xe7ildi`,finishRangeSelectionPrompt:"Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın",maximumDate:"Son m\xfcsait tarih",minimumDate:"İlk m\xfcsait tarih",next:"Sonraki",previous:"\xd6nceki",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın",todayDate:e=>`Bug\xfcn, ${e.date}`,todayDateSelected:e=>`Bug\xfcn, ${e.date} se\xe7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u{2014} ${e.endDate}`,dateSelected:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, ${e.date}`,todayDateSelected:e=>`\u{421}\u{44C}\u{43E}\u{433}\u{43E}\u{434}\u{43D}\u{456}, \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E} ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9009}\u{62E9} ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9009}\u{62E9}\u{4ECA}\u{5929}\u{FF0C}\u{5373} ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u{81F3} ${e.endDate}`,dateSelected:e=>`\u{5DF2}\u{9078}\u{53D6} ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`\u{4ECA}\u{5929}\u{FF0C}${e.date}`,todayDateSelected:e=>`\u{5DF2}\u{9078}\u{53D6}\u{4ECA}\u{5929}\u{FF0C}${e.date}`}};let n6=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),n8=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function n9(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n6.has(t.script)}let t=e.split("-")[0];return n8.has(t)}let n7=Symbol.for("react-aria.i18n.locale");function ie(){let e="u">typeof window&&window[n7]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:n9(e)?"rtl":"ltr"}}let it=ie(),ir=new Set;function ii(){for(let e of(it=ie(),ir))e(it)}function ia(){let e=tY(),[t,r]=(0,m.useState)(it);return((0,m.useEffect)(()=>(0===ir.size&&window.addEventListener("languagechange",ii),ir.add(r),()=>{ir.delete(r),0===ir.size&&window.removeEventListener("languagechange",ii)}),[]),e)?{locale:"u">typeof window&&window[n7]||"en-US",direction:"ltr"}:t}let io=y().createContext(null);function is(e){let{locale:t,children:r}=e,n=y().useMemo(()=>({locale:t,direction:n9(t)?"rtl":"ltr"}),[t]);return y().createElement(io.Provider,{value:n},r)}function il(e){let{children:t}=e,r=ia();return y().createElement(io.Provider,{value:r},t)}function iu(e){let{locale:t,children:r}=e;return t?y().createElement(is,{locale:t,children:r}):y().createElement(il,{children:r})}function ic(){let e=ia();return(0,m.useContext)(io)||e}let id=new Map;class ip{constructor(e,t={}){this.formatter=im(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),n=this.formatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==ig&&(ig="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),ig&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=im(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(e=>"hour"===e.type).value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(e=>"hour"===e.type).value,10);if(0===n&&23===i)return"h23";if(24===n&&23===i)return"h24";if(0===n&&11===i)return"h11";if(12===n&&11===i)return"h12";throw Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}}let ih={true:{ja:"h11"},false:{}};function im(e,t={}){if("boolean"==typeof t.hour12&&(null==iy&&(iy="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),iy)){let r=ih[String((t={...t}).hour12)][e.split("-")[0]],n=t.hour12?"h12":"h23";t.hourCycle=r??n,delete t.hour12}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(id.has(r))return id.get(r);let n=new Intl.DateTimeFormat(e,t);return id.set(r,n),n}let iy=null,ig=null;function iv(e){e=n5(e??{},ib);let{locale:t}=ic();return(0,m.useMemo)(()=>new ip(t,e),[t,e])}function ib(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}let iw=Symbol.for("react-aria.i18n.locale"),ix=Symbol.for("react-aria.i18n.strings");class iS{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){var n;if(t[e])return t[e];let i=(n=e,Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]),a=function(e){if(Intl.Locale)return new Intl.Locale(e).script}(e);if(a&&t[`${i}-${a}`])return t[`${i}-${a}`];if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[iw];if(void 0===u){let e=window[ix];if(!e)return null;for(let r in u={},e)u[r]=new iS({[t]:e[r]},t)}let r=u?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}let iE=new Map,iD=new Map;class iO{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,a=iE.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:r}),iE.set(i,a)),"function"==typeof(n=t[a.select(e)]||t.other)?n():n}number(e){let t=iD.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),iD.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}let ij=new WeakMap;function iP(e,t){let r;return t&&iS.getGlobalDictionaryForPackage(t)||((r=ij.get(e))||(r=new iS(e),ij.set(e,r)),r)}function iC(e,t){let{locale:r}=ic(),n=iP(e,t);return(0,m.useMemo)(()=>new iO(r,n),[r,n])}var ik=r(240);function iA(e){return e&&e.__esModule?e.default:e}let iT=new WeakMap;function iN(e){return e?.calendar.identifier==="gregory"&&"BC"===e.era?"short":void 0}function iR(e,t,r,n){let i=iC(iA(n4),"@react-aria/calendar"),a=iN(e)||iN(t),o=iv({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r}),s=iv({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:r});return(0,m.useMemo)(()=>{if((0,ik.ro)(e,(0,ik.wH)(e))){let a=e,s=t;if(e.calendar.getFormattableMonth&&(a=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(s=t.calendar.getFormattableMonth(t)),(0,ik.ro)(t,(0,ik.p9)(e)))return o.format(a.toDate(r));if((0,ik.ro)(t,(0,ik.p9)(t)))return n?iI(o,i,a,s,r):o.formatRange(a.toDate(r),s.toDate(r))}return n?iI(s,i,e,t,r):s.formatRange(e.toDate(r),t.toDate(r))},[e,t,o,s,i,r,n])}function iI(e,t,r,n,i){let a=e.formatRangeToParts(r.toDate(i),n.toDate(i)),o=-1;for(let e=0;e<a.length;e++){let t=a[e];if("shared"===t.source&&"literal"===t.type)o=e;else if("endRange"===t.source)break}let s="",l="";for(let e=0;e<a.length;e++)e<o?s+=a[e].value:e>o&&(l+=a[e].value);return t.format("dateRange",{startDate:s,endDate:l})}function iM(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=tQ(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),n||i||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}function i_(e,t){let r=(0,m.useRef)(!0),n=(0,m.useRef)(null),i=nC(e);(0,m.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]),(0,m.useEffect)(()=>{let e=n.current;r.current?r.current=!1:(!e||t.some((t,r)=>!Object.is(t,e[r])))&&i(),n.current=t},t)}function iL(e,t){var r;let n=iC((r=n4)&&r.__esModule?r.default:r,"@react-aria/calendar"),i=rm(e),a=iR(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=iR(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);i_(()=>{t.isFocused||rs(o)},[o]);let s=function(e){let t,r,n=iC(iA(n4),"@react-aria/calendar");"highlightedRange"in e?{start:t,end:r}=e.highlightedRange||{}:(t=Array.isArray(e.value)?e.value[0]:e.value??void 0,r=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let i=iv({weekday:"long",month:"long",year:"numeric",day:"numeric",era:iN(t)||iN(r),timeZone:e.timeZone}),{locale:a}=ic(),o=(0,m.useMemo)(()=>new Intl.ListFormat(a),[a]),s="anchorDate"in e?e.anchorDate:null;return(0,m.useMemo)(()=>{if(!s&&t&&r){if((0,ik.ro)(t,r)){let r=i.format(t.toDate(e.timeZone));return n.format("selectedDateDescription",{date:r})}else if("highlightedRange"in e){let a=iI(i,n,t,r,e.timeZone);return n.format("selectedRangeDescription",{dateRange:a})}else if(Array.isArray(e.value)){let t=e.value.map(t=>i.format(t.toDate(e.timeZone))),r=o.format(t);return n.format("selectedDateDescription",{date:r})}}return""},[t,r,s,e,n,i,o])}(t);i_(()=>{s&&rs(s,"polite",4e3)},[s]);let l=tJ([!!e.errorMessage,e.isInvalid,e.validationState]);iT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:s});let[u,c]=(0,m.useState)(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&u&&(c(!1),t.setFocused(!0));let[f,p]=(0,m.useState)(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();return h&&f&&(p(!1),t.setFocused(!0)),{calendarProps:t3(i,iM({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:c},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:l},title:a}}function iF(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&"hidden"!==r.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function iB(e,t){let r=e;for(iF(r,t)&&(r=r.parentElement);r&&!iF(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function iV(e,t){let r=[],n=document.scrollingElement||document.documentElement;for(;e&&(iF(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function iU(e,t,r={}){if(e===t)return;let n=t.getBoundingClientRect();!function(e,t,r,n={}){let{block:i="nearest",inline:a="nearest"}=n,o=e.scrollTop,s=e.scrollLeft,l=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:l.top,h=e===d?e.clientHeight:l.bottom,m=e===d?0:l.left,y=e===d?e.clientWidth:l.right,g=parseFloat(u.scrollMarginTop)||0,v=parseFloat(u.scrollMarginBottom)||0,b=parseFloat(u.scrollMarginLeft)||0,w=parseFloat(u.scrollMarginRight)||0,x=parseFloat(c.scrollPaddingTop)||0,S=parseFloat(c.scrollPaddingBottom)||0,E=parseFloat(c.scrollPaddingLeft)||0,D=parseFloat(c.scrollPaddingRight)||0,O=parseFloat(c.borderTopWidth)||0,j=parseFloat(c.borderBottomWidth)||0,P=parseFloat(c.borderLeftWidth)||0,C=parseFloat(c.borderRightWidth)||0,k=r.top-g,A=r.bottom+v,T=r.left-b,N=r.right+w,R=e===d?0:P+C,I=e===d?0:O+j,M=e===d?0:e.offsetWidth-e.clientWidth-R,_=e===d?0:e.offsetHeight-e.clientHeight-I,L=p+(f?0:O)+x,F=h-(f?0:j)-S-_,B=m+(f?0:P)+E,V=y-(f?0:C)-D;rH()&&rG()||"ltr"===c.direction?V-=M:"rtl"===c.direction&&(B+=M);let U=k<L||A>F,W=T<B||N>V;if(U&&"start"===i)o+=k-L;else if(U&&"center"===i)o+=(k+A)/2-(L+F)/2;else if(U&&"end"===i)o+=A-F;else if(U&&"nearest"===i){let e=k-L,t=A-F;o+=Math.abs(e)<=Math.abs(t)?e:t}if(W&&"start"===a)s+=T-B;else if(W&&"center"===a)s+=(T+N)/2-(B+V)/2;else if(W&&"end"===a)s+=N-V;else if(W&&"nearest"===a){let e=T-B,t=N-V;s+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:s,top:o})}(e,t,n,r)}function iW(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:n}=e.getBoundingClientRect(),i=iV(e,!0);for(let t of i)iU(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(n-o)>1){for(let e of i=r?iV(r,!0):[])iU(e,r,{block:"center",inline:"center"});for(let t of iV(e,!0))iU(t,e)}}else{let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(n-a)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let i$=0,iz=new Map;function iH(e){let[t,r]=(0,m.useState)();return tB(()=>{if(!e)return;let t=iz.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${i$++}`;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},iz.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),iz.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function iG(e,t,r,n){let i=nC(r),a=null==r;(0,m.useEffect)(()=>{if(!a&&null!=e.current)return rx(e.current,t,i,n)},[e,t,n,a])}var iK=r(227),iY=r(9405);function iZ(e,t,r){return null!=t&&0>e.compare(t)||null!=r&&e.compare(r)>0}function iq(e,t,r,n,i){let a={};for(let e in t)a[e]=Math.floor(t[e]/2),a[e]>0&&t[e]%2==0&&a[e]--;let o=iX(e,t,r).subtract(a);return iJ(e,o,t,r,n,i)}function iX(e,t,r,n,i){let a=e;return t.years?a=(0,ik.D)(e):t.months?a=(0,ik.wH)(e):(t.weeks||t.days&&t.days>7)&&(a=(0,ik.kq)(e,r)),iJ(e,a,t,r,n,i)}function iQ(e,t,r,n,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=iX(e,t,r).subtract(a);return iJ(e,o,t,r,n,i)}function iJ(e,t,r,n,i,a){if(i&&e.compare(i)>=0){let e=(0,ik.ZI)(t,iX((0,iY.gw)(i),r,n));e&&(t=e)}if(a&&0>=e.compare(a)){let e=(0,ik.Py)(t,iQ((0,iY.gw)(a),r,n));e&&(t=e)}return t}function i0(e,t,r){if(t){let r=(0,ik.ZI)(e,(0,iY.gw)(t));r&&(e=r)}if(r){let t=(0,ik.Py)(e,(0,iY.gw)(r));t&&(e=t)}return e}function i1(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}let i2="u">typeof document?y().useInsertionEffect??y().useLayoutEffect:()=>{};function i3(e,t,r){let[n,i]=(0,m.useState)(e||t),a=(0,m.useRef)(n),o=(0,m.useRef)(void 0!==e),s=void 0!==e;(0,m.useEffect)(()=>{o.current,o.current=s},[s]);let l=s?e:n;i2(()=>{a.current=l});let[,u]=(0,m.useReducer)(()=>({}),{});return[l,(0,m.useCallback)((e,...t)=>{let n="function"==typeof e?e(a.current):e;Object.is(a.current,n)||(a.current=n,i(n),u(),r?.(n,...t))},[r])]}var i4=r(345);function i5(e){let t=(0,m.useMemo)(()=>new ip(e.locale),[e.locale]),r=(0,m.useMemo)(()=>t.resolvedOptions(),[t]),{locale:n,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible",selectionMode:d="single",firstDayOfWeek:f,weeksInMonth:p}=e,h=(0,m.useMemo)(()=>i(r.calendar),[i,r.calendar]),[y,g]=i3(e.value,e.defaultValue??null,e.onChange),v=(0,m.useMemo)(()=>Array.isArray(y)?y.map(e=>(0,iY.yP)((0,iY.gw)(e),h)):y?(0,iY.yP)((0,iY.gw)(y),h):null,[y,h]),b=(0,m.useMemo)(()=>{let e=Array.isArray(y)?y[0]:y;return e&&"timeZone"in e?e.timeZone:r.timeZone},[y,r.timeZone]),[w,x]=i3((0,m.useMemo)(()=>e.focusedValue?i0((0,iY.yP)((0,iY.gw)(e.focusedValue),h),o,s):void 0,[e.focusedValue,h,o,s]),(0,m.useMemo)(()=>e.defaultFocusedValue?i0((0,iY.yP)((0,iY.gw)(e.defaultFocusedValue),h),o,s):v?i0(Array.isArray(v)?v[0]:v,o,s):i0((0,iY.yP)((0,ik.Ec)(b),h),o,s),[e.defaultFocusedValue,v,b,h,o,s]),e.onFocusChange),S=()=>{switch(l){case"start":return iX(w,a,n,o,s);case"end":return iQ(w,a,n,o,s);default:return iq(w,a,n,o,s)}},[E,D]=(0,m.useState)(S),[O,j]=(0,m.useState)(e.autoFocus||!1),[P,C]=(0,m.useState)(a);a!==P&&(a.days!==P.days||a.weeks!==P.weeks||a.months!==P.months||a.years!==P.years)&&(C(a),D(S()));let k=(0,m.useMemo)(()=>{let e={...a};return e.days?e.days--:e.days=-1,E.add(e)},[E,a]),[A,T]=(0,m.useState)(h);if(!(0,ik.Jg)(h,A)){let e=(0,iY.yP)(w,h);D(iq(e,a,n,o,s)),x(e),T(h)}function N(e){x(e=i0(e,o,s))}function R(e){let t=i0(e,o,s),r=o??(0,ik.Py)(t,E),n=i1(t,r,u);if(!n)return null;let i=Array.isArray(y)?y[0]:y,a=(0,iY.yP)(n,i?.calendar||new(0,i4.FG));return i&&"hour"in i?i.set(a):a}function I(t){if(!e.isDisabled&&!e.isReadOnly){if(null===t)return void g("multiple"===d?[]:null);if(Array.isArray(t))g(t.map(R).filter(Boolean));else{let e=R(t);e&&g(e)}}}iZ(w,o,s)?x(i0(w,o,s)):0>w.compare(E)?D(iQ(w,a,n,o,s)):w.compare(k)>0&&D(iX(w,a,n,o,s));let M=(0,m.useMemo)(()=>!!v&&(Array.isArray(v)?v.some(e=>u?.(e)||iZ(e,o,s)):u?.(v)||iZ(v,o,s)),[v,u,o,s]),_=e.isInvalid||"invalid"===e.validationState||M,L=(0,m.useMemo)(()=>"visible"===c?a:i6(a),[c,a]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:v,setValue:I,selectionMode:d,visibleDuration:a,visibleRange:{start:E,end:k},minValue:o,maxValue:s,focusedDate:w,timeZone:b,validationState:_?"invalid":null,isValueInvalid:_,setFocusedDate(e){N(e)},focusNextDay(){N(w.add({days:1}))},focusPreviousDay(){N(w.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&N(w.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&N(w.subtract({weeks:1}))},focusNextPage(){let e=E.add(L);x(i0(w.add(L),o,s)),D(iX(iJ(w,e,L,n,o,s),L,n))},focusPreviousPage(){let e=E.subtract(L);x(i0(w.subtract(L),o,s)),D(iX(iJ(w,e,L,n,o,s),L,n))},focusSectionStart(){a.days?N(E):a.weeks?N((0,ik.kq)(w,n)):(a.months||a.years)&&N((0,ik.wH)(w))},focusSectionEnd(){a.days?N(k):a.weeks?N((0,ik.$I)(w,n)):(a.months||a.years)&&N((0,ik.p9)(w))},focusNextSection(e){e||a.days?a.days?this.focusNextPage():a.weeks?N(w.add({months:1})):(a.months||a.years)&&N(w.add({years:1})):N(w.add(i6(a)))},focusPreviousSection(e){e||a.days?a.days?this.focusPreviousPage():a.weeks?N(w.subtract({months:1})):(a.months||a.years)&&N(w.subtract({years:1})):N(w.subtract(i6(a)))},selectFocusedDate(){u&&u(w)||this.selectDate(w)},selectDate(t){if(!e.isDisabled&&!e.isReadOnly)if("multiple"===d&&null!=t){let e=R(t);if(!e)return;let r=[];Array.isArray(y)?r=y:null!=y&&(r=[y]);let n=r.findIndex(t=>(0,ik.ro)(t,e));g(n>=0?r.slice(0,n).concat(r.slice(n+1)):[...r,e])}else I(t)},isFocused:O,setFocused:j,isInvalid:e=>iZ(e,o,s),isSelected(e){return!(!v||this.isCellDisabled(e)||this.isCellUnavailable(e))&&(Array.isArray(v)?v.some(t=>(0,ik.ro)(t,e)):(0,ik.ro)(e,v))},isCellFocused:e=>O&&w&&(0,ik.ro)(e,w),isCellDisabled(t){return e.isDisabled||0>t.compare(E)||t.compare(k)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=E.subtract({days:1});return(0,ik.ro)(e,E)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=k.add({days:1});return(0,ik.ro)(e,k)||this.isInvalid(e)},getDatesInWeek(e,t=E){let r=t.add({weeks:e}),i=[],o=a.days&&a.days<7?a.days:7;if(7===o){r=(0,ik.kq)(r,n,f);let e=(0,ik.SJ)(r,n,f);for(let t=0;t<e;t++)i.push(null)}for(;i.length<o;){i.push(r);let e=r.add({days:1});if((0,ik.ro)(r,e))break;r=e}for(;i.length<o;)i.push(null);return i},getWeeksInMonth(e=E){let t=p||(0,ik.RZ)(e,n,f);return(a.weeks||a.days)&&(t=a.weeks??0,a.days&&(t+=Math.ceil(a.days/7))),t}}}function i6(e){let t={...e};for(let r in e)t[r]=1;return t}function i8(e,t){return e&&t?(0>t.compare(e)&&([e,t]=[t,e]),{start:(0,iY.gw)(e),end:(0,iY.gw)(t)}):null}function i9(e,t){return(e=(0,iY.yP)(e,t?.calendar||new(0,i4.FG)),t&&"hour"in t)?t.set(e):e}function i7(e,t,r,n){let i=e.add({days:n}),a=e.subtract(r),o=e.add(r);for(;(n<0?i.compare(a)>=0:0>=i.compare(o))&&!t(i);)i=i.add({days:n});if(t(i))return i.add({days:-n})}let ae={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"};function at(e={}){let{style:t,isFocusable:r}=e,[n,i]=(0,m.useState)(!1),{focusWithinProps:a}=nH({isDisabled:!r,onFocusWithinChange:e=>i(e)}),o=(0,m.useMemo)(()=>n?t:t?{...ae,...t}:ae,[n]);return{visuallyHiddenProps:{...a,style:o}}}function ar(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...a}=e,{visuallyHiddenProps:o}=at(e);return y().createElement(r,t3(a,o),t)}let an=(0,m.createContext)(null),ai=(0,m.createContext)(null),aa=(0,m.createContext)(null),ao=(0,m.createContext)(null),as=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,an);let{locale:r}=ic(),n=i5({...e,locale:r,createCalendar:e.createCalendar||iK.d}),{calendarProps:i,prevButtonProps:a,nextButtonProps:o,errorMessageProps:s,title:l}=iL(e,n),u=t8({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=rm(e,{global:!0});return y().createElement(ri.div,{...t3(c,u,i),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0},y().createElement(t6,{values:[[nQ,{slots:{previous:a,next:o}}],[n1,{"aria-hidden":!0,level:2,children:l}],[aa,n],[an,e],[n2,{slots:{errorMessage:s}}]]},y().createElement(ar,null,y().createElement("h2",null,i["aria-label"])),u.children,y().createElement(ar,null,y().createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),al=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,ai);let{locale:r}=ic(),n=function(e){let{value:t,defaultValue:r,onChange:n,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...u}=e,[c,d]=i3(t,r||null,n),[f,p]=(0,m.useState)(null),h="center";if(c&&c.start&&c.end){let e=iq((0,iY.gw)(c.start),o,a,s,l).add(o).subtract({days:1});c.end.compare(e)>0&&(h="start")}let y=(0,m.useMemo)(()=>{let t=e.isDateUnavailable;if(t)return e=>t(e,f)},[e.isDateUnavailable,f]),g=(0,m.useCallback)(t=>t&&y&&!e.allowsNonContiguousRanges?{start:i7(t,y,o,-1),end:i7(t,y,o,1)}:null,[y,o,e.allowsNonContiguousRanges]),v=(0,m.useMemo)(()=>g(f),[g,f]),b=(0,m.useMemo)(()=>(0,ik.ZI)(s,v?.start),[s,v]),w=(0,m.useMemo)(()=>(0,ik.Py)(l,v?.end),[l,v]),x=i5({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:o,minValue:b,maxValue:w,selectionAlignment:e.selectionAlignment||h,isDateUnavailable:y}),S=f?i8(f,x.focusedDate):c&&i8(c.start,c.end),E=t=>{if(e.isReadOnly)return;let r=i1(i0(t,b,w),x.visibleRange.start,y);if(r)if(f){let e=i8(f,r);e&&d({start:i9(e.start,c?.start),end:i9(e.end,c?.end)}),p(null)}else p(r)},[D,O]=(0,m.useState)(!1),j=(0,m.useMemo)(()=>!!c&&!f&&(!!(y&&(y(c.start)||y(c.end)))||iZ(c.start,s,l)||iZ(c.end,s,l)),[y,c,f,s,l]),P=e.isInvalid||"invalid"===e.validationState||j;return{...x,value:c,setValue:d,anchorDate:f,setAnchorDate:p,highlightedRange:S,validationState:P?"invalid":null,isValueInvalid:P,selectFocusedDate(){x.isCellUnavailable(x.focusedDate)||E(x.focusedDate)},commitSelection(){E(x.focusedDate)},selectDate:E,highlightDate(e){f&&x.setFocusedDate(e)},isSelected:e=>!!(S&&e.compare(S.start)>=0&&0>=e.compare(S.end)&&!x.isCellDisabled(e)&&!x.isCellUnavailable(e)),isInvalid:e=>x.isInvalid(e)||iZ(e,v?.start,v?.end),isDragging:D,setDragging:O,clearSelection(){p(null),d(null)},focusNearestAvailableDate(e){let t=g(e),r=e=>this.isInvalid(e)||iZ(e,t?.start,t?.end),n=e.add({days:1});r(n)&&(n=e.subtract({days:1})),r(n)||(this.setFocusedDate(n),this.setFocused(!0))}}}({...e,locale:r,createCalendar:e.createCalendar||iK.d}),{calendarProps:i,prevButtonProps:a,nextButtonProps:o,errorMessageProps:s,title:l}=function(e,t,r){let{commitBehavior:n="select",...i}=e,a=iL(i,t),o=(0,m.useRef)(!1),s=(0,m.useRef)("u">typeof window?window:null);iG(s,"pointerdown",e=>{o.current=0===e.width&&0===e.height});let l={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return iG(s,"pointerup",e=>{if(o.current){o.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let i=rD(e);r.current&&rj(r.current)&&(!rE(r.current,i)||!i.closest('button, [role="button"]'))&&l[n]()}),a.calendarProps.onBlur=e=>{r.current&&(e.relatedTarget&&rE(r.current,e.relatedTarget)||!t.anchorDate||l[n]())},iG(r,"touchmove",e=>{t.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),a}(e,n,t),u=t8({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=rm(e,{global:!0});return y().createElement(ri.div,{...t3(u,c,i),ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0},y().createElement(t6,{values:[[nQ,{slots:{previous:a,next:o}}],[n1,{"aria-hidden":!0,level:2,children:l}],[ao,n],[ai,e],[n2,{slots:{errorMessage:s}}]]},y().createElement(ar,null,y().createElement("h2",null,i["aria-label"])),u.children,y().createElement(ar,null,y().createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1}))))}),au=(0,m.createContext)(null),ac=(0,m.forwardRef)(function(e,t){let r=(0,m.useContext)(aa),n=(0,m.useContext)(ao),i=t9(an),a=t9(ai),o=r??n,s=o.visibleRange.start;e.offset&&(s=s.add(e.offset));let l=i?.firstDayOfWeek??a?.firstDayOfWeek,{gridProps:u,headerProps:c,weekDays:d,weeksInMonth:f}=function(e,t){let{startDate:r=t.visibleRange.start,endDate:n=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=ic(),{keyboardProps:o}=ny({shortcuts:{End:()=>{t.focusSectionEnd()},Home:()=>{t.focusSectionStart()},Escape:()=>("setAnchorDate"in t&&t.setAnchorDate(null),!1)}}),{keyboardProps:s}=ny({shortcuts:{Enter:()=>{t.selectFocusedDate()}," ":()=>{t.selectFocusedDate()},PageUp:()=>{t.focusPreviousSection()},"Shift+PageUp":()=>{t.focusPreviousSection(!0)},PageDown:()=>{t.focusNextSection()},"Shift+PageDown":()=>{t.focusNextSection(!0)},ArrowLeft:()=>{"rtl"===a?t.focusNextDay():t.focusPreviousDay()},ArrowUp:()=>{t.focusPreviousRow()},ArrowRight:()=>{"rtl"===a?t.focusPreviousDay():t.focusNextDay()},ArrowDown:()=>{t.focusNextRow()}},allowRepeats:!0}),l=iR(r,n,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=iT.get(t),d=iM({"aria-label":[u,l].filter(Boolean).join(", "),"aria-labelledby":c}),f=iv({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=ic(),h=(0,m.useMemo)(()=>{let e=t.visibleDuration.days&&t.visibleDuration.days<7,n=e?r:(0,ik.kq)((0,ik.Ec)(t.timeZone),p,i);return[...Array(e?t.visibleDuration.days:7).keys()].map(e=>{let r=n.add({days:e}).toDate(t.timeZone);return f.format(r)})},[p,t.timeZone,f,i,r,t.visibleDuration.days]),y=t.getWeeksInMonth(r);return{gridProps:t3(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||"multiple"===t.selectionMode||void 0,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)},o,s),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:y}}({startDate:s,endDate:(0,ik.p9)(s),weekdayStyle:e.weekdayStyle,firstDayOfWeek:l},o),p=rm(e,{global:!0});return y().createElement(au.Provider,{value:{headerProps:c,weekDays:d,startDate:s,weeksInMonth:f}},y().createElement(ri.table,{render:e.render,...t3(p,u),ref:t,style:e.style,cellPadding:0,className:e.className??"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:y().createElement(y().Fragment,null,y().createElement(ad,null,e=>y().createElement(af,null,e)),y().createElement(ap,null,e.children))))}),ad=(0,m.forwardRef)(function(e,t){let{children:r,style:n,className:i}=e,{headerProps:a,weekDays:o}=(0,m.useContext)(au),s=rm(e,{global:!0});return y().createElement(ri.thead,{render:e.render,...t3(s,a),ref:t,style:n,className:i??"react-aria-CalendarGridHeader"},y().createElement("tr",null,o.map((e,t)=>y().cloneElement(r(e),{key:t}))))}),af=(0,m.forwardRef)(function(e,t){let{children:r,style:n,className:i}=e,a=rm(e,{global:!0});return y().createElement(ri.th,{render:e.render,...a,ref:t,style:n,className:i||"react-aria-CalendarHeaderCell"},r)}),ap=(0,m.forwardRef)(function(e,t){let{children:r,style:n,className:i}=e,a=(0,m.useContext)(aa),o=(0,m.useContext)(ao),s=a??o,{startDate:l,weeksInMonth:u}=(0,m.useContext)(au),c=rm(e,{global:!0});return y().createElement(ri.tbody,{render:e.render,...c,ref:t,style:n,className:i??"react-aria-CalendarGridBody"},[...Array(u).keys()].map(e=>y().createElement("tr",{key:e},s.getDatesInWeek(e,l).map((e,t)=>e?y().cloneElement(r(e),{key:t}):y().createElement("td",{key:t})))))}),ah=(0,m.forwardRef)(function({date:e,...t},r){let n=(0,m.useContext)(aa),i=(0,m.useContext)(ao),a=n??i,{startDate:o}=(0,m.useContext)(au)??{startDate:a.visibleRange.start},s=!a.visibleDuration.days&&!a.visibleDuration.weeks&&!(0,ik.tF)(o,e),l=(0,ik.cK)(e,a.timeZone),u=(0,m.useRef)(null),{cellProps:c,buttonProps:d,...f}=function(e,t,r){var n;let i,{date:a,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:l}=iT.get(t),u=iC((n=n4)&&n.__esModule?n.default:n,"@react-aria/calendar"),c=iv({weekday:"long",day:"numeric",month:"long",year:"numeric",era:iN(a),timeZone:t.timeZone}),d=t.isCellFocused(a)&&!e.isOutsideMonth;o=o||t.isCellDisabled(a)||!!e.isOutsideMonth;let f=t.isCellUnavailable(a),p=!o&&!f,h=t.isSelected(a)&&p,y=!1;t.isValueInvalid&&("highlightedRange"in t?y=!t.anchorDate&&null!=t.highlightedRange&&a.compare(t.highlightedRange.start)>=0&&0>=a.compare(t.highlightedRange.end):Array.isArray(t.value)?y=t.value.some(e=>(0,ik.ro)(e,a)):t.value&&(y=(0,ik.ro)(t.value,a))),y&&!o&&(h=!0),a=n5(a,ik.NV);let g=(0,m.useMemo)(()=>a.toDate(t.timeZone),[a,t.timeZone]),v=(0,ik.cK)(a,t.timeZone),b=(0,m.useMemo)(()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&((0,ik.ro)(a,t.value.start)||(0,ik.ro)(a,t.value.end))&&(e=l+", "),e+=c.format(g),v?e=u.format(h?"todayDateSelected":"todayDate",{date:e}):h&&(e=u.format("dateSelected",{date:e})),t.minValue&&(0,ik.ro)(a,t.minValue)?e+=", "+u.format("minimumDate"):t.maxValue&&(0,ik.ro)(a,t.maxValue)&&(e+=", "+u.format("maximumDate")),e},[c,g,u,h,v,a,t,l]),w="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(w=t.anchorDate?u.format("finishRangeSelectionPrompt"):u.format("startRangeSelectionPrompt"));let x=iH(w),S=(0,m.useRef)(!1),E=(0,m.useRef)(!1),D=(0,m.useRef)(void 0),{pressProps:O,isPressed:j}=n_({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(e){if(t.isReadOnly){t.setFocusedDate(a),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!y){if((0,ik.ro)(a,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(a),t.setFocused(!0),t.setDragging(!0),E.current=!0;return}else if((0,ik.ro)(a,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(a),t.setFocused(!0),t.setDragging(!0),E.current=!0;return}}let r=()=>{t.setDragging(!0),D.current=void 0,t.selectDate(a),t.setFocusedDate(a),t.setFocused(!0),S.current=!0};"touch"===e.pointerType?D.current=setTimeout(r,200):r()}},onPressEnd(){E.current=!1,S.current=!1,clearTimeout(D.current),D.current=void 0},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(a),t.setFocusedDate(a),t.setFocused(!0))},onPressUp(e){!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(a),t.setFocusedDate(a),t.setFocused(!0)),"anchorDate"in t&&(E.current?t.setAnchorDate(a):t.anchorDate&&!S.current?(t.selectDate(a),t.setFocusedDate(a),t.setFocused(!0)):"keyboard"!==e.pointerType||t.anchorDate?"virtual"===e.pointerType&&(t.selectDate(a),t.setFocusedDate(a),t.setFocused(!0)):(t.selectDate(a),t.focusNearestAvailableDate(a))))}});o||(i=(0,ik.ro)(a,t.focusedDate)?0:-1),(0,m.useEffect)(()=>{d&&r.current&&(ry(r.current),"pointer"!==rQ&&((e=document)=>e.activeElement)()===r.current&&iW(r.current,{containingElement:iB(r.current)}))},[d,r]);let P=iv({day:"numeric",timeZone:t.timeZone,calendar:a.calendar.identifier}),C=(0,m.useMemo)(()=>P.formatToParts(g).find(e=>"day"===e.type).value,[P,g]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":h||void 0,"aria-invalid":y||void 0},buttonProps:t3(O,{onFocus(){o||(t.setFocusedDate(a),t.setFocused(!0))},tabIndex:i,role:"button","aria-disabled":!p||void 0,"aria-label":b,"aria-invalid":y||void 0,"aria-describedby":[y?s:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&p&&t.highlightDate(a)},onPointerDown(e){let t=rD(e);t instanceof HTMLElement&&"releasePointerCapture"in t&&("hasPointerCapture"in t?t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId):t.releasePointerCapture(e.pointerId))},onContextMenu(e){e.preventDefault()}}),isPressed:j,isFocused:d,isSelected:h,isDisabled:o,isUnavailable:f,isOutsideVisibleRange:0>a.compare(t.visibleRange.start)||a.compare(t.visibleRange.end)>0,isInvalid:y,formattedDate:C}}({date:e,isOutsideMonth:s},a,u),{hoverProps:p,isHovered:h}=nX({...t,isDisabled:f.isDisabled||f.isUnavailable}),{focusProps:g,isFocusVisible:v}=nG();v&&=f.isFocused;let b=!1,w=!1;"highlightedRange"in a&&a.highlightedRange&&(b=(0,ik.ro)(e,a.highlightedRange.start),w=(0,ik.ro)(e,a.highlightedRange.end));let x=t8({...t,defaultChildren:f.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:h,isOutsideMonth:s,isFocusVisible:v,isSelectionStart:b,isSelectionEnd:w,isToday:l,...f}}),S={"data-focused":f.isFocused||void 0,"data-hovered":h||void 0,"data-pressed":f.isPressed||void 0,"data-unavailable":f.isUnavailable||void 0,"data-disabled":f.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":f.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":f.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":f.isInvalid||void 0,"data-today":l||void 0},E=rm(t,{global:!0});return y().createElement("td",{...c,ref:r},y().createElement(ri.div,{...t3(E,d,g,p,S,x),ref:u}))}),am=(0,m.createContext)({}),ay=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,am);let{isDisabled:r,isInvalid:n,isReadOnly:i,onHoverStart:a,onHoverChange:o,onHoverEnd:s,...l}=e;r??=!!e["aria-disabled"]&&"false"!==e["aria-disabled"],n??=!!e["aria-invalid"]&&"false"!==e["aria-invalid"];let{hoverProps:u,isHovered:c}=nX({onHoverStart:a,onHoverChange:o,onHoverEnd:s,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:p}=nG({within:!0}),h=t8({...e,values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:n},defaultClassName:"react-aria-Group"});return y().createElement(ri.div,{...t3(l,p,u),...h,ref:t,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":n||void 0,"data-readonly":i||void 0},h.children)}),ag=(0,m.createContext)({}),av=nz(function(e,t){[e,t]=t7(e,t,ag);let{hoverProps:r,isHovered:n}=nX({...e,isDisabled:e.disabled}),{isFocused:i,isFocusVisible:a,focusProps:o}=nG({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],l=t8({...e,values:{isHovered:n,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return y().createElement(ri.input,{...t3((e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i})(e),o,r),...l,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});function ab(e,t,r,n){return e.createTreeWalker(t,r,n)}let aw=y().createContext(null),ax="react-aria-focus-scope-restore",aS=null;function aE(e){var t,r,n,i,a,o,s,l,u,c;let d,f,p,h,{children:g,contain:v,restoreFocus:b,autoFocus:w}=e,x=(0,m.useRef)(null),S=(0,m.useRef)(null),E=(0,m.useRef)([]),{parentNode:D}=(0,m.useContext)(aw)||{},O=(0,m.useMemo)(()=>new aF({scopeRef:E}),[E]);tB(()=>{let e=D||aB.root;if(aB.getTreeNode(e.scopeRef)&&aS&&!aC(aS,e.scopeRef)){let t=aB.getTreeNode(aS);t&&(e=t)}e.addChild(O),aB.addNode(O)},[O,D]),tB(()=>{let e=aB.getTreeNode(E);e&&(e.contain=!!v)},[v]),tB(()=>{let e=x.current?.nextSibling,t=[],r=e=>e.stopPropagation();for(;e&&e!==S.current;)t.push(e),e.addEventListener(ax,r),e=e.nextSibling;return E.current=t,()=>{for(let e of t)e.removeEventListener(ax,r)}},[g]),tB(()=>{if(r||n)return;let e=t.current,i=rv(e?e[0]:void 0),a=e=>{let r=rD(e);aj(r,t.current)?aS=t:aP(r)||(aS=null)};return i.addEventListener("focusin",a,!1),e?.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),e?.forEach(e=>e.removeEventListener("focusin",a,!1))}},[t=E,r=b,n=v]),i=E,a=v,d=(0,m.useRef)(void 0),f=(0,m.useRef)(void 0),tB(()=>{let e=i.current;if(!a){f.current&&(cancelAnimationFrame(f.current),f.current=void 0);return}let t=rv(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!aO(i)||e.isComposing)return;let r=((e=document)=>e.activeElement)(t),n=i.current;if(!n||!aj(r,n))return;let a=aI(aD(n),{tabbable:!0},n);if(!r)return;a.currentNode=r;let o=e.shiftKey?a.previousNode():a.nextNode();o||(a.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,o=e.shiftKey?a.previousNode():a.nextNode()),e.preventDefault(),o&&(ak(o,!0),o instanceof rb(o).HTMLInputElement&&o.select())},n=e=>{(!aS||aC(aS,i))&&aj(rD(e),i.current)?(aS=i,d.current=rD(e)):aO(i)&&!aP(rD(e),i)?d.current?ak(d.current):aS&&aS.current&&aT(aS.current):aO(i)&&(d.current=rD(e))},o=e=>{f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>{let r=rQ,n=("virtual"===r||null===r)&&rY()&&rK(),a=((e=document)=>e.activeElement)(t);if(!n&&a&&aO(i)&&!aP(a,i)){aS=i;let t=rD(e);t&&t.isConnected?(d.current=t,ak(d.current)):aS.current&&aT(aS.current)}})};return t.addEventListener("keydown",r,!1),t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),e?.forEach(e=>e.addEventListener("focusout",o,!1)),()=>{t.removeEventListener("keydown",r,!1),t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1)),e?.forEach(e=>e.removeEventListener("focusout",o,!1))}},[i,a]),tB(()=>()=>{f.current&&cancelAnimationFrame(f.current)},[f]),o=E,s=b,l=v,p=(0,m.useRef)("u">typeof document?((e=document)=>e.activeElement)(rv(o.current?o.current[0]:void 0)):null),tB(()=>{let e=o.current,t=rv(e?e[0]:void 0);if(!s||l)return;let r=()=>{(!aS||aC(aS,o))&&aj(((e=document)=>e.activeElement)(t),o.current)&&(aS=o)};return t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1))}},[o,l]),tB(()=>{let e=rv(o.current?o.current[0]:void 0);if(!s)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!aO(o)||t.isComposing)return;let r=e.activeElement;if(!aP(r,o)||!aN(o))return;let n=aB.getTreeNode(o);if(!n)return;let i=n.nodeToRestore,a=aI(e.body,{tabbable:!0});a.currentNode=r;let s=t.shiftKey?a.previousNode():a.nextNode();if(i&&i.isConnected&&i!==e.body||(i=void 0,n.nodeToRestore=void 0),(!s||!aP(s,o))&&i){a.currentNode=i;do s=t.shiftKey?a.previousNode():a.nextNode();while(aP(s,o));(t.preventDefault(),t.stopPropagation(),s)?ak(s,!0):aP(i)?ak(i,!0):r.blur()}};return l||e.addEventListener("keydown",t,!0),()=>{l||e.removeEventListener("keydown",t,!0)}},[o,s,l]),tB(()=>{let e=rv(o.current?o.current[0]:void 0);if(!s)return;let t=aB.getTreeNode(o);if(t)return t.nodeToRestore=p.current??void 0,()=>{let t=aB.getTreeNode(o);if(!t)return;let r=t.nodeToRestore,n=((e=document)=>e.activeElement)(e);if(s&&r&&(n&&aP(n,o)||n===e.body&&aN(o))){let t=aB.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(o);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void aR(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(o);e;){if(e.scopeRef&&e.scopeRef.current&&aB.getTreeNode(e.scopeRef)){let t=aA(e.scopeRef.current,!0);if(t)return void aR(t)}e=e.parent}}})}}},[o,s]),u=E,c=w,h=y().useRef(c),(0,m.useEffect)(()=>{h.current&&(aS=u,!aj(((e=document)=>e.activeElement)(rv(u.current?u.current[0]:void 0)),aS.current)&&u.current&&aT(u.current)),h.current=!1},[u]),(0,m.useEffect)(()=>{let e=((e=document)=>e.activeElement)(rv(E.current?E.current[0]:void 0)),t=null;if(aj(e,E.current)){for(let r of aB.traverse())r.scopeRef&&aj(e,r.scopeRef.current)&&(t=r);t===aB.getTreeNode(E)&&(aS=t.scopeRef)}},[E]),tB(()=>()=>{let e=aB.getTreeNode(E)?.parent?.scopeRef??null;(E===aS||aC(E,aS))&&(!e||aB.getTreeNode(e))&&(aS=e),aB.removeTreeNode(E)},[E]);let j=(0,m.useMemo)(()=>{var e;return e=E,{focusNext(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t,s=n||((e=document)=>e.activeElement)(rv(r[0]??void 0)),l=r[0].previousElementSibling,u=aI(aD(r),{tabbable:i,accept:o},r);u.currentNode=aj(s,r)?s:l;let c=u.nextNode();return!c&&a&&(u.currentNode=l,c=u.nextNode()),c&&ak(c,!0),c},focusPrevious(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t,s=n||((e=document)=>e.activeElement)(rv(r[0]??void 0)),l=r[r.length-1].nextElementSibling,u=aI(aD(r),{tabbable:i,accept:o},r);u.currentNode=aj(s,r)?s:l;let c=u.previousNode();return!c&&a&&(u.currentNode=l,c=u.previousNode()),c&&ak(c,!0),c},focusFirst(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=aI(aD(r),{tabbable:n,accept:i},r);a.currentNode=r[0].previousElementSibling;let o=a.nextNode();return o&&ak(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=aI(aD(r),{tabbable:n,accept:i},r);a.currentNode=r[r.length-1].nextElementSibling;let o=a.previousNode();return o&&ak(o,!0),o}}},[]),P=(0,m.useMemo)(()=>({focusManager:j,parentNode:O}),[O,j]);return y().createElement(aw.Provider,{value:P},y().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:x}),g,y().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:S}))}function aD(e){return e[0].parentElement}function aO(e){let t=aB.getTreeNode(aS);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function aj(e,t){return!!e&&!!t&&t.some(t=>rE(t,e))}function aP(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of aB.traverse(aB.getTreeNode(t)))if(r&&aj(e,r.current))return!0;return!1}function aC(e,t){let r=aB.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ak(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{nl(e)}catch{}}function aA(e,t=!0){let r=e[0].previousElementSibling,n=aD(e),i=aI(n,{tabbable:t},e);i.currentNode=r;let a=i.nextNode();return t&&!a&&((i=aI(n=aD(e),{tabbable:!1},e)).currentNode=r,a=i.nextNode()),a}function aT(e,t=!0){ak(aA(e,t))}function aN(e){let t=aB.getTreeNode(aS);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function aR(e){e.dispatchEvent(new CustomEvent(ax,{bubbles:!0,cancelable:!0}))&&ak(e)}function aI(e,t,r){let n=t?.tabbable?rR:rN,i=rv(e?.nodeType===Node.ELEMENT_NODE?e:null),a=ab(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>rE(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(rv(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),r=rb(e);return t instanceof r.RadioNodeList?Array.from(t).filter(e=>e instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===a.currentNode.tagName&&"radio"===a.currentNode.type&&a.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:n(e)&&(!r||aj(e,r))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(a.currentNode=t.from),a}function aM(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=r,l=i||((e=document)=>e.activeElement)(rv(n)),u=aI(n,{tabbable:a,accept:s});rE(n,l)&&(u.currentNode=l);let c=u.nextNode();return!c&&o&&(u.currentNode=n,c=u.nextNode()),c&&ak(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=r,l=i||((e=document)=>e.activeElement)(rv(n)),u=aI(n,{tabbable:a,accept:s});if(rE(n,l))u.currentNode=l;else{let e=a_(u);return e&&ak(e,!0),e??null}let c=u.previousNode();if(!c&&o){u.currentNode=n;let e=a_(u);if(!e)return null;c=e}return c&&ak(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,o=aI(n,{tabbable:i,accept:a}).nextNode();return o&&ak(o,!0),o},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,o=a_(aI(n,{tabbable:i,accept:a}));return o&&ak(o,!0),o??null}}}function a_(e){let t,r;do(t=e.lastChild())&&(r=t);while(t);return r}class aL{constructor(){this.fastMap=new Map,this.root=new aF({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(t??null);if(!n)return;let i=new aF({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&aj(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new aL;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class aF{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let aB=new aL;var aV={};function aU(e,t,r){let{direction:n}=ic(),i=(0,m.useMemo)(()=>aM(t),[t]),{keyboardProps:a}=ny({shortcuts:{"Alt+ArrowDown":()=>"setOpen"in e&&void e.setOpen(!0),"Alt+ArrowUp":()=>"setOpen"in e&&void e.setOpen(!0),ArrowLeft:e=>{if(r)return!1;if("rtl"!==n)return void i.focusPrevious();if(t.current){let r=rD(e),n=aW(t.current,r.getBoundingClientRect().left,-1);if(n)return void n.focus()}return!1},ArrowRight:e=>{if(r)return!1;if("rtl"!==n)return void i.focusNext();if(t.current){let r=rD(e),n=aW(t.current,r.getBoundingClientRect().left,1);if(n)return void n.focus()}return!1}},allowRepeats:!0}),o=()=>{if(!t.current)return;let e=window.event?rD(window.event):null,r=aI(t.current,{tabbable:!0});if(e&&(r.currentNode=e,e=r.previousNode()),!e){let t;do(t=r.lastChild())&&(e=t);while(t)}for(;e?.hasAttribute("data-placeholder");){let t=r.previousNode();if(t&&t.hasAttribute("data-placeholder"))e=t;else break}e&&e.focus()},{pressProps:s}=n_({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&o()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&o()}});return t3(s,a)}function aW(e,t,r){let n=aI(e,{tabbable:!0}),i=n.nextNode(),a=null,o=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,s=Math.abs(e);Math.sign(e)===r&&s<o&&(a=i,o=s),i=n.nextNode()}return a}function a$(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:o}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=tQ(t);let o=tQ(),s={};return r&&(n=n?`${o} ${n}`:o,s={id:o,htmlFor:"label"===a?t:void 0}),{labelProps:s,fieldProps:iM({id:t,"aria-label":i,"aria-labelledby":n})}}(e),s=tJ([!!t,!!r,n,i]),l=tJ([!!t,!!r,n,i]);return{labelProps:a,fieldProps:o=t3(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:s},errorMessageProps:{id:l}}}function az(e,t,r){let n=nC(e=>{r&&!e.defaultPrevented&&r(t)});(0,m.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",n),()=>{t?.removeEventListener("reset",n)}},[e])}function aH(e,t,r){let{validationBehavior:n,focus:i}=e;tB(()=>{if("native"===n&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let a=(0,m.useRef)(!1),o=nC(()=>{a.current||t.resetValidation()}),s=nC(e=>{t.displayValidation.isInvalid||t.commitValidation();let n=r?.current?.form;!e.defaultPrevented&&r&&n&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}(n)===r.current&&(i?i():r.current?.focus(),rQ="keyboard",r4("keyboard",null));e.preventDefault()}),l=nC(()=>{t.commitValidation()});(0,m.useEffect)(()=>{let e=r?.current;if(!e)return;let t=e.form,n=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||"message"===window.event.type&&rD(window.event)instanceof MessagePort,n?.call(t),a.current=!1}),e.addEventListener("invalid",s),e.addEventListener("change",l),t?.addEventListener("reset",o),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",l),t?.removeEventListener("reset",o),t&&(t.reset=n)}},[r,n])}aV={"ar-AE":{calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${e.date}`,selectedRangeDescription:e=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.startDate} \u{625}\u{644}\u{649} ${e.endDate}`,selectedTimeDescription:e=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"},"bg-BG":{calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{434}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"},"cs-CZ":{calendar:"Kalend\xe1ř",day:"den",dayPeriod:"č\xe1st dne",endDate:"Konečn\xe9 datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měs\xedc",second:"sekunda",selectedDateDescription:e=>`Vybran\xe9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xe9 obdob\xed: ${e.startDate} a\u{17E} ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xfd \u{10D}as: ${e.time}`,startDate:"Poč\xe1tečn\xed datum",timeZoneName:"časov\xe9 p\xe1smo",weekday:"den v t\xfddnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xe6ra",hour:"time",minute:"minut",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xe5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xe4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xe4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xe4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xe4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${e.date}`,selectedRangeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${e.startDate} \u{3AD}\u{3C9}\u{3C2} ${e.endDate}`,selectedTimeDescription:e=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xeda",dayPeriod:"a.\xa0m./p.\xa0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xeda de la semana",year:"a\xf1o"},"et-EE":{calendar:"Kalender",day:"p\xe4ev",dayPeriod:"enne/p\xe4rast l\xf5unat",endDate:"L\xf5ppkuup\xe4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xe4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xe4ev",timeZoneName:"ajav\xf6\xf6nd",weekday:"n\xe4dalap\xe4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xe4iv\xe4",dayPeriod:"vuorokaudenaika",endDate:"P\xe4\xe4ttymisp\xe4iv\xe4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xe4li: ${e.startDate} \u{2013} ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xe4iv\xe4",timeZoneName:"aikavy\xf6hyke",weekday:"viikonp\xe4iv\xe4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xe8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xe9lectionn\xe9e\xa0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xe9lectionn\xe9e\xa0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xa0: ${e.time}`,startDate:"Date de d\xe9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xe9e"},"he-IL":{calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.date}`,selectedRangeDescription:e=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.startDate} \u{5E2}\u{5D3} ${e.endDate}`,selectedTimeDescription:e=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xe1r",day:"nap",dayPeriod:"napszak",endDate:"Befejező d\xe1tum",era:"\xe9ra",hour:"\xf3ra",minute:"perc",month:"h\xf3nap",second:"m\xe1sodperc",selectedDateDescription:e=>`Kijel\xf6lt d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xf6lt tartom\xe1ny: ${e.startDate}\u{2013}${e.endDate}`,selectedTimeDescription:e=>`Kijel\xf6lt id\u{151}: ${e.time}`,startDate:"Kezdő d\xe1tum",timeZoneName:"időz\xf3na",weekday:"h\xe9t napja",year:"\xe9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${e.startDate} \u{304B}\u{3089} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"},"ko-KR":{calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${e.date}`,selectedRangeDescription:e=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"},"lv-LV":{calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u{12B}tais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u{12B}tais diapazons: no ${e.startDate} l\u{12B}dz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u{12B}tais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xe5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xe5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xe5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xe1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xe9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xeas",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xedcio",timeZoneName:"fuso hor\xe1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dat\u{103} selectat\u{103}: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xe2n\u{103} la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u{103}: ${e.time}`,startDate:"Dată \xeenceput",timeZoneName:"fus orar",weekday:"ziua din săptăm\xe2nă",year:"an"},"ru-RU":{calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${e.startDate} \u{43F}\u{43E} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"},"sk-SK":{calendar:"Kalend\xe1r",day:"deň",dayPeriod:"AM/PM",endDate:"D\xe1tum ukončenia",era:"letopočet",hour:"hodina",minute:"min\xfata",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xfd d\xe1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xfd rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xfd \u{10D}as: ${e.time}`,startDate:"D\xe1tum začatia",timeZoneName:"časov\xe9 p\xe1smo",weekday:"deň t\xfdždňa",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u{10D}je: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u{10D}as: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xe5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xe5r"},"tr-TR":{calendar:"Takvim",day:"g\xfcn",dayPeriod:"\xd6\xd6/\xd6S",endDate:"Bitiş Tarihi",era:"\xe7ağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xe7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xe7ilen Aral\u{131}k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xe7ilen Zaman: ${e.time}`,startDate:"Başlangı\xe7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın g\xfcn\xfc",year:"yıl"},"uk-UA":{calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${e.date}`,selectedRangeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${e.startDate} \u{2014} ${e.endDate}`,selectedTimeDescription:e=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"},"zh-CN":{calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"},"zh-TW":{calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${e.date}`,selectedRangeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${e.startDate} \u{81F3} ${e.endDate}`,selectedTimeDescription:e=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"}};let aG=new WeakMap,aK="__reactAriaDateFieldRole",aY="__reactAriaDateFieldFocusManager";function aZ(e,t,r){var n;let i,{isInvalid:a,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=a$({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),f=(0,m.useRef)(null),{focusWithinProps:p}=nH({...e,onFocusWithin(r){f.current=t.value,e.onFocus?.(r)},onBlurWithin:r=>{t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),e.onBlur?.(r)},onFocusWithinChange:e.onFocusChange}),h=iC((n=aV)&&n.__esModule?n.default:n,"@react-aria/datepicker"),y="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",g="hour"===t.maxGranularity?"time":"date",v=iH(t.value?h.format(y,{[g]:t.formatValue({month:"long"})}):""),b="presentation"===e[aK]?u["aria-describedby"]:[v["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[aY],x=(0,m.useMemo)(()=>w||aM(r),[w,r]),S=aU(t,r,"presentation"===e[aK]);aG.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:b,focusManager:x});let E=(0,m.useRef)(e.autoFocus);i="presentation"===e[aK]?{role:"presentation"}:t3(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),(0,m.useEffect)(()=>{E.current&&x.focusFirst(),E.current=!1},[x]),az(e.inputRef,t.defaultValue,t.setValue),aH({...e,focus(){x.focusFirst()}},t,e.inputRef);let D={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(D.type="text",D.hidden=!0,D.required=e.isRequired,D.onChange=()=>{});let O=rm(e);return{labelProps:{...l,onClick:()=>{x.focusFirst()}},fieldProps:t3(O,i,S,p,{onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,style:{unicodeBidi:"isolate"}}),inputProps:D,descriptionProps:c,errorMessageProps:d,isInvalid:a,validationErrors:o,validationDetails:s}}var aq={};aq={"ar-AE":{rangeOverflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${e.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${e.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,rangeReversed:"Datum zah\xe1jen\xed mus\xed předch\xe1zet datu ukončen\xed.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozd\u{11B}j\u{161}\xed.`,unavailableDate:"Vybran\xe9 datum nen\xed k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xe6re f\xf8r slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xe6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar."},"el-GR":{rangeOverflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${e.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuup\xe4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date s\xe9lectionn\xe9e n’est pas disponible."},"he-IL":{rangeOverflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${e.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő d\xe1tumnak a befejező d\xe1tumn\xe1l kor\xe1bbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,unavailableDate:"A kiv\xe1lasztott d\xe1tum nem \xe9rhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u{5024}\u{306F} ${e.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`\u{5024}\u{306F} ${e.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`\u{AC12}\u{C740} ${e.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`\u{AC12}\u{C740} ${e.minValue} \u{C774}\u{D6C4}\u{C5EC}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.maxValue} arba ankstesn\u{117}.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${e.minValue} arba naujesn\u{117}.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.maxValue} vai agr\u{101}kai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${e.minValue} vai v\u{113}l\u{101}kai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.maxValue} lub wcze\u{15B}niejsz\u{105}.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${e.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xe0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xedcio deve ser anterior \xe0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xedvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u{103} fie ${e.maxValue} sau anterioar\u{103}.`,rangeReversed:"Data de \xeenceput trebuie să fie anterioară datei de sf\xe2rșit.",rangeUnderflow:e=>`Valoarea trebuie s\u{103} fie ${e.minValue} sau ulterioar\u{103}.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed by\u{165} ${e.maxValue} alebo skor\u{161}ia.`,rangeReversed:"D\xe1tum začiatku mus\xed byť skorš\xed ako d\xe1tum konca.",rangeUnderflow:e=>`Hodnota mus\xed by\u{165} ${e.minValue} alebo neskor\u{161}ia.`,unavailableDate:"Vybrat\xfd d\xe1tum je nedostupn\xfd."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u{161}a.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u{161}a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xe5ste vara f\xf6re slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xe4r inte tillg\xe4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u{11F}er, ${e.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,rangeReversed:"Başlangı\xe7 tarihi bitiş tarihinden \xf6nce olmalıdır.",rangeUnderflow:e=>`De\u{11F}er, ${e.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,unavailableDate:"Se\xe7ilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${e.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,unavailableDate:"所選日期無法使用。"}};let aX={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},aQ={...aX,customError:!0,valid:!1},aJ={isInvalid:!1,validationDetails:aX,validationErrors:[]},a0=(0,m.createContext)({}),a1="__reactAriaFormValidationState";function a2(e){if(e[a1]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[a1];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;r&&(t||="invalid"===r);let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:aQ}:null,u=(0,m.useMemo)(()=>o&&null!=i?a4(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return a3(r)}return[]}(o,i)):null,[o,i]);a?.validationDetails.valid&&(a=void 0);let c=(0,m.useContext)(a0),d=(0,m.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>a3(c[e])):a3(c[n]):[],[c,n]),[f,p]=(0,m.useState)(c),[h,y]=(0,m.useState)(!1);c!==f&&(p(c),y(!1));let g=(0,m.useMemo)(()=>a4(h?[]:d),[h,d]),v=(0,m.useRef)(aJ),[b,w]=(0,m.useState)(aJ),x=(0,m.useRef)(aJ),[S,E]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{if(!S)return;E(!1);let e=u||a||v.current;a5(e,x.current)||(x.current=e,w(e))}),{realtimeValidation:l||g||u||a||aJ,displayValidation:"native"===s?l||g||b:l||g||u||a||b,updateValidation(e){"aria"!==s||a5(b,e)?v.current=e:w(e)},resetValidation(){a5(aJ,x.current)||(x.current=aJ,w(aJ)),"native"===s&&E(!1),y(!0)},commitValidation(){"native"===s&&E(!0),y(!0)}}}(e)}function a3(e){return e?Array.isArray(e)?e:[e]:[]}function a4(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:aQ}:null}function a5(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function a6(...e){let t=new Set,r=!1,n={...aX};for(let i of e){for(let e of i.validationErrors)t.add(e);for(let e in r||=i.isInvalid,n)n[e]||=i.validationDetails[e]}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}var a8=r(5923);let a9=new iS((bU=aq)&&bU.__esModule?bU.default:bU);function a7(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function oe(e,t,r,n,i){let a=null!=e&&null!=r&&e.compare(r)>0,o=null!=e&&null!=t&&0>e.compare(t),s=null!=e&&n?.(e)||!1,l=a||o||s,u=[];if(l){let e=a7(),n=new iO(e,iS.getGlobalDictionaryForPackage("@react-stately/datepicker")||a9),l=new ip(e,on({},i)),c=l.resolvedOptions().timeZone;o&&null!=t&&u.push(n.format("rangeUnderflow",{minValue:l.format(t.toDate(c))})),a&&null!=r&&u.push(n.format("rangeOverflow",{maxValue:l.format(r.toDate(c))})),s&&u.push(n.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}let ot={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},or={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function on(e,t){e={...t.shouldForceLeadingZeros?or:ot,...e};let r=t.granularity||"minute",n=Object.keys(e),i=n.indexOf(t.maxGranularity??"year");i<0&&(i=0);let a=n.indexOf(r);if(a<0&&(a=2),i>a)throw Error("maxGranularity must be greater than granularity");let o=n.slice(i,a+1).reduce((t,r)=>(t[r]=e[r],t),{});return null!=t.hourCycle&&(o.hour12=12===t.hourCycle),o.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(o.timeZoneName="short"),t.showEra&&0===i&&(o.era="short"),o}function oi(e){return e&&"hour"in e?e:new(0,a8.gX)}function oa(e,t){return null===e?null:e?(0,iY.yP)(e,t):void 0}function oo(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=(0,m.useState)([n,r]);return e&&(i[0]!==n||i[1]!==r)&&a([n,r]),t||(t=e?n:i[0]),[t,e?r:i[1]]}let os=new iS({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"\xf1\xf1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xe9\xe9\xe9\xe9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xe1\xe1\xe1\xe1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class ol{constructor(e,t,r){if(this.era=r?.era??null,this.calendar=e,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,null!=this.hour){let[e,r]=oc(this.hour,t);this.dayPeriod=e,this.hour=r}}copy(){let e=new ol(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,r]=oc(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===r}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,r){let n=this.copy();return n[e]=t,"hour"===e&&null==n.dayPeriod&&"hour"in r&&(n.dayPeriod=oc(r.hour,this.hourCycle)[0]),"year"===e&&null==n.era&&(n.era=r.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(n.offset=null),n}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,r,n){let i=this.copy();if(null==i[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in r){let[e,t]=oc(r.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=r[e];return"year"===e&&null==i.era&&(i.era=r.era),i}switch(e){case"era":{let e=this.calendar.getEras(),r=e.indexOf(i.era);r=ou(r,t,0,e.length-1),i.era=e[r];break}case"year":{let n=new(0,a8.ng)(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);i.era=(n=n.cycle(e,t,{round:"year"===e})).era,i.year=n.year;break}case"month":i.month=ou(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":i.day=ou(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=n.some(e=>["year","month","day"].includes(e));if("timeZone"in r&&(!e||null!=i.year&&null!=i.month&&null!=i.day)){let e=this.toValue(r),[n,a]=oc((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);i.hour=a,i.dayPeriod=n,i.offset=e.offset}else{let e=i.hour??0,n=this.getSegmentLimits("hour");i.hour=ou(e,t,n.minValue,n.maxValue),null==i.dayPeriod&&"hour"in r&&(i.dayPeriod=oc(r.hour,this.hourCycle)[0])}break}case"dayPeriod":i.dayPeriod=ou(i.dayPeriod??0,t,0,1);break;case"minute":i.minute=ou(i.minute??0,t,0,59,!0);break;case"second":i.second=ou(i.second??0,t,0,59,!0)}return i}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,r){switch(r){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let r=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in r&&null!=this.offset&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function ou(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function oc(e,t){let r=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":r=null;break;case"h24":e+=1,r=null}return[r,e]}var od=r(449);let of={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},op={year:5,month:2,day:7,hour:2,minute:15,second:15},oh={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function om(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[d,f]=oo(c,e.granularity),p=f||"UTC";if(c&&!(d in c))throw Error("Invalid granularity "+d+" for value "+c.toString());let[h,y]=(0,m.useMemo)(()=>{let n=new ip(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[r(n.calendar),n.hourCycle]},[t,e.hourCycle,r]),[g,v]=i3(e.value,e.defaultValue??null,e.onChange),[b]=(0,m.useState)(g),w=(0,m.useMemo)(()=>oa(g,h)??null,[g,h]),[x,S]=(0,m.useState)(()=>new ol(h,y,w)),E="gregory"===h.identifier&&"BC"===x.era,D=(0,m.useMemo)(()=>({granularity:d,maxGranularity:e.maxGranularity??"year",timeZone:f,hideTimeZone:n,hourCycle:e.hourCycle,showEra:E,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,n,E]),O=(0,m.useMemo)(()=>on({},D),[D]),j=(0,m.useMemo)(()=>new ip(t,O),[t,O]),P=(0,m.useMemo)(()=>j.resolvedOptions(),[j]),C=(0,m.useMemo)(()=>(function(e,t,r,n){if(e)return oa(e,r);let i=(0,iY.yP)((0,ik.tB)(n??(0,ik.Xj)()).set({hour:0,minute:0,second:0,millisecond:0}),r);return"year"===t||"month"===t||"day"===t?(0,iY.gw)(i):n?i:(0,iY.tR)(i)})(e.placeholderValue,d,h,f),[e.placeholderValue,d,h,f]),k=(0,m.useMemo)(()=>{let t="h11"===y||"h12"===y,r=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],n=r.indexOf(e.maxGranularity||"era"),i=r.indexOf("hour"===d&&t?"dayPeriod":d);return r.slice(n,i+1)},[e.maxGranularity,d,y]),[A,T]=(0,m.useState)(w),[N,R]=(0,m.useState)(h),[I,M]=(0,m.useState)(y);w===A&&y===I&&(0,ik.Jg)(h,N)||(x=new ol(h,y,w),T(w),R(h),M(y),S(x));let _=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof ol&&t.isCleared(k))S(new ol(h,y,w)),v(null);else if(t instanceof ol){if(t.isComplete(k)){let e=t.toValue(w??C);if(t.validate(e,k)){let t=(0,iY.yP)(e,c?.calendar||new(0,i4.FG));if(!g||0!==t.compare(g)){S(new ol(h,y,w)),v(t);return}}}S(t)}else t=(0,iY.yP)(t,c?.calendar||new(0,i4.FG)),S(new ol(h,y,w)),v(t)},L=(0,m.useMemo)(()=>x.toValue(w??C).toDate(p),[x,p,w,C]),F=(0,m.useMemo)(()=>(function(e,t,r,n,i,a,o){let s=["hour","minute","second"],l=r.formatToParts(e),u=new(0,od.K)(a,{useGrouping:!1}),c=new(0,od.K)(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of l)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let r=t[e.type]??0;"2-digit"===n[e.type]?e.value=c.format(r):e.value=u.format(r)}let d=[];for(let e of l){var f;let r=oh[e.type]||e.type,n=of[r];"era"===r&&1===i.getEras().length&&(n=!1);let l=of[r]&&null==t[e.type],u=of[r]?(f=e.value,"era"===r||"dayPeriod"===r?f:"year"===r||"month"===r||"day"===r?os.getStringForLocale(r,a):"––"):null,c={type:r,text:l?u:e.value,...t.getSegmentLimits(r),isPlaceholder:l,placeholder:u,isEditable:n};"hour"===r?(d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),d.push(c),r===o&&d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(r)&&r===o?(d.push(c),d.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.push(c)}return d})(L,x,j,P,h,t,d),[L,j,P,x,h,t,d]),B=(e,t)=>{_(x.cycle(e,t,C,k))},V=(0,m.useMemo)(()=>oe(g,s,l,u,D),[g,s,l,u,D]),U=a2({...e,value:g,builtinValidation:V}),W=U.displayValidation.isInvalid,$=e.validationState||(W?"invalid":null);return{...U,value:w,defaultValue:e.defaultValue??b,dateValue:L,calendar:h,setValue:_,segments:F,dateFormatter:j,validationState:$,isInvalid:W,granularity:d,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(e){B(e,1)},decrement(e){B(e,-1)},incrementPage(e){B(e,op[e]||1)},decrementPage(e){B(e,-(op[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===y?11:x.getSegmentLimits(e).maxValue;_(x.set(e,t,C))},decrementToMin(e){let t="hour"===e&&"h12"===y?12:x.getSegmentLimits(e).minValue;_(x.set(e,t,C))},setSegment(e,t){_(x.set(e,t,C))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&x.isComplete(k)){let e=x.toValue(w??C),t=(0,iY.yP)(e,c?.calendar||new(0,i4.FG));g&&0===t.compare(g)||v(t),S(new ol(h,y,w))}},clearSegment(e){let t=x;"timeZoneName"!==e&&"literal"!==e&&(t=x.clear(e)),_(t)},formatValue:e=>w?new ip(t,on(e,D)).format(L):"",getDateFormatter:(e,t)=>new ip(e,on({},{...D,...t}))}}let oy=(0,m.createContext)(null),og=(0,m.createContext)(null),ov=(0,m.createContext)(null),ob=(0,m.forwardRef)(function(e,t){let r=(0,m.useContext)(og),n=(0,m.useContext)(ov);return r||n?y().createElement(ox,{...e,ref:t}):y().createElement(ow,{...e,ref:t})}),ow=(0,m.forwardRef)((e,t)=>{let[r,n]=t7({slot:e.slot},t,oy),{locale:i}=ic(),a=om({...r,locale:i,createCalendar:iK.d}),o=(0,m.useRef)(null),{fieldProps:s,inputProps:l}=aZ({...r,inputRef:o},a,n);return y().createElement(t6,{values:[[og,a],[ag,{...l,ref:o}],[am,{...s,ref:n,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},y().createElement(ox,e))}),ox=(0,m.forwardRef)((e,t)=>{let{className:r,children:n}=e,i=(0,m.useContext)(og),a=(0,m.useContext)(ov),o=i??a;return y().createElement(y().Fragment,null,y().createElement(ay,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((e,t)=>(0,m.cloneElement)(n(e),{key:t}))),y().createElement(av,{className:""}))});function oS({children:e}){let t=(0,m.useMemo)(()=>({register:()=>{}}),[]);return y().createElement(nj.Provider,{value:t},e)}y().forwardRef(({children:e,...t},r)=>{let n=(0,m.useRef)(!1),i=(0,m.useContext)(nj),a=t3(i||{},{...t,register(){n.current=!0,i&&i.register()}});return a.ref=t4(r||i?.ref),ng(i,a.ref),(0,m.useEffect)(()=>{n.current||(n.current=!0)},[]),y().createElement(nj.Provider,{value:a},e)});let oE=(0,m.createContext)({}),oD=y().createContext(null);function oO(e){let t=tY(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[i,a]=(0,m.useState)(!1),o=(0,m.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=(0,m.useContext)(oE)??{};if(!e.portalContainer&&s&&(r=s()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=y().createElement(aE,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!n},l)),l=y().createElement(oD.Provider,{value:o},y().createElement(oS,null,y().createElement(nv.Provider,{value:null},l))),nT().createPortal(l,r)}let oj=(0,m.createContext)(null),oP=(0,m.createContext)(null),oC=(0,m.forwardRef)(function(e,t){let r=e["aria-labelledby"];[e,t]=t7(e,t,oj);let{dialogProps:n,titleProps:i,contentProps:a}=function(e,t){let r,n,{role:i="dialog"}=e,a=tJ();a=e["aria-label"]?void 0:a;let o=tJ();o="alertdialog"!==i||e["aria-describedby"]?void 0:o;let s=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(t.current&&!rj(t.current)){nl(t.current);let e=setTimeout(()=>{(((e=document)=>e.activeElement)()===t.current||((e=document)=>e.activeElement)()===document.body)&&(s.current=!0,t.current&&(t.current.blur(),nl(t.current)),s.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),r=(0,m.useContext)(oD),tB(()=>{n?.(!0)},[n=r?.setContain]),(0,m.useRef)(!1),(0,m.useEffect)(()=>{});let l=e["aria-describedby"]??o;return{dialogProps:{...rm(e,{labelable:!0}),role:i,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??a,"aria-describedby":l,onBlur:e=>{s.current&&e.stopPropagation()}},titleProps:{id:a},contentProps:{id:o}}}({...e,"aria-labelledby":r},t),o=(0,m.useContext)(oP);n["aria-label"]||n["aria-labelledby"]||e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]);let s=t8({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:o?.close||(()=>{})}}),l=rm(e,{global:!0});return y().createElement(ri.section,{...t3(l,s,n),render:e.render,ref:t,slot:e.slot||void 0},y().createElement(t6,{values:[[n1,{slots:{[t5]:{},title:{...i,level:2}}}],[n2,{slots:{[t5]:{},description:a}}],[nQ,{slots:{[t5]:{},close:{onPress:()=>o?.close()}}}]]},s.children))}),ok=(0,m.createContext)(null),oA=(0,m.forwardRef)(function(e,t){let r=(0,m.useContext)(ok);return r?.isInvalid?y().createElement(oT,{...e,ref:t}):null}),oT=(0,m.forwardRef)((e,t)=>{let r=(0,m.useContext)(ok),{elementType:n,...i}=e,a=rm(i,{global:!0}),o=t8({...i,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==o.children?null:y().createElement(n3,{slot:"errorMessage",elementType:n,...a,...o,ref:t})}),oN=(0,m.createContext)(null);var oR=r(2298);let oI=["day","month","year"],oM={hour:1,minute:2,second:3};function o_(e){let{state:t}=e,{containerProps:r,inputProps:n}=function(e,t){let{autoComplete:r,isDisabled:n,name:i}=e,{visuallyHiddenProps:a}=at({style:{position:"fixed",top:0,left:0}}),o=60;"second"===t.granularity?o=1:"hour"===t.granularity&&(o=3600);let s="";t.value&&(s="day"===t.granularity?(0,iY.gw)(t.value).toString():(0,iY.tR)("timeZone"in t.value?(0,iY.Ou)(t.value):t.value).toString());let l="day"===t.granularity?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(t.granularity)&&(c=oM[t.granularity],u=u.slice(0,c)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:r,disabled:n,type:l,form:"",name:i,step:o,value:s,onChange:e=>{let r=rD(e).value.toString();if(r)try{let e=(0,oR.DP)(r);if("day"===t.granularity&&(e=(0,oR._U)(r)),"setSegment"in t)for(let r in e)oI.includes(r)&&t.setSegment(r,e[r]),u.includes(r)&&t.setSegment(r,e[r]);t.setValue(e)}catch{}}}}}({...e},t);return y().createElement("div",{...r,"data-testid":"hidden-dateinput-container"},y().createElement("input",n))}let oL=(0,m.createContext)({}),oF=nz(function(e,t){[e,t]=t7(e,t,oL);let{elementType:r="label",...n}=e,i=ri[r];return y().createElement(i,{className:"react-aria-Label",...n,ref:t})}),oB=(0,m.createContext)({placement:"bottom"}),oV="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,oU=new WeakMap,oW=[];function o$(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function oz(e,t){let r=e,n=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let e=i.indexOf(".");e>=0&&(n=i.length-e)}if(n>0){let e=Math.pow(10,n);r=Math.round(r*e)/e}return r}function oH(e,t,r,n){t=Number(t),r=Number(r);let i=(e-(isNaN(t)?0:t))%n,a=oz(2*Math.abs(i)>=n?e+Math.sign(i)*(n-Math.abs(i)):e-i,n);return isNaN(t)?!isNaN(r)&&a>r&&(a=Math.floor(oz(r/n,n))*n):a<t?a=t:!isNaN(r)&&a>r&&(a=t+Math.floor(oz((r-t)/n,n))*n),a=oz(a,n)}let oG={top:"top",bottom:"top",left:"left",right:"left"},oK={top:"bottom",bottom:"top",left:"right",right:"left"},oY={top:"left",left:"top"},oZ={top:"height",left:"width"},oq={width:"totalWidth",height:"totalHeight"},oX={};function oQ(e,t){let r=0,n=0,i=0,a=0,o=0,s=0,l={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let u=document.documentElement;i=u.clientWidth,a=u.clientHeight,r=t?.width??i,n=t?.height??a,l.top=u.scrollTop||e.scrollTop,l.left=u.scrollLeft||e.scrollLeft,t&&(o=Math.max(0,t.pageTop-(l.top??0)),s=Math.max(0,t.pageLeft-(l.left??0)))}else({width:r,height:n,top:o,left:s}=o4(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,i=r,a=n;return rG()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(l.top=0,l.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:r,height:n,totalWidth:i,totalHeight:a,scroll:l,top:o,left:s}}function oJ(e,t,r,n,i,a,o){let s=i.scroll[e]??0,l=n[oZ[e]],u=o[e]+n.scroll[oG[e]]+a,c=o[e]+n.scroll[oG[e]]+l-a,d=t-s+n.scroll[oG[e]]+o[e]-n[oG[e]],f=t-s+r+n.scroll[oG[e]]+o[e]-n[oG[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function o0(e){if(oX[e])return oX[e];let[t,r]=e.split(" "),n=oG[t]||"right",i=oY[n];oG[r]||(r="center");let a=oZ[n],o=oZ[i];return oX[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:a,crossSize:o},oX[e]}function o1(e,t,r,n,i,a,o,s,l,u,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:h,size:m,crossSize:y}=n,g={};g[h]=e[h]??0,"center"===f?g[h]+=((e[y]??0)-(r[y]??0))/2:f!==h&&(g[h]+=(e[y]??0)-(r[y]??0)),g[h]+=a;let v=e[h]-r[y]+l+u,b=e[h]+e[y]-l-u;if(g[h]=o$(g[h],v,b),d===p){let t=s?c[m]:c[oq[m]];g[oK[p]]=Math.floor(t-e[p]+i)}else g[p]=Math.floor(e[p]+e[m]+i);return g}function o2(e,t,r,n,i,a,o,s){let{placement:l,axis:u,size:c}=a;return l===u?Math.max(0,r[u]-(o.scroll[u]??0)-(e[u]+(s?t[u]:0))-(n[u]??0)-n[oK[u]]-i):Math.max(0,e[c]+e[u]+(s?t[u]:0)-r[u]-r[c]+(o.scroll[u]??0)-(n[u]??0)-n[oK[u]]-i)}function o3(e,t){let{top:r,left:n,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:i,height:a}}function o4(e,t,r){let{top:n,left:i,width:a,height:o}=r||o3(e,t),{scrollTop:s,scrollLeft:l,clientTop:u,clientLeft:c}=document.documentElement;return{top:n+s-u,left:i+l-c,width:a,height:o}}function o5(e,t,r,n){let i,a=window.getComputedStyle(e);if("fixed"===a.position)i=n||o3(e,r);else{i=o4(e,r,n);let a=o4(t,r),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=a.top,i.left-=a.left}return i.top-=parseInt(a.marginTop,10)||0,i.left-=parseInt(a.marginLeft,10)||0,i}function o6(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let o8=new WeakMap;function o9(e){let{ref:t,box:r,onResize:n}=e,i=nC(n);(0,m.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}},[t,r])}let o7="u">typeof document?window.visualViewport:null;function se(e,t){if(e.button>0)return!1;let r=rD(e);if(r){let e=r.ownerDocument;if(!e||!rE(e.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}let st=[],sr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sn(e){return e instanceof HTMLInputElement&&!sr.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let si="u">typeof document&&window.visualViewport,sa=0;function so(e,t){t||!si?ss(e):si.addEventListener("resize",()=>ss(e),{once:!0})}function ss(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=iB(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.top<t.top||n.bottom>t.top+r.clientHeight){let r=t.bottom;si&&(r=Math.min(r,si.offsetTop+si.height));let i=n.top-t.top-((r-t.top)/2-n.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:"smooth"})}}r=e.parentElement}}var sl={};function su(e){var t;let{onDismiss:r,...n}=e,i=iM(n,iC((t=sl)&&t.__esModule?t.default:t,"@react-aria/overlays").format("dismiss"));return y().createElement(ar,null,y().createElement("button",{...i,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}function sc(e){let[t,r]=i3(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[n,i]=(0,m.useState)(null),a=(0,m.useCallback)(()=>{r(!0)},[r]),o=(0,m.useCallback)(()=>{r(!1)},[r]),s=(0,m.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:a,close:o,toggle:s,point:n,setPoint:i}}function sd(e,t,r){tB(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void r();let t=e.current.getAnimations();if(0===t.length)return void r();let n=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{n||(0,nA.flushSync)(()=>{r()})}),()=>{n=!0}}},[e,t,r])}sl={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xdfen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xf5peta"},"fi-FI":{dismiss:"Hylk\xe4\xe4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xedt\xe1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let sf=(0,m.createContext)(null),sp=(0,m.createContext)(null),sh=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sf);let r=(0,m.useContext)(oP),n=sc(e),i=null==e.isOpen&&null==e.defaultOpen&&r?r:n,a=function(e,t){let[r,n]=(0,m.useState)(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open")}let i="exiting"===r;return sd(e,i,(0,m.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),i}(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=(0,m.useContext)(n$),{direction:l}=ic();if(s){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),y().createElement(y().Fragment,null,t)}return!i||i.isOpen||o?y().createElement(sm,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:l}):null});function sm({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let o=(0,m.useRef)(null),s=(0,m.useRef)(null),l=(0,m.useContext)(sp),u=l&&"SubmenuTrigger"===a.trigger,{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:h}=function(e,t){let{triggerRef:r,popoverRef:n,groupRef:a,isNonModal:o,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l,...u}=e,c="SubmenuTrigger"===u.trigger,{overlayProps:d,underlayProps:f}=function(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,l=(0,m.useRef)(void 0);(0,m.useEffect)(()=>{if(i&&!st.includes(t))return st.push(t),()=>{let e=st.indexOf(t);e>=0&&st.splice(e,1)}},[i,t]);let u=()=>{st[st.length-1]===t&&r&&r()},{keyboardProps:c}=ny({shortcuts:{Escape:()=>!o&&void u()}});!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,a=(0,m.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=nC(e=>{r&&se(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=nC(e=>{r&&r(e)});(0,m.useEffect)(()=>{let e=a.current;if(n)return;let r=rv(t.current);if("u">typeof PointerEvent){let n=r=>{e.isPointerDown&&se(r,t)&&s(r),e.isPointerDown=!1};return r.addEventListener("pointerdown",o,!0),r.addEventListener("click",n,!0),()=>{r.removeEventListener("pointerdown",o,!0),r.removeEventListener("click",n,!0)}}},[t,n])}({ref:t,onInteractOutside:a&&i?e=>{(!s||s(rD(e)))&&(st[st.length-1]===t&&e.stopPropagation(),l.current===t&&u()),l.current=void 0}:void 0,onInteractOutsideStart:e=>{let r=st[st.length-1];l.current=r,(!s||s(rD(e)))&&r===t&&e.stopPropagation()}});let{focusWithinProps:d}=nH({isDisabled:!n,onBlurWithin:e=>{!(!e.relatedTarget||aP(e.relatedTarget,aS))&&(!s||s(e.relatedTarget))&&r?.()}});return{overlayProps:{...c,...d},underlayProps:{}}}({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||c,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:l},a??n),{overlayProps:p,arrowProps:h,placement:y,triggerAnchorPoint:g}=function(e){var t;let{direction:r}=ic(),{arrowSize:n,targetRef:i,overlayRef:a,arrowRef:o,scrollRef:s=a,placement:l="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d="u">typeof document?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:y=!0,onClose:g,maxHeight:v,arrowBoundaryOffset:b=0,getTargetRect:w}=e,[x,S]=(0,m.useState)(null),E=[h,l,a.current,i.current,o?.current,s.current,u,c,d,f,p,y,r,v,b,n],D=(0,m.useRef)(o7?.scale);(0,m.useEffect)(()=>{y&&(D.current=o7?.scale)},[y]);let O=(0,m.useCallback)(()=>{var e;if(!1===h||!y||!a.current||!i.current||!d||o7?.scale!==D.current)return;let t=null;if(s.current&&rj(s.current)){let e=((e=document)=>e.activeElement)()?.getBoundingClientRect(),r=s.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-r.top}).offset>r.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-r.bottom)}let m=a.current;!v&&a.current&&(m.style.top="0px",m.style.bottom="",m.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let g=function(e){let t,r,{placement:n,targetNode:i,overlayNode:a,scrollNode:o,padding:s,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:p=0,arrowBoundaryOffset:h=0,targetRect:m}=e,y="u">typeof document?window.visualViewport:null,g=a instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!o6(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!o6(t);)t=t.parentElement;return t||document.documentElement}(a):document.documentElement,v=g===document.documentElement,b=window.getComputedStyle(g).position,w=v?o4(i,!1,m):o5(i,g,!1,m);if(!v){let{marginTop:e,marginLeft:t}=window.getComputedStyle(i);w.top+=parseInt(e,10)||0,w.left+=parseInt(t,10)||0}let x=o4(a,!0),S={top:parseInt((t=window.getComputedStyle(a)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};x.width+=(S.left??0)+(S.right??0),x.height+=(S.top??0)+(S.bottom??0),o.scrollTop,o.scrollLeft,o.scrollWidth,o.scrollHeight;let E=oQ(u,y),D=oQ(g,y);if("BODY"!==u.tagName&&"HTML"!==u.tagName||v)r=("BODY"===u.tagName||"HTML"===u.tagName)&&v?{top:0,left:0,width:0,height:0}:o5(u,g,!1);else{let e=o3(g,!1);r={top:-(e.top-E.top),left:-(e.left-E.left),width:0,height:0}}return function(e,t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y){var g,v,b;let w,x,S,E=o0(e),{size:D,crossAxis:O,crossSize:j,placement:P,crossPlacement:C}=E,k=o1(t,o,r,E,u,c,l,d,p,h,s),A=u,T=o2(o,l,t,n,i+u,E,s,m);if(a&&r[D]>T){let e=o0(`${oK[P]} ${C}`),a=o1(t,o,r,e,u,c,l,d,p,h,s);o2(o,l,t,n,i+u,e,s,m)>T&&(E=e,k=a,A=u)}let N="bottom";"top"===E.axis?"top"===E.placement?N="top":"bottom"===E.placement&&(N="bottom"):"top"===E.crossAxis&&("top"===E.crossPlacement?N="bottom":"bottom"===E.crossPlacement&&(N="top"));let R=oJ(O,k[O],r[j],o,s,i,l);k[O]+=R;let I=(g=k,v=r.height,b=N,w=(null!=g.top?g.top:s[oq.height]-(g.bottom??0)-v)-(s.scroll.top??0),x=m?l.top:0,S={top:Math.max(o.top+x,(y?.offsetTop??o.top)+x),bottom:Math.min(o.top+o.height+x,(y?.offsetTop??0)+(y?.height??0))},"top"!==b?Math.max(0,S.bottom-w-((n.top??0)+(n.bottom??0)+i)):Math.max(0,w+v-S.top-((n.top??0)+(n.bottom??0)+i)));f&&f<I&&(I=f),r.height=Math.min(r.height,I),R=oJ(O,(k=o1(t,o,r,E,A,c,l,d,p,h,s))[O],r[j],o,s,i,l),k[O]+=R;let M={},_=t[O]-k[O]-n[oG[O]],L=_+.5*t[j],F=p/2+h,B="left"===oG[O]?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),V=r[j]-B-p/2-h,U=o$(L,t[O]+p/2-(k[O]+n[oG[O]]),t[O]+t[j]-p/2-(k[O]+n[oG[O]]));M[O]=o$(U,F,V),({placement:P,crossPlacement:C}=E),p?_=M[O]:"right"===C?_+=t[j]:"center"===C&&(_+=t[j]/2);let W="left"===P||"top"===P?r[D]:0,$={x:"top"===P||"bottom"===P?_:W,y:"left"===P||"right"===P?_:W};return{position:k,maxHeight:I,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:P,triggerAnchorPoint:$}}(n,w,x,S,s,l,E,D,r,c,d,!!b&&"static"!==b,f,p,h,rE(u,g),y)}({placement:(e=l,"rtl"===r?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:a.current,targetNode:i.current,scrollNode:s.current||a.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:p,maxHeight:v,arrowSize:n??(o?.current?o3(o.current,!0).width:0),arrowBoundaryOffset:b,targetRect:w?.(i.current)});if(!g.position)return;m.style.top="",m.style.bottom="",m.style.left="",m.style.right="",Object.keys(g.position).forEach(e=>m.style[e]=g.position[e]+"px"),m.style.maxHeight=null!=g.maxHeight?g.maxHeight+"px":"";let x=((e=document)=>e.activeElement)();if(t&&x&&s.current){let e=x.getBoundingClientRect(),r=s.current.getBoundingClientRect(),n=e[t.type]-r[t.type];s.current.scrollTop+=n-t.offset}S(g)},E);tB(O,E),tB(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t=O]),o9({ref:a,onResize:O}),o9({ref:i,onResize:O});let j=(0,m.useRef)(!1);tB(()=>{let e,t=()=>{j.current=!0,clearTimeout(e),e=setTimeout(()=>{j.current=!1},500),O()},r=()=>{j.current&&t()};o7?.addEventListener("resize",t),o7?.addEventListener("scroll",r);let n=rx(rO(window),"scroll",r);return()=>{o7?.removeEventListener("resize",t),o7?.removeEventListener("scroll",r),n()}},[O]);let P=(0,m.useCallback)(()=>{j.current||g?.()},[g,j]);return!function(e){let{triggerRef:t,isOpen:r,onClose:n}=e;(0,m.useEffect)(()=>{if(r&&null!==n)return rx(rO(t.current),"scroll",e=>{let r=rD(e);if(!t.current||r instanceof Node&&!rE(r,t.current)||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)return;let i=n||o8.get(t.current);i&&i()},!0)},[r,n,t])}({triggerRef:i,isOpen:y,onClose:g&&P}),{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x?.position,maxHeight:x?.maxHeight??"100vh"}},placement:x?.placement??null,triggerAnchorPoint:x?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x?.arrowOffsetLeft,top:x?.arrowOffsetTop}},updatePosition:O}}({...u,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:o&&!c?t.close:null,getTargetRect:u.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});!function(e={}){let{isDisabled:t}=e;tB(()=>{if(!t){let e,t,r,n,a,o,s,l;return 1==++sa&&(i=rH()&&rG()?(t=rS(document.documentElement,"overflow","hidden"),r=!1,n=document.createElement("style"),(a=nO())&&(n.nonce=a),n.textContent=`
|
|
8
|
-
@layer {
|
|
9
|
-
* {
|
|
10
|
-
overscroll-behavior: contain;
|
|
11
|
-
}
|
|
12
|
-
}`.trim(),document.head.prepend(n),o=HTMLElement.prototype.focus,Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(e){let t=((e=document)=>e.activeElement)(),r=null!=t&&sn(t);o.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||so(this,r)}}),s=tF(rx(document,"touchstart",t=>{let n=rD(t);e=iF(n)?n:iB(n,!0),r=!1;let i=n.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),rx(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),rx(document,"blur",e=>{let t=rD(e),r=e.relatedTarget;if(r&&sn(r))r.focus({preventScroll:!0}),so(r,sn(t));else if(!r){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{t(),s(),n.remove(),Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:o})}):tF((l=window.innerWidth-document.documentElement.clientWidth)>0&&("scrollbarGutter"in document.documentElement.style?rS(document.documentElement,"scrollbar-gutter","stable"):rS(document.documentElement,"padding-right",`${l}px`)),rS(document.documentElement,"overflow","hidden"))),()=>{0==--sa&&i()}}},[t])}({isDisabled:o||!t.isOpen}),(0,m.useEffect)(()=>{if(t.isOpen&&n.current)if(o){var e,r,i=a?.current??n.current;let t=oW[oW.length-1];return t&&!t.visibleNodes.has(i)?(t.visibleNodes.add(i),()=>{t.visibleNodes.delete(i)}):void 0}else{let t,i,o,s,l,u,c,d,f,p,h;return e=[a?.current??n.current],i=(r={shouldUseInert:!0})instanceof(t=rb(e?.[0])).Element?{root:r}:r,o=i?.root??document.body,s=i?.shouldUseInert&&oV,l=new Set(e),u=new Set,c=(e,r)=>{s&&e instanceof t.HTMLElement?e.inert=r:r?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof t.HTMLElement&&(e.inert=!1))},d=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(u.has(e)||l.has(e)||e.parentElement&&u.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(rE(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=ab(rv(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&f(e),n!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)f(e),e=r.nextNode()}},f=e=>{let r=oU.get(e)??0;(s&&e instanceof t.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===r||(0===r&&c(e,!0),u.add(e),oU.set(e,r+1))},oW.length&&oW[oW.length-1].disconnect(),d(o),(p=new MutationObserver(e=>{for(let r of e)if("childList"===r.type&&r.target.isConnected&&![...l,...u].some(e=>rE(e,r.target)))for(let e of r.addedNodes){var t;(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===(t=e).dataset.liveAnnouncer||void 0!==t.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&d(e)}})).observe(o,{childList:!0,subtree:!0}),h={visibleNodes:l,hiddenNodes:u,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}},oW.push(h),()=>{for(let e of(p.disconnect(),u)){let t=oU.get(e);null!=t&&(1===t?(c(e,!1),oU.delete(e)):oU.set(e,t-1))}h===oW[oW.length-1]?(oW.pop(),oW.length&&oW[oW.length-1].observe()):oW.splice(oW.indexOf(h),1)}}},[o,t.isOpen,n,a]);let{focusWithinProps:v}=nH(e);return{popoverProps:t3(d,p,v),arrowProps:h,underlayProps:f,placement:y,triggerAnchorPoint:g}}({...a,offset:a.offset??8,arrowRef:o,groupRef:u?l:s},e),g=a.popoverRef,v=function(e,t=!0){let[r,n]=(0,m.useState)(!0),i=r&&t;return tB(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),sd(e,i,(0,m.useCallback)(()=>n(!1),[])),i}(g,!!p),b=a.isEntering||!a.shouldSkipAnimation&&v||!1,w=t8({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:b,isExiting:t}}),x=!a.isNonModal||"SubmenuTrigger"===a.trigger||"PreviewTrigger"===a.trigger,[S,E]=(0,m.useState)("PreviewTrigger"===a.trigger);tB(()=>{g.current&&E(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),(0,m.useEffect)(()=>{S&&"PreviewTrigger"!==a.trigger&&("SubmenuTrigger"!==a.trigger||"pointer"!==rQ)&&g.current&&!rj(g.current)&&nl(g.current)},[S,g,a.trigger]);let D=(0,m.useMemo)(()=>{let e=w.children;if(n)for(let t of n)e=y().createElement(t.Provider,{value:null},e);return e},[w.children,n]),[O,j]=(0,m.useState)(null),P=(0,m.useCallback)(()=>{a.triggerRef.current&&j(a.triggerRef.current.getBoundingClientRect().width+"px")},[a.triggerRef]);tB(P,[P]),o9({ref:w.style?.["--trigger-width"]?void 0:a.triggerRef,onResize:P});let C={...c.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||O},k=y().createElement(ri.div,{...t3(rm(a,{global:!0}),c),...w,id:S?a.id:void 0,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:g,slot:a.slot||void 0,style:C,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":b||void 0,"data-exiting":t||void 0},!a.isNonModal&&y().createElement(su,{onDismiss:e.close}),y().createElement(oB.Provider,{value:{...f,placement:p,ref:o}},D),y().createElement(su,{onDismiss:e.close}));return u?y().createElement(oO,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r??l?.current??void 0},k):y().createElement(oO,{...a,shouldContainFocus:S&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&y().createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),y().createElement("div",{ref:s,style:{display:"contents"}},y().createElement(sp.Provider,{value:s},k)))}function sy(e){return e?.start!=null&&null!=e.end}let sg=(0,m.createContext)(null),sv=(0,m.createContext)(null),sb=(0,m.createContext)(null),sw=(0,m.createContext)(null),sx=[am,nQ,oL,n2],sS=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sg);let{validationBehavior:r}=t9(oN)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i3(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),a=r||e.placeholderValue||null,[o,s]=oo(a,e.granularity),l=null!=r?r.toDate(s??"UTC"):null,u="hour"===o||"minute"===o||"second"===o,c=e.shouldCloseOnSelect??!0,[d,f]=(0,m.useState)(null),[p,h]=(0,m.useState)(null);if(r&&(d=r,"hour"in r&&(p=r)),a&&!(o in a))throw Error("Invalid granularity "+o+" for value "+a.toString());let y=r?.calendar.identifier==="gregory"&&"BC"===r.era,g=(0,m.useMemo)(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:y}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,y]),{minValue:v,maxValue:b,isDateUnavailable:w}=e,x=(0,m.useMemo)(()=>oe(r,v,b,w,g),[r,v,b,w,g]),S=a2({...e,value:r,builtinValidation:x}),E=S.displayValidation.isInvalid,D=e.validationState||(E?"invalid":null),O=(e,t)=>{n("timeZone"in t?t.set((0,iY.gw)(e)):(0,iY.tR)(e,t)),f(null),h(null),S.commitValidation()};return{...S,value:r,defaultValue:e.defaultValue??i,setValue:n,dateValue:d,timeValue:p,setDateValue:r=>{let i="function"==typeof c?c():c;u?p||i?O(r,p||oi(e.defaultValue||e.placeholderValue)):f(r):(n(r),S.commitValidation()),i&&t.setOpen(!1)},setTimeValue:e=>{d&&e?O(d,e):h(e)},granularity:o,hasTime:u,...t,setOpen(n){!n&&!r&&d&&u&&O(d,p||oi(e.defaultValue||e.placeholderValue)),t.setOpen(n)},validationState:D,isInvalid:E,formatValue:(e,t)=>l?new ip(e,on(t,g)).format(l):"",getDateFormatter:(e,t)=>new ip(e,on({},{...g,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,fieldProps:c,buttonProps:d,dialogProps:f,calendarProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n;let i=tQ(),a=tQ(),o=tQ(),s=iC((n=aV)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:l,validationErrors:u,validationDetails:c}=t.displayValidation,{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:h}=a$({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||u}),y=aU(t,r),g=f["aria-labelledby"]||f.id,{locale:v}=ic(),b=t.formatValue(v,{month:"long"}),w=iH(b?s.format("selectedDateDescription",{date:b}):""),x=[w["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=rm(e),E=(0,m.useMemo)(()=>aM(r),[r]),D=(0,m.useRef)(!1),{focusWithinProps:O}=nH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rE(document.getElementById(a),t.relatedTarget)||(D.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{D.current||(D.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}});return{groupProps:t3(S,y,f,w,O,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":g,"aria-describedby":x,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...d,onClick:()=>{E.focusFirst()}},fieldProps:{...f,id:o,[aK]:"presentation","aria-describedby":x,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[a1]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...w,id:i,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${i} ${g}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:a,"aria-labelledby":`${i} ${g}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:l,validationErrors:u,validationDetails:c}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:b,isFocused:w,isFocusVisible:x}=nG({within:!0}),S=t8({...e,values:{state:i,isFocusWithin:w,isFocusVisible:x,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),E=rm(e,{global:!0});return delete E.id,y().createElement(t6,{values:[[sb,i],[am,{...l,ref:a,isInvalid:i.isInvalid}],[oy,c],[nQ,{...d,isPressed:i.isOpen}],[oL,{...u,ref:o,elementType:"span"}],[an,p],[oP,i],[sf,{trigger:"DatePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oj,f],[n2,{slots:{description:h,errorMessage:g}}],[ok,v]]},y().createElement(ri.div,{...t3(E,S,b),ref:t,slot:e.slot||void 0,"data-focus-within":w||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":x||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}),y().createElement(o_,{autoComplete:e.autoComplete,name:e.name,isDisabled:e.isDisabled,state:i}))}),sE=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sv);let{validationBehavior:r}=t9(oN)||{},n=e.validationBehavior??r??"native",i=function(e){let t=sc(e),[r,n]=i3(e.value,e.defaultValue||null,e.onChange),[i]=(0,m.useState)(r),[a,o]=(0,m.useState)(()=>r||{start:null,end:null});null==r&&a.start&&a.end&&o(a={start:null,end:null});let s=r||a,l=e=>{o(s=e||{start:null,end:null}),sy(s)?n(s):n(null)},[u,c]=oo(s?.start||s?.end||e.placeholderValue||null,e.granularity),d="hour"===u||"minute"===u||"second"===u,f=e.shouldCloseOnSelect??!0,[p,h]=(0,m.useState)(null),[y,g]=(0,m.useState)(null);s&&sy(s)&&(p=s,"hour"in s.start&&(y=s));let v=(e,t)=>{l({start:"timeZone"in t.start?t.start.set((0,iY.gw)(e.start)):(0,iY.tR)(e.start,t.start),end:"timeZone"in t.end?t.end.set((0,iY.gw)(e.end)):(0,iY.tR)(e.end,t.end)}),h(null),g(null),P.commitValidation()},b=r=>{let n="function"==typeof f?f():f;d?sy(r)&&(n||y?.start&&y?.end)?v(r,{start:y?.start||oi(e.placeholderValue),end:y?.end||oi(e.placeholderValue)}):h(r):sy(r)?(l(r),P.commitValidation()):h(r),n&&t.setOpen(!1)},w=e=>{sy(p)&&sy(e)?v(p,e):g(e)},x=s?.start?.calendar.identifier==="gregory"&&"BC"===s.start.era||s?.end?.calendar.identifier==="gregory"&&"BC"===s.end.era,S=(0,m.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[u,e.hourCycle,e.shouldForceLeadingZeros,c,e.hideTimeZone,x]),{minValue:E,maxValue:D,isDateUnavailable:O}=e,j=(0,m.useMemo)(()=>{var e,t;let r;return e=s,t=O?e=>O(e,null):void 0,r=a6(oe(e?.start??null,E,D,t,S),oe(e?.end??null,E,D,t,S)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=a6(r,{isInvalid:!0,validationErrors:[(iS.getGlobalDictionaryForPackage("@react-stately/datepicker")||a9).getStringForLocale("rangeReversed",a7())],validationDetails:{...aX,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[s,E,D,O,S]),P=a2({...e,value:r,name:(0,m.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:j}),C=P.displayValidation.isInvalid,k=e.validationState||(C?"invalid":null);return{...P,value:s,defaultValue:e.defaultValue??i,setValue:l,dateRange:p,timeRange:y,granularity:u,hasTime:d,setDate(e,t){"start"===e?b({start:t,end:p?.end??null}):b({start:p?.start??null,end:t})},setTime(e,t){"start"===e?w({start:t,end:y?.end??null}):w({start:y?.start??null,end:t})},setDateTime(e,t){"start"===e?l({start:t,end:s?.end??null}):l({start:s?.start??null,end:t})},setDateRange:b,setTimeRange:w,...t,setOpen(r){!r&&!(s?.start&&s?.end)&&sy(p)&&d&&v(p,{start:y?.start||oi(e.placeholderValue),end:y?.end||oi(e.placeholderValue)}),t.setOpen(r)},validationState:k,isInvalid:C,formatValue(t,r){let n;if(!s||!s.start||!s.end)return null;let i="timeZone"in s.start?s.start.timeZone:void 0,a=e.granularity||(s.start&&"minute"in s.start?"minute":"day"),o="timeZone"in s.end?s.end.timeZone:void 0,l=e.granularity||(s.end&&"minute"in s.end?"minute":"day"),u=on(r,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===s.start.calendar.identifier&&"BC"===s.start.era||"gregory"===s.end.calendar.identifier&&"BC"===s.end.era}),c=s.start.toDate(i||"UTC"),d=s.end.toDate(o||"UTC"),f=new ip(t,u);if(i===o&&a===l&&0!==s.start.compare(s.end)){try{let e=f.formatRangeToParts(c,d),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let i=0;i<e.length;i++)i<t?r+=e[i].value:i>t&&(n+=e[i].value);return{start:r,end:n}}catch{}n=f}else n=new ip(t,on(r,{granularity:l,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:f.format(c),end:n.format(d)}},getDateFormatter:(e,t)=>new ip(e,on({},{...S,...t}))}}({...e,validationBehavior:n}),a=(0,m.useRef)(null),[o,s]=re(!e["aria-label"]&&!e["aria-labelledby"]),{groupProps:l,labelProps:u,startFieldProps:c,endFieldProps:d,buttonProps:f,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:v,...b}=function(e,t,r){var n;let i=iC((n=aV)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:a,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:l,fieldProps:u,descriptionProps:c,errorMessageProps:d}=a$({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||o}),f=u["aria-labelledby"]||u.id,{locale:p}=ic(),h=t.formatValue(p,{month:"long"}),y=iH(h?i.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),g={"aria-label":i.format("startDate"),"aria-labelledby":f},v={"aria-label":i.format("endDate"),"aria-labelledby":f},b=tQ(),w=tQ(),x=aU(t,r),S=[y["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=(0,m.useMemo)(()=>aM(r,{accept:e=>e.id!==b}),[r,b]),D={[aY]:E,[aK]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=rm(e),j=(0,m.useRef)(!1),{focusWithinProps:P}=nH({...e,isDisabled:t.isOpen,onBlurWithin:t=>{rE(document.getElementById(w),t.relatedTarget)||(j.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{j.current||(j.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),C=(0,m.useRef)(aJ),k=(0,m.useRef)(aJ);return{groupProps:t3(O,x,u,y,P,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...l,onClick:()=>{E.focusFirst()}},buttonProps:{...y,id:b,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${b} ${f}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${f}`},startFieldProps:{...g,...D,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[a1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){C.current=e,t.updateValidation(a6(e,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...v,...D,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[a1]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){k.current=e,t.updateValidation(a6(C.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:c,errorMessageProps:d,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:a,validationErrors:o,validationDetails:s}}({...rt(e),label:s,validationBehavior:n},i,a),{focusProps:w,isFocused:x,isFocusVisible:S}=nG({within:!0}),E=t8({...e,values:{state:i,isFocusWithin:x,isFocusVisible:S,isDisabled:e.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-DateRangePicker"}),D=rm(e,{global:!0});return delete D.id,y().createElement(t6,{values:[[sw,i],[am,{...l,ref:a,isInvalid:i.isInvalid}],[nQ,{...f,isPressed:i.isOpen}],[oL,{...u,ref:o,elementType:"span"}],[ai,h],[oP,i],[sf,{trigger:"DateRangePicker",triggerRef:a,placement:"bottom start",clearContexts:sx}],[oj,p],[oy,{slots:{start:c,end:d}}],[n2,{slots:{description:g,errorMessage:v}}],[ok,b]]},y().createElement(ri.div,{...t3(D,E,w),ref:t,slot:e.slot||void 0,"data-focus-within":x||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-open":i.isOpen||void 0}))});function sD(e){return y().createElement(iu,e)}var sO=r(5350),sj=r.n(sO);function sP(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function sC(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)return r?e:void 0;if("string"==typeof e&&!e)return r?null:void 0;if(sP(e,a8.ng)||sP(e,a8._l)||sP(e,a8.Ip))return t?(0,iY.yP)(e,t):e;var n=sj()(e).toDate(),i=new a8.ng(n.getFullYear(),n.getMonth()+1,n.getDate());return t?(0,iY.yP)(i,t):i}function sk(e){if(e)return e.toDate((0,ik.Xj)())}var sA=r(1851),sT=r(3903);function sN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function sR(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var sI=(0,m.createContext)(null);function sM(){var e=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).preferredDateLocale,t=(0,m.useMemo)(function(){var t=(0,sA.J)();return e[t]&&(t=e[t]),t},[window.i18next.language]),r=(0,m.useMemo)(function(){var e=(0,sT.a7)(t);return void 0!==e?(0,iK.d)(e):void 0},[t]),n=(0,m.useMemo)(function(){return new Intl.Locale(t,{calendar:null==r?void 0:r.identifier})},[t,r]),i=(0,m.useMemo)(function(){return r?(0,iY.yP)((0,ik.Ec)((0,ik.Xj)()),r):(0,ik.Ec)((0,ik.Xj)())},[r]);return{calendar:r,intlLocale:n,today_:i}}var s_=new a8.ng(1793,1,1),sL=function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return(0,h.jsx)("svg",{className:t,width:n,height:n,viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",focusable:"false",children:(0,h.jsx)("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14S23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,23.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S16.8,23.5,16,23.5z"})})},sF={};function sB(){return"u">typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function sV(e={}){let{locale:t}=ic();return(0,m.useMemo)(()=>new(0,od.K)(t,e),[t,e])}sF={"ar-AE":{decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"et-EE":{decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xe4li"},"fi-FI":{decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:"Numerokentt\xe4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:"Sz\xe1mmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xfamero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xe9rico"},"ro-RO":{decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:"C\xe2mp numeric"},"ru-RU":{decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:"Č\xedseln\xe9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:"Nummerf\xe4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:"數字欄位"}};var sU={};sU={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Pr\xe1zdn\xe9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xedo"},"et-EE":{Empty:"T\xfchjenda"},"fi-FI":{Empty:"Tyhj\xe4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xdcres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Pr\xe1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let sW=()=>{};function s$(e){var t;let r=(0,m.useRef)(void 0),{value:n,textValue:i,minValue:a,maxValue:o,isDisabled:s,isReadOnly:l,isRequired:u,onIncrement:c,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:y}=e,g=iC((t=sU)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),v=(0,m.useRef)(!1),b=(0,m.useCallback)(()=>{clearTimeout(r.current),v.current=!1},[]),w=nC(()=>{b()});(0,m.useEffect)(()=>()=>w(),[]);let{keyboardProps:x}=ny({isDisabled:s||l,shortcuts:{PageUp:()=>d?void d():!!c&&void c(),ArrowUp:()=>!!c&&void c(),PageDown:()=>p?void p():!!f&&void f(),ArrowDown:()=>!!f&&void f(),Home:()=>!!h&&void h(),End:()=>!!y&&void y()},allowRepeats:!0}),S=(0,m.useRef)(!1),E=()=>{S.current=!0},D=()=>{S.current=!1},O=""===i?g.format("Empty"):(i||`${n}`).replace("-","−");(0,m.useEffect)(()=>{S.current&&(ro&&ro.clear("assertive"),rs(O,"assertive"))},[O]);let j=(0,m.useCallback)(()=>{b()},[b]),P=nC(c??sW),C=nC(f??sW),k=nC(()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n<o)&&(P(),A(60))}),A=nC(e=>{w(),v.current=!0,r.current=window.setTimeout(k,e)}),T=nC(()=>{(void 0===a||isNaN(a)||void 0===n||isNaN(n)||n>a)&&(C(),N(60))}),N=nC(e=>{w(),v.current=!0,r.current=window.setTimeout(T,e)}),R=e=>{e.preventDefault()},{addGlobalListener:I,removeAllGlobalListeners:M}=nk(),_=(0,m.useRef)(!1),[L,F]=(0,m.useState)(null);(0,m.useEffect)(()=>{"touch"===L?A(600):L?A(400):L||w()},[L]);let[B,V]=(0,m.useState)(null);return(0,m.useEffect)(()=>{"touch"===B?N(600):B?N(400):B||w()},[B]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":O,"aria-valuemin":a,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":l||void 0,"aria-required":u||void 0,...x,onFocus:E,onBlur:D},incrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(c?.(),F("mouse")):(I(window,"pointercancel",j,{capture:!0}),_.current=!1,F("touch")),I(window,"contextmenu",R)},onPressUp:e=>{b(),"touch"===e.pointerType&&(_.current=!0),M(),F(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&_.current&&c?.(),_.current=!1,F(null)},onFocus:E,onBlur:D},decrementButtonProps:{onPressStart:e=>{b(),"touch"!==e.pointerType?(f?.(),V("mouse")):(I(window,"pointercancel",j,{capture:!0}),_.current=!1,V("touch"))},onPressUp:e=>{b(),"touch"===e.pointerType&&(_.current=!0),M(),V(null)},onPressEnd:e=>{b(),"touch"===e.pointerType&&!v.current&&_.current&&f?.(),_.current=!1,V(null)},onFocus:E,onBlur:D}}}let sz=null;var sH=r(4264);function sG(e,t,r){let n="+"===e?t+r:t-r;if(t%1!=0||r%1!=0){let i=t.toString().split("."),a=r.toString().split("."),o=Math.pow(10,Math.max(i[1]&&i[1].length||0,a[1]&&a[1].length||0));t=Math.round(t*o),r=Math.round(r*o),n=("+"===e?t+r:t-r)/o}return n}let sK=(0,m.createContext)(null),sY=(0,m.createContext)(null),sZ=(0,m.forwardRef)(function(e,t){[e,t]=t7(e,t,sK);let{validationBehavior:r}=t9(oN)||{},n=e.validationBehavior??r??"native",{locale:i}=ic(),a=function(e){let{minValue:t,maxValue:r,step:n,formatOptions:i,value:a,defaultValue:o=NaN,onChange:s,locale:l,isDisabled:u,isReadOnly:c,commitBehavior:d="snap"}=e;null===a&&(a=NaN);let f=(0,m.useCallback)(e=>void 0===n||isNaN(n)?o$(e,t,r):oH(e,t,r,n),[n,t,r]);void 0===a||isNaN(a)||"snap"!==d||(a=f(a)),isNaN(o)||"snap"!==d||(o=f(o));let[p,h]=i3(a,isNaN(o)?NaN:o,s),[y]=(0,m.useState)(p),[g,v]=(0,m.useState)(()=>isNaN(p)?"":new(0,od.K)(l,i).format(p)),b=(0,m.useMemo)(()=>new(0,sH.d)(l,i),[l,i]),w=(0,m.useMemo)(()=>b.getNumberingSystem(g),[b,g]),x=(0,m.useMemo)(()=>new(0,od.K)(l,{...i,numberingSystem:w}),[l,i,w]),S=(0,m.useMemo)(()=>x.resolvedOptions(),[x]),E=(0,m.useCallback)(e=>isNaN(e)||null===e?"":x.format(e),[x]),D=a2({...e,value:p}),O=void 0===n||isNaN(n)?1:n;"percent"===S.style&&(void 0===n||isNaN(n))&&(O=.01);let[j,P]=(0,m.useState)(p),[C,k]=(0,m.useState)(l),[A,T]=(0,m.useState)(i);Object.is(p,j)&&l===C&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}(i,A)||(v(E(p)),P(p),k(l),T(i));let N=(0,m.useMemo)(()=>b.parse(g),[b,g]),R=(e,n=0)=>{if(isNaN(N))return oH(isNaN(n)?0:n,t,r,O);{let n=oH(N,t,r,O);return"+"===e&&n>N||"-"===e&&n<N?n:oH(sG(e,N,O),t,r,O)}},I=(0,m.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===r||isNaN(r)||oH(N,t,r,O)>N||sG("+",N,O)<=r),[u,c,t,r,O,N]),M=(0,m.useMemo)(()=>!u&&!c&&(isNaN(N)||void 0===t||isNaN(t)||oH(N,t,r,O)<N||sG("-",N,O)>=t),[u,c,t,r,O,N]);return{...D,validate:e=>b.isValidPartialNumber(e,t,r),increment:()=>{let e=R("+",t);e===p&&v(E(e)),h(e),D.commitValidation()},incrementToMax:()=>{null!=r&&(h(oH(r,t,r,O)),D.commitValidation())},decrement:()=>{let e=R("-",r);e===p&&v(E(e)),h(e),D.commitValidation()},decrementToMin:()=>{null!=t&&(h(t),D.commitValidation())},canIncrement:I,canDecrement:M,minValue:t,maxValue:r,numberValue:N,defaultNumberValue:isNaN(o)?y:o,setNumberValue:h,setInputValue:v,inputValue:g,commit:e=>{let t=void 0===e?g:e,r=N;if(void 0!==e&&(r=b.parse(t)),!t.length){h(NaN),v(void 0===a?"":E(p));return}if(isNaN(r))return void v(E(p));let n="snap"===d?f(r):r,i=(n=b.parse(E(n)))!==p;h(n),v(E(void 0===a?n:p)),i&&D.commitValidation()}}}({...e,locale:i,validationBehavior:n}),o=(0,m.useRef)(null),[s,l]=re(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:u,groupProps:c,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:g,...v}=function(e,t,r){var n,i,a,o,s,l,u,c,d;let f,{id:p,decrementAriaLabel:h,incrementAriaLabel:g,isDisabled:v,isReadOnly:b,isRequired:w,minValue:x,maxValue:S,autoFocus:E,label:D,formatOptions:O,onBlur:j=()=>{},onFocus:P,onFocusChange:C,onKeyDown:k,onKeyUp:A,description:T,errorMessage:N,isWheelDisabled:R,...I}=e,{increment:M,incrementToMax:_,decrement:L,decrementToMin:F,numberValue:B,inputValue:V,commit:U,commitValidation:W}=t,$=iC((n=sF)&&n.__esModule?n.default:n,"@react-aria/numberfield"),z=(0,m.useCallback)(()=>{let e=r.current?.value??"";(0,nA.flushSync)(()=>{U()}),r.current?.value!==e&&rs(r.current?.value??"","assertive")},[U,r]),H=tQ(p),{focusProps:G}=nu({onBlur(){z()}}),K=sV(O),Y=(0,m.useMemo)(()=>K.resolvedOptions(),[K]),Z=sV({...O,currencySign:void 0}),q=(0,m.useMemo)(()=>isNaN(B)?"":Z.format(B),[Z,B]),{spinButtonProps:X,incrementButtonProps:Q,decrementButtonProps:J}=s$({isDisabled:v,isReadOnly:b,isRequired:w,maxValue:S,minValue:x,onIncrement:M,onIncrementToMax:_,onDecrement:L,onDecrementToMin:F,value:B,textValue:q}),[ee,et]=(0,m.useState)(!1),{focusWithinProps:er}=nH({isDisabled:v,onFocusWithinChange:et});!function(e,t){let{onScroll:r,isDisabled:n}=e,i=(0,m.useCallback)(e=>{!e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),r&&r({deltaX:e.deltaX,deltaY:e.deltaY}))},[r]);iG(t,"wheel",n?void 0:i)}({onScroll:(0,m.useCallback)(e=>{!(Math.abs(e.deltaY)<=Math.abs(e.deltaX))&&(e.deltaY>0?M():e.deltaY<0&&L())},[L,M]),isDisabled:R||v||b||!ee},r);let en=(Y.maximumFractionDigits??0)>0,ei=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,ea="numeric";r$()?ei?ea="text":en&&(ea="decimal"):rY()&&(ei?ea="numeric":en&&(ea="decimal"));let eo=rm(e),{keyboardProps:es}=ny({isDisabled:v||b,shortcuts:{Enter:()=>((0,nA.flushSync)(()=>{U()}),W(),{shouldPreventDefault:!1})},onKeyDown:k,onKeyUp:A}),{isInvalid:el,validationErrors:eu,validationDetails:ec}=t.displayValidation,{labelProps:ed,inputProps:ef,descriptionProps:ep,errorMessageProps:eh}=function(e,t,r){let n=nC(e=>{let n=r.current;if(!n)return;let i=null;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":i=n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentForward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd+1):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteContentBackward":i=n.selectionEnd===n.selectionStart?n.value.slice(0,n.selectionStart-1)+n.value.slice(n.selectionStart):n.value.slice(0,n.selectionStart)+n.value.slice(n.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":i=n.value.slice(n.selectionStart);break;default:null!=e.data&&(i=n.value.slice(0,n.selectionStart)+e.data+n.value.slice(n.selectionEnd))}null!=i&&t.validate(i)||e.preventDefault()});(0,m.useEffect)(()=>{if(!sB()||!r.current)return;let e=r.current;return e.addEventListener("beforeinput",n,!1),()=>{e.removeEventListener("beforeinput",n,!1)}},[r]);let i=sB()?null:e=>{let r=rD(e).value.slice(0,rD(e).selectionStart)+e.data+rD(e).value.slice(rD(e).selectionEnd);t.validate(r)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:l,...u}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,u]=i3(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=nb(e,t),d=a2({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:b,errorMessageProps:w}=a$({...e,isInvalid:f,errorMessage:e.errorMessage||p}),x=rm(e,{labelable:!0}),S={type:o,pattern:e.pattern},[E]=(0,m.useState)(l);return az(t,e.defaultValue??E,u),aH(e,d,t),{labelProps:g,inputProps:t3(x,"input"===r?S:void 0,{disabled:n,readOnly:a,required:i&&"native"===s,"aria-required":i&&"aria"===s||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:e=>u(rD(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...v}),descriptionProps:b,errorMessageProps:w,isInvalid:f,validationErrors:p,validationDetails:h}}(e,r),c=(0,m.useRef)(null);return{inputProps:t3(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:n}=r.current;c.current={value:e,selectionStart:t,selectionEnd:n}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:e,selectionStart:n,selectionEnd:i}=c.current;r.current.value=e,r.current.setSelectionRange(n,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:l,...u}}({...I,...eo,name:void 0,form:void 0,label:D,autoFocus:E,isDisabled:v,isReadOnly:b,isRequired:w,validate:void 0,[a1]:t,value:V,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:H,type:"text",inputMode:ea,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:j,onFocus:P,onFocusChange:C,onPaste:t=>{e.onPaste?.(t);let r=rD(t);r&&(r.selectionEnd??-1)-(r.selectionStart??0)===r.value.length&&(t.preventDefault(),U(t.clipboardData?.getData?.("text/plain")?.trim()??""))},description:T,errorMessage:N},t,r),em=t3(es,ef);az(r,t.defaultNumberValue,t.setNumberValue),i=t,a=e.validationBehavior,o=e.commitBehavior,s=r,l=t.minValue,u=t.maxValue,c=e.step,d=t.numberValue,tB(()=>{let e=s.current;if("validate"!==o||i.realtimeValidation.isInvalid||!e||e.disabled||(!sz&&"u">typeof document&&((sz=document.createElement("input")).type="number"),!sz))return;sz.min=null==l||isNaN(l)?"":String(l),sz.max=null==u||isNaN(u)?"":String(u),sz.step=null==c||isNaN(c)?"":String(c),sz.value=null==d||isNaN(d)?"":String(d);let t=e.validity.valid&&sz.validity.valid,r=e.validationMessage||sz.validationMessage,n={isInvalid:!t,validationErrors:r?[r]:[],validationDetails:{badInput:e.validity.badInput,customError:e.validity.customError,patternMismatch:e.validity.patternMismatch,rangeOverflow:sz.validity.rangeOverflow,rangeUnderflow:sz.validity.rangeUnderflow,stepMismatch:sz.validity.stepMismatch,tooLong:e.validity.tooLong,tooShort:e.validity.tooShort,typeMismatch:e.validity.typeMismatch,valueMissing:e.validity.valueMissing,valid:t}};i.updateValidation(n),"native"!==a||sz.validity.valid||e.setCustomValidity(sz.validationMessage)});let ey=t3(X,G,em,{role:null,"aria-roledescription":rH()?null:$.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ey["aria-required"]=void 0);let eg=e=>{((e=document)=>e.activeElement)()!==r.current&&("mouse"===e.pointerType?r.current?.focus():e.target.focus())},ev=e["aria-label"]||("string"==typeof e.label?e.label:"");ev||(f=null!=e.label?ed.id:e["aria-labelledby"]);let eb=tQ(),ew=tQ(),ex=t3(Q,{"aria-label":g||$.format("increase",{fieldLabel:ev}).trim(),id:f&&!g?eb:null,"aria-labelledby":f&&!g?`${eb} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:eg}),eS=t3(J,{"aria-label":h||$.format("decrease",{fieldLabel:ev}).trim(),id:f&&!h?ew:null,"aria-labelledby":f&&!h?`${ew} ${f}`:null,"aria-controls":H,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:eg});return{groupProps:{...er,role:"group","aria-disabled":v,"aria-invalid":el?"true":void 0},labelProps:ed,inputProps:ey,incrementButtonProps:ex,decrementButtonProps:eS,errorMessageProps:eh,descriptionProps:ep,isInvalid:el,validationErrors:eu,validationDetails:ec}}({...rt(e),label:l,validationBehavior:n},a,o),b=t8({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:"react-aria-NumberField"}),w=rm(e,{global:!0});return delete w.id,y().createElement(t6,{values:[[sY,a],[am,c],[ag,{...d,ref:o}],[oL,{...u,ref:s}],[nQ,{slots:{increment:f,decrement:p}}],[n2,{slots:{description:h,errorMessage:g}}],[ok,v]]},y().createElement(ri.div,{...w,...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":v.isInvalid||void 0}),e.name&&y().createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(a.numberValue)?"":a.numberValue,disabled:e.isDisabled||void 0}))});function sq(e,t){return Number.parseInt((0,sT.Yq)(e,{calendar:t.calendar,locale:t.baseName,day:!1,month:!1,noToday:!0,numberingSystem:"latn"}))}var sX=(0,m.forwardRef)(function(e,t){var r=e.className,n=(0,m.useContext)(aa),i=(0,m.useContext)(ao),a=null!=n?n:i,o=(0,m.useContext)(sI),s=(0,ik.Xj)(),l=(0,sT.Yq)(a.visibleRange.start.toDate(s),{calendar:o.calendar,locale:o.baseName,day:!1,year:!1,noToday:!0}),u=sq(a.visibleRange.start.toDate(s),o),c=a.maxValue?sq(a.maxValue.toDate(s),o):void 0,d=a.minValue?sq(a.minValue.toDate(s),o):void 0,f=(0,m.useCallback)(function(e){a.setFocusedDate(a.focusedDate.cycle("year",e-a.focusedDate.year))},[]);return a&&(0,h.jsxs)("span",{ref:t,className:r,children:[(0,h.jsx)("span",{children:l}),(0,h.jsxs)(sZ,{formatOptions:{useGrouping:!1},maxValue:c,minValue:d,onChange:f,value:u,children:[(0,h.jsx)(av,{}),(0,h.jsxs)(ay,{children:[(0,h.jsx)(nJ,{slot:"increment",children:(0,h.jsx)(em,{size:8})}),(0,h.jsx)(nJ,{slot:"decrement",children:(0,h.jsx)(ef,{size:8})})]})]})]})});let sQ="+4zksyca-I5VROi6oiQzJQ==",sJ="wiExnFcGq1fPxn+K4eWeig==",s0="uiyACHcxSXjudv9HIlh57w==",s1="SxtTLfuOGW-Mst6POMWfQA==",s2="UU1QpNunTQCrdkAN2b2Ecg==",s3="fhR-1dd9yTq-5JUfl4REqA==",s4="_5INZ7v7pw4CkyEJ2Y8RsrA==",s5="RFMrlShZc97nAtIJF9P8jw==";function s6(e){var t=e.children,r=(0,m.useContext)(sb),n=(0,m.useContext)(sw),i=null!=r?r:n,a=(0,b.useOnClickOutside)(function(){return null==i?void 0:i.close()});return(0,h.jsx)(oC,{className:"qllIfMFRvFHzGUeuOQ+PpA==",ref:a,children:t})}function s8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s9=(0,m.forwardRef)(function(e,t){var r,n,i=e.variant,a=e.today_,o=e.minDate,s=e.maxDate,l="range"===i;return(0,h.jsx)(sh,{ref:t,className:"_16UMXpLD7yf8iGA5mGYNeA==",placement:"bottom start",offset:1,isNonModal:!0,children:(0,h.jsx)(s6,{children:(0,h.jsxs)(l?al:as,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s8(e,t,r[t])})}return e}({},l?{minValue:void 0===o?void 0:o,maxValue:void 0===s?void 0:s,className:"cds--date-picker__calendar"}:{}),n=n={children:[(0,h.jsxs)("header",{className:"WAVlDbzjKhHAlu18b5VwWw==",children:[(0,h.jsx)(nJ,{className:v()(s2,s3),slot:"previous",children:(0,h.jsx)(eS,{size:16})}),(0,h.jsx)(sX,{className:"A3aKFbSSeqZsllm0oKdxgg=="}),(0,h.jsx)(nJ,{className:v()(s2,s3),slot:"next",children:(0,h.jsx)(eE,{size:16})})]}),(0,h.jsx)(ac,{className:"_6qRB2DssZC4NegdCeg1ktQ==",children:function(e){return(0,h.jsx)(ah,{className:v()("cds--date-picker__day",s8({},"TZl6MCGNAAF8bYh2zSUQ2w==",0===a.compare(e))),date:e},e.toString())}})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})});function s7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function lt(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var lr=(0,m.forwardRef)(function(e,t){var r,n=(0,m.useContext)(sb),i=function(e){if(Array.isArray(e))return e}(r=t7({slot:e.slot},t,oy))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(r)||function(e){if(e){if("string"==typeof e)return s7(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 s7(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.")}(),a=i[0],o=i[1],s=ic().locale,l=om(lt(le({},a),{locale:s,createCalendar:iK.d})),u=(0,m.useRef)(null),c=aZ(lt(le({},a),{inputRef:u}),l,o),d=c.fieldProps,f=c.inputProps,p=(0,m.useCallback)(function(){l.isDisabled||n.toggle()},[]);return(0,h.jsxs)(t6,{values:[[og,l],[ag,lt(le({},f),{ref:u})],[am,lt(le({},d),{ref:o,isInvalid:l.isInvalid})]],children:[(0,h.jsx)(ay,lt(le({},e),{id:e.id,ref:t,slot:e.slot||void 0,className:e.className,isDisabled:l.isDisabled,isInvalid:l.isInvalid,onClick:p,children:l.segments.map(function(t,r){return(0,m.cloneElement)(e.children(t),{key:r})})})),(0,h.jsx)(av,{})]})});function ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var li=(0,m.forwardRef)(function(e,t){var r=(0,m.useContext)(sb),n=(0,m.useContext)(sw);return(null!=r?r:n).isInvalid?(0,h.jsx)(tC,ln({ref:t,size:16},e)):(0,h.jsx)(ed,ln({ref:t,size:16},e))});class la{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}let lo=new Map;function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ll(e){if(Array.isArray(e))return e}function lu(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ld(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function lf(e,t){if(e){if("string"==typeof e)return ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ls(e,t)}}var lp=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s,l,u,c,d,f,p=ll(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||lf(r)||lu(),g=p[0],v=p.slice(1),b=g.segment,w=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(g,["segment"]),x=(ll(v)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(v)||lf(v,1)||lu())[0],S=(0,m.useContext)(og),E=t4(x),D=function(e,t,r){let n,i,a,o,s=(0,m.useRef)(""),{locale:l,direction:u}=ic(),c=function(){var e;let{locale:t}=ic(),r=iP((e=aV)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,m.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new la(t,r)}},[t,r])}(),{ariaLabel:d,ariaLabelledBy:f,ariaDescribedBy:p,focusManager:h}=aG.get(t),g=e.isPlaceholder?"":e.text,v=(0,m.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=iv({month:"long",timeZone:v.timeZone}),w=iv({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(g=w.format(t.dateValue));else{let e=b.format(t.dateValue);g=e!==g?`${g} \u{2013} ${e}`:e}let{spinButtonProps:x}=s$({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{s.current="",t.increment(e.type)},onDecrement:()=>{s.current="",t.decrement(e.type)},onIncrementPage:()=>{s.current="",t.incrementPage(e.type)},onDecrementPage:()=>{s.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{s.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{s.current="",t.decrementToMin(e.type)}}),S=(0,m.useMemo)(()=>new(0,sH.d)(l,{maximumFractionDigits:0}),[l]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),!S.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=S.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),s.current=r}},{keyboardProps:D}=ny({shortcuts:{Backspace:()=>{E()},Delete:()=>{E()},"Mod+a":()=>{}},allowRepeats:!0}),{startsWith:O}=(n=function(e){let{locale:t}=ic(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(lo.has(r))return lo.get(r);let n=new Intl.Collator(t,e);return lo.set(r,n),n}({usage:"search",sensitivity:"base"}),i=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),a=(0,m.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),o=(0,m.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1},[n]),(0,m.useMemo)(()=>({startsWith:i,endsWith:a,contains:o}),[i,a,o])),j=iv({hour:"numeric",hour12:!0}),P=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(0),j.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[j]),C=(0,m.useMemo)(()=>{let e=new Date;return e.setHours(12),j.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[j]),k=iv({year:"numeric",era:"narrow",timeZone:"UTC"}),A=(0,m.useMemo)(()=>{if("era"!==e.type)return[];let r=(0,iY.yP)(new(0,a8.ng)(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:k.formatToParts(t).find(e=>"era"===e.type).value}}),i=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(i)for(let e of n)e.formatted=e.formatted.slice(i);return n},[k,t.calendar,e.type]),T=r=>{if(t.isDisabled||t.isReadOnly)return;let n=s.current+r;switch(e.type){case"dayPeriod":if(O(P,r))t.setSegment("dayPeriod",0);else if(O(C,r))t.setSegment("dayPeriod",1);else break;h.focusNext();break;case"era":{let e=A.find(e=>O(e.formatted,r));e&&(t.setSegment("era",e.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(n))return;let i=S.parse(n),a=i;if(void 0!==e.maxValue&&i>e.maxValue&&(a=S.parse(r)),isNaN(i))return;t.setSegment(e.type,a),void 0!==e.maxValue&&(Number(i+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(s.current="",h.focusNext()):s.current=n}}};iG((0,m.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&rE(r.current,e?.anchorNode)&&((e=document)=>e.activeElement)()===r.current&&e.collapse(r.current)});let N=(0,m.useRef)("");iG(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":N.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&T(n.data)}}),iG(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=N.current),null!=n&&(O(P,n)||O(C,n))&&T(n))}),tB(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(h.focusPrevious()||h.focusNext())}},[r,h]);let R=rH()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,m.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let I=tQ(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,_="literal"===e.type?"":c.of(e.type),L=iM({"aria-label":`${_}${d?`, ${d}`:""}${f?", ":""}`,"aria-labelledby":f});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===u){F.unicodeBidi="embed";let t=v[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:t3(x,L,{id:I,...R,...D,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCorrect:M?"off":void 0,[parseInt(y().version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onFocus:()=>{s.current="",r.current&&iW(r.current,{containingElement:iB(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(b,S,E).segmentProps,O=nG(),j=O.focusProps,P=O.isFocused,C=O.isFocusVisible,k=nX(ld(lc({},w),{isDisabled:S.isDisabled||"literal"===b.type})),A=k.hoverProps,T=k.isHovered,N=(i=(n=ld(lc({},w),{values:ld(lc({},b),{isReadOnly:!b.isEditable,isInvalid:S.isInvalid,isDisabled:S.isDisabled,isHovered:T,isFocused:P,isFocusVisible:C}),defaultChildren:b.text})).className,a=n.style,o=n.children,l=void 0===(s=n.defaultClassName)?void 0:s,c=void 0===(u=n.defaultChildren)?void 0:u,d=n.defaultStyle,f=n.values,(0,m.useMemo)(function(){var e,t,r;return e="function"==typeof i?i(sR(sN({},f),{defaultClassName:l})):i,t="function"==typeof a?a(sR(sN({},f),{defaultStyle:d||{}})):a,r="function"==typeof o?o(sR(sN({},f),{defaultChildren:c})):null==o?c:o,{className:null!=e?e:l,style:t||d?sN({},d,t):void 0,children:null!=r?r:c,"data-rac":""}},[i,a,o,l,c,d,f])),R=(0,m.useCallback)(function(e){e.stopPropagation()},[]);return(0,h.jsx)("span",ld(lc({},t3(rm(w),D,j,A),N),{ref:E,style:D.style,"data-placeholder":b.isPlaceholder||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":!b.isEditable||void 0,"data-disabled":S.isDisabled||void 0,"data-type":b.type,"data-hovered":T||void 0,"data-focused":P||void 0,"data-focus-visible":C||void 0,onClick:R}))});function lh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lh(e,t,r[t])})}return e}var ly={short:!1,size:"md"},lg=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lm({},ly,e),l=s.className,u=s.defaultValue,c=s.isDisabled,d=s.invalid,f=s.invalidText,p=s.isInvalid,g=s.label,b=s.labelText,w=s.light,x=s.maxDate,S=s.minDate,E=s.onChange,D=s.onChangeRaw,O=s.short,j=s.size,P=s.value,C=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(s,["className","defaultValue","isDisabled","invalid","invalidText","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","short","size","value"]),k=sM(),A=k.calendar,T=k.intlLocale,N=k.today_,R=(0,m.useId)(),I=!!(null!=b?b:g),M=(0,m.useMemo)(function(){return sC(u,A)},[u,A]),_=(0,m.useMemo)(function(){return sC(P,A,!0)},[P,A]),L=(0,m.useMemo)(function(){return sC(x,A)},[x,A]),F=(0,m.useMemo)(function(){return sC(null!=S?S:s_,A)},[S,A]),B=(0,m.useMemo)(function(){return d||p},[d,p]),V=(0,m.useMemo)(function(){return D&&E&&console.error("An EgenDatePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=D?D:function(e){return null==E?void 0:E(sk(e))}},[D,E]);return(0,h.jsx)(sD,{locale:T.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",l),children:(0,h.jsx)(t6,{values:[[sI,T]],children:(0,h.jsxs)(sS,(r=lm({className:v()("cds--date-picker","cds--date-picker--single",(lh(i={},"cds--date-picker--short",O),lh(i,"cds--date-picker--light",w),i)),defaultValue:M,isDisabled:c,isInvalid:B,maxValue:L,minValue:F,value:_,shouldForceLeadingZeros:"en"===T.language||void 0},C),n=n={onChange:V,children:[(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[I&&(0,h.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":c}),htmlFor:R,children:null!=b?b:g}),(0,h.jsxs)(ay,{className:sQ,children:[(0,h.jsx)(lr,{id:I?R:void 0,ref:t,className:v()("cds--date-picker-input__wrapper","kykar4EZi79xhpVitgu-vg==",(lh(a={},"KJtg-MP1knHYLUz4R6hZEw==","sm"===j),lh(a,"ablE9mmlFsZsPekwcW7jjQ==","md"===j||!j||0===j.length),lh(a,"_5dkQpmV3FO9GZg+Ai3BG3A==","lg"===j),a)),children:function(e){return"era"!==e.type?(0,h.jsx)(lp,{className:sJ,segment:e}):(0,h.jsx)(y().Fragment,{})}}),(0,h.jsx)(nJ,{className:v()(s2,(lh(o={},s4,"sm"===j),lh(o,s3,"md"===j||!j||0===j.length),lh(o,s5,"lg"===j),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(oA,{className:s1,children:f})]}),(0,h.jsx)(s9,{variant:"single",today_:N})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lb(e){if(Array.isArray(e))return e}function lw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lS(e,t){if(e){if("string"==typeof e)return lv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lv(e,t)}}var lE=(0,m.forwardRef)(function(e,t){var r,n,i,a,o,s=lb(i=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||lS(i)||lx(),l=s[0],u=s.slice(1),c=l.className,d=l.defaultValue,f=l.invalid,p=l.invalidText,y=l.isDisabled,g=l.isInvalid,b=l.label,w=l.labelText,x=l.light,S=l.maxDate,E=l.minDate,D=l.onChange,O=l.onChangeRaw,j=l.size,P=void 0===j?"md":j,C=l.value,k=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(l,["className","defaultValue","invalid","invalidText","isDisabled","isInvalid","label","labelText","light","maxDate","minDate","onChange","onChangeRaw","size","value"]),A=(lb(u)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(u)||lS(u,1)||lx())[0],T=sM(),N=T.calendar,R=T.intlLocale,I=T.today_,M=(0,m.useId)(),_=!!(null!=w?w:b),L=(0,m.useMemo)(function(){if(C)return{start:sC(C[0],N,!1),end:sC(C[1],N,!1)}},[C,N]),F=(0,m.useMemo)(function(){if(d)return{start:sC(d[0],N,!1),end:sC(d[1],N,!1)}},[d,N]),B=(0,m.useMemo)(function(){return sC(null!=E?E:s_,N,!0)},[E,N]),V=(0,m.useMemo)(function(){return sC(S,N,!0)},[S,N]),U=(0,m.useMemo)(function(){return f||g},[f,g]),W=(0,m.useMemo)(function(){return O&&D&&console.error("An EgenDateRangePicker component was created with both onChange and onChangeRaw handlers defined. Only onChangeRaw will be used."),null!=O?O:function(e){return null==D?void 0:D([sk(e.start),sk(e.end)])}},[O,D]);return(0,h.jsx)(sD,{locale:R.toString(),children:(0,h.jsx)("div",{className:v()("cds--form-item",c),children:(0,h.jsx)(t6,{values:[[sI,R]],children:(0,h.jsx)(sE,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lw(e,t,r[t])})}return e}({id:_?M:void 0,className:v()("cds--date-picker",{"cds--date-picker--light":x,"cds--date-picker--disabled":y}),isInvalid:U,shouldForceLeadingZeros:"en"===R.language||void 0,maxValue:V,minValue:B,value:L,defaultValue:F,ref:A,isDisabled:y},k),n=n={onChange:W,children:(0,h.jsxs)("div",{className:"cds--date-picker-container",children:[_&&(0,h.jsx)(oF,{className:v()("cds--label",{"cds--label--disabled":y}),htmlFor:M,children:null!=w?w:b}),(0,h.jsxs)(ay,{className:sQ,children:[(0,h.jsxs)("div",{className:v()("YlkGhdQcBgSDJNSlS1cQnw==",(lw(a={},"fAKhSoomCu7Mn5FBku20SQ==","sm"===P),lw(a,"XVgGPgTNDC4UIcE+4yAZPQ==","md"===P||!P||0===P.length),lw(a,"UgHJ1nnMa-axxvCtxsZexg==","lg"===P),a)),children:[(0,h.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","qgbQm03oBFnWnXNV1GFW6Q==",s0),slot:"start",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}}),(0,h.jsx)("div",{className:"_79vXZ2hgTRvmmxREZu5WGw==",children:(0,h.jsx)("span",{"aria-hidden":"true","data-readonly":!0,children:"–"})}),(0,h.jsx)(ob,{className:v()("cds--date-picker-input__wrapper","huv7xQjo+RZmT7LsDwVMdw==",s0),slot:"end",children:function(e){return(0,h.jsx)(lp,{className:sJ,segment:e})}})]}),(0,h.jsx)(nJ,{className:v()(s2,(lw(o={},s4,"sm"===P),lw(o,s3,"md"===P||!P||0===P.length),lw(o,s5,"lg"===P),o)),children:(0,h.jsx)(li,{})})]}),(0,h.jsx)(oA,{className:s1,children:p}),(0,h.jsx)(s9,{variant:"range",today_:I,minDate:B,maxDate:V})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))})})})});function lD(e){var t=e.classifications,r=(0,b.useConfig)().classificationTags;return(null==t?void 0:t.length)?(0,h.jsx)("div",{"aria-label":(0,L.V)("classificationTags","Classification tags"),children:t.map(function(e,t){var n,i,a="primary"===e.rank||1===e.rank,o="secondary"===e.rank||2===e.rank,s=a?null!=(n=null==r?void 0:r.primaryColor)?n:"red":o?null!=(i=null==r?void 0:r.secondaryColor)?i:"blue":"gray";return(0,h.jsx)(_.Tag,{type:s,size:"sm",children:e.display},"".concat(e.display,"-").concat(t))})}):null}let lO={action:"Y0dulYR6B5fprvtdpjGfEg==",content:"fo0nBB+424Kd5d6PQgXSNw==",heading:"sxyN788Qj+7TLTeyCjE6bw==",tile:"QB8Ldd7u7gkdqC6n-YSg0Q=="};var lj=function(e){var t=e.width,r=e.height;return(0,h.jsx)("svg",{width:void 0===t?"64":t,height:void 0===r?"64":r,viewBox:"0 0 64 64",children:(0,h.jsx)("use",{href:"#egen-empty-data-illustration"})})},lP=function(e){var t="tablet"===(0,b.useLayoutType)(),r=e.launchForm;return(0,h.jsx)(_.Layer,{className:lO.layer,children:(0,h.jsxs)(_.Tile,{className:lO.tile,children:[(0,h.jsx)(x,{title:e.headerTitle}),(0,h.jsx)(lj,{}),(0,h.jsx)("p",{className:lO.content,children:(0,L.V)("emptyStateText","There are no {{displayText}} to display",{displayText:e.displayText})}),(0,h.jsx)("p",{className:lO.action,children:r&&(0,h.jsx)(_.Button,{onClick:function(){return r()},kind:"ghost",size:t?"lg":"sm",children:(0,L.V)("recordNewEntry","Record {{ displayText }}",{displayText:e.displayText})})})]})})},lC=function(e){var t,r,n=e.error,i=e.headerTitle;return(0,h.jsx)(_.Layer,{children:(0,h.jsxs)(_.Tile,{className:"dd4186Mm5sjs8UUsDMSW1g==",children:[(0,h.jsx)(x,{title:i}),(0,h.jsxs)("p",{className:"z2RiNHQhCUYOlXJFOX2flg==",children:[(0,L.V)("error","Error")," ","".concat(null==n||null==(t=n.response)?void 0:t.status,": "),null==n||null==(r=n.response)?void 0:r.statusText]}),(0,h.jsx)("p",{className:"dq+e2AreXbyoxopCEZRwXA==",children:(0,L.V)("errorCopy")})]})})},lk=lC;let lA={field:"_43NbpAusYvdB5tccpwugCA==",fieldControl:"G1h3dJAllPDcbDsNL-kJLw==","field--sm":"qZ3I0hYsBw+2jkiCqmcUJA==",input:"QpQk8fSE4iroHHsFDJ99Aw==","field--md":"nssddTppPkQP0CugsUPX5g==","field--lg":"xIJwiskqnesjex9fPTygkg==","field--has-left-icon":"TJqIuzWKloLr6PhYm355Qw==","field--has-validation-icon":"Nt3RLjaf9OLWbKmVXDGn9Q==",leftIcon:"tnIgGaBUPHeeupW35eP2SA==",fieldIconGlyph:"Q9JAzVjLjsA7LK8yUAjMTA==",label:"ZlGeR10bC-HigCF3J94reg==",labelIconGlyph:"F0FzdhtESa7tOKDzB1LKuQ==",labelText:"_613ljFLjrRFib1esYu9tJQ==",requiredMark:"_6FSEkZ0YQLyZBgkHo0BbDA==","field--outlined":"AkjaqVgv7Lppw5FWlx9P1w==","field--filled":"xauRzt+u2w1HMkxD2nGWEQ==","field--standard":"_9MpGPx8nMOJlVLn0jh-V5w==","field--kinetic":"k9FGXNPiNV2jvPoXKT1QMQ==",kineticLabelWrapper:"-yRyWB-CtGn2AbaQJZi+4w==",kineticLabel:"G7MW0q8Btg4BxqJV3Z5miQ==",kineticLetter:"jBg3TwH5jGyQrU0OTBShZw==","field--success":"+snaLZpHBI7Sb8Kc3uOAjg==","field--warning":"cQBS9BRsyXY8-1W4KF3yVQ==","field--error":"DgTzJdsnBz2-8wS1-e6oQg==","field--animating":"gUU0Ammae3v1wFhr9u4-eQ==","egen-field-shake":"U6ngyfp0+rnW1PldL6yMBA==",validationIcon:"xoHozMA+LguHzECzMvwlrw==","validationIcon--visible":"d5MbW0CwL3XCn4-F8lJG2g==","validationIcon--success":"_64EifujVeYZHHGEtsTPxeQ==",validationIconGlyph:"pV9JSxOQeNRZb2lm9cYv4g==","validationIcon--warning":"_8aVrbporEe5AA9sQ6Xpi2Q==","validationIcon--error":"eNuD0-w+bOIn+mvwWjOIXQ==",message:"g+uLmewSwVY7BrP2VTSvMA==","egen-field-message-in":"nfxbATxFUBP+xWnBhxZGRA==",messageLead:"_1f6rXhfiFQXbJtoltWX3kg==","field--disabled":"CLnEkNXEBL-I2g3+3YwItw=="};var lT=function(e){var t=e.fieldIcon,r=e.className;if(!t)return null;var n=t.icon;return(0,h.jsx)(n,{className:[lA.fieldIconGlyph,r].filter(Boolean).join(" "),size:16})};function lN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var lR={success:ev,warning:tC,error:sL},lI=function(e){var t,r,n,i=e.currentValidation,a=e.showIcons,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return lN(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 lN(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.")}(),s=o[0],l=o[1];if((0,m.useEffect)(function(){if(i&&a){var e=setTimeout(function(){return l(!0)},50);return function(){return clearTimeout(e)}}l(!1)},[i,a]),!a||!i)return null;var u=lR[i.type];return u?(0,h.jsx)("div",{className:v()(lA.validationIcon,lA["validationIcon--".concat(i.type)],(r={},n=lA["validationIcon--visible"],n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s,r)),children:(0,h.jsx)(u,{className:lA.validationIconGlyph,size:16})}):null};let lM=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l_=new Set([...lM,"pathRotation"]),lL=(e,t,r)=>r>t?t:r<e?e:r,lF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},lB={...lF,transform:e=>lL(0,1,e)},lV={...lF,default:1},lU=e=>Math.round(1e5*e)/1e5,lW=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,l$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lz=(e,t)=>r=>!!("string"==typeof r&&l$.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),lH=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(lW);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},lG={...lF,transform:e=>Math.round(lL(0,255,e))},lK={test:lz("rgb","red"),parse:lH("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lG.transform(e)+", "+lG.transform(t)+", "+lG.transform(r)+", "+lU(lB.transform(n))+")"},lY={test:lz("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:lK.transform},lZ=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),lq=lZ("deg"),lX=lZ("%"),lQ=lZ("px"),lJ=lZ("vh"),l0=lZ("vw"),l1={...lX,parse:e=>lX.parse(e)/100,transform:e=>lX.transform(100*e)},l2={test:lz("hsl","hue"),parse:lH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+lX.transform(lU(t))+", "+lX.transform(lU(r))+", "+lU(lB.transform(n))+")"},l3={test:e=>lK.test(e)||lY.test(e)||l2.test(e),parse:e=>lK.test(e)?lK.parse(e):l2.test(e)?l2.parse(e):lY.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?lK.transform(e):l2.transform(e),getAnimatableNone:e=>{let t=l3.parse(e);return t.alpha=0,l3.transform(t)}},l4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,l5="number",l6="color",l8=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l9(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=t.replace(l8,e=>(l3.test(e)?(n.color.push(a),i.push(l6),r.push(l3.parse(e))):e.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(e)):(n.number.push(a),i.push(l5),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function l7({split:e,types:t}){let r=e.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=e[a],void 0!==n[a]){let e=t[a];e===l5?i+=lU(n[a]):e===l6?i+=l3.transform(n[a]):i+=n[a]}return i}}let ue={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(lW)?.length||0)+(e.match(l4)?.length||0)>0},parse:function(e){return l9(e).values},createTransformer:function(e){return l7(l9(e))},getAnimatableNone:function(e){let t=l9(e);return l7(t)(t.values.map((e,r)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:l3.test(e)?l3.getAnimatableNone(e):e)(e,t.split[r])))}},ut=new Set(["brightness","contrast","saturate","opacity"]);function ur(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(lW)||[];if(!n)return e;let i=r.replace(n,""),a=+!!ut.has(t);return n!==r&&(a*=100),t+"("+a+i+")"}let un=/\b([a-z-]*)\(.*?\)/gu,ui={...ue,getAnimatableNone:e=>{let t=e.match(un);return t?t.map(ur).join(" "):e}},ua={...ue,getAnimatableNone:e=>{let t=ue.parse(e);return ue.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},uo={...lF,transform:Math.round},us={borderWidth:lQ,borderTopWidth:lQ,borderRightWidth:lQ,borderBottomWidth:lQ,borderLeftWidth:lQ,borderRadius:lQ,borderTopLeftRadius:lQ,borderTopRightRadius:lQ,borderBottomRightRadius:lQ,borderBottomLeftRadius:lQ,width:lQ,maxWidth:lQ,height:lQ,maxHeight:lQ,top:lQ,right:lQ,bottom:lQ,left:lQ,inset:lQ,insetBlock:lQ,insetBlockStart:lQ,insetBlockEnd:lQ,insetInline:lQ,insetInlineStart:lQ,insetInlineEnd:lQ,padding:lQ,paddingTop:lQ,paddingRight:lQ,paddingBottom:lQ,paddingLeft:lQ,paddingBlock:lQ,paddingBlockStart:lQ,paddingBlockEnd:lQ,paddingInline:lQ,paddingInlineStart:lQ,paddingInlineEnd:lQ,margin:lQ,marginTop:lQ,marginRight:lQ,marginBottom:lQ,marginLeft:lQ,marginBlock:lQ,marginBlockStart:lQ,marginBlockEnd:lQ,marginInline:lQ,marginInlineStart:lQ,marginInlineEnd:lQ,fontSize:lQ,backgroundPositionX:lQ,backgroundPositionY:lQ,rotate:lq,pathRotation:lq,rotateX:lq,rotateY:lq,rotateZ:lq,scale:lV,scaleX:lV,scaleY:lV,scaleZ:lV,skew:lq,skewX:lq,skewY:lq,distance:lQ,translateX:lQ,translateY:lQ,translateZ:lQ,x:lQ,y:lQ,z:lQ,perspective:lQ,transformPerspective:lQ,opacity:lB,originX:l1,originY:l1,originZ:lQ,zIndex:uo,fillOpacity:lB,strokeOpacity:lB,numOctaves:uo},ul={...us,color:l3,backgroundColor:l3,outlineColor:l3,fill:l3,stroke:l3,borderColor:l3,borderTopColor:l3,borderRightColor:l3,borderBottomColor:l3,borderLeftColor:l3,filter:ui,WebkitFilter:ui,mask:ua,WebkitMask:ua},uu=e=>ul[e],uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),ud=()=>({x:uc(),y:uc()}),uf=()=>({min:0,max:0}),up=()=>({x:uf(),y:uf()}),uh=e=>!!(e&&e.getVelocity),um=new Set(["width","height","top","left","right","bottom",...lM]),uy=e=>t=>t.test(e),ug=[lF,lQ,lX,lq,l0,lJ,{test:e=>"auto"===e,parse:e=>e}],uv=e=>ug.find(uy(e)),ub=()=>{},uw=()=>{},ux=e=>t=>"string"==typeof t&&t.startsWith(e),uS=ux("--"),uE=ux("var(--"),uD=e=>!!uE(e)&&uO.test(e.split("/*")[0].trim()),uO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uj(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let uP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,uC=e=>180*e/Math.PI,uk=e=>uT(uC(Math.atan2(e[1],e[0]))),uA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:uk,rotateZ:uk,skewX:e=>uC(Math.atan(e[1])),skewY:e=>uC(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uT=e=>((e%=360)<0&&(e+=360),e),uN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:uN,scaleY:uR,scale:e=>(uN(e)+uR(e))/2,rotateX:e=>uT(uC(Math.atan2(e[6],e[5]))),rotateY:e=>uT(uC(Math.atan2(-e[2],e[0]))),rotateZ:uk,rotate:uk,skewX:e=>uC(Math.atan(e[4])),skewY:e=>uC(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function uM(e){return+!!e.includes("scale")}function u_(e,t){let r,n;if(!e||"none"===e)return uM(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=uI,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uA,n=t}if(!n)return uM(t);let a=r[t],o=n[1].split(",").map(uL);return"function"==typeof a?a(o):o[a]}function uL(e){return parseFloat(e.trim())}let uF=e=>e===lF||e===lQ,uB=new Set(["x","y","z"]),uV=lM.filter(e=>!uB.has(e)),uU={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{let i=e.max-e.min;return"border-box"===n?i:i-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>u_(t,"x"),y:(e,{transform:t})=>u_(t,"y")};uU.translateX=uU.x,uU.translateY=uU.y;let uW=e=>e,u$={},uz=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uH(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=uz.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,i=!1,o=!1)=>{let s=o&&n?t:r;return i&&a.add(e),s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,n){i=!0;return}n=!0;let a=t;t=r,r=a,t.forEach(s),t.clear(),n=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=o,m=()=>{let a=u$.useManualTiming,o=a?i.timestamp:performance.now();r=!1,a||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))};return{schedule:uz.reduce((t,a)=>{let s=o[a];return t[a]=(t,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||e(m)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<uz.length;t++)o[uz[t]].cancel(e)},state:i,steps:o}}let{schedule:uG,cancel:uK,state:uY,steps:uZ}=uH("u">typeof requestAnimationFrame?requestAnimationFrame:uW,!0),uq=new Set,uX=!1,uQ=!1,uJ=!1;function u0(){if(uQ){let e=Array.from(uq).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],uV.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}uQ=!1,uX=!1,uq.forEach(e=>e.complete(uJ)),uq.clear()}function u1(){uq.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uQ=!0)})}class u2{constructor(e,t,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(uq.add(this),uX||(uX=!0,uG.read(u1),uG.resolveKeyframes(u0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),uq.delete(this)}cancel(){"scheduled"===this.state&&(uq.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let u3=new Set([ui,ua]);function u4(e,t){let r=uu(e);return u3.has(r)||(r=ue),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let u5=new Set(["auto","none","0"]);class u6 extends u2{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&uD(n=n.trim())){let i=function e(t,r,n=1){uw(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,a]=function(e){let t=uP.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return uD(a)?e(a,r,n+1):a}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!um.has(r)||2!==e.length)return;let[n,i]=e,a=uv(n),o=uv(i);if(uj(n)!==uj(i)&&uU[r]){this.needsMeasurement=!0;return}if(a!==o)if(uF(a)&&uF(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else uU[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!u5.has(t)&&l9(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=u4(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uU[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=uU[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let u8=e=>1e3*e;function u9(e,t){-1===e.indexOf(t)&&e.push(t)}function u7(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class ce{constructor(){this.subscriptions=[]}add(e){return u9(this.subscriptions,e),()=>u7(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ct(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function cr(e){let t;return()=>(void 0===t&&(t=e()),t)}let cn={};function ci(e,t){let r=cr(e);return()=>cn[t]??r()}let ca=ci(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),co=e=>null!==e;function cs(e,{repeat:t,repeatType:r="loop"},n,i=1){let a=e.filter(co),o=i<0||t&&"loop"!==r&&t%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}class cl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let cu=e=>Array.isArray(e)&&"number"==typeof e[0],cc=ci(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cd=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function ch(e){return"function"==typeof e&&"applyToOptions"in e}class cm extends cl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,uw("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return ch(e)&&cc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?cc()?cd(t,r):"ease-out":cu(t)?cf(t):Array.isArray(t)?t.map(t=>e(t,r)||cp.easeOut):cp[t]}(s,i);Array.isArray(d)&&(c.easing=d);let f={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cs(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ct(t,r,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=u8(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ca())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),uW):n(this)}}let cy=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:cg}=uH(queueMicrotask,!1);function cv(){a=void 0}let cb={now:()=>(void 0===a&&cb.set(uY.isProcessing||u$.useManualTiming?uY.timestamp:performance.now()),a),set:e=>{a=e,queueMicrotask(cv)}},cw=(e,t)=>t?1e3/t*e:0,cx;class cS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=cb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=cb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);let r=this.events[e].add(t);return"change"===e?()=>{r(),uG.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return cx&&cx.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=cb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return cw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cE(e,t){return new cS(e,t)}let cD=[...ug,l3,ue],cO=new WeakMap;function cj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cP(e){return"string"==typeof e||Array.isArray(e)}let cC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ck=["initial",...cC];function cA(e){return cj(e.animate)||ck.some(t=>cP(e[t]))}function cT(e){return!!(cA(e)||e.variants)}let cN={current:null},cR={current:!1},cI="u">typeof window;function cM(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function c_(e,t,r,n){if("function"==typeof t){let[i,a]=cM(n);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=cM(n);t=t(void 0!==r?r:e.custom,i,a)}return t}let cL=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cF={};class cB{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=u2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=cb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,uG.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=cA(t),this.isVariantNode=cT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&uh(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,cO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(cR.current||function(){if(cR.current=!0,cI)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cN.current=e.matches;e.addEventListener("change",t),t()}else cN.current=!1}(),this.shouldReduceMotion=cN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),uK(this.notifyUpdate),uK(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&cy.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:n,times:i,ease:a,duration:o}=t.accelerate,s=new cm({element:this.current,name:e,keyframes:n,times:i,ease:a,duration:u8(o)}),l=r(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let n=l_.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&uG.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in cF){let t=cF[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):up()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<cL.length;t++){let r=cL[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if(uh(i))e.addValue(n,i);else if(uh(a))e.addValue(n,cE(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,cE(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=cE(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!cD.find(uy(n))&&ue.test(t)&&(r=u4(e,t))}this.setBaseTarget(e,uh(r)?r.get():r)}return uh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=c_(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||uh(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}}class cV extends cB{constructor(){super(...arguments),this.KeyframeResolver=u6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;uh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function cU(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let cW=(e,t)=>t&&"number"==typeof e?t.transform(e):e,c$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cz=lM.length;function cH(e,t,r){let{style:n,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let r=t[e];if(l_.has(e)){o=!0;continue}if(uS(e)){i[e]=r;continue}{let t=cW(r,us[e]);e.startsWith("origin")?(s=!0,a[e]=t):n[e]=t}}if(!t.transform&&(o||r?n.transform=function(e,t,r){let n="",i=!0;for(let a=0;a<cz;a++){let o=lM[a],s=e[o];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!o.startsWith("scale");else{let e=parseFloat(s);l=o.startsWith("scale")?1===e:0===e}if(!l||r){let e=cW(s,us[o]);if(!l){i=!1;let t=c$[o]||o;n+=`${t}(${e}) `}r&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,n+=`rotate(${cW(a,us.pathRotation)}) `),n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=a;n.transformOrigin=`${e} ${t} ${r}`}}let cG={offset:"stroke-dashoffset",array:"stroke-dasharray"},cK={offset:"strokeDashoffset",array:"strokeDasharray"},cY=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cZ(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(cH(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of(d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),cY))void 0!==d[e]&&(f[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let a=i?cG:cK;e[a.offset]=`${-n}`,e[a.array]=`${t} ${r}`}(d,i,a,o,!1)}let cq=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),cX=e=>"string"==typeof e&&"svg"===e.toLowerCase();function cQ(e,{style:t,vars:r},n,i){let a,o=e.style;for(a in t)o[a]=t[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}let cJ=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function c0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let c1={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!lQ.test(e))return e;else e=parseFloat(e);let r=c0(e,t.target.x),n=c0(e,t.target.y);return`${r}% ${n}%`}},c2=(e,t,r)=>e+(t-e)*r,c3={borderRadius:{...c1,applyTo:[...cJ]},borderTopLeftRadius:c1,borderTopRightRadius:c1,borderBottomLeftRadius:c1,borderBottomRightRadius:c1,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=ue.parse(e);if(n.length>5)return e;let i=ue.createTransformer(e),a=+("number"!=typeof n[0]),o=r.x.scale*t.x,s=r.y.scale*t.y;n[0+a]/=o,n[1+a]/=s;let l=c2(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function c4(e,{layout:t,layoutId:r}){return l_.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!c3[e]||"opacity"===e)}function c5(e,t,r){let n=e.style,i=t?.style,a={};if(!n)return a;for(let t in n)(uh(n[t])||i&&uh(i[t])||c4(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(a[t]=n[t]);return a}function c6(e,t,r){let n=c5(e,t,r);for(let r in e)(uh(e[r])||uh(t[r]))&&(n[-1!==lM.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class c8 extends cV{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=up}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l_.has(t)){let e=uu(t);return e&&e.default||0}return t=cq.has(t)?t:cU(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return c6(e,t,r)}build(e,t,r){cZ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in cQ(e,t,void 0,n),t.attrs)e.setAttribute(cq.has(r)?r:cU(r),t.attrs[r])}mount(e){this.isSVGTag=cX(e.tagName),super.mount(e)}}function c9({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function c7(e){return void 0===e||1===e}function de({scale:e,scaleX:t,scaleY:r}){return!c7(e)||!c7(t)||!c7(r)}function dt(e){return de(e)||dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dr(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function dn(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function di(e,t=0,r=1,n,i){e.min=dn(e.min,t,r,n,i),e.max=dn(e.max,t,r,n,i)}function da(e,{x:t,y:r}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,r.translate,r.scale,r.originPoint)}function ds(e,t){e.min+=t,e.max+=t}function dl(e,t,r,n,i=.5){let a=c2(e.min,e.max,i);di(e,t,r,a,n)}function du(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dc(e,t,r){let n=r??e;dl(e.x,du(t.x,n.x),t.scaleX,t.scale,t.originX),dl(e.y,du(t.y,n.y),t.scaleY,t.scale,t.originY)}function dd(e,t){return c9(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class df extends cV{constructor(){super(...arguments),this.type="html",this.renderInstance=cQ}mount(e){uw(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(l_.has(t))return this.projection?.isProjecting?uM(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return u_(r,t)})(e,t);{let r=window.getComputedStyle(e),n=(uS(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return dd(e,t)}build(e,t,r){cH(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return c5(e,t,r)}}let dp=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dh(e){if("string"!=typeof e||e.includes("-"));else if(dp.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dm=(0,m.createContext)({}),dy=(0,m.createContext)({strict:!1}),dg=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dv=(0,m.createContext)({});function db(e){return Array.isArray(e)?e.join(" "):e}let dw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dx(e,t,r){for(let n in t)uh(t[n])||c4(n,r)||(e[n]=t[n])}let dS=()=>({...dw(),attrs:{}}),dE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function dD(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dE.has(e)}let dO=e=>!dD(e);try{bW=require("@emotion/is-prop-valid").default,"function"==typeof bW&&(dO=e=>e.startsWith("on")?!dD(e):bW(e))}catch{}function dj(e){return uh(e)?e.get():e}let dP=(0,m.createContext)(null);function dC(e){let t=(0,m.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dk=e=>(t,r)=>{let n=(0,m.useContext)(dv),i=(0,m.useContext)(dP),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:function(e,t,r,n){let i={},a=n(e,{});for(let e in a)i[e]=dj(a[e]);let{initial:o,animate:s}=e,l=cA(e),u=cT(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?s:o;if(d&&"boolean"!=typeof d&&!cj(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let n=c_(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,n,i,e),renderState:t()}})(e,t,n,i);return r?a():dC(a)},dA=dk({scrapeMotionValuesFromProps:c5,createRenderState:dw}),dT=dk({scrapeMotionValuesFromProps:c6,createRenderState:dS}),dN={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dR=!1;function dI(){return!function(){if(dR)return;let e={};for(let t in dN)e[t]={isEnabled:e=>dN[t].some(t=>!!e[t])};cF=e,dR=!0}(),cF}let dM=Symbol.for("motionComponentSymbol"),d_="data-"+cU("framerAppearId"),dL=(0,m.createContext)({});function dF(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dB="u">typeof window?m.useLayoutEffect:m.useEffect;function dV(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&function(e){let t=dI();for(let r in e)t[r]={...t[r],...e[r]};cF=t}(n);let a=r?"svg"===r:dh(e),o=a?dT:dA;function s(r,n){var s;let l,u,c,d={...(0,m.useContext)(dg),...r,layoutId:function({layoutId:e}){let t=(0,m.useContext)(dm).id;return t&&void 0!==e?t+"-"+e:e}(r)},{isStatic:f}=d,p=function(e){let{initial:t,animate:r}=function(e,t){if(cA(e)){let{initial:t,animate:r}=e;return{initial:!1===t||cP(t)?t:void 0,animate:cP(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,m.useContext)(dv));return(0,m.useMemo)(()=>({initial:t,animate:r}),[db(t),db(r)])}(r),y=o(r,f);if(!f&&"u">typeof window){(0,m.useContext)(dy).strict;let t=function(e){let{drag:t,layout:r}=dI();if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);l=t.MeasureLayout,p.visualElement=function(e,t,r,n,i,a){let{visualElement:o}=(0,m.useContext)(dv),s=(0,m.useContext)(dy),l=(0,m.useContext)(dP),u=(0,m.useContext)(dg),c=u.reducedMotion,d=u.skipAnimations,f=(0,m.useRef)(null),p=(0,m.useRef)(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,y=(0,m.useContext)(dL);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&dF(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(f.current,r,i,y);let g=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{h&&g.current&&h.update(r,l)});let v=r[d_],b=(0,m.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return dB(()=>{p.current=!0,h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),(0,m.useEffect)(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),h.enteringChildren=void 0)}),h}(e,y,d,i,t.ProjectionNode,a)}return(0,h.jsxs)(dv.Provider,{value:p,children:[l&&p.visualElement?(0,h.jsx)(l,{visualElement:p.visualElement,...d}):null,function(e,t,r,{latestValues:n},i,a=!1,o){let s=(o??dh(e)?function(e,t,r,n){let i=(0,m.useMemo)(()=>{let r=dS();return cZ(r,t,cX(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};dx(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r,n,i={},a=(r=e.style||{},dx(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,m.useMemo)(()=>{let r=dw();return cH(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,n,i,e),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!uh(e[i])&&(dO(i)||!0===r&&dD(i)||!t&&!dD(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,a),u=e!==m.Fragment?{...l,...s,ref:r}:{},{children:c}=t,d=(0,m.useMemo)(()=>uh(c)?c.get():c,[c]);return(0,m.createElement)(e,{...u,children:d})}(e,r,(s=p.visualElement,u=(0,m.useRef)(n),(0,m.useInsertionEffect)(()=>{u.current=n}),c=(0,m.useRef)(null),(0,m.useCallback)(e=>{e&&y.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=u.current;if("function"==typeof t)if(e){let r=t(e);"function"==typeof r&&(c.current=r)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[s])),y,f,t,a)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,m.forwardRef)(s);return l[dM]=e,l}class dU{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dW(e,t,r){let n=e.getProps();return c_(n,t,void 0!==r?r:n.custom,e)}function d$(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function dz(e,t){let r=e?.[t]??e?.default??e;return r!==e?d$(r,e):r}let dH=e=>Array.isArray(e);function dG(e,t){let{transitionEnd:r={},transition:n={},...i}=dW(e,t)||{};for(let t in i={...i,...r}){var a;let r=dH(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,cE(r))}}function dK(e,t){let r=e.getValue("willChange");if(uh(r)&&r.add)return r.add(t);if(!r&&u$.WillChange){let r=new u$.WillChange("auto");e.addValue("willChange",r),r.add(t)}}let dY=(...e)=>e.reduce((e,t)=>r=>t(e(r)));function dZ(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dq(e,t){return r=>r>0?t:e}let dX=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},dQ=[lY,lK,l2];function dJ(e){let t=dQ.find(t=>t.test(e));if(ub(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===l2&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=dZ(s,n,e+1/3),a=dZ(s,n,e),o=dZ(s,n,e-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let d0=(e,t)=>{let r=dJ(e),n=dJ(t);if(!r||!n)return dq(e,t);let i={...r};return e=>(i.red=dX(r.red,n.red,e),i.green=dX(r.green,n.green,e),i.blue=dX(r.blue,n.blue,e),i.alpha=c2(r.alpha,n.alpha,e),lK.transform(i))},d1=new Set(["none","hidden"]);function d2(e,t){return r=>c2(e,t,r)}function d3(e){return"number"==typeof e?d2:"string"==typeof e?uD(e)?dq:l3.test(e)?d0:d6:Array.isArray(e)?d4:"object"==typeof e?l3.test(e)?d0:d5:dq}function d4(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>d3(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function d5(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=d3(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let d6=(e,t)=>{let r=ue.createTransformer(t),n=l9(e),i=l9(t);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return ub(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),dq(e,t);if(d1.has(e)&&!i.values.length||d1.has(t)&&!n.values.length)return d1.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return dY(d4(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][n[a]],s=e.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function d8(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?c2(e,t,r):d3(e)(e,t)}let d9=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>uG.update(t,e),stop:()=>uK(t),now:()=>uY.isProcessing?uY.timestamp:cb.now()}};function d7(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let fe=.01,ft=2,fr=.005,fn=.5;function fi(e,t){return e*Math.sqrt(1-t*t)}let fa=["duration","bounce"],fo=["stiffness","damping","mass"];function fs(e,t){return t.some(t=>void 0!==e[t])}function fl(e=.3,t=.3){let r,n,i,a,o,s,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:h,damping:m,mass:y,duration:g,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fs(e,fo)&&fs(e,fa))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*lL(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:i}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let i,a;ub(e<=u8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=lL(.05,1,o),e=lL(.01,10,e/1e3),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/fi(t,o)*Math.exp(-i)},a=t=>{let n=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=fi(Math.pow(t,2),o);return(n*r+r-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e=u8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,x=m/(2*Math.sqrt(h*y)),S=f-d,E=Math.sqrt(h/y)/1e3,D=5>Math.abs(S);if(u||(u=D?fe:ft),c||(c=D?fr:fn),x<1)i=fi(E,x),a=(w+x*E*S)/i,r=e=>f-Math.exp(-x*E*e)*(a*Math.sin(i*e)+S*Math.cos(i*e)),o=x*E*a+S*i,s=x*E*S-a*i,n=e=>Math.exp(-x*E*e)*(o*Math.sin(i*e)+s*Math.cos(i*e));else if(1===x){r=e=>f-Math.exp(-E*e)*(S+(w+E*S)*e);let e=w+E*S;n=t=>Math.exp(-E*t)*(E*e*t-w)}else{let e=E*Math.sqrt(x*x-1);r=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return f-r*((w+x*E*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(w+x*E*S)/e,i=x*E*t-S*e,a=x*E*S-t*e;n=t=>{let r=Math.exp(-x*E*t),n=Math.min(e*t,300);return r*(i*Math.sinh(n)+a*Math.cosh(n))}}let O={calculatedDuration:b&&g||null,velocity:e=>u8(n(e)),next:e=>{if(!b&&x<1){let t=Math.exp(-x*E*e),r=Math.sin(i*e),n=Math.cos(i*e),l=f-t*(a*r+S*n);return p.done=Math.abs(u8(t*(o*r+s*n)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=r(e);return b?p.done=e>=g:p.done=Math.abs(u8(n(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(d7(O),2e4),t=cd(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}function fu(e,t,r){let n=Math.max(t-5,0);return cw(r-e(n),t-n)}function fc({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f,p=e[0],h={done:!1,value:p},m=r*t,y=p+m,g=void 0===o?y:o(y);g!==y&&(m=g-p);let v=e=>-m*Math.exp(-e/n),b=e=>g+v(e),w=e=>{let t=v(e),r=b(e);h.done=Math.abs(t)<=u,h.value=h.done?g:r},x=e=>{let t;if(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,f=fl({keyframes:[h.value,(r=h.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:fu(b,e,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),x(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),h)}}}fl.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(d7(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:i/1e3}}(e,100,fl);return e.ease=t.ease,e.duration=u8(t.duration),e.type="keyframes",e};let fd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ff(e,t,r,n){return e===t&&r===n?uW:i=>0===i||1===i?i:fd(function(e,t,r,n,i){let a,o,s=0;do(a=fd(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}(i,0,1,e,r),t,n)}let fp=ff(.42,0,1,1),fh=ff(0,0,.58,1),fm=ff(.42,0,.58,1),fy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fg=e=>t=>1-e(1-t),fv=ff(.33,1.53,.69,.99),fb=fg(fv),fw=fy(fb),fx=e=>e>=1?1:(e*=2)<1?.5*fb(e):.5*(2-Math.pow(2,-10*(e-1))),fS=e=>1-Math.sin(Math.acos(e)),fE=fg(fS),fD=fy(fS),fO={linear:uW,easeIn:fp,easeInOut:fm,easeOut:fh,circIn:fS,circInOut:fD,circOut:fE,backIn:fb,backInOut:fw,backOut:fv,anticipate:fx},fj=e=>{if(cu(e)){uw(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return ff(t,r,n,i)}return"string"==typeof e?(uw(void 0!==fO[e],`Invalid easing type '${e}'`,"invalid-easing-type"),fO[e]):e},fP=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};function fC({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(fj):fj(n),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;if(uw(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||u$.mix||d8,a=e.length-1;for(let r=0;r<a;r++){let a=i(e[r],e[r+1]);t&&(a=dY(Array.isArray(t)?t[r]||uW:t,a)),n.push(a)}return n}(t,n,i),l=s.length,u=r=>{if(o&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=fP(e[n],e[n+1],r);return s[n](i)};return r?t=>u(lL(e[0],e[a-1],t)):u}((i=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=fP(0,t,n);e.push(c2(r,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||fm).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let fk={decay:fc,inertia:fc,tween:fC,keyframes:fC,spring:fl};function fA(e){"string"==typeof e.type&&(e.type=fk[e.type])}let fT=e=>e/100;class fN extends cl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==cb.now()&&this.tick(cb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;fA(e);let{type:t=fC,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fC;s!==fC&&"number"!=typeof o[0]&&(this.mixKeyframes=dY(fT,d8(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=d7(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:h,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/s)):"mirror"===f&&(w=o)),b=lL(0,1,r)*s}v?(this.delayState.value=c[0],r=this.delayState):r=w.next(b),a&&!v&&(r.value=a(r.value));let{done:x}=r;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&h!==fc&&(r.value=cs(c,this.options,y,this.speed)),m&&m(r.value),S&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=u8(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return fu(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(cb.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=d9,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(cb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let fR={anticipate:fx,backInOut:fw,circInOut:fD};class fI extends cm{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in fR&&(e.ease=fR[e.ease])}(e),fA(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new fN({...a,autoplay:!1}),s=Math.max(10,cb.now()-this.startTime),l=lL(0,10,s-10),u=o.sample(s).value,{name:c}=this.options;i&&c&&ct(i,c,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}}let fM=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ue.test(e)||"0"===e)&&!e.startsWith("url("));function f_(e){e.duration=0,e.type="keyframes"}let fL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,fF=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fB=cr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class fV extends cl{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=cb.now();const d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||u2;this.keyframeResolver=new f(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){let i;this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=cb.now();let d=!0;!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],o=fM(i,t),s=fM(a,t);return ub(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||ch(r))&&n)}(e,a,o,s)&&(d=!1,(u$.instantAnimations||!l)&&c?.(cs(e,r,t)),e[0]=e[e.length-1],f_(r),r.repeat=0);let f={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return fB()&&r&&(cy.has(r)||fF.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&fL.test(e[t]))return!0;return!1}(s))&&("transform"!==r||!c)&&!u&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(f),h=f.motionValue?.owner?.current;if(p)try{i=new fI({...f,element:h})}catch{i=new fN(f)}else i=new fN(f);i.finished.then(()=>{this.notifyFinished()}).catch(uW),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),uJ=!0,u1(),u0(),uJ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let fU={type:"spring",stiffness:500,damping:25,restSpeed:10},fW={type:"keyframes",duration:.8},f$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fz=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),fH=(e,t,r,n={},i,a)=>o=>{let s=dz(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=u8(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!fz.has(t))return!0;return!1}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?fW:l_.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:fU:f$)(e,c)),c.duration&&(c.duration=u8(c.duration)),c.repeatDelay&&(c.repeatDelay=u8(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(f_(c),0===c.delay&&(d=!0)),(u$.instantAnimations||u$.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,f_(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){let e=cs(c.keyframes,s);if(void 0!==e)return void uG.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new fN(c):new fV(c)};function fG(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,l=e.getDefaultTransition();a=a?d$(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,s,a,r,d),s){let n=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(f,t))continue;let o={delay:r,...dz(a||{},t)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){uG.update(()=>n.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let r=e.props[d_];if(r){let e=window.MotionHandoffAnimation(r,t,uG);null!==e&&(o.startTime=e,p=!0)}}dK(e,t);let h=u??e.shouldReduceMotion;n.start(fH(t,n,i,h&&um.has(t)?{type:!1}:o,e,p));let m=n.animation;m&&d.push(m)}if(o){let t=()=>uG.update(()=>{o&&dG(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fK(e,t,r,n=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function fY(e,t,r={}){let n=dW(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(fG(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=0,a=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(fY(l,t,{...o,delay:r+("function"==typeof n?0:n)+fK(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([a(),o(r.delay)]);{let[e,t]="beforeChildren"===s?[a,o]:[o,a];return e().then(()=>t())}}function fZ(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>fY(e,t,r)));else if("string"==typeof t)n=fY(e,t,r);else{let i="function"==typeof t?dW(e,t,r.custom):t;n=Promise.all(fG(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}let fq=ck.length;function fX(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let fQ=[...cC].reverse(),fJ=cC.length;function f0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f1(){return{animate:f0(!0),whileInView:f0(),whileHover:f0(),whileTap:f0(),whileDrag:f0(),whileFocus:f0(),exit:f0()}}let f2=0,f3={x:!1,y:!1};function f4(e){return[e("x"),e("y")]}function f5(e){return e.max-e.min}function f6(e,t,r,n=.5){e.origin=n,e.originPoint=c2(t.min,t.max,e.origin),e.scale=f5(r)/f5(t),e.translate=c2(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function f8(e,t,r,n){f6(e.x,t.x,r.x,n?n.originX:void 0),f6(e.y,t.y,r.y,n?n.originY:void 0)}function f9(e,t,r,n=0){e.min=(n?c2(r.min,r.max,n):r.min)+t.min,e.max=e.min+f5(t)}function f7(e,t,r,n=0){let i=n?c2(r.min,r.max,n):r.min;e.min=t.min-i,e.max=e.min+f5(t)}function pe(e,t,r,n){f7(e.x,t.x,r.x,n?.x),f7(e.y,t.y,r.y,n?.y)}let pt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pr=new Set(["INPUT","SELECT","TEXTAREA"]);function pn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}let pi=e=>"object"==typeof e&&null!==e;function pa(e){return pi(e)&&"ownerSVGElement"in e}function po(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let ps=new WeakMap,pl=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:pa(n)&&"getBBox"in n?n.getBBox()[t]:n[r],pu=pl("inline","width","offsetWidth"),pc=pl("block","height","offsetHeight");function pd({target:e,borderBoxSize:t}){ps.get(e)?.forEach(r=>{r(e,{get width(){return pu(e,t)},get height(){return pc(e,t)}})})}function pf(e){e.forEach(pd)}let pp=new Set;function ph(e,t){let r;return"function"==typeof e?(pp.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pp.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{pp.delete(e),pp.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!o&&"u">typeof ResizeObserver&&(o=new ResizeObserver(pf)),(r=po(e)).forEach(e=>{let r=ps.get(e);r||(r=new Set,ps.set(e,r)),r.add(t),o?.observe(e)}),()=>{r.forEach(e=>{let r=ps.get(e);r?.delete(t),r?.size||o?.unobserve(e)})})}let pm=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function py(e){return{point:{x:e.pageX,y:e.pageY}}}function pg(e,t,r,n){return pn(e,t,e=>pm(e)&&r(e,py(e)),n)}let pv=({current:e})=>e?e.ownerDocument.defaultView:null,pb=(e,t)=>Math.abs(e-t),pw=new Set(["auto","scroll"]);class px{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pS(this.lastRawMoveEventInfo,this.transformPagePoint));let r=pD(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(pb(e.x,t.x)**2+pb(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=uY;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=pS(t,this.transformPagePoint),uG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=pD("pointercancel"===e.type?this.lastMoveEventInfo:pS(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!pm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const s=pS(py(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=uY;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,pD(s,this.history));const d={passive:!0,capture:!0};this.removeListeners=dY(pg(this.contextWindow,"pointermove",this.handlePointerMove,d),pg(this.contextWindow,"pointerup",this.handlePointerUp,d),pg(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pw.has(e.overflowX)||pw.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:n.x-t.x,y:n.y-t.y};(0!==i.x||0!==i.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,n),uG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),uK(this.updatePoint)}}function pS(e,t){return t?{point:t(e.point)}:e}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pD({point:e},t){return{point:e,delta:pE(e,pO(t)),offset:pE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=pO(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>u8(.1)));)t--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&n.timestamp-r.timestamp>2*u8(.1)&&(r=e[1]);let i=(n.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function pO(e){return e[e.length-1]}function pj(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function pP(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function pC(e,t,r){return{min:pk(e,t),max:pk(e,r)}}function pk(e,t){return"number"==typeof e?e:e[t]||0}let pA=new WeakMap;class pT{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=up(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{t&&this.snapToCursor(py(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(f3[e])return null;else return f3[e]=!0,()=>{f3[e]=!1};return f3.x||f3.y?null:(f3.x=f3.y=!0,()=>{f3.x=f3.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),f4(e=>{let t=this.getAxisMotionValue(e).get()||0;if(lX.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=f5(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&uG.update(()=>i(e,t),!1,!0),dK(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&uG.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new px(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:pv(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&uG.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!pR(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?c2(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?c2(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&dF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:pj(e.x,r,i),y:pj(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:pC(e,"left","right"),y:pC(e,"top","bottom")}}(t),n!==this.constraints&&!dF(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&f4(e=>{var t,n;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],i={},void 0!==n.min&&(i.min=n.min-t.min),void 0!==n.max&&(i.max=n.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!dF(t))return!1;let n=t.current;uw(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,r){let n=dd(e,r),{scroll:i}=t;return i&&(ds(n.x,i.offset.x),ds(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:pP(e.x,a.x),y:pP(e.y,a.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=c9(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(f4(o=>{if(!pR(o,t,this.currentDirection))return;let l=s&&s[o]||{};(!0===a||a===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return dK(this.visualElement,e),r.start(fH(e,r,0,t,this.visualElement,!1))}stopAnimation(){f4(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){f4(t=>{let{drag:r}=this.getProps();if(!pR(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-c2(r,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!dF(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};f4(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,i;let a,o,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],a=.5,o=f5(r),(s=f5(i))>o?a=fP(i.min,i.max-o,r.min):o>s&&(a=fP(r.min,r.max-s,i.min)),lL(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),f4(t=>{if(!pR(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set(c2(i,a,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;pA.set(this.visualElement,this);let t=this.visualElement.current,r=pg(t,"pointerdown",e=>{let{drag:r,dragListener:n=!0}=this.getProps(),i=e.target,a=i!==t&&(pr.has(i.tagName)||!0===i.isContentEditable);r&&n&&!a&&this.start(e)}),n=()=>{var r,n,i;let a,o,{dragConstraints:s}=this.getProps();dF(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(r=t,n=s.current,a=ph(r,pN(i=()=>this.scalePositionWithinConstraints())),o=ph(n,pN(i)),e=()=>{a(),o()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),uG.read(n);let o=pn(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(f4(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function pN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function pR(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let pI=e=>(t,r)=>{e&&uG.update(()=>e(t,r),!1,!0)},pM={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function p_(e=!0){let t=(0,m.useContext)(dP);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,a=(0,m.useId)();(0,m.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,m.useCallback)(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}let pL=!1;class pF extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),pL&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),pM.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),pL=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||uG.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),cg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;pL=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pB(e){let[t,r]=p_(),n=(0,m.useContext)(dm);return(0,h.jsx)(pF,{...e,layoutGroup:n,switchLayoutGroup:(0,m.useContext)(dL),isPresent:t,safeToRemove:r})}let pV=cJ.length,pU=e=>"string"==typeof e?parseFloat(e):e,pW=e=>"number"==typeof e||lQ.test(e);function p$(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let pz=pG(0,.5,fE),pH=pG(.5,.95,uW);function pG(e,t,r){return n=>n<e?0:n>t?1:r(fP(e,t,n))}function pK(e,t){e.min=t.min,e.max=t.max}function pY(e,t){pK(e.x,t.x),pK(e.y,t.y)}function pZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pq(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function pX(e,t,[r,n,i],a,o){!function(e,t=0,r=1,n=.5,i,a=e,o=e){if(lX.test(t)&&(t=parseFloat(t),t=c2(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=c2(a.min,a.max,n);e===a&&(s-=t),e.min=pq(e.min,t,r,s,i),e.max=pq(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,a,o)}let pQ=["x","scaleX","originX"],pJ=["y","scaleY","originY"];function p0(e,t,r,n){pX(e.x,t,pQ,r?r.x:void 0,n?n.x:void 0),pX(e.y,t,pJ,r?r.y:void 0,n?n.y:void 0)}function p1(e){return 0===e.translate&&1===e.scale}function p2(e){return p1(e.x)&&p1(e.y)}function p3(e,t){return e.min===t.min&&e.max===t.max}function p4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function p5(e,t){return p4(e.x,t.x)&&p4(e.y,t.y)}function p6(e){return f5(e.x)/f5(e.y)}function p8(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p9{constructor(){this.members=[]}add(e){u9(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let n=r.instance;n&&!1!==n.isConnected||r.snapshot||(u7(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(u7(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:i}=e.options;(void 0===n||n!==i)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let p7=(e,t)=>e.depth-t.depth;class he{constructor(){this.children=[],this.isDirty=!1}add(e){u9(this.children,e),this.isDirty=!0}remove(e){u7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(p7),this.isDirty=!1,this.children.forEach(e)}}let ht=["","X","Y","Z"],hr=0;function hn(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function hi({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=hr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hs),this.nodes.forEach(hy),this.nodes.forEach(hg),this.nodes.forEach(hl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new he)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=pa(t)&&!(pa(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;uG.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,a;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=cb.now(),a=({timestamp:e})=>{let r=e-t;r>=250&&(uK(a),i(r-250))},uG.setup(a,!0),r=()=>uK(a),pM.hasAnimatedSinceResize&&(pM.hasAnimatedSinceResize=!1,this.nodes.forEach(hm))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||hE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!p5(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dz(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||hm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),uK(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hv),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[d_];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",uG,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(hd),this.nodes.forEach(hc);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(hf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hp),this.nodes.forEach(hh),this.nodes.forEach(ha),this.nodes.forEach(ho)):this.nodes.forEach(hf),this.clearAllSnapshots();let e=cb.now();uY.delta=lL(0,1e3/60,e-uY.timestamp),uY.timestamp=e,uY.isProcessing=!0,uZ.update.process(uY),uZ.preRender.process(uY),uZ.render.process(uY),uY.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hu),this.sharedNodes.forEach(hb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,uG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){uG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f5(this.snapshot.measuredBox.x)||f5(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=up()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!p2(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||dt(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),hj((t=n).x),hj(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return up();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(hC))){let{scroll:e}=this.root;e&&(ds(t.x,e.offset.x),ds(t.y,e.offset.y))}return t}removeElementScroll(e){let t=up();if(pY(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&pY(t,e),ds(t.x,i.offset.x),ds(t.y,i.offset.y))}return t}applyTransform(e,t=!1,r){let n=r||up();pY(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ds(n.x,-r.scroll.offset.x),ds(n.y,-r.scroll.offset.y)),dt(r.latestValues)&&dc(n,r.latestValues,r.layout?.layoutBox)}return dt(this.latestValues)&&dc(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=up();pY(t,e);for(let e=0;e<this.path.length;e++){let r,n=this.path[e];dt(n.latestValues)&&(n.instance&&(de(n.latestValues)&&n.updateSnapshot(),pY(r=up(),n.measurePageBox())),p0(t,n.latestValues,n.snapshot?.layoutBox,r))}return dt(this.latestValues)&&p0(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==uY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(!this.layout||!(n||i))return;this.resolvedRelativeTargetAt=uY.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=up(),this.targetWithTransforms=up()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,f9(o.x,s.x,l.x,u?.x),f9(o.y,s.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):pY(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):pY(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||de(this.parent.latestValues)||dr(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=up(),this.relativeTargetOrigin=up(),pe(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),pY(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===uY.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;pY(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,n=!1){let i,a,o=r.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ds(e.x,-i.scroll.offset.x),ds(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,da(e,a)),n&&dt(i.latestValues)&&dc(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=up());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(pZ(this.prevProjectionDelta.x,this.projectionDelta.x),pZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),f8(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&p8(this.projectionDelta.x,this.prevProjectionDelta.x)&&p8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ud(),this.projectionDelta=ud(),this.projectionDeltaWithTransform=ud()}setAnimationOrigin(e,t=!1,r){let n,i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=ud();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=up(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,f=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(hS));this.animationProgress=0;let p=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,i=p?.(r);if(i?(s.x.translate=i.x,s.x.scale=c2(e.x.scale,1,r),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=c2(e.y.scale,1,r),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(hw(s.x,e.x,r),hw(s.y,e.y,r)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,y,g,v;pe(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=r,hx(m.x,y.x,g.x,v),hx(m.y,y.y,g.y,v),n&&(c=this.relativeTarget,h=n,p3(c.x,h.x)&&p3(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=up()),pY(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,n,i,a){i?(e.opacity=c2(0,r.opacity??1,pz(n)),e.opacityExit=c2(t.opacity??1,0,pH(n))):a&&(e.opacity=c2(t.opacity??1,r.opacity??1,n));for(let i=0;i<pV;i++){let a=cJ[i],o=p$(t,a),s=p$(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||pW(o)===pW(s)?(e[a]=Math.max(c2(pU(o),pU(s),n),0),(lX.test(s)||lX.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=c2(t.rotate||0,r.rotate||0,n))}(o,a,this.latestValues,r,f,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(uK(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=uG.update(()=>{var t,r,n;let i;pM.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cE(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,r=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=uh(t)?t:cE(t)).start(fH("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&hP(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||up();let t=f5(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=f5(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}pY(t,r),dc(t,i),f8(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new p9),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&hn("z",e,n,this.animationValues);for(let t=0;t<ht.length;t++)hn(`rotate${ht[t]}`,e,n,this.animationValues),hn(`skew${ht[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dj(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dj(t?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:l}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotate(${i}deg) `),a&&(n+=`rotateX(${a}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),l&&(n+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,c3){if(void 0===i[t])continue;let{correct:r,applyTo:o,isCSSVariable:s}=c3[t],l="none"===a?i[t]:r(i[t],n);if(o){let t=o.length;for(let r=0;r<t;r++)e[o[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?dj(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hc),this.root.sharedNodes.clear()}}}function ha(e){e.updateLayout()}function ho(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)f4(e=>{let n=a?t.measuredBox[e]:t.layoutBox[e],i=f5(n);n.min=r[e].min,n.max=n.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";pK(a?t.measuredBox[e]:t.layoutBox[e],r[e])}else hP(i,t.layoutBox,r)&&f4(n=>{let i=a?t.measuredBox[n]:t.layoutBox[n],o=f5(r[n]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ud();f8(o,r,t.layoutBox);let s=ud();a?f8(s,e.applyTransform(n,!0),t.measuredBox):f8(s,r,t.layoutBox);let l=!p2(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let o=e.options.layoutAnchor||void 0,s=up();pe(s,t.layoutBox,i.layoutBox,o);let l=up();pe(l,r,a.layoutBox,o),p5(s,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hs(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hu(e){e.clearSnapshot()}function hc(e){e.clearMeasurements()}function hd(e){e.isLayoutDirty=!0,e.updateLayout()}function hf(e){e.isLayoutDirty=!1}function hp(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hy(e){e.resolveTargetDelta()}function hg(e){e.calcProjection()}function hv(e){e.resetSkewAndRotation()}function hb(e){e.removeLeadSnapshot()}function hw(e,t,r){e.translate=c2(t.translate,0,r),e.scale=c2(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hx(e,t,r,n){e.min=c2(t.min,r.min,n),e.max=c2(t.max,r.max,n)}function hS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let hE={duration:.45,ease:[.4,0,.1,1]},hD=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hO=hD("applewebkit/")&&!hD("chrome/")?Math.round:uW;function hj(e){e.min=hO(e.min),e.max=hO(e.max)}function hP(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(p6(t)-p6(r)))}function hC(e){return e!==e.root&&e.scroll?.wasRoot}let hk=hi({attachResizeListener:(e,t)=>pn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hA={current:void 0},hT=hi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hA.current){let e=new hk({});e.mount(window),e.setOptions({layoutScroll:!0}),hA.current=e}return hA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function hN(e,t){let r=po(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function hR(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&uG.postRender(()=>i(t,py(t)))}function hI(e){return pi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let hM=(e,t)=>!!t&&(e===t||hM(e,t.parentElement)),h_=new WeakSet;function hL(e){return t=>{"Enter"===t.key&&e(t)}}function hF(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function hB(e){return pm(e)&&!(f3.x||f3.y)}let hV=new WeakSet;function hU(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&uG.postRender(()=>i(t,py(t)))}let hW=new WeakMap,h$=new WeakMap,hz=e=>{let t=hW.get(e.target);t&&t(e)},hH=e=>{e.forEach(hz)},hG={some:0,all:1},hK=function(e,t){if("u"<typeof Proxy)return dV;let r=new Map,n=(r,n)=>dV(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,dV(a,void 0,e,t)),r.get(a))})}({animation:{Feature:class extends dU{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>fZ(e,t,r))),r=f1(),n=!0,i=!1,a=t=>(r,n)=>{let i=dW(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<fq;e++){let n=ck[e],i=t.props[n];(cP(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},u=[],c=new Set,d={},f=1/0;for(let t=0;t<fJ;t++){var p,h;let m=fQ[t],y=r[m],g=void 0!==s[m]?s[m]:l[m],v=cP(g),b=m===o?y.isActive:null;!1===b&&(f=t);let w=g===l[m]&&g!==s[m]&&v;if(w&&(n||i)&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||cj(g)||"boolean"==typeof g)continue;if("exit"===m&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let x=(p=y.prevProp,"string"==typeof(h=g)?h!==p:!!Array.isArray(h)&&!fX(h,p)),S=x||m===o&&y.isActive&&!w&&v||t>f&&v,E=!1,D=Array.isArray(g)?g:[g],O=D.reduce(a(m),{});!1===b&&(O={});let{prevResolvedValues:j={}}=y,P={...j,...O},C=t=>{S=!0,c.has(t)&&(E=!0,c.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in P){let t=O[e],r=j[e];if(!d.hasOwnProperty(e))(dH(t)&&dH(r)?!fX(t,r)||x:t!==r)?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):y.protectedKeys[e]=!0}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(d={...d,...O}),(n||i)&&e.blockInitialAnimation&&(S=!1);let k=w&&x,A=!k||E;S&&A&&u.push(...D.map(t=>{let r={type:m};if("string"==typeof t&&(n||i)&&!k&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=dW(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=fK(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let r=dW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),u.push({animation:t})}let m=!!u.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=o(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=f1(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();cj(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends dU{constructor(){super(...arguments),this.id=f2++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=dW(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...n}=r;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends dU{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:hG[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let r=e||document;h$.has(r)||h$.set(r,{});let n=h$.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hH,{root:e,...t})),n[i]}(s),hW.set(e,l),t.observe(e),()=>{hW.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dU{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[n,i,a]=hN(e,r),o=e=>{let n=e.currentTarget;if(!hB(e)||hV.has(e))return;h_.add(n),r.stopPropagation&&hV.add(e);let a=t(n,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),h_.has(n)&&h_.delete(n),hB(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{s(e,n===window||n===document||r.useGlobalTarget||hM(n,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),hI(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=hL(()=>{if(h_.has(r))return;hF(r,"down");let e=hL(()=>{hF(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>hF(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),pt.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(hU(this.node,t,"Start"),(e,{success:t})=>hU(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}},focus:{Feature:class extends dU{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dY(pn(this.node.current,"focus",()=>this.onFocus()),pn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dU{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=hN(e,r);return n.forEach(e=>{let r,n=!1,a=!1,o=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",l)},s=e=>{n=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),a&&(a=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){a=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||f3.x||f3.y)return;a=!1;let o=t(e,n);"function"==typeof o&&(r=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),a}(e,(e,t)=>(hR(this.node,t,"Start"),e=>hR(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dU{constructor(){super(...arguments),this.removePointerDownListener=uW}onPointerDown(e){this.session=new px(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:pI(e),onStart:pI(t),onMove:pI(r),onEnd:(e,t)=>{delete this.session,n&&uG.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=pg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends dU{constructor(e){super(e),this.removeGroupControls=uW,this.removeListeners=uW,this.controls=new pT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uW}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:hT,MeasureLayout:pB},layout:{ProjectionNode:hT,MeasureLayout:pB}},(e,t)=>t.isSVG??dh(e)?new c8(t):new df(t,{allowProjection:e!==m.Fragment}));var hY={initial:{},animate:{transition:{staggerChildren:.05}}},hZ={initial:{y:0,color:"var(--colors-surface-foreground)"},animate:{y:"-120%",color:"var(--colors-surface-muted-foreground)",transition:{type:"spring",stiffness:300,damping:20}}},hq=function(e){var t=e.label,r=e.active,n=e.required;return(0,h.jsxs)(hK.span,{className:lA.kineticLabel,variants:hY,initial:"initial",animate:r?"animate":"initial","aria-hidden":"true",children:[t.split("").map(function(e,t){return(0,h.jsx)(hK.span,{className:lA.kineticLetter,variants:hZ,style:{willChange:"transform"},children:" "===e?"\xa0":e},t)}),n&&(0,h.jsx)("span",{className:lA.requiredMark,children:" *"})]})};function hX(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hX(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 hJ={error:[100,50,100],warning:[50,30,50],success:[30]},h0={rules:[],realTimeValidation:!0,triggerVibration:!0,showIcons:!0,showMessages:!0};function h1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h1(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 h4=function(e){var t,r,n,i,a,o,s,l,u=e.variant,c=void 0===u?"outlined":u,d=e.size,f=e.label,p=e.placeholder,y=e.type,g=e.value,b=void 0===g?"":g,w=e.onChange,x=e.className,S=e.disabled,E=void 0!==S&&S,D=e.required,O=void 0!==D&&D,j=e.autoComplete,P=e.autoFocus,C=e.id,k=e.name,A=e.fieldIcon,T=e.validation,N=void 0===T?h0:T,R=e.onFocus,I=e.onBlur,M=e.onValidationChange,_=(0,m.useId)(),L=null!=C?C:"egen-field-".concat(_),F="".concat(L,"-help"),B=h3((0,m.useState)(b),2),V=B[0],U=B[1],W=h3((0,m.useState)(!1),2),$=W[0],z=W[1],H=(0,m.useRef)(null),G=(r=(t=hQ((0,m.useState)(null),2))[0],n=t[1],a=(i=hQ((0,m.useState)(!1),2))[0],o=i[1],s=function(e){N.triggerVibration&&(o(!0),"u">typeof navigator&&navigator.vibrate&&navigator.vibrate(hJ[e]),setTimeout(function(){return o(!1)},600))},(0,m.useEffect)(function(){if(!N.realTimeValidation||!V||0===N.rules.length){n(null),null==M||M(null);return}var e=N.rules.find(function(e){return!e.regex.test(V)});if(e){(null==r?void 0:r.type)!==e.type&&s(e.type),n(e),null==M||M(e);return}var t=N.rules.find(function(e){return"success"===e.type&&e.regex.test(V)});if(t){(null==r?void 0:r.type)!=="success"&&s("success"),n(t),null==M||M(t);return}n(null),null==M||M(null)},[V,N.rules,N.realTimeValidation,null==r?void 0:r.type,M]),{currentValidation:r,isAnimating:a}),K=G.currentValidation,Y=G.isAnimating;(0,m.useEffect)(function(){b!==V&&U(b)},[b]);var Z=(null==A?void 0:A.position)==="left",q=(null==A?void 0:A.position)==="label",X=!!N.showIcons&&!!K,Q=v()(lA.field,lA["field--".concat(c)],lA["field--".concat(void 0===d?"md":d)],(h2(l={},lA["field--disabled"],E),h2(l,lA["field--animating"],Y),h2(l,lA["field--has-left-icon"],Z),h2(l,lA["field--has-validation-icon"],X),l),K&&lA["field--".concat(K.type)],x);return(0,h.jsxs)("div",{className:Q,children:[(0,h.jsxs)("div",{className:lA.fieldControl,ref:H,children:[Z&&(0,h.jsx)("div",{className:lA.leftIcon,children:(0,h.jsx)(lT,{fieldIcon:A})}),(0,h.jsx)("input",{type:void 0===y?"text":y,id:L,name:k,value:V,onChange:function(e){var t=e.target.value;U(t),null==w||w(t)},onFocus:function(e){z(!0),null==R||R(e)},onBlur:function(e){z(!1),null==I||I(e)},disabled:E,required:O,autoComplete:j,autoFocus:P,className:lA.input,placeholder:void 0===p?" ":p,"aria-describedby":N.showMessages&&K?F:void 0,"aria-invalid":(null==K?void 0:K.type)==="error"||void 0}),f&&"kinetic"===c&&(0,h.jsx)("label",{htmlFor:L,className:lA.kineticLabelWrapper,children:(0,h.jsx)(hq,{label:f,active:$||V.length>0,required:O})}),f&&"kinetic"!==c&&(0,h.jsxs)("label",{htmlFor:L,className:lA.label,children:[q&&(0,h.jsx)(lT,{fieldIcon:A,className:lA.labelIconGlyph}),(0,h.jsxs)("span",{className:lA.labelText,children:[f,O&&(0,h.jsxs)("span",{className:lA.requiredMark,"aria-hidden":"true",children:[" ","*"]})]})]}),(0,h.jsx)(lI,{currentValidation:K,showIcons:!!N.showIcons})]}),N.showMessages&&K&&(0,h.jsxs)("p",{id:F,className:lA.message,role:"error"===K.type?"alert":void 0,children:[(0,h.jsxs)("span",{className:lA.messageLead,children:["success"===K.type&&"Parfait !","error"===K.type&&"Erreur —","warning"===K.type&&"Attention —"]})," ",K.message]})]})};function h5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var h6=y().forwardRef(function(e,t){var r,n,i,a=(0,b.useLeftNavStore)(),o=a.slotName,s=a.basePath,l=a.componentContext,u=a.state,c=null!=(i=window.location)?i:{pathname:""},d=(0,b.useAssignedExtensions)(null!=o?o:"");return e.isChildOfHeader&&o&&d.length>0?(0,h.jsxs)(_.SideNav,(r=h5({"aria-label":(0,L.V)("leftNavigation","Left navigation"),className:"jzTJKtCPCooU36+y+NwbPQ==",expanded:!0,isFixedNav:!0,ref:t},e),n=n={children:[(0,h.jsx)(b.ExtensionSlot,{name:"global-nav-menu-slot"}),o?(0,h.jsx)(b.RenderIfValueIsTruthy,{value:l,fallback:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)}),children:(0,h.jsx)(b.ComponentContext.Provider,{value:l,children:(0,h.jsx)(b.ExtensionSlot,{name:o,state:h5({basePath:s,currentPath:c},u)})})}):null]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r)):null}),h8=r(6269),h9=r(3709),h7=r(4896);function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mt(e,t){if(e){if("string"==typeof e)return me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(e,t)}}var mr=function(e){var t,r,n,i,a,o,s=e.selectedLocationUuid,l=e.defaultLocationUuid,u=e.locationTag,c=e.locationsPerRequest,d=void 0===c?50:c,f=e.onChange,p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mt(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.")}(),y=p[0],g=p[1],v=(0,m.useId)(),w=(r=l?"/ws/fhir2/R4/Location?_id=".concat(l):null,i=(n=(0,h8.A)(r,h7.egenFetch,{shouldRetryOnError:function(e){var t;return null!=e&&null!=(t=e.response)&&!!t.status&&e.response.status>=500}})).data,a=n.error,o=n.isLoading,(0,m.useMemo)(function(){var e;return{location:(null==i||null==(e=i.data)?void 0:e.entry)?i.data.entry[0]:null,error:r?a:null,isLoading:!!r&&o}},[i,o,a,r])).location,x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(0,b.useDebounce)(r),i=(0,h9.Ay)(function(r,i){if(i){var a,o,s=null==(o=i.data)||null==(a=o.link)?void 0:a.find(function(e){return"next"===e.relation});if(!s)return null;var l=new URL(s.url);return l.origin===window.location.origin?s.url:new URL("".concat(l.pathname).concat(l.search?"?".concat(l.search):""),window.location.origin).toString()}var u="".concat(h7.fhirBaseUrl,"/Location?"),c=new URLSearchParams;return c.append("_summary","data"),t&&c.append("_count",""+t),r&&c.append("_getpagesoffset",""+r*t),e&&c.append("_tag",e),"string"==typeof n&&""!==n&&c.append("name:contains",n),u+c.toString()},h7.egenFetch),a=i.data,o=i.isLoading,s=i.isValidating,l=i.setSize,u=i.error;return(0,m.useMemo)(function(){var e,t,r,n,i;return{locations:(null==a?void 0:a.length)?null==a?void 0:a.flatMap(function(e){var t,r;return null!=(t=null==e||null==(r=e.data)?void 0:r.entry)?t:[]}):[],isLoading:o,totalResults:null==a||null==(t=a[0])||null==(e=t.data)?void 0:e.total,hasMore:null!=a&&!!a.length&&(null==a||null==(i=a[a.length-1])||null==(n=i.data)||null==(r=n.link)?void 0:r.some(function(e){return"next"===e.relation})),loadingNewData:s,error:u||null,setPage:l}},[o,a,s,l,u])}(u,d,y),S=x.locations,E=x.isLoading,D=x.hasMore,O=x.loadingNewData,j=x.error,P=x.setPage,C=(0,m.useMemo)(function(){if(w&&!y&&l){var e;return[w].concat(function(e){if(Array.isArray(e))return me(e)}(e=S.filter(function(e){return e.resource.id!==l}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mt(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.")}())}return null!=S?S:[]},[w,S,l,y]),k=(0,m.useCallback)(function(e){f(),g(e.trim())},[f]),A=(0,m.useCallback)(function(){!O&&D&&P(function(e){return e+1})},[O,D,P]),T=(0,b.useOnVisible)(A),N=D?Math.max(0,Math.floor(C.length-d/2)):-1;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_.Search,{"aria-describedby":j?"".concat(v,"-error"):void 0,labelText:(0,L.V)("searchForLocation"),id:v,placeholder:(0,L.V)("searchForLocation"),onChange:function(e){return k(e.target.value)},size:"lg"}),j&&(0,h.jsx)("div",{className:"vWBFDqCDM8BcQhePvfa35g==",id:"".concat(v,"-error"),children:(0,h.jsx)(_.InlineNotification,{kind:"error",subtitle:(0,L.V)("errorLoadingLoginLocations","Unable to load login locations. Please try again or contact support if the problem persists."),title:(0,L.V)("error","Error")})}),(0,h.jsx)("div",{className:"Gbet+W1fVEk45aZli6JbrA==",children:E?(0,h.jsx)("div",{className:"QO-zjOxMSWAzXY-PMrSiwQ==",children:Array.from({length:5}).map(function(e,t){return(0,h.jsx)(_.RadioButtonSkeleton,{className:"otoCykP+JQHrsIsgKUOd7A==",role:"progressbar"},t)})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"_6PasfpnQ738RjzgXBzAQpw==",children:C.length>0?(0,h.jsx)(_.RadioButtonGroup,{name:"loginLocations",onChange:function(e){f(null==e?void 0:e.toString())},orientation:"vertical",valueSelected:s,children:C.map(function(e,t){return(0,h.jsx)(_.RadioButton,{className:"rTDPjXuaGJbz9KhOf57M3g==",id:e.resource.id,labelText:(0,h.jsx)("span",{ref:t===N?T:null,children:e.resource.name}),name:e.resource.name,value:e.resource.id},e.resource.id)})}):(0,h.jsx)("div",{className:"w4-CatRLHH3loLqlunOalg==",children:(0,h.jsx)("p",{className:"Of2MJqhAMKF7nrwI5bKckw==",children:(0,L.V)("noResultsToDisplay")})})}),O&&(0,h.jsx)("div",{className:"NAwSBETYamP9uMuJE63U-w==",children:(0,h.jsx)(_.InlineLoading,{description:(0,L.V)("loading")})})]})})]})},mn=r(9250),mi=r(1442),ma=r(7477),mo=r(8507);function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ml(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function mu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function mc(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function md(e,t){if(e){if("string"==typeof e)return ms(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ms(e,t)}}var mf=(0,mi.createGlobalStore)("modalState",{modalContainer:null,modalStack:[]}),mp=0,mh=window.getComputedStyle(document.body).overflow;function mm(e){var t=e.modalStack,r=e.modalContainer;r&&(t.length?(r.style.visibility||(addEventListener("keydown",mg),document.body.style.overflow="hidden",r.style.visibility="unset"),t.forEach(function(e,n){switch(e.state){case"NEW":var i,a,o,s,l,u,c,d=(i=({size:null!=(u=null==(c=e.props)?void 0:c.size)?u:"md"}).size,(a=document.createElement("div")).className="cds--modal-container cds--modal-container--".concat(i),a.setAttribute("role","dialog"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-modal","true"),a);e.container=d,(function(e,t){var r;return(r=function(e,t){var r,n,i,a,o,s=arguments;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(r=s.length>2&&void 0!==s[2]?s[2]:{},n=(0,ma.Fg)(t),i=null,!e)return[3,2];if(!n)throw Error("No modal named '".concat(t,"' has been registered."));return[4,(0,n.load)()];case 1:return a=l.sent(),o=mp++,i=(0,mn.mountRootParcel)(mc(mu({},a),{name:"".concat(t,"-").concat(o)}),mc(mu({},r),{domElement:e})),[3,3];case 2:(0,mo.N)("Failed to launch modal. Please notify your administrator. Modal name: ".concat(t)),l.label=3;case 3:return[2,i]}})},function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(e){ml(a,n,i,o,s,"next",e)}function s(e){ml(a,n,i,o,s,"throw",e)}o(void 0)})}).apply(this,arguments)})(d,e.modalName,e.props).then(function(t){e.parcel=t,e.state="MOUNTED",r.prepend(d),d.style.visibility="unset"});break;case"MOUNTED":e.container&&(e.container.style.visibility=n?"hidden":"unset");break;case"TO_BE_DELETED":e.onClose(),null==(s=e.parcel)||null==(o=s.unmount)||o.call(s),null==(l=e.container)||l.remove(),setTimeout(function(){mf.setState({modalContainer:r,modalStack:t.filter(function(t){return t!==e})})},0)}})):(r.style.removeProperty("visibility"),document.body.style.overflow=mh,removeEventListener("keydown",mg)))}function my(e){var t=mf.getState(),r=t.modalStack.map(function(t){return t===e?mc(mu({},t),{state:"TO_BE_DELETED"}):t});mf.setState(mc(mu({},t),{modalStack:r}))}function mg(e){var t,r;"Escape"===e.key&&(r=(function(e){if(Array.isArray(e))return e}(t=mf.getState().modalStack)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||md(t,1)||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])&&my(r)}function mv(e){mf.subscribe(mm),mf.setState(mc(mu({},mf.getState()),{modalContainer:e}))}function mb(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=function(){var e=mf.getState().modalStack.find(function(e){return e.onClose===a});e&&my(e)};return(0,ma.Fg)(e)?(n=[{state:"NEW",onClose:a,modalName:e,props:mu({close:o},i)}].concat(function(e){if(Array.isArray(e))return ms(e)}(r=(t=mf.getState()).modalStack)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||md(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),mf.setState(mc(mu({},t),{modalStack:n}))):(0,mo.N)('Failed to launch modal. Please notify your administrator. Modal name: "'.concat(e,'"')),o}var mw=r(919),mx=function(e){var t=e.notification,r=t.description,n=t.action,i=t.kind,a=t.critical,o=t.title,s=t.onAction;return(0,h.jsx)(_.ActionableNotification,{actionButtonLabel:n,kind:i||"info",lowContrast:a,subtitle:r,title:o||"",inline:!0,onActionButtonClick:s})};function mS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mE(e,t){if(e){if("string"==typeof e)return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}let mD=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mE(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.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mS(e)})(r=t.filter(function(t){return t.description!==e.description||t.action!==e.action||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mE(r)||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])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mx,{notification:e},e.id)})})};function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var mj=function(e){var t,r=e.notification,n=r.actionButtonLabel,i=r.onActionButtonClick,a=void 0===i?function(){}:i,o=r.subtitle,s=r.kind,l=r.title,u=r.critical,c=r.progressActionLabel,d=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","onActionButtonClick","subtitle","kind","title","critical","progressActionLabel","id"])),f=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(n))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return mO(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 mO(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],y=f[1];return(0,h.jsx)(_.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({kind:s||"info",actionButtonLabel:p,ariaLabel:(0,L.V)("closesActionableNotification","Closes actionable notification"),onActionButtonClick:function(){a(),c&&y(c)},statusIconDescription:(0,L.V)("actionableNotification","Actionable notification"),subtitle:o,title:l,lowContrast:u,inline:!0},d))};function mP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mC(e,t){if(e){if("string"==typeof e)return mP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mP(e,t)}}let mk=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||mC(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.")}(),i=n[0],a=n[1];return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return mP(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||mC(r)||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])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(mj,{notification:e},e.id)})})};var mA=r(5217),mT=r(72),mN=r(2797),mR=r(8206),mI=r(3497),mM=r(8134),m_=r(4666),mL=r(7931),mF=Object.prototype.hasOwnProperty;let mB=function(e){if(null==e)return!0;if((0,mI.A)(e)&&((0,mR.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,mM.A)(e)||(0,mL.A)(e)||(0,mN.A)(e)))return!e.length;var t=(0,mT.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,m_.A)(e))return!(0,mA.A)(e).length;for(var r in e)if(mF.call(e,r))return!1;return!0};var mV=r(8279);function mU(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function mW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m$(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function mz(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mH=new mw.Subject,mG=0,mK=new mw.Subject,mY=0;function mZ(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mD,{subject:mH}))}function mq(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&(mU(t,Error)||!mB(t)))?(mU(e.description,Error)&&(e.description=e.description.toLocaleString()),setTimeout(function(){mH.next(m$(mW({},e),{id:mG++}))},0)):console.error("showNotification must be called with an object having a 'description' property that is a non-empty string or object")}function mX(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(mk,{subject:mK}))}function mQ(e){var t;e&&("string"==typeof(t=e.actionButtonLabel)?t.trim().length>0:(void 0===t?"undefined":mz(t))==="object"&&!mB(t))?setTimeout(function(){mK.next(m$(mW({},e),{id:mY++}))},0):console.error("showActionableNotification must be called with an actionButtonLabel that is a non-empty string")}var mJ=["NORMAL","HIGH","CRITICALLY_HIGH","OFF_SCALE_HIGH","LOW","CRITICALLY_LOW","OFF_SCALE_LOW"],m0=["critically_low","critically_high","high","low","normal","off_scale_low","off_scale_high"];let m1={container:"ScB70LqU+PKTglPLpquSYA==",card:"OaumoczyyhVxFGgK1Ymncw==","abnormal-value":"nIEaa1DoEVNwq6VRhytuqA==","critical-value":"piSS0orYMnJr8srfIKo2zw==",cell:"WVzs6v9nyUbN4BP3kiRvOg==","critically-high":"nWzimGykDKiWWpAA510ywA==","critically-low":"wz1U5oBN8Au6+HaU5WTJJA==",high:"_5XGrk2jf9LNICUS0mhpcuQ==",low:"bZP-khvj3DMGEuy6EwE+rA==","label-container":"m8YotuX9YyGBVTfwscLQxw==","value-container":"Qfl6BA8qVqs0ch1lkoGorA==",label:"GeE-oU8VbIwmewu0CLedqg==",value:"_1l76wCdnl85Ih71jhnW-4w==",units:"W7zPgHBl62LXyz9iCBMD1Q==","pad-right":"QTCXOa6vj1UmNa4ukP+r9g==","off-scale-low":"vCAWY7zmOXKiCw0oMh2oIQ==","off-scale-high":"_7x8iew49LjFwIFhlYEBJgQ==",arrow:"_53IVZxbBIwcFSLi67OJAqg=="};function m2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m3=function(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,y,g,b,w,x,S=e.value,E=e.unit,D=e.label,O=e.interpretation,j=e.referenceRange,P=e.conceptUuid,C=e.variant,k=e.entityUuid,A=(0,m.useId)(),T=(c=null,(t=j||O?void 0:P)&&(c=k?"".concat(h7.restBaseUrl,"/conceptreferencerange/?entity=").concat(k,"&concept=").concat(t,"&v=full"):"".concat(h7.restBaseUrl,"/conceptreferencerange/?concept=").concat(t,"&v=full")),f=(d=(0,h8.A)(c,h7.egenFetch)).data,p=d.error,y=d.isLoading,{referenceRange:(g=null==f||null==(u=f.data)||null==(l=u.results)?void 0:l[0])?{hiNormal:null!=(r=g.hiNormal)?r:null,hiAbsolute:null!=(n=g.hiAbsolute)?n:null,hiCritical:null!=(i=g.hiCritical)?i:null,lowNormal:null!=(a=g.lowNormal)?a:null,lowAbsolute:null!=(o=g.lowAbsolute)?o:null,lowCritical:null!=(s=g.lowCritical)?s:null}:void 0,error:p,isLoading:y}),N=T.referenceRange,R=T.isLoading,I=null!=j?j:N,M=(0,m.useMemo)(function(){if(O)return O?"--"===O?"normal":mJ.includes(O)?O.toLowerCase():m0.includes(O)?O:"normal":void 0;if(I&&!R){if(!I||null==S||""===S)return"normal";var e="string"==typeof S?Number.parseFloat(S):S;return Number.isNaN(e)?"normal":null!==I.hiAbsolute&&void 0!==I.hiAbsolute&&e>I.hiAbsolute?"off_scale_high":null!==I.hiCritical&&void 0!==I.hiCritical&&e>=I.hiCritical?"critically_high":null!==I.hiNormal&&void 0!==I.hiNormal&&e>I.hiNormal?"high":null!==I.lowAbsolute&&void 0!==I.lowAbsolute&&e<I.lowAbsolute?"off_scale_low":null!==I.lowCritical&&void 0!==I.lowCritical&&e<=I.lowCritical?"critically_low":null!==I.lowNormal&&void 0!==I.lowNormal&&e<I.lowNormal?"low":"normal"}return"normal"},[O,I,S,R]),_=null!=M?M:"normal",F="critically_low"===_||"critically_high"===_||"off_scale_low"===_||"off_scale_high"===_,B="normal"!==_,V=D?"egen-numeric-dp-label-".concat(D.replaceAll(/\s+/g,"-").toLowerCase(),"-").concat(A):void 0,U="egen-numeric-dp-value-".concat(A),W="egen-numeric-dp-unit-".concat(A),$=null!=S&&""!==S,z=$?S:(0,L.V)("notAvailable","Not available"),H=v()((m2(b={},m1["critically-low"],"critically_low"===_||"off_scale_low"===_),m2(b,m1["critically-high"],"critically_high"===_||"off_scale_high"===_),m2(b,m1.low,"low"===_),m2(b,m1.high,"high"===_),m2(b,m1["off-scale-low"],"off_scale_low"===_),m2(b,m1["off-scale-high"],"off_scale_high"===_),b)),G=v()((m2(w={},m1.container,!0),m2(w,m1.card,!0),m2(w,m1["critical-value"],F),m2(w,m1["abnormal-value"],B&&!F),w)),K=v()((m2(x={},m1.cell,!0),m2(x,H,!0),x));return"cell"===(void 0===C?"card":C)?(0,h.jsxs)("div",{className:K,children:[z,$&&E?" ".concat(E):""]}):(0,h.jsxs)("section",{className:G,"data-testid":"numeric-datapoint-card",children:[D&&(0,h.jsxs)("div",{className:m1["label-container"],children:[(0,h.jsx)("span",{id:V,className:m1.label,children:D}),B&&(0,h.jsx)("span",{className:m1[_.replace("_","-")],title:(0,L.V)("abnormalValue","Abnormal value")})]}),(0,h.jsxs)("div",{className:m1["value-container"],children:[(0,h.jsx)("span",{id:U,"aria-labelledby":V&&W?"".concat(V," ").concat(W):V||W||void 0,className:m1.value,children:z}),$&&E&&(0,h.jsx)("span",{id:W,className:m1.units,children:E})]})]})};function m4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m5(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function m6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m8(e,t,r){return t&&m6(e.prototype,t),r&&m6(e,r),e}function m9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 m7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye=function(){function e(t){m5(this,e),m7(this,"canvas",void 0),m7(this,"gl",void 0),m7(this,"meshes",[]),m7(this,"commonUniforms",void 0),m7(this,"width",void 0),m7(this,"height",void 0),m7(this,"Material",void 0),m7(this,"Uniform",void 0),m7(this,"PlaneGeometry",void 0),m7(this,"Mesh",void 0),m7(this,"Attribute",void 0),this.canvas=t;var r=this.canvas.getContext("webgl",{antialias:!0});if(!r)throw Error("WebGL not supported");this.gl=r;var n=this.gl,i=this;this.Uniform=function(){function e(t){m5(this,e),m7(this,"type","float"),m7(this,"value",void 0),m7(this,"typeFn",void 0),m7(this,"excludeFrom",void 0),m7(this,"transpose",void 0),Object.assign(this,t),this.typeFn=({float:"1f",int:"1i",vec2:"2fv",vec3:"3fv",vec4:"4fv",mat4:"Matrix4fv"})[this.type]||"1f"}return m8(e,[{key:"update",value:function(e){if(void 0!==this.value&&null!==e){var t=0===this.typeFn.indexOf("Matrix"),r="uniform".concat(this.typeFn);t?n[r](e,this.transpose||!1,this.value):n[r](e,this.value)}}},{key:"getDeclaration",value:function(e,t,r){if(this.excludeFrom===t)return"";if("array"===this.type)return this.value[0].getDeclaration(e,t,this.value.length)+"\nconst int ".concat(e,"_length = ").concat(this.value.length,";");if("struct"===this.type){var n=e.replace("u_","");n=n.charAt(0).toUpperCase()+n.slice(1);var i=Object.entries(this.value).map(function(e){var r=m9(e,2),n=r[0];return r[1].getDeclaration(n,t).replace(/^uniform/,"")}).join("");return"uniform struct ".concat(n," \n{\n").concat(i,"\n} ").concat(e).concat(r?"[".concat(r,"]"):"",";")}return"uniform ".concat(this.type," ").concat(e).concat(r?"[".concat(r,"]"):"",";")}}]),e}(),this.Attribute=function(){function e(t){m5(this,e),m7(this,"type",n.FLOAT),m7(this,"normalized",!1),m7(this,"buffer",void 0),m7(this,"target",void 0),m7(this,"size",void 0),m7(this,"values",void 0),this.buffer=n.createBuffer(),Object.assign(this,t)}return m8(e,[{key:"update",value:function(){this.values&&(n.bindBuffer(this.target,this.buffer),n.bufferData(this.target,this.values,n.STATIC_DRAW))}},{key:"attach",value:function(e,t){var r=n.getAttribLocation(t,e);return this.target===n.ARRAY_BUFFER&&(n.bindBuffer(this.target,this.buffer),n.enableVertexAttribArray(r),n.vertexAttribPointer(r,this.size,this.type,this.normalized,0,0)),r}},{key:"use",value:function(e){n.bindBuffer(this.target,this.buffer),this.target===n.ARRAY_BUFFER&&(n.enableVertexAttribArray(e),n.vertexAttribPointer(e,this.size,this.type,this.normalized,0,0))}}]),e}(),this.Material=function(){function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};m5(this,e);var o=function(e,t){var r=n.createShader(e);if(n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw console.error(n.getShaderInfoLog(r)),Error("Shader compilation error");return r},s=function(e,t){return Object.entries(e).map(function(e){var r=m9(e,2),n=r[0];return r[1].getDeclaration(n,t)}).join("\n")};m7(this,"uniforms",void 0),m7(this,"uniformInstances",[]),m7(this,"program",void 0),this.uniforms=a;var l="precision highp float;",u="\n ".concat(l,"\n attribute vec4 position;\n attribute vec2 uv;\n attribute vec2 uvNorm;\n ").concat(s(i.commonUniforms,"vertex"),"\n ").concat(s(a,"vertex"),"\n ").concat(t,"\n "),c="\n ".concat(l,"\n ").concat(s(i.commonUniforms,"fragment"),"\n ").concat(s(a,"fragment"),"\n ").concat(r,"\n ");if(this.program=n.createProgram(),n.attachShader(this.program,o(n.VERTEX_SHADER,u)),n.attachShader(this.program,o(n.FRAGMENT_SHADER,c)),n.linkProgram(this.program),!n.getProgramParameter(this.program,n.LINK_STATUS))throw console.error(n.getProgramInfoLog(this.program)),Error("Program linking error");n.useProgram(this.program),this.attachUniforms(void 0,i.commonUniforms),this.attachUniforms(void 0,this.uniforms)}return m8(e,[{key:"attachUniforms",value:function(e,t){var r=this;void 0===e?Object.entries(t).forEach(function(e){var t=m9(e,2),n=t[0],i=t[1];return r.attachUniforms(n,i)}):"array"===t.type?t.value.forEach(function(t,n){return r.attachUniforms("".concat(e,"[").concat(n,"]"),t)}):"struct"===t.type?Object.entries(t.value).forEach(function(t){var n=m9(t,2),i=n[0],a=n[1];return r.attachUniforms("".concat(e,".").concat(i),a)}):this.uniformInstances.push({uniform:t,location:n.getUniformLocation(this.program,e)})}}]),e}(),this.PlaneGeometry=function(){function e(){m5(this,e),m7(this,"width",1),m7(this,"height",1),m7(this,"attributes",void 0),m7(this,"vertexCount",0),m7(this,"xSegCount",0),m7(this,"ySegCount",0),this.attributes={position:new i.Attribute({target:n.ARRAY_BUFFER,size:3}),uv:new i.Attribute({target:n.ARRAY_BUFFER,size:2}),uvNorm:new i.Attribute({target:n.ARRAY_BUFFER,size:2}),index:new i.Attribute({target:n.ELEMENT_ARRAY_BUFFER,size:3,type:n.UNSIGNED_SHORT})}}return m8(e,[{key:"setTopology",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.xSegCount=e,this.ySegCount=t,this.vertexCount=(this.xSegCount+1)*(this.ySegCount+1);var r=this.xSegCount*this.ySegCount*2;this.attributes.uv.values=new Float32Array(2*this.vertexCount),this.attributes.uvNorm.values=new Float32Array(2*this.vertexCount),this.attributes.index.values=new Uint16Array(3*r);for(var n=0;n<=this.ySegCount;n++)for(var i=0;i<=this.xSegCount;i++){var a=n*(this.xSegCount+1)+i;if(this.attributes.uv.values[2*a]=i/this.xSegCount,this.attributes.uv.values[2*a+1]=1-n/this.ySegCount,this.attributes.uvNorm.values[2*a]=i/this.xSegCount*2-1,this.attributes.uvNorm.values[2*a+1]=1-n/this.ySegCount*2,i<this.xSegCount&&n<this.ySegCount){var o=n*this.xSegCount+i;this.attributes.index.values[6*o]=a,this.attributes.index.values[6*o+1]=a+1+this.xSegCount,this.attributes.index.values[6*o+2]=a+1,this.attributes.index.values[6*o+3]=a+1,this.attributes.index.values[6*o+4]=a+1+this.xSegCount,this.attributes.index.values[6*o+5]=a+2+this.xSegCount}}this.attributes.uv.update(),this.attributes.uvNorm.update(),this.attributes.index.update()}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.width=e,this.height=t,this.attributes.position.values=new Float32Array(3*this.vertexCount);for(var r=-(e/2),n=-(t/2),i=e/this.xSegCount,a=t/this.ySegCount,o=0;o<=this.ySegCount;o++)for(var s=n+o*a,l=0;l<=this.xSegCount;l++){var u=r+l*i,c=o*(this.xSegCount+1)+l;this.attributes.position.values[3*c]=u,this.attributes.position.values[3*c+1]=-s,this.attributes.position.values[3*c+2]=0}this.attributes.position.update()}}]),e}(),this.Mesh=function(){function e(t,r){var n=this;m5(this,e),m7(this,"geometry",void 0),m7(this,"material",void 0),m7(this,"attributeInstances",[]),this.geometry=t,this.material=r,Object.entries(this.geometry.attributes).forEach(function(e){var t=m9(e,2),r=t[0],i=t[1];n.attributeInstances.push({attribute:i,location:i.attach(r,n.material.program)})}),i.meshes.push(this)}return m8(e,[{key:"draw",value:function(){n.useProgram(this.material.program),this.material.uniformInstances.forEach(function(e){var t=e.uniform,r=e.location;return t.update(r)}),this.attributeInstances.forEach(function(e){var t=e.attribute,r=e.location;return t.use(r)}),n.drawElements(n.TRIANGLES,this.geometry.attributes.index.values.length,n.UNSIGNED_SHORT,0)}}]),e}();var a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.commonUniforms={projectionMatrix:new this.Uniform({type:"mat4",value:a}),modelViewMatrix:new this.Uniform({type:"mat4",value:a}),resolution:new this.Uniform({type:"vec2",value:[1,1]}),aspectRatio:new this.Uniform({type:"float",value:1})}}return m8(e,[{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:640,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:480;this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.gl.viewport(0,0,e,t),this.commonUniforms.resolution.value=[e,t],this.commonUniforms.aspectRatio.value=e/t}},{key:"setOrthographicCamera",value:function(){this.commonUniforms.projectionMatrix.value=[2/this.width,0,0,0,0,2/this.height,0,0,0,0,-.001,0,0,0,0,1]}},{key:"render",value:function(){this.gl.clearColor(0,0,0,0),this.gl.clearDepth(1),this.meshes.forEach(function(e){return e.draw()})}}]),e}(),yt=function(){function e(t,r){var n=this;m5(this,e),m7(this,"canvas",void 0),m7(this,"colors",void 0),m7(this,"minigl",void 0),m7(this,"mesh",void 0),m7(this,"time",0),m7(this,"last",0),m7(this,"animationId",void 0),m7(this,"isPlaying",!1),m7(this,"animate",function(e){if(n.isPlaying){n.last||(n.last=e);var t=e-n.last;n.last=e,n.time+=Math.min(t,1e3/15),n.mesh.material.uniforms.u_time.value=n.time,n.minigl.render(),n.animationId=requestAnimationFrame(n.animate)}}),m7(this,"handleResize",function(){n.resize()}),this.canvas=t,this.colors=r,this.minigl=new ye(t),this.init()}return m8(e,[{key:"init",value:function(){for(var e=this.colors.map(function(e){var t;return[((t=parseInt(e.replace("#","0x"),16))>>16&255)/255,(t>>8&255)/255,(255&t)/255]}),t={u_time:new this.minigl.Uniform({value:0}),u_shadow_power:new this.minigl.Uniform({value:5}),u_darken_top:new this.minigl.Uniform({value:0}),u_active_colors:new this.minigl.Uniform({value:[1,1,1,1],type:"vec4"}),u_global:new this.minigl.Uniform({value:{noiseFreq:new this.minigl.Uniform({value:[14e-5,29e-5],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:5e-6})},type:"struct"}),u_vertDeform:new this.minigl.Uniform({value:{incline:new this.minigl.Uniform({value:0}),offsetTop:new this.minigl.Uniform({value:-.5}),offsetBottom:new this.minigl.Uniform({value:-.5}),noiseFreq:new this.minigl.Uniform({value:[3,4],type:"vec2"}),noiseAmp:new this.minigl.Uniform({value:320}),noiseSpeed:new this.minigl.Uniform({value:10}),noiseFlow:new this.minigl.Uniform({value:3}),noiseSeed:new this.minigl.Uniform({value:5})},type:"struct",excludeFrom:"fragment"}),u_baseColor:new this.minigl.Uniform({value:e[0],type:"vec3",excludeFrom:"fragment"}),u_waveLayers:new this.minigl.Uniform({value:[],excludeFrom:"fragment",type:"array"})},r=1;r<e.length;r++)t.u_waveLayers.value.push(new this.minigl.Uniform({value:{color:new this.minigl.Uniform({value:e[r],type:"vec3"}),noiseFreq:new this.minigl.Uniform({value:[2+r/e.length,3+r/e.length],type:"vec2"}),noiseSpeed:new this.minigl.Uniform({value:11+.3*r}),noiseFlow:new this.minigl.Uniform({value:6.5+.3*r}),noiseSeed:new this.minigl.Uniform({value:5+10*r}),noiseFloor:new this.minigl.Uniform({value:.1}),noiseCeil:new this.minigl.Uniform({value:.63+.07*r})},type:"struct"}));var n=new this.minigl.Material("\nvec3 mod289(vec3 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 mod289(vec4 x) { return x - floor(x * (1.0 / 289.0)) * 289.0; }\nvec4 permute(vec4 x) { return mod289(((x*34.0)+1.0)*x); }\nvec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; }\n\nfloat snoise(vec3 v) {\n const vec2 C = vec2(1.0/6.0, 1.0/3.0);\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\n vec3 i = floor(v + dot(v, C.yyy));\n vec3 x0 = v - i + dot(i, C.xxx);\n vec3 g = step(x0.yzx, x0.xyz);\n vec3 l = 1.0 - g;\n vec3 i1 = min(g.xyz, l.zxy);\n vec3 i2 = max(g.xyz, l.zxy);\n vec3 x1 = x0 - i1 + C.xxx;\n vec3 x2 = x0 - i2 + C.yyy;\n vec3 x3 = x0 - D.yyy;\n i = mod289(i);\n vec4 p = permute(permute(permute(i.z + vec4(0.0, i1.z, i2.z, 1.0)) + i.y + vec4(0.0, i1.y, i2.y, 1.0)) + i.x + vec4(0.0, i1.x, i2.x, 1.0));\n float n_ = 0.142857142857;\n vec3 ns = n_ * D.wyz - D.xzx;\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z);\n vec4 x_ = floor(j * ns.z);\n vec4 y_ = floor(j - 7.0 * x_);\n vec4 x = x_ *ns.x + ns.yyyy;\n vec4 y = y_ *ns.x + ns.yyyy;\n vec4 h = 1.0 - abs(x) - abs(y);\n vec4 b0 = vec4(x.xy, y.xy);\n vec4 b1 = vec4(x.zw, y.zw);\n vec4 s0 = floor(b0)*2.0 + 1.0;\n vec4 s1 = floor(b1)*2.0 + 1.0;\n vec4 sh = -step(h, vec4(0.0));\n vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy;\n vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww;\n vec3 p0 = vec3(a0.xy,h.x);\n vec3 p1 = vec3(a0.zw,h.y);\n vec3 p2 = vec3(a1.xy,h.z);\n vec3 p3 = vec3(a1.zw,h.w);\n vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w;\n vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);\n m = m * m;\n return 42.0 * dot(m*m, vec4(dot(p0,x0), dot(p1,x1), dot(p2,x2), dot(p3,x3)));\n}\n\nvec3 blendNormal(vec3 base, vec3 blend) { return blend; }\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) { return (blend * opacity + base * (1.0 - opacity)); }\n\nvarying vec3 v_color;\n\nvoid main() {\n float time = u_time * u_global.noiseSpeed;\n vec2 noiseCoord = resolution * uvNorm * u_global.noiseFreq;\n float tilt = resolution.y / 2.0 * uvNorm.y;\n float incline = resolution.x * uvNorm.x / 2.0 * u_vertDeform.incline;\n float offset = resolution.x / 2.0 * u_vertDeform.incline * mix(u_vertDeform.offsetBottom, u_vertDeform.offsetTop, uv.y);\n \n float noise = snoise(vec3(\n noiseCoord.x * u_vertDeform.noiseFreq.x + time * u_vertDeform.noiseFlow,\n noiseCoord.y * u_vertDeform.noiseFreq.y,\n time * u_vertDeform.noiseSpeed + u_vertDeform.noiseSeed\n )) * u_vertDeform.noiseAmp;\n \n noise *= 1.0 - pow(abs(uvNorm.y), 2.0);\n noise = max(0.0, noise);\n \n vec3 pos = vec3(position.x, position.y + tilt + incline + noise - offset, position.z);\n \n v_color = u_baseColor;\n \n for (int i = 0; i < u_waveLayers_length; i++) {\n if (u_active_colors[i + 1] == 1.) {\n WaveLayers layer = u_waveLayers[i];\n float layerNoise = smoothstep(\n layer.noiseFloor,\n layer.noiseCeil,\n snoise(vec3(\n noiseCoord.x * layer.noiseFreq.x + time * layer.noiseFlow,\n noiseCoord.y * layer.noiseFreq.y,\n time * layer.noiseSpeed + layer.noiseSeed\n )) / 2.0 + 0.5\n );\n v_color = blendNormal(v_color, layer.color, pow(layerNoise, 4.));\n }\n }\n \n gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n}","\nvarying vec3 v_color;\n\nvoid main() {\n vec3 color = v_color;\n if (u_darken_top == 1.0) {\n vec2 st = gl_FragCoord.xy/resolution.xy;\n color.g -= pow(st.y + sin(-12.0) * st.x, u_shadow_power) * 0.4;\n }\n gl_FragColor = vec4(color, 1.0);\n}",t),i=new this.minigl.PlaneGeometry;this.mesh=new this.minigl.Mesh(i,n),this.resize(),window.addEventListener("resize",this.handleResize)}},{key:"resize",value:function(){var e=window.innerWidth,t=window.innerHeight;this.minigl.setSize(e,t),this.minigl.setOrthographicCamera();var r=Math.ceil(.02*e),n=Math.ceil(.05*t);this.mesh.geometry.setTopology(r,n),this.mesh.geometry.setSize(e,t),this.mesh.material.uniforms.u_shadow_power.value=e<600?5:6}},{key:"start",value:function(){this.isPlaying||(this.isPlaying=!0,this.last=performance.now(),this.animationId=requestAnimationFrame(this.animate))}},{key:"stop",value:function(){this.isPlaying=!1,this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=void 0)}},{key:"destroy",value:function(){this.stop(),window.removeEventListener("resize",this.handleResize)}}]),e}();function yr(e){var t=e.colors,r=void 0===t?["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"]:t,n=e.isPlaying,i=void 0===n||n,a=e.className,o=e.shadowPower,s=void 0===o?8:o,l=e.darkenTop,u=void 0!==l&&l,c=e.noiseSpeed,d=void 0===c?1e-5:c,f=e.noiseFrequency,p=void 0===f?[1e-4,9e-4]:f,y=e.deform,g=void 0===y?{incline:.5,noiseAmp:250,noiseFlow:5}:y,v=(0,m.useRef)(null),b=(0,m.useRef)(null);return(0,m.useEffect)(function(){if(v.current){var e=document.createElement("canvas");Object.assign(e.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"block"}),v.current.appendChild(e);try{var t=new yt(e,r);b.current=t,t.mesh.material.uniforms.u_shadow_power.value=s,t.mesh.material.uniforms.u_darken_top.value=+!!u,t.mesh.material.uniforms.u_global.value.noiseFreq.value=p,t.mesh.material.uniforms.u_global.value.noiseSpeed.value=d,Object.assign(t.mesh.material.uniforms.u_vertDeform.value,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t.mesh.material.uniforms.u_vertDeform.value,g)),i&&t.start()}catch(e){console.error("Failed to initialize gradient:",e)}return function(){b.current&&(b.current.destroy(),b.current=null),e.parentNode&&e.parentNode.removeChild(e)}}},[]),(0,m.useEffect)(function(){b.current&&(i?b.current.start():b.current.stop())},[i]),(0,h.jsx)("div",{ref:v,className:"absolute inset-0 z-0 w-full h-full overflow-hidden ".concat(void 0===a?"":a)})}function yn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ya=(0,m.createContext)({config:null,setPageBackground:function(){}});function yo(e){var t,r=e.children,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return yi(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 yi(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=n[0],a=n[1],o=(0,m.useMemo)(function(){return{config:i,setPageBackground:a}},[i]);return(0,h.jsx)(ya.Provider,{value:o,children:r})}function ys(){return(0,m.useContext)(ya)}var yl=["#008080","#0b192c","#0ea5e9","#042f2e","#0284c7","#064e3b"];function yu(e){var t=e.className;return(0,h.jsxs)("div",{className:yn("fixed inset-0 w-full h-full pointer-events-none z-0 overflow-hidden select-none bg-[#030708]",t),children:[(0,h.jsx)(yr,{colors:yl,isPlaying:!0,shadowPower:8,darkenTop:!1,noiseSpeed:1e-5,noiseFrequency:[1e-4,9e-4],deform:{incline:.5,noiseAmp:250,noiseFlow:5}}),(0,h.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/60 pointer-events-none"}),(0,h.jsx)("div",{className:"absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-30 blur-[120px] pointer-events-none",style:{background:"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}})]})}function yc(e){var t=e.imageSrc,r=e.imageAlt,n=e.imageFit,i=void 0===n?"cover":n,a=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=void 0===d||d,p=e.accent,m=e.children;return t?(0,h.jsxs)("div",{className:yn("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none",!(null==a?void 0:a.includes("bg-"))&&"bg-[#030708]",a),children:[(0,h.jsx)("img",{src:t,alt:void 0===r?"Arri\xe8re-plan immersif":r,className:yn("absolute inset-0 w-full h-full select-none transition-all duration-700 ease-out","fill"===i?"object-fill":"contain"===i?"object-contain object-center":"object-cover object-center","fill"===i?"opacity-100":"opacity-95",o),referrerPolicy:"no-referrer"},t),p&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"color",opacity:.35}}),(0,h.jsx)("div",{className:"absolute inset-0 pointer-events-none transition-colors duration-700",style:{backgroundColor:p,mixBlendMode:"multiply",opacity:.2}})]}),f&&(0,h.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-black/55 via-black/15 via-25% to-transparent transition-opacity duration-700"}),f&&(0,h.jsx)("div",{className:yn("absolute inset-0 pointer-events-none bg-gradient-to-b from-black/45 via-black/20 to-black/70 transition-opacity duration-700",s)}),(0,h.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.12] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E\")",backgroundSize:"180px 180px"}}),void 0!==u&&u&&s&&(0,h.jsx)("div",{className:yn("absolute inset-0 pointer-events-none transition-all duration-500",s)}),(void 0===c||c)&&(0,h.jsx)("div",{className:yn("absolute bottom-[-10%] left-[10%] w-[80%] h-[350px] rounded-full opacity-35 blur-[120px] pointer-events-none transition-all duration-700",l),style:{background:p?"radial-gradient(ellipse at center, ".concat(p,"66 0%, ").concat(p,"22 50%, transparent 80%)"):"radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(6,78,59,0.12) 50%, transparent 80%)"}}),m]}):(0,h.jsx)(yu,{className:a})}function yd(){var e,t,r,n=ys().config;return(null==n?void 0:n.customComponent)?(0,h.jsx)("div",{className:yn("fixed inset-0 pointer-events-none overflow-hidden z-0 select-none bg-[#030708]",n.className),children:n.customComponent}):(null==n?void 0:n.imageSrc)?(0,h.jsx)(yc,{imageSrc:n.imageSrc,imageAlt:n.imageAlt,imageFit:n.imageFit,className:n.className,imageClassName:n.imageClassName,overlayClassName:n.overlayClassName,glowClassName:n.glowClassName,showAtmosphere:null!=(e=n.showAtmosphere)&&e,showGlow:null==(t=n.showGlow)||t,showDarkWash:null==(r=n.showDarkWash)||r,accent:n.accent,children:n.children}):(0,h.jsx)(yu,{className:null==n?void 0:n.className})}function yf(e){var t=e.customComponent,r=e.imageSrc,n=e.imageAlt,i=e.imageFit,a=e.className,o=e.imageClassName,s=e.overlayClassName,l=e.glowClassName,u=e.showAtmosphere,c=e.showGlow,d=e.showDarkWash,f=e.accent,p=e.children,h=ys().setPageBackground;return(0,m.useEffect)(function(){return h({customComponent:t,imageSrc:r,imageAlt:n,imageFit:i,className:a,imageClassName:o,overlayClassName:s,glowClassName:l,showAtmosphere:u,showGlow:c,showDarkWash:d,accent:f,children:p}),function(){h(null)}},[h,t,r,n,i,a,o,s,l,u,c,d,f,p]),null}var yp=r(2804);let yh="YOpQLiaTysM+swWB7ATzKw==";function ym(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function yg(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function yv(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}var yb=function(e){if("children"in e){var t=e.children,r=e.className,n=yv(e,["children","className"]);return(0,h.jsx)("div",yg(yy({className:v()(yh,r)},n),{children:t}))}var i=e.title,a=e.illustration,o=e.className,s=yv(e,["title","illustration","className"]);return(0,h.jsx)("div",yg(yy({className:v()(yh,o)},s),{children:(0,h.jsx)(yw,{title:i,illustration:a})}))},yw=function(e){var t,r=e.title,n=e.illustration,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(null))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return ym(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 ym(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=a[0],s=a[1];return(0,m.useEffect)(function(){(0,yp.getConfig)("@egen-civitas/esm-styleguide").then(function(e){s(e)})},[]),(0,h.jsxs)("div",{className:v()("PjsJmcqHjhav+51GzX5n1A==",i),children:[n,(0,h.jsxs)("div",{className:"pPcKj1kNkKP4cQZUtFRU5g==",children:[(null==o?void 0:o.implementationName)&&(0,h.jsx)("p",{children:(0,L.V)(o.implementationName)}),(0,h.jsx)("p",{className:"_3d4ICXZtVrDwUYN1iMMJCA==",children:r})]})]})};function yx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yS=function(e){var t,r=e.totalItems,n=e.pageSize,i=e.onPageNumberChange,a=e.pageNumber,o=e.dashboardLinkUrl,s=e.currentItems,l=e.dashboardLinkLabel,u=(0,b.usePaginationInfo)(n,r,a,s),c=u.pageSizes,d=u.pageItemsCount,f="tablet"===(0,b.useLayoutType)(),p=(0,L.V)("paginationItemsCount","{{pageItemsCount}} / {{totalItems}} items",{totalItems:r,pageItemsCount:d});return(0,h.jsx)(h.Fragment,{children:r>0&&(0,h.jsxs)("div",{className:v()((yx(t={},"lQ3akicW2mAhjncqby7nDA==",f),yx(t,"HfUTYLFumnQ+awk4OaX1Dg==",!f),t)),children:[(0,h.jsxs)("div",{children:[p,o&&(0,h.jsx)(b.ConfigurableLink,{to:o,className:"NM9v7zGqLsggVcQgLFigdA==",children:null!=l?l:(0,L.V)("seeAll","See all")})]}),(0,h.jsx)(_.Pagination,{className:"WzkBsEFtArGu5wzXr0lPcA==",page:a,pageSize:n,pageSizes:c,totalItems:r,onChange:i,pageRangeText:function(e,t){return(0,L.V)("paginationOfPages","of {{count}} pages",{count:t})},size:f?"lg":"sm"})]})})},yE=r(6625);function yD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yj(e){var t,r=e.entity,n=e.entityUuid,i=e.actionsSlotName,a=e.additionalActionsSlotState,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return yD(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 yD(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.")}(),s=o[0],l=o[1],u=(0,b.useExtensionSlot)(i).extensions,c="tablet"===(0,b.useLayoutType)(),d=(0,b.useOnClickOutside)(function(){return l(!1)},s),f=(0,m.useRef)(null),p=(0,m.useRef)(null),y=(0,m.useId)(),g="entity-actions-menu-trigger-".concat(y),w="entity-actions-menu-".concat(y),x=(0,m.useCallback)(function(){return l(function(e){return!e})},[]),S=(0,m.useCallback)(function(){var e;l(!1),null==(e=f.current)||e.focus()},[]),E=(0,m.useCallback)(function(e){if("Escape"===e.key&&s){e.stopPropagation(),S();return}if(("ArrowDown"===e.key||"ArrowUp"===e.key)&&s){e.preventDefault();var t,r,n,i,a,o,l=null==(r=p.current)?void 0:r.querySelectorAll('[role="menuitem"]:not([disabled])');if(!(null==l?void 0:l.length))return;var u=null!=(t=null==(i=document.activeElement)||null==(n=i.closest)?void 0:n.call(i,'[role="menuitem"]'))?t:document.activeElement,c=Array.from(l).indexOf(u);if(-1===c){null==(o=l["ArrowDown"===e.key?0:l.length-1])||o.focus();return}var d=c+("ArrowDown"===e.key?1:-1),f=d<0?l.length-1:d>=l.length?0:d;null==(a=l[f])||a.focus()}},[S,s]);(0,m.useEffect)(function(){if(s&&p.current){var e=p.current.querySelector('[role="menuitem"]:not([disabled])');null==e||e.focus()}},[s]);var D=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){yO(e,t,r[t])})}return e}({entityUuid:n,entity:r,closeMenu:S},a)},[n,r,S,a]);return 0===u.length?null:(0,h.jsx)("div",{className:"kWz-FQXziTlflmlOvSQU8w==",children:(0,h.jsxs)("div",{"data-overflow-menu":!0,className:v()("cds--overflow-menu",V),ref:d,children:[(0,h.jsxs)("button",{className:v()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},$),"aria-controls":w,"aria-expanded":s,"aria-haspopup":"true",id:g,onClick:x,onKeyDown:E,ref:f,children:[(0,h.jsx)("span",{className:"FNvGkLUDxlNyu5MsobGSiQ==",children:(0,L.V)("actions","Actions")})," ",(0,h.jsx)(yE.CH,{size:16,style:{marginLeft:"0.5rem",fill:"#78A9FF"}})]}),(0,h.jsxs)("div",{className:v()("cds--overflow-menu-options","cds--overflow-menu--flip",U,yO({},W,s)),"aria-labelledby":g,"data-floating-menu-direction":"bottom",id:w,onKeyDown:E,ref:p,role:"menu",tabIndex:-1,children:[(0,h.jsx)("ul",{className:v()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":c}),children:(0,h.jsx)(b.ExtensionSlot,{name:i,state:D},i)}),(0,h.jsx)("span",{})]})]})})}var yP=r(7488);let yC={contactDetails:"_0WAlP7BAsAgqReeW05Syxg==",deceased:"PaF2EK-ANVeIH6lZnkVXJg==",heading:"_2zRwLuDr67mWUDIQRycpHg==",row:"_1ShtU0d+XSLtWZB5Xtenlg==",col:"EwddJOyljhsm1Mho19p57w==",relationship:"VUQRxyGyP2uVTKGVha-XXg=="};function yk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||yT(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 yT(e,t){if(e){if("string"==typeof e)return yk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yk(e,t)}}var yN=function(e){var t,r,n,i,a,o,s,l=(r=e.entityUuid,o=(a=(0,h8.A)(r?"".concat(h7.restBaseUrl,"/cohort?v=custom:(uuid,name,startDate)&member=").concat(r):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{groups:null!=(n=null==o||null==(i=o.data)?void 0:i.results)?n:[],isLoading:s}),u=l.groups,c=void 0===u?[]:u,d=l.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("p",{className:yC.heading,children:[(0,L.V)("entityGroups","Entity Groups")," (",null!=(t=null==c?void 0:c.length)?t:0,")"]}),d?(0,h.jsx)(_.InlineLoading,{description:"".concat((0,L.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)("ul",{children:[function(){if((null==c?void 0:c.length)>0){var e=c.sort(function(e,t){return(0,sT._U)(null==e?void 0:e.startDate).getTime()-(0,sT._U)(null==t?void 0:t.startDate).getTime()}).slice(0,3);return null==e?void 0:e.map(function(e){return(0,h.jsx)("li",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups/").concat(e.uuid),children:e.name},e.uuid)},e.uuid)})}return(0,h.jsx)("li",{children:"--"})}(),c.length>3&&(0,h.jsx)("li",{className:yC.link,children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/home/entity-groups"),children:(0,L.V)("seeMoreGroups","See {{count}} more groups",{count:(null==c?void 0:c.length)-3})})})]})]})},yR=function(e){var t,r=e.entityId,n=(0,b.useEntity)(r),i=n.entity,a=n.isLoading,o=null==i||null==(t=i.address)?void 0:t.find(function(e){return"home"===e.use}),s=function(e){return e.split("#")[1]};return a?(0,h.jsx)(_.InlineLoading,{description:"".concat((0,L.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yC.heading,children:(0,L.V)("address","Address")}),(0,h.jsx)("ul",{children:o?Object.entries(o).filter(function(e){var t=yA(e,1)[0];return"id"!==t&&"use"!==t}).map(function(e){var t,r,n,i=yA(e,2),a=i[0],l=i[1];return"extension"===a?null==(n=o.extension)||null==(r=n[0])||null==(t=r.extension)?void 0:t.map(function(e,t){return(0,h.jsxs)("li",{children:[(0,L.V)(s(e.url),s(e.url)),": ",e.valueString]},"address-".concat(a,"-").concat(t))}):(0,h.jsxs)("li",{children:[(0,L.V)(a,a),": ",l]},"address-".concat(a))}):(0,h.jsx)("li",{children:"--"})})]})},yI=function(e){var t,r,n,i,a,o,s,l=(t=e.entityUuid,i=(0,b.useConfig)().contactAttributeTypes,o=(a=(0,h8.A)(t?"".concat(h7.restBaseUrl,"/entity/").concat(t,"?v=custom:(attributes:(attributeType:(display,uuid),value))"):null,function(e){return fetch(e).then(function(e){return e.json()})})).data,s=a.isLoading,{contactAttributes:null==o||null==(n=o.data)||null==(r=n.attributes)?void 0:r.filter(function(e){var t;return null==i||null==(t=i.uuids)?void 0:t.includes(e.attributeType.uuid)}),isLoading:s}),u=l.isLoading,c=l.contactAttributes,d=(0,m.useMemo)(function(){var e;return c?function(e){if(Array.isArray(e))return yk(e)}(e=null==c?void 0:c.map(function(e){return[e.attributeType.display?(0,L.V)(e.attributeType.display,e.attributeType.display):"",e.value]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yT(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.")}():[]},[c]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yC.heading,children:(0,L.V)("contactDetails","Contact Details")}),u?(0,h.jsx)(_.InlineLoading,{description:"".concat((0,L.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:d.length?d.map(function(e,t){var r=yA(e,2),n=r[0],i=r[1];return(0,h.jsxs)("li",{children:[n,": ",i]},"".concat(n,"-").concat(i,"-").concat(t))}):(0,h.jsx)("li",{children:"--"})})]})},yM=function(e){var t,r,n,i,a,o,s,l,u,c,d=(t=e.entityId,i="".concat(h7.restBaseUrl,"/relationship?v=").concat("custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))","&person=").concat(t),o=(a=(0,yP.Ay)(t?i:null,h7.egenFetch)).data,s=a.error,l=a.isLoading,u=a.isValidating,c=(null==o||null==(n=o.data)||null==(r=n.results)?void 0:r.length)?function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;e===l.personA.uuid?r.push({uuid:"".concat(l.uuid),display:l.personB.display,relativeAge:l.personB.age,relativeUuid:l.personB.uuid,relationshipType:l.relationshipType.bIsToA}):r.push({uuid:"".concat(l.uuid),display:l.personA.display,relativeAge:l.personA.age,relativeUuid:l.personA.uuid,relationshipType:l.relationshipType.aIsToB})}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,o.data.results):null,{data:o?c:null,error:s,isLoading:l,isValidating:u}),f=d.data,p=d.isLoading;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:yC.heading,children:(0,L.V)("relationships","Relationships")}),p?(0,h.jsx)(_.InlineLoading,{description:"".concat((0,L.V)("loading","Loading")," ..."),role:"progressbar"}):(0,h.jsx)("ul",{children:f&&f.length>0?(0,h.jsx)(h.Fragment,{children:f.map(function(e){return(0,h.jsxs)("li",{className:yC.relationship,children:[(0,h.jsx)("div",{children:(0,h.jsx)(b.ConfigurableLink,{to:"".concat(window.spaBase,"/entity/").concat(e.relativeUuid,"/detail"),children:e.display})}),(0,h.jsx)("div",{children:e.relationshipType}),(0,h.jsx)("div",{children:"".concat(e.relativeAge?e.relativeAge:"--"," ").concat(e.relativeAge?1===e.relativeAge?(0,L.V)("yearAbbreviation","yr"):(0,L.V)("yearsAbbreviation","yrs"):"")})]},e.uuid)})}):(0,h.jsx)("li",{children:"--"})})]})};function y_(e){var t,r,n=e.entityId,i=e.inactive;return(0,h.jsxs)("div",{className:v()(yC.contactDetails,(t={},r=yC.inactive,r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t)),children:[(0,h.jsxs)("div",{className:yC.row,children:[(0,h.jsx)("div",{className:yC.col,children:(0,h.jsx)(yR,{entityId:n})}),(0,h.jsx)("div",{className:yC.col,children:(0,h.jsx)(yI,{entityUuid:n})})]}),(0,h.jsxs)("div",{className:yC.row,children:[(0,h.jsx)("div",{className:yC.col,children:(0,h.jsx)(yM,{entityId:n})}),(0,h.jsx)("div",{className:yC.col,children:(0,h.jsx)(yN,{entityUuid:n})})]})]})}let yL={container:"Cv77SWzKIL33Efa8UclO5A==",activePatientContainer:"+EdOeUGN-+Myht0Gc4ikMw==",patientBanner:"+1X-eoTNiJAWmrNyW1uKTg==",patientName:"HjFT+u-cDhT-hf+hsn11Xg==",patientAvatar:"OP0MHpvYVC6OF7zImdEV3w==",patientAvatarButton:"-mC5reGPR9tvkeM0qSc5MA==",patientInfo:"mgVTXloP5WwGSJLgIW5TVg==",demographics:"_0Cixc19K7YZnsR1MGmBQNg==",row:"yZ25PajVI7esFz4wL1yOCg==",flexRow:"Ejo0BoOk-a+rWthDWMDH7w==",tagsSlot:"+MEITB-Gk8ZjLAvj3B8W3w==",identifiers:"BwRJpSUWSzceV7Pjz5UofA==",identifier:"kLaARBBq9K0roZYiS7GA1Q==",primaryIdentifier:"qYvg+lAUHmwTgbGCFXK8Yg==",secondaryIdentifier:"TLLxFft-df-e9delKSNViA==",value:"_4WXcSlqEoM5a51gAHLpS0A==",tag:"pzpHt574Yu33MqipyxxXag==",gender:"QtDv05OhEBSxQ0LZ6FfmNA==",separator:"Ld4CZgLBPDUgajeNQgM4Hw==",tooltipPadding:"GF5dbiMid4Mc+k7iKSbQCQ==",tooltipSmallText:"GlMubU+ECQXv0RlYebaD0g==",actionsButtonText:"MX8Uu4J+mIeszpUoF2RRgA=="};function yF(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsx)("span",{className:yL.primaryIdentifier,children:(0,h.jsxs)(_.Tag,{className:yL.tag,type:"gray",children:[t&&(null==r?void 0:r.text)&&(0,h.jsxs)("span",{className:yL.label,children:[r.text,": "]}),(0,h.jsx)("span",{className:yL.value,children:n})]})})}function yB(e){var t=e.showIdentifierLabel,r=e.type,n=e.value;return(0,h.jsxs)(_.FormLabel,{className:yL.secondaryIdentifier,id:"entity-banner-identifier-".concat(n),children:[t&&(0,h.jsxs)("span",{className:yL.label,children:[null==r?void 0:r.text,": "]}),(0,h.jsx)("span",{className:yL.value,children:n})]})}function yV(e){var t,r=e.identifiers,n=e.showIdentifierLabel,i=(0,b.useConfig)().excludeEntityIdentifierCodeTypes,a=(0,b.usePrimaryIdentifierCode)().primaryIdentifierCode,o=null!=(t=null==r?void 0:r.filter(function(e){var t,r,n,a=null==(n=e.type)||null==(r=n.coding)||null==(t=r[0])?void 0:t.code;return a&&!(null==i?void 0:i.uuids.includes(a))}))?t:[];return(0,h.jsx)(h.Fragment,{children:(null==o?void 0:o.length)?o.map(function(e,t){var r,i,s=e.value,l=e.type;return(0,h.jsxs)(y().Fragment,{children:[(0,h.jsx)("span",{className:yL.identifier,children:(null==l||null==(i=l.coding)||null==(r=i[0])?void 0:r.code)===a?(0,h.jsx)(yF,{showIdentifierLabel:n,type:l,value:s}):(0,h.jsx)(yB,{showIdentifierLabel:n,type:l,value:s})}),t<o.length-1&&(0,h.jsx)("span",{className:yL.separator,children:"\xb7"})]},s)}):""})}function yU(e){var t,r,n=e.entity,i=e.renderedFrom,a=(null==n||null==(t=n.name)?void 0:t[0])?[null==(r=n.name[0].given)?void 0:r.join(" "),n.name[0].family].filter(Boolean).join(" "):(0,L.V)("unknown","Unknown"),o=(0,m.useMemo)(function(){return{entityUuid:n.id,entity:n,renderedFrom:i}},[n.id,n,i]);return(0,h.jsxs)("div",{className:yL.entityInfo,children:[(0,h.jsx)("div",{className:v()(yL.row,yL.entityNameRow),children:(0,h.jsxs)("div",{className:yL.flexRow,children:[(0,h.jsx)("span",{className:yL.entityName,children:a}),(0,h.jsx)(b.ExtensionSlot,{className:yL.tagsSlot,name:"entity-banner-tags-slot",state:o})]})}),(0,h.jsxs)("div",{className:yL.demographics,children:[n.birthDate&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{children:(0,sT.LW)(n.birthDate,{time:!1})}),(0,h.jsx)("span",{className:yL.separator,children:"\xb7"})]}),(0,h.jsx)(yV,{identifiers:n.identifier,showIdentifierLabel:!0}),(0,h.jsx)(b.ExtensionSlot,{className:yL.extensionSlot,name:"entity-banner-bottom-slot",state:o})]})]})}var yW=r(6768),y$=r.n(yW);function yz(e){var t,r,n,i=(0,b.useConfig)({externalModuleName:"@egen-civitas/esm-styleguide"}).entityPhotoConceptUuid,a=i?"".concat(h7.restBaseUrl,"/datapoint?entity=").concat(e,"&concept=").concat(i,"&v=full"):null,o=(0,yP.Ay)(e?a:null,h7.egenFetch),s=o.data,l=o.error,u=o.isLoading,c=null==s||null==(t=s.data)?void 0:t.results[0];return{data:c?{dateTime:null==c?void 0:c.recordedDatetime,imageSrc:null==c||null==(n=c.value)||null==(r=n.links)?void 0:r.uri}:null,error:l,isLoading:u}}let yH=function(e){var t=e.width,r=e.height,n=e["aria-label"],i=(0,q.useTranslation)().t;return(0,h.jsxs)("svg",{"aria-label":null!=n?n:i("entityPhotoPlaceholder","Entity photo placeholder"),width:void 0===t?56:t,height:void 0===r?56:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("path",{fill:"#ffffff",d:"M0 0h56v56H0z"}),(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m36.75 20.134-.884-.884L19.25 35.866l.884.884 1.25-1.25H34.25a1.252 1.252 0 0 0 1.25-1.25V21.384l1.25-1.25Zm-2.5 14.116H22.634l4.87-4.87 1.487 1.486a1.25 1.25 0 0 0 1.768 0l.991-.991 2.5 2.498v1.877Zm0-3.645-1.616-1.616a1.25 1.25 0 0 0-1.768 0l-.991.991-1.486-1.486 5.861-5.86v7.971Zm-12.5 1.145v-1.875l3.125-3.123.858.859.885-.885-.86-.86a1.25 1.25 0 0 0-1.767 0l-2.241 2.242V21.75h10V20.5h-10c-.69 0-1.25.56-1.25 1.25v10h1.25Z",fill:"#8D8D8D"})]})},yG="zGr2tPPbF8QVWzyTv0fDHw==";function yK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yK(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 yZ(e){var t=e.entityUuid,r=e.entityName,n=e.alt,i=yz(t),a=i.data,o=i.isLoading,s=yY((0,m.useState)(null),2),l=s[0],u=s[1],c=yY((0,m.useState)(!1),2),d=c[0],f=c[1],p=(0,m.useMemo)(function(){return y$().generate(t)},[t]);(0,m.useEffect)(function(){if(null==a?void 0:a.imageSrc){var e=new URL(a.imageSrc,window.location.origin).pathname;f(!0);var t=!1,r=new Image;return r.onload=function(){t||(u(e),f(!1))},r.onerror=function(){t||(u(null),f(!1))},r.src=e,function(){t=!0}}u(null),f(!1)},[null==a?void 0:a.imageSrc]);var y=(0,m.useMemo)(function(){return n||(l?(0,L.V)("entityPhotoAlt","Profile photo of {{entityName}}",{entityName:r}):(0,L.V)("entityAvatarAlt","Avatar for {{entityName}}",{entityName:r}))},[n,l,r]);return o||d?(0,h.jsx)(_.SkeletonIcon,{className:"f9LV60t8m0NTwg0u9VNH6Q==","data-testid":"skeleton-icon"}):(null==a?void 0:a.imageSrc)&&!l?(0,h.jsx)(yH,{"aria-label":(0,L.V)("entityPhotoPlaceholder","Photo placeholder for {{entityName}}",{entityName:r})}):l?(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("img",{className:yG,src:l,alt:y,title:r})}):(0,h.jsx)("div",{"aria-label":y,children:(0,h.jsx)("div",{className:yG,title:r,style:{backgroundImage:p.toDataUrl(),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:(0,h.jsx)("span",{className:"_6J1JiNoLqU9+wHh+JKTp0A==",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e.split(/\s+/).filter(Boolean).slice(0,t).map(function(e){return e[0]}).join("")}(r)})})})}function yq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yX(e){if(Array.isArray(e))return e}function yQ(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yJ(e,t){if(e){if("string"==typeof e)return yq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yq(e,t)}}var y0=["egen-pict-appointments","egen-pict-assessment-1","egen-pict-assessment-2","egen-pict-blood-bank","egen-pict-cardiology","egen-pict-ct-scan","egen-pict-dentistry","egen-pict-emergency-department","egen-pict-facility","egen-pict-geriatrics","egen-pict-gynaecology","egen-pict-in-patient","egen-pict-laboratory","egen-pict-labs-2","egen-pict-obstetrics","egen-pict-patient-search","egen-pict-patients","egen-pict-payments-desk","egen-pict-pharmacy","egen-pict-pharmacy-2","egen-pict-registration","egen-pict-service-queues","egen-pict-stock-management","egen-pict-transfer","egen-pict-triage","egen-pict-x-ray"],y1=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-appointments",pictogramProps:e})})),y2=y1,y3=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-assessment-1",pictogramProps:e})})),y4=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-assessment-2",pictogramProps:e})})),y5=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-blood-bank",pictogramProps:e})})),y6=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-cardiology",pictogramProps:e})})),y8=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-ct-scan",pictogramProps:e})})),y9=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-dentistry",pictogramProps:e})})),y7=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-emergency-department",pictogramProps:e})})),ge=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-facility",pictogramProps:e})})),gt=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-geriatrics",pictogramProps:e})})),gr=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-gynaecology",pictogramProps:e})})),gn=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-in-patient",pictogramProps:e})})),gi=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-laboratory",pictogramProps:e})})),ga=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-labs-2",pictogramProps:e})})),go=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-obstetrics",pictogramProps:e})})),gs=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-patient-search",pictogramProps:e})})),gl=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-patients",pictogramProps:e})})),gu=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-payments-desk",pictogramProps:e})})),gc=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-pharmacy",pictogramProps:e})})),gd=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-pharmacy-2",pictogramProps:e})})),gf=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-registration",pictogramProps:e})})),gp=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-service-queues",pictogramProps:e})})),gh=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-stock-management",pictogramProps:e})})),gm=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-transfer",pictogramProps:e})})),gy=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-triage",pictogramProps:e})})),gg=(0,m.memo)((0,m.forwardRef)(function(e,t){return(0,h.jsx)(gx,{ref:t,pictogram:"egen-pict-x-ray",pictogramProps:e})})),gv=ge,gb=gl,gw=(0,m.memo)((0,m.forwardRef)(function(e,t){var r,n=yX(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||yJ(r)||yQ(),i=n[0],a=n.slice(1),o=i.pictogram,s=i.fallback,l=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["pictogram","fallback"]),u=(yX(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||yJ(a,1)||yQ())[0],c=(0,m.useRef)(document.getElementById(o));return(0,m.useEffect)(function(){var e=document.getElementById("egen-svgs-container"),t=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;"childList"===s.type&&(c.current=document.getElementById(o))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}});return e&&t.observe(e,{childList:!0}),function(){return t.disconnect()}},[o]),(0,h.jsx)(b.RenderIfValueIsTruthy,{value:c.current,fallback:s,children:(0,h.jsx)(gx,{ref:u,pictogram:o,pictogramProps:l})})})),gx=(0,m.memo)((0,m.forwardRef)(function(e,t){var r=e.pictogram,n=Object.assign({},{size:92},e.pictogramProps),i=n.className,a=n.size;return(a<=26||a>144)&&(console.error("Invalid size '".concat(a,"' specified for ").concat(r,". Defaulting to 92.")),a=92),(0,h.jsx)("svg",{ref:t,className:v()("wXX7tgyTzQUB487Ai2jwkw==",i),height:a,width:a,children:(0,h.jsx)("use",{href:"#".concat(r)})})})),gS=function(e){var t=e.children;return"tablet"===(0,b.useLayoutType)()?(0,h.jsx)(_.Layer,{children:t}):(0,h.jsx)(h.Fragment,{children:t})};function gE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gE(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 gj=function(e){var t,r=e.snackbar,n=e.closeSnackbar,i=r.actionButtonLabel,a=r.kind,o=void 0===a?"success":a,s=r.onActionButtonClick,l=void 0===s?function(){}:s,u=r.isLowContrast,c=r.progressActionLabel,d=r.subtitle,f=r.timeoutInMs,p=void 0===f?5e3:f,y=r.autoClose,g=void 0===y?"error"!==o:y,b=r.title,w=(r.id,function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(r,["actionButtonLabel","kind","onActionButtonClick","isLowContrast","progressActionLabel","subtitle","timeoutInMs","autoClose","title","id"])),x=gO((0,m.useState)(void 0===i?"":i),2),S=x[0],E=x[1],D=gO((0,m.useState)(!0),2),O=D[0],j=D[1],P=gO((0,m.useState)(!1),2),C=P[0],k=P[1],A=(0,m.useCallback)(function(){setTimeout(n,250)},[n]),T=(0,m.useCallback)(function(){k(!0),A()},[A]);return(0,m.useEffect)(function(){if(g){var e=setTimeout(T,p);return function(){return clearTimeout(e)}}},[p,g,T]),(0,m.useEffect)(function(){j(!1),window.setTimeout(function(){j(!0)},0)},[]),(0,h.jsx)(_.ActionableNotification,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gD(e,t,r[t])})}return e}({actionButtonLabel:S,"aria-label":(0,L.V)("closeSnackbar","Close snackbar"),className:v()("-oZItDje+VqIMbRFsj0vKg==",(gD(t={},"M2YBUemKsEmA3Eg4hsWRFQ==",O),gD(t,"yEmGTBZUeA8w30tHbNSn5g==",C),t)),kind:o,lowContrast:void 0===u?"error"!==o:u,onActionButtonClick:function(){l(),T(),c&&E(c)},onClose:A,statusIconDescription:(0,L.V)("snackbarNotification","Snackbar notification"),subtitle:void 0===d?"":d,title:b},w))};function gP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gC(e,t){if(e){if("string"==typeof e)return gP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gP(e,t)}}let gk=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gC(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.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gP(e)})(r=t.filter(function(t){return t.subtitle!==e.subtitle||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick||t.kind!==e.kind||t.title!==e.title}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gC(r)||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])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){return(0,h.jsx)(gj,{snackbar:e,closeSnackbar:function(){return o(e)}},e.id)})})};var gA=new mw.Subject,gT=0;function gN(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gk,{subject:gA}))}function gR(e){var t;e&&"string"==typeof(t=e.title)&&t.trim().length>0?setTimeout(function(){var t,r;gA.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gT++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showSnackbar must be called with an object having a 'title' property that is a non-empty string")}function gI(e){var t=document.querySelector("template#loading-spinner");if(t){var r=t.content.cloneNode(!0),n=Array.prototype.map.call(r.childNodes,function(e){return e});return e.appendChild(r),function(){return n.forEach(function(e){return e.remove()})}}return function(){}}let gM={hiddenFilterSvg:"_8Tz1qFn+MdiJYyy6ez9GUQ==",card:"g40kSNNDpE9NhhUcTafNYw==","card--draggable":"rThVqQdfhOLBiRBlHkth2g==","card--expandable":"RY0ShAGOhiA0XKXO5Sqiag==",bendLayer:"qD6yEcIICh3zPVuc8ZeuEg==",faceLayer:"_0PONrThn18sTfyx8zxhmXg==",edgeLayer:"pg4uJnFEM6WrdOUdtEOQlA==",content:"ArelXhGngOZ+93JNlrBqBg==","blur--sm":"SLe0Wxb5gGxBgiL0MGasOQ==","blur--md":"zrxPZBEXl4NzqG6waBPZVg==","blur--lg":"_4P1jOOMRFuy5KYChqfEj3g==","blur--xl":"R19jP34asJMxjyzQwC1oKw==","glow--none":"pjXAlSa28W1lJr+wo68vVg==","glow--xs":"BmE-JvgGalzpyYFqsovNxw==","glow--sm":"HzeozIN6URFjM+uRLyEe5w==","glow--md":"dQu1UUEYusviaHtggLbX+w==","glow--lg":"ZtA9BZduBptr1334IbiEsg==","glow--xl":"f7aLRCodz2Y3rXD1qsAbLQ==","glow--2xl":"_7B6p9WVoCjjA5J7+JXNMgA==","shadow--none":"_7yiJ0EQp31lzXiYhtAIB8A==","shadow--xs":"r-9qY0z9axV1DyplHMrWsg==","shadow--sm":"vimfUTeWGP8vYRTc-UMX1Q==","shadow--md":"sjeik7aBFWGSrsclplvNbg==","shadow--lg":"_7n0E+oT-MyS2EusrZlSw-A==","shadow--xl":"Mys4y+e4Tg5csfEWKYKLLw==","shadow--2xl":"IE6NX0hiQXPvc27tAfJfgg=="};function g_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gF(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){gL(e,t,r[t])})}return e}var gB=function(e){var t,r,n,i,a=e.children,o=e.className,s=e.draggable,l=void 0!==s&&s,u=e.expandable,c=void 0!==u&&u,d=e.width,f=e.height,p=e.expandedWidth,y=e.expandedHeight,g=e.blurIntensity,b=e.shadowIntensity,w=e.glowIntensity,x=e.borderRadius,S=void 0===x?"0px":x,E=e.style,D=e.onClick,O=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return g_(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 g_(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.")}(),j=O[0],P=O[1],C="egen-glass-blur-".concat((0,m.useId)().replace(/:/g,"")),k=l||c,A=k?hK.div:"div",T=k?{variants:c&&c?{collapsed:{width:d||"auto",height:f||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}},expanded:{width:p||"auto",height:y||"auto",transition:{duration:.4,ease:[.5,1.5,.5,1]}}}:void 0,animate:c?j?"expanded":"collapsed":void 0,onClick:c?function(e){!c||e.target.closest("a, button, input, select, textarea")||P(function(e){return!e})}:D,drag:l,dragConstraints:l?{left:0,right:0,top:0,bottom:0}:void 0,dragElastic:l?.3:void 0,dragTransition:l?{bounceStiffness:300,bounceDamping:10,power:.3}:void 0,whileDrag:l?{scale:1.02}:void 0,whileHover:{scale:1.01},whileTap:{scale:.98}}:{onClick:D};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{className:gM.hiddenFilterSvg,"aria-hidden":"true",children:(0,h.jsx)("defs",{children:(0,h.jsxs)("filter",{id:C,x:"0",y:"0",width:"100%",height:"100%",filterUnits:"objectBoundingBox",children:[(0,h.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"0.003 0.007",numOctaves:1,result:"turbulence"}),(0,h.jsx)("feDisplacementMap",{in:"SourceGraphic",in2:"turbulence",scale:"200",xChannelSelector:"R",yChannelSelector:"G"})]})})}),(0,h.jsxs)(A,(r=gF({className:v()(gM.card,(gL(i={},gM["card--draggable"],l),gL(i,gM["card--expandable"],c),i),o),style:gF({borderRadius:S},d&&!c?{width:d}:void 0,f&&!c?{height:f}:void 0,E)},T),n=n={children:[(0,h.jsx)("div",{className:v()(gM.bendLayer,gM["blur--".concat(void 0===g?"xl":g)]),style:{borderRadius:S,filter:"url(#".concat(C,")")}}),(0,h.jsx)("div",{className:v()(gM.faceLayer,gM["glow--".concat(void 0===w?"sm":w)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:v()(gM.edgeLayer,gM["shadow--".concat(void 0===b?"md":b)]),style:{borderRadius:S}}),(0,h.jsx)("div",{className:gM.content,children:a})]},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))]})},gV={success:{icon:ev,defaultEyebrow:"Succ\xe8s",colorToken:"success"},error:{icon:sL,defaultEyebrow:"Erreur",colorToken:"error"},warning:{icon:tC,defaultEyebrow:"Avertissement",colorToken:"warning"},"warning-alt":{icon:tC,defaultEyebrow:"Avertissement",colorToken:"warning"},info:{icon:eH,defaultEyebrow:"Information",colorToken:"info"},"info-square":{icon:eG,defaultEyebrow:"Information",colorToken:"info"}};let gU={wrapper:"GyBEs6eqDODWqnwCpOxkgA==",card:"H4pKi7IOS084SKqk0uyFfw==","card--success":"Yc+Kmcmvk2bUbJwvPd+ztA==","card--error":"qlQ3boD91foq+pO8piYM9Q==","card--warning":"+saabNyI2jV1RFmo+4Ggzw==","card--info":"hQvSQJ9lXVa4+WqICvWmFQ==",body:"UweKpMInr5Gk7FaBD5PKUw==",icon:"_7Hl059E-jiqdGfi2Fb7NQQ==",textArea:"XWDeilHanNAG+waXginzsw==",eyebrow:"VL4zl-URrFpGVQ+9Q78q1Q==",title:"GsPNPqYPa1DgbBA8SflK-g==",description:"vki-oFtrZPJfrXBNph1o9g==",closeButton:"JVG-auHlci1Qq5baFfgK1w==",actionsRow:"D4Ei6TMzlNUZXEhyvYFl5w==",actionButton:"vDOcCETP0Tg78PBf1+D5wQ==","actionButton--primary":"M5CeDQDbJCaliICbl1CZhQ==","actionButton--secondary":"EaDTATDS5SHmXghyS+5P2w==","actionButton--danger":"L-Gz2FqBtGPKiZm5v8YYlg==",progressTrack:"MN3iwSn3QIJeWC9eYIP6RQ==",progressFill:"wQc9y8YYdjvKSmG+bfICrQ=="};var gW=function(e){var t=e.colorVar,r=e.mode,n=e.durationMs,i=e.value;return(0,h.jsx)("div",{className:gU.progressTrack,children:"countdown"===r?(0,h.jsx)(hK.div,{className:gU.progressFill,style:{background:t},initial:{width:"100%"},animate:{width:"0%"},transition:{duration:(null!=n?n:4e3)/1e3,ease:"linear"}}):(0,h.jsx)(hK.div,{className:gU.progressFill,style:{background:t},initial:!1,animate:{width:"".concat(Math.max(0,Math.min(100,null!=i?i:0)),"%")},transition:{duration:.3,ease:"easeOut"}})})},g$=function(e){var t,r=e.toast,n=e.closeToast,i=r.description,a=r.kind,o=r.critical,s=r.title,l=r.actionButtonLabel,u=r.onActionButtonClick,c=r.variant,d=void 0===c?"default":c,f=r.eyebrow,p=r.progress,y=r.actions,g=r.duration;r.toastKey;var b=gV[void 0===a?"info":a],w=b.icon,x="var(--colors-".concat(b.colorToken,"-500)"),S=(0,m.useMemo)(function(){return(null==y?void 0:y.length)?y:l&&u?[{label:l,onClick:u,kind:"primary"}]:[]},[y,l,u]),E=(0,m.useCallback)(function(e){e.onClick(),!1!==e.closeOnClick&&n()},[n]),D=null!=g?g:"default"===d&&0===S.length?4e3:void 0;(0,m.useEffect)(function(){if("transfer"===d){if((null!=p?p:0)>=100){var e=setTimeout(n,1200);return function(){return clearTimeout(e)}}return}if(D){var t=setTimeout(n,D);return function(){return clearTimeout(t)}}},[d,p,D,n]);var O=null!=f?f:b.defaultEyebrow,j=(null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](i):i instanceof t)?i.message:i;return(0,h.jsx)(hK.div,{initial:{opacity:0,y:30,scale:.9,filter:"blur(4px)"},animate:{opacity:1,y:0,scale:1,filter:"blur(0px)"},exit:{opacity:0,y:-15,scale:.95,filter:"blur(2px)",transition:{duration:.18}},layout:!0,className:gU.wrapper,children:(0,h.jsxs)(gB,{blurIntensity:"xl",glowIntensity:o?"lg":"sm",shadowIntensity:"md",borderRadius:"var(--border-radius-lg)",className:v()(gU.card,gU["card--".concat(b.colorToken)]),children:[(0,h.jsxs)("div",{className:gU.body,children:[(0,h.jsx)(w,{className:gU.icon,size:20}),(0,h.jsxs)("div",{className:gU.textArea,children:[(0,h.jsx)("span",{className:gU.eyebrow,children:O}),s&&(0,h.jsx)("p",{className:gU.title,children:s}),(0,h.jsx)("div",{className:gU.description,children:j})]}),(0,h.jsx)("button",{type:"button",onClick:n,className:gU.closeButton,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:14})})]}),S.length>0&&(0,h.jsx)("div",{className:gU.actionsRow,children:S.map(function(e,t){var r,n;return(0,h.jsx)("button",{type:"button",className:v()(gU.actionButton,gU["actionButton--".concat(null!=(r=e.kind)?r:"primary")]),onClick:function(){return E(e)},children:e.label},null!=(n=e.id)?n:t)})}),"transfer"===d?(0,h.jsx)(gW,{colorVar:x,mode:"progress",value:p}):D&&(0,h.jsx)(gW,{colorVar:x,mode:"countdown",durationMs:D})]})})};function gz(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gH(e,t){if(e){if("string"==typeof e)return gz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gz(e,t)}}let gG=function(e){var t,r=e.subject,n=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)([]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||gH(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.")}(),i=n[0],a=n[1],o=(0,m.useCallback)(function(e){a(function(t){return t.filter(function(t){return t!==e})})},[]);return(0,m.useEffect)(function(){var e=r.subscribe(function(e){return a(function(t){var r;return((function(e){if(Array.isArray(e))return gz(e)})(r=t.filter(function(t){return e.toastKey?t.toastKey!==e.toastKey:t.description!==e.description||t.kind!==e.kind||t.title!==e.title||t.actionButtonLabel!==e.actionButtonLabel||t.onActionButtonClick!==e.onActionButtonClick}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||gH(r)||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])})});return function(){return e.unsubscribe()}},[r]),(0,h.jsx)(h.Fragment,{children:i.map(function(e){var t;return(0,h.jsx)(g$,{toast:e,closeToast:function(){return o(e)}},null!=(t=e.toastKey)?t:e.id)})})};var gK=new mw.Subject,gY=0;function gZ(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(gG,{subject:gK}))}function gq(e){var t;e&&("string"==typeof(t=e.description)?t.trim().length>0:(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&!mB(t))?setTimeout(function(){var t,r;gK.next((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={id:gY++},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},0):console.error("showToast must be called with an object having a 'description' property that is a non-empty string or object")}var gX=r(7774);function gQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gJ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function g0(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function g1(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return!0;var r=g6[e];return!r||!r()}function g2(e,t){var r,n=null==(r=vi.getState())?void 0:r.workspaceGroup,i=null==n?void 0:n.name;i&&e===i&&vl(function(){var r=vp(e);r&&(r.setState({},!0),r.subscribe(function(){})()),"function"==typeof(null==n?void 0:n.cleanup)&&n.cleanup(),vi.setState(function(e){return g0(gJ({},e),{workspaceGroup:void 0})}),"function"==typeof t&&t()},i?function(e){return e.currentWorkspaceGroup===i}:function(){return!0})}function g3(e,t){var r,n=t.name,i=t.additionalProps;(0,ma.Xb)(n);var a=function(){vt(e.name,{ignoreChanges:!0,onWorkspaceClose:function(){return g4(n,i)},closeWorkspaceGroup:!1})};g1(e.name)?a():vc("closing-workspace-launching-new-workspace",a,null!=(r=e.title)?r:e.name)}function g4(e,t){var r,n,i=(0,ma.Xb)(e),a=vi.getState().workspaceGroup;if(a&&!(null==(r=a.members)?void 0:r.includes(e)))return void g2(a.name,function(){g4(e,t)});var o=null==(n=vi.getState().workspaceGroup)?void 0:n.name,s=g0(gJ({},i),{title:vd(i,t),closeWorkspace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vt(e,t)},closeWorkspaceWithSavedChanges:function(t){return vt(e,gJ({ignoreChanges:!0},t))},promptBeforeClosing:function(t){var r,n;return r=e,n=t,void(g6[r]=n)},setTitle:function(t,r){s.title=t,s.titleNode=r,vi.setState(function(t){var r=t.openWorkspaces.map(function(t){return t.name===e?s:t});return g0(gJ({},t),{openWorkspaces:r})})},currentWorkspaceGroup:o,additionalProps:null!=t?t:{}});function l(e,t){vi.setState(function(r){var n,i=[e].concat(function(e){if(Array.isArray(e))return gQ(e)}(n=null!=t?t:r.openWorkspaces)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e){if(e){if("string"==typeof e)return gQ(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 gQ(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=vs(e);return g0(gJ({},r),{openWorkspaces:i,workspaceWindowState:a})})}o&&vp(o,t);var u=vi.getState().openWorkspaces,c=u.findIndex(function(t){return t.name===e}),d=u.find(function(e){return e.type==s.type});if(0===u.length)l(s);else if(u[0].canHide||0===c)if(c>=0){var f=u[c];l(gJ(g0(gJ({},f),{additionalProps:s.additionalProps}),f.title===vd(f,f.additionalProps)&&{title:vd(s,s.additionalProps)}),u.filter(function(t){return t.name!=e}))}else d?(l(d,vi.getState().openWorkspaces.filter(function(e){return e.type!=s.type})),g3(d,{name:e,additionalProps:t})):l(s);else g3(u[0],{name:e,additionalProps:t})}function g5(e){var t=e.targetUrl,r=e.contextKey,n=e.workspaceName,i=e.additionalProps;vr(r),g4(n,i),(0,gX.oo)({to:t})}var g6={};function g8(e,t){g6[e]=t}function g9(e){return g6[e]}function g7(){var e=vi.getState();vi.setState(g0(gJ({},e),{prompt:null}))}var ve={ignoreChanges:!1,onWorkspaceClose:function(){},closeWorkspaceGroup:!0};function vt(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=gJ({},ve,r);var n=function(){var t,n,i=vi.getState();i.openWorkspaces.find(function(t){return t.name===e});var a=i.openWorkspaces.filter(function(t){return t.name!=e}),o=null==(t=vi.getState().workspaceGroup)?void 0:t.name;o&&r.closeWorkspaceGroup&&g2(o),g6[e]=function(){return!1},vi.setState(function(e){return g0(gJ({},e),{prompt:null,openWorkspaces:a,workspaceWindowState:vs(null==a?void 0:a[0])})}),null==r||null==(n=r.onWorkspaceClose)||n.call(r)};return g1(e,null==r?void 0:r.ignoreChanges)?(n(),!0):(vc("closing-workspace",n,null!=(t=(0,ma.Xb)(e).title)?t:e),!1)}function vr(e){vi.getState().context!=e&&vi.setState({context:e,openWorkspaces:[],prompt:null})}var vn={context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0},vi=(0,mi.createGlobalStore)("workspace",vn);function va(){return vi}function vo(e){var t=vi.getState();vi.setState(g0(gJ({},t),{workspaceWindowState:e}))}function vs(e){var t;return null!=(t=null==e?void 0:e.preferredWindowSize)?t:"normal"}function vl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=vi.getState().openWorkspaces.filter(t).every(function(e){return g1(e.name)}),n=function(){vf(),null==e||e()};r?n():vc("closing-all-workspaces",n)}function vu(){var e=(0,b.useStore)(vi),t=e.workspaceWindowState,r=e.openWorkspaces,n=e.prompt,i=e.workspaceGroup;return(0,m.useMemo)(function(){return{active:r.length>0,prompt:n,workspaceWindowState:t,workspaces:r,workspaceGroup:i}},[r,t,n,i])}function vc(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"closing-workspace":t={title:(0,L.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,L.V)("unsavedChangesInOpenedWorkspace","You may have unsaved changes in the opened workspace. Do you want to discard these changes?"),onConfirm:function(){null==r||r()},confirmText:(0,L.V)("discard","Discard")};break;case"closing-all-workspaces":var i=vi.getState().openWorkspaces.filter(function(e){return!g1(e.name)}).map(function(e,t){var r=e.title;return"".concat(t+1,". ").concat(r)});t={title:(0,L.V)("closingAllWorkspacesPromptTitle","You have unsaved changes"),body:(0,L.V)("closingAllWorkspacesPromptBody","There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",{workspaceNames:i.join(",")}),onConfirm:function(){null==r||r()},confirmText:(0,L.V)("closeAllOpenedWorkspaces","Discard changes in {{count}} workspaces",{count:i.length})};break;case"closing-workspace-launching-new-workspace":t={title:(0,L.V)("unsavedChangesTitleText","Unsaved changes"),body:(0,L.V)("unsavedChangesInWorkspace",'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',{workspaceName:n}),onConfirm:function(){vi.setState(function(e){return g0(gJ({},e),{prompt:null})}),null==r||r()},confirmText:(0,L.V)("openAnyway","Open anyway")};break;default:console.error('Workspace system trying to open unknown prompt type "'.concat(e,'" in function "showWorkspacePrompts"')),null==r||r();return}vi.setState(function(e){return g0(gJ({},e),{prompt:t})})}function vd(e,t){var r;return null!=(r=null==t?void 0:t.workspaceTitle)?r:e.title}function vf(){vi.setState(vn)}function vp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"default"!==e){var r=(0,mi.getGlobalStore)(e,{});return t&&r.setState(function(e){return gJ({},e,t)}),r}}let vh="f7spBy3jUTfjOH25a05A1A==",vm="ZROo9Y2WovRqEcmbEXN7sQ==",vy="+mcQhrE2BMNqPBknif4FqQ==";function vg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vv(e){var t=e.getIcon,r=e.formOpenInTheBackground,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"_7695LgJosRmkPmkyVGdZ-g==",children:"!"}):(0,h.jsx)("span",{className:"vo9ZXEHO6camG8qEsBCH8A==",children:n})]})}var vb=function(e){var t,r=e.getIcon,n=e.label,i=e.iconDescription,a=e.handler,o=e.type,s=e.tagContent,l=(0,b.useLayoutType)(),u=vu(),c=u.workspaces,d=u.workspaceWindowState,f=null!=(t=null==c?void 0:c.findIndex(function(e){return e.type===o}))?t:-1,p="hidden"!==d&&0===f,m=f>0||0===f&&"hidden"===d;return"tablet"===l||"phone"===l?(0,h.jsxs)(_.Button,{className:v()(vh,vg({},vy,p)),iconDescription:i,kind:"ghost",onClick:a,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:vm,children:(0,h.jsx)(vv,{formOpenInTheBackground:m,getIcon:r,tagContent:s})}),(0,h.jsx)("span",{children:n})]}):(0,h.jsx)(_.IconButton,{align:"left","aria-label":i,className:v()(vh,vg({},vy,p)),enterDelayMs:300,kind:"ghost",label:n,onClick:a,size:"md",children:(0,h.jsx)("div",{className:vm,children:(0,h.jsx)(vv,{formOpenInTheBackground:m,getIcon:r,tagContent:s})})})};function vw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vS(e){var t,r,n=e.isWithinWorkspace,i=e.name,a=e.actionMenuProps,o=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vw(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 vw(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.")}(),s=o[0],l=o[1],u=(0,m.useRef)(window.innerHeight),c=(0,m.useContext)(b.ComponentContext).featureName,d=(0,b.useLayoutType)();return(0,m.useEffect)(function(){var e=function(){l(!(0,b.isDesktop)(d)&&u.current>window.innerHeight),u.current!=window.innerHeight&&(u.current=window.innerHeight)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[u]),(0,h.jsx)("aside",{className:v()("GJUJ7TWs47hZNAq1HgT48A==",(vx(r={},"_7+TCfrT4vrpC5TH4e1by0w==",n),vx(r,"bQ0UMzF1JBk1bcCogWlGrw==",s),vx(r,"v-1cRnDYDLbApkU1gJodvg==",!s),r)),children:(0,h.jsx)("div",{className:"WocuWYX1W7JwP94ypr0B8A==",children:(0,h.jsx)(b.ExtensionSlot,{className:"Cn3Jbzq8LOgwfW4fj6XYSQ==",name:"action-menu-".concat(i&&"default"!=i?i:c,"-items-slot"),state:void 0===a?{}:a})})})}var vE=r(2086);function vD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vO(e){if(Array.isArray(e))return e}function vj(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function vC(e,t){if(e){if("string"==typeof e)return vD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vD(e,t)}}var vk=y().forwardRef(function(e,t){var r,n=vO(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vC(r)||vj(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vO(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vC(a,1)||vj())[0];return 16===l||"16"===l||"16px"===l?y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M2 9 2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9z"}),(0,h.jsx)("path",{d:"M14 7 14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"}),o):y().createElement(vE.A,vP({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18z"}),(0,h.jsx)("path",{d:"M30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"}),o)}),vA=r(2283);function vT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vN(e){if(Array.isArray(e))return e}function vR(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vI(e,t){if(e){if("string"==typeof e)return vT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vT(e,t)}}var vM=y().forwardRef(function(e,t){var r,n=vN(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vI(r)||vR(),i=n[0],a=n.slice(1),o=i.children,s=i.size,l=void 0===s?16:s,u=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["children","size"]),c=(vN(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||vI(a,1)||vR())[0];return y().createElement(vE.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:l,height:l,ref:c,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),(0,h.jsx)("path",{d:"M16 18 6 8 7.4 6.6 16 15.2 24.6 6.6 26 8z"}),(0,h.jsx)("path",{d:"M4 22H28V24H4z"}),o)}),v_=r(2768),vL=/[\\^$.*+?()[\]{}|]/g,vF=RegExp(vL.source);let vB=function(e){return(e=(0,v_.A)(e))&&vF.test(e)?e.replace(vL,"\\$&"):e};function vV(e){var t,r,n=e.contextKey,i=vu().prompt;return(0,m.useEffect)(function(){new RegExp("/".concat(vB(n),"(/|$)")).test(window.location.pathname)||console.warn('WorkspaceContainer has provided an invalid context key: "'.concat(n,'". The context key must be part of the URL path, with no initial or trailing slash.'))},[]),(0,m.useEffect)(function(){return vr(n),function(){vr(null)}},[n]),(0,m.useEffect)(function(){var e=function(e){var t=e.detail,r=t.cancelNavigation,i=t.newUrl,a=new RegExp("/".concat(vB(n),"(/|$)")),o=new URL(i),s=a.test(o.pathname),l=vi.getState().openWorkspaces.every(function(e){return g1(e.name)});s||(l?vf():(null==r||r(),vl(function(){(0,gX.oo)({to:i})})))};return window.addEventListener("single-spa:before-routing-event",e),function(){window.removeEventListener("single-spa:before-routing-event",e)}},[]),null!=i?(0,h.jsxs)(_.ComposedModal,{open:!0,onClose:g7,children:[(0,h.jsx)(_.ModalHeader,{title:i.title}),(0,h.jsx)(_.ModalBody,{children:(0,h.jsx)("p",{className:"+SBeVyf3Vs1HLINqeNxwCA==",children:i.body})}),(0,h.jsxs)(_.ModalFooter,{children:[(0,h.jsx)(_.Button,{kind:"secondary",onClick:g7,children:null!=(t=i.cancelText)?t:(0,L.V)("cancel")}),(0,h.jsx)(_.Button,{kind:"danger",onClick:i.onConfirm,children:null!=(r=i.confirmText)?r:(0,L.V)("confirm")})]})]}):null}var vU=r(2879);function vW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vW(Object(r),!0).forEach(function(t){vH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vW(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vG(e){return(vG=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vK(e,t){return(vK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vY(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vZ=function(e){var t=m.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&vK(o,t);var r,n,i,a=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vG(o);e=r?Reflect.construct(t,arguments,vG(this).constructor):t.apply(this,arguments);if(e&&("object"==(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return vY(this)});function o(e){var t;if(function(e,t){if(null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),vH(vY(t=a.call(this,e)),"handleRef",function(e){t.el=e}),vH(vY(t),"addThingToDo",function(e,r){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return r.apply(void 0,arguments)}).catch(function(r){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),r&&r.message&&(r.message="During '".concat(e,"', parcel threw an error: ").concat(r.message)),t.props.handleError?t.props.handleError(r):setTimeout(function(){throw r}),r}))}),vH(vY(t),"getParcelProps",function(){var e=v$(v$({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return n=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,r=e.props.mountParcel||e.mountParcel;if(!r)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(r){t.style[r]=e.props.wrapStyle[r]}),e.props.appendTo.appendChild(t)),e.parcel=r(e.props.config,v$({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return vU.i&&vU.i.Consumer?m.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=vU.i&&vU.i.Consumer?m.createElement(vU.i.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return m.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],vz(o.prototype,n),i&&vz(o,i),o}();vH(vZ,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}});function vq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vq(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 vQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function vJ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function v0(e){var t,r,n,i,a,o,s,l,u=e.workspace,c=e.additionalPropsFromPage,d=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return vQ(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 vQ(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.")}(),f=d[0],p=d[1],y=(r=u.currentWorkspaceGroup,i=(n=vX((0,m.useState)({}),2))[0],a=n[1],s=(o=vX((0,m.useState)(r),2))[0],l=o[1],(0,m.useEffect)(function(){s!==r&&l(r)},[r]),(0,m.useEffect)(function(){var e,t=vp(s);return t&&(a(t.getState()),e=t.subscribe(a)),function(){t&&(null==e||e())}},[s]),i);(0,m.useEffect)(function(){var e=!0;return u.load().then(function(t){e&&p(t)}),function(){e=!1}},[u]);var g=(0,m.useMemo)(function(){return u&&vJ({closeWorkspace:u.closeWorkspace,closeWorkspaceWithSavedChanges:u.closeWorkspaceWithSavedChanges,promptBeforeClosing:u.promptBeforeClosing,setTitle:u.setTitle},c,y,u.additionalProps)},[u,c,y]);return f?(0,h.jsx)(vZ,vJ({config:f,mountParcel:mn.mountRootParcel},g),u.name):(0,h.jsx)(_.InlineLoading,{className:"H6dHj0oBasuEG5BThmRHhw==",description:"".concat((0,L.V)("loading","Loading")," ...")})}function v1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v2(e){var t,r,n,i=e.contextKey,a=e.overlay,o=e.showSiderailAndBottomNav,s=e.additionalWorkspaceProps,l=e.actionMenuProps,u=(0,b.useLayoutType)(),c=vu(),d=c.workspaces,f=c.workspaceWindowState,p=c.workspaceGroup,y=null==p?void 0:p.name,g=d[0],w="hidden"===f||null==g,x=null!=(t=null==g?void 0:g.width)?t:a?"wider":"narrow",S=(0,m.useMemo)(function(){return o||y&&!w},[y,w,o]);return(0,b.useBodyScrollLock)(!w&&!(0,b.isDesktop)(u)),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:o?"AHHuuXanpv12GtwxcK3ogA==":"E7yiHjGY1d2E+4Abx0jh7g==",children:[(0,h.jsx)("aside",{className:v()(a?"_7nS969hUMMe36pOPOtI3Fg==":"l+rgkmJVqlq3O++ce09vbA==",(v1(r={},"AJHmQ2iPp0Yic2jCrU6NIA==",w),v1(r,"Vb16L-oIiZ74fu1QQMOirg==","narrow"===x),v1(r,"Bn7v8I0voAWdRO7H9eKQiw==","wider"===x),v1(r,"vN8kIRmjOaaBlFkAfGVJ5g==","extra-wide"===x),r)),children:(0,h.jsx)("div",{className:v()("pBPmoo5CjBr1d116v8KrrA==",(v1(n={},"Sew5FCwW7FqufRz17h2owg==","maximized"===f),v1(n,"BxutHfy6GErdVMJpbvmkVg==",w),n)),children:d.map(function(e,t){return(0,h.jsx)("div",{className:v()("tYaVVyyd6Tcv58Bbo4mkcw==",v1({},"lBaWeq3srAzA5Ngk2dm0kQ==",0!==t)),children:(0,h.jsx)(m.Suspense,{fallback:null,children:(0,h.jsx)(q.I18nextProvider,{i18n:window.i18next,defaultNS:e.moduleName,children:(0,h.jsx)(v3,{workspaceInstance:e,additionalWorkspaceProps:s})})})},"workspace-container-".concat(e?e.name:"empty-".concat(t)))})})}),(0,h.jsx)(vV,{contextKey:i})]}),S&&(0,h.jsx)(vS,{name:y,isWithinWorkspace:!o,actionMenuProps:l})]})}function v3(e){var t,r=e.workspaceInstance,n=e.additionalWorkspaceProps,i=(0,q.useTranslation)().t,a=(0,b.useLayoutType)(),o=vu(),s=o.workspaceWindowState,l=o.workspaceGroup,u=null==l?void 0:l.name,c="maximized"===s;(0,m.useEffect)(function(){var e=i(r.title);e!==r.title&&r.setTitle(e)},[r.title,i,r.setTitle]);var d=(0,m.useContext)(b.ComponentContext).featureName,f=(0,m.useCallback)(function(){vo(c?"normal":"maximized")},[c]),p=(0,m.useMemo)(function(){return null!=r?r:{}},[r]),y=p.canHide,g=void 0!==y&&y,w=p.canMaximize,x=p.currentWorkspaceGroup,S=p.closeWorkspace,E=(0,m.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){v1(e,t,r[t])})}return e}({},n,null==r?void 0:r.additionalProps)},[n,r]);return r&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(_.Header,{"aria-label":(0,L.V)("workspaceHeader","Workspace Header"),className:"-3kjtr5uYox3-kZnfzcNuw==",children:[!(0,b.isDesktop)(a)&&!g&&(0,h.jsx)(_.HeaderMenuButton,{"aria-label":(0,L.V)("close","Close"),renderMenuIcon:(0,h.jsx)(eo,{}),onClick:function(){return S()}}),(0,h.jsx)(_.HeaderName,{prefix:"",children:null!=(t=r.titleNode)?t:i(r.title)}),(0,h.jsx)("div",{className:"_2Zd7JZN89pW2XY09qZBAAw=="}),(0,h.jsxs)(_.HeaderGlobalBar,{className:"ppNsYZC7Z00KBemD1lNxQA==",children:[(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-group-".concat(r.currentWorkspaceGroup,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-type-".concat(r.type,"-slot"),state:E}),(0,h.jsx)(b.ExtensionSlot,{name:"workspace-header-".concat(d,"-slot"),state:E}),(0,b.isDesktop)(a)&&(0,h.jsxs)(h.Fragment,{children:[(void 0!==w&&w||c)&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":c?(0,L.V)("minimize","Minimize"):(0,L.V)("maximize","Maximize"),onClick:f,children:c?(0,h.jsx)(vk,{}):(0,h.jsx)(vA.hz,{})}),g&&!u?(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("hide","Hide"),onClick:function(){return vo("hidden")},children:(0,h.jsx)(es,{})}):(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(eO,{})})]}),"tablet"===a&&g&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("close","Close"),onClick:function(){return null==S?void 0:S()},children:(0,h.jsx)(vM,{})})]})]}),(0,h.jsx)("div",{className:v()("cNdK12M+p0cj6LR0VGui6A==",v1({},"RXftxuAFC8bU7RXpujMdHA==",!!(void 0===x?"":x))),children:(0,h.jsx)(v0,{workspace:r,additionalPropsFromPage:n},r.name)})]})}var v4=r(188),v5=r(8254);function v6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v8(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function v9(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){v8(a,n,i,o,s,"next",e)}function s(e){v8(a,n,i,o,s,"throw",e)}o(void 0)})}}function v7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function be(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function bt(e){return function(e){if(Array.isArray(e))return v6(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return v6(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 v6(e,void 0)}}(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 br(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function bn(e,t){return v9(function(){var r;return br(this,function(n){switch(n.label){case 0:if(!(r=ma.J_.getState().openedGroup))return[3,3];if(!(r.groupName!==e||!bo(r.props,t)))return[3,2];return[4,bs({reason:"CLOSE_WORKSPACE_GROUP",explicit:!1})];case 1:if(!n.sent())return[2,!1];return[3,3];case 2:return[2,!0];case 3:return ma.J_.setState(function(r){return be(v7({},r),{openedGroup:{groupName:e,props:t},openedWindows:[]})}),[2,!0]}})})()}function bi(e){return v9(function(){var t,r,n,i;return br(this,function(a){switch(a.label){case 0:if(r=(t=ma.J_.getState()).openedGroup,n=t.openedWindows,!r)return[3,4];if(!(n.length>0))return[3,3];if(i=e)return[3,2];return[4,bs({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:i=a.sent(),a.label=2;case 2:if(!i)return[2,!1];a.label=3;case 3:return ma.J_.setState(function(e){return be(v7({},e),{openedGroup:null,openedWindows:[]})}),[2,!0];case 4:return[2,!0]}})})()}function ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v9(function(){var i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return br(this,function(j){switch(j.label){case 0:if(!(i=ma.J_.getState()).registeredWorkspacesByName[e])throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered"));if(!(a=(0,ma.Ml)(e)))throw Error("Unable to launch workspace ".concat(e,". Workspace is not registered to a workspace window"));if(o=i.openedGroup,s=a.name,!(l=(0,ma.o1)(s)))throw Error("Unable to launch workspace ".concat(e,". Workspace window ").concat(a.name," is not registered to a workspace group"));if(c=(u=(0,ma.YX)(e))>=0,!(o&&(o.groupName!==l.name||!bo(o.props,n))))return[3,2];return[4,bs({reason:"CLOSE_WORKSPACE_GROUP",explicit:!0})];case 1:if(j.sent())return ma.J_.setState(be(v7({},i),{openedGroup:{groupName:l.name,props:n},openedWindows:[{windowName:s,openedWorkspaces:[bf(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 2:if(!c)return[3,9];if(p=i.openedWindows[u],h=null!=(d=null==(f=i.openedGroup)?void 0:f.props)?d:{},m=i.isMostRecentlyOpenedWindowHidden,y=p.openedWorkspaces,!bo(p.props,r))return[3,6];if(!((g=y.find(function(t){return t.workspaceName===e}))&&bo(g.props,t)))return[3,3];return(m||u!==i.openedWindows.length-1)&&ma.J_.setState(bl.restoreWindow(i,s)),[2,!0];case 3:return[4,bs({reason:"CLOSE_WORKSPACE",explicit:!1,windowName:s,workspaceName:e})];case 4:if(j.sent())return ma.J_.setState(be(v7({},i),{openedGroup:{groupName:l.name,props:null!=(v=null==i||null==(w=i.openedGroup)?void 0:w.props)?v:h},openedWindows:bt(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bf(e,t)],props:null!=(b=null==p?void 0:p.props)?b:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 5:return[3,8];case 6:return[4,bs({reason:"CLOSE_WINDOW",explicit:!1,windowName:s})];case 7:if(j.sent())return ma.J_.setState(be(v7({},i),{openedGroup:{groupName:l.name,props:null!=h?h:null==i||null==(x=i.openedGroup)?void 0:x.props},openedWindows:bt(i.openedWindows.filter(function(e,t){return t!==u})).concat([{windowName:s,openedWorkspaces:[bf(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 8:return[3,12];case 9:if("closable"!=l.persistence)return[3,11];return[4,bs({reason:"CLOSE_OTHER_WINDOWS",explicit:!1,windowNameToSpare:a.name})];case 10:if(j.sent())return ma.J_.setState(be(v7({},i),{openedGroup:{groupName:l.name,props:null!=(S=null!=n?n:null==i||null==(E=i.openedGroup)?void 0:E.props)?S:null},openedWindows:[{windowName:s,openedWorkspaces:[bf(e,t)],props:r,maximized:!1}],isMostRecentlyOpenedWindowHidden:!1})),[2,!0];return[2,!1];case 11:return ma.J_.setState(be(v7({},i),{openedGroup:{groupName:l.name,props:null!=(D=null!=n?n:null==i||null==(O=i.openedGroup)?void 0:O.props)?D:null},openedWindows:bt(i.openedWindows).concat([{windowName:s,openedWorkspaces:[bf(e,t)],props:r,maximized:!1}]),isMostRecentlyOpenedWindowHidden:!1})),[2,!0];case 12:return[2]}})})()}function bo(e,t){return null==e||null==t||(0,v5.b)(e,t)}function bs(e){function t(e,t){for(var r=[],n=e.openedWorkspaces.length-1;n>=0;n--){var i=e.openedWorkspaces[n];if(i.hasUnsavedChanges&&r.push(i),t&&i.workspaceName===t)break}return r}var r=ma.J_.getState(),n=r.openedWindows,i=r.workspaceTitleByWorkspaceName,a=[];switch(e.reason){case"CLOSE_WORKSPACE_GROUP":a=n.flatMap(function(e){return t(e)});break;case"CLOSE_WINDOW":var o=n.find(function(t){return t.windowName===e.windowName});if(!o)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(o);break;case"CLOSE_WORKSPACE":var s=n.find(function(t){return t.windowName===e.windowName});if(!s)throw Error("Window ".concat(e.windowName," not found in opened windows."));a=t(s,e.workspaceName);break;case"CLOSE_OTHER_WINDOWS":a=n.filter(function(t){return t.windowName!==e.windowNameToSpare}).flatMap(function(e){return t(e)})}return 0===a.length?Promise.resolve(!0):new Promise(function(e){var t=mb("workspace2-close-prompt",{onConfirm:function(){t(),e(!0)},onCancel:function(){t(),e(!1)},affectedWorkspaceTitles:a.map(function(e){return i[e.workspaceName]})})})}var bl={setWindowMaximized:function(e,t,r){var n=e.openedWindows.findIndex(function(e){return e.windowName===t}),i=bt(e.openedWindows),a=be(v7({},i[n]),{maximized:r});return i[n]=a,be(v7({},e),{openedWindows:i})},hideWindow:function(e){return be(v7({},e),{isMostRecentlyOpenedWindowHidden:!0})},restoreWindow:function(e,t){var r=e.openedWindows.findIndex(function(e){return e.windowName===t}),n=e.openedWindows[r],i=bt(e.openedWindows.filter(function(e,t){return t!==r})).concat([n]);return be(v7({},e),{openedWindows:i,isMostRecentlyOpenedWindowHidden:!1})},closeWorkspace:function(e,t){var r=(0,ma.YX)(t);if(r<0)return e;var n=v7({},e.openedWindows[r]),i=n.openedWorkspaces.findIndex(function(e){return e.workspaceName===t}),a=bt(e.openedWindows);n.openedWorkspaces=n.openedWorkspaces.slice(0,i);var o=e.isMostRecentlyOpenedWindowHidden;if(0===n.openedWorkspaces.length){var s=r===e.openedWindows.length-1;a.splice(r,1),s&&a.length>0&&(o=!1)}else a[r]=n;return be(v7({},e),{openedWindows:a,isMostRecentlyOpenedWindowHidden:o})},openChildWorkspace:function(e,t,r,n){var i=e.registeredWorkspacesByName[r];if(!i)throw Error('No workspace named "'.concat(r,'" registered'));var a=e.registeredWorkspacesByName[t];if(!a)throw Error('No workspace named "'.concat(t,'" registered'));if(a.window!==i.window)throw Error("Child workspace ".concat(r," does not belong to the same workspace window as parent workspace ").concat(t));var o=e.openedWindows.findIndex(function(e){return e.windowName===i.window});if(-1==o)throw Error("Cannot open child workspace ".concat(r," as window ").concat(i.window," is not opened"));var s=e.openedWindows[o].openedWorkspaces,l=s.findIndex(function(e){return e.workspaceName===t});if(-1===l)throw Error("Cannot open child workspace ".concat(r," from parent workspace ").concat(t," as the parent is not opened within the workspace window"));var u=s.slice(0,l+1);return{openedWindows:e.openedWindows.map(function(e,t){return t==o?be(v7({},e),{openedWorkspaces:bt(u).concat([bf(r,n)])}):e})}},setHasUnsavedChanges:function(e,t,r){var n=(0,ma.YX)(t);if(n<0)return e;var i=v7({},e.openedWindows[n]),a=i.openedWorkspaces.findIndex(function(e){return e.workspaceName===t});if(a<0)return e;i.openedWorkspaces[a]=be(v7({},i.openedWorkspaces[a]),{hasUnsavedChanges:r});var o=bt(e.openedWindows);return o[n]=i,be(v7({},e),{openedWindows:o})},setWorkspaceTitle:function(e,t,r){var n=v7({},e.workspaceTitleByWorkspaceName);return null===r?delete n[t]:n[t]=r,be(v7({},e),{workspaceTitleByWorkspaceName:n})}};function bu(){return(0,b.useStoreWithActions)(ma.J_,bl)}var bc=function(){return(0,m.useContext)(vU.i)},bd=function(){return Object.keys(ma.J_.getState().registeredWorkspacesByName)};function bf(e,t){return{workspaceName:e,props:null!=t?t:{},hasUnsavedChanges:!1,uuid:(0,v4.A)()}}let bp={workspaceOuterContainer:"bPVpyfZzXGTGRy6q-9pUCQ==",narrowWorkspace:"kSYS7aTPRggp+MU8vlcg9Q==",widerWorkspace:"nW2HBDZ0RgkGRkWQv4sdoQ==",extraWideWorkspace:"em5yAU5C7oWbHDo0sV+3mw==",workspaceMiddleContainer:"Bx1i6z+7q-g19Un039FkIw==",maximized:"Kfygrk5eNBXuECXupuCX8g==",hidden:"RPimX0oediR2hea+lS-OuQ==",workspaceInnerContainer:"_5zxptoWhQKImthth5lAP+g==",workspaceSpacer:"E+9820x1sb5UGVFe-CBnKA==",loader:"vmBQnPcRkkl1-BXrxfe78A==",hiddenExtraWorkspace:"qkbMGOnFdM1xyc3yNGcang==",header:"IZ-2+-SpwQ-zVx81DihBdw==",headerButtons:"_81a2NYhmPVTD24yRK8d2FQ==",workspaceContent:"eetPy90L7DgJzpdTBFH3sg==",overlayHeaderSpacer:"ruc6rYzwbrMxADrXzvYMPA==",isActionMenuOpened:"XgCkc1lLTADQAwD3tG9jVA==",showActionMenu:"sHRt1Fx7e+48j2yyo8ktzg==",marginWorkspaceContent:"TN+S+hiol289+iSd7tDjwA==",workspaceContainerWithActionMenu:"xLg8emf8GoZJo-KsUJV1QQ==",workspaceFixedContainer:"W9cgZ7vfCSiTpKs+aaYksQ==",workspaceContainerWithoutActionMenu:"fRrxdLWEtrSuNfqGjVjqVA=="};function bh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bm=function(e){var t,r,n,i,a=e.title,o=e.children,s=e.hasUnsavedChanges,l=void 0!==s&&s,u=(0,b.useLayoutType)(),c=bu(),d=c.setWindowMaximized,f=c.hideWindow,p=c.setHasUnsavedChanges,y=c.openedWindows,g=c.openedGroup,w=c.registeredGroupsByName,x=c.registeredWindowsByName,S=c.registeredWorkspacesByName,E=c.workspaceTitleByWorkspaceName,D=c.setWorkspaceTitle,O=c.isMostRecentlyOpenedWindowHidden,j=bc(),P=j.workspaceName,C=j.isRootWorkspace,k=j.closeWorkspace,A=j.showActionMenu,T=(0,ma.YX)(P),N=y[T],R=null==N?void 0:N.openedWorkspaces.find(function(e){return e.workspaceName===P});if((0,m.useEffect)(function(){(null==R?void 0:R.hasUnsavedChanges)!=l&&p(P,null!=l&&l)},[null==R?void 0:R.hasUnsavedChanges,l,P,p]),(0,m.useEffect)(function(){E[P]!==a&&D(P,a)},[E,P,a,D]),T<0||null==g||null==R)return null;var I=w[g.groupName];if(!I)throw Error("Cannot find registered workspace group ".concat(g.groupName));var M=S[P].window,F=x[M];if(!F)throw Error("Cannot find registered workspace window ".concat(M));var B=F.icon,V=F.canMaximize,U="closable"===I.persistence,W=!!B&&!U,$=N.maximized,z=null!=(t=null==F?void 0:F.width)?t:"narrow",H=Object.values(x).some(function(e){return e.group===g.groupName&&void 0!==e.icon}),G=T<y.length-1||O;return(0,h.jsxs)("div",{className:v()(bp.workspaceOuterContainer,(bh(r={},bp.narrowWorkspace,"narrow"===z),bh(r,bp.widerWorkspace,"wider"===z),bh(r,bp.extraWideWorkspace,"extra-wide"===z),bh(r,bp.isActionMenuOpened,H),r)),children:[(0,h.jsx)("div",{className:v()(bp.workspaceSpacer,bh({},bp.hidden,G))}),(0,h.jsx)("div",{className:v()(bp.workspaceMiddleContainer,(bh(n={},bp.maximized,$),bh(n,bp.hidden,G),bh(n,bp.isRootWorkspace,C),bh(n,bp.showActionMenu,A),n)),children:(0,h.jsxs)("div",{className:v()(bp.workspaceInnerContainer,(bh(i={},bp.maximized,$),bh(i,bp.hidden,G),bh(i,bp.isRootWorkspace,C),i)),children:[(0,h.jsxs)(_.Header,{"aria-label":(0,L.V)("workspaceHeader"),className:bp.header,children:[(0,h.jsx)(_.HeaderName,{prefix:"",children:a}),(0,h.jsx)("div",{className:bp.overlayHeaderSpacer}),(0,h.jsx)(_.HeaderGlobalBar,{className:bp.headerButtons,children:(0,b.isDesktop)(u)?(0,h.jsxs)(h.Fragment,{children:[(V||$)&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":$?(0,L.V)("minimize"):(0,L.V)("maximize"),onClick:function(){return d(M,!$)},children:$?(0,h.jsx)(vk,{}):(0,h.jsx)(vA.hz,{})}),W&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(es,{})}),!U&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("close"),onClick:function(){return k({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]}):(0,h.jsxs)(h.Fragment,{children:[W&&(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("hide"),onClick:function(){return f()},children:(0,h.jsx)(vM,{})}),(0,h.jsx)(_.HeaderGlobalAction,{"aria-label":(0,L.V)("close"),onClick:function(){U?bi():k({closeWindow:!0})},children:(0,h.jsx)(eO,{})})]})})]}),(0,h.jsx)("div",{className:v()(bp.workspaceContent),children:o})]})})]})};let by="jc6--ve4CL-z756RWjy-Gg==",bg="whLL8QyjyxlJqTQo67X7BQ==",bv="fbyFm5PlSWWUnG9aPE8kTg==",bb="+aVpzvvOae5n83hGlMESXg==";function bw(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function bx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bS(e){var t=e.getIcon,r=e.hasUnsavedChanges,n=e.tagContent;return(0,h.jsxs)(h.Fragment,{children:[t({size:16}),r?(0,h.jsx)("span",{className:"sRkvSBatkOj+HMw7m2i81Q==",children:"!"}):(0,h.jsx)("span",{className:"XMH0DAK2HUw4W4tYCVa-Fg==",children:n})]})}var bE=function(e){var t,r,n,i=e.icon,a=e.label,o=e.tagContent,s=e.workspaceToLaunch,l=e.onBeforeWorkspaceLaunch,u=(0,b.useLayoutType)(),c=bu(),d=c.openedWindows,f=c.restoreWindow,p=c.hideWindow,y=c.isMostRecentlyOpenedWindowHidden,g=(0,m.useContext)(b.ComponentContext).extension,w=d.findIndex(function(e){return e.windowName===(null==g?void 0:g.extensionId)}),x=d[w],S=null!=x,E=S&&(w<d.length-1||y),D=S&&!E,O=null!=(t=null==x?void 0:x.openedWorkspaces.some(function(e){return e.hasUnsavedChanges}))&&t,j=function(){var e;return(e=function(){var e,t;return function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:if(!S)return[3,1];return E?f(x.windowName):p(),[3,3];case 1:return[4,null==(e=null==l?void 0:l())||e];case 2:r.sent()&&(t=s.workspaceName,ba(t,s.workspaceProps,s.windowProps)),r.label=3;case 3:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bw(a,n,i,o,s,"next",e)}function s(e){bw(a,n,i,o,s,"throw",e)}o(void 0)})})()};return"tablet"===u||"phone"===u?(0,h.jsxs)(_.Button,{className:v()(by,(bx(r={},bv,S&&!D),bx(r,bb,D),r)),iconDescription:a,kind:"ghost",onClick:j,role:"button",tabIndex:0,size:"md",children:[(0,h.jsx)("span",{className:bg,children:(0,h.jsx)(bS,{hasUnsavedChanges:O,getIcon:i,tagContent:o})}),(0,h.jsx)("span",{children:a})]}):(0,h.jsx)(_.IconButton,{align:"left","aria-label":a,className:v()(by,(bx(n={},bv,S&&!D),bx(n,bb,D),n)),enterDelayMs:300,kind:"ghost",label:a,onClick:j,size:"md",children:(0,h.jsx)("div",{className:bg,children:(0,h.jsx)(bS,{hasUnsavedChanges:O,getIcon:i,tagContent:o})})})},bD=r(3447);let bO="_6Gke0iocK8-7xF6UDXtjtQ==";function bj(e){var t=e.workspaceGroup,r=e.groupProps,n=(0,b.useLayoutType)(),i=t.persistence;return(0,h.jsx)("aside",{className:"T2lMV3y-c2DH29-1sQdY7g==",children:(0,h.jsxs)("div",{className:bO,children:["closable"==i&&(0,b.isDesktop)(n)&&(0,h.jsx)(_.IconButton,{align:"left",onClick:function(){return bi()},label:(0,L.V)("close"),kind:"ghost",children:(0,h.jsx)(eO,{})}),(0,h.jsx)(b.ComponentContext.Provider,{value:{moduleName:t.moduleName,featureName:t.name},children:(0,h.jsx)(b.ExtensionSlot,{className:bO,name:t.name,state:{groupProps:r}})})]})})}var bP=r(8148);function bC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function bk(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function bA(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){bk(a,n,i,o,s,"next",e)}function s(e){bk(a,n,i,o,s,"throw",e)}o(void 0)})}}function bT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var bR=function(e){var t=e.lifeCycle,r=e.openedWorkspace,n=e.openedWindow,i=e.isRootWorkspace,a=e.isLeafWorkspace,o=e.showActionMenu,s=bu(),l=s.openedGroup,u=s.closeWorkspace,c=s.openChildWorkspace,d=(0,m.useMemo)(function(){return r&&{closeWorkspace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bA(function(){var t,i,a,o,s,l;return bN(this,function(c){switch(c.label){case 0:if(i=void 0!==(t=e.closeWindow)&&t,o=void 0!==(a=e.discardUnsavedChanges)&&a,!i)return[3,3];if(s=o)return[3,2];return[4,bs({reason:"CLOSE_WINDOW",explicit:!0,windowName:n.windowName})];case 1:s=c.sent(),c.label=2;case 2:if(s)return u(n.openedWorkspaces[0].workspaceName),[2,!0];return[2,!1];case 3:if(l=o)return[3,5];return[4,bs({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:r.workspaceName})];case 4:l=c.sent(),c.label=5;case 5:if(l)return u(r.workspaceName),[2,!0];return[2,!1];case 6:return[2]}})})()},launchChildWorkspace:function(e,t){return bA(function(){var i,a,o;return bN(this,function(s){switch(s.label){case 0:if(i=r.workspaceName,-1===(o=(a=n.openedWorkspaces).findIndex(function(e){return e.workspaceName===i})))return[2];if(o===a.length-1||!a.slice(o+1).some(function(e){return e.hasUnsavedChanges}))return[3,2];return[4,bs({reason:"CLOSE_WORKSPACE",explicit:!0,windowName:n.windowName,workspaceName:a[o+1].workspaceName})];case 1:if(!s.sent())return[2];s.label=2;case 2:return c(i,e,t||{}),[2]}})})()},workspaceName:r.workspaceName,workspaceProps:r.props,windowProps:n.props,groupProps:l&&l.props?l.props:null,isRootWorkspace:i,isLeafWorkspace:a,windowName:n.windowName,showActionMenu:o}},[r,u,l,n]);if(!t){var f,p,y=ma.J_.getState().registeredWorkspacesByName[r.workspaceName],g=y&&y.window?y.window:void 0,b=ma.J_.getState().registeredWindowsByName,w=g?b[g]:void 0,x=w&&w.width?w.width:"narrow",S=Object.values(b).some(function(e){return e.group===(null==l?void 0:l.groupName)&&void 0!==e.icon});return(0,h.jsxs)("div",{className:v()(bp.workspaceOuterContainer,(bT(f={},bp.narrowWorkspace,"narrow"===x),bT(f,bp.widerWorkspace,"wider"===x),bT(f,bp.extraWideWorkspace,"extra-wide"===x),bT(f,bp.isActionMenuOpened,S),f)),children:[(0,h.jsx)("div",{className:bp.workspaceSpacer}),(0,h.jsx)("div",{className:v()(bp.workspaceMiddleContainer,(bT(p={},bp.isRootWorkspace,i),bT(p,bp.showActionMenu,o),p)),children:(0,h.jsx)("div",{className:v()(bp.workspaceInnerContainer,bT({},bp.isRootWorkspace,i)),children:(0,h.jsx)(_.InlineLoading,{className:bp.loader,description:"".concat((0,L.V)("loading")," ...")})})})]})}return(0,h.jsx)(vZ,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){bT(e,t,r[t])})}return e}({config:t,mountParcel:mn.mountRootParcel},d),r.workspaceName)};let bI=function(e){var t,r=e.openedWindow,n=e.showActionMenu,i=r.openedWorkspaces,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)())||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return bC(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 bC(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=a[0],s=a[1],l=ma.J_.getState().registeredWorkspacesByName;return(0,m.useEffect)(function(){Promise.all(i.map(function(e){var t=l[e.workspaceName],r=t.moduleName,n=t.component;return(0,bP.o)(r,n)})).then(s)},[i]),(0,h.jsx)(h.Fragment,{children:i.map(function(e,t){return(0,h.jsx)(bR,{openedWorkspace:e,openedWindow:r,lifeCycle:o&&o[t]?o[t]:void 0,isRootWorkspace:0===t,isLeafWorkspace:t===i.length-1,showActionMenu:n},e.uuid)})})};function bM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b_(e){e&&(0,mV.createRoot)(e).render((0,h.jsx)(bL,{}))}function bL(){var e,t=bu(),r=t.openedGroup,n=t.openedWindows,i=t.registeredGroupsByName,a=t.registeredWindowsByName;if((0,m.useEffect)(function(){return(0,bD.mI)("before-page-changed",function(e){var t=e.newPage,n=e.cancelNavigation,a=e.oldUrl,o=e.newUrl;if(r){if(t)return void n(bi().then(function(e){return!e}));var s=i[r.groupName],l=null==s?void 0:s.scopePattern;l&&function(e,t,r){try{var n=new URL(t,window.location.origin).pathname,i=new URL(r,window.location.origin).pathname,a=new RegExp(e),o=n.match(a),s=i.match(a);if(!o||!s)return!0;if(o.length>1)return!o.slice(1).every(function(e,t){return e===s[t+1]});return!1}catch(e){return!0}}(l,a,o)&&n(bi().then(function(e){return!e}))}})},[r,i]),!r)return null;var o=i[r.groupName],s=n.some(function(e){return e.maximized}),l=o.name,u=Object.values(a).filter(function(e){return e.group===l&&void 0!==e.icon}).sort(function(e,t){var r,n;return(null!=(r=e.order)?r:Number.MAX_VALUE)-(null!=(n=t.order)?n:Number.MAX_VALUE)}).length>0;return(0,h.jsxs)("div",{className:v()("_2u2mcnHqn77Jo33H5a1H2g==",(bM(e={},"_7RHYZQ-hEc8EPJUY-c9Hpg==",o.overlay),bM(e,"gvJRdHcF9cqv2qaFk6opjw==",s),e)),children:[(0,h.jsx)("div",{className:"_40ITOKKqqE8nvSQt409qiA==",children:n.map(function(e){return(0,h.jsx)(bI,{openedWindow:e,showActionMenu:u},e.windowName)})}),u&&(0,h.jsx)(bj,{workspaceGroup:o,groupProps:r.props})]})}function bF(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bB(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bU,bW,b$,bz,bH,bG,bK,bY,bZ,bq,bX,bQ,bJ,b0,b1,b2,b3,b4,b5,b6,b8,b9,b7,we,wt,wr,wn,wi,wa={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wo={duration:.5,overwrite:!1,delay:0},ws=2*Math.PI,wl=ws/4,wu=0,wc=Math.sqrt,wd=Math.cos,wf=Math.sin,wp=function(e){return"string"==typeof e},wh=function(e){return"function"==typeof e},wm=function(e){return"number"==typeof e},wy=function(e){return void 0===e},wg=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},wv=function(e){return!1!==e},wb=function(){return"u">typeof window},ww=function(e){return wh(e)||wp(e)},wx="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},wS=Array.isArray,wE=/random\([^)]+\)/g,wD=/,\s*/g,wO=/(?:-?\.?\d|\.)+/gi,wj=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wP=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,wC=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wk=/[+-]=-?[.\d]+/,wA=/[^,'"\[\]\s]+/gi,wT=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wN={},wR={},wI=function(e){return(wR=xe(e,wN))&&S1},wM=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},w_=function(e,t){return!t&&console.warn(e)},wL=function(e,t){return e&&(wN[e]=t)&&wR&&(wR[e]=t)||wN},wF=function(){return 0},wB={suppressEvents:!0,isStart:!0,kill:!1},wV={suppressEvents:!0,kill:!1},wU={suppressEvents:!0},wW={},w$=[],wz={},wH={},wG={},wK=30,wY=[],wZ="",wq=function(e){var t,r,n=e[0];if(wg(n)||wh(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=wY.length;r--&&!wY[r].targetTest(n););t=wY[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ss(e[r],t)))||e.splice(r,1);return e},wX=function(e){return e._gsap||wq(xI(e))[0]._gsap},wQ=function(e,t,r){return(r=e[t])&&wh(r)?e[t]():wy(r)&&e.getAttribute&&e.getAttribute(t)||r},wJ=function(e,t){return(e=e.split(",")).forEach(t)||e},w0=function(e){return Math.round(1e5*e)/1e5||0},w1=function(e){return Math.round(1e7*e)/1e7||0},w2=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},w3=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},w4=function(){var e,t,r=w$.length,n=w$.slice(0);for(e=0,wz={},w$.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},w5=function(e){return!!(e._initted||e._startAt||e.add)},w6=function(e,t,r,n){w$.length&&!b5&&w4(),e.render(t,r,n||!!(b5&&t<0&&w5(e))),w$.length&&!b5&&w4()},w8=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(wA).length<2?t:wp(e)?e.trim():e},w9=function(e){return e},w7=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},xe=function(e,t){for(var r in t)e[r]=t[r];return e},xt=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=wg(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},xr=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},xn=function(e){var t,r=e.parent||b8,n=e.keyframes?(t=wS(e.keyframes),function(e,r){for(var n in r)n in e||"duration"===n&&t||"ease"===n||(e[n]=r[n])}):w7;if(wv(e.inherit))for(;r;)n(e,r.vars.defaults),r=r.parent||r._dp;return e},xi=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},xa=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,o=e[n];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},xo=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,a=t._next;i?i._next=a:e[r]===t&&(e[r]=a),a?a._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},xs=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},xl=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},xu=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xc=function(e,t,r,n){return e._startAt&&(b5?e._startAt.revert(wV):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},xd=function(e){return e._repeat?xf(e._tTime,e=e.duration()+e._rDelay)*e:0},xf=function(e,t){var r=Math.floor(e=w1(e/t));return e&&r===e?r-1:r},xp=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},xh=function(e){return e._end=w1(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},xm=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=w1(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),xh(e),r._dirty||xl(r,e)),e},xy=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=xp(e.rawTime(),t),(!t._dur||xA(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),xl(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},xg=function(e,t,r,n){return t.parent&&xs(t),t._start=w1((wm(r)?r:r||e!==b8?xP(e,r,t):e._time)+t._delay),t._end=w1(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),xa(e,t,"_first","_last",e._sort?"_start":0),xx(t)||(e._recent=t),n||xy(e,t),e._ts<0&&xm(e,e._tTime),e},xv=function(e,t){return(wN.ScrollTrigger||wM("scrollTrigger",t))&&wN.ScrollTrigger.create(t,e)},xb=function(e,t,r,n,i){return(Sw(e,t,i),e._initted)?!r&&e._pt&&!b5&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&wr!==x3.frame?(w$.push(e),e._lazy=[i,n],1):void 0:1},xw=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},xx=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},xS=function(e,t,r,n){var i,a,o,s=e.ratio,l=t<0||!t&&(!e._start&&xw(e)&&!(!e._initted&&xx(e))||(e._ts<0||e._dp._ts<0)&&!xx(e))?0:1,u=e._rDelay,c=0;if(u&&e._repeat&&(a=xf(c=xA(0,e._tDur,t),u),e._yoyo&&1&a&&(l=1-l),a!==xf(e._tTime,u)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||b5||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&xb(e,t,n,r,c))return;for(o=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,i=e._pt;i;)i.r(l,i.d),i=i._next;t<0&&xc(e,t,r,!0),e._onUpdate&&!r&&xH(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&xH(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&xs(e,1),r||b5||(xH(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},xE=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},xD=function(e,t,r,n){var i=e._repeat,a=w1(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:w1(a*(i+1)+e._rDelay*i):a,o>0&&!n&&xm(e,e._tTime=e._tDur*o),e.parent&&xh(e),r||xl(e.parent,e),e},xO=function(e){return bF(e,Su)?xl(e):xD(e,e._dur)},xj={_start:0,endTime:wF,totalDuration:wF},xP=function e(t,r,n){var i,a,o,s=t.labels,l=t._recent||xj,u=t.duration()>=1e8?l.endTime(!1):t._dur;return wp(r)&&(isNaN(r)||r in s)?(a=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===a||">"===a)?(i>=0&&(r=r.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=u),s[r]):(a=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(a=a/100*(wS(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+a:u+a):null==r?u:+r},xC=function(e,t,r){var n,i,a=wm(t[1]),o=(a?2:1)+(e<2?0:1),s=t[o];if(a&&(s.duration=t[1]),s.parent=r,e){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=wv(i.vars.inherit)&&i.parent;s.immediateRender=wv(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new SP(t[0],s,t[o+1])},xk=function(e,t){return e||0===e?t(e):t},xA=function(e,t,r){return r<e?e:r>t?t:r},xT=function(e,t){return wp(e)&&(t=wT.exec(e))?t[1]:""},xN=[].slice,xR=function(e,t){return e&&wg(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&wg(e[0]))&&!e.nodeType&&e!==b9},xI=function(e,t,r){var n;return b6&&!t&&b6.selector?b6.selector(e):wp(e)&&!r&&(b7||!x4())?xN.call((t||we).querySelectorAll(e),0):wS(e)?(void 0===n&&(n=[]),e.forEach(function(e){var t;return wp(e)&&!r||xR(e,1)?(t=n).push.apply(t,xI(e)):n.push(e)})||n):xR(e)?xN.call(e,0):e?[e]:[]},xM=function(e){return e=xI(e)[0]||w_("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return xI(t,r.querySelectorAll?r:r===e?w_("Invalid scope")||we.createElement("div"):e)}},x_=function(e){return e.sort(function(){return .5-Math.random()})},xL=function(e){if(wh(e))return e;var t=wg(e)?e:{each:e},r=Sr(t.ease),n=t.from||0,i=parseFloat(t.base)||0,a={},o=n>0&&n<1,s=isNaN(n)||o,l=t.axis,u=n,c=n;return wp(n)?u=c=({center:.5,edges:.5,end:1})[n]||0:!o&&s&&(u=n[0],c=n[1]),function(e,o,d){var f,p,h,m,y,g,v,b,w,x=(d||t).length,S=a[x];if(!S){if(!(w="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(v=-1e8;v<(v=d[w++].getBoundingClientRect().left)&&w<x;);w<x&&w--}for(g=0,S=a[x]=[],f=s?Math.min(w,x)*u-.5:n%w,p=1e8===w?0:s?x*c/w-.5:n/w|0,v=0,b=1e8;g<x;g++)h=g%w-f,m=p-(g/w|0),S[g]=y=l?Math.abs("y"===l?m:h):wc(h*h+m*m),y>v&&(v=y),y<b&&(b=y);"random"===n&&x_(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(t.amount)||parseFloat(t.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===n?-1:1),S.b=x<0?i-x:i,S.u=xT(t.amount||t.each)||0,r=r&&x<0?St(r):r}return x=(S[e]-S.min)/S.max||0,w1(S.b+(r?r(x):x)*S.v)+S.u}},xF=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=w1(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(wm(r)?0:xT(r))}},xB=function(e,t){var r,n,i=wS(e);return!i&&wg(e)&&(r=i=e.radius||1e8,e.values?(n=!wm((e=xI(e.values))[0]))&&(r*=r):e=xF(e.increment)),xk(t,i?wh(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var i,a,o=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,u=0,c=e.length;c--;)(i=n?(i=e[c].x-o)*i+(a=e[c].y-s)*a:Math.abs(e[c]-o))<l&&(l=i,u=c);return u=!r||l<=r?e[u]:t,n||u===t||wm(t)?u:u+xT(t)}:xF(e))},xV=function(e,t,r,n){return xk(wS(e)?!t:!0===r?(r=0,!1):!n,function(){return wS(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},xU=function(e,t,r){return xk(r,function(r){return e[~~t(r)]})},xW=function(e){return e.replace(wE,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(wD);return xV(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},x$=function(e,t,r,n,i){var a=t-e,o=n-r;return xk(i,function(t){return r+((t-e)/a*o||0)})},xz=function(e,t,r){var n,i,a,o=e.labels,s=1e8;for(n in o)(i=o[n]-t)<0==!!r&&i&&s>(i=Math.abs(i))&&(a=n,s=i);return a},xH=function(e,t,r){var n,i,a,o=e.vars,s=o[t],l=b6,u=e._ctx;if(s)return n=o[t+"Params"],i=o.callbackScope||e,r&&w$.length&&w4(),u&&(b6=u),a=n?s.apply(i,n):s.call(i),b6=l,a},xG=function(e){return xs(e),e.scrollTrigger&&e.scrollTrigger.kill(!!b5),1>e.progress()&&xH(e,"onInterrupt"),e},xK=[],xY=function(e){if(e)if(e=!e.name&&e.default||e,wb()||e.headless){var t=e.name,r=wh(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:wF,render:S_,add:Sg,kill:SF,modifier:SL,rawVars:0},a={targetTest:0,get:0,getSetter:SN,aliases:{},register:0};if(x4(),e!==n){if(wH[t])return;w7(n,w7(xr(e,i),a)),xe(n.prototype,xe(i,xr(e,a))),wH[n.prop=t]=n,e.targetTest&&(wY.push(n),wW[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}wL(t,n),e.register&&e.register(S1,n,SU)}else xK.push(e)},xZ={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},xq=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},xX=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p=e?wm(e)?[e>>16,e>>8&255,255&e]:0:xZ.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),xZ[e])p=xZ[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),e="#"+n+n+(i=e.charAt(2))+i+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(p=f=e.match(wO),t){if(~e.indexOf("="))return p=e.match(wj),r&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,i=(l=p[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-i,p.length>3&&(p[3]*=1),p[0]=xq(o+1/3,n,i),p[1]=xq(o,n,i),p[2]=xq(o-1/3,n,i);else p=e.match(wO)||xZ.transparent;p=p.map(Number)}return t&&!f&&(n=p[0]/255,l=((u=Math.max(n,i=p[1]/255,a=p[2]/255))+(c=Math.min(n,i,a)))/2,u===c?o=s=0:(d=u-c,s=l>.5?d/(2-u-c):d/(u+c),o=(u===n?(i-a)/d+6*(i<a):u===i?(a-n)/d+2:(n-i)/d+4)*60),p[0]=~~(o+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),r&&p.length<4&&(p[3]=1),p},xQ=function(e){var t=[],r=[],n=-1;return e.split(x0).forEach(function(e){var i=e.match(wP)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},xJ=function(e,t,r){var n,i,a,o,s="",l=(e+s).match(x0),u=t?"hsla(":"rgba(",c=0;if(!l)return e;if(l=l.map(function(e){return(e=xX(e,t,1))&&u+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(a=xQ(e),(n=r.c).join(s)!==a.c.join(s)))for(o=(i=e.replace(x0,"1").split(wP)).length-1;c<o;c++)s+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:r).shift());if(!i)for(o=(i=e.split(x0)).length-1;c<o;c++)s+=i[c]+l[c];return s+i[o]},x0=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in xZ)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),x1=/hsl[a]?\(/,x2=function(e){var t,r=e.join(" ");if(x0.lastIndex=0,x0.test(r))return t=x1.test(r),e[1]=xJ(e[1],t),e[0]=xJ(e[0],t,xQ(e[1])),!0},x3=(bZ=Date.now,bq=500,bX=33,bJ=bQ=bZ(),b0=1e3/240,b1=1e3/240,b2=[],b3=function e(t){var r,n,i,a,o=bZ()-bJ,s=!0===t;if((o>bq||o<0)&&(bQ+=o-bX),bJ+=o,((r=(i=bJ-bQ)-b1)>0||s)&&(a=++bG.frame,bK=i-1e3*bG.time,bG.time=i/=1e3,b1+=r+(r>=b0?4:b0-r),n=1),s||(b$=bz(e)),n)for(bY=0;bY<b2.length;bY++)b2[bY](i,bK,a,t)},bG={time:0,frame:0,tick:function(){b3(!0)},deltaRatio:function(e){return bK/(1e3/(e||60))},wake:function(){wt&&(!b7&&wb()&&(we=(b9=b7=window).document||{},wN.gsap=S1,(b9.gsapVersions||(b9.gsapVersions=[])).push(S1.version),wI(wR||b9.GreenSockGlobals||!b9.gsap&&b9||{}),xK.forEach(xY)),bH="u">typeof requestAnimationFrame&&requestAnimationFrame,b$&&bG.sleep(),bz=bH||function(e){return setTimeout(e,b1-1e3*bG.time+1|0)},wi=1,b3(2))},sleep:function(){(bH?cancelAnimationFrame:clearTimeout)(b$),wi=0,bz=wF},lagSmoothing:function(e,t){bX=Math.min(t||33,bq=e||1/0)},fps:function(e){b0=1e3/(e||240),b1=1e3*bG.time+b0},add:function(e,t,r){var n=t?function(t,r,i,a){e(t,r,i,a),bG.remove(n)}:e;return bG.remove(e),b2[r?"unshift":"push"](n),x4(),n},remove:function(e,t){~(t=b2.indexOf(e))&&b2.splice(t,1)&&bY>=t&&bY--},_listeners:b2}),x4=function(){return!wi&&x3.wake()},x5={},x6=/^[\d.\-M][\d.\-,\s]/,x8=/["']/g,x9=function(e){for(var t,r,n,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)r=a[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[o]=isNaN(n)?n.replace(x8,"").trim():+n,o=r.substr(t+1).trim();return i},x7=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Se=function(e){var t=(e+"").split("("),r=x5[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[x9(t[1])]:x7(e).split(",").map(w8)):x5._CE&&x6.test(e)?x5._CE("",e):r},St=function(e){return function(t){return 1-e(1-t)}},Sr=function(e,t){return e&&(wh(e)?e:x5[e]||Se(e))||t},Sn=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,a={easeIn:t,easeOut:r,easeInOut:n};return wJ(e,function(e){for(var t in x5[e]=wN[e]=a,x5[i=e.toLowerCase()]=r,a)x5[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=x5[e+"."+t]=a[t]}),a},Si=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},Sa=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/ws*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*wf((e-o)*a)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Si(s);return a=ws/a,l.config=function(r,n){return e(t,r,n)},l},So=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Si(n);return i.config=function(r){return e(t,r)},i};wJ("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;Sn(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),x5.Linear.easeNone=x5.none=x5.Linear.easeIn,Sn("Elastic",Sa("in"),Sa("out"),Sa()),Sd=2*(Sc=1/2.75),Sf=2.5*Sc,Sn("Bounce",function(e){return 1-Sp(1-e)},Sp=function(e){return e<Sc?7.5625*e*e:e<Sd?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<Sf?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),Sn("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Sn("Circ",function(e){return-(wc(1-e*e)-1)}),Sn("Sine",function(e){return 1===e?1:-wd(e*wl)+1}),Sn("Back",So("in"),So("out"),So()),x5.SteppedEase=x5.steps=wN.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+ +!t,i=+!!t,a=.99999999;return function(e){return((n*xA(0,a,e)|0)+i)*r}}},wo.ease=x5["quad.out"],wJ("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return wZ+=e+","+e+"Params,"});var Ss=function(e,t){this.id=wu++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:wQ,this.set=t?t.getSetter:SN},Sl=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xD(this,+e.duration,1,1),this.data=e.data,b6&&(this._ctx=b6,b6.data.push(this)),wi||x3.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xD(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(x4(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(xm(this,e),!r._dp||r.parent||xy(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&xg(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),w6(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+xd(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+xd(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?xf(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?xp(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(xA(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),xh(this),xu(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(x4(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=w1(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&xg(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(wv(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?xp(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=wU);var t=b5;return b5=e,w5(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),b5=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xO(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xO(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(xP(this,e),wv(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,wv(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(n){var i=wh(e)?e:w9,a=function(){var e=t.then;t.then=null,r&&r(),wh(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),n(i),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){xG(this)},e}();w7(Sl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Su=function(e){function t(t,r){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=wv(t.sortChildren),b8&&xg(t.parent||b8,bB(n),r),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&xv(bB(n),t.scrollTrigger),n}bV(t,e);var r=t.prototype;return r.to=function(e,t,r){return xC(0,arguments,this),this},r.from=function(e,t,r){return xC(1,arguments,this),this},r.fromTo=function(e,t,r,n){return xC(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,xn(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new SP(e,t,xP(this,r),1),this},r.call=function(e,t,r){return xg(this,SP.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,a,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=o,r.parent=this,new SP(e,r,xP(this,i)),this},r.staggerFrom=function(e,t,r,n,i,a,o){return r.runBackwards=1,xn(r).immediateRender=wv(r.immediateRender),this.staggerTo(e,t,r,n,i,a,o)},r.staggerFromTo=function(e,t,r,n,i,a,o,s){return n.startAt=r,xn(n).immediateRender=wv(n.immediateRender),this.staggerTo(e,t,n,i,a,o,s)},r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d,f,p,h,m=this._time,y=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=e<=0?0:w1(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==b8&&v>y&&e>=0&&(v=y),v!==this._tTime||r||b){if(m!==this._time&&g&&(v+=this._time-m,e+=this._time-m),n=v,d=this._start,l=!(c=this._ts),b&&(g||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=w1(v%s),v===y?(o=this._repeat,n=g):((o=~~(f=w1(v/s)))&&o===f&&(n=g,o--),n>g&&(n=g)),f=xf(this._tTime,s),!m&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),p&&1&o&&(n=g-n,h=1),o!==f&&!this._lock){var w=p&&1&f,x=w===(p&&1&o);if(o<f&&(w=!w),m=w?0:v%g?g:v,this._lock=1,this.render(m||(h?0:w1(o*s)),t,!g)._lock=0,this._tTime=v,!t&&this.parent&&xH(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1,f=o),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,y=this._tDur,x&&(this._lock=2,m=w?g:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=xE(this,w1(m),w1(n)))&&(v-=n-(n=u._start)),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&v&&g&&!t&&!f&&(xH(this,"onStart"),this._tTime!==v))return this;if(n>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var S=e<0?e:n;i;){if(a=i._prev,(i._act||S<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(S-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(S-i._start)*i._ts,t,r||b5&&w5(i)),n!==this._time||!this._ts&&!l){u=0,a&&(v+=this._zTime=S?-1e-8:1e-8);break}}i=a}}if(u&&!t&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=d,xh(this),this.render(e,t,r);this._onUpdate&&!t&&xH(this,"onUpdate",!0),(v===y&&this._tTime>=this.totalDuration()||!v&&m)&&(d===this._start||Math.abs(c)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(v===y&&this._ts>0||!v&&this._ts<0)&&xs(this,1),t||e<0&&!m||!v&&!m&&y||(xH(this,v===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<y&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(wm(t)||(t=xP(this,t,e)),!bF(e,Sl)){if(wS(e))return e.forEach(function(e){return r.add(e,t)}),this;if(wp(e))return this.addLabel(e,t);if(!wh(e))return this;e=SP.delayedCall(0,e)}return this!==e?xg(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],a=this._first;a;)a._start>=n&&(bF(a,SP)?t&&i.push(a):(r&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,r)))),a=a._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return wp(e)?this.removeLabel(e):wh(e)?this.killTweensOf(e):(e.parent===this&&xo(this,e),e===this._recent&&(this._recent=this._last),xl(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=w1(x3.time-(this._ts>0?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=xP(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=SP.delayedCall(0,t||wF,r);return n.data="isPause",this._hasPause=1,xg(this,n,xP(this,e))},r.removePause=function(e){var t=this._first;for(e=xP(this,e);t;)t._start===e&&"isPause"===t.data&&xs(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)Sh!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=xI(e),a=this._first,o=wm(t);a;)bF(a,SP)?w3(a._targets,i)&&(o?(!Sh||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&n.push(a):(r=a.getTweensOf(i,t)).length&&n.push.apply(n,r),a=a._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=xP(n,e),a=t,o=a.startAt,s=a.onStart,l=a.onStartParams,u=a.immediateRender,c=SP.to(n,w7({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==e&&xD(c,e,0,1).render(c._time,!0,!0),r=1}s&&s.apply(c,l||[])}},t));return u?c.render(0):c},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,w7({startAt:{time:xP(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),xz(this,xP(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),xz(this,xP(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);var n,i=this._first,a=this.labels;for(e=w1(e);i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in a)a[n]>=r&&(a[n]+=e);return xl(this)},r.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),xl(this)},r.totalDuration=function(e){var t,r,n,i=0,a=this._last,o=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(n=this.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&this._sort&&a._ts&&!this._lock?(this._lock=1,xg(this,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!this._dp||n&&n.smoothChildTiming)&&(this._start+=w1(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),o=0),a._end>i&&a._ts&&(i=a._end),a=t;xD(this,this===b8&&this._time>i?this._time:i,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(b8._ts&&(w6(b8,xp(e,b8)),wr=x3.frame),x3.frame>=wK){wK+=wa.autoSleep||120;var t=b8._first;if((!t||!t._ts)&&wa.autoSleep&&x3._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||x3.sleep()}}},t}(Sl);w7(Su.prototype,{_lock:0,_hasPause:0,_forcing:0});var Sc,Sd,Sf,Sp,Sh,Sm,Sy=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m=new SU(this._pt,e,t,0,1,SM,null,i),y=0,g=0;for(m.b=r,m.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=xW(n)),a&&(a(h=[r,n],e,t),r=h[0],n=h[1]),l=r.match(wC)||[];s=wC.exec(n);)c=s[0],d=n.substring(y,s.index),u?u=(u+1)%5:"rgba("===d.substr(-5)&&(u=1),c!==l[g++]&&(f=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:f,c:"="===c.charAt(1)?w2(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},y=wC.lastIndex);return m.c=y<n.length?n.substring(y,n.length):"",m.fp=o,(wk.test(n)||p)&&(m.e=0),this._pt=m,m},Sg=function(e,t,r,n,i,a,o,s,l,u){wh(n)&&(n=n(i||0,e,a));var c,d=e[t],f="get"!==r?r:wh(d)?l?e[t.indexOf("set")||!wh(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,p=wh(d)?l?SA:Sk:SC;if(wp(n)&&(~n.indexOf("random(")&&(n=xW(n)),"="===n.charAt(1)&&((c=w2(f,n)+(xT(f)||0))||0===c)&&(n=c)),!u||f!==n||Sm)return isNaN(f*n)||""===n?(d||t in e||wM(t,n),Sy.call(this,e,t,f,n,p,s||wa.stringFilter,l)):(c=new SU(this._pt,e,t,+f||0,n-(f||0),"boolean"==typeof d?SI:SR,0,p),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},Sv=function(e,t,r,n,i){if(wh(e)&&(e=SD(e,i,t,r,n)),!wg(e)||e.style&&e.nodeType||wS(e)||wx(e))return wp(e)?SD(e,i,t,r,n):e;var a,o={};for(a in e)o[a]=SD(e[a],i,t,r,n);return o},Sb=function(e,t,r,n,i,a){var o,s,l,u;if(wH[e]&&!1!==(o=new wH[e]).init(i,o.rawVars?t[e]:Sv(t[e],n,i,a,r),r,n,a)&&(r._pt=s=new SU(r._pt,i,e,0,1,o.render,o,0,o.priority),r!==wn))for(l=r._ptLookup[r._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=s;return o},Sw=function e(t,r,n){var i,a,o,s,l,u,c,d,f,p,h,m,y,g=t.vars,v=g.ease,b=g.startAt,w=g.immediateRender,x=g.lazy,S=g.onUpdate,E=g.runBackwards,D=g.yoyoEase,O=g.keyframes,j=g.autoRevert,P=t._dur,C=t._startAt,k=t._targets,A=t.parent,T=A&&"nested"===A.data?A.vars.targets:k,N="auto"===t._overwrite&&!b4,R=t.timeline,I=g.easeReverse||D;if(!R||O&&v||(v="none"),t._ease=Sr(v,wo.ease),t._rEase=I&&(Sr(I)||t._ease),t._from=!R&&!!g.runBackwards,t._from&&(t.ratio=1),!R||O&&!g.stagger){if(m=(d=k[0]?wX(k[0]).harness:0)&&g[d.prop],i=xr(g,wW),C&&(C._zTime<0&&C.progress(1),r<0&&E&&w&&!j?C.render(-1,!0):C.revert(E&&P?wV:wB),C._lazy=0),b){if(xs(t._startAt=SP.set(k,w7({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!C&&wv(x),startAt:null,delay:0,onUpdate:S&&function(){return xH(t,"onUpdate")},stagger:0},b))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(b5||!w&&!j)&&t._startAt.revert(wV),w&&P&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(E&&P&&!C)if(r&&(w=!1),o=w7({overwrite:!1,data:"isFromStart",lazy:w&&!C&&wv(x),immediateRender:w,stagger:0,parent:A},i),m&&(o[d.prop]=m),xs(t._startAt=SP.set(k,o)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(b5?t._startAt.revert(wV):t._startAt.render(-1,!0)),t._zTime=r,w){if(!r)return}else e(t._startAt,1e-8,1e-8);for(a=0,t._pt=t._ptCache=0,x=P&&wv(x)||x&&!P;a<k.length;a++){if(c=(l=k[a])._gsap||wq(k)[a]._gsap,t._ptLookup[a]=p={},wz[c.id]&&w$.length&&w4(),h=T===k?a:T.indexOf(l),d&&!1!==(f=new d).init(l,m||i,t,h,T)&&(t._pt=s=new SU(t._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(e){p[e]=s}),f.priority&&(u=1)),!d||m)for(o in i)wH[o]&&(f=Sb(o,i,t,h,l,T))?f.priority&&(u=1):p[o]=s=Sg.call(t,l,o,"get",i[o],h,T,0,g.stringFilter);t._op&&t._op[a]&&t.kill(l,t._op[a]),N&&t._pt&&(Sh=t,b8.killTweensOf(l,p,t.globalTime(r)),y=!t.parent,Sh=0),t._pt&&x&&(wz[c.id]=1)}u&&SV(t),t._onInit&&t._onInit(t)}t._onUpdate=S,t._initted=(!t._op||t._pt)&&!y,O&&r<=0&&R.render(1e8,!0,!0)},Sx=function(e,t,r,n,i,a,o,s){var l,u,c,d,f=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!f)for(f=e._ptCache[t]=[],c=e._ptLookup,d=e._targets.length;d--;){if((l=c[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Sm=1,e.vars[t]="+=0",Sw(e,o),Sm=0,s?w_(t+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(d=f.length;d--;)(l=(u=f[d])._pt||u).s=(n||0===n)&&!i?n:l.s+(n||0)+a*l.c,l.c=r-l.s,u.e&&(u.e=w0(r)+xT(u.e)),u.b&&(u.b=l.s+xT(u.b))},SS=function(e,t){var r,n,i,a,o=e[0]?wX(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=xe({},t),s)if(n in r)for(i=(a=s[n].split(",")).length;i--;)r[a[i]]=r[n];return r},SE=function(e,t,r,n){var i,a,o=t.ease||n||"power1.inOut";if(wS(t))a=r[e]||(r[e]=[]),t.forEach(function(e,r){return a.push({t:r/(t.length-1)*100,v:e,e:o})});else for(i in t)a=r[i]||(r[i]=[]),"ease"===i||a.push({t:parseFloat(e),v:t[i],e:o})},SD=function(e,t,r,n,i){return wh(e)?e.call(t,r,n,i):wp(e)&&~e.indexOf("random(")?xW(e):e},SO=wZ+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Sj={};wJ(SO+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return Sj[e]=1});var SP=function(e){function t(t,r,n,i){"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,s,l,u,c,d,f,p=e.call(this,i?r:xn(r))||this,h=p.vars,m=h.duration,y=h.delay,g=h.immediateRender,v=h.stagger,b=h.overwrite,w=h.keyframes,x=h.defaults,S=h.scrollTrigger,E=r.parent||b8,D=(wS(t)||wx(t)?wm(t[0]):"length"in r)?[t]:xI(t);if(p._targets=D.length?wq(D):w_("GSAP target "+t+" not found. https://gsap.com",!wa.nullTargetWarn)||[],p._ptLookup=[],p._overwrite=b,w||v||ww(m)||ww(y)){var O=(r=p.vars).easeReverse||r.yoyoEase;if((a=p.timeline=new Su({data:"nested",defaults:x||{},targets:E&&"nested"===E.data?E.vars.targets:D})).kill(),a.parent=a._dp=bB(p),a._start=0,v||ww(m)||ww(y)){if(l=D.length,d=v&&xL(v),wg(v))for(u in v)~SO.indexOf(u)&&(f||(f={}),f[u]=v[u]);for(o=0;o<l;o++)(s=xr(r,Sj)).stagger=0,O&&(s.easeReverse=O),f&&xe(s,f),c=D[o],s.duration=+SD(m,bB(p),o,c,D),s.delay=(+SD(y,bB(p),o,c,D)||0)-p._delay,!v&&1===l&&s.delay&&(p._delay=y=s.delay,p._start+=y,s.delay=0),a.to(c,s,d?d(o,c,D):0),a._ease=x5.none;a.duration()?m=y=0:p.timeline=0}else if(w){xn(w7(a.vars.defaults,{ease:"none"})),a._ease=Sr(w.ease||r.ease||"none");var j,P,C,k=0;if(wS(w))w.forEach(function(e){return a.to(D,e,">")}),a.duration();else{for(u in s={},w)"ease"===u||"easeEach"===u||SE(u,w[u],s,w.easeEach);for(u in s)for(o=0,j=s[u].sort(function(e,t){return e.t-t.t}),k=0;o<j.length;o++)(C={ease:(P=j[o]).e,duration:(P.t-(o?j[o-1].t:0))/100*m})[u]=P.v,a.to(D,C,k),k+=C.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||p.duration(m=a.duration())}else p.timeline=0;return!0!==b||b4||(Sh=bB(p),b8.killTweensOf(D),Sh=0),xg(E,bB(p),n),r.reversed&&p.reverse(),r.paused&&p.paused(!0),(g||!m&&!w&&p._start===w1(E._time)&&wv(g)&&function e(t){return!t||t._ts&&e(t.parent)}(bB(p))&&"nested"!==E.data)&&(p._tTime=-1e-8,p.render(Math.max(0,-y)||0)),S&&xv(bB(p),S),p}bV(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,a,o,s,l,u,c,d=this._time,f=this._tDur,p=this._dur,h=e<0,m=e>f-1e-8&&!h?f:e<1e-8?0:e;if(p){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h||this._lazy){if(n=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&h)return this.totalTime(100*o+e,t,r);if(n=w1(m%o),m===f?(a=this._repeat,n=p):(a=~~(s=w1(m/o)))&&a===s?(n=p,a--):n>p&&(n=p),(l=this._yoyo&&1&a)&&(n=p-n),s=xf(this._tTime,o),n===d&&!r&&this._initted&&a===s)return this._tTime=m,this;a!==s&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(w1(o*a),!0).invalidate()._lock=0)}if(!this._initted){if(xb(this,h?e:n,r,t,m))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(e,t,r)}if(this._rEase){var y=n<d;if(y!==this._inv){var g=y?d:p-d;this._inv=y,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=g?(y?-1:1)/g:0,this._invScale=y?-this.ratio:1-this.ratio,this._invEase=y?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/p);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&m&&!t&&!s&&(xH(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(e<0?e:c._dur*c._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(h&&xc(this,e,t,r),xH(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&xH(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(h&&!this._onUpdate&&xc(this,e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&xs(this,1),!t&&!(h&&!d)&&(m||d||l)&&(xH(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else xS(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},r.resetTo=function(e,t,r,n,i){wi||x3.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||Sw(this,a),Sx(this,e,t,r,n,this._ease(a/this._dur),a,i))?this.resetTo(e,t,r,n,1):(xm(this,0),this.parent||xa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?xG(this):this.scrollTrigger&&this.scrollTrigger.kill(!!b5),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Sh&&!0!==Sh.vars.overwrite)._first||xG(this),this.parent&&r!==this.timeline.totalDuration()&&xD(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,a,o,s,l,u,c=this._targets,d=e?xI(e):c,f=this._ptLookup,p=this._pt;if((!t||"all"===t)&&xi(c,d))return"all"===t&&(this._pt=0),xG(this);for(n=this._op=this._op||[],"all"!==t&&(wp(t)&&(s={},wJ(t,function(e){return s[e]=1}),t=s),t=SS(c,t)),u=c.length;u--;)if(~d.indexOf(c[u]))for(s in i=f[u],"all"===t?(n[u]=t,o=i,a={}):(a=n[u]=n[u]||{},o=t),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||xo(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&xG(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return xC(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return xC(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return b8.killTweensOf(e,t,r)},t}(Sl);w7(SP.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wJ("staggerTo,staggerFrom,staggerFromTo",function(e){SP[e]=function(){var t=new Su,r=xN.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var SC=function(e,t,r){return e[t]=r},Sk=function(e,t,r){return e[t](r)},SA=function(e,t,r,n){return e[t](n.fp,r)},ST=function(e,t,r){return e.setAttribute(t,r)},SN=function(e,t){return wh(e[t])?Sk:wy(e[t])&&e.setAttribute?ST:SC},SR=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},SI=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},SM=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},S_=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},SL=function(e,t,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(e,t,r),a=i},SF=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):xo(this,n,"_pt"),n=r;return!t},SB=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},SV=function(e){for(var t,r,n,i,a=e._pt;a;){for(t=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=t}e._pt=n},SU=function(){function e(e,t,r,n,i,a,o,s,l){this.t=t,this.s=n,this.c=i,this.p=r,this.r=a||SR,this.d=o||this,this.set=s||SC,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=SB,this.m=e,this.mt=r,this.tween=t},e}();wJ(wZ+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return wW[e]=1}),wN.TweenMax=wN.TweenLite=SP,wN.TimelineLite=wN.TimelineMax=Su,b8=new Su({sortChildren:!1,defaults:wo,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),wa.stringFilter=x2;var SW=[],S$={},Sz=[],SH=0,SG=0,SK=function(e){return(S$[e]||Sz).map(function(e){return e()})},SY=function(){var e=Date.now(),t=[];e-SH>2&&(SK("matchMediaInit"),SW.forEach(function(e){var r,n,i,a,o=e.queries,s=e.conditions;for(n in o)(r=b9.matchMedia(o[n]).matches)&&(i=1),r!==s[n]&&(s[n]=r,a=1);a&&(e.revert(),i&&t.push(e))}),SK("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),SH=e,SK("matchMedia"))},SZ=function(){function e(e,t){this.selector=t&&xM(t),this.data=[],this._r=[],this.isReverted=!1,this.id=SG++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){wh(e)&&(r=t,t=e,e=wh);var n=this,i=function(){var e,i=b6,a=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=xM(r)),b6=n,e=t.apply(n,arguments),wh(e)&&n._r.push(e),b6=i,n.selector=a,n.isReverted=!1,e};return n.last=i,e===wh?i(n,function(e){return n.add(null,e)}):e?n[e]=i:i},t.ignore=function(e){var t=b6;b6=null,e(this),b6=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return bF(r,e)?t.push.apply(t,r.getTweens()):bF(r,SP)&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e){for(var n,i=r.getTweens(),a=r.data.length;a--;)"isFlip"===(n=r.data[a]).data&&(n.revert(),n.getChildren(!0,!0,!1).forEach(function(e){return i.splice(i.indexOf(e),1)}));for(i.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),a=r.data.length;a--;)bF(n=r.data[a],Su)?"nested"!==n.data&&(n.scrollTrigger&&n.scrollTrigger.revert(),n.kill()):!bF(n,SP)&&n.revert&&n.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var o=SW.length;o--;)SW[o].id===this.id&&SW.splice(o,1)},t.revert=function(e){this.kill(e||{})},e}(),Sq=function(){function e(e){this.contexts=[],this.scope=e,b6&&b6.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){wg(e)||(e={matches:e});var n,i,a,o=new SZ(0,r||this.scope),s=o.conditions={};for(i in b6&&!o.selector&&(o.selector=b6.selector),this.contexts.push(o),t=o.add("onMatch",t),o.queries=e,e)"all"===i?a=1:(n=b9.matchMedia(e[i]))&&(0>SW.indexOf(o)&&SW.push(o),(s[i]=n.matches)&&(a=1),n.addListener?n.addListener(SY):n.addEventListener("change",SY));return a&&t(o,function(e){return o.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),SX={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return xY(e)})},timeline:function(e){return new Su(e)},getTweensOf:function(e,t){return b8.getTweensOf(e,t)},getProperty:function(e,t,r,n){wp(e)&&(e=xI(e)[0]);var i=wX(e||{}).get,a=r?w9:w8;return"native"===r&&(r=""),e?t?a((wH[t]&&wH[t].get||i)(e,t,r,n)):function(t,r,n){return a((wH[t]&&wH[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=xI(e)).length>1){var n=e.map(function(e){return S1.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var a=wH[t],o=wX(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=a?function(t){var n=new a;wn._pt=0,n.init(e,r?t+r:t,wn,0,[e]),n.render(1,n),wn._pt&&S_(1,wn)}:o.set(e,s);return a?l:function(t){return l(e,s,r?t+r:t,o,1)}},quickTo:function(e,t,r){var n,i=S1.to(e,w7(((n={})[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(e,r,n){return i.resetTo(t,e,r,n)};return a.tween=i,a},isTweening:function(e){return b8.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Sr(e.ease,wo.ease)),xt(wo,e||{})},config:function(e){return xt(wa,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!wH[e]&&!wN[e]&&w_(t+" effect requires "+e+" plugin.")}),wG[t]=function(e,t,n){return r(xI(e),w7(t||{},i),n)},a&&(Su.prototype[t]=function(e,r,n){return this.add(wG[t](e,wg(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){x5[e]=Sr(t)},parseEase:function(e,t){return arguments.length?Sr(e,t):x5},getById:function(e){return b8.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new Su(e);for(i.smoothChildTiming=wv(e.smoothChildTiming),b8.remove(i),i._dp=0,i._time=i._tTime=b8._time,r=b8._first;r;)n=r._next,(t||!(!r._dur&&bF(r,SP)&&r.vars.onComplete===r._targets[0]))&&xg(i,r,r._start-r._delay),r=n;return xg(b8,i,0),i},context:function(e,t){return e?new SZ(e,t):b6},matchMedia:function(e){return new Sq(e)},matchMediaRefresh:function(){return SW.forEach(function(e){var t,r,n=e.conditions;for(r in n)n[r]&&(n[r]=!1,t=1);t&&e.revert()})||SY()},addEventListener:function(e,t){var r=S$[e]||(S$[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=S$[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:function e(t,r,n){var i=r-t;return wS(t)?xU(t,e(0,t.length),r):xk(n,function(e){return(i+(e-t)%i)%i+t})},wrapYoyo:function e(t,r,n){var i=r-t,a=2*i;return wS(t)?xU(t,e(0,t.length-1),r):xk(n,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},distribute:xL,random:xV,snap:xB,normalize:function(e,t,r){return x$(e,t,0,1,r)},getUnit:xT,clamp:function(e,t,r){return xk(r,function(r){return xA(e,t,r)})},splitColor:xX,toArray:xI,selector:xM,mapRange:x$,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||xT(r))}},interpolate:function e(t,r,n,i){var a=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!a){var o,s,l,u,c,d=wp(t),f={};if(!0===n&&(i=1)&&(n=null),d)t={p:t},r={p:r};else if(wS(t)&&!wS(r)){for(s=1,l=[],c=(u=t.length)-2;s<u;s++)l.push(e(t[s-1],t[s]));u--,a=function(e){var t=Math.min(c,~~(e*=u));return l[t](e-t)},n=r}else i||(t=xe(wS(t)?[]:{},t));if(!l){for(o in r)Sg.call(f,t,o,"get",r[o]);a=function(e){return S_(e,f)||(d?t.p:t)}}}return xk(n,a)},shuffle:x_},install:wI,effects:wG,ticker:x3,updateRoot:Su.updateRoot,plugins:wH,globalTimeline:b8,core:{PropTween:SU,globals:wL,Tween:SP,Timeline:Su,Animation:Sl,getCache:wX,_removeLinkedListItem:xo,reverting:function(){return b5},context:function(e){return e&&b6&&(b6.data.push(e),e._ctx=b6),b6},suppressOverwrites:function(e){return b4=e}}};wJ("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return SX[e]=SP[e]}),x3.add(Su.updateRoot),wn=SX.to({},{duration:0});var SQ=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},SJ=function(e,t){var r,n,i,a=e._targets;for(r in t)for(n=a.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=SQ(i,r)),i&&i.modifier&&i.modifier(t[r],e,a[n],r))},S0=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(wp(r)&&(n={},wJ(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}SJ(e,r)}}}},S1=SX.registerPlugin({name:"attr",init:function(e,t,r,n,i){var a,o,s;for(a in this.tween=r,t)s=e.getAttribute(a)||"",(o=this.add(e,"setAttribute",(s||0)+"",t[a],n,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)b5?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},S0("roundProps",xF),S0("modifiers"),S0("snap",xB))||SX;function S2(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}SP.version=Su.version=S1.version="3.15.0",wt=1,wb()&&x4(),x5.Power0,x5.Power1,x5.Power2,x5.Power3,x5.Power4,x5.Linear,x5.Quad,x5.Cubic,x5.Quart,x5.Quint,x5.Strong,x5.Elastic,x5.Back,x5.SteppedEase,x5.Bounce,x5.Sine,x5.Expo,x5.Circ;var S3,S4,S5,S6,S8,S9,S7,Ee={},Et=180/Math.PI,Er=Math.PI/180,En=Math.atan2,Ei=/([A-Z])/g,Ea=/(left|right|width|margin|padding|x)/i,Eo=/[\s,\(]\S/,Es={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},El=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Eu=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ec=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Ed=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Ef=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ep=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Eh=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},Em=function(e,t,r){return e.style[t]=r},Ey=function(e,t,r){return e.style.setProperty(t,r)},Eg=function(e,t,r){return e._gsap[t]=r},Ev=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Eb=function(e,t,r,n,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},Ew=function(e,t,r,n,i){var a=e._gsap;a[t]=r,a.renderTransform(i,a)},Ex="transform",ES=Ex+"Origin",EE=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Ee&&a){if(this.tfm=this.tfm||{},"transform"===t)return Es.transform.split(",").forEach(function(t){return e.call(n,t,r)});if(~(t=Es[t]||t).indexOf(",")?t.split(",").forEach(function(e){return n.tfm[e]=EU(i,e)}):this.tfm[t]=o.x?o[t]:EU(i,t),t===ES&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Ex)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ES,r,"")),t=Ex}(a||r)&&this.props.push(t,r,a[t])},ED=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},EO=function(){var e,t,r=this.props,n=this.target,i=n.style,a=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?n[r[e]](r[e+2]):n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(Ei,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=S9())&&e.isStart||i[Ex]||(ED(i),a.zOrigin&&i[ES]&&(i[ES]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},Ej=function(e,t){var r={target:e,props:[],revert:EO,save:EE};return e._gsap||S1.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},EP=function(e,t){var r=S3.createElementNS?S3.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):S3.createElement(e);return r&&r.style?r:S3.createElement(e)},EC=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Ei,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,EA(r)||r,1)||""},Ek="O,Moz,ms,Ms,Webkit".split(","),EA=function(e,t,r){var n=(t||S6).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Ek[i]+e in n););return i<0?null:(3===i?"ms":i>=0?Ek[i]:"")+e},ET=function(){"u">typeof window&&window.document&&(S4=(S3=window.document).documentElement,S6=EP("div")||{style:{}},EP("div"),ES=(Ex=EA(Ex))+"Origin",S6.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",S7=!!EA("perspective"),S9=S1.core.reverting,S5=1)},EN=function(e){var t,r=e.ownerSVGElement,n=EP("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",n.appendChild(i),S4.appendChild(n);try{t=i.getBBox()}catch(e){}return n.removeChild(i),S4.removeChild(n),t},ER=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},EI=function(e){var t,r;try{t=e.getBBox()}catch(n){t=EN(e),r=1}return t&&(t.width||t.height)||r||(t=EN(e)),!t||t.width||t.x||t.y?t:{x:+ER(e,["x","cx","x1"])||0,y:+ER(e,["y","cy","y1"])||0,width:0,height:0}},EM=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&EI(e))},E_=function(e,t){if(t){var r,n=e.style;t in Ee&&t!==ES&&(t=Ex),n.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty("--"===r?t:t.replace(Ei,"-$1").toLowerCase())):n.removeAttribute(t)}},EL=function(e,t,r,n,i,a){var o=new SU(e._pt,t,r,0,1,a?Eh:Ep);return e._pt=o,o.b=n,o.e=i,e._props.push(r),o},EF={deg:1,rad:1,turn:1},EB={grid:1,flex:1},EV=function e(t,r,n,i){var a,o,s,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",d=S6.style,f=Ea.test(r),p="svg"===t.tagName.toLowerCase(),h=(p?"client":"offset")+(f?"Width":"Height"),m="px"===i,y="%"===i;if(i===c||!u||EF[i]||EF[c])return u;if("px"===c||m||(u=e(t,r,n,"px")),l=t.getCTM&&EM(t),(y||"%"===c)&&(Ee[r]||~r.indexOf("adius")))return a=l?t.getBBox()[f?"width":"height"]:t[h],w0(y?u/a*100:u/100*a);if(d[f?"width":"height"]=100+(m?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&t.appendChild&&!p?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==S3&&o.appendChild||(o=S3.body),(s=o._gsap)&&y&&s.width&&f&&s.time===x3.time&&!s.uncache)return w0(u/s.width*100);if(y&&("height"===r||"width"===r)){var g=t.style[r];t.style[r]=100+i,a=t[h],g?t.style[r]=g:E_(t,r)}else(y||"%"===c)&&!EB[EC(o,"display")]&&(d.position=EC(t,"position")),o===t&&(d.position="static"),o.appendChild(S6),a=S6[h],o.removeChild(S6),d.position="absolute";return f&&y&&((s=wX(o)).time=x3.time,s.width=o[h]),w0(m?a*u/100:a&&u?100/a*u:0)},EU=function(e,t,r,n){var i;return S5||ET(),t in Es&&"transform"!==t&&~(t=Es[t]).indexOf(",")&&(t=t.split(",")[0]),Ee[t]&&"transform"!==t?(i=EJ(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:E0(EC(e,ES))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=EG[t]&&EG[t](e,t,r)||EC(e,t)||wQ(e,t)||+("opacity"===t)),r&&!~(i+"").trim().indexOf(" ")?EV(e,t,i,r)+r:i},EW=function(e,t,r,n){if(!r||"none"===r){var i=EA(t,e,1),a=i&&EC(e,i,1);a&&a!==r?(t=i,r=a):"borderColor"===t&&(r=EC(e,"borderTopColor"))}var o,s,l,u,c,d,f,p,h,m,y,g=new SU(this._pt,e.style,t,0,1,SM),v=0,b=0;if(g.b=r,g.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=EC(e,n.substring(4,n.indexOf(")")))),"auto"===n&&(d=e.style[t],e.style[t]=n,n=EC(e,t)||n,d?e.style[t]=d:E_(e,t)),x2(o=[r,n]),r=o[0],n=o[1],l=r.match(wP)||[],(n.match(wP)||[]).length){for(;s=wP.exec(n);)f=s[0],h=n.substring(v,s.index),c?c=(c+1)%5:("rgba("===h.substr(-5)||"hsla("===h.substr(-5))&&(c=1),f!==(d=l[b++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===f.charAt(1)&&(f=w2(u,f)+y),p=parseFloat(f),m=f.substr((p+"").length),v=wP.lastIndex-m.length,m||(m=m||wa.units[t]||y,v===n.length&&(n+=m,g.e+=m)),y!==m&&(u=EV(e,t,d,m)||0),g._pt={_next:g._pt,p:h||1===b?h:",",s:u,c:p-u,m:c&&c<4||"zIndex"===t?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}else g.r="display"===t&&"none"===n?Eh:Ep;return wk.test(n)&&(g.e=0),this._pt=g,g},E$={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ez=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=E$[r]||r,t[1]=E$[n]||n,t.join(" ")},EH=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)Ee[r=s[i]]&&(n=1,r="transformOrigin"===r?ES:Ex),E_(a,r);n&&(E_(a,Ex),l&&(l.svg&&a.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",EJ(a,1),l.uncache=1,ED(o)))}},EG={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var a=e._pt=new SU(e._pt,t,r,0,0,EH);return a.u=n,a.pr=-10,a.tween=i,e._props.push(r),1}}},EK=[1,0,0,1,0,0],EY={},EZ=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Eq=function(e){var t=EC(e,Ex);return EZ(t)?EK:t.substr(7).match(wj).map(w0)},EX=function(e,t){var r,n,i,a,o=e._gsap||wX(e),s=e.style,l=Eq(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?EK:l:(l!==EK||e.offsetParent||e===S4||o.svg||(i=s.display,s.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,n=e.nextElementSibling,S4.appendChild(e)),l=Eq(e),i?s.display=i:E_(e,"display"),a&&(n?r.insertBefore(e,n):r?r.appendChild(e):S4.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},EQ=function(e,t,r,n,i,a){var o,s,l,u,c=e._gsap,d=i||EX(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,h=c.xOffset||0,m=c.yOffset||0,y=d[0],g=d[1],v=d[2],b=d[3],w=d[4],x=d[5],S=t.split(" "),E=parseFloat(S[0])||0,D=parseFloat(S[1])||0;r?d!==EK&&(s=y*b-g*v)&&(l=b/s*E+-v/s*D+(v*x-b*w)/s,u=-g/s*E+y/s*D-(y*x-g*w)/s,E=l,D=u):(E=(o=EI(e)).x+(~S[0].indexOf("%")?E/100*o.width:E),D=o.y+(~(S[1]||S[0]).indexOf("%")?D/100*o.height:D)),n||!1!==n&&c.smooth?(c.xOffset=h+((w=E-f)*y+(x=D-p)*v)-w,c.yOffset=m+(w*g+x*b)-x):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=D,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[ES]="0px 0px",a&&(EL(a,c,"xOrigin",f,E),EL(a,c,"yOrigin",p,D),EL(a,c,"xOffset",h,c.xOffset),EL(a,c,"yOffset",m,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+D)},EJ=function(e,t){var r=e._gsap||new Ss(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,j,P,C,k,A,T,N,R,I,M=e.style,_=r.scaleX<0,L=getComputedStyle(e),F=EC(e,ES)||"0";return n=i=a=l=u=c=d=f=p=0,o=s=1,r.svg=!!(e.getCTM&&EM(e)),L.translate&&(("none"!==L.translate||"none"!==L.scale||"none"!==L.rotate)&&(M[Ex]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[Ex]?L[Ex]:"")),M.scale=M.rotate=M.translate="none"),y=EX(e,r.svg),r.svg&&(r.uncache?(P=e.getBBox(),F=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",j=""):j=!t&&e.getAttribute("data-svg-origin"),EQ(e,j||F,!!j||r.originIsAbsolute,!1!==r.smooth,y)),h=r.xOrigin||0,m=r.yOrigin||0,y!==EK&&(w=y[0],x=y[1],S=y[2],E=y[3],n=D=y[4],i=O=y[5],6===y.length?(o=Math.sqrt(w*w+x*x),s=Math.sqrt(E*E+S*S),l=w||x?En(x,w)*Et:0,(d=S||E?En(S,E)*Et+l:0)&&(s*=Math.abs(Math.cos(d*Er))),r.svg&&(n-=h-(h*w+m*S),i-=m-(h*x+m*E))):(I=y[6],N=y[7],k=y[8],A=y[9],T=y[10],R=y[11],n=y[12],i=y[13],a=y[14],u=(g=En(I,T))*Et,g&&(j=D*(v=Math.cos(-g))+k*(b=Math.sin(-g)),P=O*v+A*b,C=I*v+T*b,k=-(D*b)+k*v,A=-(O*b)+A*v,T=-(I*b)+T*v,R=-(N*b)+R*v,D=j,O=P,I=C),c=(g=En(-S,T))*Et,g&&(j=w*(v=Math.cos(-g))-k*(b=Math.sin(-g)),P=x*v-A*b,C=S*v-T*b,R=E*b+R*v,w=j,x=P,S=C),l=(g=En(x,w))*Et,g&&(j=w*(v=Math.cos(g))+x*(b=Math.sin(g)),P=D*v+O*b,x=x*v-w*b,O=O*v-D*b,w=j,D=P),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=w0(Math.sqrt(w*w+x*x+S*S)),s=w0(Math.sqrt(O*O+I*I)),d=Math.abs(g=En(D,O))>2e-4?g*Et:0,p=R?1/(R<0?-R:R):0),r.svg&&(j=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!EZ(EC(e,Ex)),j&&e.setAttribute("transform",j))),Math.abs(d)>90&&270>Math.abs(d)&&(_?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=w0(o),r.scaleY=w0(s),r.rotation=w0(l)+"deg",r.rotationX=w0(u)+"deg",r.rotationY=w0(c)+"deg",r.skewX=d+"deg",r.skewY=f+"deg",r.transformPerspective=p+"px",(r.zOrigin=parseFloat(F.split(" ")[2])||!t&&r.zOrigin||0)&&(M[ES]=E0(F)),r.xOffset=r.yOffset=0,r.force3D=wa.force3D,r.renderTransform=r.svg?E5:S7?E4:E2,r.uncache=0,r},E0=function(e){return(e=e.split(" "))[0]+" "+e[1]},E1=function(e,t,r){var n=xT(t);return w0(parseFloat(t)+parseFloat(EV(e,"x",r+"px",n)))+n},E2=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,E4(e,t)},E3="0deg",E4=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,a=r.x,o=r.y,s=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,d=r.skewX,f=r.skewY,p=r.scaleX,h=r.scaleY,m=r.transformPerspective,y=r.force3D,g=r.target,v=r.zOrigin,b="",w="auto"===y&&e&&1!==e||!0===y;if(v&&(c!==E3||u!==E3)){var x,S=parseFloat(u)*Er,E=Math.sin(S),D=Math.cos(S);a=E1(g,a,-(E*(x=Math.cos(S=parseFloat(c)*Er))*v)),o=E1(g,o,-(-Math.sin(S)*v)),s=E1(g,s,-(D*x*v)+v)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||w?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==E3&&(b+="rotate("+l+") "),u!==E3&&(b+="rotateY("+u+") "),c!==E3&&(b+="rotateX("+c+") "),(d!==E3||f!==E3)&&(b+="skew("+d+", "+f+") "),(1!==p||1!==h)&&(b+="scale("+p+", "+h+") "),g.style[Ex]=b||"translate(0, 0)"},E5=function(e,t){var r,n,i,a,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,f=s.rotation,p=s.skewX,h=s.skewY,m=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,E=parseFloat(c),D=parseFloat(d);f=parseFloat(f),p=parseFloat(p),(h=parseFloat(h))&&(p+=h=parseFloat(h),f+=h),f||p?(f*=Er,p*=Er,r=Math.cos(f)*m,n=Math.sin(f)*m,i=-(Math.sin(f-p)*y),a=Math.cos(f-p)*y,p&&(h*=Er,i*=o=Math.sqrt(1+(o=Math.tan(p-h))*o),a*=o,h&&(r*=o=Math.sqrt(1+(o=Math.tan(h))*o),n*=o)),r=w0(r),n=w0(n),i=w0(i),a=w0(a)):(r=m,a=y,n=i=0),(E&&!~(c+"").indexOf("px")||D&&!~(d+"").indexOf("px"))&&(E=EV(g,"x",c,"px"),D=EV(g,"y",d,"px")),(v||b||w||x)&&(E=w0(E+v-(v*r+b*i)+w),D=w0(D+b-(v*n+b*a)+x)),(l||u)&&(E=w0(E+l/100*(o=g.getBBox()).width),D=w0(D+u/100*o.height)),o="matrix("+r+","+n+","+i+","+a+","+E+","+D+")",g.setAttribute("transform",o),S&&(g.style[Ex]=o)},E6=function(e,t,r,n,i){var a,o,s=wp(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?Et:1)-n,u=n+l+"deg";return s&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new SU(e._pt,t,r,n,l,Eu),o.e=u,o.u="deg",e._props.push(r),o},E8=function(e,t){for(var r in t)e[r]=t[r];return e},E9=function(e,t,r){var n,i,a,o,s,l,u,c=E8({},r._gsap),d=r.style;for(i in c.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),d[Ex]=t,n=EJ(r,1),E_(r,Ex),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Ex],d[Ex]=t,n=EJ(r,1),d[Ex]=a),Ee)(a=c[i])!==(o=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(s=xT(a)!==(u=xT(o))?EV(r,i,a,u):parseFloat(a),l=parseFloat(o),e._pt=new SU(e._pt,n,i,s,l-s,El),e._pt.u=u||0,e._props.push(i));E8(n,c)};wJ("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",i="Left",a=(t<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return t<2?e+r:"border"+r+e});EG[t>1?"border"+e:e]=function(e,t,r,n,i){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return EU(e,t,r)})).join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,i)}});var E7={name:"css",register:ET,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S=this._props,E=e.style,D=r.vars.startAt;for(d in S5||ET(),this.styles=this.styles||Ej(e),w=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(o=t[d],!(wH[d]&&Sb(d,t,r,n,e,i)))){if(u=void 0===o?"undefined":S2(o),c=EG[d],"function"===u&&(u=void 0===(o=o.call(r,n,e,i))?"undefined":S2(o)),"string"===u&&~o.indexOf("random(")&&(o=xW(o)),c)c(this,e,d,o,r)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),o+="",x0.lastIndex=0,!x0.test(a)&&(f=xT(a),(p=xT(o))?f!==p&&(a=EV(e,d,a,p)+p):f&&(o+=f)),this.add(E,"setProperty",a,o,n,i,0,0,d),S.push(d),w.push(d,0,E[d]);else if("undefined"!==u){if(D&&d in D?(wp(a="function"==typeof D[d]?D[d].call(r,n,e,i):D[d])&&~a.indexOf("random(")&&(a=xW(a)),xT(a+"")||"auto"===a||(a+=wa.units[d]||xT(EU(e,d))||""),"="===(a+"").charAt(1)&&(a=EU(e,d))):a=EU(e,d),l=parseFloat(a),(h="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),d in Es&&("autoAlpha"===d&&(1===l&&"hidden"===EU(e,"visibility")&&s&&(l=0),w.push("visibility",0,E.visibility),EL(this,E,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=Es[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Ee){if(this.styles.save(d),x=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=EC(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=e.style.perspective;e.style.perspective=o,o=EC(e,"perspective"),O?e.style.perspective=O:E_(e,"perspective")}s=parseFloat(o)}if(y||((g=e._gsap).renderTransform&&!t.parseTransform||EJ(e,t.parseTransform),v=!1!==t.smoothOrigin&&g.smooth,(y=this._pt=new SU(this._pt,E,Ex,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new SU(this._pt,g,"scaleY",g.scaleY,(h?w2(g.scaleY,h+s):s)-g.scaleY||0,El),this._pt.u=0,S.push("scaleY",d),d+="X";else if("transformOrigin"===d){w.push(ES,0,E[ES]),o=Ez(o),g.svg?EQ(e,o,0,v,0,this):((p=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&EL(this,g,"zOrigin",g.zOrigin,p),EL(this,E,d,E0(a),E0(o)));continue}else if("svgOrigin"===d){EQ(e,o,1,v,0,this);continue}else if(d in EY){E6(this,g,d,l,h?w2(l,h+o):o);continue}else if("smoothOrigin"===d){EL(this,g,"smooth",g.smooth,o);continue}else if("force3D"===d){g[d]=o;continue}else if("transform"===d){E9(this,o,e);continue}}else d in E||(d=EA(d)||d);if(m||(s||0===s)&&(l||0===l)&&!Eo.test(o)&&d in E)f=(a+"").substr((l+"").length),s||(s=0),p=xT(o)||(d in wa.units?wa.units[d]:f),f!==p&&(l=EV(e,d,a,p)),this._pt=new SU(this._pt,m?g:E,d,l,(h?w2(l,h+s):s)-l,!m&&("px"===p||"zIndex"===d)&&!1!==t.autoRound?Ef:El),this._pt.u=p||0,m&&x!==o?(this._pt.b=a,this._pt.e=x,this._pt.r=Ed):f!==p&&"%"!==p&&(this._pt.b=a,this._pt.r=Ec);else if(d in E)EW.call(this,e,d,a,h?h+o:o);else if(d in e)this.add(e,d,a||e[d],h?h+o:o,n,i);else if("parseTransform"!==d){wM(d,o);continue}m||(d in E?w.push(d,0,E[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,a||e[d])),S.push(d)}}b&&SV(this)},render:function(e,t){if(t.tween._time||!S9())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:EU,aliases:Es,getSetter:function(e,t,r){var n=Es[t];return n&&0>n.indexOf(",")&&(t=n),t in Ee&&t!==ES&&(e._gsap.x||EU(e,"x"))?r&&S8===r?"scale"===t?Ev:Eg:(S8=r||{},"scale"===t?Eb:Ew):e.style&&!wy(e.style[t])?Em:~t.indexOf("-")?Ey:SN(e,t)},core:{_removeProperty:E_,_getMatrix:EX}};S1.utils.checkPrefix=EA,S1.core.getStyleSaver=Ej,jm=wJ("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(jh="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Ee[e]=1}),wJ(jh,function(e){wa.units[e]="deg",EY[e]=1}),Es[jm[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+jh,wJ("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");Es[t[1]]=jm[t[0]]}),wJ("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){wa.units[e]="px"}),S1.registerPlugin(E7);var De=S1.registerPlugin(E7)||S1;function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dn(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return Dt(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 Dt(e,void 0)}}(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.")}()}De.core.Tween;var Di=function(e){var t=e.isOpen,r=e.onClose,n=e.position,i=void 0===n?"right":n,a=e.colors,o=e.items,s=e.socialItems,l=e.displaySocials,u=e.displayItemNumbering,c=e.accentColor,d=e.closeOnClickAway,f=void 0===d||d,p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=(0,m.useRef)([]),b=(0,m.useRef)(null),w=(0,m.useRef)(null),x=(0,m.useRef)(null),S=(0,m.useRef)(!1),E=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=De.context(function(){var e=p.current,t=g.current;if(e){var r=[];t&&(r=Array.from(t.querySelectorAll(".sm-prelayer"))),v.current=r;var n="left"===i?-100:100;De.set([e].concat(Dn(r)),{xPercent:n,opacity:1}),t&&De.set(t,{xPercent:0,opacity:1})}});return function(){return e.revert()}},[i]);var D=(0,m.useCallback)(function(){var e=p.current,t=v.current;if(!e)return null;null==(d=b.current)||d.kill(),w.current&&(w.current.kill(),w.current=null),null==(f=x.current)||f.kill();var r=Array.from(e.querySelectorAll(".sm-panel-itemLabel")),n=Array.from(e.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),a=e.querySelector(".sm-socials-title"),o=Array.from(e.querySelectorAll(".sm-socials-link")),s="left"===i?-100:100,l=t.map(function(e){return{el:e,start:s}});r.length&&De.set(r,{yPercent:140,rotate:10}),n.length&&De.set(n,Dr({},"--sm-num-opacity",0)),a&&De.set(a,{opacity:0}),o.length&&De.set(o,{y:25,opacity:0});var u=De.timeline({paused:!0});l.forEach(function(e,t){u.fromTo(e.el,{xPercent:e.start},{xPercent:0,duration:.5,ease:"power4.out"},.07*t)});var c=(l.length?(l.length-1)*.07:0)+.08*!!l.length;if(u.fromTo(e,{xPercent:s},{xPercent:0,duration:.65,ease:"power4.out"},c),r.length){var d,f,h,m=c+.0975;u.to(r,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},m),n.length&&u.to(n,(Dr(h={duration:.6,ease:"power2.out"},"--sm-num-opacity",1),Dr(h,"stagger",{each:.08,from:"start"}),h),m+.1)}if(a||o.length){var y=c+.26;a&&u.to(a,{opacity:1,duration:.5,ease:"power2.out"},y),o.length&&u.to(o,{y:0,opacity:1,duration:.55,ease:"power3.out",stagger:{each:.08,from:"start"},onComplete:function(){De.set(o,{clearProps:"opacity"})}},y+.04)}return b.current=u,u},[i]),O=(0,m.useCallback)(function(){if(!S.current){S.current=!0;var e=D();e?(e.eventCallback("onComplete",function(){S.current=!1}),e.play(0)):S.current=!1}},[D]),j=(0,m.useCallback)(function(){null==(e=b.current)||e.kill(),b.current=null,null==(t=x.current)||t.kill();var e,t,r,n=p.current,a=v.current;if(n){var o=Dn(a).concat([n]);null==(r=w.current)||r.kill();var s="left"===i?-100:100;w.current=De.to(o,{xPercent:s,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:function(){var e=Array.from(n.querySelectorAll(".sm-panel-itemLabel"));e.length&&De.set(e,{yPercent:140,rotate:10});var t=Array.from(n.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));t.length&&De.set(t,Dr({},"--sm-num-opacity",0));var r=n.querySelector(".sm-socials-title"),i=Array.from(n.querySelectorAll(".sm-socials-link"));r&&De.set(r,{opacity:0}),i.length&&De.set(i,{y:25,opacity:0}),S.current=!1}})}},[i]);y().useEffect(function(){t!==E.current&&(E.current=t,t?O():j())},[t,O,j]),y().useEffect(function(){if(f&&t){var e=function(e){p.current&&!p.current.contains(e.target)&&(null==r||r())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[f,t,r]);var P=a&&a.length?a.slice(0,4):[];if(P.length>=3){var C=Math.floor(P.length/2);P.splice(C,1)}var k=null!=o?o:[],A=null!=s?s:[];return(0,h.jsxs)("div",{className:"sm-scope",style:c?Dr({},"--sm-accent",c):void 0,"data-position":i,children:[(0,h.jsx)("div",{ref:g,className:"sm-prelayers pointer-events-none",style:{zIndex:9998},"aria-hidden":"true",children:P.map(function(e,t){return(0,h.jsx)("div",{className:"sm-prelayer",style:{background:e}},t)})}),(0,h.jsx)("aside",{id:"staggered-menu-panel",ref:p,className:"staggered-menu-panel pointer-events-auto",style:{zIndex:9999,WebkitBackdropFilter:"blur(12px)"},"aria-hidden":!t,children:(0,h.jsxs)("div",{className:"sm-panel-inner",children:[k.length>0&&(0,h.jsx)("ul",{className:"sm-panel-list",role:"list","data-numbering":void 0===u||u||void 0,children:k.map(function(e,t){return(0,h.jsx)("li",{className:"sm-panel-itemWrap",children:(0,h.jsx)("a",{className:"sm-panel-item",href:e.link,"aria-label":e.ariaLabel,"data-index":t+1,children:(0,h.jsx)("span",{className:"sm-panel-itemLabel",children:e.label})})},e.label+t)})}),(void 0===l||l)&&A.length>0&&(0,h.jsxs)("div",{className:"sm-socials","aria-label":"Social links",children:[(0,h.jsx)("h3",{className:"sm-socials-title",children:"Socials"}),(0,h.jsx)("ul",{className:"sm-socials-list",role:"list",children:A.map(function(e,t){return(0,h.jsx)("li",{className:"sm-socials-item",children:(0,h.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"sm-socials-link",children:e.label})},e.label+t)})})]})]})}),(0,h.jsx)("style",{children:"\n.sm-scope .staggered-menu-panel { position: fixed; top: 0; ".concat("left"===i?"left: 0;":"right: 0;"," width: clamp(260px, 38vw, 420px); height: 100%; background: white; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 6em 2em 2em 2em; overflow-y: auto; z-index: 50; }\n.sm-scope .sm-prelayers { position: fixed; top: 0; ").concat("left"===i?"left: 0;":"right: 0;"," bottom: 0; width: clamp(260px, 38vw, 420px); pointer-events: none; z-index: 49; }\n.sm-scope .sm-prelayer { position: absolute; top: 0; right: 0; height: 100%; width: 100%; transform: translateX(0); }\n.sm-scope .sm-panel-inner { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }\n.sm-scope .sm-panel-itemWrap { position: relative; overflow: hidden; line-height: 1; }\n.sm-scope .sm-panel-item { position: relative; color: #000; font-weight: 600; font-size: 4rem; cursor: pointer; line-height: 1; letter-spacing: -2px; text-transform: uppercase; transition: background 0.25s, color 0.25s; display: inline-block; text-decoration: none; padding-right: 1.4em; }\n.sm-scope .sm-panel-itemLabel { display: inline-block; will-change: transform; transform-origin: 50% 100%; }\n.sm-scope .sm-panel-item:hover { color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }\n.sm-scope .sm-panel-list[data-numbering] { counter-reset: smItem; }\n.sm-scope .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem, decimal-leading-zero); position: absolute; top: 0.1em; right: 3.2em; font-size: 18px; font-weight: 400; color: var(--sm-accent, #ff0000); letter-spacing: 0; pointer-events: none; user-select: none; opacity: var(--sm-num-opacity, 0); }\n.sm-scope .sm-socials { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }\n.sm-scope .sm-socials-title { margin: 0; font-size: 1rem; font-weight: 500; color: var(--sm-accent, #ff0000); }\n.sm-scope .sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.sm-scope .sm-socials-list .sm-socials-link { opacity: 1; transition: opacity 0.3s ease; }\n.sm-scope .sm-socials-list:hover .sm-socials-link:not(:hover) { opacity: 0.35; }\n.sm-scope .sm-socials-list:focus-within .sm-socials-link:not(:focus-visible) { opacity: 0.35; }\n.sm-scope .sm-socials-list .sm-socials-link:hover, .sm-scope .sm-socials-list .sm-socials-link:focus-visible { opacity: 1; }\n.sm-scope .sm-socials-link:focus-visible { outline: 2px solid var(--sm-accent, #ff0000); outline-offset: 3px; }\n.sm-scope .sm-socials-link { font-size: 1.2rem; font-weight: 500; color: #111; text-decoration: none; position: relative; padding: 2px 0; display: inline-block; transition: color 0.3s ease, opacity 0.3s ease; }\n.sm-scope .sm-socials-link:hover { color: var(--sm-accent, #ff0000); }\n@media (max-width: 1024px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n@media (max-width: 640px) { .sm-scope .staggered-menu-panel { width: 100%; left: 0; right: 0; } .sm-scope .sm-prelayers { width: 100%; left: 0; right: 0; } }\n ")})]})};function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Do=function(e){var t,r=e.isOpen,n=e.onToggle,i=e.menuButtonColor,a=e.openMenuButtonColor,o=e.changeMenuColorOnOpen,s=void 0===o||o,l=e.className,u=(0,m.useRef)(null),c=(0,m.useRef)(null),d=(0,m.useRef)(null),f=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useRef)(null),v=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(["Menu","Close"]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Da(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 Da(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.")}(),b=v[0],w=v[1],x=(0,m.useRef)(null),S=(0,m.useRef)(null),E=(0,m.useRef)(null),D=(0,m.useRef)(!1);(0,m.useLayoutEffect)(function(){var e=De.context(function(){var e=c.current,t=d.current,r=f.current,n=p.current;e&&t&&r&&n&&(De.set(e,{transformOrigin:"50% 50%",rotate:0}),De.set(t,{transformOrigin:"50% 50%",rotate:90}),De.set(r,{rotate:0,transformOrigin:"50% 50%"}),De.set(n,{yPercent:0}),u.current&&i&&De.set(u.current,{color:i}))});return function(){return e.revert()}},[i]),y().useEffect(function(){if(u.current)if(s){var e=D.current?a:i;e&&De.set(u.current,{color:e})}else i&&De.set(u.current,{color:i})},[s,i,a]);var O=(0,m.useCallback)(function(e){var t,r=f.current,n=c.current,i=d.current;r&&n&&i&&(null==(t=x.current)||t.kill(),e?(De.set(r,{rotate:0,transformOrigin:"50% 50%"}),x.current=De.timeline({defaults:{ease:"power4.out"}}).to(n,{rotate:45,duration:.5},0).to(i,{rotate:-45,duration:.5},0)):x.current=De.timeline({defaults:{ease:"power3.inOut"}}).to(n,{rotate:0,duration:.35},0).to(i,{rotate:90,duration:.35},0).to(r,{rotate:0,duration:.001},0))},[]),j=(0,m.useCallback)(function(e){var t,r=u.current;if(r)if(null==(t=E.current)||t.kill(),s){var n=e?a:i;n&&(E.current=De.to(r,{color:n,delay:.18,duration:.3,ease:"power2.out"}))}else i&&De.set(r,{color:i})},[a,i,s]),P=(0,m.useCallback)(function(e){var t,r=p.current;if(r){null==(t=S.current)||t.kill();for(var n=e?"Menu":"Close",i=e?"Close":"Menu",a=[n],o=n,s=0;s<3;s++)o="Menu"===o?"Close":"Menu",a.push(o);o!==i&&a.push(i),a.push(i),w(a),De.set(r,{yPercent:0});var l=a.length;S.current=De.to(r,{yPercent:-((l-1)/l*100),duration:.5+.07*l,ease:"power4.out"})}},[]);return y().useEffect(function(){r!==D.current&&(D.current=r,O(r),j(r),P(r))},[r,O,j,P]),(0,h.jsxs)("button",{ref:u,className:"sm-toggle relative inline-flex items-center gap-[0.3rem] bg-transparent border-0 cursor-pointer font-medium leading-none overflow-visible pointer-events-auto".concat(l?" "+l:""),"aria-label":r?"Close menu":"Open menu","aria-expanded":r,"aria-controls":"staggered-menu-panel",onClick:n,type:"button",children:[(0,h.jsx)("span",{ref:g,className:"sm-toggle-textWrap relative inline-block h-[1em] overflow-hidden whitespace-nowrap w-[var(--sm-toggle-width,auto)] min-w-[var(--sm-toggle-width,auto)] mr-[0.5em]","aria-hidden":"true",children:(0,h.jsx)("span",{ref:p,className:"sm-toggle-textInner flex flex-col leading-none",children:b.map(function(e,t){return(0,h.jsx)("span",{className:"sm-toggle-line block h-[1em] leading-none",children:e},t)})})}),(0,h.jsxs)("span",{ref:f,className:"sm-icon relative w-[14px] h-[14px] shrink-0 inline-flex items-center justify-center [will-change:transform]","aria-hidden":"true",children:[(0,h.jsx)("span",{ref:c,className:"sm-icon-line absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"}),(0,h.jsx)("span",{ref:d,className:"sm-icon-line sm-icon-line-v absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-[2px] -translate-x-1/2 -translate-y-1/2 [will-change:transform]"})]}),(0,h.jsx)("style",{children:"\n.sm-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; background: transparent; border: none; cursor: pointer; font-weight: 500; line-height: 1; overflow: visible; }\n.sm-toggle:focus-visible { outline: 2px solid #ffffffaa; outline-offset: 4px; border-radius: 4px; }\n.sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; width: var(--sm-toggle-width, auto); min-width: var(--sm-toggle-width, auto); }\n.sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; }\n.sm-toggle-line { display: block; height: 1em; line-height: 1; }\n.sm-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; will-change: transform; }\n.sm-icon-line { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); will-change: transform; }\n "})]})};function Ds(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class Dl extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(hI(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=hI(e)&&e.offsetWidth||0,n=hI(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=r-a.width-a.left,a.bottom=n-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Du({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),l=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,m.useContext)(dg),c=function(...e){return m.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=Ds(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():Ds(e[t],null)}}}}(...e),e)}(s,!1!==a?e.props?.ref??e?.ref:void 0);return(0,m.useInsertionEffect)(()=>{let{width:e,height:c,top:d,left:f,right:p,bottom:h,direction:m}=l.current;if(t||!1===a||!s.current||!e||!c)return;let y="rtl"===m,g="left"===r?y?`right: ${p}`:`left: ${f}`:y?`left: ${f}`:`right: ${p}`,v="bottom"===n?`bottom: ${h}`:`top: ${d}`;s.current.dataset.motionPopId=o;let b=document.createElement("style");u&&(b.nonce=u);let w=i??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
|
|
13
|
-
[data-motion-pop-id="${o}"] {
|
|
14
|
-
position: absolute !important;
|
|
15
|
-
width: ${e}px !important;
|
|
16
|
-
height: ${c}px !important;
|
|
17
|
-
${g}px !important;
|
|
18
|
-
${v}px !important;
|
|
19
|
-
}
|
|
20
|
-
`),()=>{s.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,h.jsx)(Dl,{isPresent:t,childRef:s,sizeRef:l,pop:a,children:!1===a?e:m.cloneElement(e,{ref:c})})}let Dc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{let c=dC(Dd),d=(0,m.useId)(),f=(0,m.useRef)(r),p=(0,m.useRef)(n);dB(()=>{f.current=r,p.current=n});let y=!0,g=(0,m.useMemo)(()=>(y=!1,{id:d,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>{c.delete(e),f.current||c.size||p.current?.()})}),[r,c,n]);return a&&y&&(g={...g}),(0,m.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),m.useEffect(()=>{r||c.size||!n||n()},[r]),e=(0,h.jsx)(Du,{pop:"popLayout"===o,isPresent:r,anchorX:s,anchorY:l,root:u,children:e}),(0,h.jsx)(dP.Provider,{value:g,children:e})};function Dd(){return new Map}let Df=e=>e.key||"";function Dp(e){let t=[];return m.Children.forEach(e,e=>{(0,m.isValidElement)(e)&&t.push(e)}),t}let Dh=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{let[c,d]=p_(o),f=(0,m.useMemo)(()=>Dp(e),[e]),p=o&&!c?[]:f.map(Df),y=(0,m.useRef)(!0),g=(0,m.useRef)(f),v=dC(()=>new Map),b=(0,m.useRef)(new Set),[w,x]=(0,m.useState)(f),[S,E]=(0,m.useState)(f);dB(()=>{y.current=!1,g.current=f;for(let e=0;e<S.length;e++){let t=Df(S[e]);p.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[S,p.length,p.join("-")]);let D=[];if(f!==w){let e=[...f];for(let t=0;t<S.length;t++){let r=S[t],n=Df(r);p.includes(n)||(e.splice(t,0,r),D.push(r))}return"wait"===a&&D.length&&(e=D),E(Dp(e)),x(f),null}let{forceRender:O}=(0,m.useContext)(dm);return(0,h.jsx)(h.Fragment,{children:S.map(e=>{let m=Df(e),w=(!o||!!c)&&(f===S||p.includes(m));return(0,h.jsx)(Dc,{isPresent:w,initial:(!y.current||!!r)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:w?void 0:()=>{if(b.current.has(m)||!v.has(m))return;b.current.add(m),v.set(m,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(O?.(),E(g.current),o&&d?.(),n&&n())},anchorX:s,anchorY:l,children:e},m)})})},Dm={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 Dy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dg=function(e){var t,r=e.columnItems,n=e.columnIndex,i=e.activeItems,a=e.searchable,o=e.searchPlaceholder,s=e.onHover,l=e.onNavigate,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(""))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Dy(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 Dy(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,m.useMemo)(function(){if(!c.trim())return r;var e=c.trim().toLowerCase();return r.filter(function(t){return t.label.toLowerCase().includes(e)})},[r,c]);return(0,h.jsxs)(hK.div,{className:Dm.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:[a&&(0,h.jsxs)("div",{className:Dm.columnSearch,children:[(0,h.jsx)(tl,{className:Dm.columnSearchIcon,size:14}),(0,h.jsx)("input",{type:"search",value:c,onChange:function(e){return d(e.target.value)},placeholder:o,className:Dm.columnSearchInput,"aria-label":o})]}),(0,h.jsxs)("ul",{className:Dm.columnList,role:"list",children:[f.map(function(e){var t,r=i[n]===e.id,a=!!(null==(t=e.children)?void 0:t.length),o=e.icon;return(0,h.jsx)("li",{children:(0,h.jsxs)("button",{type:"button",className:Dm.columnItem,"data-active":r||void 0,onMouseEnter:function(){return s(e,n)},onFocus:function(){return s(e,n)},onClick:function(){!a&&e.path&&l(e.path)},children:[o&&(0,h.jsx)(o,{className:Dm.columnItemIcon,size:16}),(0,h.jsx)("span",{className:Dm.columnItemLabel,children:e.label}),a&&(0,h.jsx)(eE,{className:Dm.columnItemChevron,size:14})]})},e.id)}),0===f.length&&(0,h.jsx)("li",{className:Dm.columnEmpty,children:"—"})]})]})};function Dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Db(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||DS(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 Dx(e){return function(e){if(Array.isArray(e))return Dv(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||DS(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 DS(e,t){if(e){if("string"==typeof e)return Dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dv(e,t)}}var DE=function(e){var t,r,n=e.items,i=e.triggerLabel,a=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,y=Dw((0,m.useState)(!1),2),g=y[0],b=y[1],w=Dw((0,m.useState)([n]),2),x=w[0],S=w[1],E=Dw((0,m.useState)([]),2),D=E[0],O=E[1],j=Dw((0,m.useState)(null),2),P=j[0],C=j[1],k=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){g||(S([n]),O([]))},[n,g]),(0,m.useLayoutEffect)(function(){if(g&&k.current){var e=k.current.getBoundingClientRect();C("up"===s?{left:e.left,bottom:window.innerHeight-e.top+8}:{left:e.left,top:e.bottom+8})}},[g,s]);var A=function(e,t){var r,n=Dx(D);n[t]=e.id,(null==(r=e.children)?void 0:r.length)?S(Dx(x.slice(0,t+1)).concat([e.children])):S(x.slice(0,t+1)),O(n)},T=function(e){b(!1),null==f||f(e)};return(0,h.jsxs)("div",{className:v()(Dm.wrapper,p),children:[(0,h.jsxs)("button",{ref:k,type:"button",className:Dm.trigger,onClick:function(){return b(function(e){return!e})},"aria-haspopup":"true","aria-expanded":g,children:[a&&(0,h.jsx)(a,{className:Dm.triggerIcon,size:16}),(0,h.jsx)("span",{children:void 0===i?"Navigation":i}),(0,h.jsx)(ex,{className:v()(Dm.triggerChevron,(Db(t={},Dm["triggerChevron--open"],g),Db(t,Dm["triggerChevron--up"],"up"===s),t)),size:14})]}),(0,h.jsx)(Dh,{children:g&&P&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:Dm.overlay,onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsx)(hK.div,{className:v()(Dm.panel,Dm["panel--".concat(s)]),style:(Db(r={left:P.left,top:P.top,bottom:P.bottom},"--cnd-panel-width","".concat(16*x.length,"rem")),Db(r,"--cnd-column-width","16rem"),r),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,h.jsx)("div",{className:Dm.panelInner,children:(0,h.jsx)(Dh,{mode:"sync",children:x.map(function(e,t){return(0,h.jsx)(Dg,{columnItems:e,columnIndex:t,activeItems:D,searchable:u,searchPlaceholder:d,onHover:A,onNavigate:T},t)})})})})]})})]})},DD=(0,m.createContext)(null),DO=function(){var e=(0,m.useContext)(DD);if(!e)throw Error("Sheet compound components must be used within <Sheet>");return e};function Dj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var DP=function(e){var t,r=e.children,n=e.open,i=e.onOpenChange,a=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,m.useState)(null!=a&&a))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return Dj(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 Dj(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!==n,y=p?n:d,g=(0,m.useCallback)(function(e){null==i||i(e),p||f(e)},[i,p]);return(0,h.jsx)(DD.Provider,{value:{isOpen:y,onOpenChange:g,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:r})};function DC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dk=function(e){var t,r=e.children,n=e.container,i=e.className,a=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return DC(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 DC(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=a[0],s=a[1];if((0,m.useEffect)(function(){s(!0)},[]),!o||"u"<typeof document)return null;var l=i?(0,h.jsx)("div",{className:i,children:r}):r;return(0,nA.createPortal)(l,n||document.body)};let DA={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 DT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DN(e){if(Array.isArray(e))return e}function DR(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DI(e,t){if(e){if("string"==typeof e)return DT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DT(e,t)}}var DM=(0,m.forwardRef)(function(e,t){var r,n=DN(r=[e,t])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||DI(r)||DR(),i=n[0],a=n.slice(1),o=i.className,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(i,["className"]),l=(DN(a)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),1!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(a)||DI(a,1)||DR())[0],u=DO(),c=u.isOpen,d=u.onOpenChange,f=(0,m.useCallback)(function(e){e.target===e.currentTarget&&d(!1)},[d]);return(0,h.jsx)(hK.div,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({ref:l,initial:{opacity:0},animate:{opacity:+!!c},transition:{duration:.2,ease:"easeOut"},onClick:f,className:v()(DA.overlay,o),style:{pointerEvents:c?"auto":"none"}},s))});function D_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function DL(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}DM.displayName="SheetOverlay";var DF=function(e){var t=e.asChild,r=e.children,n=e.className,i=DO().onOpenChange,a=function(){return i(!0)};return t&&y().isValidElement(r)?y().cloneElement(r,DL(D_({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(DA.triggerReset,n),children:r})},DB=function(e){var t=e.asChild,r=e.children,n=e.className,i=DO().onOpenChange,a=function(){return i(!1)};return t&&y().isValidElement(r)?y().cloneElement(r,DL(D_({},r.props),{className:v()(r.props.className,n),onClick:function(e){var t,n;null==(t=(n=r.props).onClick)||t.call(n,e),a()}})):(0,h.jsx)("button",{onClick:a,type:"button",className:v()(DA.triggerReset,n),children:r})};function DV(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&dG(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{DV(e,t)})})}function DU(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,n){uw(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push(fZ(e,r,{transitionOverride:n}))}),Promise.all(i)},set:r=>(uw(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,n;t=e,Array.isArray(n=r)?DV(t,n):"string"==typeof n?DV(t,[n]):dG(t,n)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}let DW=function(){let e=dC(DU);return dB(e.mount,[]),e};function D$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dz=function(e){var t,r=e.children,n=e.className,i=DO(),a=i.isOpen,o=i.onOpenChange,s=i.contentProps,l=s.height,u=s.closeThreshold,c=s.side,d=DW(),f=(0,m.useRef)(null),p=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return D$(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 D$(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.")}(),y=p[0],g=p[1],b="top"===c?-1:1,w=(0,m.useCallback)(function(){return o(!1)},[o]),x=(0,m.useCallback)(function(){if("u"<typeof window)return 400;var e,t=window.innerHeight,r=window.innerWidth;return e=r<=640?.6*t:r<=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,m.useEffect)(function(){var e=function(){return g(x())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[x]),(0,m.useEffect)(function(){return a?(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:b*(y+50),transition:{type:"tween",ease:[.25,.46,.45,.94],duration:.3}})),function(){document.body.style.overflow=""}},[a,d,y,b]),(0,m.useEffect)(function(){var e=function(e){"Escape"===e.key&&a&&w()};return a&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[a,w]);var S=(0,m.useCallback)(function(e,t){var r=b*t.offset.y>y*u,n=b*t.velocity.y>800;r||n?w():d.start({y:0,transition:{type:"spring",stiffness:500,damping:40}})},[d,w,u,y,b]),E=(0,m.useCallback)(function(e){e.target===f.current&&w()},[w]);if(0===y)return null;var D="top"===c?{top:-y,bottom:0}:{top:0,bottom:y};return(0,h.jsx)(Dk,{children:(0,h.jsxs)("div",{className:v()(DA.container,!a&&DA["container--closed"]),children:[(0,h.jsx)(hK.div,{ref:f,initial:{opacity:0},animate:{opacity:+!!a},transition:{duration:.2,ease:"easeOut"},onClick:E,className:DA.overlay,style:{pointerEvents:a?"auto":"none"}}),(0,h.jsxs)(hK.div,{drag:"y",dragConstraints:D,dragElastic:"top"===c?{top:.1,bottom:0}:{top:0,bottom:.1},dragMomentum:!1,onDragEnd:S,animate:d,initial:{y:b*(y+50)},className:v()(DA.panel,DA["panel--".concat(c)],void 0===n?"":n),style:{height:y},children:["bottom"===c&&(0,h.jsx)("div",{className:DA.handleRow,children:(0,h.jsx)("div",{className:DA.handle})}),(0,h.jsx)("div",{className:DA.body,children:(0,h.jsx)("div",{className:DA.scrollArea,children:r})}),"top"===c&&(0,h.jsx)("div",{className:DA.handleRow,children:(0,h.jsx)("div",{className:DA.handle})})]})]})})},DH=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(DA.header,r),children:t})},DG=function(e){var t=e.children,r=e.className;return(0,h.jsx)("h3",{className:v()(DA.title,r),children:t})},DK=function(e){var t=e.children,r=e.className;return(0,h.jsx)("p",{className:v()(DA.description,r),children:t})},DY=function(e){var t=e.children,r=e.className;return(0,h.jsx)("div",{className:v()(DA.footer,r),children:t})},DZ=DP;function Dq(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dq(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 DJ=function(e){var t=e.items,r=e.title,n=e.hint,i=void 0===n?"Glisser une carte vers le bas pour fermer":n,a=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,y=e.accentColor,g=DQ((0,m.useState)(void 0!==o&&o),2),b=g[0],w=g[1],x=DQ((0,m.useState)(!1),2),S=x[0],E=x[1],D=void 0!==a,O=D?a:b,j=function(e){null==s||s(e),D||w(e)},P=function(e,t){t.offset.y>100&&O&&(j(!1),E(!1))},C=(t.length-1)/2,k=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){DX(e,t,r[t])})}return e}({},y?DX({},"--fg-accent",y):void 0,u);return(0,h.jsx)("div",{className:v()("mf1PQJZJIkTcC6ieajp06g==",l),style:k,children:(0,h.jsxs)("div",{className:"X+-2QGOgxfYXmIy7PjC3wA==",children:[(0,h.jsxs)("div",{className:"UXG4LYZ3CgMMfyoTuwsDew==",children:[(0,h.jsxs)(hK.div,{className:"WMPbIGKWTnyTbPcLgrUBhQ==",animate:{opacity:+!O,scale:O?.9:1},children:[(0,h.jsx)("div",{className:"kW-yBjOZhNRcJ3OXkXAe-w=="}),(0,h.jsx)("div",{className:"e4AW9ZVmijfr44fDskSX6A=="}),(0,h.jsx)("div",{className:"AXePEsOEKRfHxsj2nbK2jA=="})]}),(0,h.jsx)("div",{className:"FPg00JaLBaN67D64RLOhKg==",children:t.map(function(e,t){var r=t-C,n=1-.03*Math.abs(r);return(0,h.jsx)(hK.div,{drag:O,dragSnapToOrigin:!0,onDragEnd:P,className:v()("x+8qV1iWMRfwOVcjmG22XA==",DX({},"-43huhs0q9f4MpiDC1igog==",O)),style:{width:d,height:p},animate:O?{y:-130,x:130*r,rotate:0,scale:1.05,zIndex:50}:{y:S?-10*r-40:-5*r,x:S?30*r:3*r,rotate:S?8*r:3*r,scale:n,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,h.jsx)(hK.div,{className:"_9Sl7fQJWcMw+SKsOkIWnjA==",animate:{opacity:+!O,rotateX:S?-25:0,y:10*!!S,pointerEvents:O?"none":"auto"},onMouseEnter:function(){return E(!0)},onMouseLeave:function(){return E(!1)},onClick:function(){return j(!0)},children:(0,h.jsxs)("div",{className:"gt3j54sJHP3hnvsLkMzgZg==",children:[(0,h.jsx)("div",{className:"isw7XqrqLZxUSAdczQLFjQ=="}),(0,h.jsx)("div",{className:"_9qBWRbP9HasPUfli0KkeFw==",children:(0,h.jsx)("span",{className:"Rj5Hl5BniTa4dykxhTJ1cQ==",children:void 0===r?"Dossier":r})})]})})]}),i&&(0,h.jsx)(hK.div,{animate:{opacity:+!!O,y:50*!O},className:"xaOf3vz5KbUopgtshcuAKA==",children:i})]})})};function D0(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D2(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D0(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 D3(e){var t=e.items,r=e.className,n=e.style,i=D2((0,m.useState)(null),2),a=i[0],o=i[1],s=D2((0,m.useState)(null),2),l=s[0],u=s[1],c=function(e){u(a),o(e)},d=function(){u(a),o(null)};return(0,m.useEffect)(function(){if(a){var e=function(e){"Escape"===e.key&&d()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[a]),(0,h.jsxs)("div",{className:v()("cwEvWWvWR1VRjUW5EIdhaA==",r),style:n,children:[t.map(function(e){var t,r=(null==a?void 0:a.id)===e.id,n=!r&&(null==l?void 0:l.id)===e.id;return(0,h.jsx)("div",{className:e.className,children:(0,h.jsxs)(hK.div,{role:"button",tabIndex:0,"aria-pressed":r,onClick:function(){return c(e)},onKeyDown:function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),c(e))},className:v()(e.className,"_2Ke78p+1K7UiGxtbZBWj1A==",(D1(t={},"wpWM12DNjfwunfLOmmaBnQ==",r),D1(t,"_8EKpm8HnTOGGMQRVSS9cIA==",!r),D1(t,"_1zQI0+1IAUASZtCPebAKvg==",n),t)),layoutId:"layout-grid-card-".concat(e.id),children:[r&&(0,h.jsx)(D5,{item:a}),(0,h.jsx)(D4,{item:e})]})},e.id)}),(0,h.jsx)(hK.div,{onClick:d,className:v()("SfuCW8U7MUzYHVthm3806Q==",D1({},"F81iE6NjdP4R0pLKUxLwDg==",!!(null==a?void 0:a.id))),animate:{opacity:+(null!=a&&!!a.id)},"aria-hidden":"true"})]})}function D4(e){var t=e.item;return(0,h.jsx)(hK.img,{layoutId:"layout-grid-image-".concat(t.id),src:t.thumbnail,height:500,width:500,className:"bJ7EPT9WrOpvfGMlg9v4+Q==",alt:"thumbnail"})}function D5(e){var t=e.item;return(0,h.jsxs)("div",{className:"ENmbJW1obUoNPSddtk8tnw==",children:[(0,h.jsx)(hK.div,{initial:{opacity:0},animate:{opacity:.6},className:"FGcolNWCOIGj6upNf41vIg=="}),(0,h.jsx)(hK.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 D6="VL60poBQJU5GXBc55DtOgg==",D8="Z-QYx9GU0-9PvqywVAWDOw==",D9="k5GwrlmSGQEXCHiD9NJSgg==",D7="Sd+oehXhY2IvCEPY7LquSQ==",Oe="_2TUXiGgesFw6MMltbcDw7g==",Ot="aaY-ypFw8QYOvR34L1Ad3g==",Or="_0FXGSaE3Vf6Xfst6Bn-1XQ==",On="J+6pxxgImJiBa+5uolSRLA==",Oi="-cMLmEDNbTRZO+q9J5EnZQ==",Oa="pNL9YXjomLOkN1Sc1NOXsw==",Oo="YY-ar9Letsk0I16pNK2koQ==";var Os=function(){return(0,h.jsx)("div",{className:"FouFscxQH0ZBgOq+eZTCfA==","aria-hidden":"true",children:Array.from({length:8},function(e,t){return(0,h.jsx)("div",{className:"BcXVBK5bYPEqOaG28j8rLA=="},t)})})};function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ou(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ol(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ol(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 Od=function(e){var t=e.title,r=e.coverImageUrl,n=e.category,i=e.itemCountLabel,a=e.meta,o=e.items,s=e.relatedEntity,l=e.onItemOptionsClick,u=e.className,c=e.style,d=Oc((0,m.useState)(!1),2),f=d[0],p=d[1],y=Oc((0,m.useState)(null),2),g=y[0],b=y[1],w=Oc((0,m.useState)(null),2),x=w[0],S=w[1],E=Oc((0,m.useState)(0),2),D=E[0],O=E[1],j=Oc((0,m.useState)("translateY(0px)"),2),P=j[0],C=j[1],k=(0,m.useRef)(null),A=(0,m.useRef)(new Map),T=null!==g,N=f||T;(0,m.useEffect)(function(){if(null!==g){var e=function(){var e=A.current.get(g);e&&k.current&&O(e.getBoundingClientRect().top-k.current.offsetTop-2)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[g]);var R=function(e){if(e.detail){var t=A.current.get(e.id);if(t&&k.current){var r=window.innerHeight-t.getBoundingClientRect().bottom+k.current.offsetTop-390;C("translateY(".concat(r,"px)"))}b(e.id),S(e)}};return(0,h.jsx)("div",{className:v()("vnXLoaoWD3zO4KyyanbDCA==",u),style:c,children:(0,h.jsx)("div",{className:"_5ON8ony1Odsw6v57QtTpgA==",children:(0,h.jsxs)("div",{ref:k,className:v()("_09AECjHCq6I9nuofSaItrA==",Ou({},"GyoWR7DyKiD7EWOqlosJAg==",N)),children:[(0,h.jsxs)("div",{className:"_4wN1skmSfrQV9Qcr+6zobQ==",children:[(0,h.jsxs)("div",{className:D6,children:[(0,h.jsx)("img",{className:D8,src:r,alt:""}),(0,h.jsx)("img",{className:v()(D8,D9),src:r,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"cyPSIjHt+sUvoz7c0KjXpw==",children:[(0,h.jsxs)("div",{className:"GgWBHYAMuODSlBLrexrMJw==",children:[(0,h.jsx)("h1",{className:D7,children:t}),(0,h.jsxs)("div",{className:"DPZ0RYXyeDo3wYhXnkU-5w==",children:[n&&(0,h.jsx)("p",{className:Oe,children:n}),n&&i&&(0,h.jsx)("div",{className:Or}),i&&(0,h.jsx)("p",{className:Oe,children:i}),i&&a&&(0,h.jsx)("div",{className:Or}),a&&(0,h.jsx)("p",{className:Oe,children:a})]})]}),(0,h.jsx)("div",{className:"g6eRKusU-d0SYHZIwhu2ig==",children:o.map(function(e){var t;return(0,h.jsxs)("div",{ref:(t=e.id,function(e){e?A.current.set(t,e):A.current.delete(t)}),className:On,onClick:function(){return R(e)},children:[(0,h.jsx)("p",{className:Ot,children:e.title}),(0,h.jsxs)("div",{className:Oi,children:[(0,h.jsx)("button",{type:"button",className:Oa,onClick:function(t){t.stopPropagation(),null==l||l(e)},"aria-label":"Options",children:(0,h.jsx)(e5,{size:20})}),e.meta&&(0,h.jsx)("p",{className:Oe,children:e.meta})]})]},e.id)})})]})]}),x&&(0,h.jsxs)("div",{className:v()("T5TjonuT8CpL6L9LnfYUbg==",Ou({},"Yw84bwYkOFxUPSl8uIlHYA==",T)),style:{top:"".concat(D,"px"),transform:P},children:[(0,h.jsxs)("div",{className:On,children:[(0,h.jsx)("p",{className:Ot,children:x.title}),(0,h.jsxs)("div",{className:Oi,children:[(0,h.jsx)("button",{type:"button",className:Oa,onClick:function(){C("translateY(0px)"),b(null)},"aria-label":"Fermer",children:(0,h.jsx)(ei,{size:20,className:Oo})}),x.meta&&(0,h.jsx)("p",{className:Oe,children:x.meta})]})]}),(0,h.jsxs)("div",{className:"vyYXYAqiCk1g9io+Ah5+MQ==",children:[x.credits&&(0,h.jsx)("div",{className:"_3yBee5k8XLw-UP0W-OGPJw==",children:x.credits}),x.detail]}),(0,h.jsx)(Os,{})]}),s&&(0,h.jsxs)("div",{className:"fnDSsvUvs7RF0-MaCMzJAA==",style:{display:f?"flex":T?"none":void 0},children:[(0,h.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,h.jsx)(ei,{size:24,className:v()(Ou({},Oo,f))})}),(0,h.jsxs)("div",{className:"EQ2HiZYXJJe3d4cmHpXwrw==",children:[(0,h.jsxs)("div",{className:D6,children:[(0,h.jsx)("h1",{className:D7,children:s.name}),(0,h.jsx)("img",{className:D8,src:s.photoUrl,alt:""}),(0,h.jsx)("img",{className:v()(D8,D9),src:s.photoUrl,alt:"","aria-hidden":"true"})]}),(0,h.jsxs)("div",{className:"dL2jIfdUrGHnZ3neiNgmWQ==",children:[(0,h.jsxs)("div",{className:"_8xvnJyUgR8T8gsAxWL1QjA==",children:[(0,h.jsxs)("div",{className:"zIgPXtb-AgMiiyR5PLvINw==",children:[s.category&&(0,h.jsx)("p",{className:v()(Oe,"MnLipioGpICFDsG0Ns2Erg=="),children:s.category}),s.category&&s.itemCountLabel&&(0,h.jsx)("div",{className:Or}),s.itemCountLabel&&(0,h.jsx)("p",{className:Oe,children:s.itemCountLabel})]}),s.statLabel&&(0,h.jsx)("p",{className:Oe,children:s.statLabel})]}),s.description&&(0,h.jsx)("p",{className:Ot,children:s.description})]})]}),(0,h.jsx)(Os,{}),(0,h.jsx)("div",{className:"KjFQP8u+X-WZTn9RlF0Ipg=="})]})]})})})},Of={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}},none:{initial:{},animate:{},exit:{}}};let Op={triggerWrap:"vUZpFn+UMgclUORZoABUrg==",root:"lQeGJgYchsVFevDgOmcPpA==",overlay:"ZotjmcJN-j6QHpwbXf0Fig==",centerLayer:"j4W52OmwLCF-3IfZ-zs3NQ==",panel:"_5-mLRuC+OrIXsJCpZ0axgw==",closeButton:"buOzHkOvedGw-ofPVi-Esw==",dockBubble:"rCIDZSUtwNAQG5u47Pi6Vw==","dockBubble--left":"_4adFzZp2Mk6Bbej1SxUOqQ==","dockBubble--right":"rF++uPNbi58mV5Eq9Z7jig=="};function Oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Om(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oh(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 Og=function(e,t){return"u"<typeof window?e:Math.min(Math.max(e,8+t/2),window.innerHeight-8-t/2)},Ov=function(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e},Ob=function(e){var t,r,n,i,a,o,s,l,u=e.open,c=e.defaultOpen,d=e.onOpenChange,f=e.trigger,p=e.children,y=e.showCloseButton,g=e.renderCloseButton,b=e.cardVariant,w=e.cardProps,x=e.draggable,S=void 0!==x&&x,E=e.dockable,D=void 0!==E&&E,O=e.dockIcon,j=e.dockEdgeThreshold,P=void 0===j?80:j,C=e.dockUndockDistance,k=void 0===C?120:C,A=e.dockSize,T=void 0===A?56:A,N=e.closeOnOverlayClick,R=e.closeOnEscape,M=void 0===R||R,_=e.showOverlay,L=e.lockScroll,F=void 0===L||L,B=e.animation,V=void 0===B?"scale":B,U=e.overlayAnimation,W=e.className,$=e.style,z=e.overlayClassName,H=Oy((0,m.useState)(void 0!==c&&c),2),G=H[0],K=H[1],Y=Oy((0,m.useState)(!1),2),Z=Y[0],q=Y[1],X=Oy((0,m.useState)(null),2),Q=X[0],J=X[1],ee=(0,m.useRef)(null),et=(0,m.useId)(),er=void 0!==u,en=er?u:G,ei=(0,m.useCallback)(function(e){null==d||d(e),er||K(e)},[d,er]),ea=(0,m.useCallback)(function(){return ei(!1)},[ei]);(0,m.useEffect)(function(){return q(!0)},[]),(0,m.useEffect)(function(){en&&J(null)},[en]);var eo=(0,m.useCallback)(function(){if(D&&ee.current&&"u">typeof window){var e=ee.current.getBoundingClientRect(),t=e.left+e.width/2,r=e.top+e.height/2;if(Q)return void(Math.abs(t-("left"===Q.side?0:window.innerWidth))>k?J(null):J({side:Q.side,y:Og(r,T)}));t<=P?J({side:"left",y:Og(r,T)}):t>=window.innerWidth-P&&J({side:"right",y:Og(r,T)})}},[D,Q,P,k,T]);(0,m.useEffect)(function(){if(en&&F)return document.body.style.overflow="hidden",function(){document.body.style.overflow=""}},[en,F]),(0,m.useEffect)(function(){if(en&&M){var e=function(e){"Escape"===e.key&&ea()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[en,M,ea]);var es=Ov(V)?V:{preset:V},el=null!=(n=es.variants)?n:Of[null!=(i=es.preset)?i:"scale"],eu={duration:null!=(a=es.duration)?a:.25,ease:null!=(o=es.ease)?o:[.16,1,.3,1]},ec={duration:null!=(s=null==U?void 0:U.duration)?s:.2,ease:null!=(l=null==U?void 0:U.ease)?l:"easeOut"},ed=(0,h.jsx)(Dh,{children:en&&(0,h.jsxs)("div",{className:Op.root,children:[(void 0===_||_)&&!Q&&(0,h.jsx)(hK.div,{className:v()(Op.overlay,z),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:ec,onClick:void 0===N||N?ea:void 0,"aria-hidden":"true"}),Q?(0,h.jsx)(hK.div,{ref:ee,className:v()(Op.dockBubble,Op["dockBubble--".concat(Q.side)]),style:Om({top:Q.y,width:T,height:T},Q.side,-(T/2)),drag:!0,dragMomentum:!1,dragElastic:.2,onDragEnd:eo,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)&&J(null)},children:null!=O?O:(0,h.jsx)(eQ,{size:20})}):(0,h.jsx)("div",{className:Op.centerLayer,children:(0,h.jsx)(hK.div,{ref:ee,role:"dialog","aria-modal":"true","aria-labelledby":(null==w?void 0:w.title)?et:void 0,className:v()(Op.panel,W),style:$,variants:el,initial:"initial",animate:"animate",exit:"exit",transition:eu,drag:S,dragMomentum:!1,dragElastic:.12,onDragEnd:D?eo:void 0,whileDrag:S?{cursor:"grabbing"}:void 0,children:(0,h.jsxs)(I,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Om(e,t,r[t])})}return e}({variant:void 0===b?"default":b},w),r=r={children:[(void 0===y||y)&&(g?g(ea):(0,h.jsx)("button",{type:"button",className:Op.closeButton,onClick:ea,"aria-label":"Fermer",children:(0,h.jsx)(eO,{size:18})})),p]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})})]})});return(0,h.jsxs)(h.Fragment,{children:[f&&(0,h.jsx)("span",{className:Op.triggerWrap,onClick:function(){return ei(!0)},children:f}),Z&&(0,nA.createPortal)(ed,document.body)]})},Ow=(0,m.createContext)(null);function Ox(){var e=(0,m.useContext)(Ow);if(!e)throw Error("Select compound components must be used within <Select>");return e}function OS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OE(e){var t,r=e.children,n=e.options,i=e.selectedOptionId,a=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,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return OS(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 OS(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],y=f[1],g=(0,m.useRef)(null),v=void 0!==o,b=v?o:p,w=(0,m.useCallback)(function(e){null==s||s(e),v||y(e)},[s,v]),x=(0,m.useMemo)(function(){var e;return i&&null!=(e=n.find(function(e){return u(e)===i}))?e:n[0]},[n,i,u]),S=(0,m.useCallback)(function(e){null==a||a(e),w(!1)},[a,w]);return(0,h.jsx)(Ow.Provider,{value:{open:b,setOpen:w,selectedOption:x,options:n,onOptionSelect:S,getOptionId:u,getOptionName:d,triggerRef:g},children:r})}function OD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var OO=function(e){var t,r=e.src,n=e.name,i=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return OD(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 OD(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.")}(),a=i[0],o=i[1];return r&&!a?(0,h.jsx)("img",{className:"wkB2kAknv1zF0z2W5hQ9DQ==",src:r,alt:"",onError:function(){return o(!0)}}):(0,h.jsx)("span",{className:"Tct32IIX1xLM3Ll--7vz2Q==","aria-hidden":"true",children:n.charAt(0).toUpperCase()})};function Oj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var OP=function(e){var t,r,n=e.className,i=e.renderTrigger,a=e.showAvatar,o=e.placeholder,s=function(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["className","renderTrigger","showAvatar","placeholder"]),l=Ox(),u=l.open,c=l.setOpen,d=l.selectedOption,f=l.getOptionName,p=l.triggerRef;return(0,h.jsxs)("button",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Oj(e,t,r[t])})}return e}({ref:p,type:"button","data-state":u?"open":"closed",className:v()("t3j-WppHuYF4Q80G8ssYTw==",n),"aria-haspopup":"listbox","aria-expanded":u,onClick:function(){return c(!u)}},s),r=r={children:[i?i(d,u):(0,h.jsx)("span",{className:"U-ahBWFU08MjGLDcp0Vl-A==",children:d?(0,h.jsxs)(h.Fragment,{children:[(void 0===a||a)&&(0,h.jsx)(OO,{src:d.logo,name:f(d)}),(0,h.jsx)("span",{className:"QK0htgsSPpOKTtru9ws0EQ==",children:f(d)})]}):(0,h.jsx)("span",{className:"YRUNT0AbcKFGiYkN5EOAXQ==",children:void 0===o?"S\xe9lectionner…":o})}),(0,h.jsx)(ex,{className:v()("Mx+cKK19Fg1ZkYsq9XTF+Q==",Oj({},"Y14Nb0Z4izXoAy2Ekb7yKw==",u)),size:16})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function OC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ok(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OC(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 OT=function(e){var t=e.className,r=e.style,n=e.renderOption,i=e.title,a=void 0===i?"Options":i,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,y=Ox(),g=y.open,b=y.setOpen,w=y.options,x=y.selectedOption,S=y.onOptionSelect,E=y.getOptionId,D=y.getOptionName,O=y.triggerRef,j=OA((0,m.useState)(""),2),P=j[0],C=j[1],k=OA((0,m.useState)(null),2),A=k[0],T=k[1],N=(0,m.useRef)(null);(0,m.useLayoutEffect)(function(){if(g&&O.current){var e=O.current.getBoundingClientRect();T({top:e.bottom+8,left:e.left,width:e.width})}},[g,O]),(0,m.useLayoutEffect)(function(){if(g){var e=function(e){var t,r,n=e.target;(null==(t=N.current)?void 0:t.contains(n))||(null==(r=O.current)?void 0:r.contains(n))||b(!1)},t=function(e){"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}},[g,b,O]),(0,m.useLayoutEffect)(function(){null==u||u(P)},[P,u]);var R=(0,m.useMemo)(function(){if(!P.trim())return w;var e=P.trim().toLowerCase();return w.filter(function(t){return D(t).toLowerCase().includes(e)})},[w,P,D]);return(0,h.jsx)(Dh,{children:g&&A&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"dkRAkgp3BFtwzjJE-+VFNA==",onClick:function(){return b(!1)},"aria-hidden":"true"}),(0,h.jsxs)(hK.div,{ref:N,role:"listbox",className:v()("_7h5yIMILvNcW4OglkfyE7w==",t),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ok(e,t,r[t])})}return e}({top:A.top,left:A.left,minWidth:A.width},r),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:[a&&(0,h.jsx)("div",{className:"A2JDtexU43VW64EghIpTQA==",children:(0,h.jsx)("p",{className:"V7CXVecSVLNqJ66geKUfbw==",children:a})}),void 0!==o&&o&&(0,h.jsxs)("div",{className:"mtQcifPOEO7D4zrOWWD0kw==",children:[(0,h.jsx)(tl,{className:"szdWZIGkqj5JkTjrMfYthA==",size:14}),(0,h.jsx)("input",{type:"search",value:P,onChange:function(e){return C(e.target.value)},placeholder:l,className:"uMojvShIYx5296nkyFf2CQ==","aria-label":l})]}),(0,h.jsx)("div",{className:"kuwO3yJ2+mevpLGgYYxVPA==",children:0===R.length?(0,h.jsx)("div",{className:"WqWnNyZ+SsvYbZiQXqN9LA==",children:void 0===c?"Aucun r\xe9sultat.":c}):R.map(function(e){var t=!!(x&&E(x)===E(e));return(0,h.jsx)("button",{type:"button",role:"option","aria-selected":t,className:v()("mqfrCZDVzn25GOVXds14vw==",Ok({},"L6Iv6NuFuPhWORTrROoCQA==",t)),onClick:function(){return S(e)},children:n?n(e,t):(0,h.jsxs)("span",{className:"QgTVl5jRUTfIXW601rgeyg==",children:[f&&(0,h.jsx)(OO,{src:e.logo,name:D(e)}),(0,h.jsxs)("span",{className:"SYJawtLOcPCC0TPqGiOvMQ==",children:[(0,h.jsx)("span",{className:"OI0baC0QxBDt4jjPAM-dGg==",children:D(e)}),"string"==typeof e.plan&&(0,h.jsx)("span",{className:"GUcFs5fWN+3TK984AqwG9A==",children:e.plan})]}),t&&(0,h.jsx)(eb,{className:"TzeaWqNOeAr6DmRLqam-Sw==",size:16})]})},E(e))})}),p&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"oXYvspdkUZS-DKDXRBZ0dQ=="}),(0,h.jsx)("div",{className:"cmwkT8GHdqHTdCTzWYZVtw==",children:p})]})]})]})})};let ON="YDxgnSM2QPGOYYICdgjq7Q==";function OR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||OM(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 OM(e,t){if(e){if("string"==typeof e)return OR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OR(e,t)}}function O_(e){var t=e.options,r=e.defaultActiveIndex,n=e.onChange,i=e.title,a=e.subtitle,o=e.className,s=e.style,l=OI((0,m.useState)(void 0===r?0:r),2),u=l[0],c=l[1],d=OI((0,m.useState)([]),2),f=d[0],p=d[1],y=function(e){e!==u&&(c(e),null==n||n(e))};return(0,m.useEffect)(function(){var e=[];return t.forEach(function(t,r){var n=setTimeout(function(){p(function(e){return((function(e){if(Array.isArray(e))return OR(e)})(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OM(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([r])})},180*r);e.push(n)}),function(){e.forEach(function(e){return clearTimeout(e)})}},[]),(0,h.jsxs)("div",{className:v()("iEhH+HaRkRKUoLCWvUIQhw==",o),style:s,children:[(i||a)&&(0,h.jsxs)("div",{className:"eN72I0288g2WaCbuAQ2bYg==",children:[i&&(0,h.jsx)("h1",{className:v()("TsIf8Q8vAVSLc-vC4h6-UA==",ON,"CUA6-RpM0KPkwxkPhWbpzg=="),children:i}),a&&(0,h.jsx)("p",{className:v()("GiaxLFLhrXHmZTTZjk2qqg==",ON,"_9Yr3LyYRKK-5-YtKO+v7iQ=="),children:a})]}),(0,h.jsx)("div",{className:"qS+vW5L8Q0ImvbmEEVH6Zw=="}),(0,h.jsx)("div",{className:"bZylxemsiNEwOKft2Yim7A==",children:t.map(function(e,t){var r=u===t,n=f.includes(t);return(0,h.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":r,"aria-label":e.title,className:"CrFxDTnckthbbJULJ9-Fpw==",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:r?"auto 100%":"auto 120%",opacity:+!!n,transform:n?"translateX(0)":"translateX(-60px)",borderColor:r?"var(--colors-on-primary)":"var(--colors-neutral-800)",boxShadow:r?"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:r?"7 1 0%":"1 1 0%",zIndex:r?10:1},onClick:function(){return y(t)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y(t))},children:[(0,h.jsx)("div",{className:"_2f+RF6vIsZaR6YQOUFD7nA==",style:{bottom:r?"0":"-40px",boxShadow:r?"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,h.jsxs)("div",{className:"eExsY2Ta9lfHQf6X7XqZ1A==",children:[(0,h.jsx)("div",{className:"yJc-rRDMgGGiKV8FxMdAbw==",children:e.icon}),(0,h.jsxs)("div",{className:"cWg-5lHxNCwFSF235cWIWg==",children:[(0,h.jsx)("div",{className:"_08wUY7Q+Tx3+yEn40aavkw==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.title}),(0,h.jsx)("div",{className:"PLdNGlH8gBsLM-76NA+zeQ==",style:{opacity:+!!r,transform:r?"translateX(0)":"translateX(25px)"},children:e.description})]})]})]},t)})})]})}function OL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function OF(e,t){if(e){if("string"==typeof e)return OL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OL(e,t)}}var OB=function(e){var t,r=e.images,n=e.cardWidth,i=void 0===n?256:n,a=e.cardHeight,o=void 0===a?352:a,s=e.className,l=e.style,u=e.getAlt,c=e.onSwipe,d=(0,m.useRef)(null),f=(0,m.useRef)(!1),p=(0,m.useRef)(0),y=(0,m.useRef)(0),g=(0,m.useRef)(null),b=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(function(){return Array.from({length:r.length},function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||OF(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.")}(),w=b[0],x=b[1];(0,m.useEffect)(function(){x(Array.from({length:r.length},function(e,t){return t}))},[r.length]);var S=(0,m.useCallback)(function(e,t){var r,n,i=null==(n=getComputedStyle(t||document.documentElement))||null==(r=n.getPropertyValue(e))?void 0:r.trim();return i?i.endsWith("ms")?parseFloat(i):i.endsWith("s")?1e3*parseFloat(i):parseFloat(i)||0:0},[]),E=(0,m.useCallback)(function(){return d.current?Array.from(d.current.querySelectorAll("[data-image-swiper-card]")):[]},[]),D=(0,m.useCallback)(function(){return E()[0]||null},[E]),O=(0,m.useCallback)(function(){E().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"})},[E]),j=(0,m.useCallback)(function(e){var t=D();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())},[D]),P=(0,m.useCallback)(function(e){if(!f.current){f.current=!0,p.current=e,y.current=e;var t=D();t&&(t.style.transition="none")}},[D]),C=(0,m.useCallback)(function(){if(f.current){g.current&&(cancelAnimationFrame(g.current),g.current=null);var e=y.current-p.current,t=S("--card-swap-duration",d.current),r=D();if(r)if(r.style.transition="transform ".concat(t,"ms ease, opacity ").concat(t,"ms ease"),Math.abs(e)>50){var n=Math.sign(e);r.style.setProperty("--swipe-x","".concat(300*n,"px")),r.style.setProperty("--swipe-rotate","".concat(20*n,"deg")),setTimeout(function(){D()===r&&r.style.setProperty("--swipe-rotate","".concat(-(20*n),"deg"))},.5*t),setTimeout(function(){x(function(e){var t;return 0===e.length?[]:(null==c||c(e[0],n>0?"right":"left"),((function(e){if(Array.isArray(e))return OL(e)})(t=e.slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||OF(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 j(0);f.current=!1,p.current=0,y.current=0}},[S,D,j,c]),k=(0,m.useCallback)(function(e){f.current&&(g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function(){y.current=e;var t=y.current-p.current;j(t),Math.abs(t)>50&&C()}))},[j,C]);return(0,m.useEffect)(function(){var e=d.current;if(e){var t=function(e){return P(e.clientX)},r=function(e){return k(e.clientX)},n=function(){return C()};return e.addEventListener("pointerdown",t),e.addEventListener("pointermove",r),e.addEventListener("pointerup",n),function(){e.removeEventListener("pointerdown",t),e.removeEventListener("pointermove",r),e.removeEventListener("pointerup",n),g.current&&cancelAnimationFrame(g.current)}}},[P,k,C]),(0,m.useEffect)(function(){O()},[w,O]),(0,h.jsx)("section",{ref:d,className:v()("BS149H5mDVvg3aQhaAoesw==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i+32,height:o+32,"--card-perspective":"700px","--card-z-offset":"12px","--card-y-offset":"7px","--card-max-z-index":r.length.toString(),"--card-swap-duration":"0.3s"},l),children:w.map(function(e,t){return(0,h.jsx)("article",{"data-image-swiper-card":!0,className:"kaCNxsa+THVgnYmKRbNejQ==",style:{"--i":(t+1).toString(),zIndex:r.length-t,width:i,height:o},children:(0,h.jsx)("img",{src:r[e],alt:u?u(e):"Image ".concat(e+1),className:"JYoHzp57a8OPG0yUbb-MnA==",draggable:!1})},"".concat(r[e],"-").concat(e))})})},OV=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OU=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,OW=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,O$=/(^[#\.][a-z]|[a-y][a-z])/i,Oz=Math.PI/180,OH=180/Math.PI,OG=Math.sin,OK=Math.cos,OY=Math.abs,OZ=Math.sqrt,Oq=Math.atan2,OX=function(e){return"string"==typeof e},OQ=function(e){return"number"==typeof e},OJ={},O0={},O1=function(e){return Math.round((e+1e8)%1*1e5)/1e5||(e<0?0:1)},O2=function(e){return Math.round(1e5*e)/1e5||0},O3=function(e){return Math.round(1e10*e)/1e10||0},O4=function(e){return e.closed=.001>Math.abs(e[0]-e[e.length-2])&&.001>Math.abs(e[1]-e[e.length-1])},O5=function(e,t,r,n){var i=e[t],a=1===n?6:js(i,r,n);if((a||!n)&&a+r+2<i.length)return e.splice(t,0,i.slice(0,r+a+2)),i.splice(0,r+a),1},O6=function(e,t,r){var n=e.length,i=~~(r*n);if(e[i]>t){for(;--i&&e[i]>t;);i<0&&(i=0)}else for(;e[++i]<t&&i<n;);return i<n?i:n-1},O8=function(e,t){var r=e.length;for(t||e.reverse();r--;)e[r].reversed||function(e){var t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}(e[r])},O9=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},O7=function(e,t){var r=e.length,n=e[r-1]||[],i=n.length;r&&t[0]===n[i-2]&&t[1]===n[i-1]&&(t=n.concat(t.slice(2)),r--),e[r]=t};function je(e){var t,r=(e=OX(e)&&O$.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(t=r._gsPath[e])&&!t._dirty?t:r._gsPath[e]=jd(e)):e?OX(e)?jd(e):OQ(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}var jt=function(e,t){var r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),i=[].slice.call(e.attributes),a=i.length;for(t=","+t+",";--a>-1;)r=i[a].nodeName.toLowerCase(),0>t.indexOf(","+r+",")&&n.setAttributeNS(null,r,i[a].nodeValue);return n},jr={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},jn=function(e,t){for(var r=t?t.split(","):[],n={},i=r.length;--i>-1;)n[r[i]]=+e.getAttribute(r[i])||0;return n};function ji(e,t,r){var n,i=e[t],a=e[t+2],o=e[t+4];return i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,n=a+(o+(e[t+6]-o)*r-a)*r-i,i=e[t+1],a=e[t+3],o=e[t+5],i+=(a-i)*r,a+=(o-a)*r,i+=(a-i)*r,O2(Oq(a+(o+(e[t+7]-o)*r-a)*r-i,n)*OH)}function ja(e,t,r){var n=Math.max(0,~~(OY((r=void 0===r?1:O3(r)||0)-(t=O3(t)||0))-1e-8)),i=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=O9(e[r],e[r].slice(0));return O9(e,t)}(e);if(t>r&&(t=1-t,r=1-r,O8(i),i.totalLength=0),t<0||r<0){var a=Math.abs(~~Math.min(t,r))+1;t+=a,r+=a}i.totalLength||jo(i);var o,s,l,u,c,d,f,p,h=r>1,m=jl(i,t,OJ,!0),y=jl(i,r,O0),g=y.segment,v=m.segment,b=y.segIndex,w=m.segIndex,x=y.i,S=m.i,E=w===b,D=x===S&&E;if(h||n){for(o=b<w||E&&x<S||D&&y.t<m.t,O5(i,w,S,m.t)&&(w++,!o&&(b++,D?(y.t=(y.t-m.t)/(1-m.t),x=0):E&&(x-=S))),1e-5>Math.abs(1-(r-t))?b=w-1:!y.t&&b?b--:O5(i,b,x,y.t)&&o&&w++,1===m.t&&(w=(w+1)%i.length),c=[],f=1+(d=i.length)*n,p=w,f+=(d-w+b)%d,u=0;u<f;u++)O7(c,i[p++%d]);i=c}else if(l=1===y.t?6:js(g,x,y.t),t!==r)for(s=js(v,S,D?m.t/y.t:m.t),E&&(l+=s),g.splice(x+l+2),(s||S)&&v.splice(0,S+s),u=i.length;u--;)(u<w||u>b)&&i.splice(u,1);else g.angle=ji(g,x+l,0),x+=l,m=g[x],y=g[x+1],g.length=g.totalLength=0,g.totalPoints=i.totalPoints=8,g.push(m,y,m,y,m,y,m,y);return i.totalLength=0,i}function jo(e,t){var r,n,i;for(i=r=n=0;i<e.length;i++)e[i].resolution=~~t||12,r+=function(e,t){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b=~~e.resolution||12,w=1/b,x=e.length,S=e[t],E=e[t+1],D=t?t/6*b:0,O=e.samples,j=e.lookup,P=(t?e.minLength:1e8)||1e8,C=O[D+(void 0)*b-1],k=t?O[D-1]:0;for(O.length=j.length=0,n=t+2;n<x;n+=6){if(i=e[n+4]-S,a=e[n+2]-S,o=e[n]-S,u=e[n+5]-E,c=e[n+3]-E,d=e[n+1]-E,s=l=f=p=0,.01>OY(i)&&.01>OY(u)&&OY(o)+OY(d)<.01)e.length>8&&(e.splice(n,6),n-=6,x-=6);else for(r=1;r<=b;r++)h=1-(m=w*r),s=l-(l=(m*m*i+3*h*(m*a+h*o))*m),(g=OZ((f=p-(p=(m*m*u+3*h*(m*c+h*d))*m))*f+s*s))<P&&(P=g),k+=g,O[D++]=k;S+=i,E+=u}if(C)for(C-=k;D<O.length;D++)O[D]+=C;if(O.length&&P){if(e.totalLength=v=O[O.length-1]||0,e.minLength=P,v/P<9999)for(r=0,g=y=0;r<v;r+=P)j[g++]=O[y]<r?++y:y}else e.totalLength=O[0]=0;return t?k-O[t/2-1]:k}(e[i]),n+=e[i].length;return e.totalPoints=n,e.totalLength=r,e}function js(e,t,r){if(r<=0||r>=1)return 0;var n=e[t],i=e[t+1],a=e[t+2],o=e[t+3],s=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],d=n+(a-n)*r,f=a+(s-a)*r,p=i+(o-i)*r,h=o+(l-o)*r,m=d+(f-d)*r,y=p+(h-p)*r,g=s+(u-s)*r,v=l+(c-l)*r;return f+=(g-f)*r,h+=(v-h)*r,e.splice(t+2,4,O2(d),O2(p),O2(m),O2(y),O2(m+(f-m)*r),O2(y+(h-y)*r),O2(f),O2(h),O2(g),O2(v)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function jl(e,t,r,n){r=r||{},e.totalLength||jo(e),(t<0||t>1)&&(t=O1(t));var i,a,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}i=f.samples,a=f.resolution,o=f.totalLength*t,s=(u=f.lookup.length?f.lookup[~~(o/f.minLength)]||0:O6(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),c=1/a*((o-s)/(l-s)+u%a),u=6*~~(u/a),n&&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 r.t=c,r.i=u,r.path=e,r.segment=f,r.segIndex=d,r}function ju(e,t,r,n){var i,a,o,s,l,u,c,d,f,p=e[0],h=n||{};if((t<0||t>1)&&(t=O1(t)),p.lookup||jo(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 i=p.samples,a=p.resolution,o=p.totalLength*t,s=(u=p.lookup.length?p.lookup[t<1?~~(o/p.minLength):p.lookup.length-1]||0:O6(i,o,t))?i[u-1]:0,(l=i[u])<o&&(s=l,l=i[++u]),f=1-(c=1/a*((o-s)/(l-s)+u%a)||0),d=p[u=6*~~(u/a)],h.x=O2((c*c*(p[u+6]-d)+3*f*(c*(p[u+4]-d)+f*(p[u+2]-d)))*c+d),h.y=O2((c*c*(p[u+7]-(d=p[u+1]))+3*f*(c*(p[u+5]-d)+f*(p[u+3]-d)))*c+d),r&&(h.angle=p.totalLength?ji(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),h}function jc(e,t,r,n,i,a,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*n+a,s[u+1]=c*r+d*i+o;return e._dirty=1,e}function jd(e){var t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y=(e+"").replace(OW,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(OV)||[],g=[],v=0,b=0,w=2/3,x=y.length,S=0,E="ERROR: malformed path: "+e,D=function(e,t,r,n){c=(r-e)/3,d=(n-t)/3,s.push(e+c,t+d,r-c,n-d,r,n)};if(!e||!isNaN(y[0])||isNaN(y[1]))return console.log(E),g;for(t=0;t<x;t++)if(p=a,isNaN(y[t])?o=(a=y[t].toUpperCase())!==y[t]:t--,n=+y[t+1],i=+y[t+2],o&&(n+=v,i+=b),t||(l=n,u=i),"M"===a)s&&(s.length<8?g.length-=1:S+=s.length,O4(s)),v=l=n,b=u=i,s=[n,i],g.push(s),t+=2,a="L";else if("C"===a)s||(s=[0,0]),o||(v=b=0),s.push(n,i,v+ +y[t+3],b+ +y[t+4],v+=+y[t+5],b+=+y[t+6]),t+=6;else if("S"===a)c=v,d=b,("C"===p||"S"===p)&&(c+=v-s[s.length-4],d+=b-s[s.length-3]),o||(v=b=0),s.push(c,d,n,i,v+=+y[t+3],b+=+y[t+4]),t+=4;else if("Q"===a)c=v+(n-v)*w,d=b+(i-b)*w,o||(v=b=0),v+=+y[t+3],b+=+y[t+4],s.push(c,d,v+(n-v)*w,b+(i-b)*w,v,b),t+=4;else if("T"===a)c=v-s[s.length-4],d=b-s[s.length-3],s.push(v+c,b+d,n+(v+1.5*c-n)*w,i+(b+1.5*d-i)*w,v=n,b=i),t+=2;else if("H"===a)D(v,b,v=n,b),t+=1;else if("V"===a)D(v,b,v,b=n+(o?b-v:0)),t+=1;else if("L"===a||"Z"===a)"Z"===a&&(n=l,i=u,s.closed=!0),("L"===a||OY(v-n)>.5||OY(b-i)>.5)&&(D(v,b,n,i),"L"===a&&(t+=2)),v=n,b=i;else if("A"===a){if(h=y[t+4],m=y[t+5],c=y[t+6],d=y[t+7],r=7,h.length>1&&(h.length<3?(d=c,c=m,r--):(d=m,c=h.substr(2),r-=2),m=h.charAt(1),h=h.charAt(0)),f=function(e,t,r,n,i,a,o,s,l){if(e!==s||t!==l){r=OY(r),n=OY(n);var u=i%360*Oz,c=OK(u),d=OG(u),f=Math.PI,p=2*f,h=(e-s)/2,m=(t-l)/2,y=c*h+d*m,g=-d*h+c*m,v=y*y,b=g*g,w=v/(r*r)+b/(n*n);w>1&&(r=OZ(w)*r,n=OZ(w)*n);var x=r*r,S=n*n,E=(x*S-x*b-S*v)/(x*b+S*v);E<0&&(E=0);var D=(a===o?-1:1)*OZ(E),O=r*g/n*D,j=-(n*y/r*D),P=(e+s)/2+(c*O-d*j),C=(t+l)/2+(d*O+c*j),k=(y-O)/r,A=(g-j)/n,T=(-y-O)/r,N=(-g-j)/n,R=k*k+A*A,I=(A<0?-1:1)*Math.acos(k/OZ(R)),M=(k*N-A*T<0?-1:1)*Math.acos((k*T+A*N)/OZ(R*(T*T+N*N)));isNaN(M)&&(M=f),!o&&M>0?M-=p:o&&M<0&&(M+=p),I%=p;var _,L=Math.ceil(OY(M%=p)/(p/4)),F=[],B=M/L,V=4/3*OG(B/2)/(1+OK(B/2)),U=c*r,W=d*r,$=-(d*n),z=c*n;for(_=0;_<L;_++)y=OK(i=I+_*B),g=OG(i),k=OK(i+=B),A=OG(i),F.push(y-V*g,g+V*y,k+V*A,A-V*k,k,A);for(_=0;_<F.length;_+=2)y=F[_],g=F[_+1],F[_]=y*U+g*$+P,F[_+1]=y*W+g*z+C;return F[_-2]=s,F[_-1]=l,F}}(v,b,+y[t+1],+y[t+2],+y[t+3],+h,+m,(o?v:0)+ +c,(o?b:0)+ +d),t+=r,f)for(r=0;r<f.length;r++)s.push(f[r]);v=s[s.length-2],b=s[s.length-1]}else console.log(E);return(t=s.length)<6?(g.pop(),t=0):O4(s),g.totalPoints=S+t,g}function jf(e,t){1e-4>OY(e[0]-e[2])&&1e-4>OY(e[1]-e[3])&&(e=e.slice(2));var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g=e.length-2,v=+e[0],b=+e[1],w=+e[2],x=+e[3],S=[v,b,v,b],E=w-v,D=x-b,O=e.nonSmooth||[],j=.001>Math.abs(e[g]-v)&&.001>Math.abs(e[g+1]-b);if(!g)return[v,b,v,b,v,b,v,b];for(j&&(e.push(w,x),w=v,x=b,v=e[g-2],b=e[g-1],e.unshift(v,b),g+=4,O=[0,0].concat(O)),t=t||0===t?+t:1,i=2;i<g;i+=2)if(r=v,n=b,v=w,b=x,w=+e[i+2],x=+e[i+3],v!==w||b!==x){if(a=E,o=D,E=w-v,D=x-b,O[i]){S.push(v-(v-r)/4,b-(b-n)/4,v,b,v+(w-v)/4,b+(x-b)/4);continue}s=OZ(a*a+o*o),l=OZ(E*E+D*D),u=OZ(Math.pow(E/l+a/s,2)+Math.pow(D/l+o/s,2)),c=(s+l)*t*.25/u,d=v-(v-r)*(s?c/s:0),f=v+(w-v)*(l?c/l:0),p=v-(d+((f-d)*(3*s/(s+l)+.5)/4||0)),h=b-(b-n)*(s?c/s:0),m=b+(x-b)*(l?c/l:0),y=b-(h+((m-h)*(3*s/(s+l)+.5)/4||0)),S.push(O2(d+p),O2(h+y),O2(v),O2(b),O2(f+p),O2(m+y))}return v!==w||b!==x||S.length<4?S.push(O2(w),O2(x),O2(w),O2(x)):S.length-=2,2===S.length?S.push(v,b,v,b,v,b):j&&(S.splice(0,6),S.length-=6),S.closed=j,S}function jp(e){OQ(e[0])&&(e=[e]);var t,r,n,i,a="",o=e.length;for(r=0;r<o;r++){for(a+="M"+O2((i=e[r])[0])+","+O2(i[1])+" C",t=i.length,n=2;n<t;n++)a+=O2(i[n++])+","+O2(i[n++])+" "+O2(i[n++])+","+O2(i[n++])+" "+O2(i[n++])+","+O2(i[n])+" ";i.closed&&(a+="z")}return a}var jh,jm,jy,jg,jv,jb,jw,jx,jS,jE,jD,jO="transform",jj=jO+"Origin",jP=function(e){var t=e.ownerDocument||e;for(!(jO in e.style)&&("msTransform"in e.style)&&(jj=(jO="msTransform")+"Origin");t.parentNode&&(t=t.parentNode););if(jg=window,jS=new jL,t){jy=t,jv=t.documentElement,jb=t.body,(jE=jy.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=t.createElement("div"),n=t.createElement("div"),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.style.position="static",r.style.transform="translate3d(0,0,1px)",jD=n.offsetParent!==r,i.removeChild(r))}return t},jC=function(e){for(var t,r;e&&e!==jb;)(r=e._gsap)&&r.uncache&&r.get(e,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),t?t.push(r):t=[r]),e=e.parentNode;return t},jk=[],jA=[],jT=function(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},jN=function e(t,r){if(t.parentNode&&(jy||jP(t))){var n=jT(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?r?"rect":"g":"div",o=100*(2===r),s=100*(3===r),l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=jy.createElementNS?jy.createElementNS(i.replace(/^https/,"http"),a):jy.createElement(a);return r&&(n?(jx||(jx=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+s+")"),u.setAttribute("fill","transparent"),jx.appendChild(u)):(jw||Object.assign((jw=e(t)).style,l),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:s+"px",left:o+"px"}),jw.appendChild(u))),u}throw"Need document and parent."},jR=function(e){for(var t=new jL,r=0;r<e.numberOfItems;r++)t.multiply(e.getItem(r).matrix);return t},jI=function(e){var t,r=e.getCTM();return r||(t=e.style[jO],e.style[jO]="none",e.appendChild(jE),r=jE.getCTM(),e.removeChild(jE),t?e.style[jO]=t:e.style.removeProperty(jO.replace(/([A-Z])/g,"-$1").toLowerCase())),r||jS.clone()},jM=function(e,t){var r,n,i,a,o,s,l=jT(e),u=e===l,c=l?jk:jA,d=e.parentNode,f=d&&!l&&d.shadowRoot&&d.shadowRoot.appendChild?d.shadowRoot:d;if(e===jg)return e;if(c.length||c.push(jN(e,1),jN(e,2),jN(e,3)),r=l?jx:jw,l)u?(a=-(i=jI(e)).e/i.a,o=-i.f/i.d,n=jS):e.getBBox?(i=e.getBBox(),a=(n=(n=e.transform?e.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?jR(n):n.getItem(0).matrix:jS).a*i.x+n.c*i.y,o=n.b*i.x+n.d*i.y):(n=new jL,a=o=0),t&&"g"===e.tagName.toLowerCase()&&(a=o=0),(u||!e.getBoundingClientRect().width?l:d).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+o)+")");else{if(a=o=0,jD)for(n=e.offsetParent,i=e;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(jg.getComputedStyle(i)[jO]+"").length>4&&(a=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(s=jg.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;d&&d!==n;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(i=r.style).top=e.offsetTop-o+"px",i.left=e.offsetLeft-a+"px",i[jO]=s[jO],i[jj]=s[jj],i.position="fixed"===s.position?"fixed":"absolute",f.appendChild(r)}return r},j_=function(e,t,r,n,i,a,o){return e.a=t,e.b=r,e.c=n,e.d=i,e.e=a,e.f=o,e},jL=function(){function e(e,t,r,n,i,a){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===a&&(a=0),j_(this,e,t,r,n,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,r=this.c,n=this.d,i=this.e,a=this.f,o=e*n-t*r||1e-10;return j_(this,n/o,-t/o,-r/o,e/o,(r*a-n*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f,s=e.a,l=e.c,u=e.b,c=e.d,d=e.e,f=e.f;return j_(this,s*t+u*n,s*r+u*i,l*t+c*n,l*r+c*i,a+d*t+f*n,o+d*r+f*i)},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,r=this.b,n=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&r===e.b&&n===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){void 0===t&&(t={});var r=e.x,n=e.y,i=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f;return t.x=r*i+n*o+l||0,t.y=r*a+n*s+u||0,t},e}();function jF(e,t,r,n){if(!e||!e.parentNode||(jy||jP(e)).documentElement===e)return new jL;var i=jC(e),a=jT(e)?jk:jA,o=jM(e,r),s=a[0].getBoundingClientRect(),l=a[1].getBoundingClientRect(),u=a[2].getBoundingClientRect(),c=o.parentNode,d=!n&&function e(t){return"fixed"===jg.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?e(t):void 0)}(e),f=new jL((l.left-s.left)/100,(l.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(d?0:jg.pageXOffset||jy.scrollLeft||jv.scrollLeft||jb.scrollLeft||0),s.top+(d?0:jg.pageYOffset||jy.scrollTop||jv.scrollTop||jb.scrollTop||0));if(c.removeChild(o),i)for(s=i.length;s--;)(l=i[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?f.inverse():f}var jB,jV,jU,jW,j$,jz,jH="x,translateX,left,marginLeft,xPercent".split(","),jG="y,translateY,top,marginTop,yPercent".split(","),jK=Math.PI/180,jY=function(e,t,r,n){for(var i=t.length,a=2===n?0:n,o=0;o<i;o++)e[a]=parseFloat(t[o][r]),2===n&&(e[a+1]=0),a+=2;return e},jZ=function(e,t,r){return parseFloat(e._gsap.get(e,t,r||"px"))||0},jq=function(e){var t,r=e[0],n=e[1];for(t=2;t<e.length;t+=2)r=e[t]+=r,n=e[t+1]+=n},jX=function(e,t,r,n,i,a,o,s,l){return"cubic"===o.type?t=[t]:(!1!==o.fromCurrent&&t.unshift(jZ(r,n,s),i?jZ(r,i,l):0),o.relative&&jq(t),t=[(i?jf:function(e,t){void 0===t&&(t=1);for(var r=e[0],n=0,i=[r,0],a=2;a<e.length;a+=2)i.push(r,n,e[a],n=(e[a]-r)*t/2,r=e[a],-n);return i})(t,o.curviness)]),t=a(j2(t,r,o)),j3(e,r,n,t,"x",s),i&&j3(e,r,i,t,"y",l),jo(t,o.resolution||(0===o.curviness?20:12))},jQ=function(e){return e},jJ=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,j0=function(e,t,r){var n,i=jF(e),a=0,o=0;return"svg"===(e.tagName+"").toLowerCase()?(n=e.viewBox.baseVal).width||(n={width:+e.getAttribute("width"),height:+e.getAttribute("height")}):n=t&&e.getBBox&&e.getBBox(),t&&"auto"!==t&&(a=t.push?t[0]*(n?n.width:e.offsetWidth||0):t.x,o=t.push?t[1]*(n?n.height:e.offsetHeight||0):t.y),r.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})},j1=function(e,t,r,n){var i,a=jF(e.parentNode,!0,!0),o=a.clone().multiply(jF(t)),s=j0(e,r,a),l=j0(t,n,a),u=l.x,c=l.y;return o.e=o.f=0,"auto"===n&&t.getTotalLength&&"path"===t.tagName.toLowerCase()&&(i=t.getAttribute("d").match(jJ)||[],u+=(i=o.apply({x:+i[0],y:+i[1]})).x,c+=i.y),i&&(u-=(i=o.apply(t.getBBox())).x,c-=i.y),o.e=u-s.x,o.f=c-s.y,o},j2=function(e,t,r){var n,i,a,o=r.align,s=r.matrix,l=r.offsetX,u=r.offsetY,c=r.alignOrigin,d=e[0][0],f=e[0][1],p=jZ(t,"x"),h=jZ(t,"y");return e&&e.length?(o&&("self"===o||(n=jW(o)[0]||t)===t?jc(e,1,0,0,1,p-d,h-f):(c&&!1!==c[2]?jB.set(t,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[-(jZ(t,"xPercent")/100),-(jZ(t,"yPercent")/100)],a=(i=j1(t,n,c,"auto")).apply({x:d,y:f}),jc(e,i.a,i.b,i.c,i.d,p+i.e-(a.x-i.e),h+i.f-(a.y-i.f)))),s?jc(e,s.a,s.b,s.c,s.d,s.e,s.f):(l||u)&&jc(e,1,0,0,1,l||0,u||0),e):je("M0,0L0,0")},j3=function(e,t,r,n,i,a){var o=t._gsap,s=o.harness,l=s&&s.aliases&&s.aliases[r],u=l&&0>l.indexOf(",")?l:r,c=e._pt=new jV(e._pt,t,u,0,0,jQ,0,o.set(t,u,e));c.u=jU(o.get(t,u,a))||0,c.path=n,c.pp=i,e._props.push(u)},j4={version:"3.15.0",name:"motionPath",register:function(e,t,r){jU=(jB=e).utils.getUnit,jW=jB.utils.toArray,j$=jB.core.getStyleSaver,jz=jB.core.reverting||function(){},jV=r},init:function(e,t,r){if(!jB)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(void 0===t?"undefined":(n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)=="object"&&!t.style&&t.path||(t={path:t});var n,i,a,o,s,l=[],u=t,c=u.path,d=u.autoRotate,f=u.unitX,p=u.unitY,h=u.x,m=u.y,y=c[0],g=(i=t.start,a="end"in t?t.end:1,function(e){return i||1!==a?ja(e,i,a):e});if(this.rawPaths=l,this.target=e,this.tween=r,this.styles=j$&&j$(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=jU(e._gsap.get(e,this.rProp))||0),!Array.isArray(c)||"closed"in c||"number"==typeof y)jo(o=g(j2(je(t.path),e,t)),t.resolution),l.push(o),j3(this,e,t.x||"x",o,"x",t.unitX||"px"),j3(this,e,t.y||"y",o,"y",t.unitY||"px");else{for(s in y)!h&&~jH.indexOf(s)?h=s:!m&&~jG.indexOf(s)&&(m=s);for(s in h&&m?l.push(jX(this,jY(jY([],c,h,0),c,m,1),e,h,m,g,t,f||jU(c[0][h]),p||jU(c[0][m]))):h=m=0,y)s!==h&&s!==m&&l.push(jX(this,jY([],c,s,2),e,s,0,g,t,jU(c[0][s])))}r.vars.immediateRender&&this.render(r.progress(),this)},render:function(e,t){var r=t.rawPaths,n=r.length,i=t._pt;if(t.tween._time||!jz()){for(e>1?e=1:e<0&&(e=0);n--;)ju(r[n],e,!n&&t.rotate,r[n]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,e),i=i._next;t.rotate&&t.rSet(t.target,t.rProp,r[0].angle*(t.radians?jK:1)+t.rOffset+t.ru,t,e)}else t.styles.revert()},getLength:function(e){return jo(je(e)).totalLength},sliceRawPath:ja,getRawPath:je,pointsToSegment:jf,stringToRawPath:jd,rawPathToString:jp,transformRawPath:jc,getGlobalMatrix:jF,getPositionOnPath:ju,cacheRawPathMeasurements:jo,convertToPath:function(e,t){return jW(e).map(function(e){var r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O;return r=!1!==t,"path"!==(O=e.tagName.toLowerCase())&&e.getBBox?(l=jt(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),D=jn(e,jr[O]),"rect"===O?(o=D.rx,s=D.ry||o,i=D.x,a=D.y,f=D.width-2*o,p=D.height-2*s,o||s?(h=i+.44771525016900005*o,g=(y=(m=i+o)+f)+.552284749831*o,v=y+o,b=a+.44771525016900005*s,S=(x=(w=a+s)+p)+.552284749831*s,E=x+s,n="M"+v+","+w+" V"+x+" C"+[v,S,g,E,y,E,y-(y-m)/3,E,m+(y-m)/3,E,m,E,h,E,i,S,i,x,i,x-(x-w)/3,i,w+(x-w)/3,i,w,i,b,h,a,m,a,m+(y-m)/3,a,y-(y-m)/3,a,y,a,g,a,v,b,v,w].join(",")+"z"):n="M"+(i+f)+","+a+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===O||"ellipse"===O?("circle"===O?c=.552284749831*(o=s=D.r):(o=D.rx,c=.552284749831*(s=D.ry)),i=D.cx,a=D.cy,u=.552284749831*o,n="M"+(i+o)+","+a+" C"+[i+o,a+c,i+u,a+s,i,a+s,i-u,a+s,i-o,a+c,i-o,a,i-o,a-c,i-u,a-s,i,a-s,i+u,a-s,i+o,a-c,i+o,a].join(",")+"z"):"line"===O?n="M"+D.x1+","+D.y1+" L"+D.x2+","+D.y2:("polyline"===O||"polygon"===O)&&(n="M"+(i=(d=(e.getAttribute("points")+"").match(OU)||[]).shift())+","+(a=d.shift())+" L"+d.join(","),"polygon"===O&&(n+=","+i+","+a+"z")),l.setAttribute("d",jp(l._gsRawPath=jd(n))),r&&e.parentNode&&(e.parentNode.insertBefore(l,e),e.parentNode.removeChild(e)),l):e})},convertCoordinates:function(e,t,r){var n=jF(t,!0,!0).multiply(jF(e));return r?n.apply(r):n},getAlignMatrix:j1,getRelativePosition:function(e,t,r,n){var i=j1(e,t,r,n);return{x:i.e,y:i.f}},arrayToRawPath:function(e,t){var r=jY(jY([],e,(t=t||{}).x||"x",0),e,t.y||"y",1);return t.relative&&jq(r),["cubic"===t.type?r:jf(r,t.curviness)]}};(jB||"u">typeof window&&(jB=window.gsap)&&jB.registerPlugin&&jB)&&jB.registerPlugin(j4);let j5="_91T10b5z4yVLEvBTiOHB2w==",j6="DV-xKWaHEEvN+MaZK6G-sw==",j8="BiOYgCt0Z+UKXxmzw9enhg==";function j9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function j7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Pe(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}De.registerPlugin(j4);var Pt=function(e){var t,r=e.url,n=e.title,i=e.open,a=e.inPlace,o=e.id,s=e.onInPlace,l=e.total,u=function(e){if(Array.isArray(e))return e}(t=(0,m.useState)(!0))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return j9(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 j9(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,m.useRef)(null),p={transformOrigin:"center center"},y=function(){return{cx:200-(24*l-10)/2+24*o,cy:370,r:7}},g=function(){return{cx:200,cy:200,r:49}};return(0,m.useEffect)(function(){if(d(!1),f.current){var e=.4*!c,t=.2*!c,r=c?0:e+t;i?De.timeline().set(f.current,j7({},p,y())).to(f.current,Pe(j7({},p,g()),{duration:t,ease:"power3.inOut"})).to(f.current,Pe(j7({},p,{cx:-4700,cy:200,r:4900}),{duration:e,ease:"power4.in",onComplete:function(){return s(o)}})):De.timeline({overwrite:!0}).set(f.current,j7({},p,{cx:5100,cy:200,r:4900})).to(f.current,Pe(j7({},p,g()),{delay:r,duration:e,ease:"power4.out"})).to(f.current,Pe(j7({},p),{motionPath:{path:[{cx:200-(24*l-10)/2+24*o,cy:200,r:14},y()],curviness:1},duration:c?.01:1,ease:"bounce.out"}))}},[i]),(0,h.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:j5,children:[(0,h.jsxs)("defs",{children:[(0,h.jsx)("clipPath",{id:"".concat(o,"_circleClip"),children:(0,h.jsx)("circle",{cx:0,cy:0,r:7,ref:f})}),(0,h.jsx)("clipPath",{id:"".concat(o,"_squareClip"),children:(0,h.jsx)("rect",{width:400,height:400})})]}),(0,h.jsx)("g",{clipPath:"url(#".concat(o).concat(a?"_squareClip":"_circleClip",")"),children:(0,h.jsx)("image",{width:400,height:400,href:r,className:j6,children:(0,h.jsx)("title",{children:n})})})]})},Pr=function(e){var t=e.images,r=e.onSelect,n=function(e){return 200-(24*t.length-10)/2+24*e},i=function(){return 370};return(0,h.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:j5,children:t.map(function(e,t){return(0,h.jsxs)("g",{className:"DuOIqIHFTsALuUIhoR6XFA==",children:[(0,h.jsx)("defs",{children:(0,h.jsx)("clipPath",{id:"tab_".concat(t,"_clip"),children:(0,h.jsx)("circle",{cx:n(t),cy:i(),r:7})})}),(0,h.jsx)("image",{x:n(t)-7,y:i()-7,width:14,height:14,href:e.url,clipPath:"url(#tab_".concat(t,"_clip)"),className:j6,preserveAspectRatio:"xMidYMid slice"}),(0,h.jsx)("circle",{onClick:function(){return r(t)},className:"Purb-dsgLtjv-f5xNPzd9Q==",strokeWidth:2,cx:n(t),cy:i(),r:9,children:(0,h.jsx)("title",{children:e.title})})]},e.url)})})};function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pn(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 Pa=function(e){var t=e.images,r=e.autoplay,n=void 0===r||r,i=e.autoplayInterval,a=void 0===i?4500:i,o=e.className,s=e.style,l=Pi((0,m.useState)(0),2),u=l[0],c=l[1],d=Pi((0,m.useState)(0),2),f=d[0],p=d[1],y=Pi((0,m.useState)(!1),2),g=y[0],b=y[1],w=(0,m.useRef)(null),x=function(e){return p(e)},S=(0,m.useCallback)(function(){c(function(e){var r=e+1;return r>=t.length&&(r=0),r})},[t.length]),E=(0,m.useCallback)(function(){c(function(e){var r=e-1;return r<0&&(r=t.length-1),r})},[t.length]);return(0,m.useEffect)(function(){return b(!0)},[u]),(0,m.useEffect)(function(){return b(!1)},[f]),(0,m.useEffect)(function(){if(n)return w.current&&clearInterval(w.current),w.current=window.setInterval(S,a),function(){w.current&&clearInterval(w.current)}},[u,n,a,S]),(0,h.jsxs)("div",{className:v()("akVLGo+Wwabl908zJnCf1g==",o),style:s,children:[(0,h.jsxs)("div",{className:"TCvJ5yQcC2eo6CDCQMTQHQ==",children:[t.map(function(e,r){return(0,h.jsx)("div",{className:"DcaxhwIWry8bBx7YsE63Lw==",style:{zIndex:f===r?r:t.length+1},children:(0,h.jsx)(Pt,{total:t.length,id:r,url:e.url,title:e.title,open:u===r,inPlace:f===r,onInPlace:x})},e.url)}),(0,h.jsx)("div",{className:"bKcB0UW13jiiICM-jBR4rw==",children:(0,h.jsx)(Pr,{images:t,onSelect:function(e){g||c(e)}})})]}),(0,h.jsx)("button",{type:"button",className:v()(j8,"dTqOiwup5S43HhgWZB-Bkg=="),onClick:E,disabled:g,"aria-label":"Image pr\xe9c\xe9dente",children:(0,h.jsx)(eS,{size:28})}),(0,h.jsx)("button",{type:"button",className:v()(j8,"rJrdRpgR0swdYQYK1dN6NQ=="),onClick:S,disabled:g,"aria-label":"Image suivante",children:(0,h.jsx)(eE,{size:28})})]})};function Po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ps(e){var t=e.handleShuffle,r=e.testimonial,n=e.position,i=e.id,a=e.author,o=e.avatarUrl,s=e.cardWidth,l=e.cardHeight,u=e.className,c=e.style,d=(0,m.useRef)(0),f="front"===n;return(0,h.jsxs)(hK.div,{style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Po(e,t,r[t])})}return e}({zIndex:"front"===n?2:+("middle"===n),width:void 0===s?350:s,height:void 0===l?450:l},c),animate:{rotate:"front"===n?"-6deg":"middle"===n?"0deg":"6deg",x:"front"===n?"0%":"middle"===n?"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 r=e.clientX;d.current-r>150&&t(),d.current=0},transition:{duration:.35},className:v()("ohCq+RO21+rIvJcyy3o2gw==",Po({},"ovSoDUuNx-SamWlqj-vDmQ==",f),u),children:[(0,h.jsx)("img",{src:null!=o?o:"https://i.pravatar.cc/128?img=".concat(i),alt:"Avatar of ".concat(a),className:"e772lBk4ENUtk3WevqnCKw==",draggable:!1}),(0,h.jsxs)("span",{className:"r3a8BVwaKJkuFqZGAQI03Q==",children:['"',r,'"']}),(0,h.jsx)("span",{className:"sXTUeWiseGjJtRSPzpJp7g==",children:a})]})}function Pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pu(e){if(Array.isArray(e))return e}function Pc(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pd(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pf(e,t){if(e){if("string"==typeof e)return Pl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pl(e,t)}}function Pp(e){var t,r=e.testimonials,n=e.cardWidth,i=void 0===n?350:n,a=e.cardHeight,o=void 0===a?450:a,s=e.className,l=e.style,u=e.onShuffle,c=Pu(t=(0,m.useState)(function(){return r.map(function(e,t){return t})}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||Pf(t,2)||Pd(),d=c[0],f=c[1];(0,m.useEffect)(function(){f(r.map(function(e,t){return t}))},[r]);var p=(0,m.useCallback)(function(){f(function(e){if(0===e.length)return e;var t,n=Pu(e)||Pc(e)||Pf(e)||Pd(),i=n[0],a=n.slice(1);return null==u||u(null==(t=r[i])?void 0:t.id),((function(e){if(Array.isArray(e))return Pl(e)})(a)||Pc(a)||Pf(a)||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([i])})},[u,r]);return(0,h.jsx)("div",{className:v()("h5XqZ22klGNcN0D8phiBpg==",s),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({width:i,height:o},l),children:d.map(function(e,t){var n=r[e];return n?(0,h.jsx)(Ps,{id:n.id,testimonial:n.testimonial,author:n.author,avatarUrl:n.avatarUrl,position:0===t?"front":1===t?"middle":"back",handleShuffle:p,cardWidth:i,cardHeight:o},n.id):null})})}var Ph=(0,m.createContext)(null),Pm=function(){var e=(0,m.useContext)(Ph);if(!e)throw Error("Carousel compound components must be used within <Carousel>");return e};function Py(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Pg(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(function(r){var n=e[r],i=t[r];return"function"==typeof n?"".concat(n)==="".concat(i):Py(n)&&Py(i)?Pg(n,i):n===i})}function Pv(e){return e.concat().sort(function(e,t){return e.name>t.name?1:-1}).map(function(e){return e.options})}function Pb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pw(e){return"number"==typeof e}function Px(e){return"string"==typeof e}function PS(e){return"boolean"==typeof e}function PE(e){return"[object Object]"===Object.prototype.toString.call(e)}function PD(e){return Math.abs(e)}function PO(e){return Math.sign(e)}function Pj(e){return PA(e).map(Number)}function PP(e){return e[PC(e)]}function PC(e){return Math.max(0,e.length-1)}function Pk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from(Array(e),function(e,r){return t+r})}function PA(e){return Object.keys(e)}function PT(e,t){var r;return void 0!==t.MouseEvent&&(null!=(r=t.MouseEvent)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)}function PN(){var e=[],t={add:function(r,n,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return"addEventListener"in r?(r.addEventListener(n,i,o),a=function(){return r.removeEventListener(n,i,o)}):(r.addListener(i),a=function(){return r.removeListener(i)}),e.push(a),t},clear:function(){e=e.filter(function(e){return e()})}};return t}function PR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=PD(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function PI(e){var t=e;function r(e){return Pw(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function PM(e,t){var r="x"===e.scroll?function(e){return"translate3d(".concat(e,"px,0px,0px)")}:function(e){return"translate3d(0px,".concat(e,"px,0px)")},n=t.style,i=null,a=!1;return{clear:function(){!a&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(!a){var o=Math.round(100*e.direction(t))/100;o!==i&&(n.transform=r(o),i=o)}},toggleActive:function(e){a=!e}}}var P_={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 PL(e,t,r){var n,i,a,o,s,l,u,c,d=e.ownerDocument,f=d.defaultView,p=function(e){function t(e,t){return function e(t,r){return[t,r].reduce(function(t,r){return PA(r).forEach(function(n){var i=t[n],a=r[n],o=PE(i)&&PE(a);t[n]=o?e(i,a):a}),t},{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){var n=r.breakpoints||{},i=PA(n).filter(function(t){return e.matchMedia(t).matches}).map(function(e){return n[e]}).reduce(function(e,r){return t(e,r)},{});return t(r,i)},optionsMediaQueries:function(t){return t.map(function(e){return PA(e.breakpoints||{})}).reduce(function(e,t){return e.concat(t)},[]).map(e.matchMedia)}}}(f),h=(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 r,n;return Object.assign(e,(r={},n=t.name,n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r))},{})},destroy:function(){o=o.filter(function(e){return e.destroy()})}}),m=PN(),y=(i={},a={init:function(e){n=e},emit:function(e){return(i[e]||[]).forEach(function(t){return t(n,e)}),a},off:function(e,t){return i[e]=(i[e]||[]).filter(function(e){return e!==t}),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),g=p.mergeOptions,v=p.optionsAtMedia,b=p.optionsMediaQueries,w=y.on,x=y.off,S=y.emit,E=!1,D=g(P_,PL.globalOptions),O=g(D),j=[];function P(t,r){var n,i,a,o;!E&&(O=v(D=g(D,t)),j=r||j,n=O.container,i=O.slides,u=(Px(n)?e.querySelector(n):n)||e.children[0],a=Px(i)?u.querySelectorAll(i):i,c=[].slice.call(a||u.children),s=function t(r){var n=function(e,t,r,n,i,a,o){var s,l,u,c,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,j,P,C,k,A,T,N,R,I,M,_,L,F,B,V,U,W,$,z,H,G,K,Y,Z,q,X=a.align,Q=a.axis,J=a.direction,ee=a.startIndex,et=a.loop,er=a.duration,en=a.dragFree,ei=a.dragThreshold,ea=a.inViewThreshold,eo=a.slidesToScroll,es=a.skipSnaps,el=a.containScroll,eu=a.watchResize,ec=a.watchSlides,ed=a.watchDrag,ef=a.watchFocus,ep={measure:function(e){var t=e.offsetTop,r=e.offsetLeft,n=e.offsetWidth,i=e.offsetHeight;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},eh=ep.measure(t),em=r.map(ep.measure),ey=(d="rtl"===J,p=(f="y"===Q)||!d?1:-1,h=f?"top":d?"right":"left",m=f?"bottom":d?"left":"right",{scroll:f?"y":"x",cross:f?"x":"y",startEdge:h,endEdge:m,measureSize:function(e){var t=e.height,r=e.width;return f?t:r},direction:function(e){return e*p}}),eg=ey.measureSize(eh),ev={measure:function(e){return e/100*eg}},eb=(s=X,l=eg,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return Px(s)?u[s](e):s(l,e,t)}}),ew=!et&&!!el,ex=et||!!el,eS=(y=ey.measureSize,g=ey.startEdge,v=ey.endEdge,b=em[0]&&ex,w=function(){if(!b)return 0;var e=em[0];return PD(eh[g]-e[g])}(),x=b?parseFloat(i.getComputedStyle(PP(r)).getPropertyValue("margin-".concat(v))):0,S=em.map(y),E=em.map(function(e,t,r){var n=t===PC(r);return t?n?S[t]+x:r[t+1][g]-e[g]:S[t]+w}).map(PD),{slideSizes:S,slideSizesWithGaps:E,startGap:w,endGap:x}),eE=eS.slideSizes,eD=eS.slideSizesWithGaps,eO=eS.startGap,ej=eS.endGap,eP=(D=ey.startEdge,O=ey.endEdge,j=ey.direction,P=Pw(eo),{groupSlides:function(e){return P?Pj(e).filter(function(e){return e%eo==0}).map(function(t){return e.slice(t,t+eo)}):e.length?Pj(e).reduce(function(t,r,n){var i=PP(t)||0,a=r===PC(e),o=eh[D]-em[i][D],s=eh[D]-em[r][O],l=et||0!==i?0:j(eO),u=PD(s-(!et&&a?j(ej):0)-(o+l));return n&&u>eg+2&&t.push(r),a&&t.push(e.length),t},[]).map(function(t,r,n){var i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}),eC=(C=ey.startEdge,k=ey.endEdge,T=(A=eP.groupSlides)(em).map(function(e){return PP(e)[k]-e[0][C]}).map(PD).map(eb.measure),R=A(N=em.map(function(e){return eh[C]-e[C]}).map(function(e){return-PD(e)})).map(function(e){return e[0]}).map(function(e,t){return e+T[t]}),{snaps:N,snapsAligned:R}),ek=eC.snaps,eA=eC.snapsAligned,eT=-PP(ek)+PP(eD),eN=function(e,t,r,n){var i,a,o=PR(-t+e,0),s=r.map(function(e,t){var n=o.min,i=o.max,a=o.constrain(e),s=t===PC(r);return t?s||function(e,t){return 1>=PD(e-t)}(n,a)?n:function(e,t){return 1>=PD(e-t)}(i,a)?i:a:i}).map(function(e){return parseFloat(e.toFixed(3))}),l=(i=s[0],a=PP(s),PR(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return s;var r=l.min,i=l.max;return s.slice(r,i)}(),scrollContainLimit:l}}(eg,eT,eA,el),eR=eN.snapsContained,eI=eN.scrollContainLimit,eM=ew?eR:eA,e_=(I=eM[0],{limit:PR(et?I-eT:PP(eM),I)}).limit,eL=function e(t,r,n){var i=PR(0,t).constrain,a=t+1,o=s(r);function s(e){return n?PD((a+e)%a):i(e)}function l(){return e(t,o,n)}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}(PC(eM),ee,et),eF=eL.clone(),eB=Pj(r),eV=function(e){var t=e.dragHandler,r=e.scrollBody,n=e.scrollBounds;e.options.loop||n.constrain(t.pointerDown()),r.seek()},eU=function(e,t){var r=e.scrollBody,n=e.translate,i=e.location,a=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,h=r.settled(),m=!f.shouldConstrain(),y=p?h:h&&m,g=y&&!u.pointerDown();g&&c.stop();var v=i.get()*t+o.get()*(1-t);a.set(v),p&&(s.loop(r.direction()),l.loop()),n.to(a.get()),g&&d.emit("settle"),y||d.emit("scroll")},eW=function(e,t,r,n){var i=PN(),a=1e3/60,o=null,s=0,l=0;function u(e){if(l){o||(o=e,r(),r());var i=e-o;for(o=e,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=t.requestAnimationFrame(u))}}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",function(){e.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,function(){return eV(e2)},function(e){return eU(e2,e)}),e$=eM[eL.get()],ez=PI(e$),eH=PI(e$),eG=PI(e$),eK=PI(e$),eY=function(e,t,r,n,i){var a=0,o=0,s=i,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 a},seek:function(){var t=n.get()-e.get(),i=0;return s?(r.set(e),a+=t/s,a*=l,u+=a,e.add(a),i=u-c):(a=0,r.set(n),e.set(n),i=t),o=PO(i),c=u,p},settled:function(){return .001>PD(n.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return p}(ez,eG,eH,eK,er),eZ=function(e,t,r,n,i){var a=n.reachedAny,o=n.removeOffset,s=n.constrain;function l(e){return e.concat().sort(function(e,t){return PD(e)-PD(t)})[0]}function u(t,n){var i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);var a=i.filter(function(e){return PO(e)===n});return a.length?l(a):PP(i)-r}return{byDistance:function(r,n){var l,c=i.get()+r,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 PD(e.diff)-PD(t.diff)})[0].index,distance:l}),f=d.index,p=d.distance,h=!e&&a(c);if(!n||h)return{index:f,distance:r};var m=r+u(t[f]-p,0);return{index:f,distance:m}},byIndex:function(e,r){var n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(et,eM,eT,e_,eK),eq=function(e,t,r,n,i,a,o){function s(i){var s=i.distance,l=i.index!==t.get();a.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){var n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(eW,eL,eF,eY,eZ,eK,o),eX=(M=e_.max,_=e_.length,{get:function(e){return _?-((e-M)/_):0}}),eQ=PN(),eJ=(F={},B=null,V=null,U=!1,{init:function(){L=new IntersectionObserver(function(e){U||(e.forEach(function(e){F[r.indexOf(e.target)]=e}),B=null,V=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:ea}),r.forEach(function(e){return L.observe(e)})},destroy:function(){L&&L.disconnect(),U=!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=PA(F).reduce(function(t,r){var n=parseInt(r),i=F[n].isIntersecting;return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(B=t),e||(V=t),t}}),e0=(W=eP.groupSlides,$=eI.min,z=eI.max,{slideRegistry:(c=W(eB),1===eM.length?[eB]:ew&&"keepSnaps"!==el?c.slice($,z).map(function(e,t,r){var n=t===PC(r);return t?n?Pk(PC(eB)-PP(r)[0]+1,PP(r)[0]):e:Pk(PP(r[0])+1)}):c)}).slideRegistry,e1=function(e,t,r,n,i,a,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&&(a.add(document,"keydown",c,!1),t.forEach(function(t,c){a.add(t,"focus",function(t){(PS(s)||s(d,t))&&function(t){if(!(new Date().getTime()-u>10)){o.emit("slideFocusStart"),e.scrollLeft=0;var a=r.findIndex(function(e){return e.includes(t)});Pw(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}}(c)},l)}))}}}(e,r,e0,eq,eY,eQ,o,ef),e2={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:eh,slideRects:em,animation:eW,axis:ey,dragHandler:function(e,t,r,n,i,a,o,s,l,u,c,d,f,p,h,m,y,g){var v=e.cross,b=e.direction,w=["INPUT","SELECT","TEXTAREA"],x={passive:!1},S=PN(),E=PN(),D=PR(50,225).constrain(p.measure(20)),O={mouse:300,touch:400},j={mouse:500,touch:600},P=h?43:25,C=!1,k=0,A=0,T=!1,N=!1,R=!1,I=!1;function M(e){if(!PT(e,n)&&e.touches.length>=2)return _(e);var t=a.readPoint(e),r=a.readPoint(e,v),o=PD(t-k),l=PD(r-A);if(!N&&!I&&(!e.cancelable||!(N=o>l)))return _(e);var c=a.pointerMove(e);o>m&&(R=!0),u.useFriction(.3).useDuration(.75),s.start(),i.add(b(c)),e.preventDefault()}function _(e){var t,r,n,i=c.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(h?j:O)[I?"mouse":"touch"],s=(t=b(o),r=d.add(-1*PO(t)),n=c.byDistance(t,!h).distance,h||PD(t)<D?n:y&&i?.5*n:c.byIndex(r.get(),0).distance),p=function(e,t){if(0===e||0===t||PD(e)<=PD(t))return 0;var r,n,i=(r=PD(e),n=PD(t),PD(r-n));return PD(i/e)}(o,s);N=!1,T=!1,E.clear(),u.useDuration(P-10*p).useFriction(.68+p/50),l.distance(s,!h),I=!1,f.emit("pointerUp")}function L(e){R&&(e.stopPropagation(),e.preventDefault(),R=!1)}return{init:function(e){g&&S.add(t,"dragstart",function(e){return e.preventDefault()},x).add(t,"touchmove",function(){},x).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;(PS(g)||g(e,s))&&(I=p=PT(l=s,n),R=h&&p&&!l.buttons&&C,C=PD(i.get()-o.get())>=2,(!p||0===l.button)&&(c=l.target.nodeName||"",w.includes(c)||(T=!0,a.pointerDown(l),u.useFriction(0).useDuration(0),i.set(o),d=I?r:t,E.add(d,"touchmove",M,x).add(d,"touchend",_).add(d,"mousemove",M,x).add(d,"mouseup",_),k=a.readPoint(l),A=a.readPoint(l,v),f.emit("pointerDown"))))}},destroy:function(){S.clear(),E.clear()},pointerDown:function(){return T}}}(ey,e,n,i,eK,function(e,t){var r,n;function i(e){return e.timeStamp}function a(r,n){var i=n||e.scroll;return(PT(r,t)?r:r.touches[0])["client".concat("x"===i?"X":"Y")]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){var t=a(e)-a(n),o=i(e)-i(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;var t=a(n)-a(r),o=i(e)-i(r),s=i(e)-i(n)>170,l=t/o;return o&&!s&&PD(l)>.1?l:0},readPoint:a}}(ey,i),ez,eW,eq,eY,eZ,eL,o,ev,en,ei,es,ed),eventStore:eQ,percentOfView:ev,index:eL,indexPrevious:eF,limit:e_,location:ez,offsetLocation:eG,previousLocation:eH,options:a,resizeHandler:function(e,t,r,n,i,a,o){var s,l,u=[e].concat(n),c=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=f(e),c=n.map(f),s=new ResizeObserver(function(r){(PS(a)||a(i,r))&&function(r){var a=!0,o=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(a=(u=p.next()).done);a=!0){var h=u.value;if(d)return;var m=h.target===e,y=n.indexOf(h.target),g=m?l:c[y],v=f(m?e:n[y]);if(PD(v-g)>=.5){i.reInit(),t.emit("resize");break}}}catch(e){o=!0,s=e}finally{try{a||null==p.return||p.return()}finally{if(o)throw s}}}(r)}),r.requestAnimationFrame(function(){u.forEach(function(e){return s.observe(e)})}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,i,r,ey,eu,ep),scrollBody:eY,scrollBounds:function(e,t,r,n,i){var a=i.measure(10),o=i.measure(50),s=PR(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(u()){var l=e.reachedMin(t.get())?"min":"max",c=PD(e[l]-t.get()),d=r.get()-t.get(),f=s.constrain(c/o);r.subtract(d*f),!i&&PD(d)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}},toggleActive:function(e){l=!e}}}(e_,eG,eK,eY,ev),scrollLooper:(H=[ez,eG,eH,eK],K=(G=PR(e_.min+.1,e_.max+.1)).reachedMin,Y=G.reachedMax,{loop:function(e){if(1===e?Y(eG.get()):-1===e&&K(eG.get())){var t=-1*e*eT;H.forEach(function(e){return e.add(t)})}}}),scrollProgress:eX,scrollSnapList:eM.map(eX.get),scrollSnaps:eM,scrollTarget:eZ,scrollTo:eq,slideLooper:function(e,t,r,n,i,a,o,s,l){var u=Pj(i),c=Pj(i).reverse(),d=h(p(c,o[0]),r,!1).concat(h(p(u,t-o[0]-1),-r,!0));function f(e,t){return e.reduce(function(e,t){return e-i[t]},t)}function p(e,t){return e.reduce(function(e,r){return f(e,t)>0?e.concat([r]):e},[])}function h(i,o,u){var c=a.map(function(e,r){return{start:e-n[r]+.5+o,end:e+t-.5+o}});return i.map(function(t){var n=u?0:-r,i=u?r:0,a=c[t][u?"end":"start"];return{index:t,loopPoint:a,slideLocation:PI(-1),translate:PM(e,l[t]),target:function(){return s.get()>a?n:i}}})}return{canLoop:function(){return d.every(function(e){var r=e.index;return .1>=f(u.filter(function(e){return e!==r}),t)})},clear:function(){d.forEach(function(e){return e.translate.clear()})},loop:function(){d.forEach(function(e){var t=e.target,r=e.translate,n=e.slideLocation,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:d}}(ey,eg,eT,eE,eD,ek,eM,eG,r),slideFocus:e1,slidesHandler:(q=!1,{init:function(e){ec&&(Z=new MutationObserver(function(t){!q&&(PS(ec)||ec(e,t))&&function(t){var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if("childList"===l.type){e.reInit(),o.emit("slidesChanged");break}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(t)})).observe(t,{childList:!0})},destroy:function(){Z&&Z.disconnect(),q=!0}}),slidesInView:eJ,slideIndexes:eB,slideRegistry:e0,slidesToScroll:eP,target:eK,translate:PM(ey,t)};return e2}(e,u,c,d,f,r,y);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(O),b([D].concat(function(e){if(Array.isArray(e))return Pb(e)}(o=j.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 Pb(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 Pb(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 m.add(e,"change",C)}),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=h.init(N,j)))}function C(e,t){var r=T();k(),P(g({startIndex:r},e),t),y.emit("reInit")}function k(){s.dragHandler.destroy(),s.eventStore.clear(),s.translate.clear(),s.slideLooper.clear(),s.resizeHandler.destroy(),s.slidesHandler.destroy(),s.slidesInView.destroy(),s.animation.destroy(),h.destroy(),m.clear()}function A(e,t,r){O.active&&!E&&(s.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),s.scrollTo.index(e,r||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(){E||(E=!0,m.clear(),k(),y.emit("destroy"),y.clear())},off:x,on:w,emit:S,plugins:function(){return l},previousScrollSnap:function(){return s.indexPrevious.get()},reInit:C,rootNode:function(){return e},scrollNext:function(e){A(s.index.add(1).get(),e,-1)},scrollPrev:function(e){A(s.index.add(-1).get(),e,1)},scrollProgress:function(){return s.scrollProgress.get(s.offsetLocation.get())},scrollSnapList:function(){return s.scrollSnapList},scrollTo:A,selectedScrollSnap:T,slideNodes:function(){return c},slidesInView:function(){return s.slidesInView.get()},slidesNotInView:function(){return s.slidesInView.get(!1)}};return P(t,r),setTimeout(function(){return y.emit("init")},0),N}function PF(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PF(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PF(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 PV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,m.useRef)(e),n=(0,m.useRef)(t),i=PB((0,m.useState)(),2),a=i[0],o=i[1],s=PB((0,m.useState)(),2),l=s[0],u=s[1],c=(0,m.useCallback)(function(){a&&a.reInit(r.current,n.current)},[a]);return(0,m.useEffect)(function(){Pg(r.current,e)||(r.current=e,c())},[e,c]),(0,m.useEffect)(function(){!function(e,t){if(e.length!==t.length)return!1;var r=Pv(e),n=Pv(t);return r.every(function(e,t){return Pg(e,n[t])})}(n.current,t)&&(n.current=t,c())},[t,c]),(0,m.useEffect)(function(){if("u">typeof window&&window.document&&window.document.createElement&&l){PL.globalOptions=PV.globalOptions;var e=PL(l,r.current,n.current);return o(e),function(){return e.destroy()}}o(void 0)},[l,o]),[u,a]}PL.globalOptions=void 0,PV.globalOptions=void 0;let PU={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 PW(e){var t=e.children,r=e.className,n=Pm(),i=n.axis,a=n.mainViewportRef;return(0,h.jsx)("div",{ref:a,className:v()(PU.viewport,PU["viewport--".concat(i)],r),children:(0,h.jsx)("div",{className:v()(PU.container,PU["container--".concat(i)]),children:t})})}function P$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P$(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 PH(e){var t,r,n,i=e.children,a=e.options,o=e.plugins,s=e.dir,l=void 0===s?"ltr":s,u=e.className,c=e.style,d=null!=(n=null==a?void 0:a.axis)?n:"x",f=Pz(PV((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},a),r=r={direction:l},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),o),2),p=f[0],g=f[1],b=Pz(PV({axis:d,direction:l,containScroll:"keepSnaps",dragFree:!0}),2),w=b[0],x=b[1],S=Pz((0,m.useState)(0),2),E=S[0],D=S[1],O=(0,m.useMemo)(function(){return function(e){var t=y().Children.toArray(e),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(y().isValidElement(s)&&s.type===PW){var l=s.props;return y().Children.toArray(l.children).filter(y().isValidElement).map(function(e){return e.props.thumbnailSrc})}}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return[]}(i)},[i]),j=(0,m.useCallback)(function(e){null==g||g.scrollTo(e)},[g]),P=(0,m.useCallback)(function(){if(g){var e=g.selectedScrollSnap();D(e),null==x||x.scrollTo(e)}},[g,x]);return(0,m.useEffect)(function(){if(g)return P(),g.on("select",P).on("reInit",P),function(){g.off("select",P).off("reInit",P)}},[g,P]),(0,h.jsx)(Ph.Provider,{value:{axis:d,mainViewportRef:p,mainApi:g,thumbsViewportRef:w,thumbsApi:x,selectedIndex:E,scrollTo:j,thumbnails:O},children:(0,h.jsx)("div",{className:v()(PU.root,u),style:c,children:i})})}function PG(e){var t=e.children,r=e.className,n=Pm().axis;return(0,h.jsx)("div",{className:v()(PU.slide,PU["slide--".concat(n)],r),children:t})}function PK(e){var t=e.className,r=e.thumbsSliderClassName,n=Pm(),i=n.axis,a=n.thumbsViewportRef,o=n.thumbnails,s=n.selectedIndex,l=n.scrollTo;return 0===o.length?null:(0,h.jsx)("div",{ref:a,className:v()(PU.thumbsViewport,t),children:(0,h.jsx)("div",{className:v()(PU.thumbsContainer,PU["thumbsContainer--".concat(i)]),children:o.map(function(e,t){var n,i,a=t===s;return(0,h.jsx)("button",{type:"button",onClick:function(){return l(t)},className:v()(PU.thumb,(n={},i=PU["thumb--active"],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n),a&&r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":a,children:e&&(0,h.jsx)("img",{src:e,alt:"",className:PU.thumbImage})},t)})})})}function PY(e){var t=e.className,r=e.dotClassName,n=Pm(),i=n.thumbnails,a=n.selectedIndex,o=n.scrollTo;return 0===i.length?null:(0,h.jsx)("div",{className:v()(PU.dots,t),children:i.map(function(e,t){var n,i,s;return(0,h.jsx)("button",{type:"button",onClick:function(){return o(t)},className:v()(PU.dot,(n={},i=PU["dot--active"],s=t===a,i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,n),r),"aria-label":"Aller \xe0 l'\xe9l\xe9ment ".concat(t+1),"aria-current":t===a},t)})})}function PZ(e){var t=e.id,r=e.as,n=e.variant,i=void 0===n?"transparent":n,a=e.title,o=e.titleAs,s=e.description,l=e.actions,u=e.ariaLabel,c=e.bare,d=e.className,f=e.children,p=!!(a||s||l);return(0,h.jsxs)(void 0===r?"section":r,{id:t,"aria-label":u,className:["xsPyVpEdgja0llYjB3PdYg==","panel"===i?"IdjlGes9g7I9RGbalXKuEw==":"mSODpTRIETPzwrdlVZKHAQ==",void 0!==c&&c&&"panel"===i?"dqH8uZ6svn0a-ANxRswbEw==":"",null!=d?d:""].filter(Boolean).join(" "),children:[p&&(0,h.jsxs)("div",{className:"LYLZgwdW+ZQ094mxka6QwQ==",children:[(0,h.jsxs)("div",{className:"+Aqb8e3ZepkrAMa4z4v-tQ==",children:[a&&(0,h.jsx)(void 0===o?"h2":o,{className:"QEtbLMiYFeiRjc7fZ+Qrwg==",children:a}),s&&(0,h.jsx)("p",{className:"teYjkGxaHLinWBvLv5ULwA==",children:s})]}),l&&(0,h.jsx)("div",{className:"yD97e81VCsiEGleZjd-MSQ==",children:l})]}),(0,h.jsx)("div",{className:"gH7gSQGqCrm6Kdq+mty58A==",children:f})]})}function Pq(e){var t,r=e.tile,n=e.size,i=e.onSelect,a=e.className;return(0,h.jsxs)(hK.div,{whileHover:{scale:"large"===n?1.008:1.012},transition:{duration:.2},onClick:function(){return i(r)},role:"button",tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i(r))},className:["epn5Xr0wuijHX+AGdLOjTQ==","large"===n?"vfFCu1fewysJ2OePivqftg==":"_5PSxM40V8VvkMWcjtHh7lQ==",null!=a?a:""].join(" "),children:[(0,h.jsx)("img",{src:r.imageUrl,alt:r.title,className:"FZ7wibJ0rKv9a7xHLPzhCw==",referrerPolicy:"no-referrer"}),(0,h.jsx)("div",{className:"V2q1if8rFbKRFCMAsXIx3A=="}),(0,h.jsx)("div",{className:"RhZz5XHN5ocl4A43Psz1eg==",children:"large"===n?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h3",{className:"FDykDf3R9FzapTX-dyKZTg==",children:r.title}),(0,h.jsx)("span",{className:"ehVT3WDOS1PC11dEIvTfsw==",children:null!=(t=r.linkText)?t:"En savoir plus →"})]}):(0,h.jsx)("h4",{className:"j3a-9yic75kspWNZW+1m+Q==",children:r.title})})]})}function PX(e){var t=e.mainTile,r=e.secondaryTiles,n=e.onSelectTile;return(0,h.jsxs)("div",{className:"gqDAe+adtM8NJnnwyLSxnA==",children:[(0,h.jsx)(Pq,{tile:t,size:"large",onSelect:n}),r.slice(0,4).map(function(e){return(0,h.jsx)(Pq,{tile:e,size:"medium",onSelect:n},e.id)})]})}function PQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function PJ(e){if(Array.isArray(e))return e}function P0(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function P2(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 r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function P3(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(Object(e));i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}function P4(e,t){return PJ(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||P6(e,t)||P0()}function P5(e){return PJ(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P6(e)||P0()}function P6(e,t){if(e){if("string"==typeof e)return PQ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PQ(e,t)}}var P8=(0,m.forwardRef)(function(e,t){var r=e.left,n=e.center,i=e.right,a=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,h.jsxs)("div",{className:yn("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,h.jsxs)("header",{ref:t,role:"banner","aria-label":void 0===d?"Navigation principale":d,className:yn("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,h.jsx)("div",{className:"flex min-w-0 shrink-0 items-center gap-2",children:r}),n?(0,h.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-2",children:n}):null,(0,h.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:i}),o]}),a?(0,h.jsx)("div",{className:"w-full",children:a}):null]})}),P9=(0,m.forwardRef)(function(e,t){var r=P5([e,t]),n=r[0],i=r.slice(1),a=n.icon,o=n.label,s=n.badge,l=n.active,u=void 0!==l&&l,c=n.className,d=n.type,f=P3(n,["icon","label","badge","active","className","type"]),p=P4(i,1)[0],m=null!=s&&""!==s&&0!==s;return(0,h.jsxs)("button",P2(P1({ref:p,type:void 0===d?"button":d,title:o,"aria-label":o,"aria-pressed":u||void 0,className:yn("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:[a,m?(0,h.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 P7(e){var t=e.className;return(0,h.jsx)("div",{"aria-hidden":"true",className:yn("mx-1 h-5 w-px bg-white/15",t)})}var Ce=(0,m.forwardRef)(function(e,t){var r=P5([e,t]),n=r[0],i=r.slice(1),a=n.src,o=n.name,s=n.active,l=n.className,u=n.type,c=P3(n,["src","name","active","className","type"]),d=P4(i,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,h.jsx)("button",P2(P1({ref:d,type:void 0===u?"button":u,title:o,"aria-label":o,className:yn("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:a?(0,h.jsx)("img",{src:a,alt:"",className:"h-full w-full object-cover"}):f}))})},5923(e,t,r){"use strict";r.d(t,{Ip:()=>f,_l:()=>d,gX:()=>c,ng:()=>u});var n=r(2974),i=r(240),a=r(2298),o=r(345),s=r(9405);function l(e){let t,r="object"==typeof e[0]?e.shift():new(0,o.FG);if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}class u{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,(0,n.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,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)(this,e)}cycle(e,t,r){return(0,n.xy)(this,e,t,r)}toDate(e){return(0,s.ay)(this,e)}toString(){return(0,a.$T)(this)}compare(e){return(0,i.SE)(this,e)}}class c{#t;constructor(e=0,t=0,r=0,i=0){this.hour=e,this.minute=t,this.second=r,this.millisecond=i,(0,n.Rb)(this)}copy(){return new c(this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.tY)(this,e)}subtract(e){return(0,n.YP)(this,e)}set(e){return(0,n.ib)(this,e)}cycle(e,t,r){return(0,n.gt)(this,e,t,r)}toString(){return(0,a.ot)(this)}compare(e){return(0,i.Nu)(this,e)}}class d{#t;constructor(...e){let[t,r,i,a,o]=l(e);this.calendar=t,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.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,n.WQ)(this,e)}subtract(e){return(0,n.Re)(this,e)}set(e){return(0,n.hZ)((0,n.ib)(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return(0,n.xy)(this,e,t,r);default:return(0,n.gt)(this,e,t,r)}}toDate(e,t){return(0,s.ay)(this,e,t)}toString(){return(0,a.qk)(this)}compare(e){let t=(0,i.SE)(this,e);return 0===t?(0,i.Nu)(this,(0,s.tR)(e)):t}}class f{#t;constructor(...e){let[t,r,i,a,o]=l(e),s=e.shift(),u=e.shift();this.calendar=t,this.era=r,this.year=i,this.month=a,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,n.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,n.E0)(this,e)}subtract(e){return(0,n.d_)(this,e)}set(e,t){return(0,n.D8)(this,e,t)}cycle(e,t,r){return(0,n.XH)(this,e,t,r)}toDate(){return(0,s.cd)(this)}toString(){return(0,a.e6)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,s.uB)(e,this.timeZone).toDate().getTime()}}},345(e,t,r){"use strict";r.d(t,{FG:()=>c,LA:()=>s,U_:()=>o,f5:()=>l,rG:()=>a});var n=r(5923),i=r(5504);function a(e,t,r,n){let i=(t=s(e,t))-1,a=-2;return r<=2?a=0:o(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}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,r=Math.floor(t/146097),s=(0,i.z)(t,146097),u=Math.floor(s/36524),c=(0,i.z)(s,36524),d=Math.floor(c/1461),f=Math.floor((0,i.z)(c,1461)/365),[p,h]=l(400*r+100*u+4*d+f+ +(4!==u&&4!==f)),m=e-a(p,h,1,1),y=2;e<a(p,h,3,1)?y=0:o(h)&&(y=1);let g=Math.floor(((m+y)*12+373)/367),v=e-a(p,h,g,1)+1;return new(0,n.ng)(p,h,g,v)}toJulianDay(e){return a(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,r){"use strict";r.d(t,{Ou:()=>x,Tr:()=>f,Yd:()=>h,ay:()=>p,cd:()=>b,gw:()=>m,oU:()=>s,tR:()=>y,uB:()=>v,yP:()=>g});var n=r(5923),i=r(2974),a=r(345),o=r(240);function s(e){return e=g(e,new(0,a.FG)),l((0,a.LA)(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function l(e,t,r,n,i,a,o){let s=new Date;return s.setUTCHours(n,i,a,o),s.setUTCFullYear(e,t-1,r),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:r,month:n,day:i,hour:a,minute:s,second:u}=d(e,t);return l(r,n,i,a,s,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let r=c.get(t);r||(r=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,r));let n=r.formatToParts(new Date(e)),i={};for(let e of n)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function f(e,t,r="compatible"){var n,i,l;let c=y(e);if("UTC"===t)return s(c);if(t===(0,o.Xj)()&&"compatible"===r&&!(0,o.rS)()){c=g(c,new(0,a.FG));let e=new Date,t=(0,a.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),h=u(p-864e5,t),m=u(p+864e5,t),v=(n=c,((i=p-h)==(l=p-m)?[i]:[i,l]).filter(e=>{var r;let i;return r=n,i=d(e,t),r.year===i.year&&r.month===i.month&&r.day===i.day&&r.hour===i.hour&&r.minute===i.minute&&r.second===i.second}));if(1===v.length)return v[0];if(v.length>1)switch(r){case"compatible":case"earlier":return v[0];case"later":return v[v.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(p-h,p-m);case"compatible":case"later":return Math.max(p-h,p-m);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function h(e,t){let r=u(e,t),i=new Date(e+r),a=i.getUTCFullYear(),o=i.getUTCMonth()+1,s=i.getUTCDate(),l=i.getUTCHours(),c=i.getUTCMinutes(),d=i.getUTCSeconds(),f=i.getUTCMilliseconds();return new(0,n.Ip)(a<1?"BC":"AD",a<1?-a+1:a,o,s,t,r,l,c,d,f)}function m(e){return new(0,n.ng)(e.calendar,e.era,e.year,e.month,e.day)}function y(e,t){let r=0,i=0,a=0,o=0;if("timeZone"in e)({hour:r,minute:i,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:i,second:a,millisecond:o}=t),new(0,n._l)(e.calendar,e.era,e.year,e.month,e.day,r,i,a,o)}function g(e,t){if((0,o.Jg)(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,i.AU)(n),n}function v(e,t,r){return e instanceof n.Ip?e.timeZone===t?e:w(e,t):h(f(e,t,r),t)}function b(e){return new Date(s(e)-e.offset)}function w(e,t){return g(h(s(e)-e.offset,t),e.calendar)}function x(e){return w(e,(0,o.Xj)())}},227(e,t,r){"use strict";let n,i;r.d(t,{d:()=>Z});var a=r(5923),o=r(345);class s extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=(0,o.LA)(t.era,t.year);return new(0,a.ng)(this,r- -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,r]=(0,o.f5)(e.year+-543);return new(0,a.ng)(t,r,e.month,e.day)}function u(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function c(e,t){let r=Math.floor(4*(t-e)/1461);t>=u(e,r+1,1,1)&&r++;let n=1+Math.floor((t-u(e,r,1,1))/30),i=t+1-u(e,r,n,1);return[r,n,i]}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,r,n]=c(1723856,e),i="AM";return t<=0&&(i="AA",t+=5500),new(0,a.ng)(this,i,t,r,n)}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 h extends p{fromJulianDay(e){let[t,r,n]=c(1723856,e);return t+=5500,new(0,a.ng)(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class m extends p{fromJulianDay(e){let[t,r,n]=c(1824665,e),i="CE";return t<=0&&(i="BCE",t=1-t),new(0,a.ng)(this,i,t,r,n)}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=r(5504);let g=765433;function v(e){return 7>(0,y.z)(7*e+1,19)}function b(e){let t=Math.floor((235*e-234)/19),r=29*t+Math.floor((12084+13753*t)/25920);return 3>(0,y.z)(3*(r+1),7)&&(r+=1),r}function w(e){let t,r;return b(e)+(t=b(e-1),r=b(e),b(e+1)-r==356?2:+(r-t==382))}function x(e){return w(e+1)-w(e)}function S(e,t){if(t>=6&&!v(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let r=function(e){let t=x(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===r?30:29:3===t?0===r?29:30:6===t?30*!!v(e):30}class E{fromJulianDay(e){let t=e-347997,r=Math.floor((25920*t/g*19+234)/235)+1,n=w(r),i=Math.floor(t-n);for(;i<1;)i=Math.floor(t-(n=w(--r)));let o=1,s=0;for(;s<i;)s+=S(r,o),o++;let l=i-(s-=S(r,--o));return new(0,a.ng)(this,r,o,l)}toJulianDay(e){let t=w(e.year);for(let r=1;r<e.month;r++)t+=S(e.year,r);return t+e.day+347997}getDaysInMonth(e){return S(e.year,e.month)}getMonthsInYear(e){return v(e.year)?13:12}getDaysInYear(e){return x(e.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(v(t.year)&&!v(e.year)&&t.month>6?e.month--:!v(t.year)&&v(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class D extends o.FG{fromJulianDay(e){let t,r,n,i=super.fromJulianDay(e),s=i.year-78,l=e-(0,o.rG)(i.era,i.year,1,1);if(l<80?(s--,l+=(t=(0,o.U_)(i.year-1)?31:30)+155+90+10):(t=(0,o.U_)(i.year)?31:30,l-=80),l<t)r=1,n=l+1;else{let e=l-t;e<155?(r=Math.floor(e/31)+2,n=e%31+1):(e-=155,r=Math.floor(e/30)+7,n=e%30+1)}return new(0,a.ng)(this,s,r,n)}toJulianDay(e){let t,r,n=e.year+78,[i,a]=(0,o.f5)(n);return((0,o.U_)(a)?(t=31,r=(0,o.rG)(i,a,3,21)):(t=30,r=(0,o.rG)(i,a,3,22)),1===e.month)?r+e.day-1:(r+=t+31*Math.min(e.month-2,5),e.month>=8&&(r+=(e.month-7)*30),r+=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,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function j(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+O(t,n,1,1)))/29.5)+1),o=r-O(t,n,i,1)+1;return new(0,a.ng)(e,n,i,o)}function P(e){return(14+11*e)%30<11}class C{fromJulianDay(e){return j(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&&P(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return P(e.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k extends C{fromJulianDay(e){return j(this,1948439,e)}toJulianDay(e){return O(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function A(e){return 460322+i[e-1300]}function T(e,t){return(n[e-1300]&1<<11-(t-1))==0?29:30}function N(e,t){let r=A(e);for(let n=1;n<t;n++)r+=T(e,n);return r}function R(e){return i[e+1-1300]-i[e-1300]}class I extends C{constructor(){if(super(),this.identifier="islamic-umalqura",n||(n=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!i){i=new Uint32Array(301);let e=0;for(let t=1300;t<=1600;t++){i[t-1300]=e;for(let r=1;r<=12;r++)e+=T(t,r)}}}fromJulianDay(e){let t=e-1948440,r=A(1300),n=A(1600);if(t<r||t>n)return super.fromJulianDay(e);{let e=1299,r=1,n=1;for(;n>0;){n=t-A(++e)+1;let i=R(e);if(n===i){r=12;break}if(n<i){let t=T(e,r);for(r=1;n>t;)n-=t,t=T(e,++r);break}}return new(0,a.ng)(this,e,r,t-N(e,r)+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):R(e.year)}}let M=[[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=M.findIndex(([t,r,n])=>!!(e.year<t)||e.year===t&&!!(e.month<r)||e.year===t&&e.month===r&&!!(e.day<n));return -1===t?M.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,a.ng)(e.year+t,e.month,e.day)}class U extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),r=B(t);return new(0,a.ng)(this,F[r],t.year-L[r],t.month,t.day)}toJulianDay(e){return super.toJulianDay(V(e))}balanceDate(e){let t=V(e),r=B(t);F[r]!==e.era&&(e.era=F[r],e.year=t.year-L[r]),this.constrainDate(e)}constrainDate(e){let t=F.indexOf(e.era),r=_[t];if(null!=r){let[n,i,a]=r,o=n-L[t];e.year=Math.max(1,Math.min(o,e.year)),e.year===o&&(e.month=Math.min(i,e.month),e.month===i&&(e.day=Math.min(a,e.day)))}if(1===e.year&&t>=0){let[,r,n]=M[t];e.month=Math.max(r,e.month),e.month===r&&(e.day=Math.max(n,e.day))}}getEras(){return F}getYearsInEra(e){let t=F.indexOf(e.era),r=M[t],n=M[t+1];if(null==n)return 9999-r[0]+1;let i=n[0]-r[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&i++,i}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 M[F.indexOf(e.era)]}let $=[0,31,62,93,124,155,186,216,246,276,306,336];class z{fromJulianDay(e){let t=e-1948320,r=1+Math.floor((33*t+3)/12053),n=t-(365*(r-1)+Math.floor((8*r+21)/33)),i=n<216?Math.floor(n/31):Math.floor((n-6)/30),o=n-$[i]+1;return new(0,a.ng)(this,r,i+1,o)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=$[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 K extends o.FG{fromJulianDay(e){let t=super.fromJulianDay(e),[r,n]=G((0,o.LA)(t.era,t.year));return new(0,a.ng)(this,r,n,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Y(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,r]=G(H(e));e.era=t,e.year=r}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,r]=(0,o.f5)(H(e));return new(0,a.ng)(t,r,e.month,e.day)}function Z(e){switch(e){case"buddhist":return new s;case"ethiopic":return new p;case"ethioaa":return new h;case"coptic":return new m;case"hebrew":return new E;case"indian":return new D;case"islamic-civil":return new C;case"islamic-tbla":return new k;case"islamic-umalqura":return new I;case"japanese":return new U;case"persian":return new z;case"roc":return new K;default:return new(0,o.FG)}}},2974(e,t,r){"use strict";r.d(t,{AU:()=>u,D8:()=>O,E0:()=>S,Rb:()=>h,Re:()=>d,WQ:()=>a,XH:()=>D,YP:()=>v,d_:()=>E,gt:()=>w,hZ:()=>f,ib:()=>p,tY:()=>g,xy:()=>b});var n=r(9405),i=r(345);function a(e,t){let r=e.copy(),n="hour"in r?y(r,t):0;o(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,s(r),l(r),r.day+=7*(t.weeks||0),r.day+=t.days||0,r.day+=n,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)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){let e=r.calendar.isInverseEra?.(r);r.year=i,r.month=e?1:r.calendar.getMonthsInYear(r),r.day=e?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}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 r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function d(e,t){return a(e,c(t))}function f(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),u(r),r}function p(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),h(r),r}function h(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 m(e,t){let r=e%t;return r<0&&(r+=t),r}function y(e,t){let r;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=m(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m(e.minute,60),r=Math.floor(e.hour/24),e.hour=m(e.hour,24),r}function g(e,t){let r=e.copy();return y(r,t),r}function v(e,t){return g(e,c(t))}function b(e,t,r,n){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=x(a,r,0,t.length-1,n?.round),i.era=t[a],u(i);break}case"year":i.calendar.isInverseEra?.(i)&&(r=-r),i.year=x(e.year,r,-1/0,9999,n?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=x(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":i.day=x(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),u(i),i}function w(e,t,r,n){let i=e.copy();switch(t){case"hour":{let t=e.hour,a=0,o=23;if(n?.hourCycle===12){let e=t>=12;a=12*!!e,o=e?23:11}i.hour=x(t,r,a,o,n?.round);break}case"minute":i.minute=x(e.minute,r,0,59,n?.round);break;case"second":i.second=x(e.second,r,0,59,n?.round);break;case"millisecond":i.millisecond=x(e.millisecond,r,0,999,n?.round);break;default:throw Error("Unsupported field "+t)}return i}function x(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function S(e,t){let r;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 i=a((0,n.tR)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=(0,n.Tr)(i,e.timeZone)}else r=(0,n.oU)(e)-e.offset;r+=t.milliseconds||0,r+=1e3*(t.seconds||0),r+=6e4*(t.minutes||0),r+=36e5*(t.hours||0);let i=(0,n.Yd)(r,e.timeZone);return(0,n.yP)(i,e.calendar)}function E(e,t){return S(e,c(t))}function D(e,t,r,a){switch(t){case"hour":{let t=0,o=23;if(a?.hourCycle===12){let r=e.hour>=12;t=12*!!r,o=r?23:11}let s=(0,n.tR)(e),l=(0,n.yP)(p(s,{hour:t}),new(0,i.FG)),u=[(0,n.Tr)(l,e.timeZone,"earlier"),(0,n.Tr)(l,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===l.day)[0],c=(0,n.yP)(p(s,{hour:o}),new(0,i.FG)),d=[(0,n.Tr)(c,e.timeZone,"earlier"),(0,n.Tr)(c,e.timeZone,"later")].filter(t=>(0,n.Yd)(t,e.timeZone).day===c.day).pop(),f=(0,n.oU)(e)-e.offset,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*x(h,r,Math.floor(u/36e5),Math.floor(d/36e5),a?.round)+m,(0,n.yP)((0,n.Yd)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return w(e,t,r,a);case"era":case"year":case"month":case"day":{let i=b((0,n.tR)(e),t,r,a),o=(0,n.Tr)(i,e.timeZone);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function O(e,t,r){let i=(0,n.tR)(e),a=p(f(i,t),t);if(0===a.compare(i))return e;let o=(0,n.Tr)(a,e.timeZone,r);return(0,n.yP)((0,n.Yd)(o,e.timeZone),e.calendar)}},240(e,t,r){"use strict";r.d(t,{p9:()=>x,$I:()=>D,RZ:()=>P,tB:()=>f,rS:()=>b,kq:()=>E,Jg:()=>l,Py:()=>C,tF:()=>o,Xj:()=>v,Nu:()=>m,SJ:()=>d,SE:()=>h,ro:()=>a,D:()=>S,ZI:()=>k,Ec:()=>p,cK:()=>u,NV:()=>s,wH:()=>w});var n=r(9405);let i={"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 a(e,t){return t=(0,n.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,n.yP)(t,e.calendar),e=w(e),t=w(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function s(e,t){return l(e.calendar,t.calendar)&&a(e,t)}function l(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function u(e,t){return a(e,p(t))}let c={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(e,t,r){let n=Math.ceil(e.calendar.toJulianDay(e)+1-(r?c[r]:function(e){let t=j.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo()))return j.set(e,t),t.firstDay}let r=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 r=e.split("-fw-")[1].split("-")[0];t="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else t=e.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&i[r]||0};j.set(e,t)}return t.firstDay}(t)))%7;return n<0&&(n+=7),n}function f(e){return(0,n.Yd)(Date.now(),e)}function p(e){return(0,n.gw)(f(e))}function h(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function m(e,t){return y(e)-y(t)}function y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let g=null;function v(){return null==g&&(g=new Intl.DateTimeFormat().resolvedOptions().timeZone),g}function b(){return!1}function w(e){return e.subtract({days:e.day-1})}function x(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function S(e){return w(e.subtract({months:e.month-1}))}function E(e,t,r){let n=d(e,t,r);return e.subtract({days:n})}function D(e,t,r){return E(e,t,r).add({days:6})}let O=new Map,j=new Map;function P(e,t,r){let n=e.calendar.getDaysInMonth(e);return Math.ceil((d(w(e),t,r)+n)/7)}function C(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function k(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},2298(e,t,r){"use strict";r.d(t,{$T:()=>p,DP:()=>c,_U:()=>u,e6:()=>m,ot:()=>f,qk:()=>h});var n=r(5923),i=r(9405),a=r(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 r=new(0,n.ng)(d(t[1],0,9999),d(t[2],1,12),1);return r.day=d(t[3],1,r.calendar.getDaysInMonth(r)),r}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 r=d(t[1],-9999,9999),i=new(0,n._l)(r<1?"BC":"AD",r<1?-r+1:r,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 i.day=d(t[3],0,i.calendar.getDaysInMonth(i)),i}function d(e,t,r){let n=Number(e);if(n<t||n>r)throw RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}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,r=(0,i.yP)(e,new(0,a.FG));return t="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${t}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function h(e){return`${p(e)}T${f(e)}`}function m(e){var t;let r,n,i,a,o;return`${h(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),i=Math.floor(t%36e5/6e4),a=Math.floor(t%36e5%6e4/1e3),o=`${r}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`,0!==a&&(o+=`:${String(a).padStart(2,"0")}`),o}[${e.timeZone}]`}},5504(e,t,r){"use strict";function n(e,t){return e-t*Math.floor(e/t)}r.d(t,{z:()=>n})},99(e,t,r){"use strict";r.d(t,{Ln:()=>p,Yv:()=>c,rL:()=>d,zC:()=>f});var n=r(9726),i=r(5565),a=r(8048);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,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 r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=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",n=arguments.length>2?arguments[2]:void 0;return s(function(){var i,a,o,s,d,p,h;return u(this,function(u){switch(u.label){case 0:return i=(null==n?void 0:n.maxLoadingTime)&&!(n.maxLoadingTime<=0)?n.maxLoadingTime:6e5,a=void 0,[4,Promise.race([f(e,null==n?void 0:n.importMap),new Promise(function(t,r){a=setTimeout(function(){var t;r(Error("Could not resolve requested script, ".concat(e,", within ").concat((t=i)<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"),".")))},i)})])];case 1:var m;if(u.sent(),a&&clearTimeout(a),o=c(e),!((void 0===(m=s=window[o])?"undefined":l(m))==="object"&&null!==m&&"init"in m&&"function"==typeof m.init&&"get"in m&&"function"==typeof m.get))throw console.error(d="The global variable ".concat(o," does not refer to a federated module")),Error(d);return s.init(r.S.default),[4,s.get(t)];case 2:if((void 0===(p=u.sent()())?"undefined":l(p))!=="object"||null===p)throw console.error(h="Container for ".concat(e," did not return an ESM module as expected")),Error(h);return[2,p]}})})()}function f(e,t){return s(function(){var r,o,s,l,d,f,m;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(r=c(e),window[r])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,a.uT)().imports,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,new Promise(function(e,t){!function(e,t,r){var n,i,a,o=document.head.querySelector('script[src="'.concat(e,'"]')),s=window[h];if(s||(s=window[h]=new Set([])),o)s.has(e)?(a=function(){n&&o.removeEventListener("load",n),i&&o.removeEventListener("error",i)},n=function(){a(),t(null)},i=function(e){a(),r(e.message)},o.addEventListener("load",n),o.addEventListener("error",i)):(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 n,i="Failed to load script from ".concat(e);console.error(i,t),r(null!=(n=t.message)?n:i)},d.addEventListener("load",l),d.addEventListener("error",u),document.head.appendChild(d)}}(d,e,t)})];case 5:return[2,u.sent()];case 6:return m=u.sent(),f&&(0,n.Vt)({kind:"error",title:(0,i.V)("scriptLoadingFailed","Error: Script failed to load"),description:(0,i.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,i.V)("resetOverrides","Reset overrides"),onActionButtonClick:function(){(0,a.w_)(),window.location.reload()}}),[2,Promise.reject(m)];case 7:return[2,Promise.resolve()]}})})()}function p(){return s(function(){return u(this,function(e){return[2,(0,a.F$)()]})})()}var h=Symbol("__egen_script_loading")},8048(e,t,r){"use strict";function n(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)})}}function a(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}r.d(t,{BX:()=>E,E:()=>x,F$:()=>h,SM:()=>O,fd:()=>w,o5:()=>y,q1:()=>b,tK:()=>m,uT:()=>g,w_:()=>S,xI:()=>v});var o="import-map-override:",s="import-map-overrides-disabled",l="import-map-overrides:change",u=!1,c=null;function d(){return i(function(){var e,t,r,n,i,o,s;return a(this,function(a){switch(a.label){case 0:e=document.querySelectorAll('script[type="systemjs-importmap"]'),t=[],r=0,a.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],a.label=2;case 2:if(a.trys.push([2,7,,8]),!n.src)return[3,5];return[4,fetch(n.src)];case 3:return i=a.sent(),o=t.push,[4,i.json()];case 4:return o.apply(t,[a.sent()]),[3,6];case 5:n.textContent&&t.push(JSON.parse(n.textContent)),a.label=6;case 6:return[3,8];case 7:return s=a.sent(),console.warn("[import-maps] Failed to parse import map from script tag at index ".concat(r),s),[3,8];case 8:return r++,[3,1];case 9:return[2,f(t)]}})})()}function f(e){var t={imports:{}},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;(null==s?void 0:s.imports)&&Object.assign(t.imports,s.imports)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function p(){var e={};try{for(var t=v(),r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=n.slice(o.length);if(!t.includes(i)){var a=localStorage.getItem(n);a&&(e[i]=a)}}}}catch(e){console.warn("[import-maps] Failed to read import-map overrides from localStorage",e)}return{imports:e}}function h(){return i(function(){var e;return a(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 m(){return i(function(){return a(this,function(e){return[2,d()]})})()}function y(){return i(function(){return a(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 g(e){if(!u)return{imports:{}};if(e){for(var t={},r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(null==n?void 0:n.startsWith(o)){var i=localStorage.getItem(n);i&&(t[n.slice(o.length)]=i)}}return{imports:t}}return p()}function v(){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&&v().includes(e)}function w(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 x(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{localStorage.removeItem(o+e);var t=v().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 S(){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 r=localStorage.key(t);(null==r?void 0:r.startsWith(o))&&e.push(r)}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 E(e){if(!u)return void console.warn("[Security] Import map overrides are disabled in production mode.");try{var t=v().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 D=!1;function O(){!D&&(D=!0,(u="development"===window.spaEnv)&&(c=p()))}},101(e,t,r){"use strict";r.d(t,{xI:()=>i.xI,E:()=>i.E,eH:()=>S,SM:()=>i.SM,zU:()=>g,BX:()=>i.BX,w_:()=>i.w_,Y6:()=>v,Yv:()=>n.Yv,tK:()=>i.tK,Ln:()=>n.Ln,FM:()=>y,o5:()=>i.o5,fd:()=>i.fd,Tx:()=>w,KI:()=>x,rL:()=>n.rL,WY:()=>b,F$:()=>i.F$,zC:()=>n.zC,_m:()=>D,q1:()=>i.q1,uT:()=>i.uT});var n=r(99),i=r(8048),a=r(2235);function o(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)})}}function l(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=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,r,n,i,o;return l(this,function(s){switch(s.label){case 0:e=document.querySelectorAll("script[type='egen-routes']"),t=[],r=0,s.label=1;case 1:if(!(r<e.length))return[3,9];n=e[r],s.label=2;case 2:if(s.trys.push([2,7,,8]),i=void 0,!n.src)return[3,5];return[4,fetch(n.src)];case 3:return[4,s.sent().json()];case 4:return i=s.sent(),[3,6];case 5:n.textContent&&(i=JSON.parse(n.textContent)),s.label=6;case 6:return i&&(0,a.S)(i)&&t.push(i),[3,8];case 7:return o=s.sent(),console.warn("[route-maps] Failed to parse routes from script tag at index ".concat(r),o),[3,8];case 8:return r++,[3,1];case 9:return[2,h(t)]}})})()}function h(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;s&&(void 0===s?"undefined":s&&"u">typeof Symbol&&s.constructor===Symbol?"symbol":typeof s)=="object"&&Object.assign(t,s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return t}function m(){return s(function(){var e,t,r,n,i,o,c,d,f,p,h,m;return l(this,function(y){switch(y.label){case 0:e={},y.label=1;case 1:for(y.trys.push([1,3,,4]),t=[],r=0;r<localStorage.length;r++)(null==(n=localStorage.key(r))?void 0:n.startsWith(u))&&(i=localStorage.getItem(n))&&t.push({moduleName:n.slice(u.length),raw:i});return[4,Promise.allSettled(t.map(function(e){var t=e.moduleName,r=e.raw;return s(function(){var e,n;return l(this,function(i){switch(i.label){case 0:if(e=JSON.parse(r),(0,a.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,i.sent().json()];case 2:if(n=i.sent(),(0,a.j)(n))return[2,{moduleName:t,routes:n}];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=(h=p.next()).done);c=!0)m=h.value,"fulfilled"===m.status?e[m.value.moduleName]=m.value.routes:console.warn("[route-maps] Failed to load route override",m.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(r){switch(r.label){case 0:return[4,p()];case 1:if(e=r.sent(),!d)return[2,e];if(null==f)return[3,2];return t=f,[3,4];case 2:return[4,m()];case 3:t=r.sent(),r.label=4;case 4:return[2,h([e,t])]}})})()}function g(){return s(function(){return l(this,function(e){return[2,p()]})})()}function v(){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,m()];case 2:return[2,h.apply(void 0,[e.concat([t.sent()])])]}})})()}function b(){if(!d)return{};var e={};try{for(var t=0;t<localStorage.length;t++){var r=localStorage.key(t);if(null==r?void 0:r.startsWith(u)){var n=localStorage.getItem(r);n&&(e[r.slice(u.length)]=n)}}}catch(e){console.warn("[route-maps] Failed to read route overrides from localStorage",e)}return e}function w(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 r,n=JSON.parse(t);if(!(0,a.j)(n))return void console.error("The supplied routes for ".concat(e," is not a valid EgenAppRoutes object"),t);localStorage.setItem(u+e,JSON.stringify(n))}else if(r=URL,null!=r&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)localStorage.setItem(u+e,JSON.stringify(t.toString()));else{if(!(0,a.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 x(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 S(){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 r=localStorage.key(t);(null==r?void 0:r.startsWith(u))&&e.push(r)}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 E=null;function D(){return E||(E=(d="development"===window.spaEnv)?m().then(function(e){f=e}):Promise.resolve())}},8507(e,t,r){"use strict";r.d(t,{J:()=>a,N:()=>i});var n=r(9726);function i(e){var t=o(e);setTimeout(function(){throw t})}function a(){var e=Error();return function(t){var r=o(t);r.stack+="\nAsync stacktrace:\n".concat(e.stack),i(t)}}function o(e){var t,r;if(null!=(r=Error)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r)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(r){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,n.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,n.Vt)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9360(e,t,r){"use strict";r.d(t,{dX:()=>n.dX,wE:()=>n.wE,_3:()=>n._3,uN:()=>n.uN,$F:()=>n.$F,Gz:()=>n.Gz,eb:()=>n.eb,Sj:()=>n.Sj,mv:()=>n.mv,yp:()=>l,PQ:()=>n.PQ});var n=r(6014),i=r(4356),a=r(4693);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}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,r={globals:s({},a.f),isLocalExpression:!1,variables:new Set};return u("string"==typeof e?(0,i.A)(e):e,r),function(e){if(Array.isArray(e))return o(e)}(t=r.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 r=e,n=t,u(r.argument,n);case"BinaryExpression":return i=e,a=t,[u(i.left,a),u(i.right,a)].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,h=u(d.callee,f),null==(p=d.arguments)||p.map(c(f)),h;case"ArrowFunctionExpression":return function(e,t){var r=s({},t);r.isLocalExpression=!0;var n=null!=(d=null==(p=e.params)?void 0:p.map(c(r)))?d:[],i=null!=(f=u(e.body,r))?f:[];if(i&&Array.isArray(i)){var a=!0,o=!1,l=void 0;try{for(var d,f,p,h,m=i[Symbol.iterator]();!(a=(h=m.next()).done);a=!0){var y=h.value;n.includes(y)||t.variables.add(y)}}catch(e){o=!0,l=e}finally{try{a||null==m.return||m.return()}finally{if(o)throw l}}}}(e,t);case"MemberExpression":return m=e,y=t,u(m.object,y),void((g=s({},y)).isLocalExpression=!0,u(m.property,g));case"ArrayExpression":return v=e,b=t,void(null==(w=v.elements)||w.map(c(b)));case"SequenceExpression":return x=e,S=t,void(null==(E=x.expressions)||E.map(c(S)));case"NewExpression":return D=e,O=t,void(null==(j=D.arguments)||j.map(c(O)));case"Literal":case"TemplateElement":return;case"Identifier":var r,n,i,a,o,l,d,f,p,h,m,y,g,v,b,w,x,S,E,D,O,j,P,C,k,A,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 P=e,C=t,void(null==(k=P.expressions)||k.map(c(C)),null==(A=P.quasis)||A.map(c(C)));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,r){"use strict";r.r(t),r.d(t,{ActionMenu:()=>v.WyE,ActionMenuButton:()=>v.EDM,ActionMenuButton2:()=>v.Wjo,ActionableNotificationComponent:()=>v.drd,ActivityIcon:()=>v.npY,AddIcon:()=>v.REV,AllergiesIcon:()=>v.UgN,AnimatedHomeBackground:()=>v.BpM,AppointmentsAltPictogram:()=>v.MnZ,AppointmentsPictogram:()=>v.B1u,ArrowDownIcon:()=>v.ZLN,ArrowLeftIcon:()=>v.A60,ArrowRightIcon:()=>v.flY,ArrowUpIcon:()=>v.Kpk,Assessment1Pictogram:()=>v.IHy,Assessment2Pictogram:()=>v.$iy,AttachmentIcon:()=>v.PtA,BabyIcon:()=>v.qYP,BloodBankPictogram:()=>v.nvs,Breakpoint:()=>v.EA,CalendarHeatMapIcon:()=>v.mmM,CalendarIcon:()=>v.CTc,CardHeader:()=>v.aRn,CardModal:()=>v.oVc,CardiologyPictogram:()=>v.uU$,CaretDownIcon:()=>v.bDP,CaretLeftIcon:()=>v.eCO,CaretRightIcon:()=>v.JJd,CaretUpIcon:()=>v.SwV,Carousel:()=>v.FNf,CarouselContext:()=>v.Ycj,CascadingNavDropdown:()=>v._PX,ChartAverageIcon:()=>v.ZHE,ChartLineIcon:()=>v.SCH,CheckmarkFilledIcon:()=>v.FtQ,CheckmarkOutlineIcon:()=>v.pm$,ChemistryIcon:()=>v.W4t,ChevronDownIcon:()=>v.D3D,ChevronLeftIcon:()=>v.YJP,ChevronRightIcon:()=>v.vKP,ChevronUpIcon:()=>v.Mtm,CircularGallery:()=>v.GF9,ClassificationTags:()=>v.QpY,CloseFilledIcon:()=>v.oCk,CloseIcon:()=>v.USm,CloseOutlineIcon:()=>v.Wdn,ColumnWithSearch:()=>v.Fny,ConditionsIcon:()=>v.ci3,ContentSection:()=>v.Fe_,CtScanPictogram:()=>v.DeE,CustomOverflowMenu:()=>v.TQT,CustomOverflowMenuItem:()=>v.cxd,DashboardExtension:()=>v.cJN,DecoratedCard:()=>v.mqB,DefaultPageBackground:()=>v.NOx,DentistryPictogram:()=>v.TNY,DocumentAttachmentIcon:()=>v.Ce6,DocumentIcon:()=>v.pyG,DownloadIcon:()=>v.s3U,DrugOrderIcon:()=>v.uqj,DynamicField:()=>v.koC,EditIcon:()=>v.qUP,EgenDatePicker:()=>v.O_s,EgenDateRangePicker:()=>v.tKr,EmergencyDepartmentPictogram:()=>v.sgv,EmptyCard:()=>v.slS,EmptyCardIllustration:()=>v.Ua6,EntityBannerActionsMenu:()=>v.M9T,EntityBannerContactDetails:()=>v.EGc,EntityBannerEntityIdentifiers:()=>v.teX,EntityBannerEntityInfo:()=>v.Zpy,EntityDetailBrowser:()=>v.NIm,EntityPhoto:()=>v.Klm,ErrorCard:()=>v.JrA,ErrorState:()=>v.W5n,EventScheduleIcon:()=>v.XaH,EventsIcon:()=>v.Jc,FacilityPictogram:()=>v.ECF,FolderGallery:()=>v.fNA,GenderFemaleIcon:()=>v.XB2,GenderMaleIcon:()=>v.szA,GenderOtherIcon:()=>v.hXZ,GenderUnknownIcon:()=>v.x1U,GenericOrderTypeIcon:()=>v.naI,GeriatricsPictogram:()=>v.SQq,GlobalPageBackground:()=>v.Nqf,GradientBlur:()=>v.wtE,GradientWave:()=>v.GcC,GroupAccessIcon:()=>v.Pyy,GroupIcon:()=>v.nFg,GynaecologyPictogram:()=>v.owH,HeroMosaic:()=>v.LdX,HeroTileCard:()=>v.b6Z,HomePictogram:()=>v.KKH,HospitalBedIcon:()=>v.jMM,Icon:()=>v.Int,ImageMedicalIcon:()=>v.Ix5,ImageSwiper:()=>v.QeH,InPatientPictogram:()=>v.thS,InformationFilledIcon:()=>v._e_,InformationIcon:()=>v.uQc,InformationSquareIcon:()=>v.ZrL,InteractiveSelector:()=>v.wmT,InventoryManagementIcon:()=>v.vFG,LabOrderIcon:()=>v.hi6,LaboratoryPictogram:()=>v.ehn,Labs2Pictogram:()=>v.rpF,LayoutGrid:()=>v.D6i,LeftNavMenu:()=>v.Ojh,LiquidGlassCard:()=>v.lok,ListCheckedIcon:()=>v.Rt$,LocationIcon:()=>v.BT6,LocationPicker:()=>v.MTs,MaterialOrderIcon:()=>v.zZ0,MaximizeIcon:()=>v._Xm,MaybeIcon:()=>v.oy0,MaybePictogram:()=>v.bmf,MedicationIcon:()=>v.Fnj,MenuToggleButton:()=>v.qLc,MessageQueueIcon:()=>v.uFu,MicroscopeIcon:()=>v.u4h,MoneyIcon:()=>v.yBj,MotherIcon:()=>v.XEq,MovementIcon:()=>v.lyJ,Notification:()=>v.Eg0,NumericDataPoint:()=>v.YiA,ObstetricsPictogram:()=>v.Bk2,OverflowMenuHorizontalIcon:()=>v.rv3,OverflowMenuVerticalIcon:()=>v.Rnm,PageBackground:()=>v.Kz$,PageBackgroundProvider:()=>v.z0Y,PageHeader:()=>v.zYs,PageHeaderContent:()=>v.gpz,Pagination:()=>v.dKS,PasswordIcon:()=>v.BGy,PatientListsPictogram:()=>v.$2H,PatientSearchPictogram:()=>v.cxq,PatientsPictogram:()=>v.X25,PaymentsDeskPictogram:()=>v.dNG,PedestrianFamilyIcon:()=>v.PPo,PenIcon:()=>v.rZj,Pharmacy2Pictogram:()=>v.Q92,PharmacyPictogram:()=>v.w21,Pictogram:()=>v.bF1,PrinterIcon:()=>v.wwY,ProcedureOrderIcon:()=>v.H0x,ProgramsIcon:()=>v.lq$,RadiologyIcon:()=>v.SA3,ReferralOrderIcon:()=>v.tCH,RegistrationPictogram:()=>v.et7,RenewIcon:()=>v.JTN,ReportIcon:()=>v.cQD,ResetIcon:()=>v.NAP,ResponsiveWrapper:()=>v.KFv,SaveIcon:()=>v.LPu,SearchIcon:()=>v.WIv,Select:()=>v.l6P,SelectContent:()=>v.gCo,SelectContext:()=>v.CW5,SelectTrigger:()=>v.bqE,ServiceQueuesPictogram:()=>v.Y21,SettingsIcon:()=>v.Zes,Sheet:()=>v.cjw,SheetClose:()=>v.kNS,SheetContent:()=>v.hae,SheetContext:()=>v.P8U,SheetDescription:()=>v.Qsg,SheetFooter:()=>v.XWC,SheetHeader:()=>v.Fm9,SheetOverlay:()=>v.YP7,SheetPortal:()=>v.yde,SheetRoot:()=>v.KId,SheetTitle:()=>v.qpM,SheetTrigger:()=>v.CGR,ShoppingCartAddItemIcon:()=>v.Uve,ShoppingCartArrowDownIcon:()=>v.Lfm,ShoppingCartIcon:()=>v.aJF,Slider:()=>v.Apm,SliderContainer:()=>v.Jbi,SliderDotButton:()=>v.vY7,Snackbar:()=>v.qb_,StaggeredMenuPanel:()=>v._kB,StickyNoteAddIcon:()=>v.OC$,StockManagementPictogram:()=>v.q__,SwitcherIcon:()=>v.RFy,SyringeIcon:()=>v.hZg,TableBatchActions:()=>v.GGC,TableIcon:()=>v.KbA,TableOfContentsIcon:()=>v.pYV,TestimonialCard:()=>v._f_,TestimonialCardStack:()=>v.uDL,ThumbsSlider:()=>v.BM2,TimeIcon:()=>v.b1c,Toast:()=>v.y8,ToolsIcon:()=>v.dwU,TopBar:()=>v.Vsm,TopBarAvatar:()=>v.mIk,TopBarDivider:()=>v.AA7,TopBarIconButton:()=>v.gFP,TransferPictogram:()=>v.SKX,TranslateIcon:()=>v.SwB,TrashCanIcon:()=>v.EJV,TreeViewAltIcon:()=>v.MO4,TriagePictogram:()=>v.XHu,UserAvatarIcon:()=>v.yDT,UserFollowIcon:()=>v.osL,UserIcon:()=>v.nys,UserXrayIcon:()=>v.feL,ViewIcon:()=>v.tCQ,ViewOffIcon:()=>v.Oi_,WarningIcon:()=>v.id,WorkSessionMode:()=>s.TG,WorkSessionStatus:()=>s.qd,Workspace2:()=>v.ozP,WorkspaceContainer:()=>v.XvC,WorkspaceNotification:()=>v.tMf,XrayPictogram:()=>v.B2u,activateOfflineCapability:()=>h.nr,addImportMapOverride:()=>o.fd,addRouteMapOverride:()=>o.Tx,age:()=>w.KW,ageAsDuration:()=>w.Cy,attach:()=>c.K0,attachmentUrl:()=>s.Zu,beginEditSynchronizationItem:()=>h.FO,canAccessStorage:()=>w._g,canBeginEditSynchronizationItemsOfType:()=>h.xN,canCloseWorkspaceWithoutPrompting:()=>v.SvQ,cancelPrompt:()=>v.zlb,cardModalAnimationPresets:()=>v.QsE,changeWorkspaceContext:()=>v.JKc,checkStatus:()=>c.dO,checkStatusFor:()=>c.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearHistory:()=>p.g4,closeAllWorkspaces:()=>v.G_3,closeWorkspace:()=>v.MJ8,closeWorkspaceGroup2:()=>v.biy,cn:()=>v.cn,compile:()=>u.wE,convertToLocaleCalendar:()=>w.d4,createAttachment:()=>s.cD,createDashboard:()=>v.n6L,createErrorHandler:()=>l.J,defaultValidation:()=>v.n$t,defaultWorkSessionCustomRepresentation:()=>s.pJ,deleteAttachmentPermanently:()=>s.SY,deleteSynchronizationItem:()=>h.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:()=>w.QC,duration:()=>w.p0,egenOfflineCachingStrategyHttpHeaderName:()=>h.T$,egenOfflineResponseBodyHttpHeaderName:()=>h.Q1,egenOfflineResponseStatusHttpHeaderName:()=>h.Gt,enableImportMapOverride:()=>o.BX,esmStyleGuideSchema:()=>v.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,extractVariableNames:()=>u.yp,featureFlagsStore:()=>d.jX,fetchCurrentEntity:()=>s.dZ,filterBreadcrumbs:()=>p.D_,finishRegisteringAllApps:()=>y.yw,fireEgenEvent:()=>s.g8,formatDate:()=>w.Yq,formatDatetime:()=>w.Rt,formatDuration:()=>w.a3,formatDurationBetween:()=>w.g2,formatEntityName:()=>w.MS,formatPartialDate:()=>w.LW,formatPatientName:()=>w.Qr,formatTime:()=>w.fU,formattedName:()=>w.qK,generateOfflineUuid:()=>h.sA,getAssignedExtensions:()=>c.zx,getAttachmentByUuid:()=>s.KU,getAttachments:()=>s.Bv,getBreadcrumbs:()=>p.lz,getBreadcrumbsFor:()=>p.qh,getCoreTranslation:()=>b.V,getCurrentImportMap:()=>o.Ln,getCurrentOfflineMode:()=>h.wJ,getCurrentPageMap:()=>o.F$,getCurrentRouteMap:()=>o.FM,getDefaultCalendar:()=>w.a7,getDefaultsFromConfigSchema:()=>w.kd,getDynamicOfflineDataEntries:()=>h.FE,getDynamicOfflineDataEntriesFor:()=>h.WA,getDynamicOfflineDataHandlers:()=>h.qb,getEgenServiceWorker:()=>h.b1,getEntityName:()=>w.He,getExtensionInternalStore:()=>c.a9,getExtensionNameFromId:()=>c.ES,getExtensionRegistration:()=>c.Tj,getExtensionRegistrationFrom:()=>c.xg,getExtensionStore:()=>c.zF,getFeatureFlag:()=>d.jj,getFullSynchronizationItems:()=>h.C$,getFullSynchronizationItemsFor:()=>h.xc,getGroupByWindowName:()=>c.o1,getHistory:()=>p.JK,getImportMapDefaultMap:()=>o.tK,getImportMapDisabledOverrides:()=>o.xI,getImportMapNextPageMap:()=>o.o5,getImportMapOverrideMap:()=>o.uT,getLocale:()=>w.JK,getLocations:()=>s.Vs,getModalRegistration:()=>c.Fg,getOfflineDb:()=>h.e,getOfflineEntityDataStore:()=>h.sm,getOfflineSynchronizationStore:()=>h.LM,getOpenedWindowIndexByWorkspace:()=>c.YX,getPatientName:()=>w.Vp,getPromptBeforeClosingFcn:()=>v.OeE,getRegisteredWorkspace2Names:()=>v.uBm,getRouteMapDefaultMap:()=>o.zU,getRouteMapNextPageMap:()=>o.Y6,getRouteMapOverrideMap:()=>o.WY,getStartedWorkSession:()=>s.rm,getSynchronizationItem:()=>h.Gp,getSynchronizationItems:()=>h.pb,getSynchronizationItemsFor:()=>h.Io,getWindowByWorkspaceName:()=>c.Ml,getWorkSessionStore:()=>s.r_,getWorkSessionTypes:()=>s.Ty,getWorkSessionsForEntity:()=>s.ly,getWorkspaceGroupRegistration:()=>c.Q_,getWorkspaceGroupStore:()=>v.e_T,getWorkspaceRegistration:()=>c.Xb,getWorkspaceStore:()=>v.XzH,goBackInHistory:()=>p.tA,iconIds:()=>v.kE8,importDynamic:()=>o.rL,integrateBreakpoints:()=>v.WMK,interpolateString:()=>p.zl,interpolateUrl:()=>p.JG,isEgenAppRoutes:()=>f.j0,isEgenDateStrict:()=>w.pf,isEgenDateToday:()=>w.L8,isEgenRoutes:()=>f.Ss,isImportMapOverrideDisabled:()=>o.q1,isOfflineUuid:()=>h.bO,isOnline:()=>w.sc,isVersionSatisfied:()=>w.rX,jsep:()=>u.PQ,launchWorkspace:()=>v.TC2,launchWorkspace2:()=>v.pTx,launchWorkspaceGroup:()=>v.aN0,launchWorkspaceGroup2:()=>v.GYk,leftNavStore:()=>c.Gp,loadLifeCycles:()=>y.oB,matchLocale:()=>w.w7,messageEgenServiceWorker:()=>h.Oc,navigate:()=>p.oo,navigateAndLaunchWorkspace:()=>v.Fmw,offlineUuidPrefix:()=>h.jU,parseDate:()=>w._U,parseDateInput:()=>w.qE,pictogramIds:()=>v.vJW,preloadImport:()=>o.zC,promptBeforeClosing:()=>v.F3N,promptForClosingWorkspaces:()=>v.hLN,putDynamicOfflineData:()=>h.yD,putDynamicOfflineDataFor:()=>h.ff,queueSynchronizationItem:()=>h.Zr,queueSynchronizationItemFor:()=>h.Iq,registerApp:()=>y.FZ,registerBreadcrumb:()=>p.vf,registerBreadcrumbs:()=>p.MY,registerDefaultCalendar:()=>w.XE,registerEgenServiceWorker:()=>h.QP,registerExtension:()=>c.VK,registerExtensionSlot:()=>c.FY,registerFeatureFlag:()=>d.uA,registerModal:()=>c.Ju,registerOfflineEntityHandler:()=>h.Wo,registerWorkspace:()=>c.pm,registerWorkspaceGroup:()=>c.io,registerWorkspaceGroups2:()=>c.rD,registerWorkspaceWindows2:()=>c.Qb,registerWorkspaces2:()=>c.Uh,removeDynamicOfflineData:()=>h.NU,removeDynamicOfflineDataFor:()=>h.wn,removeImportMapOverride:()=>o.E,removeRouteMapOverride:()=>o.KI,renderActionableNotifications:()=>v.zfR,renderExtension:()=>c.wG,renderInlineNotifications:()=>v.CU$,renderLoadingSpinner:()=>v.uWG,renderSnackbars:()=>v.ZLm,renderToasts:()=>v.f1b,renderWorkspaceWindowsAndMenu:()=>v.jCr,reportError:()=>l.N,reset:()=>c.cL,resetImportMapOverrides:()=>o.w_,resetRouteMapOverrides:()=>o.eH,resetWorkspaceStore:()=>v._1W,retry:()=>w.L5,runSynchronization:()=>h.AO,saveWorkSession:()=>s.XM,selectPreferredName:()=>w.VO,setCurrentOfflineMode:()=>h.Og,setCurrentWorkSession:()=>s.R5,setFeatureFlag:()=>d.B4,setLeftNav:()=>c.Vx,setupDynamicOfflineDataHandler:()=>h.iD,setupHistory:()=>p.Wh,setupImportMapOverrides:()=>o.SM,setupModals:()=>v.EPe,setupOfflineSync:()=>h.cy,setupRouteMapOverrides:()=>o._m,shallowEqual:()=>w.bN,showActionableNotification:()=>v.ZyP,showModal:()=>v.toY,showNotification:()=>v.Dsh,showSnackbar:()=>v.tdF,showToast:()=>v.P0c,showWorkspacePrompts:()=>v.ctS,slugify:()=>o.Yv,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:()=>h.Td,syncDynamicOfflineData:()=>h.u1,syncOfflineEntityData:()=>h.Oj,toDateObjectStrict:()=>w.kQ,toEgenIsoString:()=>w.L3,toLocationObject:()=>s.E$,toWorkSessionTypeObject:()=>s.iS,translateFrom:()=>b.t,tryRegisterExtension:()=>y.Y1,unsetLeftNav:()=>c.sr,updateExtensionSlotState:()=>c.ap,updateInternalExtensionStore:()=>c.DQ,updateWorkSession:()=>s.bS,updateWorkspaceWindowState:()=>v._RD,useCarouselContext:()=>v.RGi,useCustomOverflowMenu:()=>v.ckU,useEntityPhoto:()=>v.XhU,usePageBackground:()=>v.DYW,useSelectContext:()=>v.hPu,useSheetContext:()=>v.sCq,useWorkspace2Context:()=>v.WO_,useWorkspace2Store:()=>v.AkA,useWorkspaces:()=>v.CH0,workspace2Store:()=>c.J_,workspace2StoreActions:()=>v.cJy,workspaceStore:()=>v.x9q});var n=r(4896),i={};for(let e in n)"default"!==e&&(i[e]=()=>n[e]);r.d(t,i);var a=r(2804),i={};for(let e in a)"default"!==e&&(i[e]=()=>a[e]);r.d(t,i);var o=r(101),s=r(3447),l=r(8507),u=r(9360),c=r(7477),d=r(5794),f=r(5895),p=r(7774),h=r(6563),m=r(346),i={};for(let e in m)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","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","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>m[e]);r.d(t,i);var y=r(7334),g=r(1442),i={};for(let e in g)0>["getImportMapOverrideMap","evaluateAsNumber","importDynamic","finishRegisteringAllApps","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","getEgenServiceWorker","deleteAttachmentPermanently","setFeatureFlag","subscribeConnectivity","attachmentUrl","interpolateString","defaultWorkSessionCustomRepresentation","detach","canBeginEditSynchronizationItemsOfType","preloadImport","registerWorkspaceWindows2","getCurrentImportMap","activateOfflineCapability","toLocationObject","egenOfflineResponseBodyHttpHeaderName","egenOfflineResponseStatusHttpHeaderName","getOpenedWindowIndexByWorkspace","renderExtension","evaluateAsBooleanAsync","getFeatureFlag","checkStatusFor","setLeftNav","getLocations","updateExtensionSlotState","isEgenAppRoutes","dispatchSnackbarShown","clearHistory","getOfflineDb","getSynchronizationItem","getHistory","getCurrentRouteMap","toWorkSessionTypeObject","subscribeSnackbarShown","getImportMapDisabledOverrides","getRouteMapDefaultMap","syncAllDynamicOfflineData","messageEgenServiceWorker","getDynamicOfflineDataEntriesFor","evaluateAsType","isOfflineUuid","registerWorkspaceGroups2","evaluateAsync","getBreadcrumbs","removeImportMapOverride","evaluateAsNumberAsync","getImportMapDefaultMap","extractVariableNames","getOfflineSynchronizationStore","subscribePrecacheStaticDependencies","putDynamicOfflineData","subscribeNotificationShown","getExtensionNameFromId","cleanupObsoleteFeatureFlags","putDynamicOfflineDataFor","removeDynamicOfflineData","dispatchPrecacheStaticDependencies","deleteSynchronizationItem","registerBreadcrumb","subscribeActionableNotificationShown","subscribeEgenEvent","subscribeToFeatureFlag","getCurrentOfflineMode","enableImportMapOverride","isEgenRoutes","createAttachment","registerOfflineEntityHandler","getStartedWorkSession","addImportMapOverride","unsetLeftNav","getWorkSessionTypes","subscribeConnectivityChanged","interpolateUrl","setupHistory","getCurrentPageMap","subscribeToastShown","getOfflineEntityDataStore","detachAll","generateOfflineUuid","queueSynchronizationItemFor","registerApp","setupDynamicOfflineDataHandler","filterBreadcrumbs","leftNavStore","dispatchNotificationShown","egenOfflineCachingStrategyHttpHeaderName","getAssignedExtensions","getSynchronizationItems","syncDynamicOfflineData","createErrorHandler","registerFeatureFlag","getWorkspaceRegistration","getAttachmentByUuid","isImportMapOverrideDisabled","getExtensionRegistration","registerExtension","dispatchToastShown","getExtensionInternalStore","getFullSynchronizationItems","getImportMapNextPageMap","evaluateAsBoolean","addRouteMapOverride","getAttachments","workspace2Store","getFullSynchronizationItemsFor","runSynchronization","setupOfflineSync","getSynchronizationItemsFor","default","featureFlagsStore","removeDynamicOfflineDataFor","jsep","resetImportMapOverrides","getRouteMapOverrideMap","slugify","reportError","registerWorkspaceGroup","getExtensionStore","fireEgenEvent","setupImportMapOverrides","setCurrentWorkSession","registerWorkspaces2","getWorkSessionsForEntity","registerExtensionSlot","registerModal","evaluate","getWindowByWorkspaceName","registerBreadcrumbs","WorkSessionStatus","getExtensionRegistrationFrom","navigate","getDynamicOfflineDataEntries","syncOfflineEntityData","loadLifeCycles","evaluateAsTypeAsync","getGroupByWindowName"].indexOf(e)&&(i[e]=()=>g[e]);r.d(t,i);var v=r(2831),b=r(5565),w=r(7184)},5895(e,t,r){"use strict";r.d(t,{$3:()=>n.$3,FI:()=>n.FI,LQ:()=>n.LQ,Ss:()=>i.S,Vt:()=>n.Vt,Yt:()=>n.Yt,bJ:()=>n.bJ,bK:()=>n.bK,dX:()=>n.dX,ff:()=>n.ff,gj:()=>n.gj,j0:()=>i.j,ls:()=>n.ls,pc:()=>n.pc,sT:()=>n.sT});var n=r(9726),i=r(2235)},2235(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function a(e){return!!e&&(void 0===e?"undefined":i(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":i(e))==="object"&&Object.entries(e).every(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return n(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 n(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.")}(),r=t[0],i=t[1];return"string"==typeof r&&a(i)})}r.d(t,{S:()=>o,j:()=>a})},7334(e,t,r){"use strict";r.d(t,{yw:()=>f,Y1:()=>l,FZ:()=>d,oB:()=>s.o});var n=r(9250),i=r(2804),a=r(5794),o=r(7477),s=r(8148);function l(e,t){var r=t.name;if(!r)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(r," from ").concat(e," declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored."));var n=t.slots?t.slots:t.slot?[t.slot]:[];if(!t.component)return void console.error("The extension ".concat(r," 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:r,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 i=!0,a=!1,l=void 0;try{for(var u,c,d,f=n[Symbol.iterator]();!(i=(d=f.next()).done);i=!0){var p=d.value;(0,o.K0)(p,r)}}catch(e){a=!0,l=e}finally{try{i||null==f.return||f.return()}finally{if(a)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,i.registerModuleWithConfigSystem)(e);var r,n,d,f,p,h,m,y,g,v=null!=(r=t.extensions)?r:[],b=null!=(n=t.modals)?n:[],w=null!=(d=t.workspaces)?d:[],x=null!=(f=t.workspaceGroups)?f:[],S=null!=(p=t.featureFlags)?p:[],E=null!=(h=t.workspaceGroups2)?h:[],D=null!=(m=t.workspaceWindows2)?m:[],O=null!=(y=t.workspaces2)?y:[];null==(g=t.pages)||g.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 r,n;c.push((r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),n=n={appName:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}else console.warn("A page for ".concat(e," could not be registered as it does not appear to have the required properties"),t)}),v.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 r;(r=t.name)?t.component?(0,o.Ju)({name:r,moduleName:e,load:function(){return(0,s.o)(e,t.component)}}):console.error("The modal ".concat(r," 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)}),w.forEach(function(t){t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){var r=t.name;if(!r)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 n=t.title;if(!n)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(r," 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:r,title:n,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 i=!0,a=!1,l=void 0;try{for(var u,c=(t.groups||[])[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;(0,o.io)({name:d,members:[r]})}}catch(e){a=!0,l=e}finally{try{i||null==c.return||c.return()}finally{if(a)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)}),x.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"name")){var r,n;(n=t.name)?(0,o.io)({name:n,members:null!=(r=t.members)?r:[]}):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,E),function(e,t){(0,o.Qb)(e,t);var r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u.icon){var c={name:u.name,component:u.icon,slot:u.group,order:u.order};l(e,c)}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}(e,D),(0,o.Uh)(e,O),S.forEach(function(t){if(t&&(void 0===t?"undefined":u(t))==="object"&&Object.hasOwn(t,"flagName"))t.flagName?t.label?t.description?(0,a.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,r=!1,i=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),h=null!=(u=d.containerDomId)?u:"egen-apps-container",m=document.getElementById(h),y="single-spa-application:".concat(p);if(m){var g=document.createElement("div");g.id=y,null==m||m.appendChild(g)}else throw Error("".concat(d.appName," ").concat(d.component,' cannot be mounted to "').concat(h,'"; DOM element does not exist.'));!function(e,t){var r,i,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=(r=function e(t){if(Array.isArray(t)){var r,i=t.map(e);return function(e){return i.some(function(t){return t(e)})}}return"string"==typeof t?(0,n.pathToActiveWhen)(window.getEgenSpaBase()+t):(null!=(r=RegExp)&&"u">typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r)?function(e){return t.test(e.pathname.replace(window.getEgenSpaBase(),""))}:function(){return t}}(u),i=t.online,o=t.offline,l=t.featureFlag,window.offlineEnabled?function(e){return!!(navigator.onLine&&(null==i||i)||!navigator.onLine&&null!=o&&o)&&(!l||!!(0,a.jj)(l))&&r(e)}:r);(0,n.registerApplication)(e,function(){return(0,s.o)(t.appName,t.component)},c)}(p,d)}}catch(e){r=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(r)throw i}}}},8148(e,t,r){"use strict";r.d(t,{o:()=>u});var n=r(99),i=r(2804);function a(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,l,"next",e)}function l(e){a(o,n,i,s,l,"throw",e)}s(void 0)})}}function s(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=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 r,a,u,d,f;return s(this,function(p){switch(p.label){case 0:return u=(a=(r=t.indexOf("#"))>=0)?t.substring(0,r):e,d=a?t.substring(r+1):t,[4,(0,n.rL)(u)];case 1:if((f=p.sent())&&Object.hasOwn(f,d)&&"function"==typeof f[d]){var h,m;return[2,(h=u,m=f,o(function(){var e,t;return s(this,function(r){switch(r.label){case 0:if(h in l)return[3,5];if(null==m)return[3,1];return t=m,[3,3];case 1:return[4,(0,n.rL)(h)];case 2:t=r.sent(),r.label=3;case 3:return e=t,[4,l[h]=new Promise(function(t,r){if(Object.hasOwn(e,"startupApp")){var n=e.startupApp;if("function"==typeof n)return Promise.resolve(n()).then(function(){(0,i.registerModuleLoad)(h),t(null)}).catch(r)}(0,i.registerModuleLoad)(h),t(null)})];case 4:return r.sent(),[3,7];case 5:return[4,l[h]];case 6:r.sent(),r.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,r){"use strict";r.d(t,{g2:()=>ey,Rt:()=>eo,XE:()=>J,a3:()=>el,LW:()=>er,a7:()=>ee,L8:()=>K,Yq:()=>en,L3:()=>Z,fU:()=>ea,_U:()=>q,d4:()=>es,p0:()=>eh,kQ:()=>Y,qE:()=>eu,pf:()=>G});var n,i=r(9405),a=r(227);if("u">typeof navigator){let e=navigator;n=Array.isArray(e.languages)?e.languages[0]:e.language}else if("u">typeof process){let e=process.env;n=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"}}(n||"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},h={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:{}},m={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={...m,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}"},g={},v=class e{locale;lookups;vars;numberingSystem;baseName;dateOptions;static factory(t=o){let r=t.toLowerCase(),n=g[r];if(n)return n;let i=new e(t);return g[r]=i,i}constructor(e=o){this.locale=e,this.lookups={...h},this.vars={...m};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 r=0;r<e.length;r++)t+=String(this.lookups.digit[e[r]]);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 r=this.lookups.meridiem[t?.toLowerCase()]||0,n=this.stringToInt(e);return n<12&&12===r&&(n+=12),12===n&&0===r&&(n=0),n}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,r,n]=t;return("-"===e||"−"===e?-1:1)*(60*this.stringToInt(r)+(n?this.stringToInt(n):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 r=u[e];if(!r)return{group:"\\d",lookup:{...d}};let n=String.fromCharCode(r),i=String.fromCharCode(r+9),a={};for(let e=0;e<10;e++)a[String.fromCharCode(r+e)]=e;return f[e]={group:`[${n}-${i}]`,lookup:a},f[e]}(this.numberingSystem);for(let r in this.lookups.digit=t,y)Object.hasOwn(y,r)&&(this.vars[r]=y[r].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((r,n)=>{["","k","kuu","kuuta"].forEach((i,a)=>{e[r+i+(a<2?"\\.?":"")]=!0,t[r+i]=n+1})});else{let r=[],n=e=>"month"===e.type;for(let e=0;e<12;e++)r.push(new Date(2017,e,1));for(let i of["full","long","medium"]){let a=Intl.DateTimeFormat(this.locale,{dateStyle:i});for(let o=0;o<12;o++){let s=a.formatToParts(r[o]).find(n);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);/^\d+$/.test(l)||(/^ko/i.test(this.locale)&&(l+="월"),"medium"===i?(l=l.replace(/\.$/,""),e[`${l}\\.?`]=!0):e[l]=!0,t[l]=o+1)}}let i=Intl.DateTimeFormat(this.locale,{month:"short"});for(let a=0;a<12;a++){let o=i.formatToParts(r[a]).find(n);if(!o)continue;let s=o.value.toLocaleLowerCase(this.locale);s=s.replace(/\.$/,""),e[`${s}\\.?`]=!0,t[s]=a+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 r=[],n={};for(let i of["long","short"]){let a=Intl.DateTimeFormat(this.locale,{weekday:i});for(let o=0;o<7;o++){let s=a.formatToParts(e[o]).find(t);if(!s)continue;let l=s.value.toLocaleLowerCase(this.locale);"short"===i?(l=l.replace(/\.$/,""),r.push(`${l}\\.?`)):r.push(l),n[l]=o}}this.vars.DAYNAME=r.join("|"),this.lookups.dayname=n}buildMeridiems(){let e=[new Date(2017,0,1),new Date(2017,0,1,23,0,0)],t=e=>"dayPeriod"===e.type,r=[],n={},i=Intl.DateTimeFormat(this.locale,{timeStyle:"long"});for(let a=0;a<2;a++){let o=i.formatToParts(e[a]).find(t);if(!o)return;let s=o.value.toLocaleLowerCase(this.locale);r.push(s),n[s]=12*a}this.vars.MERIDIEM=r.join("|"),this.lookups.meridiem=n}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"],w={y:"year",M:"month",d:"day",w:"week",h:"hour",m:"minute",s:"second",ms:"millisecond"},x=()=>new Date;function S(e){return function(t){let r={};for(let n=0,i=e.length;n<i;n++){let i=e[n];i&&(r[i]=t[n])}return r}}var E=class{doneChecker;fallback;patterns;formatter;constructor({doneChecker:e,fallback:t,patterns:r,formatter:n}){this.doneChecker=e,this.fallback=t,this.patterns=r,this.formatter=n}attempt(e){if("string"!=typeof e)return this.fallback(e);let t=e.trim(),r={},n=!1;for(let e of this.patterns){let i=t.match(e.regex);if(!i)continue;n=!0;let a=e.handler(i);if(a){for(let[e,t]of Object.entries(a))e in r||void 0===t||(r[e]=t);let e=i.index??0;if(t=(t=t.slice(0,e)+t.slice(e+i[0].length+1)).trim(),this.doneChecker(r,t))break}}return n?this.formatter(r):this.fallback(e)}},D=["year","month","day","hour","minute","second","millisecond","offset"],O={};function j(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 P=[[/([^\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"]],C={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," "],...P],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:P,id:P,fr:[[/(\d{2}) h /,"$1:"],[/(\d{2}) min /,"$1:"],[/(\d{2}) s /,"$1"]]};function k(e,t=o){let r=function(e){var t,r;let n,i,a=O[e];if(a)return a;let o=v.factory(e),s=new E({doneChecker:j,fallback:(t=e,function(e){let r=String(e).slice(0,50);return""===r&&(r="(empty string)"),{invalid:`Unable to parse "${r}" with locale "${t}"`}}),patterns:(n=[{name:"timestampWithOffset",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))? ?(_OFFSET_|Z)?$"),handler:S(["","year","month","day","hour","minute","second","millisecond","offset"])},{name:"timestampWithZone",regex:o.compile("^(_YEAR4_)-(_MONTH_)-(_DAY_)[T ](_H24_):(_MIN_):(_SEC_)(?:.(_MS_))?\\s*(_ZONE_)$"),handler:S(["","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:S(["","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:S(["","year","month","day"])},{name:"korean",regex:o.compile("^(_YEAR_)년\\s*(_MONTH_)월\\s*(_DAY_)일$"),handler:S(["","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:S(["","monthname","day","hour","minute","second","offset","year"])},{name:"today",regex:/\b(now|today|tomorrow|yesterday)\b/i,handler:e=>{let t=x(),r=e[0].toLowerCase(),n={now:0,today:0,tomorrow:864e5,yesterday:-864e5}[r]??0;0!==n&&t.setTime(t.getTime()+n);let i={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()};return"now"===r?{...i,hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:i}},{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,r,n])=>{let i,a=parseFloat(t);"week"===(i=r.length<=2?w[r]:(i=r.replace(/s$/,"")).toLowerCase())&&(i="day",a*=7),("-"===e||n)&&(a*=-1);let o=x();return"millisecond"===i?o.setUTCMilliseconds(o.getUTCMilliseconds()+a):"second"===i?o.setUTCSeconds(o.getUTCSeconds()+a):"minute"===i?o.setUTCMinutes(o.getUTCMinutes()+a):"hour"===i?o.setUTCHours(o.getUTCHours()+a):"day"===i?o.setUTCDate(o.getUTCDate()+a):"month"===i?o.setUTCMonth(o.getUTCMonth()+a):"year"===i&&o.setUTCFullYear(o.getUTCFullYear()+a),{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:S(["","hour","minute","second","millisecond","zone"])},{name:"zone24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?[\\s\\[(]*(_ZONE_)?[\\s\\])]*$"),handler:S(["","hour","minute","second","millisecond","zone"])},{name:"hms12WithOffset",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)\\s*(_OFFSET_)"),handler:S(["","hour","minute","second","meridiem","offset"])},{name:"hms12",regex:o.compile("(_H12_):(_MIN_):(_SEC_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","second","meridiem"])},{name:"hms24",regex:o.compile("(_H24_):(_MIN_):(_SEC_)(?:\\.(_MS_))?"),handler:S(["","hour","minute","second","millisecond"])},{name:"hm12",regex:o.compile("(_H12_):(_MIN_)\\s*(_MERIDIEM_)"),handler:S(["","hour","minute","meridiem"])},{name:"hm24",regex:o.compile("(_H24_):(_MIN_)"),handler:S(["","hour","minute"])},{name:"h12",regex:o.compile("(_H12_)\\s*(_MERIDIEM_)"),handler:S(["","hour","meridiem"])},{name:"8digit",regex:/^((?:19|20)\d{2})(\d{2})(\d{2})$/,handler:S(["","year","month","day"])},{name:"yearMonthnameDay",regex:o.compile("(_YEAR4_)[\\s.-]+(_MONTHNAME_)[\\s,.-]+(_DAY_)(_ORDINAL_)?"),handler:S(["","year","monthname","day"])},{name:"dayMonthnameYear",regex:o.compile("(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)[\\s,.-]+(_YEAR_)"),handler:S(["","day","","monthname","year"])},{name:"monthnameDayYear",regex:o.compile("(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?[\\s,.-]+(_YEAR_)"),handler:S(["","monthname","day","","year"])},{name:"dayMonthname",regex:o.compile("\\b(_DAY_)(_ORDINAL_)?[\\s.-]*(_MONTHNAME_)\\b"),handler:S(["","day","","monthname"])},{name:"monthnameDay",regex:o.compile("\\b(_MONTHNAME_)[\\s.-]*(_DAY_)(_ORDINAL_)?\\b"),handler:S(["","monthname","day"])},{name:"hmsNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_):(_SEC_)\\b"),handler:S(["","hour","minute","second"])},{name:"hmNoMeridiem",regex:o.compile("\\b(_H12_|_H24_):(_MIN_)\\b"),handler:S(["","hour","minute"])},{name:"ymd",regex:o.compile("(_YEAR4_)([./-])(_MONTH_)\\2+(_DAY_)"),handler:S(["","year","","month","day"])},{name:"mdy",regex:o.compile("(_MONTH_)([/-])(_DAY_)\\2(_YEAR_)"),handler:S(["","month","","day","year"])},{name:"dmy",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)[./\\s-]+(_YEAR_)"),handler:S(["","day","month","year"])},{name:"yearLoose",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"dayMonthnameLoose",regex:o.compile("(_DAY_)[\\s.]*(_MONTHNAME_)"),handler:S(["","day","monthname"])},{name:"monthnameDayLoose",regex:o.compile("(_MONTHNAME_)[\\s.]*(_DAY_)"),handler:S(["","monthname","day"])},{name:"monthname",regex:o.compile("_MONTHNAME_"),handler:S(["monthname"])},{name:"year4",regex:o.compile("_YEAR4_"),handler:S(["year"])},{name:"md",regex:o.compile("(_MONTH_)[/-](_DAY_)"),handler:S(["","month","day"])},{name:"dm",regex:o.compile("(_DAY_)(?:_ORDINAL_)?[./\\s-]+(_MONTH_)"),handler:S(["","day","month"])},{name:"day",regex:o.compile("_DAY_"),handler:S(["day"])},{name:"year2",regex:o.compile("_YEAR2_"),handler:S(["year"])},{name:"onlyZone",regex:o.compile("_ZONE_"),handler:S(["zone"])},{name:"onlyOffset",regex:o.compile("_OFFSET_"),handler:S(["offset"])}],i=o.baseName.slice(0,5),b.includes(i)?n:n.filter(e=>!["mdy","md"].includes(e.name))),formatter:(r=o,function(e){let t={};for(let[n,i]of Object.entries(e))if("monthname"===n){if(i){let e=r.monthNameToInt(i);void 0!==e&&(t.month=e)}}else if("hour"===n&&e.meridiem){let n=r.h12ToInt(i,e.meridiem);void 0!==n&&(t.hour=n)}else if("zone"===n){if(i){let e=r.zoneToOffset(i);void 0!==e&&(t.offset=e)}}else if("offset"===n){let e=r.offsetToMinutes(i);void 0!==e&&(t.offset=e)}else if("millisecond"===n){let e=r.millisecondToInt(i);"number"==typeof e&&(t.millisecond=e)}else if(D.includes(n)){let e=r.toInt(i);"number"==typeof e&&(t[n]=e)}return void 0!==t.year&&t.year<100&&(t.year=l[String(e.year)]),t.year&&"buddhist"===r.dateOptions.calendar&&(t.year-=543),t})});return O[e]=s,s}(t),n=function(e,t){let r=C[t.slice(0,2).toLowerCase()];if(!r)return e;for(let[t,n]of r)e=e.replace(t,n);return e}(e,t);return r.attempt(n)}function A(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 r=k(e,t),n=r.invalid?new s(NaN):A(r);return n.isValid()||(n.invalid=`Unable to parse date "${e}"`),n}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:A,attempt:k});var R=r(5350),I=r.n(R),M=r(648),_=r(6871),L=r(2147);let F=function(e){return null==e};var B=r(313),V=r(1851);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){W(e,t,r[t])})}return e}function z(e,t){var r=function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return r.get?r.get.call(e):r.value}I().extend(M),I().extend(L),I().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])&&I()(e,H).isValid()}function K(e){return I()(e).isToday()}function Y(e){return G(e)?I()(e,H).toDate():null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=I()(e);return t&&(r=r.utc()),r.format(H)}function q(e){return I()(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,r=X,n={writable:!0,value:new Map};if(r.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");r.set(e,n)}return e=[{key:"register",value:function(e,t){z(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(z(this,X).has(t))return z(this,X).get(t)}if(e.language&&z(this,X).has(e.language))return z(this,X).get(e.language);var r=new Intl.DateTimeFormat(e.toString()).resolvedOptions().calendar;return z(this,X).set("".concat(e.language).concat(e.region?"-".concat(e.region):""),r),r}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}());function J(e,t){Q.register(e,t)}function ee(e){var t,r=null!=e?e:(0,V.J)();return Q.getCalendar((null!=(t=Intl.Locale)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](r):r instanceof t)?r:new Intl.Locale(r))}var et={mode:"standard",time:"for today",day:!0,month:!0,year:!0,noToday:!1};function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=k(e,(0,V.J)());if(r.invalid)return console.warn("Could not parse invalid date '".concat(e,"'")),null;!F(r.day)&&F(r.month)&&(r=Object.assign({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=Object.assign({},(0,B.A)(r,"day"),{date:r.day}));var n=I()().set(r).toDate();return F(r.year)&&(t.year=!1),F(r.month)&&(t.month=!1),F(r.date)&&(t.day=!1),en(n,t)}function en(e,t){var r,n,i=null!=(r=null==t?void 0:t.locale)?r:(0,V.J)(),a=new Intl.Locale(i),o=$({},et,{noToday:"am"===a.language},t),s=o.calendar,l=o.mode,u=o.time,c=o.day,d=o.month,f=o.year,p=o.noToday,h=o.numberingSystem,m={calendar:null!=s?s:ee(a),year:f?"numeric":void 0,month:d?"short":void 0,day:c?"2-digit":void 0,numberingSystem:h},y=I()(e).isToday();if(y&&!p)n=(n=new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(i)+n.slice(1);else{"en"===a.language&&(i="en-GB");var g=new Intl.DateTimeFormat(i,m).formatToParts(e);("en"===a.language||"am"===a.language)&&"standard"==l&&f&&c&&(g=g.map(ei("-"))),"wide"==l&&(g=g.map(ei(" — "))),"ethiopic"===m.calendar&&(g=g.filter(function(e,t,r){return"era"!==e.type&&("literal"!==e.type||!(t<r.length-1)||"era"!==r[t+1].type)})),n=g.map(function(e){return e.value}).join("")}return(!0===u||y&&"for today"===u)&&(n+=", ".concat(ea(e))),n}var ei=function(e){return function(t,r,n){return"literal"!==t.type||" "!==t.value||r<n.length-1&&"era"===n[r+1].type?t:{type:"literal",value:e}}};function ea(e){return e.toLocaleTimeString((0,V.J)(),{hour:"2-digit",minute:"2-digit"})}function eo(e,t){var r,n;return en(e,(r=$({},t),n=n={time:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r))}function es(e,t){var r=ee("string"==typeof t?new Intl.Locale(t):t);return r?(0,i.yP)(e,(0,a.d)(r)):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 r=k(e,(0,V.J)());return r.invalid?(console.warn("Could not interpret '".concat(e,"' as a date")),null):(r.day&&!r.month&&(r=$({},(0,B.A)(r,"day"),{month:r.day})),r.month&&(r.month-=1),r.day&&(r=$({},(0,B.A)(r,"day"),{date:r.day})),I()(t).set(r))}return I()(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 eh(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I()(),n=arguments.length>2?arguments[2]:void 0,i=I()(r),a=eu(e,i);if(null==a)return null;if("string"==typeof n){var o=ef(n);return W({},o,i.diff(a,o))}var s=null!=n?n:{},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,r){for(var n=ec.indexOf(r),i=0;i<ec.length;i++){var a=ec[i];if(t.diff(e,a)>0)return i<=n?a:r}return r}(a,i,null!=f?f:"seconds"):ef(u),function(e,t,r,n){var i=ec.indexOf(r),a=ec.indexOf(n),o=ec.slice(i,a+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 h=f.value,m=t.diff(l,h);s[h]=m,l=l.add(m,h)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return s}(a,i,d,null!=f?f:d)}var p=(t=function(e){var t=$({},ep);if(e){var r=!0,n=!1,i=void 0;try{for(var a,o=Object.entries(e)[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s,l=(s=a.value,function(e){if(Array.isArray(e))return e}(s)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(s)||function(e){if(e){if("string"==typeof e)return U(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 U(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){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}return t}(l),i.diff(a,"seconds")<t.seconds?"seconds":i.diff(a,"minutes")<t.minutes?"minutes":i.diff(a,"hours")<t.hours?"hours":i.diff(a,"days")<t.days?"days":i.diff(a,"months")<t.months?"months":"years");return W({},p,i.diff(a,p))}var em={style:"short",localeMatcher:"lookup"};function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I()(),r=arguments.length>2?arguments[2]:void 0,n=eh(e,t,r);return null==n?null:el(n,(void 0===r?"undefined":r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&r.formatOptions?$({},em,r.formatOptions):em)}},1851(e,t,r){"use strict";function n(){var e=window.i18next.language;return"ht"===(e=e.replaceAll("_","-"))&&(e="fr-HT"),e}r.d(t,{J:()=>n})},7184(e,t,r){"use strict";r.d(t,{g2:()=>a.g2,bN:()=>b.b,JK:()=>l.J,a3:()=>a.a3,LW:()=>a.LW,MS:()=>m,He:()=>f,rX:()=>O,L8:()=>a.L8,VO:()=>v,QC:()=>h,_U:()=>a._U,kQ:()=>a.kQ,qE:()=>a.qE,KW:()=>s,pf:()=>a.pf,kd:()=>function e(t){var r={},n=!0,i=!1,a=void 0;try{for(var o,s=Object.keys(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;if(x(t[l])&&t[l].hasOwnProperty("_default"))r[l]=t[l]._default;else{if(l.startsWith("_"))continue;x(t[l])?r[l]=e(t[l]):r[l]=t[l]}}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r},L5:()=>k,XE:()=>a.XE,Qr:()=>y,_g:()=>w,a7:()=>a.a7,sc:()=>u.s,w7:()=>d,L3:()=>a.L3,Yq:()=>a.Yq,fU:()=>a.fU,qK:()=>g,d4:()=>a.d4,Cy:()=>o,p0:()=>a.p0,Vp:()=>p,Rt:()=>a.Rt});var n=r(5350),i=r.n(n),a=r(3903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=i()(t),n=(0,a.qE)(e,r);if(null==n)return null;var o=r.diff(n,"hours"),s=r.diff(n,"days"),l=r.diff(n,"weeks"),u=r.diff(n,"months"),c=r.diff(n,"years"),d={};if(o<2)d.minutes=r.diff(n,"minutes");else if(s<2)d.hours=o;else if(l<4)d.days=s;else if(c<1){var f=r.subtract(l,"weeks").diff(n,"days");d.weeks=l,d.days=f}else if(c<2){var p=r.subtract(u,"months").diff(n,"days");d.months=u,d.days=p}else if(c<18){var h=r.subtract(c,"year").diff(n,"months");d.years=c,d.months=h}else d.years=c;return d}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=o(e,t);if(null==r)return null;var n={style:"short",localeMatcher:"lookup"};return"minutes"in r&&0===r.minutes&&(n.minutesDisplay="always"),(0,a.a3)(r,n)}var l=r(1851),u=r(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,r){if(null==e)return r;var n=c(e);if(!n)return console.warn("matchLocale: invalid requested locale tag: ".concat(JSON.stringify(e))),r;var i=[],a=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value,f=c(d);if(!f){console.warn("matchLocale: skipping invalid available locale tag: ".concat(JSON.stringify(d)));continue}i.push({canonical:f,original:d})}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}for(var p=n;p;){var h=function(){var e=i.find(function(e){return e.canonical===p});if(e)return{v:e.original};var t=p+"-",r=i.find(function(e){return e.canonical.startsWith(t)});if(r)return{v:r.original};if("ht"===p)return p="fr-HT","continue";var n=p.lastIndexOf("-");if(-1===n)return"break";var a=(p=p.slice(0,n)).lastIndexOf("-");-1!==a&&p.length-a==2&&(p=p.slice(0,a))}();if("object"==(h&&"u">typeof Symbol&&h.constructor===Symbol?"symbol":typeof h))return h.v;if("break"===h)break}return r}function f(e){return m(v(e,"usual","official"))}function p(e){return f(e)}function h(e){return f(e)}function m(e){var t,r,n,i;return e?null!=(t=e.text)?t:(i=null!=(n=(r=e).given)?n:[],(r.family?i.concat(r.family):i).join(" ")):""}function y(e){return m(e)}function g(e){return m(e)}function v(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];0===r.length&&(r=["usual"]);var i=!0,a=!1,o=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=function(){var t,r=s.value,n=null==(t=e.name)?void 0:t.find(function(e){var t,n;return t=e,n=r,t.use?t.use===n:"usual"===n});if(n)return{v:n}}();if("object"==(u&&"u">typeof Symbol&&u.constructor===Symbol?"symbol":typeof u))return u.v}}catch(e){a=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}}var b=r(8254);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.localStorage;try{return e.getItem("test"),!0}catch(e){return!1}}function x(e){return!!e&&e.constructor===Object}var S=r(8164);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){var t,r=function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),3!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(t)||function(e){if(e){if("string"==typeof e)return E(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 E(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.")}(),n=r[0],i=r[1],a=r[2];return"".concat(n,".").concat(i,".").concat(a)}function O(e,t){var r=function(e){var t=e.indexOf("-");if(t>=0){var r=D(e.slice(0,t)),n=e.slice(t+1);return"".concat(r,"-").concat(n)}return D(e)}(t);return S.satisfies(r,e,{includePrerelease:!0})}function j(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function P(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){j(a,n,i,o,s,"next",e)}function s(e){j(a,n,i,o,s,"throw",e)}o(void 0)})}}function C(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function k(e){return P(function(e){var t,r,n,i,a,o,s,l=arguments;return C(this,function(u){switch(u.label){case 0:r=(t=l.length>1&&void 0!==l[1]?l[1]:{}).shouldRetry,n=t.getDelay,i=t.onError,r=null!=r?r:function(e){return e<=5},n=null!=n?n:function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t*Math.pow(2,r?e+1:e)}(e,1e3)},a=0,o=void 0,u.label=1;case 1:var c;return u.trys.push([1,4,,5]),[4,(c=n(a),P(function(){return C(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==i||i(s,a),o=s,[3,5];case 5:if(r(a++))return[3,1];u.label=6;case 6:throw o}})}).apply(this,arguments)}}}]);
|