tocco-widget-bundle 3.11.76 → 3.11.77
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 +3 -0
- package/dist/address-update.js +1 -1
- package/dist/docs-browser.js +1 -1
- package/dist/education-portfolio.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/entity-dms.js +1 -1
- package/dist/evaluation-execution-participation.js +1 -1
- package/dist/event-registration.js +1 -1
- package/dist/freemarker-code.js +1 -1
- package/dist/function-mutation.js +1 -1
- package/dist/job-application.js +1 -1
- package/dist/login.js +1 -1
- package/dist/mailing-list.js +1 -1
- package/dist/membership-registration.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/personal-dms.js +1 -1
- package/dist/public-dms.js +1 -1
- package/dist/sso-login.js +1 -1
- package/dist/stint-auction.js +1 -1
- package/dist/user-availability.js +1 -1
- package/dist/user-grades.js +1 -1
- package/dist/user-menu.js +1 -1
- package/dist/wage-view.js +1 -1
- package/package.json +1 -1
package/dist/address-update.js
CHANGED
|
@@ -75,7 +75,7 @@ var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hre
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},79308:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)},c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}const l=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return u(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function f(e){return 14+(e+64>>>9<<4)+1}function p(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return p((a=p(p(t,e),p(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,c=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=y(n,r,o,i,e[t+5],4,-378558),i=y(i,n,r,o,e[t+8],11,-2022574463),o=y(o,i,n,r,e[t+11],16,1839030562),r=y(r,o,i,n,e[t+14],23,-35309556),n=y(n,r,o,i,e[t+1],4,-1530992060),i=y(i,n,r,o,e[t+4],11,1272893353),o=y(o,i,n,r,e[t+7],16,-155497632),r=y(r,o,i,n,e[t+10],23,-1094730640),n=y(n,r,o,i,e[t+13],4,681279174),i=y(i,n,r,o,e[t],11,-358537222),o=y(o,i,n,r,e[t+3],16,-722521979),r=y(r,o,i,n,e[t+6],23,76029189),n=y(n,r,o,i,e[t+9],4,-640364487),i=y(i,n,r,o,e[t+12],11,-421815835),o=y(o,i,n,r,e[t+15],16,530742520),r=y(r,o,i,n,e[t+2],23,-995338651),n=v(n,r,o,i,e[t],6,-198630844),i=v(i,n,r,o,e[t+7],10,1126891415),o=v(o,i,n,r,e[t+14],15,-1416354905),r=v(r,o,i,n,e[t+5],21,-57434055),n=v(n,r,o,i,e[t+12],6,1700485571),i=v(i,n,r,o,e[t+3],10,-1894986606),o=v(o,i,n,r,e[t+10],15,-1051523),r=v(r,o,i,n,e[t+1],21,-2054922799),n=v(n,r,o,i,e[t+8],6,1873313359),i=v(i,n,r,o,e[t+15],10,-30611744),o=v(o,i,n,r,e[t+6],15,-1560198380),r=v(r,o,i,n,e[t+13],21,1309151649),n=v(n,r,o,i,e[t+4],6,-145523070),i=v(i,n,r,o,e[t+11],10,-1120210379),o=v(o,i,n,r,e[t+2],15,718787259),r=v(r,o,i,n,e[t+9],21,-343485551),n=p(n,a),r=p(r,s),o=p(o,c),i=p(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(f(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=x(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=x(o,5)+O(n,a,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=x(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},46255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},69517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,s.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var w=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var O=(w=w.toLowerCase()).split("+")[0];if(!(0,o.default)(O.replace(/\./g,""),{min:6,max:30}))return!1;for(var x=O.split("."),k=0;k<x.length;k++)if(!f.test(x[k]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(w,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var S=v.slice(1,-1);if(0===S.length||!(0,a.default)(S))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?m.test(w):p.test(w);for(var E=t.allow_utf8_local_part?h:d,j=w.split("."),D=0;D<j.length;D++)if(!E.test(j[D]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(83399)),o=c(n(46255)),i=c(n(57658)),a=c(n(35372)),s=c(n(93610));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},57658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(83399)),o=i(n(93610));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},35372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},77844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(x,k)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(x,k)||function(){throw new 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],O=b[1];if(""===w&&""===O)return!1}var x,k;p=g.join("@"),m=null,y=null;var S=p.match(l);S?(f="",y=S[1],m=S[2]||null):(f=(g=p.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||y&&(0,i.default)(y,6)))return!1;if(f=f||y,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(83399)),o=s(n(57658)),i=s(n(35372)),a=s(n(93610));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},83399:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},93610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},4883:t=>{"use strict";t.exports=e},81845:e=>{"use strict";e.exports=t},4633:(e,t,n)=>{var r=n(73738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new P(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function m(){}function g(){}function y(){}var v={};d(v,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,c)&&(v=w);var O=y.prototype=m.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,s,c){var u=p(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return g.prototype=y,a(O,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:g,configurable:!0}),g.displayName=d(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(O),d(O,l,"Generator"),d(O,c,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>v,batch:()=>Se,connect:()=>ve,createDispatchHook:()=>xe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>Oe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),y=typeof globalThis<"u"?globalThis:{};var v=function(){if(!m.createContext)return{};let e=y[g]??(y[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=v){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=v){let t=e===v?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=x(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),j=Symbol.for("react.element"),D=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.context"),M=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),W=R;function B(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case j:{let n=e.type;switch(n){case P:case A:case _:case N:case F:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case C:case I:case L:case R:case T:return e;default:return t}}}}case D:return t}}}(e)===R}function V(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function U(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function z(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function Y(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=z(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=z(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function Q(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var X=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=X||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[W]:oe};function ae(e){return B(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ye(e,t){return e===t}var ve=function(e,t,n,{pure:r,areStatesEqual:o=ye,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=v}={}){let l=u,d=function(e){return e?"function"==typeof e?Y(e):q(e,"mapStateToProps"):U((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?U((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?Y(e):q(e,"mapDispatchToProps"):U((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return V(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,y]=m.useMemo((()=>{if(!h)return me;let e=Q(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(),w=m.useRef(i),O=m.useRef(),x=m.useRef(!1),k=m.useRef(!1),S=m.useRef();J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,j=m.useMemo((()=>()=>O.current&&i===w.current?O.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,x,k,O,y,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,x,i,O,y]);try{E=he(D,j,f?()=>p(f(),i):j)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,O.current=void 0,b.current=E}));let P=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:v},P):P),[a,P,v])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=Q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||v).Provider,{value:a},n)};function we(e=v){let t=e===v?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Oe=we();function xe(e=v){let t=e===v?Oe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=xe(),Se=K;(e=>{x=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},96274:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},53986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},50388:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96369);var o=n(27800),i=n(76562);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},57528:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(43145);var o=n(96274),i=n(27800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e,t){if("object"!==(0,r.A)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.A)(t)?t:String(t)}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},50622:(e,t,n)=>{"use strict";function r(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{F:()=>r})},18621:(e,t,n)=>{"use strict";n.d(t,{q:()=>r.c});var r=n(44985)},82695:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},69021:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(50622);const o={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.F)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.F)(n+1,2)},d:(e,t)=>(0,r.F)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.F)(e.getHours(),t.length),m:(e,t)=>(0,r.F)(e.getMinutes(),t.length),s:(e,t)=>(0,r.F)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,n-3));return(0,r.F)(i,t.length)}}},36847:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return r(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(i,t)).replace("{{time}}",o(a,t))}}},40215:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(2642);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},76992:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,ef:()=>a,xM:()=>s});const r=/^D+$/,o=/^Y+$/,i=["D","DD","YY","YYYY"];function a(e){return r.test(e)}function s(e){return o.test(e)}function c(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),i.includes(e))throw new RangeError(r)}},2940:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>i,_m:()=>s,my:()=>r,s0:()=>a,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,i=6e4,a=36e5,s=1e3},35840:(e,t,n)=>{"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{w:()=>r})},20514:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(2940),o=n(51730),i=n(40215);function a(e,t){const n=(0,o.o)(e),a=(0,o.o)(t),s=+n-(0,i.G)(n),c=+a-(0,i.G)(a);return Math.round((s-c)/r.w4)}},36126:(e,t,n)=>{"use strict";n.d(t,{GP:()=>T});var r=n(18621),o=n(82695),i=n(73875),a=n(6514),s=n(65961),c=n(70175),u=n(29220),l=n(50622),d=n(69021);const f="midnight",p="noon",h="morning",m="afternoon",g="evening",y="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return d.C.y(e,t)},Y:function(e,t,n,r){const o=(0,u.h)(e,r),i=o>0?o:1-o;if("YY"===t){const e=i%100;return(0,l.F)(e,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.F)(i,t.length)},R:function(e,t){const n=(0,s.p)(e);return(0,l.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return d.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,c.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.F)(o,t.length)},I:function(e,t,n){const r=(0,a.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):d.C.d(e,t)},D:function(e,t,n){const r=(0,i.F)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.F)(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.F)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.F)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.F)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?p:0===r?f:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?g:r>=12?m:r>=4?h:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return d.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):d.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):d.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):d.C.s(e,t)},S:function(e,t){return d.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return O(r);default:return O(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return O(r);default:return O(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.F)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.F)(r,t.length)}};function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+(0,l.F)(i,2)}function w(e,t){if(e%60==0){return(e>0?"-":"+")+(0,l.F)(Math.abs(e)/60,2)}return O(e,t)}function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.F)(Math.trunc(r/60),2)+t+(0,l.F)(r%60,2)}var x=n(36847),k=n(76992),S=n(71649),E=n(2642);const j=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P=/^'([^]*?)'?$/,_=/''/g,A=/[a-zA-Z]/;function T(e,t,n){const i=(0,o.q)(),a=n?.locale??i.locale??r.q,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=(0,E.a)(e);if(!(0,S.f)(u))throw new RangeError("Invalid time value");let l=t.match(D).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,x.m[t])(e,a.formatLong)}return e})).join("").match(j).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:C(e)};if(v[t])return{isToken:!0,value:e};if(t.match(A))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const d={firstWeekContainsDate:s,weekStartsOn:c,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,k.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,k.ef)(o))&&(0,k.Ss)(o,t,String(e));return(0,v[o[0]])(u,o,a.localize,d)})).join("")}function C(e){const t=e.match(P);return t?t[1].replace(_,"'"):e}},73875:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(20514),o=n(16823),i=n(2642);function a(e){const t=(0,i.a)(e);return(0,r.m)(t,(0,o.D)(t))+1}},6514:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(2940),o=n(83787),i=n(7848),a=n(2642);function s(e){const t=(0,a.a)(e),n=+(0,o.b)(t)-+(0,i.w)(t);return Math.round(n/r.my)+1}},65961:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(35840),o=n(83787),i=n(2642);function a(e){const t=(0,i.a)(e),n=t.getFullYear(),a=(0,r.w)(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=(0,o.b)(a),c=(0,r.w)(e,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const u=(0,o.b)(c);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},70175:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(2940),o=n(92528),i=n(65563),a=n(2642);function s(e,t){const n=(0,a.a)(e),s=+(0,o.k)(n,t)-+(0,i.b)(n,t);return Math.round(s/r.my)+1}},29220:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(35840),o=n(92528),i=n(2642),a=n(82695);function s(e,t){const n=(0,i.a)(e),s=n.getFullYear(),c=(0,a.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,r.w)(e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,o.k)(l,t),f=(0,r.w)(e,0);f.setFullYear(s,0,u),f.setHours(0,0,0,0);const p=(0,o.k)(f,t);return n.getTime()>=d.getTime()?s+1:n.getTime()>=p.getTime()?s:s-1}},131:(e,t,n)=>{"use strict";n.d(t,{fij:()=>i,GPZ:()=>p.GP,qZx:()=>g,Osm:()=>b,SyE:()=>w,uv4:()=>ke,qgA:()=>xe,Hle:()=>Se,avh:()=>Me,$7z:()=>Ie,glI:()=>Ne,gtt:()=>Fe,ol1:()=>s.o});var r=n(2642),o=n(35840);function i(e,t){const n=(0,r.a)(e);return isNaN(t)?(0,o.w)(e,NaN):t?(n.setDate(n.getDate()+t),n):n}var a=n(2940);n(65961),n(20514),n(7848);var s=n(51730);var c=n(71649);var u=n(83787),l=n(40215);var d=n(92528);n(16823);var f=n(82695);var p=n(36126),h=n(18621);n(50622);n(73875);function m(){return Object.assign({},(0,f.q)())}function g(e){return(0,r.a)(e).getHours()}function y(e){let t=(0,r.a)(e).getDay();return 0===t&&(t=7),t}var v=n(6514);function b(e){return(0,r.a)(e).getMinutes()}function w(e){return(0,r.a)(e).getSeconds()}var O=n(70175);var x=n(29220);n(32833);var k=n(36847),S=n(76992);function E(e,t){const n=t instanceof Date?(0,o.w)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class j{subPriority=0;validate(e,t){return!0}}class D extends j{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class P extends j{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,o.w)(e,E(e,Date))}}class _{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new D(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const A=/^(1[0-2]|0?\d)/,T=/^(3[0-1]|[0-2]?\d)/,C=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,M=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,N=/^(2[0-4]|[0-1]?\d)/,F=/^(1[0-1]|0?\d)/,R=/^(1[0-2]|0?\d)/,L=/^[0-5]?\d/,H=/^[0-5]?\d/,W=/^\d/,B=/^\d{1,2}/,V=/^\d{1,3}/,U=/^\d{1,4}/,z=/^-?\d+/,Y=/^-?\d/,q=/^-?\d{1,2}/,G=/^-?\d{1,3}/,K=/^-?\d{1,4}/,$=/^([+-])(\d{2})(\d{2})?|Z/,Q=/^([+-])(\d{2})(\d{2})|Z/,X=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(e,t){return e?{value:t(e.value),rest:e.rest}:e}function te(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ne(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*a.s0+i*a.Cg+s*a._m),rest:t.slice(n[0].length)}}function re(e){return te(z,e)}function oe(e,t){switch(e){case 1:return te(W,t);case 2:return te(B,t);case 3:return te(V,t);case 4:return te(U,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function ie(e,t){switch(e){case 1:return te(Y,t);case 2:return te(q,t);case 3:return te(G,t);case 4:return te(K,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ae(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function ce(e){return e%400==0||e%4==0&&e%100!=0}function ue(e,t,n){const o=(0,r.a)(e),i=(0,O.N)(o,n)-t;return o.setDate(o.getDate()-7*i),o}function le(e,t){const n=(0,r.a)(e),o=(0,v.s)(n)-t;return n.setDate(n.getDate()-7*o),n}const de=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e,t,n){const o=(0,f.q)(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=(0,r.a)(e),c=s.getDay(),u=7-a;return i(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7)}function he(e,t){const n=(0,r.a)(e);return i(n,t-y(n))}const me={G:new class extends _{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends _{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return ee(oe(4,e),r);case"yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=se(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends _{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return ee(oe(4,e),r);case"Yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,x.h)(e,r);if(n.isTwoDigitYear){const t=se(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends _{priority=130;parse(e,t){return ie("R"===t?4:t.length,e)}set(e,t,n){const r=(0,o.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,u.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends _{priority=130;parse(e,t){return ie("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends _{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return oe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends _{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return oe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends _{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return ee(te(A,e),r);case"MM":return ee(oe(2,e),r);case"Mo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends _{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return ee(te(A,e),r);case"LL":return ee(oe(2,e),r);case"Lo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends _{priority=100;parse(e,t,n){switch(t){case"w":return te(M,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,d.k)(ue(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends _{priority=100;parse(e,t,n){switch(t){case"I":return te(M,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,u.b)(le(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends _{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return te(T,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){const n=ce(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=fe[r]:t>=1&&t<=de[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends _{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return te(C,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){return ce(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends _{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends _{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ee(oe(t.length,e),o);case"eo":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends _{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ee(oe(t.length,e),o);case"co":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends _{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return oe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ee(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ee(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ee(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ee(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=he(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends _{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends _{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends _{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends _{priority=70;parse(e,t,n){switch(t){case"h":return te(R,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends _{priority=70;parse(e,t,n){switch(t){case"H":return te(I,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends _{priority=70;parse(e,t,n){switch(t){case"K":return te(F,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends _{priority=70;parse(e,t,n){switch(t){case"k":return te(N,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends _{priority=60;parse(e,t,n){switch(t){case"m":return te(L,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends _{priority=50;parse(e,t,n){switch(t){case"s":return te(H,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends _{priority=30;parse(e,t){return ee(oe(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends _{priority=10;parse(e,t){switch(t){case"X":return ne($,e);case"XX":return ne(Q,e);case"XXXX":return ne(X,e);case"XXXXX":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.w)(e,e.getTime()-(0,l.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends _{priority=10;parse(e,t){switch(t){case"x":return ne($,e);case"xx":return ne(Q,e);case"xxxx":return ne(X,e);case"xxxxx":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.w)(e,e.getTime()-(0,l.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends _{priority=40;parse(e){return re(e)}set(e,t,n){return[(0,o.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends _{priority=20;parse(e){return re(e)}set(e,t,n){return[(0,o.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ve=/^'([^]*?)'?$/,be=/''/g,we=/\S/,Oe=/[a-zA-Z]/;function xe(e,t,n,i){const a=m(),s=i?.locale??a.locale??h.q,c=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.a)(n):(0,o.w)(n,NaN);const l={firstWeekContainsDate:c,weekStartsOn:u,locale:s},d=[new P],f=t.match(ye).map((e=>{const t=e[0];if(t in k.m){return(0,k.m[t])(e,s.formatLong)}return e})).join("").match(ge),p=[];for(let r of f){!i?.useAdditionalWeekYearTokens&&(0,S.xM)(r)&&(0,S.Ss)(r,t,e),!i?.useAdditionalDayOfYearTokens&&(0,S.ef)(r)&&(0,S.Ss)(r,t,e);const a=r[0],c=me[a];if(c){const{incompatibleTokens:t}=c;if(Array.isArray(t)){const e=p.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===c.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);p.push({token:a,fullToken:r});const i=c.run(e,r,s.match,l);if(!i)return(0,o.w)(n,NaN);d.push(i.setter),e=i.rest}else{if(a.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===r?r="'":"'"===a&&(r=r.match(ve)[1].replace(be,"'")),0!==e.indexOf(r))return(0,o.w)(n,NaN);e=e.slice(r.length)}}if(e.length>0&&we.test(e))return(0,o.w)(n,NaN);const g=d.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>d.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let y=(0,r.a)(n);if(isNaN(y.getTime()))return(0,o.w)(n,NaN);const v={};for(const e of g){if(!e.validate(y,l))return(0,o.w)(n,NaN);const t=e.set(y,v,l);Array.isArray(t)?(y=t[0],Object.assign(v,t[1])):y=t}return(0,o.w)(n,y)}function ke(e,t,n){return(0,c.f)(xe(e,t,new Date,n))}n(18979);n(69021);function Se(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(Ee.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ee.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ee.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=Ee.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(je);if(!n)return new Date(NaN);const r=!!n[4],o=_e(n[1]),i=_e(n[2])-1,a=_e(n[3]),s=_e(n[4]),c=_e(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Te[t]||(Ce(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Ce(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s,c=0;if(r.time&&(c=function(e){const t=e.match(De);if(!t)return NaN;const n=Ae(t[1]),r=Ae(t[2]),o=Ae(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*a.s0+r*a.Cg+1e3*o}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){const e=new Date(i+c),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return s=function(e){if("Z"===e)return 0;const t=e.match(Pe);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*a.s0+o*a.Cg)}(r.timezone),isNaN(s)?new Date(NaN):new Date(i+c+s)}const Ee={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},je=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,De=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Pe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _e(e){return e?parseInt(e):1}function Ae(e){return e&&parseFloat(e.replace(",","."))||0}const Te=[31,null,31,30,31,30,31,31,30,31,30,31];function Ce(e){return e%400==0||e%4==0&&e%100!=0}function Me(e,t){const n=(0,r.a)(e);return n.setHours(t),n}function Ie(e,t){const n=(0,r.a)(e);return n.setMilliseconds(t),n}function Ne(e,t){const n=(0,r.a)(e);return n.setMinutes(t),n}function Fe(e,t){const n=(0,r.a)(e);return n.setSeconds(t),n}n(65563)},32833:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},18979:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(92528);function o(e,t,n){return+(0,r.k)(e,n)==+(0,r.k)(t,n)}},71649:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(32833),o=n(2642);function i(e){if(!(0,r.$)(e)&&"number"!=typeof e)return!1;const t=(0,o.a)(e);return!isNaN(Number(t))}},67404:(e,t,n)=>{"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},59574:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},98094:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},21296:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},44985:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=n(67404);const i={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(59574);const c={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,s.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var u=n(98094);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:c,match:{ordinalNumber:(0,n(21296).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},51730:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(2642);function o(e){const t=(0,r.a)(e);return t.setHours(0,0,0,0),t}},83787:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(92528);function o(e){return(0,r.k)(e,{weekStartsOn:1})}},7848:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(65961),o=n(83787),i=n(35840);function a(e){const t=(0,r.p)(e),n=(0,i.w)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.b)(n)}},92528:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2642),o=n(82695);function i(e,t){const n=(0,o.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.a)(e),s=a.getDay(),c=(s<i?7:0)+s-i;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},65563:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(35840),o=n(29220),i=n(92528),a=n(82695);function s(e,t){const n=(0,a.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,o.h)(e,t),u=(0,r.w)(e,0);u.setFullYear(c,0,s),u.setHours(0,0,0,0);return(0,i.k)(u,t)}},16823:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(2642),o=n(35840);function i(e){const t=(0,r.a)(e),n=(0,o.w)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},2642:(e,t,n)=>{"use strict";function r(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}n.d(t,{a:()=>r})}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{95:"88ec5a0a0b8e2b67ce79",103:"9af724ec59b22c20c519",222:"ddd9949941c66d878998",262:"44714c4b0d9f71d184b8",310:"6198010bbf680a7c569c",389:"cc96c878df6df1eeae1f",672:"e6ffa6e7fb3d26ee06fb",722:"6f64bb758a3268023156",916:"c2503b97fe2116e031a1"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={561:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>Ule});var e={};c.r(e),c.d(e,{ACTION_INVOKE:()=>XB,ACTION_INVOKED:()=>JB,ACTION_IN_PROGRESS:()=>ZB,actionInvoke:()=>eV,actionInvoked:()=>tV});var t={};c.r(t),c.d(t,{focusErrorField:()=>XQ,focusField:()=>$Q,formInitialValueSelector:()=>KQ,getCurrentEntityState:()=>eX,getEntityForSubmit:()=>tX,getFormErrors:()=>QQ,handleInvalidForm:()=>JQ,handleSubmitError:()=>nX,touchAllFields:()=>ZQ});var n={};c.r(n),c.d(n,{asyncValidationStop:()=>lX,autoComplete:()=>aX,default:()=>iX,loadFormValues:()=>uX,onChange:()=>sX,onRegister:()=>cX});var r={};c.r(r),c.d(r,{createAction:()=>PJ,createCustomComponent:()=>AJ,createFieldSet:()=>DJ,createLayoutComponent:()=>_J});var o={};c.r(o),c.d(o,{createAction:()=>PJ,createCustomComponent:()=>AJ,createFieldSet:()=>DJ,createLayoutComponent:()=>TJ});var i={};c.r(i),c.d(i,{useAsyncValidation:()=>W0,useFormEvents:()=>B0,useSyncValidation:()=>H0});var a={};c.r(a),c.d(a,{FIRE_TOUCHED:()=>Pae,FORM_SUBMISSION_FAILED:()=>Fae,FORM_SUBMITTED:()=>Rae,LOAD_DETAIL_VIEW:()=>Oae,NAVIGATE_TO_ACTION:()=>Mae,NAVIGATE_TO_CREATE:()=>Tae,SET_ENTITY:()=>kae,SET_ENTITY_MODEL:()=>jae,SET_FIELD_DEFINITIONS:()=>Cae,SET_FORM_DEFINITION:()=>xae,SET_LAST_SAVE:()=>Eae,SET_MARKED:()=>Nae,SET_TOUCHED:()=>_ae,SUBMIT_FORM:()=>Sae,TOUCH_ALL_FIELDS:()=>Aae,UNLOAD_DETAIL_VIEW:()=>Dae,UPDATE_MARKED:()=>Iae,fireTouched:()=>Yae,loadDetailView:()=>Lae,navigateToAction:()=>Qae,navigateToCreate:()=>Kae,setEntity:()=>Wae,setEntityModel:()=>Uae,setFieldDefinitions:()=>$ae,setFormDefinition:()=>Hae,setFormSubmissionFailed:()=>Jae,setFormSubmitted:()=>ese,setLastSave:()=>Vae,setMarked:()=>Zae,setTouched:()=>qae,submitForm:()=>Bae,touchAllFields:()=>Gae,unloadDetailView:()=>zae,updateMarked:()=>Xae});var s=c(5556),l=c.n(s),d=c(54756),f=c.n(d),p=function(e){return"@@redux-saga/"+e},h=p("CANCEL_PROMISE"),m=p("CHANNEL_END"),g=p("IO"),y=p("MATCH"),v=p("MULTICAST"),b=p("SAGA_ACTION"),w=p("SELF_CANCELLATION"),O=p("TASK"),x=p("TASK_CANCEL"),k=p("TERMINATE"),S=p("LOCATION");function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}var j=function(e){return null==e},D=function(e){return null!=e},P=function(e){return"function"==typeof e},_=function(e){return"string"==typeof e},A=Array.isArray,T=function(e){return e&&P(e.then)},C=function(e){return e&&P(e.next)&&P(e.throw)},M=function e(t){return t&&(_(t)||F(t)||P(t)||A(t)&&t.every(e))},I=function(e){return e&&P(e.take)&&P(e.close)},N=function(e){return P(e)&&e.hasOwnProperty("toString")},F=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},R=function(e){return I(e)&&e[v]};const L=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[h]=function(){clearTimeout(n)},r};var H=function(e){return function(){return e}},W=H(!0),B=function(){};var V=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var U=function(e,t){E(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function z(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Y(e){var t=!1;return function(){t||(t=!0,e())}}var q=function(e){throw e},G=function(e){return{value:e,done:!0}};function K(e,t,n){void 0===t&&(t=q),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:G,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function $(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Q=function(e){return Array.apply(null,new Array(e))},X=function(e){return function(t){return e(Object.defineProperty(t,b,{value:!0}))}},Z=function(e){return e===k},J=function(e){return e===x},ee=function(e){return Z(e)||J(e)};function te(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=A(e)?Q(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||ee(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=B,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function ne(e){return{name:e.name||"anonymous",location:re(e)}}function re(e){return e[S]}function oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var ie={isEmpty:W,put:B,take:B};function ae(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var se=function(){return ie},ce=function(e){return ae(e,4)},ue="TAKE",le="PUT",de="ALL",fe="RACE",pe="CALL",he="CPS",me="FORK",ge="JOIN",ye="CANCEL",ve="SELECT",be="ACTION_CHANNEL",we="CANCELLED",Oe="FLUSH",xe="GET_CONTEXT",ke="SET_CONTEXT",Se=function(e,t){var n;return(n={})[g]=!0,n.combinator=!1,n.type=e,n.payload=t,n},Ee=function(e){return Se(me,E({},e.payload,{detached:!0}))};function je(e,t){return void 0===e&&(e="*"),M(e)?(D(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Se(ue,{pattern:e})):R(e)&&D(t)&&M(t)?Se(ue,{channel:e,pattern:t}):I(e)?(D(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Se(ue,{channel:e})):void 0}function De(e,t){return j(t)&&(t=e,e=void 0),Se(le,{channel:e,action:t})}function Pe(e){var t=Se(de,e);return t.combinator=!0,t}function _e(e){var t=Se(fe,e);return t.combinator=!0,t}function Ae(e,t){var n,r=null;return P(e)?n=e:(A(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&_(n)&&P(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(pe,Ae(e,n))}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(me,Ae(e,n))}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ee(Ce.apply(void 0,[e].concat(n)))}function Ie(e){void 0===e&&(e=V);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(ve,{selector:e,args:n})}var Ne=Te.bind(null,L),Fe=function(e){return{done:!0,value:e}},Re={};function Le(e){return I(e)?"channel":N(e)?String(e):P(e)?e.name:String(e)}function He(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Re)return Fe(t);if(n&&!o)throw a=Re,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Re?Fe(t):i}return K(s,(function(e){return s(null,e)}),n)}function We(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:je(e)},s=function(e){return i=e};return He({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:Ce.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Le(e)+", "+t.name+")")}function Be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:je(e)},c=function(e){return{done:!1,value:Ce.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=w),Se(ye,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return He({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+Le(e)+", "+t.name+")")}function Ve(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a,s,c={done:!1,value:je(t)},u={done:!1,value:_e({action:je(t),debounce:Ne(e)})},l=function(e){return a=e},d=function(e){return s=e};return He({q1:function(){return{nextState:"q2",effect:c,stateUpdater:l}},q2:function(){return{nextState:"q3",effect:u,stateUpdater:d}},q3:function(){return s.debounce?{nextState:"q1",effect:(t=a,{done:!1,value:Ce.apply(void 0,[n].concat(o,[t]))})}:{nextState:"q2",effect:(e=s.action,{done:!1,value:e}),stateUpdater:l};var e,t}},"q1","debounce("+Le(t)+", "+n.name+")")}function Ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ce.apply(void 0,[We,e,t].concat(r))}function ze(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ce.apply(void 0,[Be,e,t].concat(r))}function Ye(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return Ce.apply(void 0,[Ve,e,t,n].concat(o))}var qe="EMIT_ACTION",Ge="DISPATCH_EMITTED_ACTION",Ke=f().mark($e);function $e(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe([Ue(qe,Qe,e),Ue(Ge,Xe)]);case 2:case"end":return t.stop()}}),Ke)}function Qe(e,t){var n=t.payload;return f().mark((function t(){var r,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,Ie(e);case 3:if(!(o=t.sent)){t.next=7;break}return t.next=7,Te(o,r);case 7:case"end":return t.stop()}}),t)}))()}function Xe(e){var t=e.payload;return f().mark((function e(){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,De(n);case 3:case"end":return e.stop()}}),e)}))()}const Ze={emitAction:function(e){return{type:qe,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:Ge,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run($e,t)}};var Je=c(53986),et=c(64467),tt=c(4883),nt=c.t(tt,2),rt=c.n(tt),ot=c(78418),it=tt,at=Symbol.for("react-redux-context"),st="undefined"!=typeof globalThis?globalThis:{};function ct(){if(!it.createContext)return{};const e=st[at]??(st[at]=new Map);let t=e.get(it.createContext);return t||(t=it.createContext(null),e.set(it.createContext,t)),t}var ut=ct(),lt=()=>{throw new Error("uSES not initialized!")};var dt=Symbol.for("react.element"),ft=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),ht=Symbol.for("react.strict_mode"),mt=Symbol.for("react.profiler"),gt=Symbol.for("react.provider"),yt=Symbol.for("react.context"),vt=Symbol.for("react.server_context"),bt=Symbol.for("react.forward_ref"),wt=Symbol.for("react.suspense"),Ot=Symbol.for("react.suspense_list"),xt=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),St=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),bt),Et=xt;function jt(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case dt:{const n=e.type;switch(n){case pt:case mt:case ht:case wt:case Ot:return n;default:{const e=n&&n.$$typeof;switch(e){case vt:case yt:case bt:case kt:case xt:case gt:return e;default:return t}}}}case ft:return t}}}function Dt(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function Pt(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function _t(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function At(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_t(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=_t(o),o=r(t,n)),o},r}}function Tt(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ct(e,t,n){return{...n,...e,...t}}function Mt(e){e()}var It={notify(){},get:()=>[]};function Nt(e,t){let n,r=It,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Mt((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=It)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Rt="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lt=Ft||Rt?it.useLayoutEffect:it.useEffect;function Ht(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Wt(e,t){if(Ht(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Ht(e[n[r]],t[n[r]]))return!1;return!0}var Bt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ut={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zt={[St]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Et]:Ut};function Yt(e){return function(e){return jt(e)===xt}(e)?Ut:zt[e.$$typeof]||Bt}var qt=Object.defineProperty,Gt=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,$t=Object.getOwnPropertyDescriptor,Qt=Object.getPrototypeOf,Xt=Object.prototype;function Zt(e,t){if("string"!=typeof t){if(Xt){const n=Qt(t);n&&n!==Xt&&Zt(e,n)}let n=Gt(t);Kt&&(n=n.concat(Kt(t)));const r=Yt(e),o=Yt(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(Vt[a]||o&&o[a]||r&&r[a])){const n=$t(t,a);try{qt(e,a,n)}catch(e){}}}}return e}var Jt=lt,en=[null,null];function tn(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function nn(e,t){return e===t}var rn=function(e,t,n,{pure:r,areStatesEqual:o=nn,areOwnPropsEqual:i=Wt,areStatePropsEqual:a=Wt,areMergedPropsEqual:s=Wt,forwardRef:c=!1,context:u=ut}={}){const l=u,d=function(e){return e?"function"==typeof e?At(e):Tt(e,"mapStateToProps"):Pt((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Pt((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?At(e):Tt(e,"mapDispatchToProps"):Pt((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Tt(e,"mergeProps"):()=>Ct}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=it.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=it.useMemo((()=>l),[n,l]),s=it.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=it.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return Dt(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=it.useMemo((()=>{if(!h)return en;const e=Nt(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=it.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),v=it.useRef(),b=it.useRef(i),w=it.useRef(),O=it.useRef(!1),x=it.useRef(!1),k=it.useRef();Lt((()=>(x.current=!0,()=>{x.current=!1})),[]);const S=it.useMemo((()=>()=>w.current&&i===b.current?w.current:p(d.getState(),i)),[d,i]),E=it.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,b,v,O,x,w,g,e):()=>{}),[m]);var j,D,P;let _;j=tn,D=[b,v,O,i,w,g],Lt((()=>j(...D)),P);try{_=Jt(E,S,f?()=>p(f(),i):S)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}Lt((()=>{k.current=void 0,w.current=void 0,v.current=_}));const A=it.useMemo((()=>it.createElement(e,{..._,ref:o})),[o,e,_]);return it.useMemo((()=>h?it.createElement(a.Provider,{value:y},A):A),[a,A,y])}const m=it.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=it.forwardRef((function(e,t){return it.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,Zt(t,e)}return Zt(m,e)}};var on=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=it.useMemo((()=>{const t=Nt(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=it.useMemo((()=>e.getState()),[e]);Lt((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||ut;return it.createElement(c.Provider,{value:a},n)};var an;an=ot.useSyncExternalStoreWithSelector,(e=>{Jt=e})(tt.useSyncExternalStore);var sn=c(57528),cn=c(92648),un=c(43759),ln=c(91907);const dn=function(e){return(0,ln.A)(e)};const fn={shouldForwardProp:function(e,t){return"string"!=typeof t||dn(e)},isPropValid:dn};var pn,hn,mn=c(19230),gn=(0,un.AH)(pn||(pn=(0,sn.A)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,mn.Ed)(),mn.w4.color("text"),mn.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const yn=(0,un.Ay)(cn.N_).withConfig({shouldForwardProp:function(e){return fn.isPropValid(e)||"state"===e}})(hn||(hn=(0,sn.A)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),mn.t7.color("text"),gn);var vn,bn=c(47850),wn=c(74848);function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=(0,tt.lazy)((function(){return c.e(389).then(c.bind(c,68389))}));const Sn=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:vn||(vn=(0,wn.jsx)(rt().Fragment,{})),children:(0,wn.jsx)(kn,xn({},e))})};var En=c(5544);function jn(e,t){var n=(0,tt.useState)(e),r=(0,En.A)(n,2),o=r[0],i=r[1];return(0,tt.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return rt().forwardRef((function(r,o){var i=r.value,a=(0,tt.useState)(i),s=(0,En.A)(a,2),c=s[0],u=s[1],l=jn(c,t),d=(0,En.A)(l,2),f=d[0],p=d[1],h=(0,tt.useRef)(i),m=r[n];return(0,tt.useEffect)((function(){c!==i&&c===f&&(u(i),h.current=i,p(i))}),[i]),(0,tt.useEffect)((function(){m&&h.current!==f&&(m(f),h.current=f)}),[f,m]),(0,wn.jsx)(e,Pn(Pn(Pn({},r),{},{value:c},(0,et.A)({},n,u)),{},{ref:o}))}))};const An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,tt.useEffect)((function(){if(!t.disabled&&e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const Tn=function(){var e=(0,tt.useState)(),t=(0,En.A)(e,2),n=t[0],r=t[1],o=(0,tt.useRef)(),i=(0,tt.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,tt.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,tt.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Cn=function(e){var t=(0,tt.useRef)(null),n=(0,tt.useState)(null),r=(0,En.A)(n,2),o=r[0],i=r[1],a=(0,tt.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,tt.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,tt.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},Mn={useAutofocus:An,useDebounce:jn,Debouncer:_n,useUserActive:Cn,usePrevious:function(e){var t=(0,tt.useRef)();return(0,tt.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,tt.useRef)(!1);(0,tt.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:Tn};var In="visible",Nn="hidden",Fn="responsive",Rn={labelVisibility:Fn},Ln=rt().createContext(Rn);const Hn=function(e){var t=e.children,n=(0,tt.useRef)(null),r=Mn.useResizeObserver(),o=(0,En.A)(r,2),i=o[0],a=o[1],s=n.current?(null==a?void 0:a.width)<n.current:(null==a?void 0:a.height)>45;(0,tt.useEffect)((function(){n.current=s?a.width+1:null}),[s]);var c=(0,tt.useMemo)((function(){return{labelVisibility:s?Nn:In}}),[s]);return(0,wn.jsx)(Ln.Provider,{value:c,children:t(i)})};var Wn,Bn,Vn,Un,zn,Yn,qn,Gn=(0,un.AH)(Un||(Un=(0,sn.A)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),mn.w4.radii("button"),mn.hs.space(-1.38),mn.hs.space(-2.1),mn.hs.space(0),(0,mn.Ed)(),(function(e){return e.withoutBackground?(0,un.AH)(Vn||(Vn=(0,sn.A)(["\n background: transparent;\n"]))):(0,mn.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,un.AH)(Wn||(Wn=(0,sn.A)(["\n line-height: ",";\n padding: "," ",";\n "])),mn.w4.lineHeight("dense")({theme:n}),mn.hs.space(-3.5)({theme:n}),mn.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,un.AH)(Bn||(Bn=(0,sn.A)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===mn.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(Kn," {\n display: none;\n }\n ");return t&&n===Nn?r:t&&n===Fn&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),Kn=un.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(zn||(zn=(0,sn.A)([""]))),$n=un.Ay.button.withConfig({displayName:"StyledButton"})(Yn||(Yn=(0,sn.A)(["\n ","\n"])),Gn),Qn=un.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(qn||(qn=(0,sn.A)(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n\n ",":last-child {\n margin-right: 0;\n }\n"])),mn.hs.space(0),mn.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),$n);const Xn=$n;function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const er=rt().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?mn.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?mn.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,p=e.iconOnly,h=e.children,m=(0,tt.useContext)(Ln).labelVisibility;return(0,wn.jsxs)(Xn,Jn(Jn(Jn({ref:t},n),e),{},{ink:r||mn.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:m,type:f,children:[i&&!a&&(0,wn.jsx)(bn.A,{icon:i}),a&&(0,wn.jsx)(Sn,{ink:r||mn.xX.ink.BASE,look:c,position:l,size:"1em"}),!p&&o?(0,wn.jsx)(Kn,{children:o}):h||""]}))}));var tr;(0,un.Ay)(cn.N_).withConfig({shouldForwardProp:fn.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(tr||(tr=(0,sn.A)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),mn.t7.color("text"),Gn);var nr,rr;const or=un.Ay.button.withConfig({displayName:"StyledButton"})(rr||(rr=(0,sn.A)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,mn.Ed)(),mn.x5,(function(){return(0,un.AH)(nr||(nr=(0,sn.A)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),mn.hs.space(-3),mn.w4.fontSize("base"),mn.w4.lineHeight("regular"),mn.hs.space(-3))}));function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sr=rt().forwardRef((function(e,t){return(0,wn.jsx)(or,ar(ar({ref:t,type:"button"},e),{},{children:(0,wn.jsx)(bn.A,{icon:e.icon})}))}));sr.propTypes={disabled:l().bool,icon:l().string.isRequired,ink:mn.xX.inkPropTypes,look:l().oneOf([mn.xX.look.FLAT,mn.xX.look.RAISED]),onClick:l().func,title:l().string,tabIndex:l().number,"data-cy":l().string};const cr=sr;var ur,lr,dr,fr,pr=c(11843),hr=c(60436),mr=c(49859),gr=c.n(mr),yr=c(52098),vr=c.n(yr),br=c(30115),wr=c.n(br),Or=c(45228),xr=c.n(Or),kr="bodyAttributes",Sr="htmlAttributes",Er="titleAttributes",jr={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Dr=(Object.keys(jr).map((function(e){return jr[e]})),"charset"),Pr="cssText",_r="href",Ar="http-equiv",Tr="innerHTML",Cr="itemprop",Mr="name",Ir="property",Nr="rel",Fr="src",Rr="target",Lr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Hr="defaultTitle",Wr="defer",Br="encodeSpecialCharacters",Vr="onChangeClientState",Ur="titleTemplate",zr=Object.keys(Lr).reduce((function(e,t){return e[Lr[t]]=t,e}),{}),Yr=[jr.NOSCRIPT,jr.SCRIPT,jr.STYLE],qr="data-react-helmet",Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),$r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Xr=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Zr=function(e){var t=ro(e,jr.TITLE),n=ro(e,Ur);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=ro(e,Hr);return t||r||void 0},Jr=function(e){return ro(e,Vr)||function(){}},eo=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return $r({},e,t)}),{})},to=function(e,t){return t.filter((function(e){return void 0!==e[jr.BASE]})).map((function(e){return e[jr.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},no=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&co("Helmet: "+e+' should be of type "Array". Instead found type "'+Gr(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===Nr&&"canonical"===e[n].toLowerCase()||c===Nr&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==Tr&&s!==Pr&&s!==Cr||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=xr()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},ro=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},oo=(ur=Date.now(),function(e){var t=Date.now();t-ur>16?(ur=t,e(t)):setTimeout((function(){oo(e)}),0)}),io=function(e){return clearTimeout(e)},ao="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||oo:c.g.requestAnimationFrame||oo,so="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||io:c.g.cancelAnimationFrame||io,co=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},uo=null,lo=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;ho(jr.BODY,r),ho(jr.HTML,o),po(d,f);var p={baseTag:mo(jr.BASE,n),linkTags:mo(jr.LINK,i),metaTags:mo(jr.META,a),noscriptTags:mo(jr.NOSCRIPT,s),scriptTags:mo(jr.SCRIPT,u),styleTags:mo(jr.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},fo=function(e){return Array.isArray(e)?e.join(""):e},po=function(e,t){void 0!==e&&document.title!==e&&(document.title=fo(e)),ho(jr.TITLE,t)},ho=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(qr),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(qr):n.getAttribute(qr)!==a.join(",")&&n.setAttribute(qr,a.join(","))}},mo=function(e,t){var n=document.head||document.querySelector(jr.HEAD),r=n.querySelectorAll(e+"["+qr+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Tr)n.innerHTML=t.innerHTML;else if(r===Pr)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(qr,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},go=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Lr[n]||n]=e[n],t}),t)},vo=function(e,t,n){switch(e){case jr.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[qr]=!0,o=yo(n,r),[rt().createElement(jr.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=go(n),i=fo(t);return o?"<"+e+" "+qr+'="true" '+o+">"+Xr(i,r)+"</"+e+">":"<"+e+" "+qr+'="true">'+Xr(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case kr:case Sr:return{toComponent:function(){return yo(t)},toString:function(){return go(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[qr]=!0,r);return Object.keys(t).forEach((function(e){var n=Lr[e]||e;if(n===Tr||n===Pr){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),rt().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Tr||e===Pr)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Xr(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Yr.indexOf(e);return t+"<"+e+" "+qr+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},bo=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:vo(jr.BASE,t,r),bodyAttributes:vo(kr,n,r),htmlAttributes:vo(Sr,o,r),link:vo(jr.LINK,i,r),meta:vo(jr.META,a,r),noscript:vo(jr.NOSCRIPT,s,r),script:vo(jr.SCRIPT,c,r),style:vo(jr.STYLE,u,r),title:vo(jr.TITLE,{title:d,titleAttributes:f},r)}},wo=vr()((function(e){return{baseTag:to([_r,Rr],e),bodyAttributes:eo(kr,e),defer:ro(e,Wr),encode:ro(e,Br),htmlAttributes:eo(Sr,e),linkTags:no(jr.LINK,[Nr,_r],e),metaTags:no(jr.META,[Mr,Dr,Ar,Ir,Cr],e),noscriptTags:no(jr.NOSCRIPT,[Tr],e),onChangeClientState:Jr(e),scriptTags:no(jr.SCRIPT,[Fr,Tr],e),styleTags:no(jr.STYLE,[Pr],e),title:Zr(e),titleAttributes:eo(Er,e)}}),(function(e){uo&&so(uo),e.defer?uo=ao((function(){lo(e,(function(){uo=null}))})):(lo(e),uo=null)}),bo)((function(){return null})),Oo=(lr=wo,fr=dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!wr()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case jr.SCRIPT:case jr.NOSCRIPT:return{innerHTML:t};case jr.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return $r({},r,((t={})[n.type]=[].concat(r[n.type]||[],[$r({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case jr.TITLE:return $r({},o,((t={})[r.type]=a,t.titleAttributes=$r({},i),t));case jr.BODY:return $r({},o,{bodyAttributes:$r({},i)});case jr.HTML:return $r({},o,{htmlAttributes:$r({},i)})}return $r({},o,((n={})[r.type]=$r({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=$r({},t);return Object.keys(e).forEach((function(t){var r;n=$r({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return rt().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[zr[n]||n]=e[n],t}),t)}(Qr(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case jr.LINK:case jr.META:case jr.NOSCRIPT:case jr.SCRIPT:case jr.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Qr(e,["children"]),r=$r({},n);return t&&(r=this.mapChildrenToProps(t,r)),rt().createElement(lr,r)},Kr(t,null,[{key:"canUseDOM",set:function(e){lr.canUseDOM=e}}]),t}(rt().Component),dr.propTypes={base:gr().object,bodyAttributes:gr().object,children:gr().oneOfType([gr().arrayOf(gr().node),gr().node]),defaultTitle:gr().string,defer:gr().bool,encodeSpecialCharacters:gr().bool,htmlAttributes:gr().object,link:gr().arrayOf(gr().object),meta:gr().arrayOf(gr().object),noscript:gr().arrayOf(gr().object),onChangeClientState:gr().func,script:gr().arrayOf(gr().object),style:gr().arrayOf(gr().object),title:gr().string,titleAttributes:gr().object,titleTemplate:gr().string},dr.defaultProps={defer:!0,encodeSpecialCharacters:!0},dr.peek=lr.peek,dr.rewind=function(){var e=lr.rewind();return e||(e=bo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},fr);Oo.renderStatic=Oo.rewind;var xo=c(42838),ko=c.n(xo),So=["border","border-spacing","padding","margin","text-align","width"];ko().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return So.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Eo=function(e){return e?ko().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},jo={sanitizeHtml:Eo};var Do=c(98166),Po=c(82284),_o=c(2404),Ao=c.n(_o),To=c(69752),Co=c.n(To),Mo=function(e){return"object"===(0,Po.A)(e)&&null!==e};const Io={difference:function e(t,n){return Co()(t,(function(t,r,o){Ao()(r,n[o])||(t[o]=Mo(r)&&Mo(n[o])?e(r,n[o]):r)}))},getOrFirst:Do.Yd,adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:Do.O5,copyToClipboard:Do.lW,isDefined:Do.O9};var No=c(60284),Fo={error:"exclamation-circle",home:"house-blank"},Ro=function(e){return Fo[e]||e};const Lo=function(e){var t=e.type;return t&&"record"!==t?(0,wn.jsx)(bn.A,{icon:Ro(t)}):null};var Ho,Wo,Bo,Vo,Uo,zo,Yo=["component"],qo=un.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(Ho||(Ho=(0,sn.A)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||mn.w4.color("backgroundBreadcrumbs")(e)}),mn.hs.space(-.7),mn.hs.space(.39)),Go=(0,un.Ay)((function(e){var t=e.component,n=(0,Je.A)(e,Yo);return rt().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Wo||(Wo=(0,sn.A)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.color("secondaryLight"),mn.w4.color("breadcrumbsActive")),Ko=un.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Bo||(Bo=(0,sn.A)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.color("breadcrumbsActive")),$o=(0,un.Ay)(No.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(Vo||(Vo=(0,sn.A)(["\n margin-left: ",";\n margin-right: ",";\n"])),mn.hs.space(-2),mn.hs.space(-2)),Qo=un.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Uo||(Uo=(0,sn.A)(["\n "," {\n margin-right: ",";\n }\n"])),bn.i,mn.hs.space(-1));const Xo=function(){return zo||(zo=(0,wn.jsx)($o,{breakWords:!0,children:(0,wn.jsx)(bn.A,{icon:"chevron-right"})}))};var Zo;function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=function(e){return e.title||e.display},ni=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(ti(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(ti).join(" - ");break;default:r=ti(n)}return Io.adjustedHTMLString(r)};const ri=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat((0,hr.A)(a),(0,hr.A)(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?Ko:Go,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path),state:e.state}:{},d=l?t||(t=(0,wn.jsx)(l,{})):Zo||(Zo=(0,wn.jsx)(yn,{}));return(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)(Qo,{children:(0,wn.jsxs)(a,ei(ei(ei({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,wn.jsx)(Lo,{type:e.type}),(0,wn.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,wn.jsx)(Xo,{},"icon".concat(n)),t]}));return(0,wn.jsxs)(qo,{backgroundColor:c,children:[d?(0,wn.jsx)(Oo,{defer:!1,children:(0,wn.jsx)("title",{children:ni(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,wn.jsx)(wn.Fragment,{children:h})]})};(0,pr.injectIntl)(ri);var oi,ii,ai=un.Ay.div.withConfig({displayName:"StyledWrapper"})(oi||(oi=(0,sn.A)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,mn.Ed)(),(function(e){return e.theme.colors.signal.danger}),mn.t7.color("paper"),mn.hs.space(-.5));const si=function(){return ii||(ii=(0,wn.jsx)(ai,{children:(0,wn.jsx)(pr.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var ci;const ui=un.Ay.div.withConfig({displayName:"StyledButtonGroup"})(ci||(ci=(0,sn.A)(["\n display: flex;\n\n &&& > "," {\n &:not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),Xn);var li=rt().forwardRef((function(e,t){return(0,wn.jsx)(ui,{ref:t,children:e.children})}));li.propTypes={children:l().node};const di=li;var fi=c(90179),pi=c.n(fi),hi=c(62193),mi=c.n(hi),gi=c(62243),yi=c.n(gi),vi=c(36193),bi=c.n(vi),wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},xi={outline:"none"},ki=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Oi(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=rt().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},Oi(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?rt().cloneElement(e({focused:t,getRef:this.ref}),n):rt().createElement("div",wi({ref:this.ref,style:xi},n),e)},t}(rt().Component);ki.propTypes={children:bi().oneOfType([bi().node,bi().func]).isRequired,onBlur:bi().func,onFocus:bi().func},ki.defaultProps={onBlur:function(){},onFocus:function(){}};const Si=ki;var Ei,ji,Di,Pi,_i,Ai,Ti,Ci,Mi,Ii=c(88357),Ni=(0,un.AH)(Ei||(Ei=(0,sn.A)(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),Fi=un.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(ji||(ji=(0,sn.A)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Ni),Ri=(0,un.AH)(Di||(Di=(0,sn.A)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,mn.Ed)({color:mn.t7.color("text")})}),mn.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Li=(0,un.AH)(Pi||(Pi=(0,sn.A)(["\n display: flex;\n align-items: center;\n"]))),Hi=un.Ay.div.withConfig({displayName:"StyledEditableControl"})(_i||(_i=(0,sn.A)(["\n &&& {\n ","\n }\n"])),Li),Wi=un.Ay.span.withConfig({displayName:"StyledEditableValue"})(Ai||(Ai=(0,sn.A)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),mn.t7.color("signal.danger")),Bi=function(e){return-1*Math.abs(e)},Vi=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,Po.A)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Ui=c(58156),zi=c.n(Ui),Yi=un.Ay.div.withConfig({displayName:"StyledLocationEdit"})(Ti||(Ti=(0,sn.A)(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Ni,mn.hs.space(-2),mn.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?zi()(n,"colors.textDisabled"):zi()(n,"colors.text")}),Hi,Ri,mn.t7.color("paper"),mn.t7.color("signal.info"),mn.t7.color("secondaryLight"),mn.t7.color("backgroundItemHover")),qi=(0,un.Ay)(Yi).withConfig({displayName:"StyledAddressEdit"})(Ci||(Ci=(0,sn.A)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $i=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},u=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,wn.jsxs)(No.Ay.Span,{children:[a,", ",o," ",i," ",s," ",u]})},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},f={id:o,value:r&&r.street?c(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(Ki(Ki({},r),{},(0,et.A)({},e,i)))}}("street"),disabled:i};return(0,wn.jsx)(Si,{children:function(e){var t,r,o,c,p=e.getRef;return(0,wn.jsxs)(qi,{immutable:i,name:a,ref:p,children:[(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d,getSuggestionValue:s("street"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,wn.jsxs)(Hi,{children:[n.isLoading&&(Mi||(Mi=(0,wn.jsx)(Sn,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,c=t.postcode,Boolean(r&&(o||c))&&(0,wn.jsx)(Ii.Ay,{href:Vi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Qi=c(69843),Xi=c.n(Qi),Zi=c(7350),Ji=c.n(Zi);function ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach((function(t){ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oa(e,t){if(e){if("string"==typeof e)return ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ra(e,t):void 0}}function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||oa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sa=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(this,arguments)}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(e,t)}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},da(e)}function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function pa(e,t){if(t&&("object"===fa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var n,r=da(e);if(t){var o=da(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pa(this,n)}}function ma(e){return function(e){if(Array.isArray(e))return ra(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ga=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ya="-ms-",va="-moz-",ba="-webkit-",wa="comm",Oa="rule",xa="decl",ka="@keyframes",Sa=Math.abs,Ea=String.fromCharCode,ja=Object.assign;function Da(e){return e.trim()}function Pa(e,t,n){return e.replace(t,n)}function _a(e,t){return e.indexOf(t)}function Aa(e,t){return 0|e.charCodeAt(t)}function Ta(e,t,n){return e.slice(t,n)}function Ca(e){return e.length}function Ma(e){return e.length}function Ia(e,t){return t.push(e),e}var Na=1,Fa=1,Ra=0,La=0,Ha=0,Wa="";function Ba(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Na,column:Fa,length:a,return:""}}function Va(e,t){return ja(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ua(){return Ha=La>0?Aa(Wa,--La):0,Fa--,10===Ha&&(Fa=1,Na--),Ha}function za(){return Ha=La<Ra?Aa(Wa,La++):0,Fa++,10===Ha&&(Fa=1,Na++),Ha}function Ya(){return Aa(Wa,La)}function qa(){return La}function Ga(e,t){return Ta(Wa,e,t)}function Ka(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $a(e){return Na=Fa=1,Ra=Ca(Wa=e),La=0,[]}function Qa(e){return Wa="",e}function Xa(e){return Da(Ga(La-1,es(91===e?e+2:40===e?e+1:e)))}function Za(e){for(;(Ha=Ya())&&Ha<33;)za();return Ka(e)>2||Ka(Ha)>3?"":" "}function Ja(e,t){for(;--t&&za()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return Ga(e,qa()+(t<6&&32==Ya()&&32==za()))}function es(e){for(;za();)switch(Ha){case e:return La;case 34:case 39:34!==e&&39!==e&&es(Ha);break;case 40:41===e&&es(e);break;case 92:za()}return La}function ts(e,t){for(;za()&&e+Ha!==57&&(e+Ha!==84||47!==Ya()););return"/*"+Ga(t,La-1)+"*"+Ea(47===e?e:za())}function ns(e){for(;!Ka(Ya());)za();return Ga(e,La)}function rs(e){return Qa(os("",null,null,null,[""],e=$a(e),0,[0],e))}function os(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=i,x=r,k=b;g;)switch(h=v,v=za()){case 40:if(108!=h&&58==Aa(k,d-1)){-1!=_a(k+=Pa(Xa(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Xa(v);break;case 9:case 10:case 13:case 32:k+=Za(h);break;case 92:k+=Ja(qa()-1,7);continue;case 47:switch(Ya()){case 42:case 47:Ia(as(ts(za(),qa()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Ca(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&Ca(k)-d&&Ia(p>32?ss(k+";",r,n,d-1):ss(Pa(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Ia(x=is(k,t,n,u,l,o,s,b,w=[],O=[],d),i),123===v)if(0===l)os(k,t,x,x,w,i,d,s,O);else switch(99===f&&110===Aa(k,3)?100:f){case 100:case 109:case 115:os(e,x,x,r&&Ia(is(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:os(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=a;break;case 58:d=1+Ca(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Ua())continue;switch(k+=Ea(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ca(k)-1)*y,y=1;break;case 64:45===Ya()&&(k+=Xa(za())),f=Ya(),l=d=Ca(b=k+=ns(qa())),v++;break;case 45:45===h&&2==Ca(k)&&(m=0)}}return i}function is(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Ma(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Ta(e,d+1,d=Sa(m=a[h])),b=e;y<p;++y)(b=Da(m>0?f[y]+" "+v:Pa(v,/&\f/g,f[y])))&&(c[g++]=b);return Ba(e,t,n,0===o?Oa:s,c,u,l)}function as(e,t,n){return Ba(e,t,n,wa,Ea(Ha),Ta(e,2,-2),0)}function ss(e,t,n,r){return Ba(e,t,n,xa,Ta(e,0,r),Ta(e,r+1,-1),r)}function cs(e,t){for(var n="",r=Ma(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function us(e,t,n,r){switch(e.type){case"@import":case xa:return e.return=e.return||e.value;case wa:return"";case ka:return e.return=e.value+"{"+cs(e.children,r)+"}";case Oa:e.value=e.props.join(",")}return Ca(n=cs(e.children,r))?e.return=e.value+"{"+n+"}":""}var ls=function(e,t,n){for(var r=0,o=0;r=o,o=Ya(),38===r&&12===o&&(t[n]=1),!Ka(o);)za();return Ga(e,La)},ds=function(e,t){return Qa(function(e,t){var n=-1,r=44;do{switch(Ka(r)){case 0:38===r&&12===Ya()&&(t[n]=1),e[n]+=ls(La-1,t,n);break;case 2:e[n]+=Xa(r);break;case 4:if(44===r){e[++n]=58===Ya()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ea(r)}}while(r=za());return e}($a(e),t))},fs=new WeakMap,ps=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fs.get(n))&&!r){fs.set(e,!0);for(var o=[],i=ds(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},hs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ms(e,t){switch(function(e,t){return 45^Aa(e,0)?(((t<<2^Aa(e,0))<<2^Aa(e,1))<<2^Aa(e,2))<<2^Aa(e,3):0}(e,t)){case 5103:return ba+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ba+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ba+e+va+e+ya+e+e;case 6828:case 4268:return ba+e+ya+e+e;case 6165:return ba+e+ya+"flex-"+e+e;case 5187:return ba+e+Pa(e,/(\w+).+(:[^]+)/,ba+"box-$1$2"+ya+"flex-$1$2")+e;case 5443:return ba+e+ya+"flex-item-"+Pa(e,/flex-|-self/,"")+e;case 4675:return ba+e+ya+"flex-line-pack"+Pa(e,/align-content|flex-|-self/,"")+e;case 5548:return ba+e+ya+Pa(e,"shrink","negative")+e;case 5292:return ba+e+ya+Pa(e,"basis","preferred-size")+e;case 6060:return ba+"box-"+Pa(e,"-grow","")+ba+e+ya+Pa(e,"grow","positive")+e;case 4554:return ba+Pa(e,/([^-])(transform)/g,"$1"+ba+"$2")+e;case 6187:return Pa(Pa(Pa(e,/(zoom-|grab)/,ba+"$1"),/(image-set)/,ba+"$1"),e,"")+e;case 5495:case 3959:return Pa(e,/(image-set\([^]*)/,ba+"$1$`$1");case 4968:return Pa(Pa(e,/(.+:)(flex-)?(.*)/,ba+"box-pack:$3"+ya+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ba+e+e;case 4095:case 3583:case 4068:case 2532:return Pa(e,/(.+)-inline(.+)/,ba+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ca(e)-1-t>6)switch(Aa(e,t+1)){case 109:if(45!==Aa(e,t+4))break;case 102:return Pa(e,/(.+:)(.+)-([^]+)/,"$1"+ba+"$2-$3$1"+va+(108==Aa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_a(e,"stretch")?ms(Pa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Aa(e,t+1))break;case 6444:switch(Aa(e,Ca(e)-3-(~_a(e,"!important")&&10))){case 107:return Pa(e,":",":"+ba)+e;case 101:return Pa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ba+(45===Aa(e,14)?"inline-":"")+"box$3$1"+ba+"$2$3$1"+ya+"$2box$3")+e}break;case 5936:switch(Aa(e,t+11)){case 114:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ba+e+ya+e+e}return e}var gs=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xa:e.return=ms(e.value,e.length);break;case ka:return cs([Va(e,{value:Pa(e.value,"@","@"+ba)})],r);case Oa:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cs([Va(e,{props:[Pa(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cs([Va(e,{props:[Pa(t,/:(plac\w+)/,":"+ba+"input-$1")]}),Va(e,{props:[Pa(t,/:(plac\w+)/,":-moz-$1")]}),Va(e,{props:[Pa(t,/:(plac\w+)/,ya+"input-$1")]})],r)}return""}))}}];const ys=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||gs;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[us,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ps,hs].concat(r,f),l=Ma(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){cs(rs(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ga({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};var vs=c(4146),bs=c.n(vs);var ws=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Os=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var xs=c(83969);const ks=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ss=/[A-Z]|^ms/g,Es=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(e){return 45===e.charCodeAt(1)},Ds=function(e){return null!=e&&"boolean"!=typeof e},Ps=ks((function(e){return js(e)?e:e.replace(Ss,"-$&").toLowerCase()})),_s=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Es,(function(e,t,n){return Ts={name:t,styles:n,next:Ts},t}))}return 1===xs.A[e]||js(e)||"number"!=typeof t||0===t?t:t+"px"};function As(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ts={name:n.name,styles:n.styles,next:Ts},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ts={name:r.name,styles:r.styles,next:Ts},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=As(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ds(a)&&(r+=Ps(i)+":"+_s(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=As(e,t,a);switch(i){case"animation":case"animationName":r+=Ps(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Ds(a[c])&&(r+=Ps(i)+":"+_s(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ts,i=n(e);return Ts=o,As(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ts,Cs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ms=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ts=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=As(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=As(n,t,e[a]),r&&(o+=i[a]);Cs.lastIndex=0;for(var s,c="";null!==(s=Cs.exec(o));)c+="-"+s[1];return{name:Os(o)+c,styles:o,next:Ts}},Is=!!tt.useInsertionEffect&&tt.useInsertionEffect,Ns=Is||function(e){return e()},Fs={}.hasOwnProperty,Rs=(0,tt.createContext)("undefined"!=typeof HTMLElement?ys({key:"css"}):null);Rs.Provider;var Ls=function(e){return(0,tt.forwardRef)((function(t,n){var r=(0,tt.useContext)(Rs);return e(t,r,n)}))},Hs=(0,tt.createContext)({});var Ws="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ws(t,n,r);Ns((function(){return function(e,t,n){ws(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},Vs=Ls((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ws],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Ms(i,void 0,(0,tt.useContext)(Hs));a+=t.key+"-"+s.name;var c={};for(var u in e)Fs.call(e,u)&&"css"!==u&&u!==Ws&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,tt.createElement)(tt.Fragment,null,(0,tt.createElement)(Bs,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,tt.createElement)(o,c))}));var Us=function(e,t){var n=arguments;if(null==t||!Fs.call(t,"css"))return tt.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vs,o[1]=function(e,t){var n={};for(var r in t)Fs.call(t,r)&&(n[r]=t[r]);return n[Ws]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return tt.createElement.apply(null,o)};function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ms(t)}var Ys=c(81845),qs=c.n(Ys);Math.min,Math.max;const Gs=["top","right","bottom","left"];Gs.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ks(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function $s(e){if(null==e)return window;if(!Ks(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qs(e){return $s(e).getComputedStyle(e)}function Xs(e){return Ks(e)?"":e?(e.nodeName||"").toLowerCase():""}function Zs(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Js(e){return e instanceof $s(e).HTMLElement}function ec(e){return e instanceof $s(e).Element}function tc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $s(e).ShadowRoot||e instanceof ShadowRoot)}function nc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qs(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function rc(){return!/^((?!chrome|android).)*safari/i.test(Zs())}function oc(e){return["html","body","#document"].includes(Xs(e))}Math.min,Math.max;const ic=Math.round;function ac(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Js(e)&&(c=e.offsetWidth>0&&ic(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ic(s.height)/e.offsetHeight||1);const l=ec(e)?$s(e):window,d=!rc()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function sc(e){return(t=e,(t instanceof $s(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function cc(e){if("html"===Xs(e))return e;const t=e.assignedSlot||e.parentNode||(tc(e)?e.host:null)||sc(e);return tc(t)?t.host:t}function uc(e){const t=cc(e);return oc(t)?e.ownerDocument.body:Js(t)&&nc(t)?t:uc(t)}function lc(e,t){var n;void 0===t&&(t=[]);const r=uc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$s(r),a=o?[i].concat(i.visualViewport||[],nc(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lc(a))}const dc=tt.useLayoutEffect;var fc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pc=function(){};function hc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(hc(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var gc=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===fa(e)&&null!==e?[e]:[];var t},yc=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,na({},aa(e,fc))},vc=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function bc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function wc(e){return bc(e)?window.pageYOffset:e.scrollTop}function Oc(e,t){bc(e)?window.scrollTo(0,t):e.scrollTop=t}function xc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pc,o=wc(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Oc(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function kc(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Oc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Oc(e,Math.max(t.offsetTop-o,0))}function Sc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ec=!1,jc={get passive(){return Ec=!0}},Dc="undefined"!=typeof window?window:{};Dc.addEventListener&&Dc.removeEventListener&&(Dc.addEventListener("p",pc,jc),Dc.removeEventListener("p",pc,!1));var Pc=Ec;function _c(e){return null!=e}function Ac(e,t,n){return e?t:n}var Tc=["children","innerProps"],Cc=["children","innerProps"];function Mc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:bc(l=c)?window.innerHeight:l.clientHeight,v=wc(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,E=p-y+v+b,j=v+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&xc(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&xc(c,E,D),{placement:"bottom",maxHeight:a?x-b:S-b};if("auto"===o||a){var P=t,_=a?O:k;return _>=r&&(P=Math.min(_-b-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Oc(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&xc(c,j,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&O>=r){var A=t;return(!a&&k>=r||a&&O>=r)&&(A=a?O-w:k-w),i&&xc(c,j,D),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Ic,Nc=function(e){return"auto"===e?"bottom":e},Fc=(0,tt.createContext)(null),Rc=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,tt.useContext)(Fc)||{}).setPortalPlacement,u=(0,tt.useRef)(null),l=ia((0,tt.useState)(r),2),d=l[0],f=l[1],p=ia((0,tt.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return dc((function(){var e=u.current;if(e){var t="fixed"===i,s=Mc({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,g]),t({ref:u,placerProps:na(na({},e),{},{placement:h||Nc(o),maxHeight:d})})},Lc=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Us("div",ca({},vc(e,"menu",{menu:!0}),{ref:n},r),t)},Hc=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return na({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Wc=Hc,Bc=Hc,Vc=["size"],Uc=["innerProps","isRtl","size"];var zc,Yc,qc={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Gc=function(e){var t=e.size,n=aa(e,Vc);return Us("svg",ca({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qc},n))},Kc=function(e){return Us(Gc,ca({size:20},e),Us("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},$c=function(e){return Us(Gc,ca({size:20},e),Us("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qc=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return na({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Xc=Qc,Zc=Qc,Jc=function(){var e=zs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ic||(zc=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Yc||(Yc=zc.slice(0)),Ic=Object.freeze(Object.defineProperties(zc,{raw:{value:Object.freeze(Yc)}})))),eu=function(e){var t=e.delay,n=e.offset;return Us("span",{css:zs({animation:"".concat(Jc," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tu=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Us("div",ca({ref:o},vc(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},nu=["data"],ru=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Us("div",ca({},vc(e,"group",{group:!0}),s),Us(i,ca({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Us("div",null,t))},ou=["innerRef","isDisabled","isHidden","inputClassName"],iu={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},au={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":na({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},iu)},su=function(e){return na({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},iu)},cu=function(e){var t=e.children,n=e.innerProps;return Us("div",n,t)};var uu=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Us(c,{data:r,innerProps:na(na({},vc(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Us(u,{data:r,innerProps:na({},vc(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Us(l,{data:r,innerProps:na(na({},vc(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},lu={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Us(Kc,null))},Control:tu,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Us($c,null))},DownChevron:$c,CrossIcon:Kc,Group:ru,GroupHeading:function(e){var t=yc(e);t.data;var n=aa(t,nu);return Us("div",ca({},vc(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Us("span",ca({},t,vc(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=yc(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=aa(r,ou);return Us("div",ca({},vc(e,"input",{"input-container":!0}),{"data-value":n||""}),Us("input",ca({className:t({input:!0},s),ref:o,style:su(a),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=aa(e,Uc);return Us("div",ca({},vc(na(na({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Us(eu,{delay:0,offset:n}),Us(eu,{delay:160,offset:!0}),Us(eu,{delay:320,offset:!n}))},Menu:Lc,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Us("div",ca({},vc(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,tt.useRef)(null),c=(0,tt.useRef)(null),u=ia((0,tt.useState)(Nc(i)),2),l=u[0],d=u[1],f=(0,tt.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=ia((0,tt.useState)(null),2),h=p[0],m=p[1],g=(0,tt.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);dc((function(){g()}),[g]);var y=(0,tt.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ec(e)?lc(e):e.contextElement?lc(e.contextElement):[],...lc(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ec(e)&&!s&&d.observe(e),ec(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ac(e):null;return s&&function t(){const r=ac(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);dc((function(){y()}),[y]);var v=(0,tt.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!h)return null;var b=Us("div",ca({ref:v},vc(na(na({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Us(Fc.Provider,{value:f},t?(0,Ys.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=aa(e,Cc);return Us("div",ca({},vc(na(na({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=aa(e,Tc);return Us("div",ca({},vc(na(na({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:uu,MultiValueContainer:cu,MultiValueLabel:cu,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({role:"button"},n),t||Us(Kc,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Us("div",ca({},vc(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Us("div",ca({},vc(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Us("div",ca({},vc(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Us("div",ca({},vc(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},du=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||du(r)&&du(o)))return!1;var r,o;return!0}for(var pu={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},hu=function(e){return Us("span",ca({css:pu},e))},mu={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},gu=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,y=s.options,v=s.screenReaderStatus,b=s.tabSelectsValue,w=s.isLoading,O=s["aria-label"],x=s["aria-live"],k=(0,tt.useMemo)((function(){return na(na({},mu),l||{})}),[l]),S=(0,tt.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=na({isDisabled:u&&h(u,a),label:l,labels:p},t);n=k.onChange(m)}return n}),[t,k,h,a,d]),E=(0,tt.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=k.onFocus(s)}return e}),[n,r,d,h,k,o,a,u]),j=(0,tt.useMemo)((function(){var e="";if(g&&y.length&&!w&&k.onFilter){var t=v({count:o.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,k,y,v,w]),D="initial-input-focus"===(null==t?void 0:t.action),P=(0,tt.useMemo)((function(){var e="";if(k.guidance){var t=r?"value":g?"menu":"input";e=k.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:D})}return e}),[O,n,r,p,h,m,g,k,a,b,D]),_=Us(tt.Fragment,null,Us("span",{id:"aria-selection"},S),Us("span",{id:"aria-focused"},E),Us("span",{id:"aria-results"},j),Us("span",{id:"aria-guidance"},P));return Us(tt.Fragment,null,Us(hu,{id:c},D&&_),Us(hu,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!D&&_))},yu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vu=new RegExp("["+yu.map((function(e){return e.letters})).join("")+"]","g"),bu={},wu=0;wu<yu.length;wu++)for(var Ou=yu[wu],xu=0;xu<Ou.letters.length;xu++)bu[Ou.letters[xu]]=Ou.base;var ku=function(e){return e.replace(vu,(function(e){return bu[e]}))},Su=function(e,t){void 0===t&&(t=fu);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(ku),Eu=function(e){return e.replace(/^\s+|\s+$/g,"")},ju=function(e){return"".concat(e.label," ").concat(e.value)},Du=["innerRef"];function Pu(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=ia(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ia(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(aa(e,Du),"onExited","in","enter","exit","appear");return Us("input",ca({ref:t},n,{css:zs({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var _u=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Au=["boxSizing","height","overflow","paddingRight","position"],Tu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Cu(e){e.preventDefault()}function Mu(e){e.stopPropagation()}function Iu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Nu(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fu=!("undefined"==typeof window||!window.document||!window.document.createElement),Ru=0,Lu={capture:!1,passive:!1};var Hu=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Wu={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Bu(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,tt.useRef)(!1),s=(0,tt.useRef)(!1),c=(0,tt.useRef)(0),u=(0,tt.useRef)(null),l=(0,tt.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&_u(e)}}),[n,r,o,i]),d=(0,tt.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,tt.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,tt.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,tt.useCallback)((function(e){if(e){var t=!!Pc&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,tt.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,tt.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,tt.useRef)({}),i=(0,tt.useRef)(null),a=(0,tt.useCallback)((function(e){if(Fu){var t=document.body,n=t&&t.style;if(r&&Au.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ru<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Tu).forEach((function(e){var t=Tu[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Nu()&&(t.addEventListener("touchmove",Cu,Lu),e&&(e.addEventListener("touchstart",Iu,Lu),e.addEventListener("touchmove",Mu,Lu))),Ru+=1}}),[r]),s=(0,tt.useCallback)((function(e){if(Fu){var t=document.body,n=t&&t.style;Ru=Math.max(Ru-1,0),r&&Ru<1&&Au.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Nu()&&(t.removeEventListener("touchmove",Cu,Lu),e&&(e.removeEventListener("touchstart",Iu,Lu),e.removeEventListener("touchmove",Mu,Lu)))}}),[r]);return(0,tt.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Us(tt.Fragment,null,n&&Us("div",{onClick:Hu,css:Wu}),t((function(e){o(e),i(e)})))}var Vu={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Uu=function(e){var t=e.name,n=e.onFocus;return Us("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vu,value:"",onChange:function(){}})};function zu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Yu(){return zu(/^Mac/i)}function qu(){return zu(/^iPhone/i)||zu(/^iPad/i)||Yu()&&navigator.maxTouchPoints>1}var Gu={clearIndicator:Zc,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return na({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Xc,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return na({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return na({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return na(na({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},au),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return na({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Bc,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return na((ea(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ea(n,"position","absolute"),ea(n,"width","100%"),ea(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return na({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return na({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return na({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return na({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Wc,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return na({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return na({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return na({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return na({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Ku,$u={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Qu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sc(),captureMenuScroll:!Sc(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=na({ignoreCase:!0,ignoreAccents:!0,stringify:ju,trim:!0,matchFrom:"any"},Ku),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Eu(t):t,u=a?Eu(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Su(c),u=ku(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Xu(e,t,n,r){return{type:"option",data:t,isDisabled:il(e,t,n),isSelected:al(e,t,n),label:rl(e,t),value:ol(e,t),index:r}}function Zu(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Xu(e,n,t,r)})).filter((function(t){return tl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Xu(e,n,t,r);return tl(e,i)?i:void 0})).filter(_c)}function Ju(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ma(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function el(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ma(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function tl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!cl(e)||!i)&&sl(e,{label:a,value:s,data:o},r)}var nl=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},rl=function(e,t){return e.getOptionLabel(t)},ol=function(e,t){return e.getOptionValue(t)};function il(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function al(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ol(e,t);return n.some((function(t){return ol(e,t)===r}))}function sl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var cl=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ul=1,ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&la(e,t)}(i,e);var t,n,r,o=ha(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Yu()||qu(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(ma(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ac(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ac(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Ac(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return nl(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return el(Zu(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return mc.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return rl(t.props,e)},t.getOptionValue=function(e){return ol(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Gu[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,na(na({},lu),e.components);var e},t.buildCategorizedOptions=function(){return Zu(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ju(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:na({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&bc(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return cl(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ul),t.state.selectValue=gc(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=nl(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kc(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kc(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($u):na(na({},$u),this.props.theme):$u}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return il(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return al(this.props,e,t)}},{key:"filterOption",value:function(e,t){return sl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=na(na(na({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?tt.createElement(u,ca({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):tt.createElement(Pu,ca({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pc,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!l)return p?null:tt.createElement(s,ca({},c,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return tt.createElement(n,ca({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=g[0];return tt.createElement(a,ca({},c,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return tt.createElement(e,ca({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?tt.createElement(e,ca({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return tt.createElement(n,ca({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return tt.createElement(e,ca({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,x=f.menuPortalTarget,k=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,E=f.noOptionsMessage,j=f.onMenuScrollToTop,D=f.onMenuScrollToBottom;if(!b)return null;var P,_=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return tt.createElement(u,ca({},l,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return tt.createElement(n,ca({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return _(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return _(t,"".concat(t.index))}));else if(m){var A=g({inputValue:h});if(null===A)return null;P=tt.createElement(s,l,A)}else{var T=E({inputValue:h});if(null===T)return null;P=tt.createElement(c,l,T)}var C={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},M=tt.createElement(Rc,ca({},l,C),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return tt.createElement(o,ca({},l,C,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),tt.createElement(Bu,{captureEnabled:p,onTopArrive:j,onBottomArrive:D,lockEnabled:k},(function(t){return tt.createElement(i,ca({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),P)})))}));return x||"fixed"===O?tt.createElement(a,ca({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return tt.createElement(Uu,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return tt.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return tt.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):tt.createElement("input",{name:i,type:"hidden",value:""});return tt.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return tt.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return tt.createElement(gu,ca({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return tt.createElement(r,ca({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),tt.createElement(t,ca({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),tt.createElement(o,ca({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),tt.createElement(n,ca({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=gc(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ju(Zu(e,t))}(e,h):[],y=d?el(Zu(e,h),"".concat(c,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:nl(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&s;return a&&!x&&(O={value:Ac(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),na(na(na({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&ua(t.prototype,n),r&&ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(tt.Component);ll.defaultProps=Qu;var dl=(0,tt.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=aa(e,sa),m=ia((0,tt.useState)(void 0!==s?s:n),2),g=m[0],y=m[1],v=ia((0,tt.useState)(void 0!==c?c:o),2),b=v[0],w=v[1],O=ia((0,tt.useState)(void 0!==p?p:a),2),x=O[0],k=O[1],S=(0,tt.useCallback)((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),E=(0,tt.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),j=(0,tt.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),D=(0,tt.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),P=void 0!==s?s:g,_=void 0!==c?c:b,A=void 0!==p?p:x;return na(na({},h),{},{inputValue:P,menuIsOpen:_,onChange:S,onInputChange:E,onMenuClose:D,onMenuOpen:j,value:A})}(e);return tt.createElement(ll,ca({ref:t},n))})),fl=dl;function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ml=(0,pr.injectIntl)((function(e){var t;return(0,wn.jsx)("span",hl(hl({},e.innerProps),{},{children:(0,wn.jsx)(cr,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var gl=c(2418);function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}const vl=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class bl extends tt.Component{constructor(...e){super(...e),this._targetNode=tt.createRef(),this._elementNode=tt.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,tt.isValidElement)(e)||(e=null),(0,tt.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new gl(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,vl),i=yl({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?tt.createElement(tt.Fragment,null,e,t&&this._elementParentNode&&Ys.createPortal(t,this._elementParentNode)):null}}var wl,Ol,xl,kl,Sl,El,jl,Dl,Pl,_l,Al,Tl,Cl;function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nl=un.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(wl||(wl=(0,sn.A)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Fl=un.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ol||(Ol=(0,sn.A)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),Rl=un.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(xl||(xl=(0,sn.A)(["\n outline-style: none;\n"]))),Ll=un.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(kl||(kl=(0,sn.A)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),mn.t7.color("paper"),mn.t7.radii("form"),(function(e){return e.isTopAligned&&(0,un.AH)(Sl||(Sl=(0,sn.A)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Hl=(0,un.Ay)(bl).withConfig({displayName:"StyledTether"})(El||(El=(0,sn.A)(["\n && {\n z-index: 1;\n }\n"]))),Wl=(un.Ay.div.withConfig({displayName:"StyledNonTether"})(jl||(jl=(0,sn.A)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),mn.hs.space(1.5)),(0,un.Ay)(lu.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Dl||(Dl=(0,sn.A)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Bl=un.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Pl||(Pl=(0,sn.A)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,mn.Ed)({color:mn.t7.color("signal.info"),lineHeight:"normal"}),mn.hs.space(-.5),mn.hs.space(-.2)),Vl=un.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(_l||(_l=(0,sn.A)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?mn.t7.color("text"):"inherit"})),Ul=un.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Al||(Al=(0,sn.A)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),zl=un.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Tl||(Tl=(0,sn.A)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Yl=un.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Cl||(Cl=(0,sn.A)(["\n overflow: hidden;\n text-overflow: ellipsis;\n\n span {\n padding: "," !important; /* overwrite line stlyes */\n }\n"])),mn.hs.space(-1.1)),ql=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},u=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},l=function(t){return Il(Il({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Il(Il(Il({},e),c),{},{outline:0})},control:function(e,t){return Il(Il({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:u(t)?"block":e.display})},noOptionsMessage:l,loadingMessage:l,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Il(Il({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Il(Il({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),Il(Il(Il({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},u(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Il(Il(Il({},t),c),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Il(Il({},t),{},{borderRadius:s,backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},u(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Il(Il({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Il(Il({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Il(Il({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Il(Il({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(t,n){return Il(Il({},t),{},{padding:0,margin:0,gap:mn.hs.space(-2.5)({theme:e})})}}};function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $l=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,wn.jsx)(lu.DropdownIndicator,Kl(Kl({},e),{},{children:(0,wn.jsx)(Ul,{children:(0,wn.jsx)(cr,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};l().shape({key:l().any.isRequired,display:l().string});var Ql,Xl,Zl;function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var td=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},nd=function(e,t){return function(n){n.stopPropagation(),e(t)}},rd=function(e,t){return function(n){n.stopPropagation(),e(t)}},od=function(e){e.stopPropagation()};const id=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,wn.jsx)(Ll,{isTopAligned:f,children:(0,wn.jsxs)(lu.IndicatorsContainer,ed(ed({},e),{},{children:[e.children,n&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:nd(n,u),children:Ql||(Ql=(0,wn.jsx)(cr,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:td(r,d,u),children:Xl||(Xl=(0,wn.jsx)(cr,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:rd(o,u),children:Zl||(Zl=(0,wn.jsx)(cr,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var ad;const sd=function(){return ad||(ad=(0,wn.jsx)("span",{children:(0,wn.jsx)(Sn,{size:"1.8rem"})}))};var cd="tocco-app",ud=c(85072),ld=c.n(ud),dd=c(97825),fd=c.n(dd),pd=c(77659),hd=c.n(pd),md=c(55056),gd=c.n(md),yd=c(10540),vd=c.n(yd),bd=c(41113),wd=c.n(bd),Od=c(2063),xd={};xd.styleTagTransform=wd(),xd.setAttributes=gd(),xd.insert=hd().bind(null,"head"),xd.domAPI=fd(),xd.insertStyleElement=vd();ld()(Od.A,xd);Od.A&&Od.A.locals&&Od.A.locals;var kd,Sd=c(59386),Ed=c.n(Sd),jd=un.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(kd||(kd=(0,sn.A)(["\n cursor: pointer;\n user-select: none;\n"]))),Dd=rt().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,wn.jsx)(jd,{onClick:r,ref:t,children:n})}));Dd.propTypes={children:l().any,onOpen:l().func};const Pd=Dd;var _d=c(131),Ad=c(51732),Td=function(){(0,Sd.registerLocale)("en",Ad.A.getDateFnsLocale("en")),(0,Sd.registerLocale)("en-US",Ad.A.getDateFnsLocale("en")),(0,Sd.registerLocale)("de-CH",Ad.A.getDateFnsLocale("de-CH")),(0,Sd.registerLocale)("de-DE",Ad.A.getDateFnsLocale("de-DE")),(0,Sd.registerLocale)("de",Ad.A.getDateFnsLocale("de")),(0,Sd.registerLocale)("fr",Ad.A.getDateFnsLocale("fr")),(0,Sd.registerLocale)("fr-CH",Ad.A.getDateFnsLocale("fr")),(0,Sd.registerLocale)("it",Ad.A.getDateFnsLocale("it")),(0,Sd.registerLocale)("it-CH",Ad.A.getDateFnsLocale("it")),(0,Sd.setDefaultLocale)("de")};Td();(0,un.SL)((0,pr.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,tt.useRef)(null),c=(0,tt.useState)(!1),u=(0,En.A)(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,wn.jsx)(Ed(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,wn.jsx)(Pd,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Cd,Md,Id,Nd,Fd,Rd,Ld=mn.t7.color("secondaryLight"),Hd=mn.t7.color("paper"),Wd=mn.t7.color("text"),Bd=mn.t7.color("secondary"),Vd=mn.t7.radii("form"),Ud=(0,un.DU)(Cd||(Cd=(0,sn.A)(["\n .react-datepicker-popper {\n && {\n // higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; // static in all themes\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),bn.i,Wd,mn.t7.radii("form"),Vd,Ld,Hd,(0,mn.Ed)(),(0,mn.Ed)(),Ld,Vd,Vd,mn.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",Hd,mn.hs.font(1),mn.t7.fontWeight("bold"),(0,mn.Ed)({fontWeight:mn.t7.fontWeight("bold")}),Hd,mn.hs.font(-2),mn.hs.space(-1.8),Bd,Bd,Bd,Ld,Ld,Ld,Bd,(0,mn.Ed)(),Hd,mn.hs.space(-.5),mn.t7.color("backgroundItemHover"),Vd,mn.hs.space(-.5),Hd,mn.t7.color("border"),mn.t7.radii("form"),mn.hs.space(-1),mn.hs.space(-1),mn.hs.font(1),Hd,mn.t7.fontWeight("bold"),mn.hs.space(-1),Hd,mn.hs.font(0),Wd,Ld,Ld,mn.t7.radii("form"),Hd,Ld,Bd,Wd,Wd,Hd,Ld,mn.t7.color("backgroundItemHover"),mn.t7.color("textDisabled"),mn.t7.color("border"),mn.t7.radii("form")),zd=(0,un.DU)(Md||(Md=(0,sn.A)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),mn.t7.color("signal.success"),mn.t7.color("signal.info"),mn.t7.color("signal.warning"),mn.t7.color("signal.danger"),mn.t7.color("textDisabled")),Yd=(0,un.DU)(Id||(Id=(0,sn.A)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),mn.t7.color("backgroundScrollbar"),mn.t7.color("backgroundScrollbarHover"),mn.t7.color("backgroundScrollbar"));const qd=function(){return(0,wn.jsxs)(wn.Fragment,{children:[Nd||(Nd=(0,wn.jsx)(zd,{})),Fd||(Fd=(0,wn.jsx)(Ud,{})),Rd||(Rd=(0,wn.jsx)(Yd,{}))]})};function Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $d=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,wn.jsx)(Hl,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,wn.jsx)("div",{ref:e})},renderElement:function(o){return(0,wn.jsx)("div",{ref:o,className:cd,children:(0,wn.jsx)(Wl,Kd(Kd({},pi()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zd=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,wn.jsxs)(lu.MenuList,Xd(Xd({},e),{},{className:"MenuList",children:[n,r&&(0,wn.jsx)(Bl,{children:o})]}))};function Jd(e){return tf(e)?(e.nodeName||"").toLowerCase():"#document"}function ef(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tf(e){return e instanceof Node||e instanceof ef(e).Node}function nf(e){return e instanceof Element||e instanceof ef(e).Element}function rf(e){return e instanceof HTMLElement||e instanceof ef(e).HTMLElement}function of(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ef(e).ShadowRoot)}function af(e){return["html","body","#document"].includes(Jd(e))}function sf(e){return ef(e).getComputedStyle(e)}function cf(e){if("html"===Jd(e))return e;const t=e.assignedSlot||e.parentNode||of(e)&&e.host||function(e){var t;return null==(t=(tf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return of(t)?t.host:t}function uf(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&of(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function lf(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function df(e){return(null==e?void 0:e.ownerDocument)||document}function ff(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function pf(e){return"composedPath"in e?e.composedPath()[0]:e.target}const hf="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function mf(e){return rf(e)&&e.matches(hf)}Math.min,Math.max,Math.round,Math.floor;const gf=Math.min,yf=Math.max,vf=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),bf={start:"end",end:"start"};function wf(e,t,n){return yf(e,gf(t,n))}function Of(e,t){return"function"==typeof e?e(t):e}function xf(e){return e.split("-")[0]}function kf(e){return e.split("-")[1]}function Sf(e){return"x"===e?"y":"x"}function Ef(e){return"y"===e?"height":"width"}function jf(e){return["top","bottom"].includes(xf(e))?"y":"x"}function Df(e){return Sf(jf(e))}function Pf(e){return e.replace(/start|end/g,(e=>bf[e]))}function _f(e){return e.replace(/left|right|bottom|top/g,(e=>vf[e]))}function Af(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Tf(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cf(e,t,n){let{reference:r,floating:o}=e;const i=jf(t),a=Df(t),s=Ef(a),c=xf(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(kf(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function Mf(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Of(t,e),h=Af(p),m=s[f?"floating"===d?"reference":"floating":d],g=Tf(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===d?{...a.floating,x:r,y:o}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Tf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const If=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Of(e,t)||{};if(null==c)return{};const l=Af(u),d={x:n,y:r},f=Df(o),p=Ef(f),h=await a.getDimensions(c),m="y"===f,g=m?"top":"left",y=m?"bottom":"right",v=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let x=O?O[v]:0;x&&await(null==a.isElement?void 0:a.isElement(O))||(x=s.floating[v]||i.floating[p]);const k=b/2-w/2,S=x/2-h[p]/2-1,E=gf(l[g],S),j=gf(l[y],S),D=E,P=x-h[p]-j,_=x/2-h[p]/2+k,A=wf(D,_,P),T=null!=kf(o)&&_!=A&&i.reference[p]/2-(_<D?E:j)-h[p]/2<0?_<D?D-_:P-_:0;return{[f]:d[f]-T,data:{[f]:A,centerOffset:_-A+T}}}});const Nf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=Of(e,t),g=xf(r),y=xf(a)===a,v=await(null==s.isRTL?void 0:s.isRTL(c.floating)),b=d||(y||!h?[_f(a)]:function(e){const t=_f(e);return[Pf(e),t,Pf(t)]}(a));d||"none"===p||b.push(...function(e,t,n,r){const o=kf(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(xf(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Pf)))),i}(a,h,p,v));const w=[a,...b],O=await Mf(t,m),x=[];let k=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&x.push(O[g]),l){const e=function(e,t,n){void 0===n&&(n=!1);const r=kf(e),o=Df(e),i=Ef(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_f(a)),[a,_f(a)]}(r,i,v);x.push(O[e[0]],O[e[1]])}if(k=[...k,{placement:r,overflows:x}],!x.every((e=>e<=0))){var S,E;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(E=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var j;const e=null==(j=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const Ff=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=xf(n),s=kf(n),c="y"===jf(n),u=["left","top"].includes(a)?-1:1,l=i&&c?-1:1,d=Of(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*l,y:f*u}:{x:f*u,y:p*l}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Rf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Of(e,t),u={x:n,y:r},l=await Mf(t,c),d=jf(xf(o)),f=Sf(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=wf(p+l["y"===f?"top":"left"],p,p-l[e])}if(a){const e="y"===d?"bottom":"right";h=wf(h+l["y"===d?"top":"left"],h,h-l[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Lf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Of(e,t),c=await Mf(t,s),u=xf(n),l=kf(n),d="y"===jf(n),{width:f,height:p}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=l===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===l?"top":"bottom");const g=p-c[h],y=f-c[m],v=!t.middlewareData.shift;let b=g,w=y;if(d){const e=f-c.left-c.right;w=l||v?gf(y,e):e}else{const e=p-c.top-c.bottom;b=l||v?gf(g,e):e}if(v&&!l){const e=yf(c.left,0),t=yf(c.right,0),n=yf(c.top,0),r=yf(c.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:yf(c.left,c.right)):b=p-2*(0!==n||0!==r?n+r:yf(c.top,c.bottom))}await a({...t,availableWidth:w,availableHeight:b});const O=await o.getDimensions(i.floating);return f!==O.width||p!==O.height?{reset:{rects:!0}}:{}}}},Hf=Math.min,Wf=Math.max,Bf=Math.round,Vf=Math.floor,Uf=e=>({x:e,y:e});function zf(e){return Gf(e)?(e.nodeName||"").toLowerCase():"#document"}function Yf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qf(e){var t;return null==(t=(Gf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Gf(e){return e instanceof Node||e instanceof Yf(e).Node}function Kf(e){return e instanceof Element||e instanceof Yf(e).Element}function $f(e){return e instanceof HTMLElement||e instanceof Yf(e).HTMLElement}function Qf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yf(e).ShadowRoot)}function Xf(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=np(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zf(e){return["table","td","th"].includes(zf(e))}function Jf(e){const t=ep(),n=np(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ep(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tp(e){return["html","body","#document"].includes(zf(e))}function np(e){return Yf(e).getComputedStyle(e)}function rp(e){return Kf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function op(e){if("html"===zf(e))return e;const t=e.assignedSlot||e.parentNode||Qf(e)&&e.host||qf(e);return Qf(t)?t.host:t}function ip(e){const t=op(e);return tp(t)?e.ownerDocument?e.ownerDocument.body:e.body:$f(t)&&Xf(t)?t:ip(t)}function ap(e,t){var n;void 0===t&&(t=[]);const r=ip(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Yf(r);return o?t.concat(i,i.visualViewport||[],Xf(r)?r:[]):t.concat(r,ap(r))}function sp(e){const t=np(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$f(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Bf(n)!==i||Bf(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function cp(e){return Kf(e)?e:e.contextElement}function up(e){const t=cp(e);if(!$f(t))return Uf(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sp(t);let a=(i?Bf(n.width):n.width)/r,s=(i?Bf(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const lp=Uf(0);function dp(e){const t=Yf(e);return ep()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:lp}function fp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=cp(e);let a=Uf(1);t&&(r?Kf(r)&&(a=up(r)):a=up(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yf(e))&&t}(i,n,r)?dp(i):Uf(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Yf(i),t=r&&Kf(r)?Yf(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=up(n),t=n.getBoundingClientRect(),r=np(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=o,u+=i,n=Yf(n).frameElement}}return Tf({width:l,height:d,x:c,y:u})}function pp(e){return fp(qf(e)).left+rp(e).scrollLeft}function hp(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Yf(e),r=qf(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=ep();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=qf(e),n=rp(e),r=e.ownerDocument.body,o=Wf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pp(e);const s=-n.scrollTop;return"rtl"===np(r).direction&&(a+=Wf(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(qf(e));else if(Kf(t))r=function(e,t){const n=fp(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$f(e)?up(e):Uf(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=dp(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Tf(r)}function mp(e,t){const n=op(e);return!(n===t||!Kf(n)||tp(n))&&("fixed"===np(n).position||mp(n,t))}function gp(e,t,n){const r=$f(t),o=qf(t),i="fixed"===n,a=fp(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Uf(0);if(r||!r&&!i)if(("body"!==zf(t)||Xf(o))&&(s=rp(t)),r){const e=fp(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=pp(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function yp(e,t){return $f(e)&&"fixed"!==np(e).position?t?t(e):e.offsetParent:null}function vp(e,t){const n=Yf(e);if(!$f(e))return n;let r=yp(e,t);for(;r&&Zf(r)&&"static"===np(r).position;)r=yp(r,t);return r&&("html"===zf(r)||"body"===zf(r)&&"static"===np(r).position&&!Jf(r))?n:r||function(e){let t=op(e);for(;$f(t)&&!tp(t);){if(Jf(t))return t;t=op(t)}return null}(e)||n}const bp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=$f(n),i=qf(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Uf(1);const c=Uf(0);if((o||!o&&"fixed"!==r)&&(("body"!==zf(n)||Xf(i))&&(a=rp(n)),$f(n))){const e=fp(n);s=up(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:qf,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ap(e).filter((e=>Kf(e)&&"body"!==zf(e))),o=null;const i="fixed"===np(e).position;let a=i?op(e):e;for(;Kf(a)&&!tp(a);){const t=np(a),n=Jf(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xf(a)&&!n&&mp(e,a))?r=r.filter((e=>e!==a)):o=t,a=op(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],c=a.reduce(((e,n)=>{const r=hp(t,n,o);return e.top=Wf(r.top,e.top),e.right=Hf(r.right,e.right),e.bottom=Hf(r.bottom,e.bottom),e.left=Wf(r.left,e.left),e}),hp(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:vp,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||vp,i=this.getDimensions;return{reference:gp(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return sp(e)},getScale:up,isElement:Kf,isRTL:function(e){return"rtl"===np(e).direction}};function wp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=cp(e),l=o||i?[...u?ap(u):[],...ap(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=qf(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:u,top:l,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Vf(l)+"px "+-Vf(o.clientWidth-(u+d))+"px "+-Vf(o.clientHeight-(l+f))+"px "+-Vf(u)+"px",threshold:Wf(0,Hf(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?fp(e):null;return c&&function t(){const r=fp(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const Op=(e,t,n)=>{const r=new Map,o={platform:bp,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=Cf(u,r,c),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y,data:v,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=Cf(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},xp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?If({element:n.current,padding:r}).fn(t):{}:n?If({element:n,padding:r}).fn(t):{};var o}});var kp="undefined"!=typeof document?tt.useLayoutEffect:tt.useEffect;function Sp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Sp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Sp(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ep(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jp(e,t){const n=Ep(e);return Math.round(t*n)/n}function Dp(e){const t=tt.useRef(e);return kp((()=>{t.current=e})),t}var Pp=c(49054);const _p={...nt},Ap=_p.useInsertionEffect||(e=>e());function Tp(e){const t=tt.useRef((()=>{0}));return Ap((()=>{t.current=e})),tt.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Cp="ArrowUp",Mp="ArrowDown",Ip="ArrowLeft",Np="ArrowRight";var Fp="undefined"!=typeof document?tt.useLayoutEffect:tt.useEffect;const Rp=[Ip,Np],Lp=[Cp,Mp];function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}let Wp=!1,Bp=0;const Vp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bp++;const Up=_p.useId||function(){const[e,t]=tt.useState((()=>Wp?Vp():void 0));return Fp((()=>{null==e&&t(Vp())}),[]),tt.useEffect((()=>{Wp=!0}),[]),e};const zp=tt.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...p}={},...h}=e;const m=Up();if(!r)return null;const g=2*c,y=g/2,v=i/2*(s/-8+1),b=a/2*s/4,[w,O]=n.split("-"),x=bp.isRTL(r),k=!!d,S="top"===w||"bottom"===w,E=u&&"end"===O?"bottom":"top";let j=u&&"end"===O?"right":"left";u&&x&&(j="end"===O?"left":"right");const D=null!=(null==o?void 0:o.x)?u||o.x:"",P=null!=(null==o?void 0:o.y)?u||o.y:"",_=d||"M0,0 H"+i+" L"+(i-v)+","+(a-b)+" Q"+i/2+","+a+" "+v+","+(a-b)+" Z",A={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[w];return tt.createElement("svg",Hp({},h,{"aria-hidden":!0,ref:t,width:k?i:i+g,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[j]:D,[E]:P,[w]:S||k?"100%":"calc(100% - "+g/2+"px)",transform:""+A+(null!=f?f:""),...p}}),g>0&&tt.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:l,strokeWidth:g+(d?0:1),d:_}),tt.createElement("path",{stroke:g&&!d?h.fill:"none",d:_}),tt.createElement("clipPath",{id:m},tt.createElement("rect",{x:-y,y:y*(k?-1:1),width:i+g,height:i})))}));function Yp(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const qp=tt.createContext(null),Gp=tt.createContext(null),Kp=()=>{var e;return(null==(e=tt.useContext(qp))?void 0:e.id)||null},$p=()=>tt.useContext(Gp);function Qp(e){return"data-floating-ui-"+e}function Xp(e){const t=(0,tt.useRef)(e);return Fp((()=>{t.current=e})),t}const Zp=Qp("safe-polygon");function Jp(e,t,n){return n&&!lf(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function eh(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const th=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nh(e,t){const n=(0,Pp.Kr)(e,th());"prev"===t&&n.reverse();const r=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}(df(e)));return n.slice(r+1)[0]}function rh(){return nh(document.body,"next")}function oh(){return nh(document.body,"prev")}function ih(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!uf(n,r)}function ah(e){(0,Pp.Kr)(e,th()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function sh(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const ch={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function uh(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const lh=tt.forwardRef((function(e,t){const[n,r]=tt.useState();Fp((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",uh),()=>{document.removeEventListener("keydown",uh)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Qp("focus-guard")]:"",style:ch};return tt.createElement("span",Hp({},e,o))})),dh=tt.createContext(null),fh=Qp("portal");function ph(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Up(),o=hh(),[i,a]=tt.useState(null),s=tt.useRef(null);return Fp((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Fp((()=>{if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(fh,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Fp((()=>{if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!nf(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(fh,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=tt.useState(null),c=tt.useRef(null),u=tt.useRef(null),l=tt.useRef(null),d=tt.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return tt.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&ih(e)){("focusin"===e.type?sh:ah)(i)}}}),[i,o,null==a?void 0:a.modal]),tt.createElement(dh.Provider,{value:tt.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&tt.createElement(lh,{"data-type":"outside",ref:c,onFocus:e=>{if(ih(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=oh()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&tt.createElement("span",{"aria-owns":i.id,style:ch}),i&&(0,Ys.createPortal)(t,i),f&&i&&tt.createElement(lh,{"data-type":"outside",ref:u,onFocus:e=>{if(ih(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=rh()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const hh=()=>tt.useContext(dh);function mh(e){return rf(e.target)&&"BUTTON"===e.target.tagName}function gh(e){return mf(e)}function yh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:l=!0}=t,d=tt.useRef(),f=tt.useRef(!1);return tt.useMemo((()=>a?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0===e.button&&(lf(d.current,!0)&&u||"click"!==s&&(!n||!c||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&d.current?d.current=void 0:lf(d.current,!0)&&u||(!n||!c||o.current.openEvent&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!l||mh(e)||(" "!==e.key||gh(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||mh(e)||gh(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}}}:{}),[a,o,s,u,l,i,c,n,r])}const vh={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},bh={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},wh=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Oh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,nodeId:o,elements:{reference:i,domReference:a,floating:s},dataRef:c}=e,{enabled:u=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:y}=t,v=$p(),b=Tp("function"==typeof d?d:()=>!1),w="function"==typeof d?b:d,O=tt.useRef(!1),x=tt.useRef(!1),{escapeKey:k,outsidePress:S}=wh(g),{escapeKey:E,outsidePress:j}=wh(y),D=Tp((e=>{if(!n||!u||!l||"Escape"!==e.key)return;const t=v?eh(v.nodesRef.current,o):[];if(!k&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),P=Tp((e=>{var t;const n=()=>{var t;D(e),null==(t=pf(e))||t.removeEventListener("keydown",n)};null==(t=pf(e))||t.addEventListener("keydown",n)})),_=Tp((e=>{const t=O.current;O.current=!1;const n=x.current;if(x.current=!1,"click"===f&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const i=pf(e),c="["+Qp("inert")+"]",u=df(s).querySelectorAll(c);let l=nf(i)?i:null;for(;l&&!af(l);){const e=cf(l);if(af(e)||!nf(e))break;l=e}if(u.length&&nf(i)&&!i.matches("html,body")&&!uf(i,s)&&Array.from(u).every((e=>!uf(l,e))))return;if(rf(i)&&s){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let r=n&&e.offsetX>i.clientWidth;if(n){"rtl"===sf(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth)}if(r||t&&e.offsetY>i.clientHeight)return}const d=v&&eh(v.nodesRef.current,o).some((t=>{var n;return ff(e,null==(n=t.context)?void 0:n.elements.floating)}));if(ff(e,s)||ff(e,a)||d)return;const p=v?eh(v.nodesRef.current,o):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),A=Tp((e=>{var t;const n=()=>{var t;_(e),null==(t=pf(e))||t.removeEventListener(f,n)};null==(t=pf(e))||t.addEventListener(f,n)}));return tt.useEffect((()=>{if(!n||!u)return;function e(e){r(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=k,c.current.__outsidePressBubbles=S;const t=df(s);l&&t.addEventListener("keydown",E?P:D,E),w&&t.addEventListener(f,j?A:_,j);let o=[];return m&&(nf(a)&&(o=ap(a)),nf(s)&&(o=o.concat(ap(s))),!nf(i)&&i&&i.contextElement&&(o=o.concat(ap(i.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{l&&t.removeEventListener("keydown",E?P:D,E),w&&t.removeEventListener(f,j?A:_,j),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,a,i,l,w,f,n,r,m,u,k,S,D,E,P,_,j,A]),tt.useEffect((()=>{O.current=!1}),[w,f]),tt.useMemo((()=>u?{reference:{onKeyDown:D,[vh[h]]:e=>{p&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:D,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[bh[f]]:()=>{O.current=!0}}}:{}),[u,p,f,h,r,D])}function xh(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=tt.useState(null),[s,c]=tt.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||i;Fp((()=>{u&&(h.current=u)}),[u]);const l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=tt.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=tt.useState(r);Sp(f,r)||p(r);const[h,m]=tt.useState(null),[g,y]=tt.useState(null),v=tt.useCallback((e=>{e!=x.current&&(x.current=e,m(e))}),[m]),b=tt.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[y]),w=i||h,O=a||g,x=tt.useRef(null),k=tt.useRef(null),S=tt.useRef(l),E=Dp(c),j=Dp(o),D=tt.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Op(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!Sp(S.current,t)&&(S.current=t,Ys.flushSync((()=>{d(t)})))}))}),[f,t,n,j]);kp((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const P=tt.useRef(!1);kp((()=>(P.current=!0,()=>{P.current=!1})),[]),kp((()=>{if(w&&(x.current=w),O&&(k.current=O),w&&O){if(E.current)return E.current(w,O,D);D()}}),[w,O,D,E]);const _=tt.useMemo((()=>({reference:x,floating:k,setReference:v,setFloating:b})),[v,b]),A=tt.useMemo((()=>({reference:w,floating:O})),[w,O]),T=tt.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=jp(A.floating,l.x),r=jp(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ep(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return tt.useMemo((()=>({...l,update:D,refs:_,elements:A,floatingStyles:T})),[l,D,_,A,T])}({...e,elements:{...e.elements,...s&&{reference:s}}}),d=$p(),f=null!=Kp(),p=Tp(((e,t,n)=>{m.current.openEvent=e?t:void 0,g.emit("openchange",{open:e,event:t,reason:n,nested:f}),null==r||r(e,t,n)})),h=tt.useRef(null),m=tt.useRef({}),g=tt.useState((()=>Yp()))[0],y=Up(),v=tt.useCallback((e=>{const t=nf(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),l.refs.setReference(t)}),[l.refs]),b=tt.useCallback((e=>{(nf(e)||null===e)&&(h.current=e,a(e)),(nf(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!nf(e))&&l.refs.setReference(e)}),[l.refs]),w=tt.useMemo((()=>({...l.refs,setReference:b,setPositionReference:v,domReference:h})),[l.refs,b,v]),O=tt.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=tt.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:o,floatingId:y,events:g,open:n,onOpenChange:p})),[l,o,y,g,n,p,w,O]);return Fp((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===o));e&&(e.context=x)})),tt.useMemo((()=>({...l,context:x,refs:w,elements:O})),[l,w,O,x])}const kh="active",Sh="selected";function Eh(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[kh]:t,[Sh]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[kh,Sh].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function jh(e){void 0===e&&(e=[]);const t=e,n=tt.useCallback((t=>Eh(t,e,"reference")),t),r=tt.useCallback((t=>Eh(t,e,"floating")),t),o=tt.useCallback((t=>Eh(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return tt.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o})),[n,r,o])}var Dh,Ph,_h,Ah,Th,Ch=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Dh||(Dh=(0,sn.A)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),mn.t7.color("text"),mn.hs.font(1),mn.hs.space(-1)),Mh=(0,un.AH)(Ph||(Ph=(0,sn.A)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),mn.t7.color("text"),mn.t7.lineHeight("regular"),mn.t7.fontWeight("regular"),mn.hs.space(-3),mn.hs.space(-1.5),mn.t7.radii("statusLabel")),Ih=(0,un.Ay)(No.oY).withConfig({displayName:"StyledHtmlFormatter"})(_h||(_h=(0,sn.A)(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; // nice2 reset\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; // same color in all themes\n }\n }\n }\n"])),(function(e){return(0,No.gv)(e,"html")}),mn.hs.space(-1),mn.hs.space(-1.5),Mh,mn.t7.color("signal.dangerLight"),mn.t7.color("textLabel"),mn.t7.color("signal.infoLight"),mn.t7.color("textLabel"),mn.t7.color("signal.warningLight"),mn.t7.color("textLabel"),mn.t7.color("signal.successLight"),mn.t7.color("textLabel"),Mh,mn.t7.color("signal.dangerLight"),mn.t7.color("textLabel"),mn.t7.radii("statusLabel"),mn.hs.space(-2.1),mn.hs.space(0),mn.t7.color("paper"),mn.t7.color("signal.info"),mn.t7.color("signal.warningLight"),mn.hs.space(-1.5),mn.hs.space(.5)),Nh=un.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Ah||(Ah=(0,sn.A)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg path {\n // style FloatingArrow SVG\n fill: ",";\n }\n }\n"])),mn.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":mn.hs.space(0)}),mn.t7.color("textPopover"),mn.t7.color("backgroundPopover")),Fh=un.Ay.div.withConfig({displayName:"StyledBox"})(Th||(Th=(0,sn.A)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,No.gv)(e,"html")}),Ih,mn.t7.color("textPopover"));function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hh=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,tt.useState)(!1),c=(0,En.A)(s,2),u=c[0],l=c[1],d=(0,tt.useRef)(null),f=xh({open:u,onOpenChange:l,middleware:[Nf(),Rf({padding:20}),xp({element:d}),Ff(5)]}),p=f.refs,h=f.floatingStyles,m=f.context,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:s},refs:c}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,m=$p(),g=Kp(),y=Xp(d),v=Xp(l),b=tt.useRef(),w=tt.useRef(-1),O=tt.useRef(),x=tt.useRef(-1),k=tt.useRef(!0),S=tt.useRef(!1),E=tt.useRef((()=>{})),j=tt.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);tt.useEffect((()=>{if(u)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),k.current=!0)}}),[u,i]),tt.useEffect((()=>{if(!u||!y.current||!n)return;function e(e){j()&&r(!1,e,"hover")}const t=df(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,n,r,u,y,j]);const D=tt.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Jp(v.current,"close",b.current);o&&!O.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),P=tt.useCallback((()=>{E.current(),O.current=void 0}),[]),_=tt.useCallback((()=>{if(S.current){const e=df(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Zp),S.current=!1}}),[c]);return tt.useEffect((()=>{if(u&&nf(a)){const e=a;return n&&e.addEventListener("mouseleave",l),null==s||s.addEventListener("mouseleave",l),h&&e.addEventListener("mousemove",i,{once:!0}),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),()=>{n&&e.removeEventListener("mouseleave",l),null==s||s.removeEventListener("mouseleave",l),h&&e.removeEventListener("mousemove",i),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,f&&!lf(b.current)||p>0&&!Jp(v.current,"open"))return;const t=Jp(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(r){if(t())return;E.current();const o=df(s);if(clearTimeout(x.current),y.current){n||clearTimeout(w.current),O.current=y.current({...e,tree:m,x:r.clientX,y:r.clientY,onClose(){_(),P(),D(r,!0,"safe-polygon")}});const t=O.current;return o.addEventListener("mousemove",t),void(E.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==b.current||!uf(s,r.relatedTarget))&&D(r)}function l(n){t()||null==y.current||y.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){_(),P(),D(n)}})(n)}}),[a,s,u,e,f,p,h,D,P,_,r,n,m,v,y,o]),Fp((()=>{var e;if(u&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&j()){const e=df(s).body;if(e.setAttribute(Zp,""),e.style.pointerEvents="none",S.current=!0,nf(a)&&s){var t;const e=a,n=null==m||null==(t=m.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[u,n,g,s,a,m,y,j]),Fp((()=>{n||(b.current=void 0,P(),_())}),[n,P,_]),tt.useEffect((()=>()=>{P(),clearTimeout(w.current),clearTimeout(x.current),_()}),[u,a,P,_]),tt.useMemo((()=>{if(!u)return{};function e(e){b.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){function t(){k.current||r(!0,e.nativeEvent,"hover")}f&&!lf(b.current)||n||0===p||(clearTimeout(x.current),"touch"===b.current?t():x.current=window.setTimeout(t,p))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}}}}),[u,f,n,p,r,D])}(m,{delay:{open:500,close:0}}),y=jh([g]),v=y.getReferenceProps,b=y.getFloatingProps;return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)("span",Lh(Lh({ref:p.setReference},v()),{},{children:t})),u&&n&&(0,wn.jsx)(ph,{children:(0,wn.jsxs)(Nh,Lh(Lh({ref:p.setFloating,style:h,rimless:a},b()),{},{className:cd,children:[(0,wn.jsx)(zp,{ref:d,context:m}),(0,wn.jsx)(Fh,{isPlainHtml:o,children:n})]}))})]})},Wh=Hh;const Bh=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=zi()(i,t.key,null),u=(0,wn.jsx)("span",{style:n.css,children:r}),l=s?(0,wn.jsx)(Nl,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,wn.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,wn.jsx)(Wh,{content:c?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(c)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,wn.jsx)(Yl,{children:l})};var Vh=c(85015),Uh=c.n(Vh),zh=c(42194),Yh=c.n(zh);function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kh=["linkComp"],$h=function(e,t){var n=Io.difference(e,t),r=Yh()(pi()(n,Kh),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Qh=(0,tt.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Uh()(n)?(0,wn.jsx)(Nl,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,wn.jsx)(t,{entityKey:n,children:r})}):r}),$h);Qh.propTypes={children:l().node,entityKey:l().any,linkComp:l().func};const Xh=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=zi()(i,t.key,null);return(0,wn.jsx)(lu.SingleValue,Gh(Gh({},e),{},{children:(0,wn.jsx)(Vl,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,wn.jsx)(Wh,{content:c?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(c)}}):null,children:(0,wn.jsx)(Qh,{linkComp:s,entityKey:t.key,children:o})})})}))};function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jh=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const em=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,wn.jsx)(lu.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=tt.Children.map(r,(function(e){return Jh(e)?e:null})),u=tt.Children.map(r,(function(e){return Jh(e)?null:e})),l=s&&n;return(0,wn.jsxs)(wn.Fragment,{children:[!l&&(0,wn.jsx)(wn.Fragment,{children:c}),(0,wn.jsx)(zl,{children:u})]})};function tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rm=(0,un.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,y=e.tooltips,v=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,tt.useRef)(null),k=(0,tt.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,tt.useState)(S()),D=(0,En.A)(j,2),P=D[0],_=D[1],A=(0,tt.useState)(E()),T=(0,En.A)(A,2),C=T[0],M=T[1],I=(0,tt.useState)(!1),N=(0,En.A)(I,2),F=N[0],R=N[1],L=function(e){t&&t(e)},H=(0,tt.useCallback)(m||function(){},[]),W=(0,tt.useCallback)(Ji()(H,800,{trailing:!0}),[]),B=Boolean(p),V=Boolean(f),U=Boolean(w);return(0,wn.jsx)(Fl,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){_(S()),M(E())}),0)},children:(0,wn.jsx)(Rl,{ref:k,children:(0,wn.jsx)(fl,nm(nm({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:P,wrapperHeight:C,components:{ClearIndicator:ml,LoadingIndicator:sd,DropdownIndicator:$l,IndicatorsContainer:id,IndicatorSeparator:null,Menu:$d,MenuList:Zd,MultiValueLabel:Bh,SingleValue:Xh,ValueContainer:em},noOptionsMessage:function(e){return u||("function"==typeof l?(0,wn.jsx)(l,nm({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:v||null,onChange:function(e){d(e),L(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,v),""===e&&"input-change"===n&&L(v)},options:(0,hr.A)(h||[]),onKeyDown:function(e){"Enter"===e.key&&F&&(e.stopPropagation(),x.current&&null===x.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){L(v),R(!0)},onMenuClose:function(){R(!1)},styles:ql(g),loadTooltip:a,tooltips:y,DetailLink:b,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:B,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:U,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const om=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,s=e.onChange;return(0,wn.jsx)(rm,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Xi()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var im,am=un.Ay.div.withConfig({displayName:"StyledBoolEdit"})(im||(im=(0,sn.A)(["\n margin: 5px 0;\n"])));const sm=function(e){return(0,wn.jsx)(am,{children:(0,wn.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var cm,um,lm=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,wn.jsx)(Ih,{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(t)},breakWords:n,className:r})},dm=un.Ay.div.withConfig({displayName:"StyledOption"})(cm||(cm=(0,sn.A)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),mn.hs.space(-1),mn.hs.space(-1.5)),fm=un.Ay.span.withConfig({displayName:"StyledLabel"})(um||(um=(0,sn.A)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,mn.Ed)(),mn.hs.space(-1.5));function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mm={single:"radio",multiple:"checkbox"},gm={single:{checked:!1},multiple:{}},ym=function(e,t){return t?(0,wn.jsx)(lm,{value:e}):e},vm=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,wn.jsxs)(dm,{children:[!s&&(0,wn.jsx)("input",{name:t,type:mm[c],checked:i||!1,onChange:l,id:n,disabled:a}),(0,wn.jsx)(fm,{children:o||ym(r,u)})]})};const bm=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return hm(hm({},t),t.id===e.target.id?{checked:e.target.checked}:gm[r.selectionType])}));t({options:o})}};return(0,wn.jsx)(wn.Fragment,{children:n.options.map((function(e){return(0,wn.jsx)(vm,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};c(98639);function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xm=(0,tt.lazy)((function(){return Promise.all([c.e(95),c.e(722)]).then(c.bind(c,65066))}));const km=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:(t=e.value,(0,wn.jsx)("div",{children:(0,wn.jsx)("p",{children:t})})),children:(0,wn.jsx)(xm,Om({},e))});var t};var Sm,Em=un.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Sm||(Sm=(0,sn.A)(["\n margin-top: ",";\n"])),mn.hs.space(-1.5));const jm=(0,un.SL)(Mn.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,wn.jsx)(Em,{children:(0,wn.jsx)(km,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Dm,Pm,_m,Am=un.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Dm||(Dm=(0,sn.A)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Tm=un.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Pm||(Pm=(0,sn.A)(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Ni,Ri,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Cm=un.Ay.input.withConfig({displayName:"StyledTimeInput"})(_m||(_m=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri),Mm=c(73082),Im="react-datepicker-time__input",Nm="react-datepicker__day",Fm="react-datepicker__input",Rm=function(e){return e.classList.contains(Nm)},Lm=function(e){return e.classList.contains(Im)},Hm=function(e){return e.classList.contains(Fm)},Wm=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Nm,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Bm=function(e,t){var n=null==e?void 0:e.form;if(n){var r=(0,hr.A)(n).indexOf(e);if(r>=0)Vm(n[r+(t?2:3)])}else Mm.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},Vm=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Um=function(e){if(!e)return null;var t=(0,_d.Hle)(e.toString());return isNaN(t)?null:t},zm=function(e){return e?e.toISOString():null};const Ym=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?Um:c,l=n.dateToValue,d=void 0===l?zm:l,f=(0,tt.useRef)(null),p=(0,tt.useState)(!1),h=(0,En.A)(p,2),m=h[0],g=h[1],y=u(e),v=i?u(i):void 0,b=a?u(a):void 0;(0,tt.useEffect)((function(){f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m)}),[m]);var w=function(){return g(!1)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},x=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},k=function(){t(null),x(null)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=O(!1);if(n){var r=y||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return(0,_d.avh)((0,_d.glI)((0,_d.gtt)(e,s),i),r)}(n,{hour:(0,_d.qZx)(r),minute:(0,_d.Osm)(r),second:(0,_d.SyE)(r)}):n;E(o,e)}},E=function(n,r){if(n){var i,a=!e&&Boolean(n),c=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!c&&o.some((function(e){return(0,_d.uv4)(c,e)})),l=(0,_d.ol1)(n),p=(0,_d.qZx)(n)!==(0,_d.qZx)(l)||(0,_d.Osm)(n)!==(0,_d.Osm)(l);(a&&!p||u)&&s&&(n=Ad.A.setCurrentTime(n)),t(d(n))}else k();var h;s||"click"!==(null==r?void 0:r.type)||(w(),Vm(null===(h=f.current)||void 0===h?void 0:h.input))},j=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Hm(t.target))w();else if(Lm(t.target)){var i;x(y||O(!0)),Wm(null===(i=f.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(Rm(t.target)){var a;w(),function(e){var t=null==e?void 0:e.form;if(t){var n=(0,hr.A)(t).indexOf(e);n>=1&&Vm(t[n-1])}else Mm.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(a=f.current)||void 0===a?void 0:a.input)}}else if(Hm(t.target)&&m)S(t),w(),Bm(null===(n=f.current)||void 0===n?void 0:n.input,o);else if(Lm(t.target)){var c;w(),Bm(null===(c=f.current)||void 0===c?void 0:c.input,o)}else if(Rm(t.target)){var u,l;if(s)S(t,!0),x(null),r=null===(u=f.current)||void 0===u||null===(u=u.calendar)||void 0===u?void 0:u.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Im));e&&e.focus({preventScroll:!0})}}),0);else S(t),w(),Bm(null===(l=f.current)||void 0===l?void 0:l.input,o)}if("Enter"===t.key&&(w(),setTimeout((function(){var e;Vm(null===(e=f.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(m){if(m&&null===O(!1)){var d;x(y||O(!0)),Wm(null===(d=f.current)||void 0===d||null===(d=d.calendar)||void 0===d?void 0:d.componentNode)}}else g(!0),t.key="Handled".concat(t.key)},D=function(){var e;g((function(e){return!e})),x(null),Vm(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:w,onInputClick:D,onKeyDown:j,onChange:E,onCalendarOpen:function(){x(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:y,showTimeInput:s,minDate:v,maxDate:b,ref:f,className:Fm},timeInputProps:{onKeyDown:j,className:Im},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),k()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var qm="HH:mm:ss",Gm="HH:mm",Km=function(e){return(0,_d.uv4)(e,Gm)},$m=function(e){var t=function(e){return e?(0,_d.uv4)(e,qm)?(0,_d.qgA)(e,qm,new Date):(0,_d.uv4)(e,Gm)?(0,_d.qgA)(e,Gm,new Date):(0,_d.uv4)(e,"HH:")?(0,_d.qgA)(e,"HH:",new Date):(0,_d.uv4)(e,"H")?(0,_d.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,_d.GPZ)(e,Gm)}(t):""};const Qm=function(e,t){var n=$m(e),r=(0,tt.useState)(n),o=(0,En.A)(r,2),i=o[0],a=o[1],s=(0,tt.useRef)(i),c=Mn.usePrevious(n);(0,tt.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=$m(n);p&&!Km(p)||t(p)}},onBlur:function(){if(i!==n){var e=$m(i);e&&Km(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Xm=["value","onChange","onKeyDown"];function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Td();var eg=function(e){var t=e.onChange,n=e.label;return(0,wn.jsx)(er,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},tg=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Je.A)(e,Xm),i=Qm(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,wn.jsx)(Cm,Jm(Jm(Jm({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},ng={strategy:"fixed"};const rg=(0,un.SL)((0,pr.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,y=(0,tt.useRef)(void 0),v=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,tt.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){y.current=e,c(e)},S=Ym(r,k,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),E=S.reactDatePickerProps,j=S.timeInputProps,D=S.clearButtonProps,P=S.calendarButtonProps;return(0,wn.jsx)(Am,{immutable:t,id:n,tabIndex:"-1",children:(0,wn.jsxs)(Tm,{immutable:t,ref:w,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==y.current?y.current:r;g.onBlur(t)}e.stopPropagation()},"data-ignore-arrow-navigation":!0,children:[(0,wn.jsx)(Ed(),Jm(Jm({id:n?"".concat(n,"-datepicker"):null,popperClassName:cd},E),{},{disabled:t,dateFormat:[].concat((0,hr.A)(m),(0,hr.A)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:v,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,wn.jsx)(tg,Jm({},j)),showTimeSelect:d,timeIntervals:15,popperProps:ng,portalId:"react-datepicker",todayButton:(0,wn.jsx)(eg,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,wn.jsx)(cr,Jm({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},D)),!t&&(0,wn.jsx)(cr,Jm({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},P))]})})})));function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ig=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,s=e.placeholder,c=(0,pr.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(Ad.A.getLocalizedDateFormat(c.locale)),d=Ad.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,Ad.A.useTwoDigitYear(l),Ad.A.useTwoDigitYear(d)];return(0,wn.jsx)(rg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:s,events:a},u))};function ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const sg=(0,pr.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,pr.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Ad.A.getLocalizedDateTimeFormat(a.locale)),u="".concat(Ad.A.getLocalizedDateFormat(a.locale)),l=Ad.A.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Ad.A.useTwoDigitYear(c),Ad.A.useTwoDigitYear(l)],f=Ad.A.getLocalizedDateFormatWithoutPunctuation(a.locale),p=[u,f,Ad.A.useTwoDigitYear(u),Ad.A.useTwoDigitYear(f)];return(0,wn.jsx)(rg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ag(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:i},s))}));var cg,ug,lg,dg,fg,pg,hg,mg,gg=un.Ay.section.withConfig({displayName:"StyledSection"})(cg||(cg=(0,sn.A)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),yg=un.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(ug||(ug=(0,sn.A)(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),Xn,mn.hs.space(-2)),vg=un.Ay.div.withConfig({displayName:"StyledDropzone"})(lg||(lg=(0,sn.A)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Xn,mn.t7.color("backgroundItemHover")),bg=un.Ay.div.withConfig({displayName:"StyledUploadInput"})(dg||(dg=(0,sn.A)(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,mn.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),mn.t7.color("paper"),(function(e){return e.immutable?mn.Db.shade2(e):mn.Db.base(e)}),mn.hs.space(-2),Xn,mn.hs.space(-3.1),mn.hs.space(-1.5)),wg=un.Ay.div.withConfig({displayName:"StyledUploadProgress"})(fg||(fg=(0,sn.A)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),mn.hs.space(-2)),Og=(0,un.Ay)(No.oY).withConfig({displayName:"StyledUploadProgressText"})(pg||(pg=(0,sn.A)(["\n && {\n ","\n }\n"])),(0,mn.Ed)({fontSize:mn.hs.font(-1)})),xg=un.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(hg||(hg=(0,sn.A)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),mn.hs.space(-2)),kg=un.Ay.div.withConfig({displayName:"StyledView"})(mg||(mg=(0,sn.A)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),mn.hs.space(-2));function Sg(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Eg(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function jg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Dg(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Pg=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function _g(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Pg.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Ag=[".DS_Store","Thumbs.db"];function Tg(e){return"object"==typeof e&&null!==e}function Cg(e){return Fg(e.target.files).map((function(e){return _g(e)}))}function Mg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return _g(e)}))]}}))}))}function Ig(e,t){return Sg(this,void 0,void 0,(function(){var n;return Eg(this,(function(r){switch(r.label){case 0:return e.items?(n=Fg(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Rg))]):[3,2];case 1:return[2,Ng(Lg(r.sent()))];case 2:return[2,Ng(Fg(e.files).map((function(e){return _g(e)})))]}}))}))}function Ng(e){return e.filter((function(e){return-1===Ag.indexOf(e.name)}))}function Fg(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Rg(e){if("function"!=typeof e.webkitGetAsEntry)return Hg(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Bg(t):Hg(e)}function Lg(e){return e.reduce((function(e,t){return Dg(Dg([],jg(e),!1),jg(Array.isArray(t)?Lg(t):[t]),!1)}),[])}function Hg(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=_g(t);return Promise.resolve(n)}function Wg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return[2,e.isDirectory?Bg(e):Vg(e)]}))}))}function Bg(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Sg(i,void 0,void 0,(function(){var i,a,s;return Eg(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(Wg)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Vg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=_g(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Ug=c(9455);function zg(e){return function(e){if(Array.isArray(e))return Qg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){Gg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||$g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $g(e,t){if(e){if("string"==typeof e)return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qg(e,t):void 0}}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xg="file-invalid-type",Zg="file-too-large",Jg="file-too-small",ey="too-many-files",ty=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Xg,message:"File type must be ".concat(t)}},ny=function(e){return{code:Zg,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},ry=function(e){return{code:Jg,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},oy={code:ey,message:"Too many files"};function iy(e,t){var n="application/x-moz-file"===e.type||(0,Ug.A)(e,t);return[n,n?null:ty(t)]}function ay(e,t,n){if(sy(e.size))if(sy(t)&&sy(n)){if(e.size>n)return[!1,ny(n)];if(e.size<t)return[!1,ry(t)]}else{if(sy(t)&&e.size<t)return[!1,ry(t)];if(sy(n)&&e.size>n)return[!1,ny(n)]}return[!0,null]}function sy(e){return null!=e}function cy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function uy(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ly(e){e.preventDefault()}function dy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!cy(e)&&t&&t.apply(void 0,[e].concat(r)),cy(e)}))}}function fy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function py(e){return/^.*\.[\w]+$/.test(e)}var hy=["children"],my=["open"],gy=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],yy=["refKey","onChange","onClick"];function vy(e){return function(e){if(Array.isArray(e))return Oy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function by(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||wy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wy(e,t){if(e){if("string"==typeof e)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oy(e,t):void 0}}function Oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ky(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xy(Object(n),!0).forEach((function(t){Sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ey(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jy=(0,tt.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ky(ky({},Dy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,v=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,E=t.validator,j=(0,tt.useMemo)((function(){return function(e){if(sy(e))return Object.entries(e).reduce((function(e,t){var n=Kg(t,2),r=n[0],o=n[1];return[].concat(zg(e),[r],zg(o))}),[]).filter((function(e){return fy(e)||py(e)})).join(",")}(n)}),[n]),D=(0,tt.useMemo)((function(){return function(e){if(sy(e)){var t=Object.entries(e).filter((function(e){var t=Kg(e,2),n=t[0],r=t[1],o=!0;return fy(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(py)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Kg(t,2),r=n[0],o=n[1];return qg(qg({},e),{},Gg({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),P=(0,tt.useMemo)((function(){return"function"==typeof g?g:Cy}),[g]),_=(0,tt.useMemo)((function(){return"function"==typeof m?m:Cy}),[m]),A=(0,tt.useRef)(null),T=(0,tt.useRef)(null),C=by((0,tt.useReducer)(Ty,Ay),2),M=C[0],I=C[1],N=M.isFocused,F=M.isFileDialogActive,R=(0,tt.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),L=function(){!R.current&&F&&setTimeout((function(){T.current&&(T.current.files.length||(I({type:"closeDialog"}),_()))}),300)};(0,tt.useEffect)((function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}}),[T,F,_,R]);var H=(0,tt.useRef)([]),W=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,tt.useEffect)((function(){return b&&(document.addEventListener("dragover",ly,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",ly),document.removeEventListener("drop",W))}}),[A,b]),(0,tt.useEffect)((function(){return!r&&v&&A.current&&A.current.focus(),function(){}}),[A,v,r]);var B=(0,tt.useCallback)((function(e){S?S(e):console.error(e)}),[S]),V=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e),H.current=[].concat(vy(H.current),[e.target]),uy(e)&&Promise.resolve(o(e)).then((function(t){if(!cy(e)||k){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=Kg(iy(e,n),1)[0],i=Kg(ay(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:j,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:E});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,k,j,a,i,s,c,E]),U=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e);var t=uy(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,k]),z=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e);var t=H.current.filter((function(e){return A.current&&A.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),uy(e)&&l&&l(e))}),[A,l,k]),Y=(0,tt.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=by(iy(e,j),2),o=t[0],s=t[1],c=by(ay(e,a,i),2),u=c[0],l=c[1],d=E?E(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[oy]})})),n.splice(0)),I({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[I,s,j,a,i,c,f,p,h,E]),q=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e),H.current=[],uy(e)&&Promise.resolve(o(e)).then((function(t){cy(e)&&!k||Y(t,e)})).catch((function(e){return B(e)})),I({type:"reset"})}),[o,Y,B,k]),G=(0,tt.useCallback)((function(){if(R.current){I({type:"openDialog"}),P();var e={multiple:s,types:D};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){Y(e,null),I({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(R.current=!1,T.current?(T.current.value=null,T.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(_(e),I({type:"closeDialog"}))}))}else T.current&&(I({type:"openDialog"}),P(),T.current.value=null,T.current.click())}),[I,P,_,y,Y,B,D,s]),K=(0,tt.useCallback)((function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[A,G]),$=(0,tt.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,tt.useCallback)((function(){I({type:"blur"})}),[]),X=(0,tt.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?G():setTimeout(G,0))}),[w,G]),Z=function(e){return r?null:e},J=function(e){return O?null:Z(e)},ee=function(e){return x?null:Z(e)},te=function(e){k&&e.stopPropagation()},ne=(0,tt.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Ey(e,gy);return ky(ky(Sy({onKeyDown:J(dy(i,K)),onFocus:J(dy(a,$)),onBlur:J(dy(s,Q)),onClick:Z(dy(c,X)),onDragEnter:ee(dy(u,V)),onDragOver:ee(dy(l,U)),onDragLeave:ee(dy(d,z)),onDrop:ee(dy(f,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,A),r||O?{}:{tabIndex:0}),p)}}),[A,K,$,Q,X,V,U,z,q,O,x,r]),re=(0,tt.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,tt.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Ey(e,yy);return ky(ky({},Sy({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:Z(dy(r,q)),onClick:Z(dy(o,re)),tabIndex:-1},n,T)),i)}}),[T,n,s,q,r]);return ky(ky({},M),{},{isFocused:N&&!r,getRootProps:ne,getInputProps:oe,rootRef:A,inputRef:T,open:Z(G)})}(Ey(e,hy)),o=r.open,i=Ey(r,my);return(0,tt.useImperativeHandle)(t,(function(){return{open:o}}),[o]),rt().createElement(tt.Fragment,null,n(ky(ky({},i),{},{open:o})))}));jy.displayName="Dropzone";var Dy={disabled:!1,getFilesFromEvent:function(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return Tg(e)&&Tg(e.dataTransfer)?[2,Ig(e.dataTransfer,e.type)]:function(e){return Tg(e)&&Tg(e.target)}(e)?[2,Cg(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Mg(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};jy.defaultProps=Dy,jy.propTypes={children:l().func,accept:l().objectOf(l().arrayOf(l().string)),multiple:l().bool,preventDropOnDocument:l().bool,noClick:l().bool,noKeyboard:l().bool,noDrag:l().bool,noDragEventsBubbling:l().bool,minSize:l().number,maxSize:l().number,maxFiles:l().number,disabled:l().bool,getFilesFromEvent:l().func,onFileDialogCancel:l().func,onFileDialogOpen:l().func,useFsAccessApi:l().bool,autoFocus:l().bool,onDragEnter:l().func,onDragLeave:l().func,onDragOver:l().func,onDrop:l().func,onDropAccepted:l().func,onDropRejected:l().func,onError:l().func,validator:l().func};const Py=jy;var _y,Ay={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ty(e,t){switch(t.type){case"focus":return ky(ky({},e),{},{isFocused:!0});case"blur":return ky(ky({},e),{},{isFocused:!1});case"openDialog":return ky(ky({},Ay),{},{isFileDialogActive:!0});case"closeDialog":return ky(ky({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ky(ky({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ky(ky({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ky({},Ay);default:return e}}function Cy(){}function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?My(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ny=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,wn.jsxs)(bg,{immutable:n,children:[(0,wn.jsx)(Py,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,wn.jsx)(gg,{children:(0,wn.jsxs)(vg,Iy(Iy({},t()),{},{children:[(0,wn.jsx)("input",Iy({},n())),_y||(_y=(0,wn.jsx)(er,{icon:"arrow-to-top"}))]}))})}}),o&&(0,wn.jsx)(er,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Fy,Ry=un.Ay.figure.withConfig({displayName:"StyledPreview"})(Fy||(Fy=(0,sn.A)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),mn.hs.space(-2.2),mn.t7.color("border"),mn.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Ly=Ry;var Hy;const Wy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,wn.jsx)("img",{alt:n,title:n,src:t}):(0,wn.jsx)("div",{title:n,children:Hy||(Hy=(0,wn.jsx)(bn.A,{icon:"file-alt"}))});return(0,wn.jsxs)(Ly,{maxDimensionX:i,maxDimensionY:a,children:[(0,wn.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,wn.jsx)(No.Ay.Figcaption,{children:o})]})};var By=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const Vy=function(e){var t=e.file,n=e.text;return(0,wn.jsxs)(wg,{children:[(0,wn.jsx)(Wy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,wn.jsxs)(xg,{children:[(0,wn.jsx)(Sn,{position:mn.xX.position.PREPEND}),(0,wn.jsxs)(Og,{children:[n||"uploading"," (",By(t.size),")"]})]})]})};var Uy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const zy={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return Uy(e,"download",!0)},addParameterToURL:Uy};function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gy=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,wn.jsxs)(kg,{className:"StyledView",children:[(0,wn.jsx)(Wy,qy(qy({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,wn.jsxs)(yg,{children:[!o&&(0,wn.jsx)(er,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,wn.jsx)(er,{children:(0,wn.jsx)(Ii.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:zy.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qy=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,tt.useRef)(t),s=(0,tt.useState)({isUploading:!1,previewFile:null}),c=(0,En.A)(s,2),u=c[0],l=c[1];return(0,tt.useEffect)((function(){Ao()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,wn.jsx)(Gy,$y($y({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,wn.jsx)(Vy,$y({file:u.previewFile,text:r.uploading},e)):(0,wn.jsx)(Ny,$y($y({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};const Xy=function(e){var t=e.onChange,n=e.options,r=void 0===n?{}:n,o=e.immutable,i=e.value;return(0,wn.jsx)(Qy,{onUpload:function(e){null===e?t&&t(null):r.upload&&r.upload(e)},onChoose:r.choose,immutable:o,textResources:{upload:r.uploadText,uploading:r.uploadingText,delete:r.deleteText,download:r.downloadText},value:i||null})};var Zy,Jy,ev=un.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Zy||(Zy=(0,sn.A)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Ri,(function(e){return e.width})),tv=un.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(Jy||(Jy=(0,sn.A)(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),mn.hs.space(1),(function(e){return e.immutable?mn.t7.color("textDisabled"):mn.t7.color("text")}),(function(e){return e.immutable&&"text"}));const nv=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=void 0===i?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:i,s=Ad.A.millisecondsToDuration(n),c=(0,tt.useState)(!1),u=(0,En.A)(c,2),l=u[0],d=u[1],f=function(e,t){var n,r,i=null!==t?t:s.minutes,a=null!==e?e:s.hours;""!==i||""!==a?(i>=60&&(a=0),o((r=i,(n=a)||r?((n<0||r<0)&&(n=Bi(n),r=Bi(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){d(!0)},h=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===a.allowNegative||e.preventDefault()},m=function(){return!0===a.allowNegative?"-?d+":"d+"},g=function(){return l||"number"==typeof n},y=function(e){return 9*(e+"").length},v=r&&Boolean(s.seconds);return(0,wn.jsxs)(Fi,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,min:!0===a.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(t,null)},onKeyPress:h,pattern:m(),step:1,width:y(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.hoursLabel})]}),(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(null,t)},onKeyPress:h,pattern:m(),step:1,width:y(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.minutesLabel})]}),v&&(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,onChange:function(){},width:y(s.seconds),type:"number",value:s.seconds+""}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.secondsLabel})]})]})};var rv;const ov=un.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(rv||(rv=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const iv=Mn.Debouncer((function(e){return(0,wn.jsxs)(Fi,{immutable:e.immutable,children:[(0,wn.jsx)(ov,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var av=c(85501),sv=c(63662),cv=c(44383),uv=c.n(cv);function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lv(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fv(){fv=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),(0,sv.A)(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,av.A)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,Po.A)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},fv.apply(this,arguments)}var pv,hv=["key","display","postcode","city","country","latitude","longitude"],mv=function(e){return e*Math.PI/180},gv=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:mv(i),longitude:mv(a)}};function yv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function vv(){}function bv(e){return!!(e||"").match(/\d/)}function wv(e){return null==e}function Ov(e){return wv(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function xv(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function kv(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Sv(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Ev(e,t){return Array(t+1).join(e)}function jv(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Ev("0",Math.abs(a))+o:a>=s?o+=Ev("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Dv(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=kv(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Sv(u[1]||"",t,n)}function Pv(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(pv||(pv={}));var _v,Av,Tv,Cv=(_v=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Tv=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Av&&e.length===Av.length&&e.every((function(e,t){return e===Av[t]}))?Tv:(Av=e,Tv=_v.apply(void 0,e))});function Mv(e){return Math.max(e.selectionStart,e.selectionEnd)}function Iv(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Nv(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Fv(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Rv(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(bv(e[n])||bv(e[n-1]));return t}function Lv(e,t,n,r,o,i){void 0===i&&(i=vv);var a=function(e){var t=(0,tt.useRef)(e);t.current=e;var n=(0,tt.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Ov(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?jv(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,tt.useState)((function(){return a(wv(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;wv(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,tt.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Hv(e){return e.replace(/[^0-9]/g,"")}function Wv(e){return e}function Bv(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Wv);var s=e.removeFormatting;void 0===s&&(s=Hv);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=vv);var p=e.onKeyDown;void 0===p&&(p=vv);var h=e.onMouseUp;void 0===h&&(h=vv);var m=e.onFocus;void 0===m&&(m=vv);var g=e.onBlur;void 0===g&&(g=vv);var y=e.value,v=e.getCaretBoundary;void 0===v&&(v=Rv);var b=e.isValidInputCharacter;void 0===b&&(b=bv);var w=e.isCharacterSame,O=yv(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),x=Lv(y,c,Boolean(u),a,s,l),k=x[0],S=k.formattedValue,E=k.numAsString,j=x[1],D=(0,tt.useRef)({formattedValue:S,numAsString:E}),P=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},j(e,t)},_=(0,tt.useState)(!1),A=_[0],T=_[1],C=(0,tt.useRef)(null),M=(0,tt.useRef)({setCaretTimeout:null,focusTimeout:null});(0,tt.useEffect)((function(){return T(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=a,N=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},F=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Pv(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Pv(e,t)}),0))},R=function(e,t,n){return Fv(e,t,v(e),n)},L=function(e,t,n){var r=v(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Nv);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,S,e,n,r,b,w);return o=Fv(t,o,r)};(0,tt.useEffect)((function(){var e=D.current,t=e.formattedValue,n=e.numAsString;S===t||S===E&&t===n||P(N(S,E),{event:void 0,source:pv.props})}),[S,E]);var H=C.current?Mv(C.current):void 0;("undefined"!=typeof window?tt.useLayoutEffect:tt.useEffect)((function(){var e=C.current;if(S!==D.current.formattedValue&&e){var t=L(D.current.formattedValue,S,H);e.value=S,F(e,t,S)}}),[S]);var W=function(e,t,n){var r=Cv(S,e),o=Object.assign(Object.assign({},r),{lastValue:S}),i=s(e,o),a=I(i);if(i=s(a,void 0),d&&!d(N(a,i))){var c=t.target,u=Mv(c),l=L(e,S,u);return c.value=S,F(c,l,S),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=Mv(r);r.value=t,void 0!==(n=L(s,t,c))&&F(r,n,t)}t!==S&&P(N(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},B=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:B},O,{type:t,value:S,onChange:function(e){var t=e.target.value;W(t,e,pv.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=R(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||b(a[t])?"Backspace"!==r||b(a[t])||(s=R(a,t,"left")):s=R(a,t,"right");s!==t&&F(n,s,a),e.isUnitTestRun&&F(n,s,a),p(e)}else p(e)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=R(r,e);o!==e&&F(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;C.current=t,M.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=R(i,r);a===r||0===r&&o===i.length||F(t,a,i),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){C.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?rt().createElement(rt().Fragment,null,o(S,O)||null):rt().createElement("span",Object.assign({},O,{ref:i}),S);if(r){var U=r;return rt().createElement(U,Object.assign({},V,{ref:i}))}return rt().createElement("input",Object.assign({},V,{ref:i}))}function Vv(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=Uv(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=kv(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Sv(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function Uv(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function zv(e,t,n){var r;void 0===t&&(t=Iv(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=Uv(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(bv(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var y=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-a.length||x<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var j=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?j=D:(d>D||d>e.length-a.length)&&(j=d),e=e.substring(0,j),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+xv(e),t?"g":void 0)}(h,!0))||[]).join("");var P=e.indexOf(h);e=e.replace(new RegExp(xv(h),"g"),(function(e,t){return t===P?".":""}));var _=kv(e,o),A=_.beforeDecimal,T=_.afterDecimal,C=_.addNegation;return u.end-u.start<c.end-c.start&&""===A&&m&&!parseFloat(T)&&(e=C?"-":""),e}function Yv(e){e=function(e){var t=Uv(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=vv);var i=e.onBlur;void 0===i&&(i=vv);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=yv(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Uv(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return Vv(t,e)},b=function(t,n){return zv(t,n,e)},w=wv(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);wv(d)?wv(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Ov(e)?e:("number"==typeof e&&(e=jv(e)),O&&"number"==typeof s?Dv(e,s,Boolean(c)):e)},k=Lv(x(d),x(l),Boolean(O),v,b,p),S=k[0],E=S.numAsString,j=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:j,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||bv(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Cv(n,t).to;return!!(o>=c.start&&o<c.end&&y&&y.includes(a)&&s===g)||a===s},onValueChange:D,format:v,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Pv(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Pv(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[i]===g&&Pv(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Pv(t,i-1),"Delete"===r&&d[i]===f&&Pv(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Dv(n,s,c)),n!==E){var o=Vv(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:pv.event})}i(t)}})}function qv(e){var t=Yv(e);return rt().createElement(Bv,Object.assign({},t))}var Gv,Kv=["immutable"];function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qv=(0,un.Ay)((function(e){e.immutable;var t=(0,Je.A)(e,Kv);return(0,wn.jsx)(qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Gv||(Gv=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const Xv=Qv;function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eb=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},tb=function(e){return null!=e&&!isNaN(parseFloat(e))},nb=function(e,t,n){return!tb(n)||!(tb(t)&&n>t)&&!(tb(e)&&n<e)},rb=function(e,t){return function(n){var r=n.floatValue;return eb(r)<eb(e)||nb(e,t,r)}};const ob=(0,pr.injectIntl)(Mn.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,s,u),g=Jv(Jv({isAllowed:rb(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(Xv,Jv(Jv({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&nb(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!nb(c,m,r)&&(t.target.value=null)}}))})}),800));const ib=Mn.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,wn.jsx)(Fi,{immutable:o,children:(0,wn.jsx)(Xv,{isAllowed:rb(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),nb(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var ab,sb,cb,ub=un.Ay.div.withConfig({displayName:"StyledWrapper"})(ab||(ab=(0,sn.A)(["\n display: flex;\n justify-content: stretch;\n"]))),lb=un.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(sb||(sb=(0,sn.A)(["\n flex-grow: 1;\n"]))),db=un.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(cb||(cb=(0,sn.A)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),mn.t7.color("border"),mn.hs.space(-.8),mn.hs.space(.5));function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hb=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,s=a.suggestions,c=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,f=a.emptySearchText,p=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?uv()(e,hv):void 0}(r),y=function(e){return e?e.map(gv):[]}(s);return(0,wn.jsxs)(ub,{children:[(0,wn.jsx)(lb,{children:(0,wn.jsx)(rm,{id:t,immutable:n,onChange:function(e){o(pb(pb({},function(e,t){return t?dv(dv({},e),uv()(t,hv)):pi()(e,hv)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,hr.A)(e.matchAll(fv(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return dv(dv({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,wn.jsx)(db,{children:(0,wn.jsx)(ib,{value:m,onChange:function(e){o(pb(pb({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var mb,gb=(0,tt.lazy)((function(){return c.e(262).then(c.bind(c,8810))}));const yb=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=void 0===o?"":o,a=e.options;if(r)return(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})});var s=a||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,wn.jsx)(tt.Suspense,{fallback:mb||(mb=(0,wn.jsx)("i",{})),children:(0,wn.jsx)(gb,{id:t,onChange:function(e){n&&n(e)},value:i,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var vb,bb;function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xb=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,wn.jsxs)(No.Ay.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Ob(Ob({},r),{},(0,et.A)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,et.A)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},p={value:r.city||"",onChange:u("city"),disabled:i};return(0,wn.jsx)(Si,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,wn.jsxs)(Yi,{immutable:i,name:a,ref:u,children:[(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(vb||(vb=(0,wn.jsx)(No.Ay.Span,{children:"/"}))),(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,wn.jsxs)(Hi,{children:[n.isLoading&&(bb||(bb=(0,wn.jsx)(Sn,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,wn.jsx)(Ii.Ay,{href:Vi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Sb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const jb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};function Db(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Pb(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Db(i,r,o,a,s,"next",e)}function s(e){Db(i,r,o,a,s,"throw",e)}a(void 0)}))}}var _b;const Ab=un.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(_b||(_b=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const Tb=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.onLibLoaded,a=zi()(e,"options.defaultCountry")||"CH",s=(0,tt.useState)(null),u=(0,En.A)(s,2),l=u[0],d=u[1],p=rt().createRef();(0,tt.useEffect)((function(){var e=function(){var e=Pb(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(222).then(c.bind(c,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var h=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},m=n&&null!=l&&l.AsYouType?new l.AsYouType(a).input(n):n||"";return(0,wn.jsxs)(Fi,{immutable:r,children:[(0,wn.jsx)(Ab,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,a):r,i=mi()(o)?new l.AsYouType(a).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(i);var s=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(a).input(t),o=new l.AsYouType(a).input(e),i=h(r,n),s=h(o,n)-i;window.requestAnimationFrame(function(){var e=n+s;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,s)},immutable:r||!l,ref:p,value:m}),m&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ib=function(e){return e.map((function(e){return uv()(e,["key","display"])}))};const Nb=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,wn.jsx)(rm,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=i.options.map((function(e){return Mb(Mb({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Ib(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Ib(i.options)})};function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Rb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Bb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Vb=Mn.Debouncer((function(e){return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(ov,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var Ub,zb,Yb,qb,Gb,Kb=c(60115),$b=un.Ay.div.withConfig({displayName:"StyledTermsEdit"})(Ub||(Ub=(0,sn.A)(["\n margin: "," 0;\n display: flex;\n"])),mn.hs.space(-1.4)),Qb=un.Ay.input.withConfig({displayName:"StyledCheckbox"})(zb||(zb=(0,sn.A)(["\n margin-right: ",";\n"])),mn.hs.space(-1.5)),Xb=(0,un.AH)(Yb||(Yb=(0,sn.A)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),mn.t7.color("secondary"),mn.t7.color("secondaryLight"),mn.t7.color("secondary")),Zb=un.Ay.a.withConfig({displayName:"StyledTermsLink"})(qb||(qb=(0,sn.A)(["\n ","\n"])),Xb),Jb=(0,un.Ay)(lm).withConfig({displayName:"StyledHtmlFormatter"})(Gb||(Gb=(0,sn.A)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Xb);const ew=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,s=e.id,c=e.immutable,u=(0,tt.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:Kb.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,tt.useCallback)((function(){return o(null)}),[o]),d=(0,tt.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,tt.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,tt.useEffect)((function(){n()}),[]),(0,tt.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!c||d(!1)}),[r,i,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,wn.jsx)(Qb,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,wn.jsx)(Zb,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,wn.jsx)(Jb,{value:r.label,breakWords:!0})});return!c&&(0,wn.jsxs)($b,{children:[p,h||(0,wn.jsx)(Jb,{value:null==r?void 0:r.label,breakWords:!0})]})};const tw=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var nw,rw,ow,iw=(0,un.AH)(nw||(nw=(0,sn.A)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Ri),aw=un.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(rw||(rw=(0,sn.A)(["\n display: grid;\n width: 100%;\n overflow: hidden;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),iw),sw=un.Ay.textarea.withConfig({displayName:"StyledTextarea"})(ow||(ow=(0,sn.A)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),iw,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lw=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,tt.useState)(t),c=(0,En.A)(s,2),u=c[0],l=c[1],d=!tw(),f=tw(),p=(0,tt.useCallback)(Ji()(l,500,{trailing:!0}),[]);return(0,tt.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,wn.jsx)(aw,uw(uw({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,wn.jsx)(sw,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};const dw=Mn.Debouncer((function(e){return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(lw,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var fw;const pw=un.Ay.input.withConfig({displayName:"StyledTimeEdit"})(fw||(fw=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gw=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=Qm(n,t),s=a.inputProps,c=a.clearButtonProps,u=n&&!r;return(0,wn.jsxs)(Fi,{immutable:r,children:[(0,wn.jsx)(pw,mw({type:"text",disabled:r,id:o,immutable:r,name:i},s)),u&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(cr,mw(mw({icon:"times"},c),{},{tabIndex:-1}))})]})};var yw;const vw=un.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(yw||(yw=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const bw=Mn.Debouncer((function(e){return(0,wn.jsxs)(Fi,{immutable:e.immutable,children:[(0,wn.jsx)(vw,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xw={boolean:sm,"boolean-select":om,choice:bm,code:jm,date:ig,datetime:sg,document:Xy,duration:nv,email:iv,geosearch:hb,html:yb,integer:ib,address:$i,location:xb,"multi-remote":Sb,"multi-select":jb,number:ob,phone:Tb,"pseudo-select":Nb,remote:Rb,"search-filter":Hb,"single-select":Bb,string:Vb,terms:ew,text:dw,url:bw,time:gw};const kw=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(xw[t]){var u=xw[t],l=Ow(Ow({},pi()(i,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,wn.jsx)("div",Ow(Ow({},l),{},{"data-cy":"form-field",children:(0,wn.jsx)(u,Ow(Ow({value:n,onChange:null==i?void 0:i.onChange},mi()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function Sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jw=function(e){return(0,wn.jsx)(Wi,{children:(0,wn.jsx)(kw,Ew({componentType:e.type},pi()(e,"type")))})};const Dw=(0,un.SL)((function(e){return(0,wn.jsx)(bn.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Pw=function(e){var t=(0,pr.useIntl)();return(0,wn.jsx)(No.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,wn.jsx)(pr.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var _w;const Aw=(0,pr.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),_w||(_w=(0,wn.jsx)(No.Ay.Span,{}));var o=(0,_d.GPZ)(r,"HH:mm");return(0,wn.jsxs)(No.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,wn.jsx)(pr.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Tw;function Cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Iw=function(e){var t=e.options||{},n=(0,wn.jsxs)(wn.Fragment,{children:[t.title&&(0,wn.jsx)(No.Ay.H5,{children:t.title}),(0,wn.jsx)(lm,Mw({},e))]});return"text"===t.mode?n:(0,wn.jsx)(Wh,{content:n,isPlainHtml:!0,children:Tw||(Tw=(0,wn.jsx)(Ch,{children:(0,wn.jsx)(bn.A,{icon:"question-circle"})}))})};const Nw=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=zi()(r,t.resourceKey,null);return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(Wh,{content:i?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(i)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,wn.jsx)(Ii.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,wn.jsx)(Ii.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:zy.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Fw=function(e){return(0,wn.jsx)(Qy,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Rw=function(e){var t=e.value,n=parseInt(t),r=Ad.A.formatDuration(n);return(0,wn.jsx)(No.Ay.Time,{dateTime:r,title:r,children:r})};const Lw=function(e){return(0,wn.jsx)(Ii.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const Hw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ww(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vw=function(){return"; "};const Uw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,wn.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,wn.jsx)(a.DetailLink,Bw(Bw({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,wn.jsx)(Vw,{},"sep".concat(n)),t]})):null;return(0,wn.jsx)(No.Ay.Span,{breakWords:r,useTitle:o,children:c})};const zw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,wn.jsx)(pr.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Yw=function(e){var t;return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,wn.jsx)(pr.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kw=(0,tt.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const $w=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:"",children:(0,wn.jsx)(Kw,Gw({},e))})};function Qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=zi()(a,t.key,null);t=Io.getOrFirst(t);var d=(0,wn.jsx)(No.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,wn.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,wn.jsx)(c.DetailLink,Xw(Xw({},u),{},{entityKey:t.key,children:(0,wn.jsx)(Wh,{content:l?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(l)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const Jw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const eO=function(e){return e.breakWords?(0,wn.jsx)(No.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,wn.jsx)("br",{},t)]:e})))}):(0,wn.jsx)(No.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var tO=function(e,t){return parseInt(e.split(":")[t])||0};const nO=(0,pr.injectIntl)((function(e){var t=e.value,n=(e.intl,tO(t,0)),r=tO(t,1),o=tO(t,2),i=tO(t,3),a=new Date(2e3,1,1,n,r,o,i),s=(0,_d.GPZ)(a,"HH:mm:ss.SSS"),c=(0,_d.GPZ)(a,"HH:mm");return(0,wn.jsx)(No.Ay.Time,{dateTime:s,title:c,children:c})}));const rO=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,wn.jsx)(Ii.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var oO,iO={boolean:Dw,date:Pw,datetime:Aw,document:Fw,"document-compact":Nw,duration:Rw,email:Lw,html:lm,integer:Hw,"multi-remote":Uw,"multi-select":Uw,number:zw,percent:Yw,phone:$w,remote:Zw,"single-select":Zw,string:Jw,text:eO,time:nO,url:rO,description:Iw};const aO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(iO[t]){var u=iO[t];return(0,wn.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),oO||(oO=(0,wn.jsx)("div",{}))};var sO;const cO=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?sO||(sO=(0,wn.jsx)("span",{})):(0,wn.jsx)(aO,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},uO=cO;var lO="checked",dO="indeterminate",fO="unchecked";const pO=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,tt.useRef)(null);return(0,tt.useLayoutEffect)((function(){i.current.indeterminate=t===dO,i.current.checked=t===lO}),[t]),(0,wn.jsx)("input",{ref:i,onChange:function(e){r(t===dO?fO:e.target.checked?lO:fO)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},hO=pO;var mO;const gO=un.Ay.div.withConfig({displayName:"StyledLayoutBox"})(mO||(mO=(0,sn.A)(["\n height: fit-content;\n margin-bottom: ",";\n"])),mn.hs.space(.25));var yO=function(e){var t=e.children;return(0,wn.jsx)(gO,{children:t})};const vO=(0,tt.memo)(yO);var bO,wO=un.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(bO||(bO=(0,sn.A)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),mn.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(mn.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const OO=wO;const xO=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=void 0===r?250:r,i=(0,tt.useRef)(null),a=(0,tt.useState)(0),s=(0,En.A)(a,2),c=s[0],u=s[1],l=function(){u(i.current.offsetWidth)};return(0,tt.useEffect)((function(){return l(),window.addEventListener("resize",l),function(){return window.removeEventListener("resize",l)}}),[]),(0,wn.jsx)(OO,{ref:i,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:o,children:t})},kO={Box:vO,Container:xO};var SO,EO,jO,DO,PO=c(5016),_O=(0,un.i7)(SO||(SO=(0,sn.A)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),AO=(0,un.AH)(EO||(EO=(0,sn.A)(["\n animation: "," 400ms ease-in-out both;\n"])),_O),TO=un.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(jO||(jO=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),mn.hs.space(-1),AO,PO.oY,mn.hs.space(-1));const CO=un.Ay.div.withConfig({displayName:"StyledLoadMask"})(DO||(DO=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var MO;const IO=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,tt.useState)(!1),s=(0,En.A)(a,2),c=s[0],u=s[1],l=(0,tt.useState)(!0),d=(0,En.A)(l,2),f=d[0],p=d[1];(0,tt.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,wn.jsx)(CO,{className:i,children:h?r:(0,wn.jsxs)(TO,{children:[MO||(MO=(0,wn.jsx)(Sn,{size:"30px"},"loading-spinner")),o&&(0,wn.jsx)(No.Ay.Span,{children:o},"loadingText")]})})};var NO,FO=un.Ay.div.withConfig({displayName:"StyledPanel"})(NO||(NO=(0,sn.A)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),mn.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),mn.t7.color("borderLight"),mn.t7.radii("form"));const RO=FO;var LO=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const HO=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,Je.A)(e,LO),d=(0,tt.useState)(a),f=(0,En.A)(d,2),p=f[0],h=f[1],m="boolean"==typeof o,g=function(){c&&(m?"function"==typeof u&&u(!o):h(!p))};return(0,wn.jsx)(RO,{isFramed:r,"data-cy":l["data-cy"],children:rt().Children.map(t,(function(e){return rt().cloneElement(e,{isFramed:r,isOpen:m?o:p,isToggleable:c,toggleOpenState:g})}))})};var WO,BO=un.Ay.div.withConfig({displayName:"StyledPanelBody"})(WO||(WO=(0,sn.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?mn.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const VO=BO;var UO=["children","isFramed","isOpen"];const zO=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=(0,Je.A)(e,UO);return(0,wn.jsx)(VO,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,wn.jsx)("div",{children:t})})};const YO=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,tt.useState)(t),o=(0,En.A)(r,2),i=o[0],a=o[1];return(0,wn.jsx)(wn.Fragment,{children:rt().Children.map(n,(function(e,t){return rt().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var qO;const GO=un.Ay.div.withConfig({displayName:"StyledPanelGroup"})(qO||(qO=(0,sn.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),mn.hs.space(0),RO,mn.hs.space(-1));function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KO(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const QO=function(e){return(0,wn.jsx)(GO,{children:(0,wn.jsx)(YO,$O({},e))})};var XO,ZO,JO,ex,tx,nx,rx,ox="1px",ix=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(XO||(XO=(0,sn.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),mn.hs.font(1),mn.t7.color("text"),!mn.CN&&(0,un.AH)(ZO||(ZO=(0,sn.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),mn.t7.color("secondaryLight"))),ax=un.Ay.div.withConfig({displayName:"StyledPanelHeader"})(JO||(JO=(0,sn.A)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),mn.t7.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,un.AH)(ex||(ex=(0,sn.A)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),mn.t7.radii("form"),ox,mn.t7.radii("form"),ox):(0,un.AH)(tx||(tx=(0,sn.A)(["\n calc("," - ",")\n "])),mn.t7.radii("form"),ox)}),(function(e){return e.isFramed?(0,un.AH)(nx||(nx=(0,sn.A)(["\n "," ","\n "])),mn.hs.space(-1.7),mn.hs.space(-.375)):0}),!mn.CN&&(0,un.AH)(rx||(rx=(0,sn.A)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ix),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(ox,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ox,";\n }\n "):"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(ox,";\n }\n ")}(e)}));const sx=ax;var cx=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const ux=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=(0,Je.A)(e,cx);return(0,wn.jsxs)(sx,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,wn.jsx)("div",{children:rt().Children.map(t,(function(e){return rt().cloneElement(e)}))}),o&&a&&(0,wn.jsx)(ix,{children:(0,wn.jsx)(bn.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},lx={Body:zO,Group:QO,Header:ux,Wrapper:HO};var dx,fx=un.Ay.div.withConfig({displayName:"StyledPanel"})(dx||(dx=(0,sn.A)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),mn.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),mn.t7.color("borderLight"),mn.t7.radii("form"));const px=fx;const hx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,tt.useState)(i),s=(0,En.A)(a,2),c=s[0],u=s[1];return(0,wn.jsx)(px,{isFramed:r,children:rt().Children.map(t,(function(e){return rt().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var mx,gx,yx=un.Ay.div.withConfig({displayName:"StyledPanelBody"})(mx||(mx=(0,sn.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,un.AH)(gx||(gx=(0,sn.A)(["\n "," "," "," ","\n "])),mn.hs.space(-1),mn.hs.space(.2),mn.hs.space(.2),mn.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const vx=yx;const bx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,wn.jsx)(vx,{isFramed:n,isOpen:r,children:(0,wn.jsx)("div",{children:t})})};var wx;const Ox=un.Ay.div.withConfig({displayName:"StyledPanelGroup"})(wx||(wx=(0,sn.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),mn.hs.space(0),px,mn.hs.space(-1));function xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xx(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sx=function(e){return(0,wn.jsx)(Ox,{children:(0,wn.jsx)(YO,kx({},e))})};var Ex,jx,Dx,Px="1px",_x=un.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Ex||(Ex=(0,sn.A)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),mn.t7.color("paper"),mn.t7.radii("form"),Px,mn.t7.radii("form"),Px,(function(e){return e.isFramed?mn.hs.space(.2):0}),mn.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(Px,";\n }\n ")}(e)})),Ax=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(jx||(jx=(0,sn.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),mn.hs.font(1),mn.t7.color("text"),!mn.CN&&(0,un.AH)(Dx||(Dx=(0,sn.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),mn.t7.color("secondaryLight")));const Tx=_x;const Cx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,wn.jsxs)(Tx,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,wn.jsx)("div",{children:rt().Children.map(t,(function(e){return rt().cloneElement(e)}))}),o&&a&&(0,wn.jsx)(Ax,{children:(0,wn.jsx)(bn.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Mx={Body:bx,Group:Sx,Header:Cx,Wrapper:hx};var Ix={Body:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Body),Kb.A.EmbedType.widget,Mx.Body),Group:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Group),Kb.A.EmbedType.widget,Mx.Group),Header:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Header),Kb.A.EmbedType.widget,Mx.Header),Wrapper:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Wrapper),Kb.A.EmbedType.widget,Mx.Wrapper)};const Nx={Body:Kb.A.embedStrategyFactory({mapping:Ix.Body}),Group:Kb.A.embedStrategyFactory({mapping:Ix.Group}),Header:Kb.A.embedStrategyFactory({mapping:Ix.Header}),Wrapper:Kb.A.embedStrategyFactory({mapping:Ix.Wrapper})};var Fx,Rx,Lx,Hx=un.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Fx||(Fx=(0,sn.A)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),mn.hs.space(0),mn.t7.color("paper"));const Wx=function(e){var t=e.onYes,n=e.onNo;return(0,wn.jsxs)(Hx,{children:[(0,wn.jsx)(er,{ink:"primary",look:"raised",type:"button",onClick:t,autoFocus:!0,children:Rx||(Rx=(0,wn.jsx)(pr.FormattedMessage,{id:"client.common.yes"}))}),(0,wn.jsx)(er,{type:"button",onClick:n,children:Lx||(Lx=(0,wn.jsx)(pr.FormattedMessage,{id:"client.common.no"}))})]})},Bx=Wx;var Vx=new AbortController,Ux=!1;window.addEventListener("beforeunload",(function(e){Ux?(e.preventDefault(),e.returnValue=""):Vx.abort()})),window.addEventListener("pagehide",(function(){Vx.signal.aborted||Vx.abort()}));var zx=function(e,t,n){return f().mark((function r(){var o,i,a,s=arguments;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),a=0;a<o;a++)i[a]=s[a];case 1:return r.prev=2,r.next=5,Te.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Vx.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,De(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:Mm.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const Yx={autoRestartSaga:zx,createGenerator:function(e){return f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(zx(t,null,n)))},abortController:Vx,deactivatePreventFromLeaving:function(){Ux=!1},activatePreventFromLeaving:function(){Ux=!0}};l().node,l().bool,l().string,l().bool,l().objectOf(l().arrayOf(l().oneOfType([l().node,l().string]))),l().bool,l().bool,l().string,l().string,l().oneOf(["inside","outside-responsive","outside"]),l().bool,l().string,l().bool,l().string,l().bool;var qx,Gx,Kx,$x=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,mn.t7.color("text")),mn.xX.condition.DANGER,mn.t7.color("signal.danger")),mn.xX.condition.SUCCESS,mn.t7.color("signal.success")),mn.xX.condition.WARNING,mn.t7.color("signal.warning")),mn.xX.condition.INFO,mn.t7.color("signal.info")),Qx=(0,un.Ay)(No.dV).withConfig({displayName:"StyledSignalList"})(qx||(qx=(0,sn.A)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Xx=un.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(Gx||(Gx=(0,sn.A)(["\n margin-left: -1px;\n margin-right: ",";\n"])),mn.hs.space(-2)),Zx=(0,un.Ay)(No.vx).withConfig({displayName:"StyledSignalListItem"})(Kx||(Kx=(0,sn.A)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return $x[t]}(e)}));const Jx=function(e){return(0,wn.jsx)(Qx,{as:"ul",children:rt().Children.map(e.children,(function(e){return rt().cloneElement(e)}))})};var ek,tk=["condition","label","children"],nk=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,!1),mn.xX.condition.DANGER,"times"),mn.xX.condition.SUCCESS,"check"),mn.xX.condition.WARNING,"exclamation-triangle"),mn.xX.condition.INFO,"info"),rk=function(e){var t=nk[e];return t?(0,wn.jsx)(bn.A,{icon:t,position:mn.xX.position.SOLE,hasFixedWidth:!1}):ek||(ek=(0,wn.jsx)("i",{children:"•"}))};const ok=function(e){var t=e.condition,n=void 0===t?mn.xX.condition.BASE:t,r=e.label,o=e.children,i=(0,Je.A)(e,tk);return(0,wn.jsxs)(Zx,{condition:n,"data-cy":i["data-cy"],children:[(0,wn.jsx)(Xx,{children:rk(n)}),r,rt().Children.map(o,(function(e){return rt().cloneElement(e)}))]})},ik={List:Jx,Item:ok};const ak=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,hr.A)(e.error[n]))})),(0,wn.jsx)(ik.List,{children:t.map((function(e,t){return(0,wn.jsx)(ik.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var sk,ck,uk,lk,dk,fk,pk,hk,mk,gk,yk,vk,bk,wk,Ok="1.1px",xk=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},kk=un.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(sk||(sk=(0,sn.A)(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,mn.Ed)({lineHeight:mn.t7.lineHeight("dense")}),mn.t7.color("paper"),(function(e){return xk(e)}),(function(e){return"outside"===e.labelPosition&&(0,un.AH)(ck||(ck=(0,sn.A)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),mn.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(uk||(uk=(0,sn.A)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n\n /* if immutable remove left padding */\n padding: 0 "," "," ",";\n width: fit-content;\n left: ",";\n white-space: nowrap; // prevent multiline labels since they cover the input content\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n "])),mn.hs.space(-2),mn.hs.space(-3.5),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":mn.hs.space(-1.8)}))}),(function(e){return e.styles})),Sk=un.Ay.div.withConfig({displayName:"StyledInputArea"})(lk||(lk=(0,sn.A)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,un.AH)(dk||(dk=(0,sn.A)(["\n width: auto;\n "])))})),Ek=un.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(fk||(fk=(0,sn.A)(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Ok,(function(e){return mn.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),mn.t7.radii("form"),mn.hs.space(-2.5),mn.hs.space(-1.5),(function(e){return!e.immutable&&(0,mn.h7)(e)}),(function(e){return xk(e)}),(0,mn.Ed)(),Ih,(function(e){return"inside"===e.labelPosition&&(0,un.AH)(pk||(pk=(0,sn.A)(["\n padding: "," "," "," ",";\n "])),mn.hs.space(-1),mn.hs.space(-1.7),mn.hs.space(-2),mn.hs.space(-1))}),(function(e){return e.styles})),jk=un.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(hk||(hk=(0,sn.A)(["\n &&& {\n ","\n }\n"])),(0,mn.Ed)({fontSize:mn.hs.font(-1)})),Dk=un.Ay.div.withConfig({displayName:"StyledStatedValueError"})(mk||(mk=(0,sn.A)([""]))),Pk=un.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(gk||(gk=(0,sn.A)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),mn.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(yk||(yk=(0,sn.A)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),mn.hs.space(-1.5))})),_k=un.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(vk||(vk=(0,sn.A)(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),mn.hs.space(-1.5),Ek,jk,Dk,mn.hs.space(-2),jk,mn.hs.space(-1),Ok,(function(e){return"outside"===e.labelPosition&&(0,un.AH)(bk||(bk=(0,sn.A)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(wk||(wk=(0,sn.A)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ak(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ak(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ck=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,y=e.labelPosition,v=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",O="".concat(Io.adjustedHTMLString(d)).concat(w),x=g||function(e,t,n,r){return t?mn.xX.condition.DANGER:e?mn.xX.condition.INFO:n&&!r?mn.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(jo.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,wn.jsx)(Si,{children:function(e){var f=e.getRef;return(0,wn.jsx)(Pk,{labelPosition:y,children:(0,wn.jsxs)(_k,{labelPosition:y,ref:f,label:d,styles:null==v?void 0:v.innerWrapperStyles,children:[d&&(0,wn.jsx)(kk,Tk(Tk({},S),{},{hasValue:u,dirty:a,title:O,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.labelStyles,children:t||(t=(0,wn.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,wn.jsxs)(Sk,{labelPosition:y,children:[(0,wn.jsx)(Ek,{hasValue:u,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.valueStyles,children:o}),b&&(0,wn.jsx)(Dk,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,wn.jsx)(ak,{error:c}))}),i&&(r||(r=(0,wn.jsx)(jk,{children:i})))]})]})})}})};var Mk,Ik,Nk=function(e){return(0,un.AH)(Mk||(Mk=(0,sn.A)(["\n color: ",";\n font-weight: ",";\n"])),mn.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?mn.t7.fontWeight("bold"):mn.t7.fontWeight("regular")}))},Fk=function(){return(0,un.AH)(Ik||(Ik=(0,sn.A)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Rk=["labelPosition"];function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hk=function(e){var t=e.labelPosition,n=(0,Je.A)(e,Rk);return(0,wn.jsx)(Ck,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lk(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Nk,valueStyles:Fk},labelPosition:t||"outside-responsive"},n))};var Wk,Bk,Vk,Uk,zk,Yk,qk=function(e){return e.signal?"signal":"shade2"},Gk=function(){return(0,un.AH)(Wk||(Wk=(0,sn.A)(["\n align-items: flex-start;\n"])))},Kk=function(e){return(0,un.AH)(Bk||(Bk=(0,sn.A)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,un.AH)(Vk||(Vk=(0,sn.A)(["\n ","\n "])),mn.hs.space(-1.8)):(0,un.AH)(Uk||(Uk=(0,sn.A)(["\n ","\n "])),mn.hs.space(.1))}),mn.Db[qk(e)](e))},$k=function(){return(0,un.AH)(zk||(zk=(0,sn.A)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,un.AH)(Yk||(Yk=(0,sn.A)(["\n ","\n "])),mn.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},Qk=["labelPosition"];function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Zk=function(e){var t=e.labelPosition,n=(0,Je.A)(e,Qk);return(0,wn.jsx)(Ck,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xk(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:Gk,labelStyles:Kk,valueStyles:$k},labelPosition:t||"outside-responsive"},n))};var Jk=(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,Hk),Kb.A.EmbedType.widget,Zk);const eS=Kb.A.embedStrategyFactory({mapping:Jk});var tS,nS,rS,oS,iS=un.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(tS||(tS=(0,sn.A)(["\n margin-right: ",";\n color: ",";\n"])),mn.hs.space(-.8),mn.t7.color("text")),aS=un.Ay.div.withConfig({displayName:"StyledSearchBox"})(nS||(nS=(0,sn.A)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),sS=un.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(rS||(rS=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri),cS=rt().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,tt.useState)(n||"")),c=(0,En.A)(s,2),u=c[0],l=c[1];return(0,wn.jsx)(aS,{children:(0,wn.jsx)(eS,{hasValue:Boolean(u),labelPosition:"inside",children:(0,wn.jsxs)(Fi,{children:[oS||(oS=(0,wn.jsx)(iS,{children:(0,wn.jsx)(bn.A,{icon:"search"})})),(0,wn.jsx)(sS,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t)},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,wn.jsx)(cr,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const uS=Mn.Debouncer(cS,100,"onSearch");var lS,dS=[mn.xX.condition.BASE,mn.xX.condition.INFO,mn.xX.condition.DANGER,mn.xX.condition.SUCCESS,mn.xX.condition.WARNING],fS=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,mn.t7.color("signal.neutral")),mn.xX.condition.DANGER,mn.t7.color("signal.danger")),mn.xX.condition.SUCCESS,mn.t7.color("signal.success")),mn.xX.condition.WARNING,mn.t7.color("signal.warning")),mn.xX.condition.INFO,mn.t7.color("signal.info")),pS=un.Ay.div.withConfig({displayName:"StyledSignalBox"})(lS||(lS=(0,sn.A)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return fS[e.condition]||fS[mn.xX.condition.INFO]}(e)}),mn.hs.space(-1),mn.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));pS.propTypes={condition:mn.xX.oneOfPropTypeAndCompletelyMapped(dS,fS)};var hS,mS,gS;un.Ay.div.withConfig({displayName:"StyledCell"})(hS||(hS=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),un.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(mS||(mS=(0,sn.A)(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),mn.h7,mn.t7.color("border"),mn.t7.radii("form"),(function(e){return e.borderless&&(0,un.AH)(gS||(gS=(0,sn.A)(["\n border: none;\n "])))}),Fl,mn.hs.space(-2),mn.hs.space(-1.7),mn.hs.space(-2),mn.hs.space(-1),mn.t7.radii("form"),mn.t7.color("paper"),mn.hs.space(-1),mn.hs.space(-1),mn.hs.space(-.5),mn.hs.space(-1));function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bS={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},wS={Left:"Left",Right:"Right"},OS={Top:"Top",Bottom:"Bottom"},xS=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?wS.Right:wS.Left,vertical:o?OS.Bottom:OS.Top}};const kS=function(e){var t=(0,tt.useState)(bS),n=(0,En.A)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,tt.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return vS(vS({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(bS),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!Ao()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=xS(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return vS(vS({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&Ao()(a,t)){var n=xS(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return vS(vS({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(bS),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,tt.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},SS=wS;var ES,jS,DS,PS,_S,AS,TS,CS=un.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(ES||(ES=(0,sn.A)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),MS=un.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(jS||(jS=(0,sn.A)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),mn.hs.space(.7)),IS=un.Ay.ul.withConfig({displayName:"StyledUl"})(DS||(DS=(0,sn.A)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\n margin-left: 3px; // make room for drop indicator when it appears on the left-most side\n padding-left: 0 !important; // Nice2 Reset\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; // Nice2 Reset\n }\n"])),mn.hs.space(-.5),No.Gw),NS=un.Ay.input.withConfig({displayName:"StyledCheckbox"})(PS||(PS=(0,sn.A)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),mn.hs.space(-1)),FS=un.Ay.span.withConfig({displayName:"StyledId"})(_S||(_S=(0,sn.A)(["\n color: ",";\n font-style: italic;\n"])),mn.t7.color("text")),RS=(0,un.Ay)(No.vx).withConfig({displayName:"StyledItem"})(AS||(AS=(0,sn.A)(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n // when border appears, the content moves over by the width of the border, so we move the content back the same width\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),mn.hs.space(-2),mn.hs.space(-2),mn.hs.space(-2),(function(e){return e.dropPosition===SS.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===SS.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===SS.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),LS=un.Ay.span.withConfig({displayName:"StyledNumber"})(TS||(TS=(0,sn.A)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),mn.hs.space(-1),mn.t7.color("text"),mn.hs.font(0));function HS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var BS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},VS=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const US=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=BS(r),s=(0,tt.useState)(null),c=(0,En.A)(s,2),u=c[0],l=c[1],d=(0,tt.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===SS.Left)return[].concat((0,hr.A)(e),[o,t]);if(a===SS.Right)return[].concat((0,hr.A)(e),[t,o])}return[].concat((0,hr.A)(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=kS(d),p=f.dndEvents,h=f.dndState,m=(0,tt.useMemo)((function(){return VS(a,u)}),[a,u]),g=m.some((function(e){return e.hidden})),y=(0,tt.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,wn.jsxs)(RS,WS(WS({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&WS({},p(e.id))),{},{children:[(0,wn.jsx)(NS,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return BS(n.map((function(n){return n.id===e.id?WS(WS({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,wn.jsxs)(No.Ay.Label,{for:e.id,children:[(0,wn.jsxs)(LS,{children:[n+1,"."]}),e.label?(0,wn.jsx)("span",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(e.label)}}):(0,wn.jsx)(FS,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,wn.jsxs)(CS,{children:[(0,wn.jsx)(uS,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,wn.jsxs)(MS,{children:[(0,wn.jsx)(NS,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=VS(e,u);return BS((0,hr.A)(e.map((function(e){return WS(WS({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,wn.jsx)(No.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,wn.jsx)(IS,{children:y})]})},zS=(0,pr.injectIntl)(US);function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var GS="yyyy-MM-dd",KS=function(e){return(0,_d.uv4)(e,GS)?(0,_d.qgA)(e,GS,new Date):(0,_d.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,_d.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,_d.ol1)(new Date(e)):null},$S={datetime:{type:"date",toRange:function(e){return{from:e?KS(e).toISOString():null,to:e?(0,_d.fij)(KS(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,_d.GPZ)(new Date(e.from),GS):null!=e&&e.to?(0,_d.GPZ)(new Date(e.to),GS):null},getToOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const QS=$S;var XS,ZS,JS,eE,tE,nE=un.Ay.div.withConfig({displayName:"StyledIconWrapper"})(XS||(XS=(0,sn.A)(["\n font-size: ",";\n color: ",";\n"])),mn.hs.font(-2.7),mn.t7.color("text")),rE=un.Ay.div.withConfig({displayName:"StyledRange"})(ZS||(ZS=(0,sn.A)(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),oE=un.Ay.div.withConfig({displayName:"StyledInput"})(JS||(JS=(0,sn.A)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),iE=(0,un.Ay)(cr).withConfig({displayName:"StyledBall"})(eE||(eE=(0,sn.A)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function aE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aE(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cE=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,s=e.toText,c=QS[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,tt.useRef)(t);l.current=t;var d=(0,tt.useMemo)((function(){return sE(sE({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(sE(sE({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(sE(sE({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,wn.jsx)(jw,sE(sE({type:h},pi()(e,["type"])),{},{events:d})),g=(0,wn.jsxs)(oE,{children:[(0,wn.jsx)(jw,sE(sE({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:a})),tE||(tE=(0,wn.jsx)(nE,{children:(0,wn.jsx)(bn.A,{icon:"horizontal-rule"})})),(0,wn.jsx)(jw,sE(sE({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,wn.jsxs)(rE,{children:[u?g:m,(0,wn.jsx)(iE,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var uE,lE,dE,fE,pE,hE=un.Ay.div.withConfig({displayName:"StyledBurgerButton"})(uE||(uE=(0,sn.A)(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; // higher than StyledHeader to enable interactions\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),mn.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,un.AH)(lE||(lE=(0,sn.A)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,pr.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,wn.jsxs)(hE,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[dE||(dE=(0,wn.jsx)("span",{})),fE||(fE=(0,wn.jsx)("span",{})),pE||(pE=(0,wn.jsx)("span",{}))]})}));var mE,gE,yE=un.Ay.div.withConfig({displayName:"StyledPagination"})(mE||(mE=(0,sn.A)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),mn.hs.space(-1),mn.hs.space(-1.4)),vE=(0,un.Ay)(er).withConfig({displayName:"StyledPaginationButton"})(gE||(gE=(0,sn.A)(["\n padding: "," ",";\n"])),mn.hs.space(-2),mn.hs.space(-.5));const bE=(0,pr.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,wn.jsxs)(yE,{children:[(0,wn.jsxs)(di,{children:[(0,wn.jsx)(vE,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,wn.jsx)(vE,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,wn.jsx)(vE,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,wn.jsx)(vE,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)(pr.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),wE=bE;var OE;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(OE||(OE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(OE||(OE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(OE||(OE={}));var xE=OE;
|
|
78
|
+
*/var r=n(4883);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,a=n)}var i,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,l]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},78418:(e,t,n)=>{"use strict";e.exports=n(77154)},79308:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)},c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]}const l=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=l(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return u(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function f(e){return 14+(e+64>>>9<<4)+1}function p(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t,n,r,o,i){return p((a=p(p(t,e),p(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return h(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return h(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return h(t^n^r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return h(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[f(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,c=o,u=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=y(n,r,o,i,e[t+5],4,-378558),i=y(i,n,r,o,e[t+8],11,-2022574463),o=y(o,i,n,r,e[t+11],16,1839030562),r=y(r,o,i,n,e[t+14],23,-35309556),n=y(n,r,o,i,e[t+1],4,-1530992060),i=y(i,n,r,o,e[t+4],11,1272893353),o=y(o,i,n,r,e[t+7],16,-155497632),r=y(r,o,i,n,e[t+10],23,-1094730640),n=y(n,r,o,i,e[t+13],4,681279174),i=y(i,n,r,o,e[t],11,-358537222),o=y(o,i,n,r,e[t+3],16,-722521979),r=y(r,o,i,n,e[t+6],23,76029189),n=y(n,r,o,i,e[t+9],4,-640364487),i=y(i,n,r,o,e[t+12],11,-421815835),o=y(o,i,n,r,e[t+15],16,530742520),r=y(r,o,i,n,e[t+2],23,-995338651),n=v(n,r,o,i,e[t],6,-198630844),i=v(i,n,r,o,e[t+7],10,1126891415),o=v(o,i,n,r,e[t+14],15,-1416354905),r=v(r,o,i,n,e[t+5],21,-57434055),n=v(n,r,o,i,e[t+12],6,1700485571),i=v(i,n,r,o,e[t+3],10,-1894986606),o=v(o,i,n,r,e[t+10],15,-1051523),r=v(r,o,i,n,e[t+1],21,-2054922799),n=v(n,r,o,i,e[t+8],6,1873313359),i=v(i,n,r,o,e[t+15],10,-30611744),o=v(o,i,n,r,e[t+6],15,-1560198380),r=v(r,o,i,n,e[t+13],21,1309151649),n=v(n,r,o,i,e[t+4],6,-145523070),i=v(i,n,r,o,e[t+11],10,-1120210379),o=v(o,i,n,r,e[t+2],15,718787259),r=v(r,o,i,n,e[t+9],21,-343485551),n=p(n,a),r=p(r,s),o=p(o,c),i=p(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(f(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)};function O(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function x(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=x(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],c=n[3],u=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=x(o,5)+O(n,a,s,c)+u+t[n]+r[e]>>>0;u=c,c=s,s=x(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+u>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},46255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},69517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,s.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split("@"),v=y.pop(),b=v.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var w=y.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var O=(w=w.toLowerCase()).split("+")[0];if(!(0,o.default)(O.replace(/\./g,""),{min:6,max:30}))return!1;for(var x=O.split("."),k=0;k<x.length;k++)if(!f.test(x[k]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(w,{max:64})&&(0,o.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var S=v.slice(1,-1);if(0===S.length||!(0,a.default)(S))return!1}}if('"'===w[0])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?m.test(w):p.test(w);for(var E=t.allow_utf8_local_part?h:d,j=w.split("."),D=0;D<j.length;D++)if(!E.test(j[D]))return!1;if(t.blacklisted_chars&&-1!==w.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(83399)),o=c(n(46255)),i=c(n(57658)),a=c(n(35372)),s=c(n(93610));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},57658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(83399)),o=i(n(93610));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},35372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(83399))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},77844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,y;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var v=s.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(x,k)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(x,k)||function(){throw new 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],O=b[1];if(""===w&&""===O)return!1}var x,k;p=g.join("@"),m=null,y=null;var S=p.match(l);S?(f="",y=S[1],m=S[2]||null):(f=(g=p.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||y&&(0,i.default)(y,6)))return!1;if(f=f||y,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(83399)),o=s(n(57658)),i=s(n(35372)),a=s(n(93610));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},83399:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},93610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},4883:t=>{"use strict";t.exports=e},81845:e=>{"use strict";e.exports=t},4633:(e,t,n)=>{var r=n(73738).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new P(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function m(){}function g(){}function y(){}var v={};d(v,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==n&&i.call(w,c)&&(v=w);var O=y.prototype=m.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,s,c){var u=p(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return g.prototype=y,a(O,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:g,configurable:!0}),g.displayName=d(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(k.prototype),d(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(O),d(O,l,"Generator"),d(O,c,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},22847:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},56868:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},37372:(e,t,n)=>{"use strict";var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!c.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e},l=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{Provider:()=>be,ReactReduxContext:()=>v,batch:()=>Se,connect:()=>ve,createDispatchHook:()=>xe,createSelectorHook:()=>S,createStoreHook:()=>we,shallowEqual:()=>te,useDispatch:()=>ke,useSelector:()=>E,useStore:()=>Oe}),e.exports=(e=>u(o({},"__esModule",{value:!0}),e))(d);var f=l(n(4883)),p=n(78418),h=l(n(4883)),m="default"in h?h.default:h,g=Symbol.for("react-redux-context"),y=typeof globalThis<"u"?globalThis:{};var v=function(){if(!m.createContext)return{};let e=y[g]??(y[g]=new Map),t=e.get(m.createContext);return t||(t=m.createContext(null),e.set(m.createContext,t)),t}(),b=()=>{throw new Error("uSES not initialized!")};function w(e=v){return function(){return m.useContext(e)}}var O=w(),x=b,k=(e,t)=>e===t;function S(e=v){let t=e===v?O:w(e),n=(e,n={})=>{let{equalityFn:r=k,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),l=(m.useRef(!0),m.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),d=x(a.addNestedSub,i.getState,s||i.getState,l,r);return m.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var E=S(),j=Symbol.for("react.element"),D=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.context"),M=Symbol.for("react.server_context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),H=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),I),W=R;function B(e){return function(e){if("object"==typeof e&&null!==e){let t=e.$$typeof;switch(t){case j:{let n=e.type;switch(n){case P:case A:case _:case N:case F:return n;default:{let e=n&&n.$$typeof;switch(e){case M:case C:case I:case L:case R:case T:return e;default:return t}}}}case D:return t}}}(e)===R}function V(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){let h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){let t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):function(o,i){return s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d}(o,i)}}function U(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function z(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function Y(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=z(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=z(o),o=r(t,n)),o},r}}function q(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function G(e,t,n){return{...n,...e,...t}}function K(e){e()}var $={notify(){},get:()=>[]};function Q(e,t){let n,r=$,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||null===e||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=$)}let u={addNestedSub:function(e){s();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var X=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z=typeof navigator<"u"&&"ReactNative"===navigator.product,J=X||Z?m.useLayoutEffect:m.useEffect;function ee(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function te(e,t){if(ee(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ee(e[n[r]],t[n[r]]))return!1;return!0}var ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ie={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[W]:oe};function ae(e){return B(e)?oe:ie[e.$$typeof]||ne}var se=Object.defineProperty,ce=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,le=Object.getOwnPropertyDescriptor,de=Object.getPrototypeOf,fe=Object.prototype;function pe(e,t){if("string"!=typeof t){if(fe){let n=de(t);n&&n!==fe&&pe(e,n)}let n=ce(t);ue&&(n=n.concat(ue(t)));let r=ae(e),o=ae(t);for(let i=0;i<n.length;++i){let a=n[i];if(!(re[a]||o&&o[a]||r&&r[a])){let n=le(t,a);try{se(e,a,n)}catch{}}}}return e}var he=b,me=[null,null];function ge(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function ye(e,t){return e===t}var ve=function(e,t,n,{pure:r,areStatesEqual:o=ye,areOwnPropsEqual:i=te,areStatePropsEqual:a=te,areMergedPropsEqual:s=te,forwardRef:c=!1,context:u=v}={}){let l=u,d=function(e){return e?"function"==typeof e?Y(e):q(e,"mapStateToProps"):U((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?U((t=>function(e,t){let n={};for(let r in e){let o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?Y(e):q(e,"mapDispatchToProps"):U((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){let s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):q(e,"mergeProps"):()=>G}(n),h=!!e;return e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){let[n,o,i]=m.useMemo((()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=m.useMemo((()=>l),[n,l]),s=m.useContext(a),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,u=!!s&&!!s.store,d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=m.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return V(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[g,y]=m.useMemo((()=>{if(!h)return me;let e=Q(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),v=m.useMemo((()=>c?s:{...s,subscription:g}),[c,s,g]),b=m.useRef(),w=m.useRef(i),O=m.useRef(),x=m.useRef(!1),k=m.useRef(!1),S=m.useRef();J((()=>(k.current=!0,()=>{k.current=!1})),[]);let E,j=m.useMemo((()=>()=>O.current&&i===w.current?O.current:p(d.getState(),i)),[d,i]),D=m.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,c.current=e,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,g,p,w,b,x,k,O,y,e):()=>{}),[g]);!function(e,t,n){J((()=>e(...t)),n)}(ge,[w,b,x,i,O,y]);try{E=he(D,j,f?()=>p(f(),i):j)}catch(e){throw S.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),e}J((()=>{S.current=void 0,O.current=void 0,b.current=E}));let P=m.useMemo((()=>m.createElement(e,{...E,ref:o})),[o,e,E]);return m.useMemo((()=>h?m.createElement(a.Provider,{value:v},P):P),[a,P,v])}let g=m.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){let t=m.forwardRef((function(e,t){return m.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,pe(t,e)}return pe(g,e)}};var be=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){let a=m.useMemo((()=>{let t=Q(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=m.useMemo((()=>e.getState()),[e]);return J((()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]),m.createElement((t||v).Provider,{value:a},n)};function we(e=v){let t=e===v?O:w(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Oe=we();function xe(e=v){let t=e===v?Oe:we(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ke=xe(),Se=K;(e=>{x=e})(p.useSyncExternalStoreWithSelector),(e=>{he=e})(f.useSyncExternalStore)},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},96274:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},53986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},50388:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96369);var o=n(27800),i=n(76562);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},57528:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(43145);var o=n(96274),i=n(27800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e,t){if("object"!==(0,r.A)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.A)(t)?t:String(t)}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},50622:(e,t,n)=>{"use strict";function r(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{F:()=>r})},18621:(e,t,n)=>{"use strict";n.d(t,{q:()=>r.c});var r=n(44985)},82695:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},69021:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(50622);const o={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.F)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.F)(n+1,2)},d:(e,t)=>(0,r.F)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.F)(e.getHours(),t.length),m:(e,t)=>(0,r.F)(e.getMinutes(),t.length),s:(e,t)=>(0,r.F)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,n-3));return(0,r.F)(i,t.length)}}},36847:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return r(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",r(i,t)).replace("{{time}}",o(a,t))}}},40215:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(2642);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},76992:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>c,ef:()=>a,xM:()=>s});const r=/^D+$/,o=/^Y+$/,i=["D","DD","YY","YYYY"];function a(e){return r.test(e)}function s(e){return o.test(e)}function c(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),i.includes(e))throw new RangeError(r)}},2940:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>i,_m:()=>s,my:()=>r,s0:()=>a,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,i=6e4,a=36e5,s=1e3},35840:(e,t,n)=>{"use strict";function r(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}n.d(t,{w:()=>r})},20514:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(2940),o=n(51730),i=n(40215);function a(e,t){const n=(0,o.o)(e),a=(0,o.o)(t),s=+n-(0,i.G)(n),c=+a-(0,i.G)(a);return Math.round((s-c)/r.w4)}},36126:(e,t,n)=>{"use strict";n.d(t,{GP:()=>T});var r=n(18621),o=n(82695),i=n(73875),a=n(6514),s=n(65961),c=n(70175),u=n(29220),l=n(50622),d=n(69021);const f="midnight",p="noon",h="morning",m="afternoon",g="evening",y="night",v={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return d.C.y(e,t)},Y:function(e,t,n,r){const o=(0,u.h)(e,r),i=o>0?o:1-o;if("YY"===t){const e=i%100;return(0,l.F)(e,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.F)(i,t.length)},R:function(e,t){const n=(0,s.p)(e);return(0,l.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return d.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,c.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.F)(o,t.length)},I:function(e,t,n){const r=(0,a.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):d.C.d(e,t)},D:function(e,t,n){const r=(0,i.F)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.F)(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.F)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.F)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.F)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?p:0===r?f:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?g:r>=12?m:r>=4?h:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return d.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):d.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):d.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):d.C.s(e,t)},S:function(e,t){return d.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return O(r);default:return O(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return O(r);default:return O(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+O(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.F)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.F)(r,t.length)}};function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+(0,l.F)(i,2)}function w(e,t){if(e%60==0){return(e>0?"-":"+")+(0,l.F)(Math.abs(e)/60,2)}return O(e,t)}function O(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.F)(Math.trunc(r/60),2)+t+(0,l.F)(r%60,2)}var x=n(36847),k=n(76992),S=n(71649),E=n(2642);const j=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P=/^'([^]*?)'?$/,_=/''/g,A=/[a-zA-Z]/;function T(e,t,n){const i=(0,o.q)(),a=n?.locale??i.locale??r.q,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=(0,E.a)(e);if(!(0,S.f)(u))throw new RangeError("Invalid time value");let l=t.match(D).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,x.m[t])(e,a.formatLong)}return e})).join("").match(j).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:C(e)};if(v[t])return{isToken:!0,value:e};if(t.match(A))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const d={firstWeekContainsDate:s,weekStartsOn:c,locale:a};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,k.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,k.ef)(o))&&(0,k.Ss)(o,t,String(e));return(0,v[o[0]])(u,o,a.localize,d)})).join("")}function C(e){const t=e.match(P);return t?t[1].replace(_,"'"):e}},73875:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(20514),o=n(16823),i=n(2642);function a(e){const t=(0,i.a)(e);return(0,r.m)(t,(0,o.D)(t))+1}},6514:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(2940),o=n(83787),i=n(7848),a=n(2642);function s(e){const t=(0,a.a)(e),n=+(0,o.b)(t)-+(0,i.w)(t);return Math.round(n/r.my)+1}},65961:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(35840),o=n(83787),i=n(2642);function a(e){const t=(0,i.a)(e),n=t.getFullYear(),a=(0,r.w)(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=(0,o.b)(a),c=(0,r.w)(e,0);c.setFullYear(n,0,4),c.setHours(0,0,0,0);const u=(0,o.b)(c);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},70175:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(2940),o=n(92528),i=n(65563),a=n(2642);function s(e,t){const n=(0,a.a)(e),s=+(0,o.k)(n,t)-+(0,i.b)(n,t);return Math.round(s/r.my)+1}},29220:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(35840),o=n(92528),i=n(2642),a=n(82695);function s(e,t){const n=(0,i.a)(e),s=n.getFullYear(),c=(0,a.q)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,l=(0,r.w)(e,0);l.setFullYear(s+1,0,u),l.setHours(0,0,0,0);const d=(0,o.k)(l,t),f=(0,r.w)(e,0);f.setFullYear(s,0,u),f.setHours(0,0,0,0);const p=(0,o.k)(f,t);return n.getTime()>=d.getTime()?s+1:n.getTime()>=p.getTime()?s:s-1}},131:(e,t,n)=>{"use strict";n.d(t,{fij:()=>i,GPZ:()=>p.GP,qZx:()=>g,Osm:()=>b,SyE:()=>w,uv4:()=>ke,qgA:()=>xe,Hle:()=>Se,avh:()=>Me,$7z:()=>Ie,glI:()=>Ne,gtt:()=>Fe,ol1:()=>s.o});var r=n(2642),o=n(35840);function i(e,t){const n=(0,r.a)(e);return isNaN(t)?(0,o.w)(e,NaN):t?(n.setDate(n.getDate()+t),n):n}var a=n(2940);n(65961),n(20514),n(7848);var s=n(51730);var c=n(71649);var u=n(83787),l=n(40215);var d=n(92528);n(16823);var f=n(82695);var p=n(36126),h=n(18621);n(50622);n(73875);function m(){return Object.assign({},(0,f.q)())}function g(e){return(0,r.a)(e).getHours()}function y(e){let t=(0,r.a)(e).getDay();return 0===t&&(t=7),t}var v=n(6514);function b(e){return(0,r.a)(e).getMinutes()}function w(e){return(0,r.a)(e).getSeconds()}var O=n(70175);var x=n(29220);n(32833);var k=n(36847),S=n(76992);function E(e,t){const n=t instanceof Date?(0,o.w)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}class j{subPriority=0;validate(e,t){return!0}}class D extends j{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class P extends j{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,o.w)(e,E(e,Date))}}class _{run(e,t,n,r){const o=this.parse(e,t,n,r);return o?{setter:new D(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}const A=/^(1[0-2]|0?\d)/,T=/^(3[0-1]|[0-2]?\d)/,C=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,M=/^(5[0-3]|[0-4]?\d)/,I=/^(2[0-3]|[0-1]?\d)/,N=/^(2[0-4]|[0-1]?\d)/,F=/^(1[0-1]|0?\d)/,R=/^(1[0-2]|0?\d)/,L=/^[0-5]?\d/,H=/^[0-5]?\d/,W=/^\d/,B=/^\d{1,2}/,V=/^\d{1,3}/,U=/^\d{1,4}/,z=/^-?\d+/,Y=/^-?\d/,q=/^-?\d{1,2}/,G=/^-?\d{1,3}/,K=/^-?\d{1,4}/,$=/^([+-])(\d{2})(\d{2})?|Z/,Q=/^([+-])(\d{2})(\d{2})|Z/,X=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ee(e,t){return e?{value:t(e.value),rest:e.rest}:e}function te(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ne(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*a.s0+i*a.Cg+s*a._m),rest:t.slice(n[0].length)}}function re(e){return te(z,e)}function oe(e,t){switch(e){case 1:return te(W,t);case 2:return te(B,t);case 3:return te(V,t);case 4:return te(U,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function ie(e,t){switch(e){case 1:return te(Y,t);case 2:return te(q,t);case 3:return te(G,t);case 4:return te(K,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ae(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function se(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o}function ce(e){return e%400==0||e%4==0&&e%100!=0}function ue(e,t,n){const o=(0,r.a)(e),i=(0,O.N)(o,n)-t;return o.setDate(o.getDate()-7*i),o}function le(e,t){const n=(0,r.a)(e),o=(0,v.s)(n)-t;return n.setDate(n.getDate()-7*o),n}const de=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31];function pe(e,t,n){const o=(0,f.q)(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=(0,r.a)(e),c=s.getDay(),u=7-a;return i(s,t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7)}function he(e,t){const n=(0,r.a)(e);return i(n,t-y(n))}const me={G:new class extends _{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends _{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return ee(oe(4,e),r);case"yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=se(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}},Y:new class extends _{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return ee(oe(4,e),r);case"Yo":return ee(n.ordinalNumber(e,{unit:"year"}),r);default:return ee(oe(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const o=(0,x.h)(e,r);if(n.isTwoDigitYear){const t=se(n.year,o);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,d.k)(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends _{priority=130;parse(e,t){return ie("R"===t?4:t.length,e)}set(e,t,n){const r=(0,o.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,u.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends _{priority=130;parse(e,t){return ie("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends _{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return oe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends _{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return oe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends _{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"M":return ee(te(A,e),r);case"MM":return ee(oe(2,e),r);case"Mo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends _{priority=110;parse(e,t,n){const r=e=>e-1;switch(t){case"L":return ee(te(A,e),r);case"LL":return ee(oe(2,e),r);case"Lo":return ee(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends _{priority=100;parse(e,t,n){switch(t){case"w":return te(M,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,d.k)(ue(e,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends _{priority=100;parse(e,t,n){switch(t){case"I":return te(M,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,u.b)(le(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends _{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return te(T,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){const n=ce(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=fe[r]:t>=1&&t<=de[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends _{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return te(C,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return oe(t.length,e)}}validate(e,t){return ce(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends _{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends _{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ee(oe(t.length,e),o);case"eo":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends _{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ee(oe(t.length,e),o);case"co":return ee(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=pe(e,n,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends _{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return oe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ee(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ee(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ee(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return ee(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=he(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends _{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends _{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends _{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(ae(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends _{priority=70;parse(e,t,n){switch(t){case"h":return te(R,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends _{priority=70;parse(e,t,n){switch(t){case"H":return te(I,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends _{priority=70;parse(e,t,n){switch(t){case"K":return te(F,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends _{priority=70;parse(e,t,n){switch(t){case"k":return te(N,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return oe(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends _{priority=60;parse(e,t,n){switch(t){case"m":return te(L,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},s:new class extends _{priority=50;parse(e,t,n){switch(t){case"s":return te(H,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return oe(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},S:new class extends _{priority=30;parse(e,t){return ee(oe(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},X:new class extends _{priority=10;parse(e,t){switch(t){case"X":return ne($,e);case"XX":return ne(Q,e);case"XXXX":return ne(X,e);case"XXXXX":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.w)(e,e.getTime()-(0,l.G)(e)-n)}incompatibleTokens=["t","T","x"]},x:new class extends _{priority=10;parse(e,t){switch(t){case"x":return ne($,e);case"xx":return ne(Q,e);case"xxxx":return ne(X,e);case"xxxxx":return ne(J,e);default:return ne(Z,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.w)(e,e.getTime()-(0,l.G)(e)-n)}incompatibleTokens=["t","T","X"]},t:new class extends _{priority=40;parse(e){return re(e)}set(e,t,n){return[(0,o.w)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends _{priority=20;parse(e){return re(e)}set(e,t,n){return[(0,o.w)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ve=/^'([^]*?)'?$/,be=/''/g,we=/\S/,Oe=/[a-zA-Z]/;function xe(e,t,n,i){const a=m(),s=i?.locale??a.locale??h.q,c=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.a)(n):(0,o.w)(n,NaN);const l={firstWeekContainsDate:c,weekStartsOn:u,locale:s},d=[new P],f=t.match(ye).map((e=>{const t=e[0];if(t in k.m){return(0,k.m[t])(e,s.formatLong)}return e})).join("").match(ge),p=[];for(let r of f){!i?.useAdditionalWeekYearTokens&&(0,S.xM)(r)&&(0,S.Ss)(r,t,e),!i?.useAdditionalDayOfYearTokens&&(0,S.ef)(r)&&(0,S.Ss)(r,t,e);const a=r[0],c=me[a];if(c){const{incompatibleTokens:t}=c;if(Array.isArray(t)){const e=p.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===c.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);p.push({token:a,fullToken:r});const i=c.run(e,r,s.match,l);if(!i)return(0,o.w)(n,NaN);d.push(i.setter),e=i.rest}else{if(a.match(Oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===r?r="'":"'"===a&&(r=r.match(ve)[1].replace(be,"'")),0!==e.indexOf(r))return(0,o.w)(n,NaN);e=e.slice(r.length)}}if(e.length>0&&we.test(e))return(0,o.w)(n,NaN);const g=d.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>d.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let y=(0,r.a)(n);if(isNaN(y.getTime()))return(0,o.w)(n,NaN);const v={};for(const e of g){if(!e.validate(y,l))return(0,o.w)(n,NaN);const t=e.set(y,v,l);Array.isArray(t)?(y=t[0],Object.assign(v,t[1])):y=t}return(0,o.w)(n,y)}function ke(e,t,n){return(0,c.f)(xe(e,t,new Date,n))}n(18979);n(69021);function Se(e,t){const n=t?.additionalDigits??2,r=function(e){const t={},n=e.split(Ee.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ee.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ee.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=Ee.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let o;if(r.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(r.date,n);o=function(e,t){if(null===t)return new Date(NaN);const n=e.match(je);if(!n)return new Date(NaN);const r=!!n[4],o=_e(n[1]),i=_e(n[2])-1,a=_e(n[3]),s=_e(n[4]),c=_e(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,s,c):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Te[t]||(Ce(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(Ce(e)?366:365)}(t,o)?(e.setUTCFullYear(t,i,Math.max(o,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let s,c=0;if(r.time&&(c=function(e){const t=e.match(De);if(!t)return NaN;const n=Ae(t[1]),r=Ae(t[2]),o=Ae(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*a.s0+r*a.Cg+1e3*o}(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){const e=new Date(i+c),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return s=function(e){if("Z"===e)return 0;const t=e.match(Pe);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*a.s0+o*a.Cg)}(r.timezone),isNaN(s)?new Date(NaN):new Date(i+c+s)}const Ee={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},je=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,De=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Pe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _e(e){return e?parseInt(e):1}function Ae(e){return e&&parseFloat(e.replace(",","."))||0}const Te=[31,null,31,30,31,30,31,31,30,31,30,31];function Ce(e){return e%400==0||e%4==0&&e%100!=0}function Me(e,t){const n=(0,r.a)(e);return n.setHours(t),n}function Ie(e,t){const n=(0,r.a)(e);return n.setMilliseconds(t),n}function Ne(e,t){const n=(0,r.a)(e);return n.setMinutes(t),n}function Fe(e,t){const n=(0,r.a)(e);return n.setSeconds(t),n}n(65563)},32833:(e,t,n)=>{"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},18979:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(92528);function o(e,t,n){return+(0,r.k)(e,n)==+(0,r.k)(t,n)}},71649:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(32833),o=n(2642);function i(e){if(!(0,r.$)(e)&&"number"!=typeof e)return!1;const t=(0,o.a)(e);return!isNaN(Number(t))}},67404:(e,t,n)=>{"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},59574:(e,t,n)=>{"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},98094:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},21296:(e,t,n)=>{"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},44985:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=n(67404);const i={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var s=n(59574);const c={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,s.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};var u=n(98094);const l={code:"en-US",formatDistance:(e,t,n)=>{let o;const i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:c,match:{ordinalNumber:(0,n(21296).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},51730:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(2642);function o(e){const t=(0,r.a)(e);return t.setHours(0,0,0,0),t}},83787:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(92528);function o(e){return(0,r.k)(e,{weekStartsOn:1})}},7848:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(65961),o=n(83787),i=n(35840);function a(e){const t=(0,r.p)(e),n=(0,i.w)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.b)(n)}},92528:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2642),o=n(82695);function i(e,t){const n=(0,o.q)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.a)(e),s=a.getDay(),c=(s<i?7:0)+s-i;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},65563:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(35840),o=n(29220),i=n(92528),a=n(82695);function s(e,t){const n=(0,a.q)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,o.h)(e,t),u=(0,r.w)(e,0);u.setFullYear(c,0,s),u.setHours(0,0,0,0);return(0,i.k)(u,t)}},16823:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(2642),o=n(35840);function i(e){const t=(0,r.a)(e),n=(0,o.w)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},2642:(e,t,n)=>{"use strict";function r(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}n.d(t,{a:()=>r})}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{95:"88ec5a0a0b8e2b67ce79",103:"9af724ec59b22c20c519",222:"ddd9949941c66d878998",262:"44714c4b0d9f71d184b8",310:"6198010bbf680a7c569c",389:"cc96c878df6df1eeae1f",672:"e6ffa6e7fb3d26ee06fb",722:"6f64bb758a3268023156",916:"c2503b97fe2116e031a1"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",(()=>{var e={561:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>Ule});var e={};c.r(e),c.d(e,{ACTION_INVOKE:()=>XB,ACTION_INVOKED:()=>JB,ACTION_IN_PROGRESS:()=>ZB,actionInvoke:()=>eV,actionInvoked:()=>tV});var t={};c.r(t),c.d(t,{focusErrorField:()=>XQ,focusField:()=>$Q,formInitialValueSelector:()=>KQ,getCurrentEntityState:()=>eX,getEntityForSubmit:()=>tX,getFormErrors:()=>QQ,handleInvalidForm:()=>JQ,handleSubmitError:()=>nX,touchAllFields:()=>ZQ});var n={};c.r(n),c.d(n,{asyncValidationStop:()=>lX,autoComplete:()=>aX,default:()=>iX,loadFormValues:()=>uX,onChange:()=>sX,onRegister:()=>cX});var r={};c.r(r),c.d(r,{createAction:()=>PJ,createCustomComponent:()=>AJ,createFieldSet:()=>DJ,createLayoutComponent:()=>_J});var o={};c.r(o),c.d(o,{createAction:()=>PJ,createCustomComponent:()=>AJ,createFieldSet:()=>DJ,createLayoutComponent:()=>TJ});var i={};c.r(i),c.d(i,{useAsyncValidation:()=>W0,useFormEvents:()=>B0,useSyncValidation:()=>H0});var a={};c.r(a),c.d(a,{FIRE_TOUCHED:()=>Pae,FORM_SUBMISSION_FAILED:()=>Fae,FORM_SUBMITTED:()=>Rae,LOAD_DETAIL_VIEW:()=>Oae,NAVIGATE_TO_ACTION:()=>Mae,NAVIGATE_TO_CREATE:()=>Tae,SET_ENTITY:()=>kae,SET_ENTITY_MODEL:()=>jae,SET_FIELD_DEFINITIONS:()=>Cae,SET_FORM_DEFINITION:()=>xae,SET_LAST_SAVE:()=>Eae,SET_MARKED:()=>Nae,SET_TOUCHED:()=>_ae,SUBMIT_FORM:()=>Sae,TOUCH_ALL_FIELDS:()=>Aae,UNLOAD_DETAIL_VIEW:()=>Dae,UPDATE_MARKED:()=>Iae,fireTouched:()=>Yae,loadDetailView:()=>Lae,navigateToAction:()=>Qae,navigateToCreate:()=>Kae,setEntity:()=>Wae,setEntityModel:()=>Uae,setFieldDefinitions:()=>$ae,setFormDefinition:()=>Hae,setFormSubmissionFailed:()=>Jae,setFormSubmitted:()=>ese,setLastSave:()=>Vae,setMarked:()=>Zae,setTouched:()=>qae,submitForm:()=>Bae,touchAllFields:()=>Gae,unloadDetailView:()=>zae,updateMarked:()=>Xae});var s=c(5556),l=c.n(s),d=c(54756),f=c.n(d),p=function(e){return"@@redux-saga/"+e},h=p("CANCEL_PROMISE"),m=p("CHANNEL_END"),g=p("IO"),y=p("MATCH"),v=p("MULTICAST"),b=p("SAGA_ACTION"),w=p("SELF_CANCELLATION"),O=p("TASK"),x=p("TASK_CANCEL"),k=p("TERMINATE"),S=p("LOCATION");function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}var j=function(e){return null==e},D=function(e){return null!=e},P=function(e){return"function"==typeof e},_=function(e){return"string"==typeof e},A=Array.isArray,T=function(e){return e&&P(e.then)},C=function(e){return e&&P(e.next)&&P(e.throw)},M=function e(t){return t&&(_(t)||F(t)||P(t)||A(t)&&t.every(e))},I=function(e){return e&&P(e.take)&&P(e.close)},N=function(e){return P(e)&&e.hasOwnProperty("toString")},F=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},R=function(e){return I(e)&&e[v]};const L=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[h]=function(){clearTimeout(n)},r};var H=function(e){return function(){return e}},W=H(!0),B=function(){};var V=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var U=function(e,t){E(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function z(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Y(e){var t=!1;return function(){t||(t=!0,e())}}var q=function(e){throw e},G=function(e){return{value:e,done:!0}};function K(e,t,n){void 0===t&&(t=q),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:G,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function $(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Q=function(e){return Array.apply(null,new Array(e))},X=function(e){return function(t){return e(Object.defineProperty(t,b,{value:!0}))}},Z=function(e){return e===k},J=function(e){return e===x},ee=function(e){return Z(e)||J(e)};function te(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=A(e)?Q(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||ee(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=B,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function ne(e){return{name:e.name||"anonymous",location:re(e)}}function re(e){return e[S]}function oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var ie={isEmpty:W,put:B,take:B};function ae(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},c=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=c(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:c}}var se=function(){return ie},ce=function(e){return ae(e,4)},ue="TAKE",le="PUT",de="ALL",fe="RACE",pe="CALL",he="CPS",me="FORK",ge="JOIN",ye="CANCEL",ve="SELECT",be="ACTION_CHANNEL",we="CANCELLED",Oe="FLUSH",xe="GET_CONTEXT",ke="SET_CONTEXT",Se=function(e,t){var n;return(n={})[g]=!0,n.combinator=!1,n.type=e,n.payload=t,n},Ee=function(e){return Se(me,E({},e.payload,{detached:!0}))};function je(e,t){return void 0===e&&(e="*"),M(e)?(D(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Se(ue,{pattern:e})):R(e)&&D(t)&&M(t)?Se(ue,{channel:e,pattern:t}):I(e)?(D(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Se(ue,{channel:e})):void 0}function De(e,t){return j(t)&&(t=e,e=void 0),Se(le,{channel:e,action:t})}function Pe(e){var t=Se(de,e);return t.combinator=!0,t}function _e(e){var t=Se(fe,e);return t.combinator=!0,t}function Ae(e,t){var n,r=null;return P(e)?n=e:(A(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&_(n)&&P(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(pe,Ae(e,n))}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(me,Ae(e,n))}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ee(Ce.apply(void 0,[e].concat(n)))}function Ie(e){void 0===e&&(e=V);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Se(ve,{selector:e,args:n})}var Ne=Te.bind(null,L),Fe=function(e){return{done:!0,value:e}},Re={};function Le(e){return I(e)?"channel":N(e)?String(e):P(e)?e.name:String(e)}function He(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Re)return Fe(t);if(n&&!o)throw a=Re,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Re?Fe(t):i}return K(s,(function(e){return s(null,e)}),n)}function We(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:je(e)},s=function(e){return i=e};return He({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:Ce.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Le(e)+", "+t.name+")")}function Be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:je(e)},c=function(e){return{done:!1,value:Ce.apply(void 0,[t].concat(r,[e]))}},u=function(e){return{done:!1,value:(t=e,void 0===t&&(t=w),Se(ye,t))};var t},l=function(e){return i=e},d=function(e){return a=e};return He({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return i?{nextState:"q3",effect:u(i)}:{nextState:"q1",effect:c(a),stateUpdater:l}},q3:function(){return{nextState:"q1",effect:c(a),stateUpdater:l}}},"q1","takeLatest("+Le(e)+", "+t.name+")")}function Ve(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a,s,c={done:!1,value:je(t)},u={done:!1,value:_e({action:je(t),debounce:Ne(e)})},l=function(e){return a=e},d=function(e){return s=e};return He({q1:function(){return{nextState:"q2",effect:c,stateUpdater:l}},q2:function(){return{nextState:"q3",effect:u,stateUpdater:d}},q3:function(){return s.debounce?{nextState:"q1",effect:(t=a,{done:!1,value:Ce.apply(void 0,[n].concat(o,[t]))})}:{nextState:"q2",effect:(e=s.action,{done:!1,value:e}),stateUpdater:l};var e,t}},"q1","debounce("+Le(t)+", "+n.name+")")}function Ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ce.apply(void 0,[We,e,t].concat(r))}function ze(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ce.apply(void 0,[Be,e,t].concat(r))}function Ye(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return Ce.apply(void 0,[Ve,e,t,n].concat(o))}var qe="EMIT_ACTION",Ge="DISPATCH_EMITTED_ACTION",Ke=f().mark($e);function $e(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe([Ue(qe,Qe,e),Ue(Ge,Xe)]);case 2:case"end":return t.stop()}}),Ke)}function Qe(e,t){var n=t.payload;return f().mark((function t(){var r,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.action,t.next=3,Ie(e);case 3:if(!(o=t.sent)){t.next=7;break}return t.next=7,Te(o,r);case 7:case"end":return t.stop()}}),t)}))()}function Xe(e){var t=e.payload;return f().mark((function e(){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.action,e.next=3,De(n);case 3:case"end":return e.stop()}}),e)}))()}const Ze={emitAction:function(e){return{type:qe,payload:{action:e}}},dispatchEmittedAction:function(e){return{type:Ge,payload:{action:e}}},addToStore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null};e.sagaMiddleware.run($e,t)}};var Je=c(53986),et=c(64467),tt=c(4883),nt=c.t(tt,2),rt=c.n(tt),ot=c(78418),it=tt,at=Symbol.for("react-redux-context"),st="undefined"!=typeof globalThis?globalThis:{};function ct(){if(!it.createContext)return{};const e=st[at]??(st[at]=new Map);let t=e.get(it.createContext);return t||(t=it.createContext(null),e.set(it.createContext,t)),t}var ut=ct(),lt=()=>{throw new Error("uSES not initialized!")};var dt=Symbol.for("react.element"),ft=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),ht=Symbol.for("react.strict_mode"),mt=Symbol.for("react.profiler"),gt=Symbol.for("react.provider"),yt=Symbol.for("react.context"),vt=Symbol.for("react.server_context"),bt=Symbol.for("react.forward_ref"),wt=Symbol.for("react.suspense"),Ot=Symbol.for("react.suspense_list"),xt=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),St=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),bt),Et=xt;function jt(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case dt:{const n=e.type;switch(n){case pt:case mt:case ht:case wt:case Ot:return n;default:{const e=n&&n.$$typeof;switch(e){case vt:case yt:case bt:case kt:case xt:case gt:return e;default:return t}}}}case ft:return t}}}function Dt(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,c,u,l,d,f=!1;function p(f,p){const h=!i(p,c),m=!o(f,s,p,c);return s=f,c=p,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(r,c)),d=n(u,l,c),d):m?function(){const t=e(s,c),r=!a(t,u);return u=t,r&&(d=n(u,l,c)),d}():d}return function(o,i){return f?p(o,i):(s=o,c=i,u=e(s,c),l=t(r,c),d=n(u,l,c),f=!0,d)}}function Pt(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function _t(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function At(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_t(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=_t(o),o=r(t,n)),o},r}}function Tt(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ct(e,t,n){return{...n,...e,...t}}function Mt(e){e()}var It={notify(){},get:()=>[]};function Nt(e,t){let n,r=It,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Mt((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=It)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}var Ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Rt="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lt=Ft||Rt?it.useLayoutEffect:it.useEffect;function Ht(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Wt(e,t){if(Ht(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Ht(e[n[r]],t[n[r]]))return!1;return!0}var Bt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ut={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zt={[St]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Et]:Ut};function Yt(e){return function(e){return jt(e)===xt}(e)?Ut:zt[e.$$typeof]||Bt}var qt=Object.defineProperty,Gt=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,$t=Object.getOwnPropertyDescriptor,Qt=Object.getPrototypeOf,Xt=Object.prototype;function Zt(e,t){if("string"!=typeof t){if(Xt){const n=Qt(t);n&&n!==Xt&&Zt(e,n)}let n=Gt(t);Kt&&(n=n.concat(Kt(t)));const r=Yt(e),o=Yt(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(Vt[a]||o&&o[a]||r&&r[a])){const n=$t(t,a);try{qt(e,a,n)}catch(e){}}}}return e}var Jt=lt,en=[null,null];function tn(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function nn(e,t){return e===t}var rn=function(e,t,n,{pure:r,areStatesEqual:o=nn,areOwnPropsEqual:i=Wt,areStatePropsEqual:a=Wt,areMergedPropsEqual:s=Wt,forwardRef:c=!1,context:u=ut}={}){const l=u,d=function(e){return e?"function"==typeof e?At(e):Tt(e,"mapStateToProps"):Pt((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?Pt((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?At(e):Tt(e,"mapDispatchToProps"):Pt((e=>({dispatch:e})))}(t),p=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):Tt(e,"mergeProps"):()=>Ct}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=it.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),a=it.useMemo((()=>l),[n,l]),s=it.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,p=it.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return Dt(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,g]=it.useMemo((()=>{if(!h)return en;const e=Nt(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),y=it.useMemo((()=>c?s:{...s,subscription:m}),[c,s,m]),v=it.useRef(),b=it.useRef(i),w=it.useRef(),O=it.useRef(!1),x=it.useRef(!1),k=it.useRef();Lt((()=>(x.current=!0,()=>{x.current=!1})),[]);const S=it.useMemo((()=>()=>w.current&&i===b.current?w.current:p(d.getState(),i)),[d,i]),E=it.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,c,u,l){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,c.current=n,a.current=!0,l())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,d,m,p,b,v,O,x,w,g,e):()=>{}),[m]);var j,D,P;let _;j=tn,D=[b,v,O,i,w,g],Lt((()=>j(...D)),P);try{_=Jt(E,S,f?()=>p(f(),i):S)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}Lt((()=>{k.current=void 0,w.current=void 0,v.current=_}));const A=it.useMemo((()=>it.createElement(e,{..._,ref:o})),[o,e,_]);return it.useMemo((()=>h?it.createElement(a.Provider,{value:y},A):A),[a,A,y])}const m=it.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=it.forwardRef((function(e,t){return it.createElement(m,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,Zt(t,e)}return Zt(m,e)}};var on=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=it.useMemo((()=>{const t=Nt(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}}),[e,r,o,i]),s=it.useMemo((()=>e.getState()),[e]);Lt((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||ut;return it.createElement(c.Provider,{value:a},n)};var an;an=ot.useSyncExternalStoreWithSelector,(e=>{Jt=e})(tt.useSyncExternalStore);var sn=c(57528),cn=c(92648),un=c(43759),ln=c(91907);const dn=function(e){return(0,ln.A)(e)};const fn={shouldForwardProp:function(e,t){return"string"!=typeof t||dn(e)},isPropValid:dn};var pn,hn,mn=c(19230),gn=(0,un.AH)(pn||(pn=(0,sn.A)(["\n ","\n color: ",";\n\n * {\n color: ",";\n text-decoration: ",";\n }\n\n &:hover,\n &:hover *,\n &:focus,\n &:focus * {\n text-decoration: ",";\n }\n\n &:active,\n &:active * {\n text-decoration: ",";\n }\n"])),(0,mn.Ed)(),mn.w4.color("text"),mn.w4.color("text"),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}),(function(e){return e.neutral?"none":"underline"}));const yn=(0,un.Ay)(cn.N_).withConfig({shouldForwardProp:function(e){return fn.isPropValid(e)||"state"===e}})(hn||(hn=(0,sn.A)(["\n &:link,\n &:visited {\n color: ","; // nice2 reset\n }\n ","\n"])),mn.t7.color("text"),gn);var vn,bn=c(47850),wn=c(74848);function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=(0,tt.lazy)((function(){return c.e(389).then(c.bind(c,68389))}));const Sn=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:vn||(vn=(0,wn.jsx)(rt().Fragment,{})),children:(0,wn.jsx)(kn,xn({},e))})};var En=c(5544);function jn(e,t){var n=(0,tt.useState)(e),r=(0,En.A)(n,2),o=r[0],i=r[1];return(0,tt.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),[o,i]}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"onChange";return rt().forwardRef((function(r,o){var i=r.value,a=(0,tt.useState)(i),s=(0,En.A)(a,2),c=s[0],u=s[1],l=jn(c,t),d=(0,En.A)(l,2),f=d[0],p=d[1],h=(0,tt.useRef)(i),m=r[n];return(0,tt.useEffect)((function(){c!==i&&c===f&&(u(i),h.current=i,p(i))}),[i]),(0,tt.useEffect)((function(){m&&h.current!==f&&(m(f),h.current=f)}),[f,m]),(0,wn.jsx)(e,Pn(Pn(Pn({},r),{},{value:c},(0,et.A)({},n,u)),{},{ref:o}))}))};const An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,tt.useEffect)((function(){if(!t.disabled&&e.current){if(t.selectFulltextFields){var n=e.current.querySelector('input[id$="txtFulltext"]:not([disabled])');if(n)return void n.focus()}var r=e.current.querySelector('input[type="text"]:not([disabled]), input[type="search"]:not([disabled]), textarea:not([disabled])');r&&setTimeout((function(){r.focus()}),0)}}),n)};const Tn=function(){var e=(0,tt.useState)(),t=(0,En.A)(e,2),n=t[0],r=t[1],o=(0,tt.useRef)(),i=(0,tt.useCallback)((function(e){if(Array.isArray(e)){var t=e[0];r(t.contentRect)}}),[]),a=(0,tt.useCallback)((function(e){e&&(o.current=new ResizeObserver((function(e){return i(e)})),o.current.observe(e))}),[i]);return(0,tt.useEffect)((function(){return function(){o.current&&(o.current.disconnect(),o.current=null)}}),[]),[a,n]};const Cn=function(e){var t=(0,tt.useRef)(null),n=(0,tt.useState)(null),r=(0,En.A)(n,2),o=r[0],i=r[1],a=(0,tt.useCallback)((function(){o>0&&(t.current=setTimeout((function(){e()}),o))}),[o,e]),s=(0,tt.useCallback)((function(){t.current&&clearTimeout(t.current)}),[]);return(0,tt.useEffect)((function(){return s(),window.addEventListener("mousemove",a,{once:!0}),window.addEventListener("touchstart",a,{once:!0}),function(){s()}}),[s,a]),[i,s,a]},Mn={useAutofocus:An,useDebounce:jn,Debouncer:_n,useUserActive:Cn,usePrevious:function(e){var t=(0,tt.useRef)();return(0,tt.useEffect)((function(){t.current=e}),[e]),t.current},useDidUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,tt.useRef)(!1);(0,tt.useEffect)((function(){n.current?e():n.current=!0}),t)},useResizeObserver:Tn};var In="visible",Nn="hidden",Fn="responsive",Rn={labelVisibility:Fn},Ln=rt().createContext(Rn);const Hn=function(e){var t=e.children,n=(0,tt.useRef)(null),r=Mn.useResizeObserver(),o=(0,En.A)(r,2),i=o[0],a=o[1],s=n.current?(null==a?void 0:a.width)<n.current:(null==a?void 0:a.height)>45;(0,tt.useEffect)((function(){n.current=s?a.width+1:null}),[s]);var c=(0,tt.useMemo)((function(){return{labelVisibility:s?Nn:In}}),[s]);return(0,wn.jsx)(Ln.Provider,{value:c,children:t(i)})};var Wn,Bn,Vn,Un,zn,Yn,qn,Gn=(0,un.AH)(Un||(Un=(0,sn.A)(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n border: none;\n border-radius: ",";\n margin-right: ",";\n padding: "," ",";\n cursor: pointer;\n ","\n ","\n ","\n ","\n ","\n\n & > span:first-child {\n margin-left: 0;\n }\n ","\n"])),mn.w4.radii("button"),mn.hs.space(-1.38),mn.hs.space(-2.1),mn.hs.space(0),(0,mn.Ed)(),(function(e){return e.withoutBackground?(0,un.AH)(Vn||(Vn=(0,sn.A)(["\n background: transparent;\n"]))):(0,mn.x5)(e)}),(function(e){return function(e){var t=e.dense,n=e.theme;return t?(0,un.AH)(Wn||(Wn=(0,sn.A)(["\n line-height: ",";\n padding: "," ",";\n "])),mn.w4.lineHeight("dense")({theme:n}),mn.hs.space(-3.5)({theme:n}),mn.hs.space(-1.5)({theme:n})):null}(e)}),(function(e){return n=(t=e).iconOnly,r=t.removePadding,n||r?(0,un.AH)(Bn||(Bn=(0,sn.A)(["\n padding: 0;\n margin: 0;\n "]))):null;var t,n,r}),(function(e){return function(e){var t=e.icon,n=e.pending,r=e.iconPosition;if(t||n)return r===mn.xX.position.APPEND?"\n > span {\n order: -1;\n margin-right: .5rem;\n }\n ":"\n > span {\n margin-left: .5rem;\n }\n "}(e)}),(function(e){var t=e.icon,n=e.labelVisibility,r="\n ".concat(Kn," {\n display: none;\n }\n ");return t&&n===Nn?r:t&&n===Fn&&"\n @media screen and (max-width: 1024px) {\n ".concat(r,"\n }\n ")})),Kn=un.Ay.span.withConfig({displayName:"StyledLabelWrapper"})(zn||(zn=(0,sn.A)([""]))),$n=un.Ay.button.withConfig({displayName:"StyledButton"})(Yn||(Yn=(0,sn.A)(["\n ","\n"])),Gn),Qn=un.Ay.div.withConfig({displayName:"StyledStickyButtonWrapper"})(qn||(qn=(0,sn.A)(["\n position: sticky;\n bottom: 0;\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: ",";\n\n ",":last-child {\n margin-right: 0;\n }\n"])),mn.hs.space(0),mn.t7.color("paper"),(function(e){return"LEFT"===e.position?"flex-start":"flex-end"}),$n);const Xn=$n;function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const er=rt().forwardRef((function(e,t){var n=e.aria,r=e.ink,o=e.label,i=e.icon,a=e.pending,s=e.look,c=void 0===s?mn.xX.look.FLAT:s,u=e.iconPosition,l=void 0===u?mn.xX.position.PREPEND:u,d=e.type,f=void 0===d?"button":d,p=e.iconOnly,h=e.children,m=(0,tt.useContext)(Ln).labelVisibility;return(0,wn.jsxs)(Xn,Jn(Jn(Jn({ref:t},n),e),{},{ink:r||mn.xX.ink.BASE,"data-cy":e["data-cy"],title:o,labelVisibility:m,type:f,children:[i&&!a&&(0,wn.jsx)(bn.A,{icon:i}),a&&(0,wn.jsx)(Sn,{ink:r||mn.xX.ink.BASE,look:c,position:l,size:"1em"}),!p&&o?(0,wn.jsx)(Kn,{children:o}):h||""]}))}));var tr;(0,un.Ay)(cn.N_).withConfig({shouldForwardProp:fn.isPropValid}).withConfig({displayName:"StyledRouterLinkButton"})(tr||(tr=(0,sn.A)(["\n text-decoration: none;\n\n &:visited {\n color: ","; // nice2 reset\n }\n\n &:hover,\n &:focus {\n text-decoration: none; // nice2 reset\n }\n ","\n"])),mn.t7.color("text"),Gn);var nr,rr;const or=un.Ay.button.withConfig({displayName:"StyledButton"})(rr||(rr=(0,sn.A)(["\n ","\n ","\n ","\n cursor: pointer;\n"])),(0,mn.Ed)(),mn.x5,(function(){return(0,un.AH)(nr||(nr=(0,sn.A)(["\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: ",";\n // ensure that width has at least the size of height\n min-width: calc(\n 1rem * "," * "," + 2.4 * ","\n );\n box-sizing: border-box;\n"])),mn.hs.space(-3),mn.w4.fontSize("base"),mn.w4.lineHeight("regular"),mn.hs.space(-3))}));function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sr=rt().forwardRef((function(e,t){return(0,wn.jsx)(or,ar(ar({ref:t,type:"button"},e),{},{children:(0,wn.jsx)(bn.A,{icon:e.icon})}))}));sr.propTypes={disabled:l().bool,icon:l().string.isRequired,ink:mn.xX.inkPropTypes,look:l().oneOf([mn.xX.look.FLAT,mn.xX.look.RAISED]),onClick:l().func,title:l().string,tabIndex:l().number,"data-cy":l().string};const cr=sr;var ur,lr,dr,fr,pr=c(11843),hr=c(60436),mr=c(49859),gr=c.n(mr),yr=c(52098),vr=c.n(yr),br=c(30115),wr=c.n(br),Or=c(45228),xr=c.n(Or),kr="bodyAttributes",Sr="htmlAttributes",Er="titleAttributes",jr={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Dr=(Object.keys(jr).map((function(e){return jr[e]})),"charset"),Pr="cssText",_r="href",Ar="http-equiv",Tr="innerHTML",Cr="itemprop",Mr="name",Ir="property",Nr="rel",Fr="src",Rr="target",Lr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Hr="defaultTitle",Wr="defer",Br="encodeSpecialCharacters",Vr="onChangeClientState",Ur="titleTemplate",zr=Object.keys(Lr).reduce((function(e,t){return e[Lr[t]]=t,e}),{}),Yr=[jr.NOSCRIPT,jr.SCRIPT,jr.STYLE],qr="data-react-helmet",Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),$r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Xr=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Zr=function(e){var t=ro(e,jr.TITLE),n=ro(e,Ur);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=ro(e,Hr);return t||r||void 0},Jr=function(e){return ro(e,Vr)||function(){}},eo=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return $r({},e,t)}),{})},to=function(e,t){return t.filter((function(e){return void 0!==e[jr.BASE]})).map((function(e){return e[jr.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},no=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&co("Helmet: "+e+' should be of type "Array". Instead found type "'+Gr(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===Nr&&"canonical"===e[n].toLowerCase()||c===Nr&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==Tr&&s!==Pr&&s!==Cr||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=xr()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},ro=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},oo=(ur=Date.now(),function(e){var t=Date.now();t-ur>16?(ur=t,e(t)):setTimeout((function(){oo(e)}),0)}),io=function(e){return clearTimeout(e)},ao="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||oo:c.g.requestAnimationFrame||oo,so="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||io:c.g.cancelAnimationFrame||io,co=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},uo=null,lo=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,f=e.titleAttributes;ho(jr.BODY,r),ho(jr.HTML,o),po(d,f);var p={baseTag:mo(jr.BASE,n),linkTags:mo(jr.LINK,i),metaTags:mo(jr.META,a),noscriptTags:mo(jr.NOSCRIPT,s),scriptTags:mo(jr.SCRIPT,u),styleTags:mo(jr.STYLE,l)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),c(e,h,m)},fo=function(e){return Array.isArray(e)?e.join(""):e},po=function(e,t){void 0!==e&&document.title!==e&&(document.title=fo(e)),ho(jr.TITLE,t)},ho=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(qr),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(qr):n.getAttribute(qr)!==a.join(",")&&n.setAttribute(qr,a.join(","))}},mo=function(e,t){var n=document.head||document.querySelector(jr.HEAD),r=n.querySelectorAll(e+"["+qr+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Tr)n.innerHTML=t.innerHTML;else if(r===Pr)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(qr,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},go=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Lr[n]||n]=e[n],t}),t)},vo=function(e,t,n){switch(e){case jr.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[qr]=!0,o=yo(n,r),[rt().createElement(jr.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=go(n),i=fo(t);return o?"<"+e+" "+qr+'="true" '+o+">"+Xr(i,r)+"</"+e+">":"<"+e+" "+qr+'="true">'+Xr(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case kr:case Sr:return{toComponent:function(){return yo(t)},toString:function(){return go(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[qr]=!0,r);return Object.keys(t).forEach((function(e){var n=Lr[e]||e;if(n===Tr||n===Pr){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),rt().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Tr||e===Pr)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Xr(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Yr.indexOf(e);return t+"<"+e+" "+qr+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},bo=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,f=e.titleAttributes;return{base:vo(jr.BASE,t,r),bodyAttributes:vo(kr,n,r),htmlAttributes:vo(Sr,o,r),link:vo(jr.LINK,i,r),meta:vo(jr.META,a,r),noscript:vo(jr.NOSCRIPT,s,r),script:vo(jr.SCRIPT,c,r),style:vo(jr.STYLE,u,r),title:vo(jr.TITLE,{title:d,titleAttributes:f},r)}},wo=vr()((function(e){return{baseTag:to([_r,Rr],e),bodyAttributes:eo(kr,e),defer:ro(e,Wr),encode:ro(e,Br),htmlAttributes:eo(Sr,e),linkTags:no(jr.LINK,[Nr,_r],e),metaTags:no(jr.META,[Mr,Dr,Ar,Ir,Cr],e),noscriptTags:no(jr.NOSCRIPT,[Tr],e),onChangeClientState:Jr(e),scriptTags:no(jr.SCRIPT,[Fr,Tr],e),styleTags:no(jr.STYLE,[Pr],e),title:Zr(e),titleAttributes:eo(Er,e)}}),(function(e){uo&&so(uo),e.defer?uo=ao((function(){lo(e,(function(){uo=null}))})):(lo(e),uo=null)}),bo)((function(){return null})),Oo=(lr=wo,fr=dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!wr()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case jr.SCRIPT:case jr.NOSCRIPT:return{innerHTML:t};case jr.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return $r({},r,((t={})[n.type]=[].concat(r[n.type]||[],[$r({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case jr.TITLE:return $r({},o,((t={})[r.type]=a,t.titleAttributes=$r({},i),t));case jr.BODY:return $r({},o,{bodyAttributes:$r({},i)});case jr.HTML:return $r({},o,{htmlAttributes:$r({},i)})}return $r({},o,((n={})[r.type]=$r({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=$r({},t);return Object.keys(e).forEach((function(t){var r;n=$r({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return rt().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[zr[n]||n]=e[n],t}),t)}(Qr(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case jr.LINK:case jr.META:case jr.NOSCRIPT:case jr.SCRIPT:case jr.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=Qr(e,["children"]),r=$r({},n);return t&&(r=this.mapChildrenToProps(t,r)),rt().createElement(lr,r)},Kr(t,null,[{key:"canUseDOM",set:function(e){lr.canUseDOM=e}}]),t}(rt().Component),dr.propTypes={base:gr().object,bodyAttributes:gr().object,children:gr().oneOfType([gr().arrayOf(gr().node),gr().node]),defaultTitle:gr().string,defer:gr().bool,encodeSpecialCharacters:gr().bool,htmlAttributes:gr().object,link:gr().arrayOf(gr().object),meta:gr().arrayOf(gr().object),noscript:gr().arrayOf(gr().object),onChangeClientState:gr().func,script:gr().arrayOf(gr().object),style:gr().arrayOf(gr().object),title:gr().string,titleAttributes:gr().object,titleTemplate:gr().string},dr.defaultProps={defer:!0,encodeSpecialCharacters:!0},dr.peek=lr.peek,dr.rewind=function(){var e=lr.rewind();return e||(e=bo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},fr);Oo.renderStatic=Oo.rewind;var xo=c(42838),ko=c.n(xo),So=["border","border-spacing","padding","margin","text-align","width"];ko().addHook("afterSanitizeAttributes",(function(e){if(e&&!(e instanceof SVGElement)&&"function"==typeof e.hasAttribute&&e.hasAttribute("style")){var t=function(e){return So.map((function(t){var n=e[t];return n&&"string"==typeof n&&!function(e){return/\w\(/.test(e)}(n)?"".concat(t,":").concat(n,";"):null})).filter(Boolean).join("")}(e.style);t?e.setAttribute("style",t):e.removeAttribute("style")}return e}));const Eo=function(e){return e?ko().sanitize(e,{FORBID_TAGS:["style"],ADD_ATTR:["target"]}):e},jo={sanitizeHtml:Eo};var Do=c(98166),Po=c(82284),_o=c(2404),Ao=c.n(_o),To=c(69752),Co=c.n(To),Mo=function(e){return"object"===(0,Po.A)(e)&&null!==e};const Io={difference:function e(t,n){return Co()(t,(function(t,r,o){Ao()(r,n[o])||(t[o]=Mo(r)&&Mo(n[o])?e(r,n[o]):r)}))},getOrFirst:Do.Yd,adjustedHTMLString:function(e){return e?e.replace(/­/g,""):e},roundDecimalPlaces:Do.O5,copyToClipboard:Do.lW,isDefined:Do.O9};var No=c(60284),Fo={error:"exclamation-circle",home:"house-blank"},Ro=function(e){return Fo[e]||e};const Lo=function(e){var t=e.type;return t&&"record"!==t?(0,wn.jsx)(bn.A,{icon:Ro(t)}):null};var Ho,Wo,Bo,Vo,Uo,zo,Yo=["component"],qo=un.Ay.div.withConfig({displayName:"StyledBreadcrumbs"})(Ho||(Ho=(0,sn.A)(["\n background-color: ",";\n padding: "," ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n"])),(function(e){return e.backgroundColor||mn.w4.color("backgroundBreadcrumbs")(e)}),mn.hs.space(-.7),mn.hs.space(.39)),Go=(0,un.Ay)((function(e){var t=e.component,n=(0,Je.A)(e,Yo);return rt().cloneElement(t,n)})).withConfig({displayName:"StyledBreadcrumbsLink"})(Wo||(Wo=(0,sn.A)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n cursor: pointer;\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:hover,\n &:hover * {\n color: ",";\n }\n\n &:focus,\n &:active,\n &:focus *,\n &:active * {\n color: ",";\n }\n"])),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.color("secondaryLight"),mn.w4.color("breadcrumbsActive")),Ko=un.Ay.span.withConfig({displayName:"StyledBreadcrumbsTitle"})(Bo||(Bo=(0,sn.A)(["\n font-weight: ",";\n text-decoration: none;\n color: ",";\n\n & * {\n font-weight: ",";\n text-decoration: none;\n color: ",";\n }\n\n &:active * {\n color: ",";\n }\n"])),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.fontWeight("bold"),(function(e){return e.active&&mn.w4.color("breadcrumbsActive")}),mn.w4.color("breadcrumbsActive")),$o=(0,un.Ay)(No.oY).withConfig({displayName:"StyledBreadcrumbSeparator"})(Vo||(Vo=(0,sn.A)(["\n margin-left: ",";\n margin-right: ",";\n"])),mn.hs.space(-2),mn.hs.space(-2)),Qo=un.Ay.span.withConfig({displayName:"StyledBreadcrumbWrapper"})(Uo||(Uo=(0,sn.A)(["\n "," {\n margin-right: ",";\n }\n"])),bn.i,mn.hs.space(-1));const Xo=function(){return zo||(zo=(0,wn.jsx)($o,{breakWords:!0,children:(0,wn.jsx)(bn.A,{icon:"chevron-right"})}))};var Zo;function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti=function(e){return e.title||e.display},ni=function(e,t){if(!e||0===e.length)return"Tocco";var n=e.at(-1),r="";switch(n.type){case"create":r="".concat(ti(n)," - ").concat(t);break;case"detail":r=e.slice(e.length-2).map(ti).join(" - ");break;default:r=ti(n)}return Io.adjustedHTMLString(r)};const ri=function(e){var t,n=e.intl,r=e.pathPrefix,o=void 0===r?"":r,i=e.breadcrumbsInfo,a=void 0===i?[]:i,s=e.currentView,c=e.backgroundColor,u=e.onClick,l=e.linkComp,d=e.updateDocumentTitle,f=[].concat((0,hr.A)(a),(0,hr.A)(s?[s]:[]));if(0===f.length)return null;var p,h=f.map((function(e,n){var r,i=e.display||"",a=n===f.length-1?Ko:Go,s=n===f.length-1&&{active:"true"},c=void 0!==e.path?{to:"".concat(o,"/").concat(e.path),state:e.state}:{},d=l?t||(t=(0,wn.jsx)(l,{})):Zo||(Zo=(0,wn.jsx)(yn,{}));return(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)(Qo,{children:(0,wn.jsxs)(a,ei(ei(ei({neutral:!0},s),c),{},{onClick:(r=e,function(){u&&!1!==r.clickable&&u(r)}),component:d,children:[(0,wn.jsx)(Lo,{type:e.type}),(0,wn.jsx)("span",{"data-cy":"breadcrumb-item",dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(i)}})]}))})},"breadcrumbItem-".concat(n))})).reduce((function(e,t,n){return[e,(0,wn.jsx)(Xo,{},"icon".concat(n)),t]}));return(0,wn.jsxs)(qo,{backgroundColor:c,children:[d?(0,wn.jsx)(Oo,{defer:!1,children:(0,wn.jsx)("title",{children:ni(f,(p="client.component.breadcrumbs.createTitle",n.formatMessage({id:p})))})}):null,(0,wn.jsx)(wn.Fragment,{children:h})]})};(0,pr.injectIntl)(ri);var oi,ii,ai=un.Ay.div.withConfig({displayName:"StyledWrapper"})(oi||(oi=(0,sn.A)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,mn.Ed)(),(function(e){return e.theme.colors.signal.danger}),mn.t7.color("paper"),mn.hs.space(-.5));const si=function(){return ii||(ii=(0,wn.jsx)(ai,{children:(0,wn.jsx)(pr.FormattedMessage,{id:"client.component.errorBoundary.text"})}))};var ci;const ui=un.Ay.div.withConfig({displayName:"StyledButtonGroup"})(ci||(ci=(0,sn.A)(["\n display: flex;\n\n &&& > "," {\n &:not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),Xn);var li=rt().forwardRef((function(e,t){return(0,wn.jsx)(ui,{ref:t,children:e.children})}));li.propTypes={children:l().node};const di=li;var fi=c(90179),pi=c.n(fi),hi=c(62193),mi=c.n(hi),gi=c(62243),yi=c.n(gi),vi=c(36193),bi=c.n(vi),wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},xi={outline:"none"},ki=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Oi(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=rt().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},Oi(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?rt().cloneElement(e({focused:t,getRef:this.ref}),n):rt().createElement("div",wi({ref:this.ref,style:xi},n),e)},t}(rt().Component);ki.propTypes={children:bi().oneOfType([bi().node,bi().func]).isRequired,onBlur:bi().func,onFocus:bi().func},ki.defaultProps={onBlur:function(){},onFocus:function(){}};const Si=ki;var Ei,ji,Di,Pi,_i,Ai,Ti,Ci,Mi,Ii=c(88357),Ni=(0,un.AH)(Ei||(Ei=(0,sn.A)(["\n align-items: center;\n cursor: ",";\n display: flex;\n width: 100%;\n"])),(function(e){return e.immutable&&"text"})),Fi=un.Ay.label.withConfig({displayName:"StyledEditableWrapper"})(ji||(ji=(0,sn.A)(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Ni),Ri=(0,un.AH)(Di||(Di=(0,sn.A)(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: ",";\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable&&"text"}),(function(e){return e.immutable?"0":"2.6rem"}),(function(){return(0,mn.Ed)({color:mn.t7.color("text")})}),mn.t7.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Li=(0,un.AH)(Pi||(Pi=(0,sn.A)(["\n display: flex;\n align-items: center;\n"]))),Hi=un.Ay.div.withConfig({displayName:"StyledEditableControl"})(_i||(_i=(0,sn.A)(["\n &&& {\n ","\n }\n"])),Li),Wi=un.Ay.span.withConfig({displayName:"StyledEditableValue"})(Ai||(Ai=(0,sn.A)(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: text;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),mn.t7.color("signal.danger")),Bi=function(e){return-1*Math.abs(e)},Vi=function(e){var t=[e.street,e.postcode,e.city,e.country].filter(Boolean).map((function(e){var t="object"===(0,Po.A)(e)&&e.display?e.display:e;return encodeURIComponent(t)})).join("+");return"".concat("https://www.google.com/maps/search/?api=1&query=").concat(t)},Ui=c(58156),zi=c.n(Ui),Yi=un.Ay.div.withConfig({displayName:"StyledLocationEdit"})(Ti||(Ti=(0,sn.A)(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n "," {\n margin-left: auto;\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__container {\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),Ni,mn.hs.space(-2),mn.hs.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?zi()(n,"colors.textDisabled"):zi()(n,"colors.text")}),Hi,Ri,mn.t7.color("paper"),mn.t7.color("signal.info"),mn.t7.color("secondaryLight"),mn.t7.color("backgroundItemHover")),qi=(0,un.Ay)(Yi).withConfig({displayName:"StyledAddressEdit"})(Ci||(Ci=(0,sn.A)(["\n && {\n div {\n :nth-of-type(1) {\n flex: auto;\n width: 100%;\n }\n }\n }\n"])));function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $i=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.street,n=e.houseNr;return n?"".concat(t," ").concat(n):t},u=function(e){var t=e.street,n=e.state,r=e.country,o=e.postcode,i=e.city;if(!t)return null;var a=c(e),s=n?"- ".concat(n):"",u=r?"/ ".concat(r.display):"";return(0,wn.jsxs)(No.Ay.Span,{children:[a,", ",o," ",i," ",s," ",u]})},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){var t=e.value,r=n.locationValues.country,o={street:t};n.fetchSuggestions(o,r)},f={id:o,value:r&&r.street?c(r):"",onChange:function(e){return function(n,o){var i=o.newValue;t(Ki(Ki({},r),{},(0,et.A)({},e,i)))}}("street"),disabled:i};return(0,wn.jsx)(Si,{children:function(e){var t,r,o,c,p=e.getRef;return(0,wn.jsxs)(qi,{immutable:i,name:a,ref:p,children:[(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d,getSuggestionValue:s("street"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,wn.jsxs)(Hi,{children:[n.isLoading&&(Mi||(Mi=(0,wn.jsx)(Sn,{size:"1.8rem"}))),(t=n.locationValues,r=t.street,o=t.city,c=t.postcode,Boolean(r&&(o||c))&&(0,wn.jsx)(Ii.Ay,{href:Vi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};var Qi=c(69843),Xi=c.n(Qi),Zi=c(7350),Ji=c.n(Zi);function ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach((function(t){ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oa(e,t){if(e){if("string"==typeof e)return ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ra(e,t):void 0}}function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||oa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sa=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(this,arguments)}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(e,t)}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},da(e)}function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}function pa(e,t){if(t&&("object"===fa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var n,r=da(e);if(t){var o=da(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pa(this,n)}}function ma(e){return function(e){if(Array.isArray(e))return ra(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ga=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ya="-ms-",va="-moz-",ba="-webkit-",wa="comm",Oa="rule",xa="decl",ka="@keyframes",Sa=Math.abs,Ea=String.fromCharCode,ja=Object.assign;function Da(e){return e.trim()}function Pa(e,t,n){return e.replace(t,n)}function _a(e,t){return e.indexOf(t)}function Aa(e,t){return 0|e.charCodeAt(t)}function Ta(e,t,n){return e.slice(t,n)}function Ca(e){return e.length}function Ma(e){return e.length}function Ia(e,t){return t.push(e),e}var Na=1,Fa=1,Ra=0,La=0,Ha=0,Wa="";function Ba(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Na,column:Fa,length:a,return:""}}function Va(e,t){return ja(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ua(){return Ha=La>0?Aa(Wa,--La):0,Fa--,10===Ha&&(Fa=1,Na--),Ha}function za(){return Ha=La<Ra?Aa(Wa,La++):0,Fa++,10===Ha&&(Fa=1,Na++),Ha}function Ya(){return Aa(Wa,La)}function qa(){return La}function Ga(e,t){return Ta(Wa,e,t)}function Ka(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $a(e){return Na=Fa=1,Ra=Ca(Wa=e),La=0,[]}function Qa(e){return Wa="",e}function Xa(e){return Da(Ga(La-1,es(91===e?e+2:40===e?e+1:e)))}function Za(e){for(;(Ha=Ya())&&Ha<33;)za();return Ka(e)>2||Ka(Ha)>3?"":" "}function Ja(e,t){for(;--t&&za()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return Ga(e,qa()+(t<6&&32==Ya()&&32==za()))}function es(e){for(;za();)switch(Ha){case e:return La;case 34:case 39:34!==e&&39!==e&&es(Ha);break;case 40:41===e&&es(e);break;case 92:za()}return La}function ts(e,t){for(;za()&&e+Ha!==57&&(e+Ha!==84||47!==Ya()););return"/*"+Ga(t,La-1)+"*"+Ea(47===e?e:za())}function ns(e){for(;!Ka(Ya());)za();return Ga(e,La)}function rs(e){return Qa(os("",null,null,null,[""],e=$a(e),0,[0],e))}function os(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,O=i,x=r,k=b;g;)switch(h=v,v=za()){case 40:if(108!=h&&58==Aa(k,d-1)){-1!=_a(k+=Pa(Xa(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Xa(v);break;case 9:case 10:case 13:case 32:k+=Za(h);break;case 92:k+=Ja(qa()-1,7);continue;case 47:switch(Ya()){case 42:case 47:Ia(as(ts(za(),qa()),t,n),c);break;default:k+="/"}break;case 123*m:s[u++]=Ca(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+l:p>0&&Ca(k)-d&&Ia(p>32?ss(k+";",r,n,d-1):ss(Pa(k," ","")+";",r,n,d-2),c);break;case 59:k+=";";default:if(Ia(x=is(k,t,n,u,l,o,s,b,w=[],O=[],d),i),123===v)if(0===l)os(k,t,x,x,w,i,d,s,O);else switch(99===f&&110===Aa(k,3)?100:f){case 100:case 109:case 115:os(e,x,x,r&&Ia(is(e,x,x,0,0,o,s,b,o,w=[],d),O),o,O,d,s,r?w:O);break;default:os(k,x,x,x,[""],O,0,s,O)}}u=l=p=0,m=y=1,b=k="",d=a;break;case 58:d=1+Ca(k),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Ua())continue;switch(k+=Ea(v),v*m){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(Ca(k)-1)*y,y=1;break;case 64:45===Ya()&&(k+=Xa(za())),f=Ya(),l=d=Ca(b=k+=ns(qa())),v++;break;case 45:45===h&&2==Ca(k)&&(m=0)}}return i}function is(e,t,n,r,o,i,a,s,c,u,l){for(var d=o-1,f=0===o?i:[""],p=Ma(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=Ta(e,d+1,d=Sa(m=a[h])),b=e;y<p;++y)(b=Da(m>0?f[y]+" "+v:Pa(v,/&\f/g,f[y])))&&(c[g++]=b);return Ba(e,t,n,0===o?Oa:s,c,u,l)}function as(e,t,n){return Ba(e,t,n,wa,Ea(Ha),Ta(e,2,-2),0)}function ss(e,t,n,r){return Ba(e,t,n,xa,Ta(e,0,r),Ta(e,r+1,-1),r)}function cs(e,t){for(var n="",r=Ma(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function us(e,t,n,r){switch(e.type){case"@import":case xa:return e.return=e.return||e.value;case wa:return"";case ka:return e.return=e.value+"{"+cs(e.children,r)+"}";case Oa:e.value=e.props.join(",")}return Ca(n=cs(e.children,r))?e.return=e.value+"{"+n+"}":""}var ls=function(e,t,n){for(var r=0,o=0;r=o,o=Ya(),38===r&&12===o&&(t[n]=1),!Ka(o);)za();return Ga(e,La)},ds=function(e,t){return Qa(function(e,t){var n=-1,r=44;do{switch(Ka(r)){case 0:38===r&&12===Ya()&&(t[n]=1),e[n]+=ls(La-1,t,n);break;case 2:e[n]+=Xa(r);break;case 4:if(44===r){e[++n]=58===Ya()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ea(r)}}while(r=za());return e}($a(e),t))},fs=new WeakMap,ps=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fs.get(n))&&!r){fs.set(e,!0);for(var o=[],i=ds(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},hs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ms(e,t){switch(function(e,t){return 45^Aa(e,0)?(((t<<2^Aa(e,0))<<2^Aa(e,1))<<2^Aa(e,2))<<2^Aa(e,3):0}(e,t)){case 5103:return ba+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ba+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ba+e+va+e+ya+e+e;case 6828:case 4268:return ba+e+ya+e+e;case 6165:return ba+e+ya+"flex-"+e+e;case 5187:return ba+e+Pa(e,/(\w+).+(:[^]+)/,ba+"box-$1$2"+ya+"flex-$1$2")+e;case 5443:return ba+e+ya+"flex-item-"+Pa(e,/flex-|-self/,"")+e;case 4675:return ba+e+ya+"flex-line-pack"+Pa(e,/align-content|flex-|-self/,"")+e;case 5548:return ba+e+ya+Pa(e,"shrink","negative")+e;case 5292:return ba+e+ya+Pa(e,"basis","preferred-size")+e;case 6060:return ba+"box-"+Pa(e,"-grow","")+ba+e+ya+Pa(e,"grow","positive")+e;case 4554:return ba+Pa(e,/([^-])(transform)/g,"$1"+ba+"$2")+e;case 6187:return Pa(Pa(Pa(e,/(zoom-|grab)/,ba+"$1"),/(image-set)/,ba+"$1"),e,"")+e;case 5495:case 3959:return Pa(e,/(image-set\([^]*)/,ba+"$1$`$1");case 4968:return Pa(Pa(e,/(.+:)(flex-)?(.*)/,ba+"box-pack:$3"+ya+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ba+e+e;case 4095:case 3583:case 4068:case 2532:return Pa(e,/(.+)-inline(.+)/,ba+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ca(e)-1-t>6)switch(Aa(e,t+1)){case 109:if(45!==Aa(e,t+4))break;case 102:return Pa(e,/(.+:)(.+)-([^]+)/,"$1"+ba+"$2-$3$1"+va+(108==Aa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_a(e,"stretch")?ms(Pa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Aa(e,t+1))break;case 6444:switch(Aa(e,Ca(e)-3-(~_a(e,"!important")&&10))){case 107:return Pa(e,":",":"+ba)+e;case 101:return Pa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ba+(45===Aa(e,14)?"inline-":"")+"box$3$1"+ba+"$2$3$1"+ya+"$2box$3")+e}break;case 5936:switch(Aa(e,t+11)){case 114:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ba+e+ya+Pa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ba+e+ya+e+e}return e}var gs=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xa:e.return=ms(e.value,e.length);break;case ka:return cs([Va(e,{value:Pa(e.value,"@","@"+ba)})],r);case Oa:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cs([Va(e,{props:[Pa(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cs([Va(e,{props:[Pa(t,/:(plac\w+)/,":"+ba+"input-$1")]}),Va(e,{props:[Pa(t,/:(plac\w+)/,":-moz-$1")]}),Va(e,{props:[Pa(t,/:(plac\w+)/,ya+"input-$1")]})],r)}return""}))}}];const ys=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||gs;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var c,u,l,d,f=[us,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ps,hs].concat(r,f),l=Ma(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,function(e){cs(rs(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ga({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};var vs=c(4146),bs=c.n(vs);var ws=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Os=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var xs=c(83969);const ks=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ss=/[A-Z]|^ms/g,Es=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(e){return 45===e.charCodeAt(1)},Ds=function(e){return null!=e&&"boolean"!=typeof e},Ps=ks((function(e){return js(e)?e:e.replace(Ss,"-$&").toLowerCase()})),_s=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Es,(function(e,t,n){return Ts={name:t,styles:n,next:Ts},t}))}return 1===xs.A[e]||js(e)||"number"!=typeof t||0===t?t:t+"px"};function As(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ts={name:n.name,styles:n.styles,next:Ts},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ts={name:r.name,styles:r.styles,next:Ts},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=As(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ds(a)&&(r+=Ps(i)+":"+_s(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=As(e,t,a);switch(i){case"animation":case"animationName":r+=Ps(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Ds(a[c])&&(r+=Ps(i)+":"+_s(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ts,i=n(e);return Ts=o,As(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ts,Cs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ms=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ts=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=As(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=As(n,t,e[a]),r&&(o+=i[a]);Cs.lastIndex=0;for(var s,c="";null!==(s=Cs.exec(o));)c+="-"+s[1];return{name:Os(o)+c,styles:o,next:Ts}},Is=!!tt.useInsertionEffect&&tt.useInsertionEffect,Ns=Is||function(e){return e()},Fs={}.hasOwnProperty,Rs=(0,tt.createContext)("undefined"!=typeof HTMLElement?ys({key:"css"}):null);Rs.Provider;var Ls=function(e){return(0,tt.forwardRef)((function(t,n){var r=(0,tt.useContext)(Rs);return e(t,r,n)}))},Hs=(0,tt.createContext)({});var Ws="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ws(t,n,r);Ns((function(){return function(e,t,n){ws(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},Vs=Ls((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ws],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Ms(i,void 0,(0,tt.useContext)(Hs));a+=t.key+"-"+s.name;var c={};for(var u in e)Fs.call(e,u)&&"css"!==u&&u!==Ws&&(c[u]=e[u]);return c.ref=n,c.className=a,(0,tt.createElement)(tt.Fragment,null,(0,tt.createElement)(Bs,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,tt.createElement)(o,c))}));var Us=function(e,t){var n=arguments;if(null==t||!Fs.call(t,"css"))return tt.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vs,o[1]=function(e,t){var n={};for(var r in t)Fs.call(t,r)&&(n[r]=t[r]);return n[Ws]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return tt.createElement.apply(null,o)};function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ms(t)}var Ys=c(81845),qs=c.n(Ys);Math.min,Math.max;const Gs=["top","right","bottom","left"];Gs.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ks(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function $s(e){if(null==e)return window;if(!Ks(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qs(e){return $s(e).getComputedStyle(e)}function Xs(e){return Ks(e)?"":e?(e.nodeName||"").toLowerCase():""}function Zs(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Js(e){return e instanceof $s(e).HTMLElement}function ec(e){return e instanceof $s(e).Element}function tc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $s(e).ShadowRoot||e instanceof ShadowRoot)}function nc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qs(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function rc(){return!/^((?!chrome|android).)*safari/i.test(Zs())}function oc(e){return["html","body","#document"].includes(Xs(e))}Math.min,Math.max;const ic=Math.round;function ac(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Js(e)&&(c=e.offsetWidth>0&&ic(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ic(s.height)/e.offsetHeight||1);const l=ec(e)?$s(e):window,d=!rc()&&n,f=(s.left+(d&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(s.top+(d&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/c,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function sc(e){return(t=e,(t instanceof $s(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function cc(e){if("html"===Xs(e))return e;const t=e.assignedSlot||e.parentNode||(tc(e)?e.host:null)||sc(e);return tc(t)?t.host:t}function uc(e){const t=cc(e);return oc(t)?e.ownerDocument.body:Js(t)&&nc(t)?t:uc(t)}function lc(e,t){var n;void 0===t&&(t=[]);const r=uc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$s(r),a=o?[i].concat(i.visualViewport||[],nc(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lc(a))}const dc=tt.useLayoutEffect;var fc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pc=function(){};function hc(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(hc(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var gc=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===fa(e)&&null!==e?[e]:[];var t},yc=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,na({},aa(e,fc))},vc=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function bc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function wc(e){return bc(e)?window.pageYOffset:e.scrollTop}function Oc(e,t){bc(e)?window.scrollTo(0,t):e.scrollTop=t}function xc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pc,o=wc(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Oc(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function kc(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Oc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Oc(e,Math.max(t.offsetTop-o,0))}function Sc(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ec=!1,jc={get passive(){return Ec=!0}},Dc="undefined"!=typeof window?window:{};Dc.addEventListener&&Dc.removeEventListener&&(Dc.addEventListener("p",pc,jc),Dc.removeEventListener("p",pc,!1));var Pc=Ec;function _c(e){return null!=e}function Ac(e,t,n){return e?t:n}var Tc=["children","innerProps"],Cc=["children","innerProps"];function Mc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,d=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:bc(l=c)?window.innerHeight:l.clientHeight,v=wc(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=g-w,x=y-m,k=O+v,S=d-v-m,E=p-y+v+b,j=v+m-w,D=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&xc(c,E,D),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&xc(c,E,D),{placement:"bottom",maxHeight:a?x-b:S-b};if("auto"===o||a){var P=t,_=a?O:k;return _>=r&&(P=Math.min(_-b-s,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Oc(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&xc(c,j,D),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&O>=r){var A=t;return(!a&&k>=r||a&&O>=r)&&(A=a?O-w:k-w),i&&xc(c,j,D),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Ic,Nc=function(e){return"auto"===e?"bottom":e},Fc=(0,tt.createContext)(null),Rc=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,tt.useContext)(Fc)||{}).setPortalPlacement,u=(0,tt.useRef)(null),l=ia((0,tt.useState)(r),2),d=l[0],f=l[1],p=ia((0,tt.useState)(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return dc((function(){var e=u.current;if(e){var t="fixed"===i,s=Mc({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,g]),t({ref:u,placerProps:na(na({},e),{},{placement:h||Nc(o),maxHeight:d})})},Lc=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Us("div",ca({},vc(e,"menu",{menu:!0}),{ref:n},r),t)},Hc=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return na({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Wc=Hc,Bc=Hc,Vc=["size"],Uc=["innerProps","isRtl","size"];var zc,Yc,qc={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Gc=function(e){var t=e.size,n=aa(e,Vc);return Us("svg",ca({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qc},n))},Kc=function(e){return Us(Gc,ca({size:20},e),Us("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},$c=function(e){return Us(Gc,ca({size:20},e),Us("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qc=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return na({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Xc=Qc,Zc=Qc,Jc=function(){var e=zs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ic||(zc=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Yc||(Yc=zc.slice(0)),Ic=Object.freeze(Object.defineProperties(zc,{raw:{value:Object.freeze(Yc)}})))),eu=function(e){var t=e.delay,n=e.offset;return Us("span",{css:zs({animation:"".concat(Jc," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tu=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Us("div",ca({ref:o},vc(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},nu=["data"],ru=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Us("div",ca({},vc(e,"group",{group:!0}),s),Us(i,ca({},a,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Us("div",null,t))},ou=["innerRef","isDisabled","isHidden","inputClassName"],iu={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},au={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":na({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},iu)},su=function(e){return na({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},iu)},cu=function(e){var t=e.children,n=e.innerProps;return Us("div",n,t)};var uu=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Us(c,{data:r,innerProps:na(na({},vc(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Us(u,{data:r,innerProps:na({},vc(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Us(l,{data:r,innerProps:na(na({},vc(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},lu={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Us(Kc,null))},Control:tu,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Us($c,null))},DownChevron:$c,CrossIcon:Kc,Group:ru,GroupHeading:function(e){var t=yc(e);t.data;var n=aa(t,nu);return Us("div",ca({},vc(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Us("span",ca({},t,vc(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=yc(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=aa(r,ou);return Us("div",ca({},vc(e,"input",{"input-container":!0}),{"data-value":n||""}),Us("input",ca({className:t({input:!0},s),ref:o,style:su(a),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=aa(e,Uc);return Us("div",ca({},vc(na(na({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Us(eu,{delay:0,offset:n}),Us(eu,{delay:160,offset:!0}),Us(eu,{delay:320,offset:!n}))},Menu:Lc,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Us("div",ca({},vc(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,tt.useRef)(null),c=(0,tt.useRef)(null),u=ia((0,tt.useState)(Nc(i)),2),l=u[0],d=u[1],f=(0,tt.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=ia((0,tt.useState)(null),2),h=p[0],m=p[1],g=(0,tt.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,l,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);dc((function(){g()}),[g]);var y=(0,tt.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...ec(e)?lc(e):e.contextElement?lc(e.contextElement):[],...lc(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ec(e)&&!s&&d.observe(e),ec(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ac(e):null;return s&&function t(){const r=ac(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(l)}}(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);dc((function(){y()}),[y]);var v=(0,tt.useCallback)((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!h)return null;var b=Us("div",ca({ref:v},vc(na(na({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Us(Fc.Provider,{value:f},t?(0,Ys.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=aa(e,Cc);return Us("div",ca({},vc(na(na({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=aa(e,Tc);return Us("div",ca({},vc(na(na({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:uu,MultiValueContainer:cu,MultiValueLabel:cu,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({role:"button"},n),t||Us(Kc,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Us("div",ca({},vc(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Us("div",ca({},vc(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Us("div",ca({},vc(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Us("div",ca({},vc(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Us("div",ca({},vc(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},du=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fu(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||du(r)&&du(o)))return!1;var r,o;return!0}for(var pu={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},hu=function(e){return Us("span",ca({css:pu},e))},mu={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},gu=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,y=s.options,v=s.screenReaderStatus,b=s.tabSelectsValue,w=s.isLoading,O=s["aria-label"],x=s["aria-live"],k=(0,tt.useMemo)((function(){return na(na({},mu),l||{})}),[l]),S=(0,tt.useMemo)((function(){var e,n="";if(t&&k.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",f=o||s||void 0,p=f?f.map(d):[],m=na({isDisabled:u&&h(u,a),label:l,labels:p},t);n=k.onChange(m)}return n}),[t,k,h,a,d]),E=(0,tt.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=k.onFocus(s)}return e}),[n,r,d,h,k,o,a,u]),j=(0,tt.useMemo)((function(){var e="";if(g&&y.length&&!w&&k.onFilter){var t=v({count:o.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,k,y,v,w]),D="initial-input-focus"===(null==t?void 0:t.action),P=(0,tt.useMemo)((function(){var e="";if(k.guidance){var t=r?"value":g?"menu":"input";e=k.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:D})}return e}),[O,n,r,p,h,m,g,k,a,b,D]),_=Us(tt.Fragment,null,Us("span",{id:"aria-selection"},S),Us("span",{id:"aria-focused"},E),Us("span",{id:"aria-results"},j),Us("span",{id:"aria-guidance"},P));return Us(tt.Fragment,null,Us(hu,{id:c},D&&_),Us(hu,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!D&&_))},yu=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vu=new RegExp("["+yu.map((function(e){return e.letters})).join("")+"]","g"),bu={},wu=0;wu<yu.length;wu++)for(var Ou=yu[wu],xu=0;xu<Ou.letters.length;xu++)bu[Ou.letters[xu]]=Ou.base;var ku=function(e){return e.replace(vu,(function(e){return bu[e]}))},Su=function(e,t){void 0===t&&(t=fu);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(ku),Eu=function(e){return e.replace(/^\s+|\s+$/g,"")},ju=function(e){return"".concat(e.label," ").concat(e.value)},Du=["innerRef"];function Pu(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=ia(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ia(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(aa(e,Du),"onExited","in","enter","exit","appear");return Us("input",ca({ref:t},n,{css:zs({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var _u=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Au=["boxSizing","height","overflow","paddingRight","position"],Tu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Cu(e){e.preventDefault()}function Mu(e){e.stopPropagation()}function Iu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Nu(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fu=!("undefined"==typeof window||!window.document||!window.document.createElement),Ru=0,Lu={capture:!1,passive:!1};var Hu=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Wu={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Bu(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,tt.useRef)(!1),s=(0,tt.useRef)(!1),c=(0,tt.useRef)(0),u=(0,tt.useRef)(null),l=(0,tt.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=u.current,h=t>0,m=d-f-l,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&_u(e)}}),[n,r,o,i]),d=(0,tt.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,tt.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,tt.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,tt.useCallback)((function(e){if(e){var t=!!Pc&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,tt.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,tt.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,tt.useRef)({}),i=(0,tt.useRef)(null),a=(0,tt.useCallback)((function(e){if(Fu){var t=document.body,n=t&&t.style;if(r&&Au.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ru<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Tu).forEach((function(e){var t=Tu[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Nu()&&(t.addEventListener("touchmove",Cu,Lu),e&&(e.addEventListener("touchstart",Iu,Lu),e.addEventListener("touchmove",Mu,Lu))),Ru+=1}}),[r]),s=(0,tt.useCallback)((function(e){if(Fu){var t=document.body,n=t&&t.style;Ru=Math.max(Ru-1,0),r&&Ru<1&&Au.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Nu()&&(t.removeEventListener("touchmove",Cu,Lu),e&&(e.removeEventListener("touchstart",Iu,Lu),e.removeEventListener("touchmove",Mu,Lu)))}}),[r]);return(0,tt.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Us(tt.Fragment,null,n&&Us("div",{onClick:Hu,css:Wu}),t((function(e){o(e),i(e)})))}var Vu={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Uu=function(e){var t=e.name,n=e.onFocus;return Us("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vu,value:"",onChange:function(){}})};function zu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Yu(){return zu(/^Mac/i)}function qu(){return zu(/^iPhone/i)||zu(/^iPad/i)||Yu()&&navigator.maxTouchPoints>1}var Gu={clearIndicator:Zc,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return na({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Xc,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return na({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return na({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return na(na({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},au),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return na({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Bc,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return na((ea(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ea(n,"position","absolute"),ea(n,"width","100%"),ea(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return na({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return na({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return na({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return na({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Wc,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return na({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return na({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return na({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return na({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Ku,$u={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Qu={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sc(),captureMenuScroll:!Sc(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=na({ignoreCase:!0,ignoreAccents:!0,stringify:ju,trim:!0,matchFrom:"any"},Ku),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Eu(t):t,u=a?Eu(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Su(c),u=ku(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Xu(e,t,n,r){return{type:"option",data:t,isDisabled:il(e,t,n),isSelected:al(e,t,n),label:rl(e,t),value:ol(e,t),index:r}}function Zu(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Xu(e,n,t,r)})).filter((function(t){return tl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Xu(e,n,t,r);return tl(e,i)?i:void 0})).filter(_c)}function Ju(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ma(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function el(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ma(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function tl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!cl(e)||!i)&&sl(e,{label:a,value:s,data:o},r)}var nl=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},rl=function(e,t){return e.getOptionLabel(t)},ol=function(e,t){return e.getOptionValue(t)};function il(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function al(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ol(e,t);return n.some((function(t){return ol(e,t)===r}))}function sl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var cl=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ul=1,ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&la(e,t)}(i,e);var t,n,r,o=ha(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Yu()||qu(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(ma(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Ac(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ac(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Ac(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return nl(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return el(Zu(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return mc.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return rl(t.props,e)},t.getOptionValue=function(e){return ol(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Gu[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,na(na({},lu),e.components);var e},t.buildCategorizedOptions=function(){return Zu(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ju(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:na({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&bc(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return cl(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ul),t.state.selectValue=gc(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=nl(n,r[a])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kc(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kc(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($u):na(na({},$u),this.props.theme):$u}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return il(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return al(this.props,e,t)}},{key:"filterOption",value:function(e,t){return sl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,l=this.state,d=l.inputIsHidden,f=l.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=na(na(na({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?tt.createElement(u,ca({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):tt.createElement(Pu,ca({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pc,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,l=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!l)return p?null:tt.createElement(s,ca({},c,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return tt.createElement(n,ca({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=g[0];return tt.createElement(a,ca({},c,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return tt.createElement(e,ca({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?tt.createElement(e,ca({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return tt.createElement(n,ca({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return tt.createElement(e,ca({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,l=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,x=f.menuPortalTarget,k=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,E=f.noOptionsMessage,j=f.onMenuScrollToTop,D=f.onMenuScrollToBottom;if(!b)return null;var P,_=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,c=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return tt.createElement(u,ca({},l,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),c="".concat(s,"-heading");return tt.createElement(n,ca({},l,{key:s,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return _(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return _(t,"".concat(t.index))}));else if(m){var A=g({inputValue:h});if(null===A)return null;P=tt.createElement(s,l,A)}else{var T=E({inputValue:h});if(null===T)return null;P=tt.createElement(c,l,T)}var C={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},M=tt.createElement(Rc,ca({},l,C),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return tt.createElement(o,ca({},l,C,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),tt.createElement(Bu,{captureEnabled:p,onTopArrive:j,onBottomArrive:D,lockEnabled:k},(function(t){return tt.createElement(i,ca({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),P)})))}));return x||"fixed"===O?tt.createElement(a,ca({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return tt.createElement(Uu,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return tt.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return tt.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):tt.createElement("input",{name:i,type:"hidden",value:""});return tt.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return tt.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return tt.createElement(gu,ca({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();return tt.createElement(r,ca({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:l}),this.renderLiveRegion(),tt.createElement(t,ca({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:l,menuIsOpen:u}),tt.createElement(o,ca({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),tt.createElement(n,ca({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=gc(l),m={};if(n&&(l!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ju(Zu(e,t))}(e,h):[],y=d?el(Zu(e,h),"".concat(c,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:nl(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&s;return a&&!x&&(O={value:Ac(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),na(na(na({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&ua(t.prototype,n),r&&ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(tt.Component);ll.defaultProps=Qu;var dl=(0,tt.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=aa(e,sa),m=ia((0,tt.useState)(void 0!==s?s:n),2),g=m[0],y=m[1],v=ia((0,tt.useState)(void 0!==c?c:o),2),b=v[0],w=v[1],O=ia((0,tt.useState)(void 0!==p?p:a),2),x=O[0],k=O[1],S=(0,tt.useCallback)((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),E=(0,tt.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),j=(0,tt.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),D=(0,tt.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),P=void 0!==s?s:g,_=void 0!==c?c:b,A=void 0!==p?p:x;return na(na({},h),{},{inputValue:P,menuIsOpen:_,onChange:S,onInputChange:E,onMenuClose:D,onMenuOpen:j,value:A})}(e);return tt.createElement(ll,ca({ref:t},n))})),fl=dl;function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ml=(0,pr.injectIntl)((function(e){var t;return(0,wn.jsx)("span",hl(hl({},e.innerProps),{},{children:(0,wn.jsx)(cr,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t})),"data-cy":"btn-clear"})}))}));var gl=c(2418);function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yl.apply(this,arguments)}const vl=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class bl extends tt.Component{constructor(...e){super(...e),this._targetNode=tt.createRef(),this._elementNode=tt.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,tt.isValidElement)(e)||(e=null),(0,tt.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new gl(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,vl),i=yl({target:this._targetNode.current,element:this._elementParentNode},o),a=n||"";if(this._elementParentNode&&this._elementParentNode.id!==a&&(this._elementParentNode.id=a),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?tt.createElement(tt.Fragment,null,e,t&&this._elementParentNode&&Ys.createPortal(t,this._elementParentNode)):null}}var wl,Ol,xl,kl,Sl,El,jl,Dl,Pl,_l,Al,Tl,Cl;function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nl=un.Ay.span.withConfig({displayName:"StyledClickableWrapper"})(wl||(wl=(0,sn.A)(["\n pointer-events: auto;\n cursor: pointer;\n"]))),Fl=un.Ay.div.withConfig({displayName:"StyledReactSelectOuterWrapper"})(Ol||(Ol=(0,sn.A)(["\n outline-style: none;\n cursor: ",";\n"])),(function(e){return e.immutable&&"text"})),Rl=un.Ay.div.withConfig({displayName:"StyledReactSelectInnerWrapper"})(xl||(xl=(0,sn.A)(["\n outline-style: none;\n"]))),Ll=un.Ay.div.withConfig({displayName:"StyledIndicatorsContainerWrapper"})(kl||(kl=(0,sn.A)(["\n position: relative;\n z-index: 1;\n background-color: ",";\n border-radius: ",";\n ",";\n"])),mn.t7.color("paper"),mn.t7.radii("form"),(function(e){return e.isTopAligned&&(0,un.AH)(Sl||(Sl=(0,sn.A)(["\n position: absolute;\n right: 0;\n top: 0;\n "])))})),Hl=(0,un.Ay)(bl).withConfig({displayName:"StyledTether"})(El||(El=(0,sn.A)(["\n && {\n z-index: 1;\n }\n"]))),Wl=(un.Ay.div.withConfig({displayName:"StyledNonTether"})(jl||(jl=(0,sn.A)(["\n position: absolute;\n padding-bottom: ",";\n z-index: 2; // higher than StyledTether and StyledIndicatorsContainerWrapper\n"])),mn.hs.space(1.5)),(0,un.Ay)(lu.Menu).attrs((function(e){return{theme:e.selectTheme}})).withConfig({displayName:"StyledMenu"})(Dl||(Dl=(0,sn.A)(["\n && {\n margin: 8px 0 8px -10px;\n width: calc(","px + 20px);\n position: relative;\n\n .tether-target-attached-top & {\n transform: translateY(-","px);\n }\n }\n"])),(function(e){return e.wrapperWidth}),(function(e){return e.wrapperHeight+6}))),Bl=un.Ay.div.withConfig({displayName:"StyledMoreOptionsAvailable"})(Pl||(Pl=(0,sn.A)(["\n && {\n ","\n cursor: default;\n padding: "," ",";\n }\n"])),(0,mn.Ed)({color:mn.t7.color("signal.info"),lineHeight:"normal"}),mn.hs.space(-.5),mn.hs.space(-.2)),Vl=un.Ay.div.withConfig({displayName:"StyledSingleValueWrapper"})(_l||(_l=(0,sn.A)(["\n overflow-x: hidden;\n position: relative;\n color: ",";\n"])),(function(e){return e.isDisabled?mn.t7.color("text"):"inherit"})),Ul=un.Ay.div.withConfig({displayName:"StyledDropdownIndicatorWrapper"})(Al||(Al=(0,sn.A)(["\n && {\n position: relative;\n width: 25px;\n height: 25px;\n display: flex;\n align-items: center;\n }\n"]))),zl=un.Ay.div.withConfig({displayName:"StyledMultiValueWrapper"})(Tl||(Tl=(0,sn.A)(["\n overflow: hidden;\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n"]))),Yl=un.Ay.span.withConfig({displayName:"StyledMultiValueLabelWrapper"})(Cl||(Cl=(0,sn.A)(["\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),ql=function(e){var t=e.colors.paper,n=e.colors.backgroundItemHover,r=e.colors.backgroundItemSelected,o=e.colors.text,i=e.colors.borderSelect,a=e.colors.textDisabled,s=e.radii.form,c={color:o,fontFamily:e.fontFamily.regular,fontSize:"".concat(e.fontSize.base,"rem"),fontWeight:e.fontWeights.regular,lineHeight:e.lineHeights.regular},u=function(e){return e.isMulti&&(e.selectProps.hasAdvancedSearch||e.selectProps.hasDocsTreeSearch)},l=function(t){return Il(Il({},t),{},{color:e.colors.signal.info,cursor:"default",textAlign:"left"})};return{container:function(e,t){return Il(Il(Il({},e),c),{},{outline:0})},control:function(e,t){return Il(Il({},e),{},{backgroundColor:"transparent",borderWidth:0,boxShadow:null,minHeight:0,flexWrap:"nowrap",position:"relative",display:u(t)?"block":e.display})},noOptionsMessage:l,loadingMessage:l,option:function(o,i){var a=t;return i.isSelected?a=r:i.isFocused&&(a=n),Il(Il({},o),{},{color:e.colors.text,backgroundColor:a,cursor:"pointer",":active":{backgroundColor:i.isSelected?r:n}})},indicatorsContainer:function(e,t){return Il(Il({},e),{},{alignSelf:"flex-end","> *":{padding:"0 !important;"}})},input:function(e,t){var n=50;return t.selectProps.hasDocsTreeSearch&&(n+=25),t.selectProps.hasAdvancedSearch&&(n+=25),t.selectProps.hasCreatePermission&&(n+=25),Il(Il(Il({},e),{},{minHeight:t.isDisabled?"0":"2.6rem",paddingTop:t.isDisabled?"0":"2px",paddingBottom:t.isDisabled?"0":"2px"},u(t)?{width:"calc(100% - ".concat(n,"px)")}:{}),{},{overflow:"hidden",margin:"0",color:o})},menu:function(t,n){return{backgroundColor:e.colors.paper,boxShadow:"0 0 6px ".concat(i),borderRadius:s}},menuList:function(t,n){return Il(Il(Il({},t),c),{},{border:"1px solid ".concat(i),borderRadius:s,padding:"0",backgroundColor:e.colors.paper})},multiValue:function(t,n){return Il(Il({},t),{},{borderRadius:s,backgroundColor:e.colors.backgroundMultiValue,justifyContent:"space-between"},u(n)&&!n.isDisabled?{width:"100%",maxWidth:"300px"}:{})},multiValueLabel:function(e,t){return Il(Il({},e),{},{borderRadius:s,color:o,fontSize:"inherit",lineHeight:1.8})},multiValueRemove:function(e,t){return Il(Il({},e),{},{borderRadius:0,color:o,display:t.isDisabled?"none":"flex",":hover":Il(Il({},e[":hover"]),{},{color:o,backgroundColor:r,cursor:"pointer"})})},singleValue:function(e,t){return Il(Il({},e),{},{color:t.isDisabled?a:o,margin:0})},valueContainer:function(t,n){return Il(Il({},t),{},{padding:0,margin:0,gap:mn.hs.space(-2.5)({theme:e})})}}};function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $l=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,wn.jsx)(lu.DropdownIndicator,Kl(Kl({},e),{},{children:(0,wn.jsx)(Ul,{children:(0,wn.jsx)(cr,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};l().shape({key:l().any.isRequired,display:l().string});var Ql,Xl,Zl;function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var td=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},nd=function(e,t){return function(n){n.stopPropagation(),e(t)}},rd=function(e,t){return function(n){n.stopPropagation(),e(t)}},od=function(e){e.stopPropagation()};const id=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,i=t.isDisabled,a=t.hasDocsTreeSearch,s=t.hasAdvancedSearch,c=t.createPermission,u=t.value,l=t.isMulti,d=t.inputValue,f=l&&(s||a);return(0,wn.jsx)(Ll,{isTopAligned:f,children:(0,wn.jsxs)(lu.IndicatorsContainer,ed(ed({},e),{},{children:[e.children,n&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:nd(n,u),children:Ql||(Ql=(0,wn.jsx)(cr,{icon:"folder",tabIndex:-1,"data-cy":"btn-docsTreeSearch"}))}),r&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:td(r,d,u),children:Xl||(Xl=(0,wn.jsx)(cr,{icon:"search",tabIndex:-1,"data-cy":"btn-advancedSearch"}))}),c&&!i&&(0,wn.jsx)("span",{onTouchEnd:od,onMouseDown:rd(o,u),children:Zl||(Zl=(0,wn.jsx)(cr,{icon:"plus",tabIndex:-1,"data-cy":"btn-remoteCreate"}))})]}))})};var ad;const sd=function(){return ad||(ad=(0,wn.jsx)("span",{children:(0,wn.jsx)(Sn,{size:"1.8rem"})}))};var cd="tocco-app",ud=c(85072),ld=c.n(ud),dd=c(97825),fd=c.n(dd),pd=c(77659),hd=c.n(pd),md=c(55056),gd=c.n(md),yd=c(10540),vd=c.n(yd),bd=c(41113),wd=c.n(bd),Od=c(2063),xd={};xd.styleTagTransform=wd(),xd.setAttributes=gd(),xd.insert=hd().bind(null,"head"),xd.domAPI=fd(),xd.insertStyleElement=vd();ld()(Od.A,xd);Od.A&&Od.A.locals&&Od.A.locals;var kd,Sd=c(59386),Ed=c.n(Sd),jd=un.Ay.span.withConfig({displayName:"StyledChildrenWrapper"})(kd||(kd=(0,sn.A)(["\n cursor: pointer;\n user-select: none;\n"]))),Dd=rt().forwardRef((function(e,t){var n=e.children,r=e.onOpen;return(0,wn.jsx)(jd,{onClick:r,ref:t,children:n})}));Dd.propTypes={children:l().any,onOpen:l().func};const Pd=Dd;var _d=c(131),Ad=c(51732),Td=function(){(0,Sd.registerLocale)("en",Ad.A.getDateFnsLocale("en")),(0,Sd.registerLocale)("en-US",Ad.A.getDateFnsLocale("en")),(0,Sd.registerLocale)("de-CH",Ad.A.getDateFnsLocale("de-CH")),(0,Sd.registerLocale)("de-DE",Ad.A.getDateFnsLocale("de-DE")),(0,Sd.registerLocale)("de",Ad.A.getDateFnsLocale("de")),(0,Sd.registerLocale)("fr",Ad.A.getDateFnsLocale("fr")),(0,Sd.registerLocale)("fr-CH",Ad.A.getDateFnsLocale("fr")),(0,Sd.registerLocale)("it",Ad.A.getDateFnsLocale("it")),(0,Sd.registerLocale)("it-CH",Ad.A.getDateFnsLocale("it")),(0,Sd.setDefaultLocale)("de")};Td();(0,un.SL)((0,pr.injectIntl)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,tt.useRef)(null),c=(0,tt.useState)(!1),u=(0,En.A)(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,wn.jsx)(Ed(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,wn.jsx)(Pd,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Cd,Md,Id,Nd,Fd,Rd,Ld=mn.t7.color("secondaryLight"),Hd=mn.t7.color("paper"),Wd=mn.t7.color("text"),Bd=mn.t7.color("secondary"),Vd=mn.t7.radii("form"),Ud=(0,un.DU)(Cd||(Cd=(0,sn.A)(["\n .react-datepicker-popper {\n && {\n // higher than StyledHolder and very high value to prevent other elements blocking it when implemented as a widget\n z-index: 9100;\n margin: 0;\n }\n }\n\n .react-datepicker-wrapper {\n width: 100%;\n\n .react-datepicker__input-container {\n "," {\n color: ",";\n }\n }\n }\n\n .react-datepicker.react-datepicker .react-datepicker__time-container--with-today-button,\n .react-datepicker.react-datepicker .react-datepicker__time-container .react-datepicker__time {\n border-radius: "," !important;\n height: 100%;\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: ",";\n border: 1px solid ",";\n background-color: ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__month-read-view--selected-month,\n .react-datepicker__year-read-view--selected-year {\n font-size: ",";\n font-weight: ",";\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n }\n\n .react-datepicker__day.react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n color: #fff; // static in all themes\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n\n &:last-child {\n border-radius: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n align-items: baseline;\n gap: ",";\n background-color: ",";\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n width: 80px;\n border: 1px solid ",";\n border-radius: ",";\n text-align: center;\n margin-top: ",";\n margin-bottom: ",";\n }\n }\n }\n\n .react-datepicker-time__header {\n font-size: ",";\n color: ",";\n font-weight: ",";\n padding-bottom: ",";\n }\n\n .react-datepicker__time-container--with-today-button,\n .react-datepicker__time-container .react-datepicker__time {\n border-radius: 0;\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 250px;\n margin: 8px auto;\n display: grid;\n grid-template-columns: 140px 70px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 8px;\n right: 0;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n margin: 0 2px;\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: #fff;\n }\n }\n\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n height: 100%;\n border-radius: ",";\n background-color: ",";\n\n ul.react-datepicker__time-list {\n height: 100% !important;\n\n & li.react-datepicker__time-list-item {\n height: auto;\n }\n\n & li.react-datepicker__time-list-item:hover {\n background-color: ",";\n }\n\n & li.react-datepicker__time-list-item--selected {\n background-color: ",";\n }\n }\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n\n .react-datepicker__time-container--with-today-button {\n border-color: ",";\n border-radius: ",";\n right: -88px;\n top: -0.5px;\n }\n\n .react-datepicker__header--time {\n display: none;\n }\n }\n }\n"])),bn.i,Wd,mn.t7.radii("form"),Vd,Ld,Hd,(0,mn.Ed)(),(0,mn.Ed)(),Ld,Vd,Vd,mn.hs.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",Hd,mn.hs.font(1),mn.t7.fontWeight("bold"),(0,mn.Ed)({fontWeight:mn.t7.fontWeight("bold")}),Hd,mn.hs.font(-2),mn.hs.space(-1.8),Bd,Bd,Bd,Ld,Ld,Ld,Bd,(0,mn.Ed)(),Hd,mn.hs.space(-.5),mn.t7.color("backgroundItemHover"),Vd,mn.hs.space(-.5),Hd,mn.t7.color("border"),mn.t7.radii("form"),mn.hs.space(-1),mn.hs.space(-1),mn.hs.font(1),Hd,mn.t7.fontWeight("bold"),mn.hs.space(-1),Hd,mn.hs.font(0),Wd,Ld,Ld,mn.t7.radii("form"),Hd,Ld,Bd,Wd,Wd,Hd,Ld,mn.t7.color("backgroundItemHover"),mn.t7.color("textDisabled"),mn.t7.color("border"),mn.t7.radii("form")),zd=(0,un.DU)(Md||(Md=(0,sn.A)(["\n /****** Global text colors *****/\n /* usages: display expressions, freemarker, html content, icon styling, template snippets, ... */\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n\n /***** Global text colors *****/\n\n /***** Template Snippets ******/\n\n /* light_cellrenderer */\n .light_cellrenderer {\n font-size: 1.6rem;\n display: inline-block;\n min-width: 1.7rem;\n }\n\n /***** Template Snippets *****/\n"])),mn.t7.color("signal.success"),mn.t7.color("signal.info"),mn.t7.color("signal.warning"),mn.t7.color("signal.danger"),mn.t7.color("textDisabled")),Yd=(0,un.DU)(Id||(Id=(0,sn.A)(["\n // Chrome, Edge, and Safari\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n // Firefox\n * {\n scrollbar-color: "," transparent; // Firefox workaround\n scrollbar-width: thin;\n }\n"])),mn.t7.color("backgroundScrollbar"),mn.t7.color("backgroundScrollbarHover"),mn.t7.color("backgroundScrollbar"));const qd=function(){return(0,wn.jsxs)(wn.Fragment,{children:[Nd||(Nd=(0,wn.jsx)(zd,{})),Fd||(Fd=(0,wn.jsx)(Ud,{})),Rd||(Rd=(0,wn.jsx)(Yd,{}))]})};function Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $d=function(e){var t=e.selectProps,n=e.children,r=e.theme;return(0,wn.jsx)(Hl,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,wn.jsx)("div",{ref:e})},renderElement:function(o){return(0,wn.jsx)("div",{ref:o,className:cd,children:(0,wn.jsx)(Wl,Kd(Kd({},pi()(e,["innerRef","theme"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,selectTheme:r,children:n}))})}})};function Qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zd=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,wn.jsxs)(lu.MenuList,Xd(Xd({},e),{},{className:"MenuList",children:[n,r&&(0,wn.jsx)(Bl,{children:o})]}))};function Jd(e){return tf(e)?(e.nodeName||"").toLowerCase():"#document"}function ef(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tf(e){return e instanceof Node||e instanceof ef(e).Node}function nf(e){return e instanceof Element||e instanceof ef(e).Element}function rf(e){return e instanceof HTMLElement||e instanceof ef(e).HTMLElement}function of(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ef(e).ShadowRoot)}function af(e){return["html","body","#document"].includes(Jd(e))}function sf(e){return ef(e).getComputedStyle(e)}function cf(e){if("html"===Jd(e))return e;const t=e.assignedSlot||e.parentNode||of(e)&&e.host||function(e){var t;return null==(t=(tf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return of(t)?t.host:t}function uf(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&of(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function lf(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function df(e){return(null==e?void 0:e.ownerDocument)||document}function ff(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function pf(e){return"composedPath"in e?e.composedPath()[0]:e.target}const hf="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function mf(e){return rf(e)&&e.matches(hf)}Math.min,Math.max,Math.round,Math.floor;const gf=Math.min,yf=Math.max,vf=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),bf={start:"end",end:"start"};function wf(e,t,n){return yf(e,gf(t,n))}function Of(e,t){return"function"==typeof e?e(t):e}function xf(e){return e.split("-")[0]}function kf(e){return e.split("-")[1]}function Sf(e){return"x"===e?"y":"x"}function Ef(e){return"y"===e?"height":"width"}function jf(e){return["top","bottom"].includes(xf(e))?"y":"x"}function Df(e){return Sf(jf(e))}function Pf(e){return e.replace(/start|end/g,(e=>bf[e]))}function _f(e){return e.replace(/left|right|bottom|top/g,(e=>vf[e]))}function Af(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Tf(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cf(e,t,n){let{reference:r,floating:o}=e;const i=jf(t),a=Df(t),s=Ef(a),c=xf(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(kf(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function Mf(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Of(t,e),h=Af(p),m=s[f?"floating"===d?"reference":"floating":d],g=Tf(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===d?{...a.floating,x:r,y:o}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Tf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const If=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Of(e,t)||{};if(null==c)return{};const l=Af(u),d={x:n,y:r},f=Df(o),p=Ef(f),h=await a.getDimensions(c),m="y"===f,g=m?"top":"left",y=m?"bottom":"right",v=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],O=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let x=O?O[v]:0;x&&await(null==a.isElement?void 0:a.isElement(O))||(x=s.floating[v]||i.floating[p]);const k=b/2-w/2,S=x/2-h[p]/2-1,E=gf(l[g],S),j=gf(l[y],S),D=E,P=x-h[p]-j,_=x/2-h[p]/2+k,A=wf(D,_,P),T=null!=kf(o)&&_!=A&&i.reference[p]/2-(_<D?E:j)-h[p]/2<0?_<D?D-_:P-_:0;return{[f]:d[f]-T,data:{[f]:A,centerOffset:_-A+T}}}});const Nf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=Of(e,t),g=xf(r),y=xf(a)===a,v=await(null==s.isRTL?void 0:s.isRTL(c.floating)),b=d||(y||!h?[_f(a)]:function(e){const t=_f(e);return[Pf(e),t,Pf(t)]}(a));d||"none"===p||b.push(...function(e,t,n,r){const o=kf(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(xf(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Pf)))),i}(a,h,p,v));const w=[a,...b],O=await Mf(t,m),x=[];let k=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&x.push(O[g]),l){const e=function(e,t,n){void 0===n&&(n=!1);const r=kf(e),o=Df(e),i=Ef(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_f(a)),[a,_f(a)]}(r,i,v);x.push(O[e[0]],O[e[1]])}if(k=[...k,{placement:r,overflows:x}],!x.every((e=>e<=0))){var S,E;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(E=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var j;const e=null==(j=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const Ff=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=xf(n),s=kf(n),c="y"===jf(n),u=["left","top"].includes(a)?-1:1,l=i&&c?-1:1,d=Of(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*l,y:f*u}:{x:f*u,y:p*l}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Rf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Of(e,t),u={x:n,y:r},l=await Mf(t,c),d=jf(xf(o)),f=Sf(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=wf(p+l["y"===f?"top":"left"],p,p-l[e])}if(a){const e="y"===d?"bottom":"right";h=wf(h+l["y"===d?"top":"left"],h,h-l[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Lf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Of(e,t),c=await Mf(t,s),u=xf(n),l=kf(n),d="y"===jf(n),{width:f,height:p}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=l===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===l?"top":"bottom");const g=p-c[h],y=f-c[m],v=!t.middlewareData.shift;let b=g,w=y;if(d){const e=f-c.left-c.right;w=l||v?gf(y,e):e}else{const e=p-c.top-c.bottom;b=l||v?gf(g,e):e}if(v&&!l){const e=yf(c.left,0),t=yf(c.right,0),n=yf(c.top,0),r=yf(c.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:yf(c.left,c.right)):b=p-2*(0!==n||0!==r?n+r:yf(c.top,c.bottom))}await a({...t,availableWidth:w,availableHeight:b});const O=await o.getDimensions(i.floating);return f!==O.width||p!==O.height?{reset:{rects:!0}}:{}}}},Hf=Math.min,Wf=Math.max,Bf=Math.round,Vf=Math.floor,Uf=e=>({x:e,y:e});function zf(e){return Gf(e)?(e.nodeName||"").toLowerCase():"#document"}function Yf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qf(e){var t;return null==(t=(Gf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Gf(e){return e instanceof Node||e instanceof Yf(e).Node}function Kf(e){return e instanceof Element||e instanceof Yf(e).Element}function $f(e){return e instanceof HTMLElement||e instanceof Yf(e).HTMLElement}function Qf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yf(e).ShadowRoot)}function Xf(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=np(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zf(e){return["table","td","th"].includes(zf(e))}function Jf(e){const t=ep(),n=np(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ep(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tp(e){return["html","body","#document"].includes(zf(e))}function np(e){return Yf(e).getComputedStyle(e)}function rp(e){return Kf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function op(e){if("html"===zf(e))return e;const t=e.assignedSlot||e.parentNode||Qf(e)&&e.host||qf(e);return Qf(t)?t.host:t}function ip(e){const t=op(e);return tp(t)?e.ownerDocument?e.ownerDocument.body:e.body:$f(t)&&Xf(t)?t:ip(t)}function ap(e,t){var n;void 0===t&&(t=[]);const r=ip(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Yf(r);return o?t.concat(i,i.visualViewport||[],Xf(r)?r:[]):t.concat(r,ap(r))}function sp(e){const t=np(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$f(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Bf(n)!==i||Bf(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function cp(e){return Kf(e)?e:e.contextElement}function up(e){const t=cp(e);if(!$f(t))return Uf(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=sp(t);let a=(i?Bf(n.width):n.width)/r,s=(i?Bf(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const lp=Uf(0);function dp(e){const t=Yf(e);return ep()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:lp}function fp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=cp(e);let a=Uf(1);t&&(r?Kf(r)&&(a=up(r)):a=up(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yf(e))&&t}(i,n,r)?dp(i):Uf(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Yf(i),t=r&&Kf(r)?Yf(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=up(n),t=n.getBoundingClientRect(),r=np(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=o,u+=i,n=Yf(n).frameElement}}return Tf({width:l,height:d,x:c,y:u})}function pp(e){return fp(qf(e)).left+rp(e).scrollLeft}function hp(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Yf(e),r=qf(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=ep();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=qf(e),n=rp(e),r=e.ownerDocument.body,o=Wf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pp(e);const s=-n.scrollTop;return"rtl"===np(r).direction&&(a+=Wf(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(qf(e));else if(Kf(t))r=function(e,t){const n=fp(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$f(e)?up(e):Uf(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=dp(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Tf(r)}function mp(e,t){const n=op(e);return!(n===t||!Kf(n)||tp(n))&&("fixed"===np(n).position||mp(n,t))}function gp(e,t,n){const r=$f(t),o=qf(t),i="fixed"===n,a=fp(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Uf(0);if(r||!r&&!i)if(("body"!==zf(t)||Xf(o))&&(s=rp(t)),r){const e=fp(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=pp(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function yp(e,t){return $f(e)&&"fixed"!==np(e).position?t?t(e):e.offsetParent:null}function vp(e,t){const n=Yf(e);if(!$f(e))return n;let r=yp(e,t);for(;r&&Zf(r)&&"static"===np(r).position;)r=yp(r,t);return r&&("html"===zf(r)||"body"===zf(r)&&"static"===np(r).position&&!Jf(r))?n:r||function(e){let t=op(e);for(;$f(t)&&!tp(t);){if(Jf(t))return t;t=op(t)}return null}(e)||n}const bp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=$f(n),i=qf(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Uf(1);const c=Uf(0);if((o||!o&&"fixed"!==r)&&(("body"!==zf(n)||Xf(i))&&(a=rp(n)),$f(n))){const e=fp(n);s=up(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:qf,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ap(e).filter((e=>Kf(e)&&"body"!==zf(e))),o=null;const i="fixed"===np(e).position;let a=i?op(e):e;for(;Kf(a)&&!tp(a);){const t=np(a),n=Jf(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xf(a)&&!n&&mp(e,a))?r=r.filter((e=>e!==a)):o=t,a=op(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],c=a.reduce(((e,n)=>{const r=hp(t,n,o);return e.top=Wf(r.top,e.top),e.right=Hf(r.right,e.right),e.bottom=Hf(r.bottom,e.bottom),e.left=Wf(r.left,e.left),e}),hp(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:vp,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||vp,i=this.getDimensions;return{reference:gp(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return sp(e)},getScale:up,isElement:Kf,isRTL:function(e){return"rtl"===np(e).direction}};function wp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=cp(e),l=o||i?[...u?ap(u):[],...ap(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=qf(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:u,top:l,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Vf(l)+"px "+-Vf(o.clientWidth-(u+d))+"px "+-Vf(o.clientHeight-(l+f))+"px "+-Vf(u)+"px",threshold:Wf(0,Hf(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?fp(e):null;return c&&function t(){const r=fp(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const Op=(e,t,n)=>{const r=new Map,o={platform:bp,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=Cf(u,r,c),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y,data:v,reset:b}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=g?g:l,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:d}=Cf(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},xp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?If({element:n.current,padding:r}).fn(t):{}:n?If({element:n,padding:r}).fn(t):{};var o}});var kp="undefined"!=typeof document?tt.useLayoutEffect:tt.useEffect;function Sp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Sp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Sp(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ep(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jp(e,t){const n=Ep(e);return Math.round(t*n)/n}function Dp(e){const t=tt.useRef(e);return kp((()=>{t.current=e})),t}var Pp=c(49054);const _p={...nt},Ap=_p.useInsertionEffect||(e=>e());function Tp(e){const t=tt.useRef((()=>{0}));return Ap((()=>{t.current=e})),tt.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Cp="ArrowUp",Mp="ArrowDown",Ip="ArrowLeft",Np="ArrowRight";var Fp="undefined"!=typeof document?tt.useLayoutEffect:tt.useEffect;const Rp=[Ip,Np],Lp=[Cp,Mp];function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}let Wp=!1,Bp=0;const Vp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bp++;const Up=_p.useId||function(){const[e,t]=tt.useState((()=>Wp?Vp():void 0));return Fp((()=>{null==e&&t(Vp())}),[]),tt.useEffect((()=>{Wp=!0}),[]),e};const zp=tt.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:l,d,style:{transform:f,...p}={},...h}=e;const m=Up();if(!r)return null;const g=2*c,y=g/2,v=i/2*(s/-8+1),b=a/2*s/4,[w,O]=n.split("-"),x=bp.isRTL(r),k=!!d,S="top"===w||"bottom"===w,E=u&&"end"===O?"bottom":"top";let j=u&&"end"===O?"right":"left";u&&x&&(j="end"===O?"left":"right");const D=null!=(null==o?void 0:o.x)?u||o.x:"",P=null!=(null==o?void 0:o.y)?u||o.y:"",_=d||"M0,0 H"+i+" L"+(i-v)+","+(a-b)+" Q"+i/2+","+a+" "+v+","+(a-b)+" Z",A={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[w];return tt.createElement("svg",Hp({},h,{"aria-hidden":!0,ref:t,width:k?i:i+g,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[j]:D,[E]:P,[w]:S||k?"100%":"calc(100% - "+g/2+"px)",transform:""+A+(null!=f?f:""),...p}}),g>0&&tt.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:l,strokeWidth:g+(d?0:1),d:_}),tt.createElement("path",{stroke:g&&!d?h.fill:"none",d:_}),tt.createElement("clipPath",{id:m},tt.createElement("rect",{x:-y,y:y*(k?-1:1),width:i+g,height:i})))}));function Yp(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const qp=tt.createContext(null),Gp=tt.createContext(null),Kp=()=>{var e;return(null==(e=tt.useContext(qp))?void 0:e.id)||null},$p=()=>tt.useContext(Gp);function Qp(e){return"data-floating-ui-"+e}function Xp(e){const t=(0,tt.useRef)(e);return Fp((()=>{t.current=e})),t}const Zp=Qp("safe-polygon");function Jp(e,t,n){return n&&!lf(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function eh(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const th=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nh(e,t){const n=(0,Pp.Kr)(e,th());"prev"===t&&n.reverse();const r=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}(df(e)));return n.slice(r+1)[0]}function rh(){return nh(document.body,"next")}function oh(){return nh(document.body,"prev")}function ih(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!uf(n,r)}function ah(e){(0,Pp.Kr)(e,th()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function sh(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const ch={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function uh(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const lh=tt.forwardRef((function(e,t){const[n,r]=tt.useState();Fp((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",uh),()=>{document.removeEventListener("keydown",uh)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Qp("focus-guard")]:"",style:ch};return tt.createElement("span",Hp({},e,o))})),dh=tt.createContext(null),fh=Qp("portal");function ph(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Up(),o=hh(),[i,a]=tt.useState(null),s=tt.useRef(null);return Fp((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Fp((()=>{if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(fh,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Fp((()=>{if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!nf(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const c=document.createElement("div");c.id=r,c.setAttribute(fh,""),e=i||e,e.appendChild(c),s.current=c,a(c)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=tt.useState(null),c=tt.useRef(null),u=tt.useRef(null),l=tt.useRef(null),d=tt.useRef(null),f=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return tt.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&ih(e)){("focusin"===e.type?sh:ah)(i)}}}),[i,o,null==a?void 0:a.modal]),tt.createElement(dh.Provider,{value:tt.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:l,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},f&&i&&tt.createElement(lh,{"data-type":"outside",ref:c,onFocus:e=>{if(ih(e,i)){var t;null==(t=l.current)||t.focus()}else{const e=oh()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),f&&i&&tt.createElement("span",{"aria-owns":i.id,style:ch}),i&&(0,Ys.createPortal)(t,i),f&&i&&tt.createElement(lh,{"data-type":"outside",ref:u,onFocus:e=>{if(ih(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=rh()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const hh=()=>tt.useContext(dh);function mh(e){return rf(e.target)&&"BUTTON"===e.target.tagName}function gh(e){return mf(e)}function yh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:l=!0}=t,d=tt.useRef(),f=tt.useRef(!1);return tt.useMemo((()=>a?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0===e.button&&(lf(d.current,!0)&&u||"click"!==s&&(!n||!c||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&d.current?d.current=void 0:lf(d.current,!0)&&u||(!n||!c||o.current.openEvent&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!l||mh(e)||(" "!==e.key||gh(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||mh(e)||gh(i)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}}}:{}),[a,o,s,u,l,i,c,n,r])}const vh={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},bh={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},wh=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Oh(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,nodeId:o,elements:{reference:i,domReference:a,floating:s},dataRef:c}=e,{enabled:u=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:y}=t,v=$p(),b=Tp("function"==typeof d?d:()=>!1),w="function"==typeof d?b:d,O=tt.useRef(!1),x=tt.useRef(!1),{escapeKey:k,outsidePress:S}=wh(g),{escapeKey:E,outsidePress:j}=wh(y),D=Tp((e=>{if(!n||!u||!l||"Escape"!==e.key)return;const t=v?eh(v.nodesRef.current,o):[];if(!k&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),P=Tp((e=>{var t;const n=()=>{var t;D(e),null==(t=pf(e))||t.removeEventListener("keydown",n)};null==(t=pf(e))||t.addEventListener("keydown",n)})),_=Tp((e=>{const t=O.current;O.current=!1;const n=x.current;if(x.current=!1,"click"===f&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const i=pf(e),c="["+Qp("inert")+"]",u=df(s).querySelectorAll(c);let l=nf(i)?i:null;for(;l&&!af(l);){const e=cf(l);if(af(e)||!nf(e))break;l=e}if(u.length&&nf(i)&&!i.matches("html,body")&&!uf(i,s)&&Array.from(u).every((e=>!uf(l,e))))return;if(rf(i)&&s){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let r=n&&e.offsetX>i.clientWidth;if(n){"rtl"===sf(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth)}if(r||t&&e.offsetY>i.clientHeight)return}const d=v&&eh(v.nodesRef.current,o).some((t=>{var n;return ff(e,null==(n=t.context)?void 0:n.elements.floating)}));if(ff(e,s)||ff(e,a)||d)return;const p=v?eh(v.nodesRef.current,o):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),A=Tp((e=>{var t;const n=()=>{var t;_(e),null==(t=pf(e))||t.removeEventListener(f,n)};null==(t=pf(e))||t.addEventListener(f,n)}));return tt.useEffect((()=>{if(!n||!u)return;function e(e){r(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=k,c.current.__outsidePressBubbles=S;const t=df(s);l&&t.addEventListener("keydown",E?P:D,E),w&&t.addEventListener(f,j?A:_,j);let o=[];return m&&(nf(a)&&(o=ap(a)),nf(s)&&(o=o.concat(ap(s))),!nf(i)&&i&&i.contextElement&&(o=o.concat(ap(i.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{l&&t.removeEventListener("keydown",E?P:D,E),w&&t.removeEventListener(f,j?A:_,j),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,a,i,l,w,f,n,r,m,u,k,S,D,E,P,_,j,A]),tt.useEffect((()=>{O.current=!1}),[w,f]),tt.useMemo((()=>u?{reference:{onKeyDown:D,[vh[h]]:e=>{p&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:D,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[bh[f]]:()=>{O.current=!0}}}:{}),[u,p,f,h,r,D])}function xh(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=tt.useState(null),[s,c]=tt.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||i;Fp((()=>{u&&(h.current=u)}),[u]);const l=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[l,d]=tt.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=tt.useState(r);Sp(f,r)||p(r);const[h,m]=tt.useState(null),[g,y]=tt.useState(null),v=tt.useCallback((e=>{e!=x.current&&(x.current=e,m(e))}),[m]),b=tt.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[y]),w=i||h,O=a||g,x=tt.useRef(null),k=tt.useRef(null),S=tt.useRef(l),E=Dp(c),j=Dp(o),D=tt.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};j.current&&(e.platform=j.current),Op(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!Sp(S.current,t)&&(S.current=t,Ys.flushSync((()=>{d(t)})))}))}),[f,t,n,j]);kp((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const P=tt.useRef(!1);kp((()=>(P.current=!0,()=>{P.current=!1})),[]),kp((()=>{if(w&&(x.current=w),O&&(k.current=O),w&&O){if(E.current)return E.current(w,O,D);D()}}),[w,O,D,E]);const _=tt.useMemo((()=>({reference:x,floating:k,setReference:v,setFloating:b})),[v,b]),A=tt.useMemo((()=>({reference:w,floating:O})),[w,O]),T=tt.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=jp(A.floating,l.x),r=jp(A.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ep(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,l.x,l.y]);return tt.useMemo((()=>({...l,update:D,refs:_,elements:A,floatingStyles:T})),[l,D,_,A,T])}({...e,elements:{...e.elements,...s&&{reference:s}}}),d=$p(),f=null!=Kp(),p=Tp(((e,t,n)=>{m.current.openEvent=e?t:void 0,g.emit("openchange",{open:e,event:t,reason:n,nested:f}),null==r||r(e,t,n)})),h=tt.useRef(null),m=tt.useRef({}),g=tt.useState((()=>Yp()))[0],y=Up(),v=tt.useCallback((e=>{const t=nf(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),l.refs.setReference(t)}),[l.refs]),b=tt.useCallback((e=>{(nf(e)||null===e)&&(h.current=e,a(e)),(nf(l.refs.reference.current)||null===l.refs.reference.current||null!==e&&!nf(e))&&l.refs.setReference(e)}),[l.refs]),w=tt.useMemo((()=>({...l.refs,setReference:b,setPositionReference:v,domReference:h})),[l.refs,b,v]),O=tt.useMemo((()=>({...l.elements,domReference:u})),[l.elements,u]),x=tt.useMemo((()=>({...l,refs:w,elements:O,dataRef:m,nodeId:o,floatingId:y,events:g,open:n,onOpenChange:p})),[l,o,y,g,n,p,w,O]);return Fp((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===o));e&&(e.context=x)})),tt.useMemo((()=>({...l,context:x,refs:w,elements:O})),[l,w,O,x])}const kh="active",Sh="selected";function Eh(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[kh]:t,[Sh]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[kh,Sh].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function jh(e){void 0===e&&(e=[]);const t=e,n=tt.useCallback((t=>Eh(t,e,"reference")),t),r=tt.useCallback((t=>Eh(t,e,"floating")),t),o=tt.useCallback((t=>Eh(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return tt.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o})),[n,r,o])}var Dh,Ph,_h,Ah,Th,Ch=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(Dh||(Dh=(0,sn.A)(["\n color: ",";\n font-size: ",";\n margin-left: -",";\n"])),mn.t7.color("text"),mn.hs.font(1),mn.hs.space(-1)),Mh=(0,un.AH)(Ph||(Ph=(0,sn.A)(["\n display: inline-block;\n color: ","; // nice2 reset\n line-height: ","; // nice2 reset\n text-align: left; // nice2 reset\n vertical-align: unset; // nice2 reset\n font-size: 100% !important; // nice2 reset\n font-weight: "," !important; // nice2 reset\n padding: "," "," !important; // nice2 reset\n white-space: normal !important; // nice2 reset\n border-radius: ",";\n"])),mn.t7.color("text"),mn.t7.lineHeight("regular"),mn.t7.fontWeight("regular"),mn.hs.space(-3),mn.hs.space(-1.5),mn.t7.radii("statusLabel")),Ih=(0,un.Ay)(No.oY).withConfig({displayName:"StyledHtmlFormatter"})(_h||(_h=(0,sn.A)(["\n &&& {\n ","\n margin: 0 0 ",";\n\n svg {\n margin-right: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n\n .label {\n ","\n }\n\n .label-danger {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-info {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-warning {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-success {\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-neutral {\n ","\n background-color: "," !important; // nice2 reset\n color: ",";\n }\n\n .label-status {\n border-radius: ",";\n padding: "," ",";\n\n &.filled {\n color: ",";\n background-color: ",";\n }\n }\n\n .label-attention {\n background-color: "," !important; // nice2 reset\n padding: "," "," !important;\n\n a {\n text-decoration: underline;\n color: #000; // same color in all themes\n }\n }\n }\n"])),(function(e){return(0,No.gv)(e,"html")}),mn.hs.space(-1),mn.hs.space(-1.5),Mh,mn.t7.color("signal.dangerLight"),mn.t7.color("textLabel"),mn.t7.color("signal.infoLight"),mn.t7.color("textLabel"),mn.t7.color("signal.warningLight"),mn.t7.color("textLabel"),mn.t7.color("signal.successLight"),mn.t7.color("textLabel"),Mh,mn.t7.color("signal.dangerLight"),mn.t7.color("textLabel"),mn.t7.radii("statusLabel"),mn.hs.space(-2.1),mn.hs.space(0),mn.t7.color("paper"),mn.t7.color("signal.info"),mn.t7.color("signal.warningLight"),mn.hs.space(-1.5),mn.hs.space(.5)),Nh=un.Ay.div.withConfig({displayName:"StyledFloatingUi"})(Ah||(Ah=(0,sn.A)(["\n && {\n pointer-events: none; // prevent flickering of tooltip\n background-color: ",";\n max-width: 400px;\n z-index: 100000010;\n padding: ",";\n\n * {\n color: ",";\n }\n\n svg path {\n // style FloatingArrow SVG\n fill: ",";\n }\n }\n"])),mn.t7.color("backgroundPopover"),(function(e){return e.rimless?"0":mn.hs.space(0)}),mn.t7.color("textPopover"),mn.t7.color("backgroundPopover")),Fh=un.Ay.div.withConfig({displayName:"StyledBox"})(Th||(Th=(0,sn.A)(["\n && {\n ",";\n\n &,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n "," {\n color: ",";\n overflow-wrap: break-word;\n }\n }\n"])),(function(e){return e.isPlainHtml&&(0,No.gv)(e,"html")}),Ih,mn.t7.color("textPopover"));function Rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hh=function(e){var t=e.children,n=e.content,r=e.isPlainHtml,o=void 0===r||r,i=e.rimless,a=void 0!==i&&i,s=(0,tt.useState)(!1),c=(0,En.A)(s,2),u=c[0],l=c[1],d=(0,tt.useRef)(null),f=xh({open:u,onOpenChange:l,middleware:[Nf(),Rf({padding:20}),xp({element:d}),Ff(5)]}),p=f.refs,h=f.floatingStyles,m=f.context,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:s},refs:c}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,m=$p(),g=Kp(),y=Xp(d),v=Xp(l),b=tt.useRef(),w=tt.useRef(-1),O=tt.useRef(),x=tt.useRef(-1),k=tt.useRef(!0),S=tt.useRef(!1),E=tt.useRef((()=>{})),j=tt.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);tt.useEffect((()=>{if(u)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),k.current=!0)}}),[u,i]),tt.useEffect((()=>{if(!u||!y.current||!n)return;function e(e){j()&&r(!1,e,"hover")}const t=df(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,n,r,u,y,j]);const D=tt.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Jp(v.current,"close",b.current);o&&!O.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[v,r]),P=tt.useCallback((()=>{E.current(),O.current=void 0}),[]),_=tt.useCallback((()=>{if(S.current){const e=df(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Zp),S.current=!1}}),[c]);return tt.useEffect((()=>{if(u&&nf(a)){const e=a;return n&&e.addEventListener("mouseleave",l),null==s||s.addEventListener("mouseleave",l),h&&e.addEventListener("mousemove",i,{once:!0}),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),()=>{n&&e.removeEventListener("mouseleave",l),null==s||s.removeEventListener("mouseleave",l),h&&e.removeEventListener("mousemove",i),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),k.current=!1,f&&!lf(b.current)||p>0&&!Jp(v.current,"open"))return;const t=Jp(v.current,"open",b.current);t?w.current=window.setTimeout((()=>{r(!0,e,"hover")}),t):r(!0,e,"hover")}function c(r){if(t())return;E.current();const o=df(s);if(clearTimeout(x.current),y.current){n||clearTimeout(w.current),O.current=y.current({...e,tree:m,x:r.clientX,y:r.clientY,onClose(){_(),P(),D(r,!0,"safe-polygon")}});const t=O.current;return o.addEventListener("mousemove",t),void(E.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==b.current||!uf(s,r.relatedTarget))&&D(r)}function l(n){t()||null==y.current||y.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){_(),P(),D(n)}})(n)}}),[a,s,u,e,f,p,h,D,P,_,r,n,m,v,y,o]),Fp((()=>{var e;if(u&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&j()){const e=df(s).body;if(e.setAttribute(Zp,""),e.style.pointerEvents="none",S.current=!0,nf(a)&&s){var t;const e=a,n=null==m||null==(t=m.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[u,n,g,s,a,m,y,j]),Fp((()=>{n||(b.current=void 0,P(),_())}),[n,P,_]),tt.useEffect((()=>()=>{P(),clearTimeout(w.current),clearTimeout(x.current),_()}),[u,a,P,_]),tt.useMemo((()=>{if(!u)return{};function e(e){b.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){function t(){k.current||r(!0,e.nativeEvent,"hover")}f&&!lf(b.current)||n||0===p||(clearTimeout(x.current),"touch"===b.current?t():x.current=window.setTimeout(t,p))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D(e.nativeEvent,!1)}}}}),[u,f,n,p,r,D])}(m,{delay:{open:500,close:0}}),y=jh([g]),v=y.getReferenceProps,b=y.getFloatingProps;return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)("span",Lh(Lh({ref:p.setReference},v()),{},{children:t})),u&&n&&(0,wn.jsx)(ph,{children:(0,wn.jsxs)(Nh,Lh(Lh({ref:p.setFloating,style:h,rimless:a},b()),{},{className:cd,children:[(0,wn.jsx)(zp,{ref:d,context:m}),(0,wn.jsx)(Fh,{isPlainHtml:o,children:n})]}))})]})},Wh=Hh;const Bh=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,i=o.tooltips,a=o.loadTooltip,s=o.DetailLink,c=zi()(i,t.key,null),u=(0,wn.jsx)("span",{style:n.css,children:r}),l=s?(0,wn.jsx)(Nl,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,wn.jsx)(s,{entityKey:t.key,tabIndex:-1,children:(0,wn.jsx)(Wh,{content:c?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(c)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return a&&!c&&a(t.key)},children:u})})})}):u;return(0,wn.jsx)(Yl,{children:l})};var Vh=c(85015),Uh=c.n(Vh),zh=c(42194),Yh=c.n(zh);function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kh=["linkComp"],$h=function(e,t){var n=Io.difference(e,t),r=Yh()(pi()(n,Kh),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Qh=(0,tt.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Uh()(n)?(0,wn.jsx)(Nl,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,wn.jsx)(t,{entityKey:n,children:r})}):r}),$h);Qh.propTypes={children:l().node,entityKey:l().any,linkComp:l().func};const Xh=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,i=n.tooltips,a=n.loadTooltip,s=n.DetailLink,c=zi()(i,t.key,null);return(0,wn.jsx)(lu.SingleValue,Gh(Gh({},e),{},{children:(0,wn.jsx)(Vl,{onMouseOver:function(){return a&&!c&&a(t.key)},isDisabled:r,children:(0,wn.jsx)(Wh,{content:c?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(c)}}):null,children:(0,wn.jsx)(Qh,{linkComp:s,entityKey:t.key,children:o})})})}))};function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jh=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const em=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,i=t.hasAdvancedSearch,a=t.hasDocsTreeSearch,s=t.isDisabled;if(!(o&&(i||a)))return(0,wn.jsx)(lu.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var c=tt.Children.map(r,(function(e){return Jh(e)?e:null})),u=tt.Children.map(r,(function(e){return Jh(e)?null:e})),l=s&&n;return(0,wn.jsxs)(wn.Fragment,{children:[!l&&(0,wn.jsx)(wn.Fragment,{children:c}),(0,wn.jsx)(zl,{children:u})]})};function tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rm=(0,un.SL)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,i=e.isMulti,a=e.loadTooltip,s=e.moreOptionsAvailable,c=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,d=e.onChange,f=e.openDocsTreeSearch,p=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,y=e.tooltips,v=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,tt.useRef)(null),k=(0,tt.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},E=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,tt.useState)(S()),D=(0,En.A)(j,2),P=D[0],_=D[1],A=(0,tt.useState)(E()),T=(0,En.A)(A,2),C=T[0],M=T[1],I=(0,tt.useState)(!1),N=(0,En.A)(I,2),F=N[0],R=N[1],L=function(e){t&&t(e)},H=(0,tt.useCallback)(m||function(){},[]),W=(0,tt.useCallback)(Ji()(H,800,{trailing:!0}),[]),B=Boolean(p),V=Boolean(f),U=Boolean(w);return(0,wn.jsx)(Fl,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){_(S()),M(E())}),0)},children:(0,wn.jsx)(Rl,{ref:k,children:(0,wn.jsx)(fl,nm(nm({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:P,wrapperHeight:C,components:{ClearIndicator:ml,LoadingIndicator:sd,DropdownIndicator:$l,IndicatorsContainer:id,IndicatorSeparator:null,Menu:$d,MenuList:Zd,MultiValueLabel:Bh,SingleValue:Xh,ValueContainer:em},noOptionsMessage:function(e){return u||("function"==typeof l?(0,wn.jsx)(l,nm({},e)):" - ")},isMulti:i,closeMenuOnSelect:!i,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,tabSelectsValue:!1,value:v||null,onChange:function(e){d(e),L(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,v),""===e&&"input-change"===n&&L(v)},options:(0,hr.A)(h||[]),onKeyDown:function(e){"Enter"===e.key&&F&&(e.stopPropagation(),x.current&&null===x.current.focusedOptionRef&&e.preventDefault())},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){L(v),R(!0)},onMenuClose:function(){R(!1)},styles:ql(g),loadTooltip:a,tooltips:y,DetailLink:b,hasDocsTreeSearch:V,openDocsTreeSearch:f,hasAdvancedSearch:B,openAdvancedSearch:p,moreOptionsAvailable:s,moreOptionsAvailableText:c,blurInputOnSelect:!1,hasCreatePermission:U,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const om=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,i=o.trueLabel,a=o.falseLabel,s=e.onChange;return(0,wn.jsx)(rm,{id:t,immutable:n,isMulti:!1,onChange:function(e){return s(e?e.key:null)},value:Xi()(r)?r:{key:r,display:r?i:a},openMenuOnClick:!0,options:[{key:!0,display:i},{key:!1,display:a}]})};var im,am=un.Ay.div.withConfig({displayName:"StyledBoolEdit"})(im||(im=(0,sn.A)(["\n margin: 5px 0;\n"])));const sm=function(e){return(0,wn.jsx)(am,{children:(0,wn.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var cm,um,lm=function(e){var t=e.value,n=e.breakWords,r=e.className;return(0,wn.jsx)(Ih,{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(t)},breakWords:n,className:r})},dm=un.Ay.div.withConfig({displayName:"StyledOption"})(cm||(cm=(0,sn.A)(["\n margin: "," 0;\n display: flex;\n align-items: center;\n gap: ",";\n\n input {\n margin: 0;\n }\n"])),mn.hs.space(-1),mn.hs.space(-1.5)),fm=un.Ay.span.withConfig({displayName:"StyledLabel"})(um||(um=(0,sn.A)(["\n ","\n display: flex;\n gap: ",";\n align-items: center;\n"])),(0,mn.Ed)(),mn.hs.space(-1.5));function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mm={single:"radio",multiple:"checkbox"},gm={single:{checked:!1},multiple:{}},ym=function(e,t){return t?(0,wn.jsx)(lm,{value:e}):e},vm=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.labelComponent,i=e.checked,a=e.immutable,s=e.hideCheckbox,c=e.selectionType,u=e.renderHtmlInOptions,l=e.handleChange;return(0,wn.jsxs)(dm,{children:[!s&&(0,wn.jsx)("input",{name:t,type:mm[c],checked:i||!1,onChange:l,id:n,disabled:a}),(0,wn.jsx)(fm,{children:o||ym(r,u)})]})};const bm=function(e){var t=e.onChange,n=e.value,r=e.options,o=e.id,i=e.immutable,a=function(e){if(t){var o=n.options.map((function(t){return hm(hm({},t),t.id===e.target.id?{checked:e.target.checked}:gm[r.selectionType])}));t({options:o})}};return(0,wn.jsx)(wn.Fragment,{children:n.options.map((function(e){return(0,wn.jsx)(vm,{groupName:o,id:e.id,label:e.label,labelComponent:e.labelComponent,checked:e.checked,immutable:i||e.immutable,hideCheckbox:e.hideCheckbox,selectionType:r.selectionType,renderHtmlInOptions:r.renderHtmlInOptions,handleChange:a},e.id)}))})};c(98639);function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xm=(0,tt.lazy)((function(){return Promise.all([c.e(95),c.e(722)]).then(c.bind(c,65066))}));const km=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:(t=e.value,(0,wn.jsx)("div",{children:(0,wn.jsx)("p",{children:t})})),children:(0,wn.jsx)(xm,Om({},e))});var t};var Sm,Em=un.Ay.div.withConfig({displayName:"StyledEditorWrapper"})(Sm||(Sm=(0,sn.A)(["\n margin-top: ",";\n"])),mn.hs.space(-1.5));const jm=(0,un.SL)(Mn.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options,i=e.id,a=e.theme;return(0,wn.jsx)(Em,{children:(0,wn.jsx)(km,{value:t,id:i,onChange:n,autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:a.codeEditorTheme,showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})})));var Dm,Pm,_m,Am=un.Ay.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Dm||(Dm=(0,sn.A)(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Tm=un.Ay.div.withConfig({displayName:"StyledDatePickerWrapper"})(Pm||(Pm=(0,sn.A)(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),Ni,Ri,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Cm=un.Ay.input.withConfig({displayName:"StyledTimeInput"})(_m||(_m=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri),Mm=c(73082),Im="react-datepicker-time__input",Nm="react-datepicker__day",Fm="react-datepicker__input",Rm=function(e){return e.classList.contains(Nm)},Lm=function(e){return e.classList.contains(Im)},Hm=function(e){return e.classList.contains(Fm)},Wm=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Nm,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Bm=function(e,t){var n=null==e?void 0:e.form;if(n){var r=(0,hr.A)(n).indexOf(e);if(r>=0)Vm(n[r+(t?2:3)])}else Mm.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the next input cannot be set."))},Vm=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Um=function(e){if(!e)return null;var t=(0,_d.Hle)(e.toString());return isNaN(t)?null:t},zm=function(e){return e?e.toISOString():null};const Ym=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,i=n.minDate,a=n.maxDate,s=n.hasTime,c=n.valueToDate,u=void 0===c?Um:c,l=n.dateToValue,d=void 0===l?zm:l,f=(0,tt.useRef)(null),p=(0,tt.useState)(!1),h=(0,En.A)(p,2),m=h[0],g=h[1],y=u(e),v=i?u(i):void 0,b=a?u(a):void 0;(0,tt.useEffect)((function(){f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m)}),[m]);var w=function(){return g(!1)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},x=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},k=function(){t(null),x(null)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=O(!1);if(n){var r=y||new Date,o=t?function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return(0,_d.avh)((0,_d.glI)((0,_d.gtt)(e,s),i),r)}(n,{hour:(0,_d.qZx)(r),minute:(0,_d.Osm)(r),second:(0,_d.SyE)(r)}):n;E(o,e)}},E=function(n,r){if(n){var i,a=!e&&Boolean(n),c=null==r||null===(i=r.target)||void 0===i?void 0:i.value,u=!!c&&o.some((function(e){return(0,_d.uv4)(c,e)})),l=(0,_d.ol1)(n),p=(0,_d.qZx)(n)!==(0,_d.qZx)(l)||(0,_d.Osm)(n)!==(0,_d.Osm)(l);(a&&!p||u)&&s&&(n=Ad.A.setCurrentTime(n)),t(d(n))}else k();var h;s||"click"!==(null==r?void 0:r.type)||(w(),Vm(null===(h=f.current)||void 0===h?void 0:h.input))},j=function(t){var n,r,o=!e;if("Tab"===t.key)if(t.shiftKey){if(Hm(t.target))w();else if(Lm(t.target)){var i;x(y||O(!0)),Wm(null===(i=f.current)||void 0===i||null===(i=i.calendar)||void 0===i?void 0:i.componentNode)}else if(Rm(t.target)){var a;w(),function(e){var t=null==e?void 0:e.form;if(t){var n=(0,hr.A)(t).indexOf(e);n>=1&&Vm(t[n-1])}else Mm.A.logWarning("Datepicker '".concat(null==e?void 0:e.id,"' is not withing a form and focus to the previous input cannot be set."))}(null===(a=f.current)||void 0===a?void 0:a.input)}}else if(Hm(t.target)&&m)S(t),w(),Bm(null===(n=f.current)||void 0===n?void 0:n.input,o);else if(Lm(t.target)){var c;w(),Bm(null===(c=f.current)||void 0===c?void 0:c.input,o)}else if(Rm(t.target)){var u,l;if(s)S(t,!0),x(null),r=null===(u=f.current)||void 0===u||null===(u=u.calendar)||void 0===u?void 0:u.componentNode,setTimeout((function(){if(r){var e=r.querySelector("input.".concat(Im));e&&e.focus({preventScroll:!0})}}),0);else S(t),w(),Bm(null===(l=f.current)||void 0===l?void 0:l.input,o)}if("Enter"===t.key&&(w(),setTimeout((function(){var e;Vm(null===(e=f.current)||void 0===e?void 0:e.input)}),10),t.preventDefault(),t.stopPropagation()),["ArrowDown","ArrowUp","Enter"].includes(t.key))if(m){if(m&&null===O(!1)){var d;x(y||O(!0)),Wm(null===(d=f.current)||void 0===d||null===(d=d.calendar)||void 0===d?void 0:d.componentNode)}}else g(!0),t.key="Handled".concat(t.key)},D=function(){var e;g((function(e){return!e})),x(null),Vm(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{onClickOutside:w,onInputClick:D,onKeyDown:j,onChange:E,onCalendarOpen:function(){x(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:y,showTimeInput:s,minDate:v,maxDate:b,ref:f,className:Fm},timeInputProps:{onKeyDown:j,className:Im},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),k()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var qm="HH:mm:ss",Gm="HH:mm",Km=function(e){return(0,_d.uv4)(e,Gm)},$m=function(e){var t=function(e){return e?(0,_d.uv4)(e,qm)?(0,_d.qgA)(e,qm,new Date):(0,_d.uv4)(e,Gm)?(0,_d.qgA)(e,Gm,new Date):(0,_d.uv4)(e,"HH:")?(0,_d.qgA)(e,"HH:",new Date):(0,_d.uv4)(e,"H")?(0,_d.qgA)(e,"H",new Date):null:e}(e);return t&&!isNaN(t)?function(e){return(0,_d.GPZ)(e,Gm)}(t):""};const Qm=function(e,t){var n=$m(e),r=(0,tt.useState)(n),o=(0,En.A)(r,2),i=o[0],a=o[1],s=(0,tt.useRef)(i),c=Mn.usePrevious(n);(0,tt.useEffect)((function(){c!==n&&i===c&&a(n)}),[n,i,c]);var u={onChange:function(e){if(e.target.value!==i&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,s.current),r=n.indexOf(":"),o=n.substring(0,r),c=n.substring(r+1),u=parseInt(o,10),l=parseInt(c,10),d=!o||!Number.isNaN(u)&&u<24,f=!c||!Number.isNaN(l)&&l<60;if(!d||!f)return!1;s.current=n,a(n);var p=$m(n);p&&!Km(p)||t(p)}},onBlur:function(){if(i!==n){var e=$m(i);e&&Km(e)?(s.current=e,a(e),t(e)):a(n)}},onFocus:function(e){i&&"function"==typeof e.target.select&&e.target.select()},value:i||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),a("")}}}};var Xm=["value","onChange","onKeyDown"];function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zm(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Td();var eg=function(e){var t=e.onChange,n=e.label;return(0,wn.jsx)(er,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},tg=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=(0,Je.A)(e,Xm),i=Qm(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,wn.jsx)(Cm,Jm(Jm(Jm({},i),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},ng={strategy:"fixed"};const rg=(0,un.SL)((0,pr.injectIntl)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,i=e.maxDate,a=e.valueToDate,s=e.dateToValue,c=e.onChange,u=e.intl,l=e.placeholder,d=e.hasTime,f=e.dateFormats,p=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,y=(0,tt.useRef)(void 0),v=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,tt.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){y.current=e,c(e)},S=Ym(r,k,{dateFormats:p,dateTimeFormats:m,minDate:o,maxDate:i,valueToDate:a,dateToValue:s,hasTime:d}),E=S.reactDatePickerProps,j=S.timeInputProps,D=S.clearButtonProps,P=S.calendarButtonProps;return(0,wn.jsx)(Am,{immutable:t,id:n,tabIndex:"-1",children:(0,wn.jsxs)(Tm,{immutable:t,ref:w,hasTime:d,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==y.current?y.current:r;g.onBlur(t)}e.stopPropagation()},"data-ignore-arrow-navigation":!0,children:[(0,wn.jsx)(Ed(),Jm(Jm({id:n?"".concat(n,"-datepicker"):null,popperClassName:cd},E),{},{disabled:t,dateFormat:[].concat((0,hr.A)(m),(0,hr.A)(p)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,yearDropdownItemNumber:100,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,locale:v,timeInputLabel:b("client.component.datePicker.timeLabel"),customTimeInput:(0,wn.jsx)(tg,Jm({},j)),showTimeSelect:d,timeIntervals:15,popperProps:ng,portalId:"react-datepicker",todayButton:(0,wn.jsx)(eg,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,wn.jsx)(cr,Jm({"data-cy":"btn-clear",icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},D)),!t&&(0,wn.jsx)(cr,Jm({"data-cy":"btn-calendar",icon:"calendar",tabIndex:-1},P))]})})})));function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ig=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,i=e.immutable,a=e.events,s=e.placeholder,c=(0,pr.useIntl)(),u=(null==n?void 0:n.datePickerOptions)||{},l="".concat(Ad.A.getLocalizedDateFormat(c.locale)),d=Ad.A.getLocalizedDateFormatWithoutPunctuation(c.locale),f=[l,d,Ad.A.useTwoDigitYear(l),Ad.A.useTwoDigitYear(d)];return(0,wn.jsx)(rg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:i,placeholder:s,events:a},u))};function ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const sg=(0,pr.injectIntl)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,i=e.placeholder,a=(0,pr.useIntl)(),s=(null==n?void 0:n.datePickerOptions)||{},c="".concat(Ad.A.getLocalizedDateTimeFormat(a.locale)),u="".concat(Ad.A.getLocalizedDateFormat(a.locale)),l=Ad.A.getLocalizedDateTimeFormatWithoutPunctuation(a.locale),d=[c,l,Ad.A.useTwoDigitYear(c),Ad.A.useTwoDigitYear(l)],f=Ad.A.getLocalizedDateFormatWithoutPunctuation(a.locale),p=[u,f,Ad.A.useTwoDigitYear(u),Ad.A.useTwoDigitYear(f)];return(0,wn.jsx)(rg,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ag(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:d,dateFormats:p,hasTime:!0,immutable:o,placeholder:i},s))}));var cg,ug,lg,dg,fg,pg,hg,mg,gg=un.Ay.section.withConfig({displayName:"StyledSection"})(cg||(cg=(0,sn.A)(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),yg=un.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(ug||(ug=(0,sn.A)(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),Xn,mn.hs.space(-2)),vg=un.Ay.div.withConfig({displayName:"StyledDropzone"})(lg||(lg=(0,sn.A)(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Xn,mn.t7.color("backgroundItemHover")),bg=un.Ay.div.withConfig({displayName:"StyledUploadInput"})(dg||(dg=(0,sn.A)(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,mn.Ed)(),(function(e){return e.immutable?"not-allowed":"pointer"}),mn.t7.color("paper"),(function(e){return e.immutable?mn.Db.shade2(e):mn.Db.base(e)}),mn.hs.space(-2),Xn,mn.hs.space(-3.1),mn.hs.space(-1.5)),wg=un.Ay.div.withConfig({displayName:"StyledUploadProgress"})(fg||(fg=(0,sn.A)(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),mn.hs.space(-2)),Og=(0,un.Ay)(No.oY).withConfig({displayName:"StyledUploadProgressText"})(pg||(pg=(0,sn.A)(["\n && {\n ","\n }\n"])),(0,mn.Ed)({fontSize:mn.hs.font(-1)})),xg=un.Ay.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(hg||(hg=(0,sn.A)(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),mn.hs.space(-2)),kg=un.Ay.div.withConfig({displayName:"StyledView"})(mg||(mg=(0,sn.A)(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),mn.hs.space(-2));function Sg(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function Eg(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function jg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Dg(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Pg=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function _g(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Pg.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Ag=[".DS_Store","Thumbs.db"];function Tg(e){return"object"==typeof e&&null!==e}function Cg(e){return Fg(e.target.files).map((function(e){return _g(e)}))}function Mg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return _g(e)}))]}}))}))}function Ig(e,t){return Sg(this,void 0,void 0,(function(){var n;return Eg(this,(function(r){switch(r.label){case 0:return e.items?(n=Fg(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Rg))]):[3,2];case 1:return[2,Ng(Lg(r.sent()))];case 2:return[2,Ng(Fg(e.files).map((function(e){return _g(e)})))]}}))}))}function Ng(e){return e.filter((function(e){return-1===Ag.indexOf(e.name)}))}function Fg(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Rg(e){if("function"!=typeof e.webkitGetAsEntry)return Hg(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Bg(t):Hg(e)}function Lg(e){return e.reduce((function(e,t){return Dg(Dg([],jg(e),!1),jg(Array.isArray(t)?Lg(t):[t]),!1)}),[])}function Hg(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=_g(t);return Promise.resolve(n)}function Wg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return[2,e.isDirectory?Bg(e):Vg(e)]}))}))}function Bg(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Sg(i,void 0,void 0,(function(){var i,a,s;return Eg(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(Wg)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Vg(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=_g(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Ug=c(9455);function zg(e){return function(e){if(Array.isArray(e))return Qg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){Gg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||$g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $g(e,t){if(e){if("string"==typeof e)return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qg(e,t):void 0}}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xg="file-invalid-type",Zg="file-too-large",Jg="file-too-small",ey="too-many-files",ty=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Xg,message:"File type must be ".concat(t)}},ny=function(e){return{code:Zg,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},ry=function(e){return{code:Jg,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},oy={code:ey,message:"Too many files"};function iy(e,t){var n="application/x-moz-file"===e.type||(0,Ug.A)(e,t);return[n,n?null:ty(t)]}function ay(e,t,n){if(sy(e.size))if(sy(t)&&sy(n)){if(e.size>n)return[!1,ny(n)];if(e.size<t)return[!1,ry(t)]}else{if(sy(t)&&e.size<t)return[!1,ry(t)];if(sy(n)&&e.size>n)return[!1,ny(n)]}return[!0,null]}function sy(e){return null!=e}function cy(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function uy(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ly(e){e.preventDefault()}function dy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!cy(e)&&t&&t.apply(void 0,[e].concat(r)),cy(e)}))}}function fy(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function py(e){return/^.*\.[\w]+$/.test(e)}var hy=["children"],my=["open"],gy=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],yy=["refKey","onChange","onClick"];function vy(e){return function(e){if(Array.isArray(e))return Oy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function by(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||wy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wy(e,t){if(e){if("string"==typeof e)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oy(e,t):void 0}}function Oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ky(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xy(Object(n),!0).forEach((function(t){Sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ey(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jy=(0,tt.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ky(ky({},Dy),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,y=t.useFsAccessApi,v=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,E=t.validator,j=(0,tt.useMemo)((function(){return function(e){if(sy(e))return Object.entries(e).reduce((function(e,t){var n=Kg(t,2),r=n[0],o=n[1];return[].concat(zg(e),[r],zg(o))}),[]).filter((function(e){return fy(e)||py(e)})).join(",")}(n)}),[n]),D=(0,tt.useMemo)((function(){return function(e){if(sy(e)){var t=Object.entries(e).filter((function(e){var t=Kg(e,2),n=t[0],r=t[1],o=!0;return fy(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(py)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Kg(t,2),r=n[0],o=n[1];return qg(qg({},e),{},Gg({},r,o))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),P=(0,tt.useMemo)((function(){return"function"==typeof g?g:Cy}),[g]),_=(0,tt.useMemo)((function(){return"function"==typeof m?m:Cy}),[m]),A=(0,tt.useRef)(null),T=(0,tt.useRef)(null),C=by((0,tt.useReducer)(Ty,Ay),2),M=C[0],I=C[1],N=M.isFocused,F=M.isFileDialogActive,R=(0,tt.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),L=function(){!R.current&&F&&setTimeout((function(){T.current&&(T.current.files.length||(I({type:"closeDialog"}),_()))}),300)};(0,tt.useEffect)((function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}}),[T,F,_,R]);var H=(0,tt.useRef)([]),W=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,tt.useEffect)((function(){return b&&(document.addEventListener("dragover",ly,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",ly),document.removeEventListener("drop",W))}}),[A,b]),(0,tt.useEffect)((function(){return!r&&v&&A.current&&A.current.focus(),function(){}}),[A,v,r]);var B=(0,tt.useCallback)((function(e){S?S(e):console.error(e)}),[S]),V=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e),H.current=[].concat(vy(H.current),[e.target]),uy(e)&&Promise.resolve(o(e)).then((function(t){if(!cy(e)||k){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=Kg(iy(e,n),1)[0],i=Kg(ay(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:j,minSize:a,maxSize:i,multiple:s,maxFiles:c,validator:E});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,k,j,a,i,s,c,E]),U=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e);var t=uy(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,k]),z=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e);var t=H.current.filter((function(e){return A.current&&A.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),uy(e)&&l&&l(e))}),[A,l,k]),Y=(0,tt.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=by(iy(e,j),2),o=t[0],s=t[1],c=by(ay(e,a,i),2),u=c[0],l=c[1],d=E?E(e):null;if(o&&u&&!d)n.push(e);else{var f=[s,l];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[oy]})})),n.splice(0)),I({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&p&&p(n,t)}),[I,s,j,a,i,c,f,p,h,E]),q=(0,tt.useCallback)((function(e){e.preventDefault(),e.persist(),te(e),H.current=[],uy(e)&&Promise.resolve(o(e)).then((function(t){cy(e)&&!k||Y(t,e)})).catch((function(e){return B(e)})),I({type:"reset"})}),[o,Y,B,k]),G=(0,tt.useCallback)((function(){if(R.current){I({type:"openDialog"}),P();var e={multiple:s,types:D};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){Y(e,null),I({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(R.current=!1,T.current?(T.current.value=null,T.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(_(e),I({type:"closeDialog"}))}))}else T.current&&(I({type:"openDialog"}),P(),T.current.value=null,T.current.click())}),[I,P,_,y,Y,B,D,s]),K=(0,tt.useCallback)((function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[A,G]),$=(0,tt.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,tt.useCallback)((function(){I({type:"blur"})}),[]),X=(0,tt.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?G():setTimeout(G,0))}),[w,G]),Z=function(e){return r?null:e},J=function(e){return O?null:Z(e)},ee=function(e){return x?null:Z(e)},te=function(e){k&&e.stopPropagation()},ne=(0,tt.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,u=e.onDragEnter,l=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Ey(e,gy);return ky(ky(Sy({onKeyDown:J(dy(i,K)),onFocus:J(dy(a,$)),onBlur:J(dy(s,Q)),onClick:Z(dy(c,X)),onDragEnter:ee(dy(u,V)),onDragOver:ee(dy(l,U)),onDragLeave:ee(dy(d,z)),onDrop:ee(dy(f,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,A),r||O?{}:{tabIndex:0}),p)}}),[A,K,$,Q,X,V,U,z,q,O,x,r]),re=(0,tt.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,tt.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=Ey(e,yy);return ky(ky({},Sy({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:Z(dy(r,q)),onClick:Z(dy(o,re)),tabIndex:-1},n,T)),i)}}),[T,n,s,q,r]);return ky(ky({},M),{},{isFocused:N&&!r,getRootProps:ne,getInputProps:oe,rootRef:A,inputRef:T,open:Z(G)})}(Ey(e,hy)),o=r.open,i=Ey(r,my);return(0,tt.useImperativeHandle)(t,(function(){return{open:o}}),[o]),rt().createElement(tt.Fragment,null,n(ky(ky({},i),{},{open:o})))}));jy.displayName="Dropzone";var Dy={disabled:!1,getFilesFromEvent:function(e){return Sg(this,void 0,void 0,(function(){return Eg(this,(function(t){return Tg(e)&&Tg(e.dataTransfer)?[2,Ig(e.dataTransfer,e.type)]:function(e){return Tg(e)&&Tg(e.target)}(e)?[2,Cg(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,Mg(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};jy.defaultProps=Dy,jy.propTypes={children:l().func,accept:l().objectOf(l().arrayOf(l().string)),multiple:l().bool,preventDropOnDocument:l().bool,noClick:l().bool,noKeyboard:l().bool,noDrag:l().bool,noDragEventsBubbling:l().bool,minSize:l().number,maxSize:l().number,maxFiles:l().number,disabled:l().bool,getFilesFromEvent:l().func,onFileDialogCancel:l().func,onFileDialogOpen:l().func,useFsAccessApi:l().bool,autoFocus:l().bool,onDragEnter:l().func,onDragLeave:l().func,onDragOver:l().func,onDrop:l().func,onDropAccepted:l().func,onDropRejected:l().func,onError:l().func,validator:l().func};const Py=jy;var _y,Ay={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ty(e,t){switch(t.type){case"focus":return ky(ky({},e),{},{isFocused:!0});case"blur":return ky(ky({},e),{},{isFocused:!1});case"openDialog":return ky(ky({},Ay),{},{isFileDialogActive:!0});case"closeDialog":return ky(ky({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ky(ky({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ky(ky({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ky({},Ay);default:return e}}function Cy(){}function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?My(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ny=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,wn.jsxs)(bg,{immutable:n,children:[(0,wn.jsx)(Py,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,wn.jsx)(gg,{children:(0,wn.jsxs)(vg,Iy(Iy({},t()),{},{children:[(0,wn.jsx)("input",Iy({},n())),_y||(_y=(0,wn.jsx)(er,{icon:"arrow-to-top"}))]}))})}}),o&&(0,wn.jsx)(er,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Fy,Ry=un.Ay.figure.withConfig({displayName:"StyledPreview"})(Fy||(Fy=(0,sn.A)(["\n && {\n vertical-align: top;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n margin: 0; //reset css overwrite\n\n img {\n margin-top: ",";\n border: 1px solid ",";\n border-radius: ",";\n max-width: ",";\n max-height: ",";\n min-width: 90px; // prevent collapse to 1px if there is no preview generated\n }\n\n figcaption {\n text-align: center;\n }\n }\n"])),mn.hs.space(-2.2),mn.t7.color("border"),mn.t7.radii("form"),(function(e){return e.maxDimensionX||"100%"}),(function(e){return e.maxDimensionY||"100%"}));const Ly=Ry;var Hy;const Wy=function(e){var t=e.thumbnailUrl,n=e.alt,r=e.srcUrl,o=(e.fileName,e.caption),i=e.maxDimensionX,a=e.maxDimensionY,s=t?(0,wn.jsx)("img",{alt:n,title:n,src:t}):(0,wn.jsx)("div",{title:n,children:Hy||(Hy=(0,wn.jsx)(bn.A,{icon:"file-alt"}))});return(0,wn.jsxs)(Ly,{maxDimensionX:i,maxDimensionY:a,children:[(0,wn.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,children:s}),o&&(0,wn.jsx)(No.Ay.Figcaption,{children:o})]})};var By=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const Vy=function(e){var t=e.file,n=e.text;return(0,wn.jsxs)(wg,{children:[(0,wn.jsx)(Wy,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,wn.jsxs)(xg,{children:[(0,wn.jsx)(Sn,{position:mn.xX.position.PREPEND}),(0,wn.jsxs)(Og,{children:[n||"uploading"," (",By(t.size),")"]})]})]})};var Uy=function(e,t,n){return"".concat(e).concat(e&&e.indexOf("?")>=0?"&":"?").concat(t,"=").concat(n)};const zy={downloadUrl:function(e,t){var n=document.createElement("a");n.href=e,n.download=t||e.split("/").pop(),n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),n.remove&&n.remove()},downloadReadableStream:function(e,t){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=t,n.target="_blank",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(r),n.remove&&n.remove()},openUrl:function(e){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),window.URL.revokeObjectURL&&window.URL.revokeObjectURL(e),t.remove&&t.remove()},downloadSupportedByBrowser:function(){var e=document.createElement("a"),t=void 0!==e.download;return e.remove&&e.remove(),t},getDownloadUrl:function(e){return Uy(e,"download",!0)},addParameterToURL:Uy};function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gy=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,i=e.onUpload,a=e.deleteTitle,s=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,wn.jsxs)(kg,{className:"StyledView",children:[(0,wn.jsx)(Wy,qy(qy({alt:n.fileName},s&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,wn.jsxs)(yg,{children:[!o&&(0,wn.jsx)(er,{icon:"trash",onClick:function(){return i(null)},tabIndex:-1,title:a||"delete"}),(0,wn.jsx)(er,{children:(0,wn.jsx)(Ii.Ay,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:zy.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qy=function(e){var t=e.value,n=e.textResources,r=void 0===n?{}:n,o=e.onUpload,i=e.onChoose,a=(0,tt.useRef)(t),s=(0,tt.useState)({isUploading:!1,previewFile:null}),c=(0,En.A)(s,2),u=c[0],l=c[1];return(0,tt.useEffect)((function(){Ao()(a.current,t)||l({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,wn.jsx)(Gy,$y($y({},e),{},{deleteTitle:r.delete,downloadTitle:r.download})):u.isUploading?(0,wn.jsx)(Vy,$y({file:u.previewFile,text:r.uploading},e)):(0,wn.jsx)(Ny,$y($y({},e),{},{onDrop:function(e){!function(e){l({isUploading:!0,previewFile:e})}(e),o(e)},onChoose:i}))};const Xy=function(e){var t=e.onChange,n=e.options,r=void 0===n?{}:n,o=e.immutable,i=e.value;return(0,wn.jsx)(Qy,{onUpload:function(e){null===e?t&&t(null):r.upload&&r.upload(e)},onChoose:r.choose,immutable:o,textResources:{upload:r.uploadText,uploading:r.uploadingText,delete:r.deleteText,download:r.downloadText},value:i||null})};var Zy,Jy,ev=un.Ay.input.withConfig({displayName:"StyledDurationEdit"})(Zy||(Zy=(0,sn.A)(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),Ri,(function(e){return e.width})),tv=un.Ay.label.withConfig({displayName:"StyledDurationEditFocusable"})(Jy||(Jy=(0,sn.A)(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),mn.hs.space(1),(function(e){return e.immutable?mn.t7.color("textDisabled"):mn.t7.color("text")}),(function(e){return e.immutable&&"text"}));const nv=function(e){var t=e.id,n=e.value,r=e.immutable,o=e.onChange,i=e.options,a=void 0===i?{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}:i,s=Ad.A.millisecondsToDuration(n),c=(0,tt.useState)(!1),u=(0,En.A)(c,2),l=u[0],d=u[1],f=function(e,t){var n,r,i=null!==t?t:s.minutes,a=null!==e?e:s.hours;""!==i||""!==a?(i>=60&&(a=0),o((r=i,(n=a)||r?((n<0||r<0)&&(n=Bi(n),r=Bi(r)),60*(n||0)*6e4+6e4*(r||0)):null))):o(null)},p=function(){d(!0)},h=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===a.allowNegative||e.preventDefault()},m=function(){return!0===a.allowNegative?"-?d+":"d+"},g=function(){return l||"number"==typeof n},y=function(e){return 9*(e+"").length},v=r&&Boolean(s.seconds);return(0,wn.jsxs)(Fi,{onBlur:function(){d(!1)},immutable:r,id:t,children:[(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,min:!0===a.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(t,null)},onKeyPress:h,pattern:m(),step:1,width:y(s.hours),type:"number",value:"number"!=typeof s.hours||0===s.hours&&!r?"":s.hours+"","data-cy":"input-hours"}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.hoursLabel})]}),(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,min:!0!==a.allowNegative||null!==s.hours&&0!==s.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");f(null,t)},onKeyPress:h,pattern:m(),step:1,width:y(s.minutes),type:"number",value:s.minutes+"","data-cy":"input-minutes"}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.minutesLabel})]}),v&&(0,wn.jsxs)(tv,{immutable:r,children:[(0,wn.jsx)(ev,{disabled:r,immutable:r,onChange:function(){},width:y(s.seconds),type:"number",value:s.seconds+""}),g()&&(0,wn.jsx)(No.Ay.Span,{children:a.secondsLabel})]})]})};var rv;const ov=un.Ay.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(rv||(rv=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const iv=Mn.Debouncer((function(e){return(0,wn.jsxs)(Fi,{immutable:e.immutable,children:[(0,wn.jsx)(ov,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var av=c(85501),sv=c(63662),cv=c(44383),uv=c.n(cv);function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lv(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fv(){fv=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),(0,sv.A)(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return(0,av.A)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,Po.A)(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},fv.apply(this,arguments)}var pv,hv=["key","display","postcode","city","country","latitude","longitude"],mv=function(e){return e*Math.PI/180},gv=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=e.latitude,a=e.longitude,s=t?"- ".concat(t):"",c=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(s," ").concat(c),postcode:r,city:o,country:n,latitude:mv(i),longitude:mv(a)}};function yv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function vv(){}function bv(e){return!!(e||"").match(/\d/)}function wv(e){return null==e}function Ov(e){return wv(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function xv(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function kv(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Sv(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function Ev(e,t){return Array(t+1).join(e)}function jv(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,s=(o=o.replace(".","")).length;return a<0?o="0."+Ev("0",Math.abs(a))+o:a>=s?o+=Ev("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function Dv(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=kv(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,c=parseFloat("0."+(a||"0")),u=(a.length<=t?"0."+a:c.toFixed(t)).split("."),l=i;return i&&Number(u[0])&&(l=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])),""+(s?"-":"")+l+(r?".":"")+Sv(u[1]||"",t,n)}function Pv(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(pv||(pv={}));var _v,Av,Tv,Cv=(_v=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}},Tv=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Av&&e.length===Av.length&&e.every((function(e,t){return e===Av[t]}))?Tv:(Av=e,Tv=_v.apply(void 0,e))});function Mv(e){return Math.max(e.selectionStart,e.selectionEnd)}function Iv(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Nv(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function Fv(e,t,n,r){var o=e.length;if(t=function(e,t,n){return Math.min(Math.max(e,t),n)}(t,0,o),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return-1===t&&(t=o),t}function Rv(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(bv(e[n])||bv(e[n-1]));return t}function Lv(e,t,n,r,o,i){void 0===i&&(i=vv);var a=function(e){var t=(0,tt.useRef)(e);t.current=e;var n=(0,tt.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,i;return Ov(e)?(i="",n=""):"number"==typeof e||t?(i="number"==typeof e?jv(e):e,n=r(i)):(i=o(e,void 0),n=r(i)),{formattedValue:n,numAsString:i}})),s=(0,tt.useState)((function(){return a(wv(e)?t:e,n)})),c=s[0],u=s[1],l=e,d=n;wv(e)&&(l=c.numAsString,d=!0);var f=a(l,d);return(0,tt.useMemo)((function(){u(f)}),[f.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}]}function Hv(e){return e.replace(/[^0-9]/g,"")}function Wv(e){return e}function Bv(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;void 0===a&&(a=Wv);var s=e.removeFormatting;void 0===s&&(s=Hv);var c=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,d=e.isAllowed,f=e.onChange;void 0===f&&(f=vv);var p=e.onKeyDown;void 0===p&&(p=vv);var h=e.onMouseUp;void 0===h&&(h=vv);var m=e.onFocus;void 0===m&&(m=vv);var g=e.onBlur;void 0===g&&(g=vv);var y=e.value,v=e.getCaretBoundary;void 0===v&&(v=Rv);var b=e.isValidInputCharacter;void 0===b&&(b=bv);var w=e.isCharacterSame,O=yv(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),x=Lv(y,c,Boolean(u),a,s,l),k=x[0],S=k.formattedValue,E=k.numAsString,j=x[1],D=(0,tt.useRef)({formattedValue:S,numAsString:E}),P=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},j(e,t)},_=(0,tt.useState)(!1),A=_[0],T=_[1],C=(0,tt.useRef)(null),M=(0,tt.useRef)({setCaretTimeout:null,focusTimeout:null});(0,tt.useEffect)((function(){return T(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=a,N=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},F=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(Pv(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&Pv(e,t)}),0))},R=function(e,t,n){return Fv(e,t,v(e),n)},L=function(e,t,n){var r=v(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=Nv);var s=o.findIndex((function(e){return e})),c=e.slice(0,s);t||n.startsWith(c)||(t=c,n=c+n,r+=c.length);for(var u=n.length,l=e.length,d={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var h=0,m=l;h<m;h++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:h})&&!0!==d[h]){f[p]=h,d[h]=!0;break}}for(var g=r;g<u&&(-1===f[g]||!i(n[g]));)g++;var y=g===u||-1===f[g]?l:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var v=-1===g||-1===f[g]?0:f[g]+1;return v>y?y:r-v<y-r?v:y}(t,S,e,n,r,b,w);return o=Fv(t,o,r)};(0,tt.useEffect)((function(){var e=D.current,t=e.formattedValue,n=e.numAsString;S===t||S===E&&t===n||P(N(S,E),{event:void 0,source:pv.props})}),[S,E]);var H=C.current?Mv(C.current):void 0;("undefined"!=typeof window?tt.useLayoutEffect:tt.useEffect)((function(){var e=C.current;if(S!==D.current.formattedValue&&e){var t=L(D.current.formattedValue,S,H);e.value=S,F(e,t,S)}}),[S]);var W=function(e,t,n){var r=Cv(S,e),o=Object.assign(Object.assign({},r),{lastValue:S}),i=s(e,o),a=I(i);if(i=s(a,void 0),d&&!d(N(a,i))){var c=t.target,u=Mv(c),l=L(e,S,u);return c.value=S,F(c,l,S),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,i=e.event,a=e.numAsString;if(r){var s=e.inputValue||r.value,c=Mv(r);r.value=t,void 0!==(n=L(s,t,c))&&F(r,n,t)}t!==S&&P(N(t,a),{event:i,source:o})}({formattedValue:a,numAsString:i,inputValue:e,event:t,source:n,input:t.target}),!0},B=!A||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",V=Object.assign({inputMode:B},O,{type:t,value:S,onChange:function(e){var t=e.target.value;W(t,e,pv.event)&&f(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;if(void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o),void 0!==t&&o===i){var s=t;if("ArrowLeft"===r||"ArrowRight"===r)(s=R(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault();else"Delete"!==r||b(a[t])?"Backspace"!==r||b(a[t])||(s=R(a,t,"left")):s=R(a,t,"right");s!==t&&F(n,s,a),e.isUnitTestRun&&F(n,s,a),p(e)}else p(e)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=R(r,e);o!==e&&F(t,o,r)}};n(),requestAnimationFrame((function(){n()})),h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;C.current=t,M.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=R(i,r);a===r||0===r&&o===i.length||F(t,a,i),m(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){C.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?rt().createElement(rt().Fragment,null,o(S,O)||null):rt().createElement("span",Object.assign({},O,{ref:i}),S);if(r){var U=r;return rt().createElement(U,Object.assign({},V,{ref:i}))}return rt().createElement("input",Object.assign({},V,{ref:i}))}function Vv(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var c=Uv(t),u=c.thousandSeparator,l=c.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,f=kv(e,a),p=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Sv(h,n,!!r)),u&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,u,s)),o&&(p=o+p),i&&(h+=i),m&&(p="-"+p),e=p+(d&&l||"")+h}function Uv(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function zv(e,t,n){var r;void 0===t&&(t=Iv(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var s=n.decimalScale,c=t.from,u=t.to,l=u.start,d=u.end,f=Uv(n),p=f.allowedDecimalSeparators,h=f.decimalSeparator,m=e[d]===h;if(bv(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(d-l==1&&-1!==p.indexOf(e[l])){var g=0===s?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var y=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var s=r?1:0;return o&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=y(e,l,d),b=v.hasNegation;e=(r=v).value,l=r.start,d=r.end;var w=y(t.lastValue,c.start,c.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,d);!(e.length&&k.length&&(O>k.length-a.length||x<i.length))||S&&a.startsWith(S)||(e=k);var E=0;e.startsWith(i)?E+=i.length:l<i.length&&(E=l),d-=E;var j=(e=e.substring(E)).length,D=e.length-a.length;e.endsWith(a)?j=D:(d>D||d>e.length-a.length)&&(j=d),e=e.substring(0,j),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(b?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+xv(e),t?"g":void 0)}(h,!0))||[]).join("");var P=e.indexOf(h);e=e.replace(new RegExp(xv(h),"g"),(function(e,t){return t===P?".":""}));var _=kv(e,o),A=_.beforeDecimal,T=_.afterDecimal,C=_.addNegation;return u.end-u.start<c.end-c.start&&""===A&&m&&!parseFloat(T)&&(e=C?"-":""),e}function Yv(e){e=function(e){var t=Uv(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=vv);var i=e.onBlur;void 0===i&&(i=vv);var a=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,h=yv(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=Uv(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,v=function(t){return Vv(t,e)},b=function(t,n){return zv(t,n,e)},w=wv(d)?l:d,O=null!=f?f:function(e,t,n){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,u,t);wv(d)?wv(l)||(O=O||"number"==typeof l):O=O||"number"==typeof d;var x=function(e){return Ov(e)?e:("number"==typeof e&&(e=jv(e)),O&&"number"==typeof s?Dv(e,s,Boolean(c)):e)},k=Lv(x(d),x(l),Boolean(O),v,b,p),S=k[0],E=S.numAsString,j=S.formattedValue,D=k[1];return Object.assign(Object.assign({},h),{value:j,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g||bv(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],s=r[i],c=Cv(n,t).to;return!!(o>=c.start&&o<c.end&&y&&y.includes(a)&&s===g)||a===s},onValueChange:D,format:v,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,l=t.selectionEnd,d=t.value;if(void 0===d&&(d=""),i===l){"Backspace"===r&&"-"===d[0]&&i===u.length+1&&n&&Pv(t,1),s&&c&&("Backspace"===r&&d[i-1]===g?(Pv(t,i-1),e.preventDefault()):"Delete"===r&&d[i]===g&&e.preventDefault()),(null==y?void 0:y.includes(r))&&d[i]===g&&Pv(t,i+1);var f=!0===a?",":a;"Backspace"===r&&d[i-1]===f&&Pv(t,i-1),"Delete"===r&&d[i]===f&&Pv(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=E;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),c&&s&&(n=Dv(n,s,c)),n!==E){var o=Vv(n,e);D({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:pv.event})}i(t)}})}function qv(e){var t=Yv(e);return rt().createElement(Bv,Object.assign({},t))}var Gv,Kv=["immutable"];function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qv=(0,un.Ay)((function(e){e.immutable;var t=(0,Je.A)(e,Kv);return(0,wn.jsx)(qv,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Gv||(Gv=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const Xv=Qv;function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zv(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eb=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},tb=function(e){return null!=e&&!isNaN(parseFloat(e))},nb=function(e,t,n){return!tb(n)||!(tb(t)&&n>t)&&!(tb(e)&&n<e)},rb=function(e,t){return function(n){var r=n.floatValue;return eb(r)<eb(e)||nb(e,t,r)}};const ob=(0,pr.injectIntl)(Mn.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,i=e.options||{},a=i.prePointDigits,s=i.postPointDigits,c=i.minValue,u=i.maxValue,l=i.allowNegative,d=i.fixedDecimalScale,f=i.suffix,p=i.prefix,h=i.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(a,s,u),g=Jv(Jv({isAllowed:rb(c,m),allowNegative:!!l},isNaN(s)?{}:{decimalScale:s}),{},{fixedDecimalScale:!!d}),y=void 0===e.value||null===e.value?"":e.value;return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(Xv,Jv(Jv({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&nb(c,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:y,suffix:f,prefix:p},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!nb(c,m,r)&&(t.target.value=null)}}))})}),800));const ib=Mn.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,i=e.name,a=e.id,s=e.placeholder,c=r||{},u=c.minValue,l=c.maxValue,d=c.format,f=c.allowLeadingZeros,p=c.suffix,h=null==t?"":t;return(0,wn.jsx)(Fi,{immutable:o,children:(0,wn.jsx)(Xv,{isAllowed:rb(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:a,name:i,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),nb(u,l,r)&&n(o)},value:h,allowLeadingZeros:f,suffix:p,format:d,placeholder:s,immutable:o})})}),800);var ab,sb,cb,ub=un.Ay.div.withConfig({displayName:"StyledWrapper"})(ab||(ab=(0,sn.A)(["\n display: flex;\n justify-content: stretch;\n"]))),lb=un.Ay.div.withConfig({displayName:"StyledLocationWrapper"})(sb||(sb=(0,sn.A)(["\n flex-grow: 1;\n"]))),db=un.Ay.div.withConfig({displayName:"StyledDistanceWrapper"})(cb||(cb=(0,sn.A)(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),mn.t7.color("border"),mn.hs.space(-.8),mn.hs.space(.5));function fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hb=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,i=e.options,a=void 0===i?{}:i,s=a.suggestions,c=a.isLoading,u=a.fetchSuggestions,l=a.latitudeField,d=a.longitudeField,f=a.emptySearchText,p=a.noResultsText,h=a.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?uv()(e,hv):void 0}(r),y=function(e){return e?e.map(gv):[]}(s);return(0,wn.jsxs)(ub,{children:[(0,wn.jsx)(lb,{children:(0,wn.jsx)(rm,{id:t,immutable:n,onChange:function(e){o(pb(pb({},function(e,t){return t?dv(dv({},e),uv()(t,hv)):pi()(e,hv)}(r,e)),{},{latitudeField:l,longitudeField:d}))},isLoading:c,options:y,searchOptions:function(e){var t=function(e){if(!e)return null;var t=(0,hr.A)(e.matchAll(fv(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return dv(dv({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?p:f}})}),(0,wn.jsx)(db,{children:(0,wn.jsx)(ib,{value:m,onChange:function(e){o(pb(pb({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var mb,gb=(0,tt.lazy)((function(){return c.e(262).then(c.bind(c,8810))}));const yb=function(e){var t=e.id,n=e.onChange,r=e.immutable,o=e.value,i=void 0===o?"":o,a=e.options;if(r)return(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})});var s=a||{},c=s.contentLang,u=s.defaultLinkTarget,l=s.ckEditorConfig;return(0,wn.jsx)(tt.Suspense,{fallback:mb||(mb=(0,wn.jsx)("i",{})),children:(0,wn.jsx)(gb,{id:t,onChange:function(e){n&&n(e)},value:i,contentLang:c,defaultLinkTarget:u,ckEditorConfig:l})})};var vb,bb;function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xb=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,i=e.immutable,a=e.name,s=function(e){return function(t){return t[e]}},c=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,i=t?"- ".concat(t):"",a=n?"/ ".concat(n.display):"";return(0,wn.jsxs)(No.Ay.Span,{children:[r," ",o," ",i," ",a]})},u=function(e){return function(n,o){var i=o.newValue;t(Ob(Ob({},r),{},(0,et.A)({},e,i)))}},l=function(e,r){var o=r.suggestion;!0===o.validationRequired?n.validateLocation(o,t):t(o)},d=function(e){return function(t){var r=t.value;n.fetchSuggestions((0,et.A)({},e,r),n.locationValues.country)}},f={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:i},p={value:r.city||"",onChange:u("city"),disabled:i};return(0,wn.jsx)(Si,{children:function(e){var t,o=e.focused,u=e.getRef;return(0,wn.jsxs)(Yi,{immutable:i,name:a,ref:u,children:[(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:f,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(o||r.city||r.postcode)&&(vb||(vb=(0,wn.jsx)(No.Ay.Span,{children:"/"}))),(0,wn.jsx)(yi(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:d("city"),getSuggestionValue:s("city"),renderSuggestion:c,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,wn.jsxs)(Hi,{children:[n.isLoading&&(bb||(bb=(0,wn.jsx)(Sn,{size:"1.8rem"}))),(t=n.locationValues,Boolean(t.city||t.postcode)&&!t.street&&(0,wn.jsx)(Ii.Ay,{href:Vi(n.locationValues),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Sb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const jb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};function Db(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Pb(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Db(i,r,o,a,s,"next",e)}function s(e){Db(i,r,o,a,s,"throw",e)}a(void 0)}))}}var _b;const Ab=un.Ay.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(_b||(_b=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const Tb=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.onLibLoaded,a=zi()(e,"options.defaultCountry")||"CH",s=(0,tt.useState)(null),u=(0,En.A)(s,2),l=u[0],d=u[1],p=rt().createRef();(0,tt.useEffect)((function(){var e=function(){var e=Pb(f().mark((function e(){var t;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.e(222).then(c.bind(c,96366));case 2:t=e.sent,d(t),i&&i();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[i]);var h=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},m=n&&null!=l&&l.AsYouType?new l.AsYouType(a).input(n):n||"";return(0,wn.jsxs)(Fi,{immutable:r,children:[(0,wn.jsx)(Ab,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,a):r,i=mi()(o)?new l.AsYouType(a).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(i);var s=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(a).input(t),o=new l.AsYouType(a).input(e),i=h(r,n),s=h(o,n)-i;window.requestAnimationFrame(function(){var e=n+s;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,s)},immutable:r||!l,ref:p,value:m}),m&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ib=function(e){return e.map((function(e){return uv()(e,["key","display"])}))};const Nb=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,i=e.value;return(0,wn.jsx)(rm,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=i.options.map((function(e){return Mb(Mb({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Ib(i.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Ib(i.options)})};function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Rb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Bb=function(e){return(0,wn.jsx)(rm,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wb(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Vb=Mn.Debouncer((function(e){return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(ov,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));var Ub,zb,Yb,qb,Gb,Kb=c(60115),$b=un.Ay.div.withConfig({displayName:"StyledTermsEdit"})(Ub||(Ub=(0,sn.A)(["\n margin: "," 0;\n display: flex;\n"])),mn.hs.space(-1.4)),Qb=un.Ay.input.withConfig({displayName:"StyledCheckbox"})(zb||(zb=(0,sn.A)(["\n margin-right: ",";\n"])),mn.hs.space(-1.5)),Xb=(0,un.AH)(Yb||(Yb=(0,sn.A)(["\n &,\n * {\n color: ",";\n }\n text-decoration: underline;\n\n &:hover,\n &:focus {\n color: ",";\n }\n\n &:active {\n * {\n color: ",";\n }\n }\n"])),mn.t7.color("secondary"),mn.t7.color("secondaryLight"),mn.t7.color("secondary")),Zb=un.Ay.a.withConfig({displayName:"StyledTermsLink"})(qb||(qb=(0,sn.A)(["\n ","\n"])),Xb),Jb=(0,un.Ay)(lm).withConfig({displayName:"StyledHtmlFormatter"})(Gb||(Gb=(0,sn.A)(["\n &&& {\n p {\n margin: 0;\n }\n\n a {\n ","\n }\n }\n"])),Xb);const ew=function(e){var t=e.options,n=t.loadTerms,r=t.terms,o=e.onChange,i=e.value,a=e.name,s=e.id,c=e.immutable,u=(0,tt.useCallback)((function(e){return{termsConditionKey:r.key,widgetConfigKey:Kb.A.getWidgetConfigKey(),checked:e,pickAllProperties:!0}}),[r]),l=(0,tt.useCallback)((function(){return o(null)}),[o]),d=(0,tt.useCallback)((function(e){return o(u(e))}),[o,u]),f=(0,tt.useCallback)((function(e){o&&(e?d(e):l())}),[o,d,l]);(0,tt.useEffect)((function(){n()}),[]),(0,tt.useEffect)((function(){!r||i||null!=r&&r.checkbox&&!c||d(!1)}),[r,i,c,d]);var p=(null==r?void 0:r.checkbox)&&(0,wn.jsx)(Qb,{type:"checkbox",checked:(null==i?void 0:i.checked)||!1,name:a,onChange:function(e){return f(e.target.checked)},id:s}),h=(null==r?void 0:r.link)&&(0,wn.jsx)(Zb,{target:"_blank",href:r.link,rel:"noreferrer",children:(0,wn.jsx)(Jb,{value:r.label,breakWords:!0})});return!c&&(0,wn.jsxs)($b,{children:[p,h||(0,wn.jsx)(Jb,{value:null==r?void 0:r.label,breakWords:!0})]})};const tw=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var nw,rw,ow,iw=(0,un.AH)(nw||(nw=(0,sn.A)(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),Ri),aw=un.Ay.div.withConfig({displayName:"StyledSizeWrapper"})(rw||(rw=(0,sn.A)(["\n display: grid;\n width: 100%;\n overflow: hidden;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),iw),sw=un.Ay.textarea.withConfig({displayName:"StyledTextarea"})(ow||(ow=(0,sn.A)(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: ",";\n position: relative;\n }\n"])),iw,(function(e){var t=e.disabled,n=e.isSafari;return!t||n?"4.5em":"0"}));function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lw=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,i=e.disabled,a=e.immutable,s=(0,tt.useState)(t),c=(0,En.A)(s,2),u=c[0],l=c[1],d=!tw(),f=tw(),p=(0,tt.useCallback)(Ji()(l,500,{trailing:!0}),[]);return(0,tt.useEffect)((function(){d&&p(t)}),[t,d,p]),(0,wn.jsx)(aw,uw(uw({"data-testid":"replicated-test"},d?{"data-replicated-value":u}:{}),{},{children:(0,wn.jsx)(sw,{value:t||"",name:r,id:o,onChange:n,disabled:i,immutable:a,rows:"1",isSafari:f})}))};const dw=Mn.Debouncer((function(e){return(0,wn.jsx)(Fi,{immutable:e.immutable,children:(0,wn.jsx)(lw,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var fw;const pw=un.Ay.input.withConfig({displayName:"StyledTimeEdit"})(fw||(fw=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gw=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,i=e.name,a=Qm(n,t),s=a.inputProps,c=a.clearButtonProps,u=n&&!r;return(0,wn.jsxs)(Fi,{immutable:r,children:[(0,wn.jsx)(pw,mw({type:"text",disabled:r,id:o,immutable:r,name:i},s)),u&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(cr,mw(mw({icon:"times"},c),{},{tabIndex:-1}))})]})};var yw;const vw=un.Ay.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(yw||(yw=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri);const bw=Mn.Debouncer((function(e){return(0,wn.jsxs)(Fi,{immutable:e.immutable,children:[(0,wn.jsx)(vw,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value||""}),e.value&&(0,wn.jsx)(Hi,{children:(0,wn.jsx)(Ii.Ay,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xw={boolean:sm,"boolean-select":om,choice:bm,code:jm,date:ig,datetime:sg,document:Xy,duration:nv,email:iv,geosearch:hb,html:yb,integer:ib,address:$i,location:xb,"multi-remote":Sb,"multi-select":jb,number:ob,phone:Tb,"pseudo-select":Nb,remote:Rb,"search-filter":Hb,"single-select":Bb,string:Vb,terms:ew,text:dw,url:bw,time:gw};const kw=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,i=e.events,a=e.placeholder,s=e.readOnly,c=void 0!==s&&s;if(xw[t]){var u=xw[t],l=Ow(Ow({},pi()(i,["onChange","onDrop","onDragStart"])),{},{onBlur:function(){"function"==typeof(null==i?void 0:i.onBlur)&&i.onBlur(n)}});return(0,wn.jsx)("div",Ow(Ow({},l),{},{"data-cy":"form-field",children:(0,wn.jsx)(u,Ow(Ow({value:n,onChange:null==i?void 0:i.onChange},mi()(r)?{}:{options:r}),{},{id:o,immutable:c,placeholder:a,events:i}))}))}return console.log("No type-editor defined for component type",t),null};function Sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jw=function(e){return(0,wn.jsx)(Wi,{children:(0,wn.jsx)(kw,Ew({componentType:e.type},pi()(e,"type")))})};const Dw=(0,un.SL)((function(e){return(0,wn.jsx)(bn.A,{style:{fontSize:"".concat(e.theme.fontSize.base,"rem")},icon:e.value?"check":"times"})}));const Pw=function(e){var t=(0,pr.useIntl)();return(0,wn.jsx)(No.Ay.Time,{dateTime:e.value,title:t.formatDate(e.value),children:(0,wn.jsx)(pr.FormattedDate,{value:e.value,year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",id:e.id})})};var _w;const Aw=(0,pr.injectIntl)((function(e){var t=e.value,n=e.intl,r=new Date(t);if(!t||isNaN(r))return console.error("DateTimeFormatter: Invalid date",t),_w||(_w=(0,wn.jsx)(No.Ay.Span,{}));var o=(0,_d.GPZ)(r,"HH:mm");return(0,wn.jsxs)(No.Ay.Time,{dateTime:r.toISOString(),title:"".concat(n.formatDate(r),", ").concat(o),children:[(0,wn.jsx)(pr.FormattedDate,{value:r,year:"numeric",month:"2-digit",day:"2-digit"}),", ",o]})}));var Tw;function Cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Iw=function(e){var t=e.options||{},n=(0,wn.jsxs)(wn.Fragment,{children:[t.title&&(0,wn.jsx)(No.Ay.H5,{children:t.title}),(0,wn.jsx)(lm,Mw({},e))]});return"text"===t.mode?n:(0,wn.jsx)(Wh,{content:n,isPlainHtml:!0,children:Tw||(Tw=(0,wn.jsx)(Ch,{children:(0,wn.jsx)(bn.A,{icon:"question-circle"})}))})};const Nw=function(e){var t=e.value,n=e.options||{},r=n.tooltips,o=n.loadTooltip,i=zi()(r,t.resourceKey,null);return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(Wh,{content:i?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(i)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return o&&!i&&o(t.resourceKey)},children:(0,wn.jsx)(Ii.Ay,{alt:t.alt||t.fileName,icon:"eye",look:"raised",target:"_blank",href:t.binaryLink,onClick:function(e){e.stopPropagation()}})})}),(0,wn.jsx)(Ii.Ay,{alt:t.alt||t.fileName,icon:"arrow-to-bottom",look:"raised",target:"_blank",href:zy.getDownloadUrl(t.binaryLink),onClick:function(e){e.stopPropagation()}})]})};const Fw=function(e){return(0,wn.jsx)(Qy,{onUpload:function(){},immutable:!0,textResources:{download:e.options.downloadText},value:e.value?e.value:null})};const Rw=function(e){var t=e.value,n=parseInt(t),r=Ad.A.formatDuration(n);return(0,wn.jsx)(No.Ay.Time,{dateTime:r,title:r,children:r})};const Lw=function(e){return(0,wn.jsx)(Ii.Ay,{href:"mailto:".concat(e.value.toString()),target:"_blank",onClick:function(e){return e.stopPropagation()},label:e.value.toString(),breakWords:e.breakWords,useTitle:e.useTitle})};const Hw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:e.value.toString()})};function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ww(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vw=function(){return"; "};const Uw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.useTitle,i=n||{},a=i.navigationStrategy,s=i.linkProps,c=(null==t?void 0:t.length)>0?t.map((function(e){return null!=a&&a.DetailLink?(0,wn.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,wn.jsx)(a.DetailLink,Bw(Bw({},s),{},{entityKey:e.key,children:e.display}))}):e.display})).reduce((function(e,t,n){return[e,(0,wn.jsx)(Vw,{},"sep".concat(n)),t]})):null;return(0,wn.jsx)(No.Ay.Span,{breakWords:r,useTitle:o,children:c})};const zw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,wn.jsx)(pr.FormattedNumber,{value:e.value,style:"decimal",minimumFractionDigits:e.options&&e.options.postPointDigits||2})})};const Yw=function(e){var t;return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,children:(0,wn.jsx)(pr.FormattedNumber,{value:e.value,style:"percent",minimumFractionDigits:null==e||null===(t=e.options)||void 0===t?void 0:t.postPointDigits})})};function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kw=(0,tt.lazy)((function(){return Promise.all([c.e(222),c.e(672)]).then(c.bind(c,74302))}));const $w=function(e){return(0,wn.jsx)(tt.Suspense,{fallback:"",children:(0,wn.jsx)(Kw,Gw({},e))})};function Qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qw(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Zw=function(e){var t=e.value,n=e.options,r=e.breakWords,o=e.id,i=n||{},a=i.tooltips,s=i.loadTooltip,c=i.navigationStrategy,u=i.linkProps,l=zi()(a,t.key,null);t=Io.getOrFirst(t);var d=(0,wn.jsx)(No.Ay.Span,{breakWords:r,useTitle:!l,id:o,children:t.display});return(null!=c&&c.DetailLink?(0,wn.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,wn.jsx)(c.DetailLink,Xw(Xw({},u),{},{entityKey:t.key,children:(0,wn.jsx)(Wh,{content:l?(0,wn.jsx)("div",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(l)}}):null,children:(0,wn.jsx)("span",{onMouseOver:function(){return s&&!l&&s(t.key)},id:o,children:d})})}))}):null)||d};const Jw=function(e){return(0,wn.jsx)(No.Ay.Span,{breakWords:e.breakWords,useTitle:e.useTitle,id:e.id,children:e.value.toString()})};const eO=function(e){return e.breakWords?(0,wn.jsx)(No.Ay.P,{breakWords:!0,useTitle:e.useTitle,id:e.id,children:(t=e.value,t.split("\n").flatMap((function(e,t,n){return t+1<n.length?[e,(0,wn.jsx)("br",{},t)]:e})))}):(0,wn.jsx)(No.Ay.Span,{breakWords:!1,useTitle:e.useTitle,id:e.id,children:e.value.replace("/\n/g"," ")});var t};var tO=function(e,t){return parseInt(e.split(":")[t])||0};const nO=(0,pr.injectIntl)((function(e){var t=e.value,n=(e.intl,tO(t,0)),r=tO(t,1),o=tO(t,2),i=tO(t,3),a=new Date(2e3,1,1,n,r,o,i),s=(0,_d.GPZ)(a,"HH:mm:ss.SSS"),c=(0,_d.GPZ)(a,"HH:mm");return(0,wn.jsx)(No.Ay.Time,{dateTime:s,title:c,children:c})}));const rO=function(e){var t=e.value,n=e.breakWords,r=e.useTitle;return(0,wn.jsx)(Ii.Ay,{onClick:function(e){e.stopPropagation()},href:t,target:"_blank",rel:"noopener noreferrer",label:t,breakWords:n,useTitle:r,neutral:!1})};var oO,iO={boolean:Dw,date:Pw,datetime:Aw,document:Fw,"document-compact":Nw,duration:Rw,email:Lw,html:lm,integer:Hw,"multi-remote":Uw,"multi-select":Uw,number:zw,percent:Yw,phone:$w,remote:Zw,"single-select":Zw,string:Jw,text:eO,time:nO,url:rO,description:Iw};const aO=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.breakWords,i=void 0===o||o,a=e.useTitle,s=void 0===a||a,c=e.id;if(iO[t]){var u=iO[t];return(0,wn.jsx)(u,{value:n,options:r,breakWords:i,useTitle:s,id:c})}return console.log("No FormattedValue mapper defined for component type",t,n),oO||(oO=(0,wn.jsx)("div",{}))};var sO;const cO=function(e){var t=e.type,n=e.value,r=e.options,o=e.breakWords,i=e.useTitle,a=e.id;return null==n||""===n?sO||(sO=(0,wn.jsx)("span",{})):(0,wn.jsx)(aO,{componentType:t,value:n,options:r,breakWords:o,useTitle:i,id:a})},uO=cO;var lO="checked",dO="indeterminate",fO="unchecked";const pO=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,i=(0,tt.useRef)(null);return(0,tt.useLayoutEffect)((function(){i.current.indeterminate=t===dO,i.current.checked=t===lO}),[t]),(0,wn.jsx)("input",{ref:i,onChange:function(e){r(t===dO?fO:e.target.checked?lO:fO)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})},hO=pO;var mO;const gO=un.Ay.div.withConfig({displayName:"StyledLayoutBox"})(mO||(mO=(0,sn.A)(["\n height: fit-content;\n margin-bottom: ",";\n"])),mn.hs.space(.25));var yO=function(e){var t=e.children;return(0,wn.jsx)(gO,{children:t})};const vO=(0,tt.memo)(yO);var bO,wO=un.Ay.div.withConfig({displayName:"StyledLayoutContainer"})(bO||(bO=(0,sn.A)(["\n display: grid;\n padding-right: ",";\n ",";\n ",";\n"])),mn.hs.space(0),(function(e){var t=e.containerWidth,n=e.theme,r=e.minBoxWidth;return t<600?"grid-template-columns: 100%;":"grid-template-columns: repeat(auto-fit, minmax(".concat(r,"px, 1fr));\n grid-gap: ").concat(mn.hs.space(.25)({theme:n}))}),(function(e){return e.occupiesRemainingHeight&&"\n flex: 1;\n "}));const OO=wO;const xO=function(e){var t=e.children,n=e.occupiesRemainingHeight,r=e.minBoxWidth,o=void 0===r?250:r,i=(0,tt.useRef)(null),a=(0,tt.useState)(0),s=(0,En.A)(a,2),c=s[0],u=s[1],l=function(){u(i.current.offsetWidth)};return(0,tt.useEffect)((function(){return l(),window.addEventListener("resize",l),function(){return window.removeEventListener("resize",l)}}),[]),(0,wn.jsx)(OO,{ref:i,containerWidth:c,occupiesRemainingHeight:n,minBoxWidth:o,children:t})},kO={Box:vO,Container:xO};var SO,EO,jO,DO,PO=c(5016),_O=(0,un.i7)(SO||(SO=(0,sn.A)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),AO=(0,un.AH)(EO||(EO=(0,sn.A)(["\n animation: "," 400ms ease-in-out both;\n"])),_O),TO=un.Ay.div.withConfig({displayName:"StyledLoadingIconAndTest"})(jO||(jO=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),mn.hs.space(-1),AO,PO.oY,mn.hs.space(-1));const CO=un.Ay.div.withConfig({displayName:"StyledLoadMask"})(DO||(DO=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var MO;const IO=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,i=e.className,a=(0,tt.useState)(!1),s=(0,En.A)(a,2),c=s[0],u=s[1],l=(0,tt.useState)(!0),d=(0,En.A)(l,2),f=d[0],p=d[1];(0,tt.useEffect)((function(){return t&&Promise.all(t).then((function(){var e;e=!0,f&&u(e)})),function(){p(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&c;return(0,wn.jsx)(CO,{className:i,children:h?r:(0,wn.jsxs)(TO,{children:[MO||(MO=(0,wn.jsx)(Sn,{size:"30px"},"loading-spinner")),o&&(0,wn.jsx)(No.Ay.Span,{children:o},"loadingText")]})})};var NO,FO=un.Ay.div.withConfig({displayName:"StyledPanel"})(NO||(NO=(0,sn.A)(["\n && {\n background-color: ",";\n border: 1px "," ",";\n border-radius: ",";\n }\n"])),mn.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),mn.t7.color("borderLight"),mn.t7.radii("form"));const RO=FO;var LO=["children","isFramed","controlledIsOpen","isOpenInitial","isToggleable","onToggle"];const HO=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.controlledIsOpen,i=e.isOpenInitial,a=void 0===i||i,s=e.isToggleable,c=void 0===s||s,u=e.onToggle,l=(0,Je.A)(e,LO),d=(0,tt.useState)(a),f=(0,En.A)(d,2),p=f[0],h=f[1],m="boolean"==typeof o,g=function(){c&&(m?"function"==typeof u&&u(!o):h(!p))};return(0,wn.jsx)(RO,{isFramed:r,"data-cy":l["data-cy"],children:rt().Children.map(t,(function(e){return rt().cloneElement(e,{isFramed:r,isOpen:m?o:p,isToggleable:c,toggleOpenState:g})}))})};var WO,BO=un.Ay.div.withConfig({displayName:"StyledPanelBody"})(WO||(WO=(0,sn.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?mn.hs.space(-.375):0}),(function(e){return e.isOpen?"block":"none"}));const VO=BO;var UO=["children","isFramed","isOpen"];const zO=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=(0,Je.A)(e,UO);return(0,wn.jsx)(VO,{isFramed:n,isOpen:r,"data-cy":o["data-cy"],children:(0,wn.jsx)("div",{children:t})})};const YO=function(e){var t=e.initialOpenPanelIndex,n=e.children,r=(0,tt.useState)(t),o=(0,En.A)(r,2),i=o[0],a=o[1];return(0,wn.jsx)(wn.Fragment,{children:rt().Children.map(n,(function(e,t){return rt().cloneElement(e,{controlledIsOpen:i===t,onToggle:function(e){return function(e,t){a(!0===t?e:void 0)}(t,e)}})}))})};var qO;const GO=un.Ay.div.withConfig({displayName:"StyledPanelGroup"})(qO||(qO=(0,sn.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),mn.hs.space(0),RO,mn.hs.space(-1));function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KO(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const QO=function(e){return(0,wn.jsx)(GO,{children:(0,wn.jsx)(YO,$O({},e))})};var XO,ZO,JO,ex,tx,nx,rx,ox="1px",ix=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(XO||(XO=(0,sn.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),mn.hs.font(1),mn.t7.color("text"),!mn.CN&&(0,un.AH)(ZO||(ZO=(0,sn.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),mn.t7.color("secondaryLight"))),ax=un.Ay.div.withConfig({displayName:"StyledPanelHeader"})(JO||(JO=(0,sn.A)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: ",";\n padding: ",";\n align-items: center;\n\n /* only apply arrow styles on non-touch devices */\n ","\n > div {\n flex: 1 1 auto;\n }\n ","\n }\n"])),mn.t7.color("backgroundPanelHeaderFooter"),(function(e){return e.isOpen?(0,un.AH)(ex||(ex=(0,sn.A)(["\n calc("," - ",") calc("," - ",") 0 0;\n "])),mn.t7.radii("form"),ox,mn.t7.radii("form"),ox):(0,un.AH)(tx||(tx=(0,sn.A)(["\n calc("," - ",")\n "])),mn.t7.radii("form"),ox)}),(function(e){return e.isFramed?(0,un.AH)(nx||(nx=(0,sn.A)(["\n "," ","\n "])),mn.hs.space(-1.7),mn.hs.space(-.375)):0}),!mn.CN&&(0,un.AH)(rx||(rx=(0,sn.A)(["\n &:hover {\n cursor: pointer;\n\n "," {\n opacity: 1;\n }\n }\n "])),ix),(function(e){return function(e){var t=e.theme,n=e.isOpen,r=e.isFramed,o="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(r?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(r?"solid":"none",";\n }\n ");return n?"\n ".concat(o,"\n &:first-child {\n border-bottom-width: ").concat(ox,";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-width: ").concat(ox,";\n }\n "):"\n ".concat(o,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(ox,";\n }\n ")}(e)}));const sx=ax;var cx=["children","isFramed","isOpen","isToggleable","showToggler","toggleOpenState","options"];const ux=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c,l=(0,Je.A)(e,cx);return(0,wn.jsxs)(sx,{isFramed:n,isOpen:r,onClick:s,"data-cy":l["data-cy"],children:[(0,wn.jsx)("div",{children:rt().Children.map(t,(function(e){return rt().cloneElement(e)}))}),o&&a&&(0,wn.jsx)(ix,{children:(0,wn.jsx)(bn.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},lx={Body:zO,Group:QO,Header:ux,Wrapper:HO};var dx,fx=un.Ay.div.withConfig({displayName:"StyledPanel"})(dx||(dx=(0,sn.A)(["\n && {\n background-color: ",";\n border: 1.5px "," ",";\n border-radius: ",";\n }\n"])),mn.t7.color("paper"),(function(e){return e.isFramed?"solid":"none"}),mn.t7.color("borderLight"),mn.t7.radii("form"));const px=fx;const hx=function(e){var t=e.children,n=e.isFramed,r=void 0===n||n,o=e.isOpenInitial,i=void 0===o||o,a=(0,tt.useState)(i),s=(0,En.A)(a,2),c=s[0],u=s[1];return(0,wn.jsx)(px,{isFramed:r,children:rt().Children.map(t,(function(e){return rt().cloneElement(e,{isOpen:c,isToggleable:!i,isFramed:r,toggleOpenState:function(){return u(!c)}})}))})};var mx,gx,yx=un.Ay.div.withConfig({displayName:"StyledPanelBody"})(mx||(mx=(0,sn.A)(["\n && {\n padding: ",";\n display: ",";\n }\n"])),(function(e){return e.isFramed?(0,un.AH)(gx||(gx=(0,sn.A)(["\n "," "," "," ","\n "])),mn.hs.space(-1),mn.hs.space(.2),mn.hs.space(.2),mn.hs.space(.2)):0}),(function(e){return e.isOpen?"block":"none"}));const vx=yx;const bx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen;return(0,wn.jsx)(vx,{isFramed:n,isOpen:r,children:(0,wn.jsx)("div",{children:t})})};var wx;const Ox=un.Ay.div.withConfig({displayName:"StyledPanelGroup"})(wx||(wx=(0,sn.A)(["\n margin-bottom: ",";\n\n && {\n ",":not(:last-child) {\n margin-bottom: ",";\n }\n }\n"])),mn.hs.space(0),px,mn.hs.space(-1));function xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xx(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Sx=function(e){return(0,wn.jsx)(Ox,{children:(0,wn.jsx)(YO,kx({},e))})};var Ex,jx,Dx,Px="1px",_x=un.Ay.div.withConfig({displayName:"StyledPanelHeader"})(Ex||(Ex=(0,sn.A)(["\n && {\n background-color: ",";\n display: flex;\n border-radius: calc("," - ",")\n calc("," - ",") 0 0;\n padding: ",";\n align-items: center;\n\n > div {\n flex: 1 1 auto;\n }\n\n * {\n font-weight: ",";\n }\n ","\n }\n"])),mn.t7.color("paper"),mn.t7.radii("form"),Px,mn.t7.radii("form"),Px,(function(e){return e.isFramed?mn.hs.space(.2):0}),mn.t7.fontWeight("regular"),(function(e){return function(e){var t=e.theme,n=e.isFramed,r="\n &:first-child {\n border-bottom-color: ".concat(t.colors.borderLight,";\n border-bottom-style: ").concat(n?"solid":"none",";\n }\n\n &:last-child,\n &:nth-child(3) {\n border-top-color: ").concat(t.colors.borderLight,";\n border-top-style: ").concat(n?"solid":"none",";\n }\n ");return"\n ".concat(r,"\n &:first-child {\n border-bottom-width: 0;\n }\n\n &:last-child {\n border-top-width: 0;\n }\n\n &:nth-child(3) {\n border-top-width: ").concat(Px,";\n }\n ")}(e)})),Ax=un.Ay.span.withConfig({displayName:"StyledIconWrapper"})(jx||(jx=(0,sn.A)(["\n font-size: ",";\n color: ",";\n\n /* only hide arrow on non-touch devices */\n ","\n"])),mn.hs.font(1),mn.t7.color("text"),!mn.CN&&(0,un.AH)(Dx||(Dx=(0,sn.A)(["\n opacity: 0;\n\n &:hover {\n color: ",";\n }\n "])),mn.t7.color("secondaryLight")));const Tx=_x;const Cx=function(e){var t=e.children,n=e.isFramed,r=e.isOpen,o=e.isToggleable,i=e.showToggler,a=void 0===i||i,s=e.toggleOpenState,c=e.options,u=void 0===c?{collapseButtonText:"Hide information",unfoldButtonText:"Show more information"}:c;return(0,wn.jsxs)(Tx,{isFramed:n,isOpen:r,onClick:o?s:function(){},children:[(0,wn.jsx)("div",{children:rt().Children.map(t,(function(e){return rt().cloneElement(e)}))}),o&&a&&(0,wn.jsx)(Ax,{children:(0,wn.jsx)(bn.A,{icon:r?"chevron-up":"chevron-down",onClick:s,title:r?u.collapseButtonText:u.unfoldButtonText})})]})},Mx={Body:bx,Group:Sx,Header:Cx,Wrapper:hx};var Ix={Body:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Body),Kb.A.EmbedType.widget,Mx.Body),Group:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Group),Kb.A.EmbedType.widget,Mx.Group),Header:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Header),Kb.A.EmbedType.widget,Mx.Header),Wrapper:(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,lx.Wrapper),Kb.A.EmbedType.widget,Mx.Wrapper)};const Nx={Body:Kb.A.embedStrategyFactory({mapping:Ix.Body}),Group:Kb.A.embedStrategyFactory({mapping:Ix.Group}),Header:Kb.A.embedStrategyFactory({mapping:Ix.Header}),Wrapper:Kb.A.embedStrategyFactory({mapping:Ix.Wrapper})};var Fx,Rx,Lx,Hx=un.Ay.div.withConfig({displayName:"StyledButtonWrapper"})(Fx||(Fx=(0,sn.A)(["\n padding-top: ",";\n background-color: ",";\n display: flex;\n justify-content: flex-end;\n"])),mn.hs.space(0),mn.t7.color("paper"));const Wx=function(e){var t=e.onYes,n=e.onNo;return(0,wn.jsxs)(Hx,{children:[(0,wn.jsx)(er,{ink:"primary",look:"raised",type:"button",onClick:t,autoFocus:!0,children:Rx||(Rx=(0,wn.jsx)(pr.FormattedMessage,{id:"client.common.yes"}))}),(0,wn.jsx)(er,{type:"button",onClick:n,children:Lx||(Lx=(0,wn.jsx)(pr.FormattedMessage,{id:"client.common.no"}))})]})},Bx=Wx;var Vx=new AbortController,Ux=!1;window.addEventListener("beforeunload",(function(e){Ux?(e.preventDefault(),e.returnValue=""):Vx.abort()})),window.addEventListener("pagehide",(function(){Vx.signal.aborted||Vx.abort()}));var zx=function(e,t,n){return f().mark((function r(){var o,i,a,s=arguments;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=s.length,i=new Array(o),a=0;a<o;a++)i[a]=s[a];case 1:return r.prev=2,r.next=5,Te.apply(void 0,[e,t].concat(i));case 5:r.next=16;break;case 7:if(r.prev=7,r.t0=r.catch(2),!1!==Vx.signal.aborted){r.next=16;break}if(!n){r.next=15;break}return r.next=13,De(n("client.common.unexpectedError","client.common.unexpectedError",r.t0));case 13:r.next=16;break;case 15:Mm.A.logError("error",r.t0);case 16:r.next=1;break;case 18:case"end":return r.stop()}}),r,null,[[2,7]])}))};const Yx={autoRestartSaga:zx,createGenerator:function(e){return f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe(e);case 2:case"end":return t.stop()}}),t)}))},injectSaga:function(e,t,n){e.sagas.includes(t)||(e.sagas.push(t),e.sagaMiddleware.run(zx(t,null,n)))},abortController:Vx,deactivatePreventFromLeaving:function(){Ux=!1},activatePreventFromLeaving:function(){Ux=!0}};l().node,l().bool,l().string,l().bool,l().objectOf(l().arrayOf(l().oneOfType([l().node,l().string]))),l().bool,l().bool,l().string,l().string,l().oneOf(["inside","outside-responsive","outside"]),l().bool,l().string,l().bool,l().string,l().bool;var qx,Gx,Kx,$x=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,mn.t7.color("text")),mn.xX.condition.DANGER,mn.t7.color("signal.danger")),mn.xX.condition.SUCCESS,mn.t7.color("signal.success")),mn.xX.condition.WARNING,mn.t7.color("signal.warning")),mn.xX.condition.INFO,mn.t7.color("signal.info")),Qx=(0,un.Ay)(No.dV).withConfig({displayName:"StyledSignalList"})(qx||(qx=(0,sn.A)(["\n && {\n list-style-type: none;\n margin-left: 0;\n }\n"]))),Xx=un.Ay.span.withConfig({displayName:"StyledSignalListIcon"})(Gx||(Gx=(0,sn.A)(["\n margin-left: -1px;\n margin-right: ",";\n"])),mn.hs.space(-2)),Zx=(0,un.Ay)(No.vx).withConfig({displayName:"StyledSignalListItem"})(Kx||(Kx=(0,sn.A)(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){var t=e.condition;return $x[t]}(e)}));const Jx=function(e){return(0,wn.jsx)(Qx,{as:"ul",children:rt().Children.map(e.children,(function(e){return rt().cloneElement(e)}))})};var ek,tk=["condition","label","children"],nk=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,!1),mn.xX.condition.DANGER,"times"),mn.xX.condition.SUCCESS,"check"),mn.xX.condition.WARNING,"exclamation-triangle"),mn.xX.condition.INFO,"info"),rk=function(e){var t=nk[e];return t?(0,wn.jsx)(bn.A,{icon:t,position:mn.xX.position.SOLE,hasFixedWidth:!1}):ek||(ek=(0,wn.jsx)("i",{children:"•"}))};const ok=function(e){var t=e.condition,n=void 0===t?mn.xX.condition.BASE:t,r=e.label,o=e.children,i=(0,Je.A)(e,tk);return(0,wn.jsxs)(Zx,{condition:n,"data-cy":i["data-cy"],children:[(0,wn.jsx)(Xx,{children:rk(n)}),r,rt().Children.map(o,(function(e){return rt().cloneElement(e)}))]})},ik={List:Jx,Item:ok};const ak=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,(0,hr.A)(e.error[n]))})),(0,wn.jsx)(ik.List,{children:t.map((function(e,t){return(0,wn.jsx)(ik.Item,{condition:"danger",label:e,"data-cy":"erroritem-".concat(t)},t)}))})};var sk,ck,uk,lk,dk,fk,pk,hk,mk,gk,yk,vk,bk,wk,Ok="1.1px",xk=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"text":"auto",";")},kk=un.Ay.label.withConfig({displayName:"StyledStatedValueLabel"})(sk||(sk=(0,sn.A)(["\n &&& {\n display: flex;\n width: 40%;\n flex-grow: 1;\n flex-basis: 125px;\n ","\n background-color: ",";\n pointer-events: auto;\n ","\n word-break: break-word;\n white-space: pre-wrap;\n ","\n ","\n ","\n }\n"])),(0,mn.Ed)({lineHeight:mn.t7.lineHeight("dense")}),mn.t7.color("paper"),(function(e){return xk(e)}),(function(e){return"outside"===e.labelPosition&&(0,un.AH)(ck||(ck=(0,sn.A)(["\n margin-bottom: ",";\n display: block;\n width: auto;\n "])),mn.hs.space(-1.5))}),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(uk||(uk=(0,sn.A)(["\n flex-basis: unset;\n position: absolute;\n top: 0;\n z-index: 1;\n display: inline-block;\n\n /* if immutable remove left padding */\n padding: 0 "," "," ",";\n width: fit-content;\n left: ",";\n white-space: nowrap; // prevent multiline labels since they cover the input content\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n "])),mn.hs.space(-2),mn.hs.space(-3.5),(function(e){return e.immutable&&"0"}),(function(e){return e.immutable?"0":mn.hs.space(-1.8)}))}),(function(e){return e.styles})),Sk=un.Ay.div.withConfig({displayName:"StyledInputArea"})(lk||(lk=(0,sn.A)(["\n width: 60%;\n flex-grow: 1;\n ","\n"])),(function(e){return"outside"===e.labelPosition&&(0,un.AH)(dk||(dk=(0,sn.A)(["\n width: auto;\n "])))})),Ek=un.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(fk||(fk=(0,sn.A)(["\n &&& {\n position: relative;\n height: fit-content; // prevent height getting bigger due to tall labels\n border: "," solid ",";\n border-radius: ",";\n padding: "," ",";\n display: flex;\n ","\n ","\n ","\n\n > "," {\n display: inline-block;\n max-width: 100%;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n ","\n ","\n }\n"])),Ok,(function(e){return mn.KY[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),mn.t7.radii("form"),mn.hs.space(-2.5),mn.hs.space(-1.5),(function(e){return!e.immutable&&(0,mn.h7)(e)}),(function(e){return xk(e)}),(0,mn.Ed)(),Ih,(function(e){return"inside"===e.labelPosition&&(0,un.AH)(pk||(pk=(0,sn.A)(["\n padding: "," "," "," ",";\n "])),mn.hs.space(-1),mn.hs.space(-1.7),mn.hs.space(-2),mn.hs.space(-1))}),(function(e){return e.styles})),jk=un.Ay.p.withConfig({displayName:"StyledStatedValueDescription"})(hk||(hk=(0,sn.A)(["\n &&& {\n ","\n }\n"])),(0,mn.Ed)({fontSize:mn.hs.font(-1)})),Dk=un.Ay.div.withConfig({displayName:"StyledStatedValueError"})(mk||(mk=(0,sn.A)([""]))),Pk=un.Ay.div.withConfig({displayName:"StyledStatedValueOuterWrapper"})(gk||(gk=(0,sn.A)(["\n &:not(:last-child) {\n margin-bottom: ",";\n }\n ","\n"])),mn.hs.space(-.7),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(yk||(yk=(0,sn.A)(["\n padding-top: ",";\n margin-bottom: 0.65rem;\n position: relative;\n "])),mn.hs.space(-1.5))})),_k=un.Ay.div.withConfig({displayName:"StyledStatedValueInnerWrapper"})(vk||(vk=(0,sn.A)(["\n &&& {\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n align-items: center;\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n "," {\n margin-left: calc("," + ",");\n }\n ","\n ","\n ","\n }\n"])),mn.hs.space(-1.5),Ek,jk,Dk,mn.hs.space(-2),jk,mn.hs.space(-1),Ok,(function(e){return"outside"===e.labelPosition&&(0,un.AH)(bk||(bk=(0,sn.A)(["\n display: block;\n "])))}),(function(e){return"inside"===e.labelPosition&&(0,un.AH)(wk||(wk=(0,sn.A)(["\n padding-top: 0;\n "])))}),(function(e){return e.styles}));function Ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ak(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ak(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ck=function(e){var t,n,r,o=e.children,i=e.description,a=e.dirty,s=e.isDisplay,c=e.error,u=e.hasValue,l=e.id,d=e.label,f=e.mandatory,p=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,y=e.labelPosition,v=e.styles,b=!h&&m&&c&&Object.keys(c).length>0,w=f&&p?", ".concat(p):"",O="".concat(Io.adjustedHTMLString(d)).concat(w),x=g||function(e,t,n,r){return t?mn.xX.condition.DANGER:e?mn.xX.condition.INFO:n&&!r?mn.xX.condition.WARNING:void 0}(a,b,f,u),k={__html:"".concat(jo.sanitizeHtml(d)).concat(f?" *":"")},S=!s&&!h&&{htmlFor:l};return(0,wn.jsx)(Si,{children:function(e){var f=e.getRef;return(0,wn.jsx)(Pk,{labelPosition:y,children:(0,wn.jsxs)(_k,{labelPosition:y,ref:f,label:d,styles:null==v?void 0:v.innerWrapperStyles,children:[d&&(0,wn.jsx)(kk,Tk(Tk({},S),{},{hasValue:u,dirty:a,title:O,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.labelStyles,children:t||(t=(0,wn.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,wn.jsxs)(Sk,{labelPosition:y,children:[(0,wn.jsx)(Ek,{hasValue:u,immutable:h,isDisplay:s,signal:x,labelPosition:y,styles:null==v?void 0:v.valueStyles,children:o}),b&&(0,wn.jsx)(Dk,{"data-cy":"errorlist-".concat(l),children:n||(n=(0,wn.jsx)(ak,{error:c}))}),i&&(r||(r=(0,wn.jsx)(jk,{children:i})))]})]})})}})};var Mk,Ik,Nk=function(e){return(0,un.AH)(Mk||(Mk=(0,sn.A)(["\n color: ",";\n font-weight: ",";\n"])),mn.Db[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e),(function(e){return e.dirty?mn.t7.fontWeight("bold"):mn.t7.fontWeight("regular")}))},Fk=function(){return(0,un.AH)(Ik||(Ik=(0,sn.A)(["\n padding-left: ",";\n"])),(function(e){return e.immutable&&0}))},Rk=["labelPosition"];function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hk=function(e){var t=e.labelPosition,n=(0,Je.A)(e,Rk);return(0,wn.jsx)(Ck,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lk(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{labelStyles:Nk,valueStyles:Fk},labelPosition:t||"outside-responsive"},n))};var Wk,Bk,Vk,Uk,zk,Yk,qk=function(e){return e.signal?"signal":"shade2"},Gk=function(){return(0,un.AH)(Wk||(Wk=(0,sn.A)(["\n align-items: flex-start;\n"])))},Kk=function(e){return(0,un.AH)(Bk||(Bk=(0,sn.A)(["\n padding-top: ",";\n color: ",";\n"])),(function(e){var t=e.immutable;return"inside"===e.labelPosition?0:t?(0,un.AH)(Vk||(Vk=(0,sn.A)(["\n ","\n "])),mn.hs.space(-1.8)):(0,un.AH)(Uk||(Uk=(0,sn.A)(["\n ","\n "])),mn.hs.space(.1))}),mn.Db[qk(e)](e))},$k=function(){return(0,un.AH)(zk||(zk=(0,sn.A)(["\n padding-top: ",";\n padding-left: ",";\n"])),(function(e){var t=e.isDisplay,n=e.immutable,r=e.labelPosition;return n&&"inside"!==r?0:t&&n?(0,un.AH)(Yk||(Yk=(0,sn.A)(["\n ","\n "])),mn.hs.space(-1)):void 0}),(function(e){return e.immutable&&0}))},Qk=["labelPosition"];function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Zk=function(e){var t=e.labelPosition,n=(0,Je.A)(e,Qk);return(0,wn.jsx)(Ck,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xk(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({styles:{innerWrapperStyles:Gk,labelStyles:Kk,valueStyles:$k},labelPosition:t||"outside-responsive"},n))};var Jk=(0,et.A)((0,et.A)({},Kb.A.EmbedType.admin,Hk),Kb.A.EmbedType.widget,Zk);const eS=Kb.A.embedStrategyFactory({mapping:Jk});var tS,nS,rS,oS,iS=un.Ay.span.withConfig({displayName:"StyledSearchIconWrapper"})(tS||(tS=(0,sn.A)(["\n margin-right: ",";\n color: ",";\n"])),mn.hs.space(-.8),mn.t7.color("text")),aS=un.Ay.div.withConfig({displayName:"StyledSearchBox"})(nS||(nS=(0,sn.A)(["\n && {\n /* clears the ‘X’ from Chrome */\n input[type='search']::-webkit-search-decoration,\n input[type='search']::-webkit-search-cancel-button,\n input[type='search']::-webkit-search-results-button,\n input[type='search']::-webkit-search-results-decoration {\n display: none;\n }\n }\n"]))),sS=un.Ay.input.attrs((function(e){return{type:"search",placeholder:e.placeholder}})).withConfig({displayName:"StyledSearchBoxInput"})(rS||(rS=(0,sn.A)(["\n &&&& {\n ","\n }\n"])),Ri),cS=rt().forwardRef((function(e,t){var n=e.value,r=e.minInputLength,o=void 0===r?3:r,i=e.onSearch,a=e.placeholder,s=(e.debounce,(0,tt.useState)(n||"")),c=(0,En.A)(s,2),u=c[0],l=c[1];return(0,wn.jsx)(aS,{children:(0,wn.jsx)(eS,{hasValue:Boolean(u),labelPosition:"inside",children:(0,wn.jsxs)(Fi,{children:[oS||(oS=(0,wn.jsx)(iS,{children:(0,wn.jsx)(bn.A,{icon:"search"})})),(0,wn.jsx)(sS,{"data-cy":"input-search-box",ref:t,onChange:function(e){var t=e.target.value;l(t),(0===t.length||t.length>=o)&&i(t)},value:u,"aria-label":a,placeholder:a}),(null==u?void 0:u.length)>0&&(0,wn.jsx)(cr,{"data-cy":"btn-reset",icon:"times",onClick:function(){l(""),i("")}})]})})})}));const uS=Mn.Debouncer(cS,100,"onSearch");var lS,dS=[mn.xX.condition.BASE,mn.xX.condition.INFO,mn.xX.condition.DANGER,mn.xX.condition.SUCCESS,mn.xX.condition.WARNING],fS=(0,et.A)((0,et.A)((0,et.A)((0,et.A)((0,et.A)({},mn.xX.condition.BASE,mn.t7.color("signal.neutral")),mn.xX.condition.DANGER,mn.t7.color("signal.danger")),mn.xX.condition.SUCCESS,mn.t7.color("signal.success")),mn.xX.condition.WARNING,mn.t7.color("signal.warning")),mn.xX.condition.INFO,mn.t7.color("signal.info")),pS=un.Ay.div.withConfig({displayName:"StyledSignalBox"})(lS||(lS=(0,sn.A)(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return fS[e.condition]||fS[mn.xX.condition.INFO]}(e)}),mn.hs.space(-1),mn.hs.space(-1),(function(e){return"base"===e.condition?"#000":"#FFF"}));pS.propTypes={condition:mn.xX.oneOfPropTypeAndCompletelyMapped(dS,fS)};var hS,mS,gS;un.Ay.div.withConfig({displayName:"StyledCell"})(hS||(hS=(0,sn.A)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),un.Ay.div.withConfig({displayName:"StyledStatedValueBox"})(mS||(mS=(0,sn.A)(["\n width: 100%;\n ","\n border: 1px solid ",";\n border-radius: ",";\n ","\n "," {\n padding: "," "," "," ",";\n border-radius: ",";\n background-color: ",";\n }\n\n button {\n background-color: transparent;\n }\n\n &&&&& {\n input,\n textarea {\n padding-left: ",";\n padding-right: ",";\n\n &:not([disabled]):hover {\n cursor: pointer;\n }\n }\n\n .react-datepicker-wrapper {\n margin-right: ",";\n }\n\n input.react-datepicker__input {\n padding-left: ",";\n padding-right: 0;\n }\n }\n"])),mn.h7,mn.t7.color("border"),mn.t7.radii("form"),(function(e){return e.borderless&&(0,un.AH)(gS||(gS=(0,sn.A)(["\n border: none;\n "])))}),Fl,mn.hs.space(-2),mn.hs.space(-1.7),mn.hs.space(-2),mn.hs.space(-1),mn.t7.radii("form"),mn.t7.color("paper"),mn.hs.space(-1),mn.hs.space(-1),mn.hs.space(-.5),mn.hs.space(-1));function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bS={currentlyDragging:null,currentlyDragOver:null,horizontalDropPosition:null,verticalDropPosition:null,offsetX:null,offsetY:null},wS={Left:"Left",Right:"Right"},OS={Top:"Top",Bottom:"Bottom"},xS=function(e,t,n){var r=e.clientX-t>0,o=e.clientY-n>0;return{horizontal:r?wS.Right:wS.Left,vertical:o?OS.Bottom:OS.Top}};const kS=function(e){var t=(0,tt.useState)(bS),n=(0,En.A)(t,2),r=n[0],o=n[1],i=r.currentlyDragging,a=r.currentlyDragOver,s=r.horizontalDropPosition,c=r.verticalDropPosition,u=r.offsetX,l=r.offsetY;return{dndEvents:(0,tt.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return vS(vS({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o(bS),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(i&&!Ao()(a,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.x+n.width/2,s=n.y+n.height/2,c=xS(e,r,s),u=c.horizontal,l=c.vertical;o((function(e){return vS(vS({},e),{},{currentlyDragOver:t,offsetX:r,offsetY:s,horizontalDropPosition:u,verticalDropPosition:l})}))}e.stopPropagation()},onDragOver:function(e){if(i&&Ao()(a,t)){var n=xS(e,u,l),r=n.horizontal,s=n.vertical;return o((function(e){return vS(vS({},e),{},{horizontalDropPosition:r,verticalDropPosition:s})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){i&&a&&(e(i,a,s,c),o(bS),t.stopPropagation())}}}),[a,i,s,c,u,l,e]),dndState:(0,tt.useMemo)((function(){return{currentlyDragOver:a,currentlyDragging:i,horizontalDropPosition:s,verticalDropPosition:c,offsetX:u,offsetY:l}}),[a,i,s,c,u,l])}},SS=wS;var ES,jS,DS,PS,_S,AS,TS,CS=un.Ay.div.withConfig({displayName:"StyledColumnPickerWrapper"})(ES||(ES=(0,sn.A)(["\n padding-right: 3px; // make sure drop indicator does not overlap outer elements on the right most side\n"]))),MS=un.Ay.div.withConfig({displayName:"StyledControlsWrapper"})(jS||(jS=(0,sn.A)(["\n margin-left: 3px; // rest of checkboxes are moved 3px to the right to make room for drop indicator\n margin-top: ",";\n"])),mn.hs.space(.7)),IS=un.Ay.ul.withConfig({displayName:"StyledUl"})(DS||(DS=(0,sn.A)(["\n list-style-type: none;\n margin-top: "," !important; // Nice2 Reset\n margin-left: 3px; // make room for drop indicator when it appears on the left-most side\n padding-left: 0 !important; // Nice2 Reset\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n\n "," {\n padding: 0 !important; // Nice2 Reset\n }\n"])),mn.hs.space(-.5),No.Gw),NS=un.Ay.input.withConfig({displayName:"StyledCheckbox"})(PS||(PS=(0,sn.A)(["\n vertical-align: top;\n margin-right: "," !important; // Nice2 Reset\n\n &:hover {\n cursor: pointer;\n }\n"])),mn.hs.space(-1)),FS=un.Ay.span.withConfig({displayName:"StyledId"})(_S||(_S=(0,sn.A)(["\n color: ",";\n font-style: italic;\n"])),mn.t7.color("text")),RS=(0,un.Ay)(No.vx).withConfig({displayName:"StyledItem"})(AS||(AS=(0,sn.A)(["\n display: flex;\n padding: "," "," "," 0;\n box-sizing: border-box;\n // when border appears, the content moves over by the width of the border, so we move the content back the same width\n margin-left: ",";\n border-left: ",";\n border-right: ",";\n ","\n"])),mn.hs.space(-2),mn.hs.space(-2),mn.hs.space(-2),(function(e){return e.dropPosition===SS.Left?"-3px":"0"}),(function(e){var t=e.dropPosition,n=e.theme;return t===SS.Left?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.dropPosition,n=e.theme;return t===SS.Right?"3px solid ".concat(n.colors.secondary):"none"}),(function(e){var t=e.draggable,n=e.theme;return t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n &,\n label {\n cursor: pointer;\n }\n }\n ")})),LS=un.Ay.span.withConfig({displayName:"StyledNumber"})(TS||(TS=(0,sn.A)(["\n display: inline-block;\n margin-right: ",";\n color: ",";\n font-size: ",";\n"])),mn.hs.space(-1),mn.t7.color("text"),mn.hs.font(0));function HS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var BS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden";return e.sort((function(e,n){return e[t]-n[t]}))},VS=function(e,t){return e.filter((function(e){return null===t||e.label.match(new RegExp(t,"i"))}))};const US=function(e){var t=e.dndEnabled,n=e.columns,r=void 0===n?[]:n,o=e.onColumnsChange,i=e.intl,a=BS(r),s=(0,tt.useState)(null),c=(0,En.A)(s,2),u=c[0],l=c[1],d=(0,tt.useCallback)((function(e,t,n){if(e!==t){var r=a.find((function(t){return t.id===e}));o((function(e){return e.filter((function(e){return e!==r})).reduce((o=r,i=t,a=n,function(e,t){if(t.id===i){if(a===SS.Left)return[].concat((0,hr.A)(e),[o,t]);if(a===SS.Right)return[].concat((0,hr.A)(e),[t,o])}return[].concat((0,hr.A)(e),[t])}),[]);var o,i,a}))}}),[a,o]),f=kS(d),p=f.dndEvents,h=f.dndState,m=(0,tt.useMemo)((function(){return VS(a,u)}),[a,u]),g=m.some((function(e){return e.hidden})),y=(0,tt.useMemo)((function(){return m.map((function(e,n){var r=h.currentlyDragOver===e.id&&h.currentlyDragging!==e.id;return(0,wn.jsxs)(RS,WS(WS({draggable:t,dropPosition:r&&h.horizontalDropPosition},t&&WS({},p(e.id))),{},{children:[(0,wn.jsx)(NS,{type:"checkbox",id:e.id,checked:!e.hidden,onChange:function(t){o((function(n){return BS(n.map((function(n){return n.id===e.id?WS(WS({},n),{},{hidden:!t.target.checked}):n})))}))}}),(0,wn.jsxs)(No.Ay.Label,{for:e.id,children:[(0,wn.jsxs)(LS,{children:[n+1,"."]}),e.label?(0,wn.jsx)("span",{dangerouslySetInnerHTML:{__html:jo.sanitizeHtml(e.label)}}):(0,wn.jsx)(FS,{children:e.id})]})]}),e.id)}))}),[h,t,p,m,o]);return(0,wn.jsxs)(CS,{children:[(0,wn.jsx)(uS,{placeholder:i.formatMessage({id:"client.entity-list.preferences.columns.search"}),onSearch:l}),(0,wn.jsxs)(MS,{children:[(0,wn.jsx)(NS,{type:"checkbox",onChange:function(e){var t=e.target.checked;o((function(e){var n=VS(e,u);return BS((0,hr.A)(e.map((function(e){return WS(WS({},e),{},{hidden:n.includes(e)?!t:e.hidden})}))))}))},checked:!g}),(0,wn.jsx)(No.Ay.Span,{children:i.formatMessage({id:"client.entity-list.preferences.columns.selectDeselectAllCheckbox"})})]}),(0,wn.jsx)(IS,{children:y})]})},zS=(0,pr.injectIntl)(US);function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YS(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var GS="yyyy-MM-dd",KS=function(e){return(0,_d.uv4)(e,GS)?(0,_d.qgA)(e,GS,new Date):(0,_d.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,_d.uv4)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?(0,_d.ol1)(new Date(e)):null},$S={datetime:{type:"date",toRange:function(e){return{from:e?KS(e).toISOString():null,to:e?(0,_d.fij)(KS(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,_d.GPZ)(new Date(e.from),GS):null!=e&&e.to?(0,_d.GPZ)(new Date(e.to),GS):null},getToOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return qS(qS({},e),{},{datePickerOptions:qS({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};const QS=$S;var XS,ZS,JS,eE,tE,nE=un.Ay.div.withConfig({displayName:"StyledIconWrapper"})(XS||(XS=(0,sn.A)(["\n font-size: ",";\n color: ",";\n"])),mn.hs.font(-2.7),mn.t7.color("text")),rE=un.Ay.div.withConfig({displayName:"StyledRange"})(ZS||(ZS=(0,sn.A)(["\n display: flex;\n align-items: baseline;\n width: 100%;\n"]))),oE=un.Ay.div.withConfig({displayName:"StyledInput"})(JS||(JS=(0,sn.A)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),iE=(0,un.Ay)(cr).withConfig({displayName:"StyledBall"})(eE||(eE=(0,sn.A)(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function aE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aE(Object(n),!0).forEach((function(t){(0,et.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const cE=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,i=e.options,a=e.fromText,s=e.toText,c=QS[o],u=(null==t?void 0:t.isRangeValue)||!1,l=(0,tt.useRef)(t);l.current=t;var d=(0,tt.useMemo)((function(){return sE(sE({},n),{},{onChange:n.onChange})}),[n]),f={onChange:function(e){n.onChange(sE(sE({},l.current),{},{to:e}))}},p={onChange:function(e){n.onChange(sE(sE({},l.current),{},{from:e}))}},h=(null==c?void 0:c.type)||o,m=(0,wn.jsx)(jw,sE(sE({type:h},pi()(e,["type"])),{},{events:d})),g=(0,wn.jsxs)(oE,{children:[(0,wn.jsx)(jw,sE(sE({},e),{},{options:function(e,t){return null!=c&&c.getFromOptions?c.getFromOptions(e,t):e}(i,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:p,placeholder:a})),tE||(tE=(0,wn.jsx)(nE,{children:(0,wn.jsx)(bn.A,{icon:"horizontal-rule"})})),(0,wn.jsx)(jw,sE(sE({},e),{},{options:function(e,t){return null!=c&&c.getToOptions?c.getToOptions(e,t):e}(i,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:f,placeholder:s}))]});return(0,wn.jsxs)(rE,{children:[u?g:m,(0,wn.jsx)(iE,{disabled:r,icon:u?"square-minus":"square-plus",onClick:function(){var e=u?function(e){return null!=c&&c.fromRange?c.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=c&&c.toRange?c.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};var uE,lE,dE,fE,pE,hE=un.Ay.div.withConfig({displayName:"StyledBurgerButton"})(uE||(uE=(0,sn.A)(["\n width: 24px;\n height: 24px;\n position: absolute;\n left: 17px;\n top: 12px;\n z-index: 4; // higher than StyledHeader to enable interactions\n transform: rotate(0deg);\n transition: 0.5s ease-in-out;\n cursor: pointer;\n\n span {\n display: block;\n position: absolute;\n height: 2px;\n width: 100%;\n background: ",";\n opacity: 1;\n left: 0;\n transform: rotate(0deg);\n transition: 0.25s ease-in-out;\n\n &:nth-child(1) {\n top: 0;\n transform-origin: left center;\n }\n\n &:nth-child(2) {\n top: 6.5px;\n transform-origin: left center;\n }\n\n &:nth-child(3) {\n top: 13.5px;\n transform-origin: left center;\n }\n }\n ","\n"])),mn.t7.color("backgroundBurgerMenuBars"),(function(e){return e.isOpen&&(0,un.AH)(lE||(lE=(0,sn.A)(["\n span:nth-child(1) {\n transform: rotate(45deg);\n top: -3px;\n left: 0;\n }\n\n span:nth-child(2) {\n width: 0;\n opacity: 0;\n }\n\n span:nth-child(3) {\n transform: rotate(-45deg);\n top: 14.3px;\n left: 0;\n }\n "])))}));(0,pr.injectIntl)((function(e){var t,n=e.isOpen,r=e.intl,o=e.toggleMenu;return(0,wn.jsxs)(hE,{id:"burger-button",isOpen:n,"aria-label":(t="client.component.burgerButton.Label",r.formatMessage({id:t})),onClick:o,children:[dE||(dE=(0,wn.jsx)("span",{})),fE||(fE=(0,wn.jsx)("span",{})),pE||(pE=(0,wn.jsx)("span",{}))]})}));var mE,gE,yE=un.Ay.div.withConfig({displayName:"StyledPagination"})(mE||(mE=(0,sn.A)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),mn.hs.space(-1),mn.hs.space(-1.4)),vE=(0,un.Ay)(er).withConfig({displayName:"StyledPaginationButton"})(gE||(gE=(0,sn.A)(["\n padding: "," ",";\n"])),mn.hs.space(-2),mn.hs.space(-.5));const bE=(0,pr.injectIntl)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,i=e.intl,a=e.tableEl,s=e.children,c=Math.ceil(t/n),u=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),d=function(e){return i.formatMessage({id:e})},f=function(e){o(e),a.current.scrollTop=0};return(0,wn.jsxs)(yE,{children:[(0,wn.jsxs)(di,{children:[(0,wn.jsx)(vE,{disabled:1===r,label:d("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return f(1)}}),(0,wn.jsx)(vE,{disabled:1===r,label:d("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return f(r-1)}}),(0,wn.jsx)(vE,{disabled:r>=c,label:d("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return f(r+1)}}),(0,wn.jsx)(vE,{disabled:r>=c,label:d("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return f(c)}})]}),t>0&&(0,wn.jsx)(No.Ay.Span,{children:(0,wn.jsx)(pr.FormattedMessage,{id:"client.component.pagination.text",values:{start:u,to:l,total:t}})}),s]})})),wE=bE;var OE;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,d;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=s.getTotalBits(e,l);if(o<=r){d=o;break}if(l>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(l,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,u=Math.floor(s/o);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),l.push(o.concat(i))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(OE||(OE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(OE||(OE={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(OE||(OE={}));var xE=OE;
|
|
79
79
|
/**
|
|
80
80
|
* @license qrcode.react
|
|
81
81
|
* Copyright (c) Paul O'Shannessy
|