1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888,490],{73606:function(e,t,r){"use strict";t.St=t.dr=void 0;let n=r(38428),o=n.__importStar(r(95933));Object.defineProperty(t,"dr",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"St",{enumerable:!0,get:function(){return o.UserContext}}),n.__importDefault(r(34519))},80489:function(e,t,r){"use strict";var n=r(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.useConfig=void 0;let o=r(38428).__importStar(r(67294)),i=(0,o.createContext)({});t.useConfig=()=>(0,o.useContext)(i),t.default=({children:e,loginUrl:t=n.env.NEXT_PUBLIC_AUTH0_LOGIN||"/api/auth/login"})=>o.default.createElement(i.Provider,{value:{loginUrl:t}},e)},95933:function(e,t,r){"use strict";var n=r(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=t.UserContext=t.RequestError=void 0;let o=r(38428),i=o.__importStar(r(67294)),a=o.__importDefault(r(80489));class s extends Error{constructor(e){super(),this.status=e,Object.setPrototypeOf(this,s.prototype)}}t.RequestError=s;let c="You forgot to wrap your app in <UserProvider>";t.UserContext=(0,i.createContext)({get user(){throw Error(c)},get error(){throw Error(c)},get isLoading(){throw Error(c)},checkSession:()=>{throw Error(c)}}),t.useUser=()=>(0,i.useContext)(t.UserContext);let u=async e=>{let t;try{t=await fetch(e)}catch(e){throw new s(0)}if(204!=t.status){if(t.ok)return t.json();throw new s(t.status)}};t.default=({children:e,user:r,profileUrl:o=n.env.NEXT_PUBLIC_AUTH0_PROFILE||"/api/auth/me",loginUrl:s,fetcher:c=u})=>{let[l,f]=(0,i.useState)({user:r,isLoading:!r}),p=(0,i.useCallback)(async()=>{try{let e=await c(o);f(t=>Object.assign(Object.assign({},t),{user:e,error:void 0}))}catch(e){f(t=>Object.assign(Object.assign({},t),{error:e}))}},[o]);(0,i.useEffect)(()=>{l.user||(async()=>{await p(),f(e=>Object.assign(Object.assign({},e),{isLoading:!1}))})()},[l.user]);let{user:d,error:h,isLoading:y}=l,m=(0,i.useMemo)(()=>({user:d,error:h,isLoading:y,checkSession:p}),[d,h,y,p]);return i.default.createElement(a.default,{loginUrl:s},i.default.createElement(t.UserContext.Provider,{value:m},e))}},34519:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(38428).__importStar(r(67294)),o=r(80489),i=r(95933),a=()=>n.default.createElement(n.default.Fragment,null),s=()=>n.default.createElement(n.default.Fragment,null);t.default=(e,t={})=>function(r){let{returnTo:c,onRedirecting:u=a,onError:l=s}=t,{loginUrl:f}=(0,o.useConfig)(),{user:p,error:d,isLoading:h}=(0,i.useUser)();return((0,n.useEffect)(()=>{let e;if((!p||d)&&!h){if(c)e=c;else{let t=window.location.toString();e=t.replace(new URL(t).origin,"")||"/"}window.location.assign(`${f}?returnTo=${encodeURIComponent(e)}`)}},[p,d,h]),d)?l(d):p?n.default.createElement(e,Object.assign({user:p},r)):u()}},38428:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return _},__asyncGenerator:function(){return x},__asyncValues:function(){return P},__await:function(){return j},__awaiter:function(){return h},__classPrivateFieldGet:function(){return N},__classPrivateFieldIn:function(){return I},__classPrivateFieldSet:function(){return T},__createBinding:function(){return m},__decorate:function(){return s},__esDecorate:function(){return u},__exportStar:function(){return g},__extends:function(){return o},__generator:function(){return y},__importDefault:function(){return C},__importStar:function(){return k}
1,__makeTemplateObject:function(){return E},__metadata:function(){return d},__param:function(){return c},__propKey:function(){return f},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return p},__spread:function(){return w},__spreadArray:function(){return S},__spreadArrays:function(){return O},__values:function(){return v}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var h={};for(var y in n)h[y]="access"===y?{}:n[y];for(var y in n.access)h.access[y]=n.access[y];h.addInitializer=function(e){if(p)throw TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[d])("accessor"===c?{get:f.get,set:f.set}:f[u],h);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(s=a(m.get))&&(f.get=s),(s=a(m.set))&&(f.set=s),(s=a(m.init))&&o.push(s)}else(s=a(m))&&("field"===c?o.push(s):f[u]=s)}l&&Object.defineProperty(l,n.name,f),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function y(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=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++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).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],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);
1(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function O(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function S(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function j(e){return this instanceof j?(this.v=e,this):new j(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof j?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:j(e[n](t)),done:!1}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return A(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},51446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(92717),o=r(17658),i=r(94079),a=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,o.isEmptyData)(e)||this.crc32.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,(0,o.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new i.Crc32},e}();t.AwsCrc32=a},94079:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(92717),o=r(17658);t.crc32=function(e){return new i().update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var o=n.__values(e),i=o.next();!i.done;i=o.next()){var s=i.value;this.checksum=this.checksum>>>8^a[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var a=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=r(51446);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},92717:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j}
1,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},48260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16665:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35470:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if("MSInputMethodContext"in e&&"msCrypto"in e&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,o=t.subtle;return r.map(function(e){return o[e]}).concat(n).every(function(e){return"function"==typeof e})}return!1}},40087:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11980);n.__exportStar(r(48260),t),n.__exportStar(r(16665),t),n.__exportStar(r(35470),t),n.__exportStar(r(30969),t),n.__exportStar(r(55287),t)},11980:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j}
1,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},57333:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},52769:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(63479),o=r(38889),i=r(41938),a=r(21),s=r(40087),c=r(56495),u=r(17658),l=function(){function e(e){(0,a.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new o.Sha256(e):(0,s.isMsWindow)((0,c.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new i.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,u.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();t.Sha256=l},63479:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(38036),o=r(57333),i=r(19193),a=r(56495),s=function(){function e(e){this.secret=e,this.reset()}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then(function(r){return r.onerror=function(){t.operation=Promise.reject(Error("Error encountered updating hash"))},r.process(c(e)),r}),this.operation.catch(function(){}))},e.prototype.digest=function(){return this.operation.then(function(e){return new Promise(function(t,r){e.onerror=function(){r(Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(Error("Error encountered finalizing hash"))},e.finish()})})},e.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise(function(t,r){var n=(0,a.locateWindow)().msCrypto.subtle.importKey("raw",c(e),o.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(Error("ImportKey completed without importing key."))},n.onerror=function(){r(Error("ImportKey failed to import key."))}})).then(function(e){return(0,a.locateWindow)().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,e)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,a.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();function c(e){return"string"==typeof e?(0,i.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},77643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,r(75789).__exportStar(r(52769),t);var n=r(63479);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var o=r(38889);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return o.Sha256}})},38036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},38889:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(17658),o=r(57333),i=r(56495),a=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return(0,i.locateWindow)().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then(function(e){return new Uint8Array(e)})}):(0,n.isEmptyData)(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,i.locateWindow)().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){(0,i.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e.secret),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)}
1),this.key.catch(function(){}))},e}();t.Sha256=a},75789:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j},__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},10914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(89945),o=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var o=this.bufferLength;o<n.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<n.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(n.DIGEST_LENGTH),o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=0;f<n.BLOCK_SIZE;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var p=this.temp[f-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[f]=(d+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var y=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&u)|0)+(l+(n.KEY[f]+this.temp[f]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;l=u,u=c,c=s,s=a+y|0,a=i,i=o,o=r,r=y+m|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},89945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=9007199254740991},41938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(73541).__exportStar(r(65430),t)},65430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(73541),o=r(89945),i=r(10914),a=r(17658),s=function(){function e(e){this.secret=e,this.hash=new i.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new i.RawSha256,this.secret){this.outer=new i.RawSha256;var e=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var r=new i.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(o.BLOCK_SIZE);t.set(e);for(var r=0;r<o.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}();t.Sha256=s},73541:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j}
1,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},21:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(57840).__exportStar(r(97787),t)},97787:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r(57840),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function i(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function a(e){return e&&o.every(function(t){return"function"==typeof e[t]})}t.supportsWebCrypto=function(e){return!!i(e)&&"object"==typeof e.crypto.subtle&&a(e.crypto.subtle)},t.supportsSecureRandom=i,t.supportsSubtleCrypto=a,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(r){switch(r.label){case 0:if(!a(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}})})}},57840:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j}
1,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},51106:function(e,t,r){"use strict";var n=r(48764).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var o=r(19193),i=void 0!==n&&n.from?function(e){return n.from(e,"utf8")}:o.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},17658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(51106);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var o=r(84304);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=r(22174);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var a=r(81558);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},84304:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},22174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},81558:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},5031:function(e,t,r){"use strict";r.r(t),r.d(t,{fromCognitoIdentity:function(){return oF},fromCognitoIdentityPool:function(){return oz},fromTemporaryCredentials:function(){return am},fromWebToken:function(){return ax}});var n,o,i,a,s,c,u,l,f,p,d,h,y,m,g,v,b,w,O,S={};r.r(S),r.d(S,{getUserAgentPrefix:function(){return e5},isVirtualHostableS3Bucket:function(){return ti},parseArn:function(){return ta},partition:function(){return e8},setPartitionInfo:function(){return e6},useDefaultPartitionInfo:function(){return e4}});var j={};r.r(j),r.d(j,{aws:function(){return S},booleanEquals:function(){return ts},getAttr:function(){return tu},isSet:function(){return tl},isValidHostLabel:function(){return to},not:function(){return tf},parseURL:function(){return td},stringEquals:function(){return th},substring:function(){return ty},uriEncode:function(){return tm}}),(n=p||(p={})).HEADER="header",n.QUERY="query",(o=d||(d={})).HTTP="http",o.HTTPS="https",(i=h||(h={})).MD5="md5",i.CRC32="crc32",i.CRC32C="crc32c",i.SHA1="sha1",i.SHA256="sha256";let x=e=>{let t=[];return void 0!==e.sha256&&t.push({algorithmId:()=>h.SHA256,checksumConstructor:()=>e.sha256}),void 0!=e.md5&&t.push({algorithmId:()=>h.MD5,checksumConstructor:()=>e.md5}),{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},_=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t},P=e=>({...x(e)}),E=e=>({..._(e)});(a=y||(y={}))[a.HEADER=0]="HEADER",a[a.TRAILER=1]="TRAILER",(s=m||(m={})).HTTP_0_9="http/0.9",s.HTTP_1_0="http/1.0",s.TDS_8_0="tds/8.0";class A{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers}clone(){var e;let t=new A({...this,headers:{...this.headers}});return t.query&&(t.query=Object.keys(e=t.query).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})),t}}class k{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers}}let C=e=>t=>async r=>{if(!A.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]="";else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)},N={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},T=e=>({applyToStack:t=>{t.add(C(e),N)}}),I=()=>(e,t)=>async r=>{try{let n=await e(r),{clientName:o,commandName:i,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=s,l=c??t.inputFilterSensitiveLog,f=u??t.outputFilterSensitiveLog,{$metadata:p,...d}=n.output;return a?.info?.({clientName:o,commandName:i,input:l(r.input),output:f(d),metadata:p}),n}catch(c){let{clientName:e,commandName:n,logger:o,dynamoDbDocumentClientOptions:i={}}=t,{overrideInputFilterSensitiveLog:a}=i,s=a??t.inputFilterSensitiveLog;throw o?.error?.({clientName:e,commandName:n,input:s(r.input),error:c,metadata:c.$metadata}),c}},R={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},L=e=>({applyToStack:e=>{e.add(I(),R)}});var D=r(34155);let M="X-Amzn-Trace-Id",F=e=>t=>async r=>{let n;let{request:o}=r;if(!A.isInstance(o)||"node"!==e.runtime||o.headers.hasOwnProperty(M))return t(r);let i=D.env.AWS_LAMBDA_FUNCTION_NAME,a=D.env._X_AMZN_TRACE_ID;return"string"==typeof i&&i.length>0&&"string"==typeof(n=a)&&n.length>0&&(o.headers[M]=a),t({...r,request:o})},U={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Z=e=>({applyToStack:t=>{t.add(F(e),U)}});
1class B extends Error{constructor(e,t=!0){super(e),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,B.prototype)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}class $ extends B{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}}let G=(e,t,r)=>{let n,o,i;let a=!1,s=async()=>{o||(o=e());try{n=await o,i=!0,a=!1}finally{o=void 0}return n};return void 0===t?async e=>((!i||e?.forceRefresh)&&(n=await s()),n):async e=>((!i||e?.forceRefresh)&&(n=await s()),a||(r&&!r(n)?a=!0:t(n)&&await s()),n)};r(94079);let z={},q={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),z[e]=t,q[t]=e}function H(e){let t="";for(let r=0;r<e.byteLength;r++)t+=z[e[r]];return t}class V{constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x7fffffffffffffff||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&W(t),new V(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&W(e),parseInt(H(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function W(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class K{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let r of Object.keys(e)){let n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),n=0;for(let e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(a,3),c;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(V.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ei.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in q)t[r/2]=q[n];else throw Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){let t={},r=0;for(;r<e.byteLength;){let n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:Y,value:!0};break;case 1:t[o]={type:Y,value:!1};break;case 2:t[o]={type:Q,value:e.getInt8(r++)};break;case 3:t[o]={type:X,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:J,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:ee,value:new V(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let i=e.getUint16(r,!1);r+=2,t[o]={type:et,value:new Uint8Array(e.buffer,e.byteOffset+r,i)},r+=i;break;case 7:let a=e.getUint16(r,!1);r+=2,t[o]={type:er,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,a))},r+=a;break;case 8:t[o]={type:en,value:new Date(new V(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:eo,value:`${H(s.subarray(0,4))}-${H(s.subarray(4,6))}-${H(s.subarray(6,8))}-${H(s.subarray(8,10))}-${H(s.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}(c=g||(g={}))[c.boolTrue=0]="boolTrue",c[c.boolFalse=1]="boolFalse",c[c.byte=2]="byte",c[c.short=3]="short",c[c.integer=4]="integer",c[c.long=5]="long",c[c.byteArray=6]="byteArray",c[c.string=7]="string",c[c.timestamp=8]="timestamp",c[c.uuid=9]="uuid";let Y="boolean",Q="byte",X="short",J="integer",ee="long",et="binary",er="string",en="timestamp",eo="uuid",ei=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,ea=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},es=e=>new TextDecoder("utf-8").decode(e),ec=e=>
1new TextEncoder().encode(e),eu=e=>"string"==typeof e?ec(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),el="X-Amz-Date",ef="X-Amz-Signature",ep="X-Amz-Security-Token",ed="authorization",eh=el.toLowerCase(),ey=[ed,eh,"date"],em=ef.toLowerCase(),eg="x-amz-content-sha256",ev=ep.toLowerCase(),eb={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},ew=/^proxy-/,eO=/^sec-/,eS="AWS4-HMAC-SHA256",ej="aws4_request",ex={},e_=[],eP=(e,t,r)=>`${e}/${t}/${r}/${ej}`,eE=async(e,t,r,n,o)=>{let i=await eA(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${o}:${H(i)}:${t.sessionToken}`;if(a in ex)return ex[a];for(e_.push(a);e_.length>50;)delete ex[e_.shift()];let s=`AWS4${t.secretAccessKey}`;for(let t of[r,n,o,ej])s=await eA(e,s,t);return ex[a]=s},eA=(e,t,r)=>{let n=new e(t);return n.update(eu(r)),n.digest()},ek=({headers:e},t,r)=>{let n={};for(let o of Object.keys(e).sort()){if(void 0==e[o])continue;let i=o.toLowerCase();(!(i in eb||t?.has(i)||ew.test(i)||eO.test(i))||r&&(!r||r.has(i)))&&(n[i]=e[o].trim().replace(/\s+/g," "))}return n},eC=e=>encodeURIComponent(e).replace(/[!'()*]/g,eN),eN=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,eT=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===em)continue;t.push(n);let o=e[n];"string"==typeof o?r[n]=`${eC(n)}=${eC(o)}`:Array.isArray(o)&&(r[n]=o.slice(0).reduce((e,t)=>e.concat([`${eC(n)}=${eC(t)}`]),[]).sort().join("&"))}return t.map(e=>r[e]).filter(e=>e).join("&")},eI=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),eR=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===eg)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||eI(t)){let e=new r;return e.update(eu(t)),H(await e.digest())}return"UNSIGNED-PAYLOAD"},eL=(e,t)=>{for(let r of(e=e.toLowerCase(),Object.keys(t)))if(e===r.toLowerCase())return!0;return!1},eD=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?eM(t):void 0}),eM=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{}),eF=(e,t={})=>{let{headers:r,query:n={}}="function"==typeof e.clone?e.clone():eD(e);for(let e of Object.keys(r)){let o=e.toLowerCase();"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}},eU=e=>{for(let t of Object.keys((e="function"==typeof e.clone?e.clone():eD(e)).headers))ey.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},eZ=e=>eB(e).toISOString().replace(/\.\d{3}Z$/,"Z"),eB=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?new Date(Number(e)?1e3*Number(e):e):e;class e${constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new K(es,ec),this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=ea(r),this.credentialProvider=ea(t)}async presign(e,t={}
1){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:s,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let l=s??await this.regionProvider(),{longDate:f,shortDate:p}=eG(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let d=eP(p,l,c??this.service),h=eF(eU(e),{unhoistableHeaders:i});u.sessionToken&&(h.query[ep]=u.sessionToken),h.query["X-Amz-Algorithm"]=eS,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${d}`,h.query[el]=f,h.query["X-Amz-Expires"]=n.toString(10);let y=ek(h,o,a);return h.query["X-Amz-SignedHeaders"]=ez(y),h.query[ef]=await this.getSignature(f,d,this.getSigningKey(u,l,p,c),this.createCanonicalRequest(h,y,await eR(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){let a=o??await this.regionProvider(),{shortDate:s,longDate:c}=eG(r),u=eP(s,a,i??this.service),l=await eR({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=["AWS4-HMAC-SHA256-PAYLOAD",c,u,n,H(await f.digest()),l].join("\n");return this.signString(p,{signingDate:r,signingRegion:a,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let i=r??await this.regionProvider(),{shortDate:a}
1=eG(t),s=new this.sha256(await this.getSigningKey(o,i,a,n));return s.update(eu(e)),H(await s.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let s=o??await this.regionProvider(),c=eU(e),{longDate:u,shortDate:l}=eG(t),f=eP(l,s,i??this.service);c.headers[eh]=u,a.sessionToken&&(c.headers[ev]=a.sessionToken);let p=await eR(c,this.sha256);!eL(eg,c.headers)&&this.applyChecksum&&(c.headers[eg]=p);let d=ek(c,n,r),h=await this.getSignature(u,f,this.getSigningKey(a,s,l,i),this.createCanonicalRequest(c,d,p));return c.headers[ed]=`${eS} Credential=${a.accessKeyId}/${f}, SignedHeaders=${ez(d)}, Signature=${h}`,c}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method} 2${this.getCanonicalPath(e)} 3${eT(e)} 4${n.map(e=>`${e}:${t[e]}`).join("\n")} 5 6${n.join(";")} 7${r}`}async createStringToSign(e,t,r){let n=new this.sha256;n.update(eu(r));let o=await n.digest();return`${eS} 8${e} 9${t} 10${H(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let r of e.split("/"))r?.length!==0&&"."!==r&&(".."===r?t.pop():t.push(r));return encodeURIComponent(`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){let o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(eu(o)),H(await i.digest())}getSigningKey(e,t,r,n){return eE(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}}let eG=e=>{let t=eZ(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},ez=e=>Object.keys(e).sort().join(";"),eq=e=>{let t;let r=e.credentials?eH(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;return t=e.signer?ea(e.signer):e.regionInfoProvider?()=>ea(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,o])=>{let{signingRegion:a,signingService:s}=t;e.signingRegion=e.signingRegion||a||o,e.signingName=e.signingName||s||e.serviceId;let c={...e,credentials:r,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};return new(e.signerConstructor||e$)(c)}):async t=>{let o=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await ea(e.region)(),properties:{}},t)).signingRegion,a=t.signingName;e.signingRegion=e.signingRegion||o,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:r,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};return new(e.signerConstructor||e$)(s)},{...e,systemClockOffset:o,signingEscapePath:n,credentials:r,signer:t}},eH=e=>"function"==typeof e?G(e,e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5,e=>void 0!==e.expiration):ea(e),eV=e=>new Date(Date.now()+e),eW=(e,t)=>Math.abs(eV(t).getTime()-e)>=3e5,eK=(e,t)=>{let r=Date.parse(e);return eW(r,t)?r-Date.now():t},eY=e=>(t,r)=>async function(n){if(!A.isInstance(n.request))return t(n);let o=r.endpointV2?.properties?.authSchemes?.[0],i=o?.name==="sigv4a"?o?.signingRegionSet?.join(","):void 0,a=await e.signer(o),s=await t({...n,request:await a.sign(n.request,{signingDate:eV(e.systemClockOffset),signingRegion:i||r.signing_region,signingService:r.signing_service})}).catch(t=>{let r=t.ServerTime??eQ(t.$response);throw r&&(e.systemClockOffset=eK(r,e.systemClockOffset)),t}),c=eQ(s.response);return c&&(e.systemClockOffset=eK(c,e.systemClockOffset)),s},eQ=e=>k.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,eX={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},eJ=e=>({applyToStack:t=>{t.addRelativeTo(eY(e),eX)}});function e0(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}var e1=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regi
10ons":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');let e2=e1,e3="",e8=e=>{let{partitions:t}=e2;for(let r of t){let{regions:t,outputs:n}=r;for(let[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(let r of t){let{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}let r=t.find(e=>"aws"===e.id);if(!r)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},e6=(e,t="")=>{e2=e,e3=t},e4=()=>{e6(e1,"")},e5=()=>e3,e7="endpoints";function e9(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${e9(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(e9).join(", ")})`:JSON.stringify(e,null,2)}
10class te extends Error{constructor(e){super(e),this.name="EndpointError"}}let tt=RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),tr=e=>tt.test(e)||e.startsWith("[")&&e.endsWith("]"),tn=RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),to=(e,t=!1)=>{if(!t)return tn.test(e);for(let t of e.split("."))if(!to(t))return!1;return!0},ti=(e,t=!1)=>{if(t){for(let t of e.split("."))if(!ti(t))return!1;return!0}return!(!to(e)||e.length<3||e.length>63||e!==e.toLowerCase()||tr(e))},ta=e=>{let t=e.split(":");if(t.length<6)return null;let[r,n,o,i,a,...s]=t;return"arn"!==r||""===n||""===o||""===s[0]?null:{partition:n,service:o,region:i,accountId:a,resourceId:s[0].includes("/")?s[0].split("/"):s}},ts=(e,t)=>e===t,tc=e=>{let t=e.split("."),r=[];for(let n of t){let t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new te(`Path: '${e}' does not end with ']'`);let o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new te(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r},tu=(e,t)=>tc(t).reduce((r,n)=>{if("object"!=typeof r)throw new te(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},e),tl=e=>null!=e,tf=e=>!e;(u=v||(v={})).AAAA="AAAA",u.A="A";let tp={[d.HTTP]:80,[d.HTTPS]:443},td=e=>{let t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){let{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,a=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return a.search=Object.entries(i).map(([e,t])=>`${e}=${t}`).join("&"),a}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:n,hostname:o,pathname:i,protocol:a,search:s}=t;if(s)return null;let c=a.slice(0,-1);if(!Object.values(d).includes(c))return null;let u=tr(o),l=r.includes(`${n}:${tp[c]}`)||"string"==typeof e&&e.includes(`${n}:${tp[c]}`),f=`${n}${l?`:${tp[c]}`:""}`;return{scheme:c,authority:f,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},th=(e,t)=>e===t,ty=(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),tm=e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),tg=(e,t)=>{let r=[],n={...t.endpointParams,...t.referenceRecord},o=0;for(;o<e.length;){let t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));let i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);let a=e.substring(t+1,i);if(a.includes("#")){let[e,t]=a.split("#");r.push(tu(n[e],t))}else r.push(n[a]);o=i+1}return r.join("")},tv=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],tb=(e,t,r)=>{if("string"==typeof e)return tg(e,r);if(e.fn)return tw(e,r);if(e.ref)return tv(e,r);throw new te(`'${t}': ${String(e)} is not a string, function or reference.`)},tw=({fn:e,argv:t},r)=>{let n=t.map(e=>["boolean","number"].includes(typeof e)?e:tb(e,"arg",r));return e.split(".").reduce((e,t)=>e[t],j)(...n)},tO=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new te(`'${e}' is already defined in Reference Record.`);let n=tw(t,r);return r.logger?.debug?.(e7,`evaluateCondition: ${e9(t)} = ${e9(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},tS=(e=[],t)=>{let r={};for(let n of e){let{result:e,toAssign:o}=tO(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(e7,`assign: ${o.name} := ${e9(o.value)}`))}return{result:!0,referenceRecord:r}},tj=(e,t)=>Object.entries(e).reduce((e,[r,n])=>({...e,[r]:n.map(e=>{let n=tb(e,"Header value entry",t);if("string"!=typeof n)throw new te(`Header '${r}' value '${n}' is not a string`);return n})}),{}),tx=(e,t)=>{if(Array.isArray(e))return e.map(e=>tx(e,t));switch(typeof e){case"string":return tg(e,t);case"object":if(null===e)throw new te(`Unexpected endpoint property: ${e}`);return t_(e,t);case"boolean":return e;default:throw new te(`Unexpected endpoint property type: ${typeof e}`)}},t_=(e,t)=>
10Object.entries(e).reduce((e,[r,n])=>({...e,[r]:tx(n,t)}),{}),tP=(e,t)=>{let r=tb(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new te(`Endpoint URL must be a string, got ${typeof r}`)},tE=(e,t)=>{let{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=tS(r,t);if(!o)return;let a={...t,referenceRecord:{...t.referenceRecord,...i}},{url:s,properties:c,headers:u}=n;return t.logger?.debug?.(e7,`Resolving endpoint from template: ${e9(n)}`),{...void 0!=u&&{headers:tj(u,a)},...void 0!=c&&{properties:t_(c,a)},url:tP(s,a)}},tA=(e,t)=>{let{conditions:r,error:n}=e,{result:o,referenceRecord:i}=tS(r,t);if(o)throw new te(tb(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},tk=(e,t)=>{let{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=tS(r,t);if(o)return tC(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},tC=(e,t)=>{for(let r of e)if("endpoint"===r.type){let e=tE(r,t);if(e)return e}else if("error"===r.type)tA(r,t);else if("tree"===r.type){let e=tk(r,t);if(e)return e}else throw new te(`Unknown endpoint rule: ${r}`);throw new te("Rules evaluation failed")},tN=(e,t)=>{let{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${e7} Initial EndpointParams: ${e9(r)}`);let a=Object.entries(o).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(a.length>0)for(let[e,t]of a)r[e]=r[e]??t;for(let e of Object.entries(o).filter(([,e])=>e.required).map(([e])=>e))if(null==r[e])throw new te(`Missing required parameter: '${e}'`);let s=tC(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{let{protocol:e,port:r}=new URL(t.endpointParams.Endpoint);s.url.protocol=e,s.url.port=r}catch(e){}return t.logger?.debug?.(`${e7} Resolved endpoint: ${e9(s)}`),s},tT="user-agent",tI="x-amz-user-agent",tR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,tL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,tD=e=>(t,r)=>async n=>{let{request:o}=n;if(!A.isInstance(o))return t(n);let{headers:i}=o,a=r?.userAgent?.map(tM)||[],s=(await e.defaultUserAgentProvider()).map(tM),c=e?.customUserAgent?.map(tM)||[],u=e5(),l=(u?[u]:[]).concat([...s,...a,...c]).join(" "),f=[...s.filter(e=>e.startsWith("aws-sdk-")),...c].join(" ");return"browser"!==e.runtime?(f&&(i[tI]=i[tI]?`${i[tT]} ${f}`:f),i[tT]=l):i[tI]=l,t({...n,request:o})},tM=e=>{let t=e[0].split("/").map(e=>e.replace(tR,"-")).join("/"),r=e[1]?.replace(tL,"-"),n=t.indexOf("/"),o=t.substring(0,n),i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},tF={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},tU=e=>({applyToStack:t=>{t.add(tD(e),tF)}});(l=b||(b={})).ENV="env",l.CONFIG="shared config entry";let tZ=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),tB=e=>tZ(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,t$=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw Error("Region is missing");return{...e,region:async()=>"string"==typeof t?tB(t):tB(await t()),useFipsEndpoint:async()=>!!tZ("string"==typeof t?t:await t())||("function"!=typeof r?Promise.resolve(!!r):r())}},tG="content-length",tz={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},tq=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{let n=t.request;if(A.isInstance(n)){let{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(tG))try{let t=r(e);n.headers={...n.headers,[tG]:String(t)}}catch(e){}}return e({...t,request:n})}),tz)}}),tH=(e,t)=>(r,n)=>async n=>{let{response:o}=await r(n);try{let r=await t(o,e);return{response:o,output:r}}catch(e){throw Object.defineProperty(e,"$response",{value:o}),"$metadata"in e||(e.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object."),e}},tV=(e,t)=>(r,n)=>async o=>{let i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw Error("No valid endpoint provider available.");let a=await t(o.input,{...e,endpoint:i});return r({...o,request:a})},tW={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tK={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function tY(e,t,r){return{applyToStack:n=>{n.add(tH(e,r),tW),n.add(tV(e,t),tK)}}}let tQ=async e=>{let t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),t2(t)){if(!0===e.ForcePathStyle)throw Error("Path-style addressing cannot be used with ARN buckets")}else t1(t)&&(-1===t.indexOf(".")||String(e.Endpoint).startsWith("http:"))&&t.toLowerCase()===t&&!(t.length<3)||(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP
10=!0),e},tX=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,tJ=/(\d+\.){3}\d+/,t0=/\.\./,t1=e=>tX.test(e)&&!tJ.test(e)&&!t0.test(e),t2=e=>{let[t,r,n,o,i,a]=e.split(":"),s="arn"===t&&e.split(":").length>=6,c=5===[t,r,n,i,a].filter(Boolean).length;if(s&&!c)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return"arn"===t&&!!r&&!!n&&!!i&&!!a},t3=(e,t,r)=>{let n=async()=>{let n=r[e]??r[t];return"function"==typeof n?n():n};return"endpoint"===e||"endpoint"===t?async()=>{let e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){let{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},t8=async(e,t,r,n)=>{let o=await t6(e,t,r);if("function"!=typeof r.endpointProvider)throw Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)},t6=async(e,t,r)=>{let n={},o=t?.getEndpointParameterInstructions?.()||{};for(let[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await t3(i.name,t,r)();break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await tQ(n),n},t4=({config:e,instructions:t})=>(r,n)=>async o=>{let i=await t8(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;let a=n.authSchemes?.[0];return a&&(n.signing_region=a.signingRegion,n.signing_service=a.signingName),r({...o})},t5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:tK.name},t7=(e,t)=>({applyToStack:r=>{r.addRelativeTo(t4({config:e,instructions:t}),t5)}}),t9=e=>{let t;if("string"==typeof e)return t9(new URL(e));let{hostname:r,pathname:n,port:o,protocol:i,search:a}=e;return a&&(t=function(e){let t={};if(e=e.replace(/^\?/,""))for(let r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(a)),{hostname:r,port:o?parseInt(o):void 0,protocol:i,path:n,query:t}},re=e=>"object"==typeof e?"url"in e?t9(e.url):e:t9(e),rt=e=>{let t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>re(await ea(r)()):void 0,o=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:ea(e.useDualstackEndpoint??!1),useFipsEndpoint:ea(e.useFipsEndpoint??!1)}};(f=w||(w={})).STANDARD="standard",f.ADAPTIVE="adaptive";let rr=w.STANDARD,rn=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ro=["TimeoutError","RequestTimeout","RequestTimeoutException"],ri=[500,502,503,504],ra=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],rs=e=>e.$metadata?.httpStatusCode===429||rn.includes(e.name)||e.$retryable?.throttling==!0,rc=e=>ro.includes(e.name)||ra.includes(e?.code||"")||ri.includes(e.$metadata?.httpStatusCode||0),ru=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!rc(e))return!0}return!1};class rl{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>setTimeout(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),rs(e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}
10calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=Math.floor(2*this.getCurrentTimeInSeconds())/2;if(this.requestCount++,e>this.lastTxRateBucket){let t=this.requestCount/(e-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=e}}getPrecise(e){return parseFloat(e.toFixed(8))}}let rf=()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}},rp=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class rd{constructor(e){this.maxAttempts=e,this.mode=w.STANDARD,this.capacity=500,this.retryBackoffStrategy=rf(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return rp({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){let r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);let n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,rp({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class rh{constructor(e,t){this.maxAttemptsProvider=e,this.mode=w.ADAPTIVE;let{rateLimiter:r}=t??{};this.rateLimiter=r??new rl,this.standardRetryStrategy=new rd(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}for(var ry=new Uint8Array(16),rm=/^(?:[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,rg=[],rv=0;rv<256;++rv)rg.push((rv+256).toString(16).substr(1));var rb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(rg[e[t+0]]+rg[e[t+1]]+rg[e[t+2]]+rg[e[t+3]]+"-"+rg[e[t+4]]+rg[e[t+5]]+"-"+rg[e[t+6]]+rg[e[t+7]]+"-"+rg[e[t+8]]+rg[e[t+9]]+"-"+rg[e[t+10]]+rg[e[t+11]]+rg[e[t+12]]+rg[e[t+13]]+rg[e[t+14]]+rg[e[t+15]]).toLowerCase();if(!("string"==typeof r&&rm.test(r)))throw TypeError("Stringified UUID is invalid");return r},rw=function(e,t,r){var n=(e=e||{}).random||(e.rng||function(){if(!O&&!(O="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(ry)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return rb(n)};let rO=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):"string"==typeof e?Error(e):Error(`AWS SDK error wrapper for ${e}`),rS=e=>{let{retryStrategy:t}=e,r=ea(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await ea(e.retryMode)()===w.ADAPTIVE?new rh(r):new rd(r))}},rj=e=>(t,r)=>async n=>{let o=await e.retryStrategy(),i=await e.maxAttempts();if(!rx(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),a=Error(),s=0,c=0,{request:u}=n;for(A.isInstance(u)&&(u.headers["amz-sdk-invocation-id"]=rw());;)try{A.isInstance(u)&&(u.headers["amz-sdk-request"]=`attempt=${s+1}; max=${i}`);let{response:r,output:a}=await t(n);return o.recordSuccess(e),a.$metadata.attempts=s+1,a.$metadata.totalRetryDelay=c,{response:r,output:a}}catch(n){let t=r_(n);a=rO(n);try{e=await o.refreshRetryTokenForRetry(e,t)}catch(e){throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=s+1,a.$metadata.totalRetryDelay=c,a}s=e.getRetryCount();let r=e.getRetryDelay();c+=r,await new Promise(e=>setTimeout(e,r))}}},rx=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,r_=e=>{let t={errorType:rP(e)},r=rk(e.$response);return r&&(t.retryAfterHint=r),t},rP=e=>rs(e)?"THROTTLING":rc(e)?"TRANSIENT":ru(e)?"SERVER_ERROR":"CLIENT_ERROR",rE={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},rA=e=>({applyToStack:t=>{t.add(rj(e),rE)}}),rk=e=>{if(!k.isInstance(e))return;let t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;let r=e.headers[t],n=Number(r);return new Date(Number.isNaN(n)?r:1e3*n)};class rC{trace(){}debug(){}info(){}warn(){}error(){}}let rN=()=>{let e=[],t=[],r=new Set,n=e=>e.sort((e,t)=>
10rT[t.step]-rT[e.step]||rI[t.priority||"normal"]-rI[e.priority||"normal"]),o=n=>{let o=!1,i=e=>!e.name||e.name!==n||(o=!0,r.delete(n),!1);return e=e.filter(i),t=t.filter(i),o},i=n=>{let o=!1,i=e=>e.middleware!==n||(o=!0,e.name&&r.delete(e.name),!1);return e=e.filter(i),t=t.filter(i),o},a=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r),s=e=>{let t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))}),t},c=(r=!1)=>{let o=[],i=[],a={};return e.forEach(e=>{let t={...e,before:[],after:[]};t.name&&(a[t.name]=t),o.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};t.name&&(a[t.name]=t),i.push(t)}),i.forEach(e=>{if(e.toMiddleware){let t=a[e.toMiddleware];if(void 0===t){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),n(o).map(s).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:o,override:i}=n,a={step:"initialize",priority:"normal",middleware:t,...n};if(o){if(r.has(o)){if(!i)throw Error(`Duplicate middleware name '${o}'`);let t=e.findIndex(e=>e.name===o),r=e[t];if(r.step!==a.step||r.priority!==a.priority)throw Error(`"${o}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by same-name middleware with ${a.priority} priority in ${a.step} step.`);e.splice(t,1)}r.add(o)}e.push(a)},addRelativeTo:(e,n)=>{let{name:o,override:i}=n,a={middleware:e,...n};if(o){if(r.has(o)){if(!i)throw Error(`Duplicate middleware name '${o}'`);let e=t.findIndex(e=>e.name===o),r=t[e];if(r.toMiddleware!==a.toMiddleware||r.relation!==a.relation)throw Error(`"${o}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by same-name middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(e,1)}r.add(o)}t.push(a)},clone:()=>a(rN()),use:e=>{e.applyToStack(u)},remove:e=>"string"==typeof e?o(e):i(e),removeByTag:n=>{let o=!1,i=e=>{let{tags:t,name:i}=e;return!(t&&t.includes(n))||(i&&r.delete(i),o=!0,!1)};return e=e.filter(i),t=t.filter(i),o},concat:e=>{let t=a(rN());return t.use(e),t},applyToStack:a,identify:()=>c(!0).map(e=>e.name+": "+(e.tags||[]).join(",")),resolve:(e,t)=>{for(let r of c().map(e=>e.middleware).reverse())e=r(e,t);return e}};return u},rT={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},rI={high:3,normal:2,low:1};class rR{constructor(e){this.middlewareStack=rN(),this.config=e}send(e,t,r){let n="function"==typeof t?t:r,o=e.resolveMiddleware(this.middlewareStack,this.config,"function"!=typeof t?t:void 0);if(!n)return o(e).then(e=>e.output);o(e).then(e=>n(null,e.output),e=>n(e)).catch(()=>{})}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}let rL={},rD=Array(64);for(let e=0;e+65<=90;e++){let t=String.fromCharCode(e+65);rL[t]=e,rD[e]=t}for(let e=0;e+97<=122;e++){let t=String.fromCharCode(e+97),r=e+26;rL[t]=r,rD[r]=t}for(let e=0;e<10;e++){rL[e.toString(10)]=e+52;let t=e.toString(10),r=e+52;rL[t]=r,rD[r]=t}rL["+"]=62,rD[62]="+",rL["/"]=63,rD[63]="/";let rM=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;let r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in rL))throw TypeError(`Invalid character ${e[n]} in base64 string.`);r|=rL[e[n]]<<(i-n)*6,o+=6}else r>>=6;let i=t/4*3;r>>=o%8;let a=Math.floor(o/8);for(let e=0;e<a;e++){let t=(a-e-1)*8;n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)};function rF(e){let t="";for(let r=0;r<e.length;r+=3){let n=0,o=0;for(let t=r,i=Math.min(r+3,e.length);t<i;t++)n|=e[t]<<(i-t-1)*8,o+=8;let i=Math.ceil(o/6);n<<=6*i-o;for(let e=1;e<=i;e++){let r=(i-e)*6;t+=rD[(n&63<<r)>>r]}t+="==".slice(0,4-i)}return t}class rU extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?rU.mutate(rM(e)):rU.mutate(ec(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,rU.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?rF(e):es(e)}(this,e)}}class rZ{constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);let r=this.config.requestTimeout;if(t?.aborted){let e=Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let n=e.path,o=function(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=eC(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${eC(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${eC(n)}
10`),t.push(e)}}return t.join("&")}(e.query||{});o&&(n+=`?${o}`),e.fragment&&(n+=`#${e.fragment}`);let i="";if(null!=e.username||null!=e.password){let t=e.username??"",r=e.password??"";i=`${t}:${r}@`}let{port:a,method:s}=e,c=`${e.protocol}//${i}${e.hostname}${a?`:${a}`:""}${n}`,u={body:"GET"===s||"HEAD"===s?void 0:e.body,headers:new Headers(e.headers),method:s};"undefined"!=typeof AbortController&&(u.signal=t);let l=[fetch(new Request(c,u)).then(e=>{let t=e.headers,r={};for(let e of t.entries())r[e[0]]=e[1];return void 0!=e.body?{response:new k({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new k({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),function(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}(r)];return t&&l.push(new Promise((e,r)=>{t.onabort=()=>{let e=Error("Request aborted");e.name="AbortError",r(e)}})),Promise.race(l)}}let rB=e=>"function"==typeof Blob&&e instanceof Blob?r$(e):rG(e);async function r$(e){return new Uint8Array(rM(await new Promise((t,r)=>{let n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(Error("Reader aborted too early"));let e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})))}async function rG(e){let t=new Uint8Array(0),r=e.getReader(),n=!1;for(;!n;){let{done:e,value:o}=await r.read();if(o){let e=t;(t=new Uint8Array(e.length+o.length)).set(e),t.set(o,e.length)}n=e}return t}let rz=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return rU.mutate(e);if(!e)return rU.mutate(new Uint8Array);let r=t.streamCollector(e);return rU.mutate(await r)};class rq{constructor(){this.middlewareStack=rN()}}let rH="***SensitiveInformation***",rV=e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&nr.warn(nt(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},rW=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),rK=e=>{let t=rV(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>rW)throw TypeError(`Expected 32-bit float, got ${e}`);return t},rY=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},rQ=e=>r0(e,32),rX=e=>r0(e,16),rJ=e=>r0(e,8),r0=(e,t)=>{let r=rY(e);if(void 0!==r&&r1(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},r1=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},r2=(e,t)=>{if(null==e){if(t)throw TypeError(`Expected a non-null value for ${t}`);throw TypeError("Expected a non-null value")}return e},r3=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return nr.warn(nt(`Expected string, got ${typeof e}: ${e}`)),String(e);throw TypeError(`Expected string, got ${typeof e}: ${e}`)}},r8=e=>"string"==typeof e?rV(r5(e)):rV(e),r6=e=>"string"==typeof e?rK(r5(e)):rK(e),r4=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,r5=e=>{let t=e.match(r4);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},r7=e=>"string"==typeof e?rQ(r5(e)):rQ(e),r9=e=>"string"==typeof e?rX(r5(e)):rX(e),ne=e=>"string"==typeof e?rJ(r5(e)):rJ(e),nt=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),nr={warn:console.warn},nn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],no=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),ni=e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-3339 date-times must be expressed as strings");let t=no.exec(e);if(!t)throw TypeError("Invalid RFC-3339 date-time value");let[r,n,o,i,a,s,c,u,l]=t,f=ns(r9(nh(n)),nf(o,"month",1,12),nf(i,"day",1,31),{hours:a,minutes:s,seconds:c,fractionalMilliseconds:u});return"Z"!=l.toUpperCase()&&f.setTime(f.getTime()-nd(l)),f},na=e=>{let t;if(null!=e){if("number"==typeof e)t=e;else if("string"==typeof e)t=r8(e);else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))}},ns=(e,t,r,n)=>{let o=t-1;return nu(e,o,r),new Date(Date.UTC(e,o,r,nf(n.hours,"hour",0,23),nf(n.minutes,"minute",0,59),nf(n.seconds,"seconds",0,60),np(n.fractionalMilliseconds)))},nc=[31,28,31,30,31,30,31,31,30,31,30,31],nu=(e,t,r)=>{let n=nc[t];if(1===t&&nl(e)&&(n=29),r>n)throw TypeError(`Invalid day for ${nn[t]} in ${e}: ${r}`)},nl=e=>e%4==0&&(e%100!=0||e%400==0),nf=(e,t,r,n)=>{let o=ne(nh(e));if(o<r||o>n)throw TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},np=e=>null==e?0:1e3*r6("0."+e),nd=e=>{let t=e[0],r=1;if("+"==t)r=1;else if("-"==t)r=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*6e4},nh=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)};
10class ny extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,ny.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}let nm=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{(void 0==e[t]||""===e[t])&&(e[t]=r)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},ng=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{let o=nb(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0;throw nm(new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o}),t)},nv=e=>({output:t,parsedBody:r,errorCode:n})=>{ng({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},nb=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),nw=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};function nO(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}let nS=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=nS(e[r]));return e},nj=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};nj.prototype=Object.create(String.prototype,{constructor:{value:nj,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(nj,String);let nx=(e,t)=>{let r={};for(let n in t)n_(r,e,t,n);return r},n_=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);let[i=nP,a=nE,s=n]=o;("function"==typeof i&&i(t[s])||"function"!=typeof i&&i)&&(e[n]=a(t[s]));return}let[o,i]=r[n];if("function"==typeof i){let t;let r=void 0===o&&null!=(t=i()),a="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:a&&(e[n]=i())}else{let t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},nP=e=>null!=e,nE=e=>e,nA=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter(e=>null!=e);if("object"==typeof e){let t={};for(let r of Object.keys(e))null!=e[r]&&(t[r]=nA(e[r]));return t}return e},nk=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"});var nC={i8:"3.395.0"},nN=r(77643),nT=r(51206),nI=r.n(nT);let nR=({serviceId:e,clientVersion:t})=>async()=>{let r="undefined"!=typeof window&&window?.navigator?.userAgent?nI().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n},nL=e=>()=>Promise.reject(e),nD=e=>{if("string"==typeof e){let t=e.length;for(let r=t-1;r>=0;r--){let n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw Error(`Body Length computation failed for ${e}`)},nM="required",nF="argv",nU="PartitionResult",nZ="tree",nB="error",n$="endpoint",nG={[nM]:!1,type:"String"},nz={[nM]:!0,default:!1,type:"Boolean"},nq={ref:"Endpoint"},nH={fn:"booleanEquals",[nF]:[{ref:"UseFIPS"},!0]},nV={fn:"booleanEquals",[nF]:[{ref:"UseDualStack"},!0]},nW={},nK={fn:"booleanEquals",[nF]:[!0,{fn:"getAttr",[nF]:[{ref:nU},"supportsFIPS"]}]},nY={fn:"booleanEquals",[nF]:[!0,{fn:"getAttr",[nF]:[{ref:nU},"supportsDualStack"]}]},nQ=[nq],nX=[nH],nJ=[nV],n0={version:"1.0",parameters:{Region:nG,UseDualStack:nz,UseFIPS:nz,Endpoint:nG},rules:[{conditions:[{fn:"aws.partition",[nF]:[{ref:"Region"}],assign:nU}],type:nZ,rules:[{conditions:[{fn:"isSet",[nF]:nQ},{fn:"parseURL",[nF]:nQ,assign:"url"}],type:nZ,rules:[{conditions:nX,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:nB}
10,{type:nZ,rules:[{conditions:nJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:nB},{endpoint:{url:nq,properties:nW,headers:nW},type:n$}]}]},{conditions:[nH,nV],type:nZ,rules:[{conditions:[nK,nY],type:nZ,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:nW,headers:nW},type:n$}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:nB}]},{conditions:nX,type:nZ,rules:[{conditions:[nK],type:nZ,rules:[{type:nZ,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:nW,headers:nW},type:n$}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:nB}]},{conditions:nJ,type:nZ,rules:[{conditions:[nY],type:nZ,rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:nW,headers:nW},type:n$}]},{error:"DualStack is enabled but this partition does not support DualStack",type:nB}]},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:nW,headers:nW},type:n$}]}]},n1=(e,t={})=>tN(n0,{endpointParams:e,logger:t.logger}),n2=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??rM,base64Encoder:e?.base64Encoder??rF,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??n1,extensions:e?.extensions??[],logger:e?.logger??new rC,serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??t9,utf8Decoder:e?.utf8Decoder??ec,utf8Encoder:e?.utf8Encoder??es}),n3=["in-region","cross-region","mobile","standard","legacy"],n8=({defaultsMode:e}={})=>G(async()=>{let t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(n6()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${n3.join(", ")}, got ${t}`)}}),n6=()=>{let e="undefined"!=typeof window&&window?.navigator?.userAgent?nI().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},n4=e=>{let t=n8(e),r=()=>t().then(nw),n=n2(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??nR({serviceId:n.serviceId,clientVersion:nC.i8}),maxAttempts:e?.maxAttempts??3,region:e?.region??nL("Region is missing"),requestHandler:e?.requestHandler??new rZ(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||rr),sha256:e?.sha256??nN.Sha256,streamCollector:e?.streamCollector??rB,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},n5=e=>e,n7=(e,t)=>{let r={...n5(P(e))};return t.forEach(e=>e.configureClient(r)),{...e,...E(r)}};class n9 extends rR{constructor(...[e]){let t=n7(e0(eq(rS(rt(t$(nk(n4(e||{}))))))),e?.extensions||[]);super(t),this.config=t,this.middlewareStack.use(rA(this.config)),this.middlewareStack.use(tq(this.config)),this.middlewareStack.use(T(this.config)),this.middlewareStack.use(L(this.config)),this.middlewareStack.use(Z(this.config)),this.middlewareStack.use(tU(this.config))}destroy(){super.destroy()}}class oe extends ny{constructor(e){super(e),Object.setPrototypeOf(this,oe.prototype)}}class ot extends oe{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,ot.prototype)}}class or extends oe{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,or.prototype)}}class on extends oe{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,on.prototype)}}class oo extends oe{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,oo.prototype)}}class oi extends oe{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,oi.prototype)}}class oa extends oe{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}}class os extends oe{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,os.prototype)}}class oc extends oe{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,oc.prototype)}}class ou extends oe{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,ou.prototype)}}let ol=async(e,t)=>oC(t,oN("GetCredentialsForIdentity"),"/",void 0,JSON.stringify(nA(e))),of=async(e,t)=>oC(t,oN("GetId"),"/",void 0,JSON.stringify(nA(e))),op=async(e,t)=>{if(e.statusCode>=300)return od(e,t);let r=await oT(e.body,t),n={};return n=oP(r,t),{$metadata:oE(e),...n}},od=async(e,t)=>{let r={...e,body:await oI(e.body,t)},n=oR(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await om(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await og(r,t);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await ov(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await ob(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await oO(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await oS(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await oj(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await ox(r,t);default:return ok({output:e,parsedBody:r.body,errorCode:n})}},oh=async(e,t)=>{if(e.statusCode>=300)return oy(e,t);let r=await oT(e.body,t),n={};return n=nA(r),{$metadata:oE(e),...n}},oy=async(e,t)=>{let r={...e,body:await oI(e.body,t)},n=oR(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await om(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await og(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await ob(r,t);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await ow(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await oO(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await oS(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await oj(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await ox(r,t);default:return ok({output:e,parsedBody:r.body,errorCode:n})}},om=async(e,t)=>{let r=e.body,n=nA(r);return nm(new oc({$metadata:oE(e),...n}),r)},og=async(e,t)=>{let r=e.body,n=nA(r);return nm(new ot({$metadata:oE(e),...n}),r)},ov=async(e,t)=>{let r=e.body,n=nA(r);return nm(new ou({$metadata:oE(e),...n}),r)},ob=async(e,t)=>{let r=e.body,n=nA(r);return nm(new or({$metadata:oE(e),...n}),r)},ow=async(e,t)=>{let r=e.body,n=nA(r);return nm(new on({$metadata:oE(e),...n}),r)},oO=async(e,t)=>{let r=e.body,n=nA(r);return nm(new oo({$metadata:oE(e),...n}),r)},oS=async(e,t)=>{let r=e.body,n=nA(r);return nm(new oi({$metadata:oE(e),...n}),r)},oj=async(e,t)=>{let r=e.body,n=nA(r);return nm(new os({$metadata:oE(e),...n}),r)},ox=async(e,t)=>{let r=e.body,n=nA(r);return nm(new oa({$metadata:oE(e),...n}),r)},o_=(e,t)=>nx(e,{AccessKeyId:r3,Expiration:e=>r2(na(rV(e))),SecretKey:r3,SessionToken:r3}),oP=(e,t)=>
10nx(e,{Credentials:e=>o_(e,t),IdentityId:r3}),oE=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),oA=(e,t)=>rz(e,t).then(e=>t.utf8Encoder(e)),ok=nv(oe),oC=async(e,t,r,n,o)=>{let{hostname:i,protocol:a="https",port:s,path:c}=await e.endpoint(),u={protocol:a,hostname:i,port:s,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return void 0!==n&&(u.hostname=n),void 0!==o&&(u.body=o),new A(u)};function oN(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}let oT=(e,t)=>oA(e,t).then(e=>e.length?JSON.parse(e):{}),oI=async(e,t)=>{let r=await oT(e,t);return r.message=r.message??r.Message,r},oR=(e,t)=>{let r,n;let o=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},i=(r=e.headers,n="x-amzn-errortype",Object.keys(r).find(e=>e.toLowerCase()===n.toLowerCase()));return void 0!==i?o(e.headers[i]):void 0!==t.code?o(t.code):void 0!==t.__type?o(t.__type):void 0};class oL extends rq{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(tY(t,this.serialize,this.deserialize)),this.middlewareStack.use(t7(t,oL.getEndpointParameterInstructions()));let n=e.concat(this.middlewareStack),{logger:o}=t,{requestHandler:i}=t;return n.resolve(e=>i.handle(e.request,r||{}),{logger:o,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e})}serialize(e,t){return ol(e,t)}deserialize(e,t){return op(e,t)}}function oD(e){return Promise.all(Object.keys(e).reduce((t,r)=>{let n=e[r];return"string"==typeof n?t.push([r,n]):t.push(n().then(e=>[r,e])),t},[])).then(e=>e.reduce((e,[t,r])=>(e[t]=r,e),{}))}function oM(e){return async()=>{let{Credentials:{AccessKeyId:t=function(){throw new $("Response from Amazon Cognito contained no access key ID")}(),Expiration:r,SecretKey:n=function(){throw new $("Response from Amazon Cognito contained no secret key")}(),SessionToken:o}=function(){throw new $("Response from Amazon Cognito contained no credentials")}()}=await e.client.send(new oL({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await oD(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:t,secretAccessKey:n,sessionToken:o,expiration:r}}}let oF=e=>oM({...e,client:new n9(e.clientConfig??{})});class oU extends rq{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(tY(t,this.serialize,this.deserialize)),this.middlewareStack.use(t7(t,oU.getEndpointParameterInstructions()));let n=e.concat(this.middlewareStack),{logger:o}=t,{requestHandler:i}=t;return n.resolve(e=>i.handle(e.request,r||{}),{logger:o,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e})}serialize(e,t){return of(e,t)}deserialize(e,t){return oh(e,t)}}let oZ="IdentityIds";class oB{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",t=>{let r=t.get(e);return new Promise(e=>{r.onerror=()=>e(null),r.onsuccess=()=>e(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",t=>{let r=t.delete(e);return new Promise((e,t)=>{r.onerror=()=>t(r.error),r.onsuccess=()=>e()})})}setItem(e,t){return this.withObjectStore("readwrite",r=>{let n=r.put({id:e,value:t});return new Promise((e,t)=>
10{n.onerror=()=>t(n.error),n.onsuccess=()=>e()})})}getDb(){let e=self.indexedDB.open(this.dbName,1);return new Promise((t,r)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(Error("Unable to access DB"))},e.onupgradeneeded=()=>{let t=e.result;t.onerror=()=>{r(Error("Failed to create object store"))},t.createObjectStore(oZ,{keyPath:"id"})}})}withObjectStore(e,t){return this.getDb().then(r=>{let n=r.transaction(oZ,e);return n.oncomplete=()=>r.close(),new Promise((e,r)=>{n.onerror=()=>r(n.error),e(t(n.objectStore(oZ)))}).catch(e=>{throw r.close(),e})})}}class o${constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}}let oG=new o$,oz=e=>(function({accountId:e,cache:t="object"==typeof self&&self.indexedDB?new oB:"object"==typeof window&&window.localStorage?window.localStorage:oG,client:r,customRoleArn:n,identityPoolId:o,logins:i,userIdentifier:a=i&&0!==Object.keys(i).length?void 0:"ANONYMOUS"}){let s=a?`aws:cognito-identity-credentials:${o}:${a}`:void 0,c=async()=>{let a=s&&await t.getItem(s);if(!a){let{IdentityId:n=function(){throw new $("Response from Amazon Cognito contained no identity ID")}()}=await r.send(new oU({AccountId:e,IdentityPoolId:o,Logins:i?await oD(i):void 0}));a=n,s&&Promise.resolve(t.setItem(s,a)).catch(()=>{})}return(c=oM({client:r,customRoleArn:n,logins:i,identityId:a}))()};return()=>c().catch(async e=>{throw s&&Promise.resolve(t.removeItem(s)).catch(()=>{}),e})})({...e,client:new n9(e.clientConfig??{})}),oq=(e,{stsClientCtor:t})=>eq({...e,stsClientCtor:t}),oH=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});var oV={i8:"3.395.0"};let oW="required",oK="type",oY="argv",oQ="booleanEquals",oX="tree",oJ="stringEquals",o0="sigv4",o1="us-east-1",o2="endpoint",o3="https://sts.{Region}.{PartitionResult#dnsSuffix}",o8="error",o6="getAttr",o4={[oW]:!1,[oK]:"String"},o5={[oW]:!0,default:!1,[oK]:"Boolean"},o7={ref:"Endpoint"},o9={fn:"isSet",[oY]:[{ref:"Region"}]},ie={ref:"Region"},it={fn:"aws.partition",[oY]:[ie],assign:"PartitionResult"},ir={ref:"UseFIPS"},io={ref:"UseDualStack"},ii={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:o0,signingName:"sts",signingRegion:o1}]},headers:{}},ia={},is={conditions:[{fn:oJ,[oY]:[ie,"aws-global"]}],[o2]:ii,[oK]:o2},ic={fn:oQ,[oY]:[ir,!0]},iu={fn:oQ,[oY]:[io,!0]},il={fn:oQ,[oY]:[!0,{fn:o6,[oY]:[{ref:"PartitionResult"},"supportsFIPS"]}]},ip={ref:"PartitionResult"},id={fn:oQ,[oY]:[!0,{fn:o6,[oY]:[ip,"supportsDualStack"]}]},ih=[{fn:"isSet",[oY]:[o7]}],iy=[ic],im=[iu],ig={version:"1.0",parameters:{Region:o4,UseDualStack:o5,UseFIPS:o5,Endpoint:o4,UseGlobalEndpoint:o5},rules:[{conditions:[{fn:oQ,[oY]:[{ref:"UseGlobalEndpoint"},!0]},{fn:"not",[oY]:ih},o9,it,{fn:oQ,[oY]:[ir,!1]},{fn:oQ,[oY]:[io,!1]}],[oK]:oX,rules:[{conditions:[{fn:oJ,[oY]:[ie,"ap-northeast-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"ap-south-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"ap-southeast-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"ap-southeast-2"]}],endpoint:ii,[oK]:o2},is,{conditions:[{fn:oJ,[oY]:[ie,"ca-central-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"eu-central-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"eu-north-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"eu-west-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"eu-west-2"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"eu-west-3"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"sa-east-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,o1]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"us-east-2"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"us-west-1"]}],endpoint:ii,[oK]:o2},{conditions:[{fn:oJ,[oY]:[ie,"us-west-2"]}],endpoint:ii,[oK]:o2},{endpoint:{url:o3,properties:{authSchemes:[{name:o0,signingName:"sts",signingRegion:"{Region}"}]},headers:ia},[oK]:o2}]},{conditions:ih,[oK]:oX,rules:[{conditions:iy,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[oK]:o8},{[oK]:oX,rules:[{conditions:im,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[oK]:o8},{endpoint:{url:o7,properties:ia,headers:ia},[oK]:o2}]}]},{[oK]:oX,rules:[{conditions:[o9],[oK]:oX,rules:[{conditions:[it],[oK]:oX,rules:[{conditions:[ic,iu],[oK]:oX,rules:[{conditions:[il,id],[oK]:oX,rules:[{[oK]:oX,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ia,headers:ia},[oK]:o2}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[oK]:o8}]},{conditions:iy,[oK]:oX,rules:[{conditions:[il],[oK]:oX,rules:[{[oK]:oX,rules:[{conditions:[{fn:oJ,[oY]:["aws-us-gov",{fn:o6,[oY]:[ip,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ia,headers:ia},[oK]:o2},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ia,headers:ia},[oK]:o2}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[oK]:o8}]},{conditions:im,[oK]:oX,rules:[{conditions:[id],[oK]:oX,rules:[{[oK]:oX,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ia,headers:ia},[oK]:o2}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[oK]:o8}]},{[oK]:oX,rules:[is,{endpoint:{url:o3,properties:ia,headers:ia},[oK]:o2}]}]}]},{error:"Invalid Configuration: Missing Region",[oK]:o8}]}]},iv=(e,t={})=>tN(ig,{endpointParams:e,logger:t.logger}),ib=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??rM,base64Encoder:e?.base64Encoder??rF,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??iv,extensions:e?.extensions??[],logger:e?.logger??new rC,serviceId:e?.
10serviceId??"STS",urlParser:e?.urlParser??t9,utf8Decoder:e?.utf8Decoder??ec,utf8Encoder:e?.utf8Encoder??es}),iw=e=>{let t=n8(e),r=()=>t().then(nw),n=ib(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??nD,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??nR({serviceId:n.serviceId,clientVersion:oV.i8}),maxAttempts:e?.maxAttempts??3,region:e?.region??nL("Region is missing"),requestHandler:e?.requestHandler??new rZ(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||rr),sha256:e?.sha256??nN.Sha256,streamCollector:e?.streamCollector??rB,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},iO=e=>e,iS=(e,t)=>{let r={...iO(P(e))};return t.forEach(e=>e.configureClient(r)),{...e,...E(r)}};class ij extends rR{constructor(...[e]){let t=iS(e0(oq(rS(rt(t$(oH(iw(e||{}))))),{stsClientCtor:ij})),e?.extensions||[]);super(t),this.config=t,this.middlewareStack.use(rA(this.config)),this.middlewareStack.use(tq(this.config)),this.middlewareStack.use(T(this.config)),this.middlewareStack.use(L(this.config)),this.middlewareStack.use(Z(this.config)),this.middlewareStack.use(tU(this.config))}destroy(){super.destroy()}}class ix extends ny{constructor(e){super(e),Object.setPrototypeOf(this,ix.prototype)}}class i_ extends ix{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,i_.prototype)}}class iP extends ix{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,iP.prototype)}}class iE extends ix{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,iE.prototype)}}class iA extends ix{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,iA.prototype)}}class ik extends ix{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ik.prototype)}}class iC extends ix{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,iC.prototype)}}class iN extends ix{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,iN.prototype)}}let iT=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:rH}}),iI=e=>({...e,...e.Credentials&&{Credentials:iT(e.Credentials)}}),iR=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:rH}}),iL=e=>({...e,...e.Credentials&&{Credentials:iT(e.Credentials)}});var iD=r(16932);let iM=async(e,t)=>{let r;return r=ad({...iY(e,t),Action:"AssumeRole",Version:"2011-06-15"}),au(t,al,"/",void 0,r)},iF=async(e,t)=>{let r;return r=ad({...iQ(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),au(t,al,"/",void 0,r)},iU=async(e,t)=>{if(e.statusCode>=300)return iZ(e,t);let r=await af(e.body,t),n={};return n=i4(r.AssumeRoleResult,t),{$metadata:aa(e),...n}},iZ=async(e,t)=>{let r={...e,body:await ap(e.body,t)},n=ah(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await iG(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await iV(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await iW(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await iK(r,t);default:return ac({output:e,parsedBody:r.body.Error,errorCode:n})}},iB=async(e,t)=>{if(e.statusCode>=300)return i$(e,t);let r=await af(e.body,t),n={};return n=i5(r.AssumeRoleWithWebIdentityResult,t),{$metadata:aa(e),...n}},i$=async(e,t)=>{let r={...e,body:await ap(e.body,t)},n=ah(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await iG(r,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await iz(r,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await iq(r,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await iH(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await iV(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await iW(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await iK(r,t);default:return ac({output:e,parsedBody:r.body.Error,errorCode:n})}},iG=async(e,t)=>{let r=e.body,n=i9(r.Error,t);return nm(new i_({$metadata:aa(e),...n}),r)},iz=async(e,t)=>{let r=e.body,n=ae(r.Error,t);return nm(new iN({$metadata:aa(e),...n}),r)},iq=async(e,t)=>{let r=e.body,n=at(r.Error,t);return nm(new ik({$metadata:aa(e),...n}),r)},iH=async(e,t)=>{let r=e.body,n=ar(r.Error,t);return nm(new iC({$metadata:aa(e),...n}),r)},iV=async(e,t)=>{let r=e.body,n=an(r.Error,t);return nm(new iP({$metadata:aa(e),...n}),r)},iW=async(e,t)=>{let r=e.body,n=ao(r.Error,t);return nm(new iE({$metadata:aa(e),...n}),r)},iK=async(e,t)=>{let r=e.body,n=ai(r.Error,t);return nm(new iA({$metadata:aa(e),...n}),r)},iY=(e,t)=>{let r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.PolicyArns){let n=iX(e.PolicyArns,t);
10e.PolicyArns?.length===0&&(r.PolicyArns=[]),Object.entries(n).forEach(([e,t])=>{r[`PolicyArns.${e}`]=t})}if(null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),null!=e.Tags){let n=i8(e.Tags,t);e.Tags?.length===0&&(r.Tags=[]),Object.entries(n).forEach(([e,t])=>{r[`Tags.${e}`]=t})}if(null!=e.TransitiveTagKeys){let n=i3(e.TransitiveTagKeys,t);e.TransitiveTagKeys?.length===0&&(r.TransitiveTagKeys=[]),Object.entries(n).forEach(([e,t])=>{r[`TransitiveTagKeys.${e}`]=t})}if(null!=e.ExternalId&&(r.ExternalId=e.ExternalId),null!=e.SerialNumber&&(r.SerialNumber=e.SerialNumber),null!=e.TokenCode&&(r.TokenCode=e.TokenCode),null!=e.SourceIdentity&&(r.SourceIdentity=e.SourceIdentity),null!=e.ProvidedContexts){let n=i1(e.ProvidedContexts,t);e.ProvidedContexts?.length===0&&(r.ProvidedContexts=[]),Object.entries(n).forEach(([e,t])=>{r[`ProvidedContexts.${e}`]=t})}return r},iQ=(e,t)=>{let r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.WebIdentityToken&&(r.WebIdentityToken=e.WebIdentityToken),null!=e.ProviderId&&(r.ProviderId=e.ProviderId),null!=e.PolicyArns){let n=iX(e.PolicyArns,t);e.PolicyArns?.length===0&&(r.PolicyArns=[]),Object.entries(n).forEach(([e,t])=>{r[`PolicyArns.${e}`]=t})}return null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),r},iX=(e,t)=>{let r={},n=1;
10for(let o of e)null!==o&&(Object.entries(iJ(o,t)).forEach(([e,t])=>{r[`member.${n}.${e}`]=t}),n++);return r},iJ=(e,t)=>{let r={};return null!=e.arn&&(r.arn=e.arn),r},i0=(e,t)=>{let r={};return null!=e.ProviderArn&&(r.ProviderArn=e.ProviderArn),null!=e.ContextAssertion&&(r.ContextAssertion=e.ContextAssertion),r},i1=(e,t)=>{let r={},n=1;for(let o of e)null!==o&&(Object.entries(i0(o,t)).forEach(([e,t])=>{r[`member.${n}.${e}`]=t}),n++);return r},i2=(e,t)=>{let r={};return null!=e.Key&&(r.Key=e.Key),null!=e.Value&&(r.Value=e.Value),r},i3=(e,t)=>{let r={},n=1;for(let t of e)null!==t&&(r[`member.${n}`]=t,n++);return r},i8=(e,t)=>{let r={},n=1;for(let o of e)null!==o&&(Object.entries(i2(o,t)).forEach(([e,t])=>{r[`member.${n}.${e}`]=t}),n++);return r},i6=(e,t)=>{let r={};return void 0!==e.AssumedRoleId&&(r.AssumedRoleId=r3(e.AssumedRoleId)),void 0!==e.Arn&&(r.Arn=r3(e.Arn)),r},i4=(e,t)=>{let r={};return void 0!==e.Credentials&&(r.Credentials=i7(e.Credentials,t)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=i6(e.AssumedRoleUser,t)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=r7(e.PackedPolicySize)),void 0!==e.SourceIdentity&&(r.SourceIdentity=r3(e.SourceIdentity)),r},i5=(e,t)=>{let r={};return void 0!==e.Credentials&&(r.Credentials=i7(e.Credentials,t)),void 0!==e.SubjectFromWebIdentityToken&&(r.SubjectFromWebIdentityToken=r3(e.SubjectFromWebIdentityToken)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=i6(e.AssumedRoleUser,t)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=r7(e.PackedPolicySize)),void 0!==e.Provider&&(r.Provider=r3(e.Provider)),void 0!==e.Audience&&(r.Audience=r3(e.Audience)),void 0!==e.SourceIdentity&&(r.SourceIdentity=r3(e.SourceIdentity)),r},i7=(e,t)=>{let r={};return void 0!==e.AccessKeyId&&(r.AccessKeyId=r3(e.AccessKeyId)),void 0!==e.SecretAccessKey&&(r.SecretAccessKey=r3(e.SecretAccessKey)),void 0!==e.SessionToken&&(r.SessionToken=r3(e.SessionToken)),void 0!==e.Expiration&&(r.Expiration=r2(ni(e.Expiration))),r},i9=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},ae=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},at=(e,t)=>
10{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},ar=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},an=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},ao=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},ai=(e,t)=>{let r={};return void 0!==e.message&&(r.message=r3(e.message)),r},aa=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),as=(e,t)=>rz(e,t).then(e=>t.utf8Encoder(e)),ac=nv(ix),au=async(e,t,r,n,o)=>{let{hostname:i,protocol:a="https",port:s,path:c}=await e.endpoint(),u={protocol:a,hostname:i,port:s,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return void 0!==n&&(u.hostname=n),void 0!==o&&(u.body=o),new A(u)},al={"content-type":"application/x-www-form-urlencoded"},af=(e,t)=>as(e,t).then(e=>{if(e.length){let t=new iD.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");let r=t.parse(e),n="#text",o=Object.keys(r)[0],i=r[o];return i[n]&&(i[o]=i[n],delete i[n]),nS(i)}return{}}),ap=async(e,t)=>{let r=await af(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},ad=e=>Object.entries(e).map(([e,t])=>nO(e)+"="+nO(t)).join("&"),ah=(e,t)=>t.Error?.Code!==void 0?t.Error.Code:404==e.statusCode?"NotFound":void 0;class ay extends rq{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(tY(t,this.serialize,this.deserialize)),this.middlewareStack.use(t7(t,ay.getEndpointParameterInstructions())),this.middlewareStack.use(eJ(t));let n=e.concat(this.middlewareStack),{logger:o}=t,{requestHandler:i}=t;return n.resolve(e=>i.handle(e.request,r||{}),{logger:o,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:iI})}serialize(e,t){return iM(e,t)}deserialize(e,t){return iU(e,t)}}let am=e=>{let t;return async()=>{let r={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(r?.SerialNumber){if(!e.mfaCodeProvider)throw new $("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",!1);r.TokenCode=await e.mfaCodeProvider(r?.SerialNumber)}if(t||(t=new ij({...e.clientConfig,credentials:e.masterCredentials})),e.clientPlugins)for(let r of e.clientPlugins)t.middlewareStack.use(r);let{Credentials:n}=await t.send(new ay(r));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new $(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration}}};class ag extends rq{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(tY(t,this.serialize,this.deserialize)),this.middlewareStack.use(t7(t,ag.getEndpointParameterInstructions()));let n=e.concat(this.middlewareStack),{logger:o}=t,{requestHandler:i}=t;return n.resolve(e=>i.handle(e.request,r||{}),{logger:o,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:iR,outputFilterSensitiveLog:iL})}serialize(e,t){return iF(e,t)}deserialize(e,t){return iB(e,t)}}let av="us-east-1",ab=e=>"function"!=typeof e?void 0===e?av:e:async()=>{try{return await e()}catch(e){return av}},aw=(e,t)=>{let r;return async n=>{if(!r){let{logger:n,region:o,requestHandler:i}=e;r=new t({logger:n,region:ab(o||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await r.send(new ag(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}},aO=(e,t)=>
10t?class extends e{constructor(e){for(let r of(super(e),t))this.middlewareStack.use(r)}}:e,aS=(e={},t)=>aw(e,aO(ij,t));r(18796);let aj=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:o,policyArns:i,policy:a,durationSeconds:s,roleAssumerWithWebIdentity:c}=e;if(!c)throw new $(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:o,PolicyArns:i,Policy:a,DurationSeconds:s})},ax=e=>aj({...e,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??aS(e.clientConfig,e.clientPlugins)})},56495:function(e,t,r){"use strict";r.r(t),r.d(t,{locateWindow:function(){return o}});let n={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},19193:function(e,t,r){"use strict";r.r(t),r.d(t,{fromUtf8:function(){return i},toUtf8:function(){return a}});let n=e=>{let t=[];for(let r=0,n=e.length;r<n;r++){let n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&(64512&n)==55296&&(64512&e.charCodeAt(r+1))==56320){let o=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)},o=e=>{let t="";for(let r=0,n=e.length;r<n;r++){let n=e[r];n<128?t+=String.fromCharCode(n):192<=n&&n<224?t+=String.fromCharCode((31&n)<<6|63&e[++r]):240<=n&&n<365?t+=decodeURIComponent("%"+[n,e[++r],e[++r],e[++r]].map(e=>e.toString(16)).join("%")):t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t},i=e=>"function"==typeof TextEncoder?new TextEncoder().encode(e):n(e),a=e=>"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):o(e)},9669:function(e,t,r){e.exports=r(51609)},60592:function(e,t,r){"use strict";var n=r(64867),o=r(36026),i=r(4372),a=r(15327),s=r(94097),c=r(84109),u=r(67985),l=r(77874),f=r(82648),p=r(60644),d=r(90205);e.exports=function(e){return new Promise(function(t,r){var h,y=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",O=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+O)}var S=s(e.baseURL,e.url);function j(){if(b){var n="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null;o(function(e){t(e),v()},function(e){r(e),v()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=j:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(j)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var x=(e.withCredentials||u(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&n.forEach(m,function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(r(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),y||(y=null);var _=d(S);if(_&&-1===["http","https","file"].indexOf(_)){r(new f("Unsupported protocol "+_+":",f.ERR_BAD_REQUEST,e));return}b.send(y)})}},51609:function(e,t,r){"use strict";var n=r(64867),o=r(91849),i=r(30321),a=r(47185),s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(45546));s.Axios=i,s.CanceledError=r(60644),s.CancelToken=r(14972),s.isCancel=r(26502),s.VERSION=r(97288).version,s.toFormData=r(47675),s.AxiosError=r(82648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(8713),s.isAxiosError=r(16268),e.exports=s,e.exports.default=s},14972:function(e,t,r){"use strict";var n=r(60644);function o(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},60644:function(e,t,r){"use strict";var n=r(82648);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(64867).inherits(o,n,{__CANCEL__:!0}),e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},30321:function(e,t,r){"use strict";var n=r(64867),o=r(15327),i=r(80782),a=r(13572),s=r(47185),c=r(94097),u=r(54875),l=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r,n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(i=i&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});var c=[];if(this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)}),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,o),f=f.concat(c),r=Promise.resolve(t);f.length;)r=r.then(f.shift(),f.shift());return r}for(var p=t;o.length;){var d=o.shift(),h=o.shift();try{p=d(p)}catch(e){h(e);break}}try{r=a(p)}catch(e){return Promise.reject(e)}for(;c.length;)r=r.then(c.shift(),c.shift());return r},f.prototype.getUri=function(e){return o(c((e=s(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}
10,n.forEach(["delete","get","head","options"],function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)}),e.exports=f},82648:function(e,t,r){"use strict";var n=r(64867);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){a[e]={value:e}}),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,c){var u=Object.create(i);return n.toFlatObject(e,u,function(e){return e!==Error.prototype}),o.call(u,e.message,t,r,a,s),u.name=e.name,c&&Object.assign(u,c),u},e.exports=o},80782:function(e,t,r){"use strict";var n=r(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},94097:function(e,t,r){"use strict";var n=r(91793),o=r(7303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},13572:function(e,t,r){"use strict";var n=r(64867),o=r(18527),i=r(26502),a=r(45546),s=r(60644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!i(t)&&(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},47185:function(e,t,r){"use strict";var n=r(64867);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function c(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||i,o=t(e);n.isUndefined(o)&&t!==c||(r[e]=o)}),r}},36026:function(e,t,r){"use strict";var n=r(82648);e.exports=function(e,t,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},18527:function(e,t,r){"use strict";var n=r(64867),o=r(45546);e.exports=function(e,t,r){var i=this||o;
10return n.forEach(r,function(r){e=r.call(i,e,t)}),e}},45546:function(e,t,r){"use strict";var n,o=r(34155),i=r(64867),a=r(16016),s=r(82648),c=r(77874),u=r(47675),l={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p={transitional:c,adapter:("undefined"!=typeof XMLHttpRequest?n=r(60592):void 0!==o&&"[object process]"===Object.prototype.toString.call(o)&&(n=r(60592)),n),transformRequest:[function(e,t){if(a(t,"Accept"),a(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=i.isObject(e),o=t&&t["Content-Type"];if((r=i.isFileList(e))||n&&"multipart/form-data"===o){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===o?(f(t,"application/json"),function(e,t,r){if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||p.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(91623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){p.headers[e]={}}),i.forEach(["post","put","patch"],function(e){p.headers[e]=i.merge
10(l)}),e.exports=p},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.27.2"}},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},15327:function(e,t,r){"use strict";var n=r(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var i,a=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,r){"use strict";var n=r(64867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,r){"use strict";var n=r(64867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,r){"use strict";var n=r(64867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16016:function(e,t,r){"use strict";var n=r(64867);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},91623:function(e){e.exports=null},84109:function(e,t,r){"use strict";var n=r(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e&&n.forEach(e.split("\n"),function(e){i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t&&!(a[t]&&o.indexOf(t)>=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},90205:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47675:function(e,t,r){"use strict";var n=r(48764).lW,o=r(64867);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,function(r,n){if(!o.isUndefined(r)){var s,c=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(o.endsWith(n,"{}"))r=JSON.stringify(r);
10else if(o.endsWith(n,"[]")&&(s=o.toArray(r))){s.forEach(function(e){o.isUndefined(e)||t.append(c,i(e))});return}}e(r,c)}}),r.pop()}else t.append(a,i(n))}(e),t}},54875:function(e,t,r){"use strict";var n=r(97288).version,o=r(82648),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var c=e[a],u=void 0===c||s(c,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},64867:function(e,t,r){"use strict";var n,o,i=r(91849),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function c(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function l(e){return void 0===e}var f=c("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=c("Date"),y=c("File"),m=c("Blob"),g=c("FileList");function v(e){return"[object Function]"===a.call(e)}var b=c("URLSearchParams");function w(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}}var O=(o="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return o&&e instanceof o});e.exports={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||a.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:p,isPlainObject:d,isUndefined:l,isDate:h,isFile:y,isBlob:m,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)w(arguments[n],r);return t},extend:function(e,t,r){return w(t,function(t,n){r&&"function"==typeof t?e[n]=i(t,r):e[n]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:c,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r}
10,isTypedArray:O,isFileList:g}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=c(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},51206:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),a=Math.max(o,i),s=0,c=e.map([t,r],function(t){var r=a-e.getVersionPrecision(t),n=t+Array(r+1).join(".0");return e.map(n.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(n&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return -1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));for(t=0,r=o.length;t<r;t+=1)(function(){var r=o[t];"object"==typeof r&&null!==r&&Object.keys(r).forEach(function(t){e[t]=r[t]})})();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18),a=function(){function e(){}return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}]),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),a=c(r(95)),s=c(r(17));
vendor: 14,781 bytes, line 10
10function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(r[t]=a,n+=1)}),n>0){var a=Object.keys(r),c=s.default.find(a,function(e){return t.isOS(e)});if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=s.default.find(a,function(e){return t.isPlatform(e)});if(l){var f=this.satisfies(r[l]);if(void 0!==f)return f}}if(i>0){var p=Object.keys(o),d=s.default.find(p,function(e){return t.isBrowser(e,!0)});if(void 0!==d)return this.compareVersion(o[d])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
10return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},e.exports=t()},48764:function(e,t,r){"use strict";let n=r(79742),o=r(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>
102147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|h(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let o=function(e){var t;if(s.isBuffer(e)){let t=0|d(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),a(e<0?0:0|d(e))}function f(e){let t=e.length<0?0:0|d(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function d(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(o)return n?-1:R(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,r){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=t;n<r;++n)o+=F[e[n]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":var i,a;return i=t,a=r,0===i&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),o="";for(let e=0;e<n.length-1;e+=2)o+=String.fromCharCode(n[e]+256*n[e+1]);return o}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}
vendor: 16,583 bytes, line 10
10else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){let i,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===c)return n*a}else -1!==n&&(i-=i-n),n=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;n<c;n++)if(u(e,i+n)!==u(t,n)){r=!1;break}if(r)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let t=e[o],i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:(192&(r=e[o+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[o+1],n=e[o+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,o){C(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,o){C(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function x(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,i){return t=+t,r>>>=0,i||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function P(e,t,r,n,i){return t=+t,r>>>=0,i||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){let t=e[r];if(M(t,Uint8Array))o+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else if(s.isBuffer(t))t.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):y.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;let i=o-n,a=r-t,c=Math.min(i,a),u=this.slice(n,o),l=e.slice(t,r);for(let e=0;e<c;++e)if(u[e]!==l[e]){i=u[e],a=l[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var o,i,a,s,c,u,l,f;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let d=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let o;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let a=t.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){let n=parseInt(t.substr(2*o,2),16);if(n!=n)break;e[r+o]=n}return o}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,D(R(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=r,D(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return c=t,u=r,D(L(e),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,f=r,D(function(e,t){let r,n;let o=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-l),this,l,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=U(function(e){N(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&T(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],o=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(o)<<BigInt(32))}),s.prototype.readBigUInt64BE=U(function(e){N(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&T(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],o=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=U(function(e){N(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&T(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=U(function(e){N(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&T(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;O(this,e,t,r,n,0)}let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;O(this,e,t,r,n,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=U(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=U(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=U(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=U(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},s.prototype.fill=function(e,t,r,n){let o;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{let i=s.isBuffer(e)?e:s.from(e,n),a=i.length;
10if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%a]}return this};let E={};function A(e,t,r){E[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function k(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function C(e,t,r,n,o,i){if(e>r||e<t){let n;let o="bigint"==typeof t?"n":"";throw n=i>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${t}${o} and <= ${r}${o}`,new E.ERR_OUT_OF_RANGE("value",n,e)}N(o,"offset"),(void 0===n[o]||void 0===n[o+i])&&T(o,n.length-(i+1))}function N(e,t){if("number"!=typeof e)throw new E.ERR_INVALID_ARG_TYPE(t,"number",e)}function T(e,t,r){if(Math.floor(e)!==e)throw N(e,r),new E.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new E.ERR_BUFFER_OUT_OF_BOUNDS;throw new E.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}A("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),A("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),A("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?o=k(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=k(o)),o+="n"),n+=` It must be ${t}. Received ${o}`},RangeError);let I=/[^+/0-9A-Za-z-_]/g;function R(e,t){let r;t=t||1/0;let n=e.length,o=null,i=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function U(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw Error("BigInt not supported")}},21924:function(e,t,r){"use strict";var n=r(10492),o=r(55559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},55559:function(e,t,r){"use strict";var n=r(36161),o=r(10492),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},42801:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,o=this;if("function"!=typeof o||"[object Function]"!==r.call(o))throw TypeError("Function.prototype.bind called on incompatible "+o);
10for(var i=t.call(arguments,1),a=Math.max(0,o.length-i.length),s=[],c=0;c<a;c++)s.push("$"+c);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return o.apply(e,i.concat(t.call(arguments)));var r=o.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}),o.prototype){var u=function(){};u.prototype=o.prototype,n.prototype=new u,u.prototype=null}return n}},36161:function(e,t,r){"use strict";var n=r(42801);e.exports=Function.prototype.bind||n},10492:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(41405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
10IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var m=p(p(e));y["%Error.prototype%"]=m}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(36161),w=r(17642),O=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),j=b.call(Function.call,String.prototype.replace),x=b.call(Function.call,String.prototype.slice),_=b.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,A=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,P,function(e,t,r,o){n[n.length]=r?j(o,E,"$1"):t||e}),n},k=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(y,n)){var i=y[n];if(i===d&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],S(r,O([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=x(h,0,1),g=x(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,w(y,s="%"+n+"%"))u=y[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var v=c(u,h);u=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else d=w(u,h),u=u[h];d&&!l&&(y[s]=u)}}return u}},94184:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0!==(r=(function(){return o}
vendor: 6,817 bytes, line 10
10).apply(t,[]))&&(e.exports=r)}()},44652:function(e){var t;t=function(){"use strict";function e(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=a(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}var u={};u[u.Fatal=0]="Fatal",u[u.Error=0]="Error",u[u.Warn=1]="Warn",u[u.Log=2]="Log",u[u.Info=3]="Info",u[u.Success=3]="Success",u[u.Debug=4]="Debug",u[u.Trace=5]="Trace",u[u.Silent=-1/0]="Silent",u[u.Verbose=1/0]="Verbose";var l={silent:{level:-1},fatal:{level:u.Fatal},error:{level:u.Error},warn:{level:u.Warn},log:{level:u.Log},info:{level:u.Info},success:{level:u.Success},debug:{level:u.Debug},trace:{level:u.Trace},verbose:{level:u.Trace},ready:{level:u.Info},start:{level:u.Info}},f=!1,p=[],d=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in e(this,t),this._reporters=r.reporters||[],this._types=r.types||l,this.level=void 0!==r.level?r.level:3,this._defaults=r.defaults||{},this._async=void 0!==r.async?r.async:void 0,this._stdout=r.stdout,this._stderr=r.stderr,this._mockFn=r.mockFn,this._throttle=r.throttle||1e3,this._throttleMin=r.throttleMin||5,this._types){var i=o(o({type:n},this._types[n]),this._defaults);this[n]=this._wrapLogFn(i),this[n].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return r(t,[{key:"create",value:function(e){return new t(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},e))}},{key:"withDefaults",value:function(e){return this.create({defaults:Object.assign({},this._defaults,e)})}},{key:"withTag",value:function(e){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+e:e})}},{key:"addReporter",value:function(e){return this._reporters.push(e),this}},{key:"removeReporter",value:function(e){if(e){var t=this._reporters.indexOf(e);if(t>=0)return this._reporters.splice(t,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(e){return this._reporters=Array.isArray(e)?e:[e],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var e in this._types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}},{key:"restoreConsole",value:function(){for(var e in this._types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(e,t){var r=this;e&&(e.__write||(e.__write=e.write),e.write=function(e){r[t].raw(String(e).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}},{key:"pauseLogs",value:function(){f=!0}},{key:"resumeLogs",value:function(){f=!1;var e,t=c(p.splice(0));try{for(t.s();!(e=t.n()).done;){var r=e.value;r[0]._logFn(r[1],r[2])}}catch(e){t.e(e)}finally{t.f()}}},{key:"mockTypes",value:function(e){if(this._mockFn=e||this._mockFn,"function"==typeof this._mockFn)for(var t in this._types)this[t]=this._mockFn(t,this._types[t])||this[t],this[t].raw=this[t]}},{key:"_wrapLogFn",value:function(e,t){var r=this;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];if(!f)return r._logFn(e,o,t);p.push([r,e,o,t])}}},{key:"_logFn",value:function(e,t,r){var n,a=this;if(e.level>this.level)return!!this._async&&Promise.resolve(!1);var s=Object.assign({date:new Date,args:[]},e);r||1!==t.length||(n=t[0],"[object Object]"!==Object.prototype.toString.call(n)||!n.message&&!n.args||n.stack)?s.args=Array.from(t):Object.assign(s,t[0]),s.message&&(s.args.unshift(s.message),delete s.message),s.additional&&(Array.isArray(s.additional)||(s.additional=s.additional.split("\n")),s.args.push("\n"+s.additional.join("\n")),delete s.additional),s.type="string"==typeof s.type?s.type.toLowerCase():"",s.tag="string"==typeof s.tag?s.tag.toLowerCase():"";var c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=a._lastLogCount-a._throttleMin;if(a._lastLog&&t>0){var r=i(a._lastLog.args);t>1&&r.push("(repeated ".concat(t," times)")),a._log(o(o({},a._lastLog),{},{args:r})),a._lastLogCount=1}if(e){if(a._lastLog=s,a._async)return a._logAsync(s);a._log(s)}};clearTimeout(this._throttleTimeout);var u=this._lastLogTime?s.date-this._lastLogTime:0;
10if(this._lastLogTime=s.date,u<this._throttle)try{var l=JSON.stringify([s.type,s.tag,s.args]),f=this._lastLogSerialized===l;if(this._lastLogSerialized=l,f&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(c,this._throttle))}catch(e){}c(!0)}},{key:"_log",value:function(e){var t,r=c(this._reporters);try{for(r.s();!(t=r.n()).done;)t.value.log(e,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(e){r.e(e)}finally{r.f()}}},{key:"_logAsync",value:function(e){var t=this;return Promise.all(this._reporters.map(function(r){return r.log(e,{async:!0,stdout:t.stdout,stderr:t.stderr})}))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),t}();d.prototype.add=d.prototype.addReporter,d.prototype.remove=d.prototype.removeReporter,d.prototype.clear=d.prototype.removeReporter,d.prototype.withScope=d.prototype.withTag,d.prototype.mock=d.prototype.mockTypes,d.prototype.pause=d.prototype.pauseLogs,d.prototype.resume=d.prototype.resumeLogs;var h,y=function(){function t(r){e(this,t),this.options=Object.assign({},r),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return r(t,[{key:"log",value:function(e){var t=e.level<1?console.__error||console.error:1===e.level&&console.warn?console.__warn||console.warn:console.__log||console.log,r="log"!==e.type?e.type:"",n=e.tag?e.tag:"",o=this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor,a="\n background: ".concat(o,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([n,r].filter(Boolean).join(":"));"string"==typeof e.args[0]?t.apply(void 0,["".concat(s,"%c ").concat(e.args[0]),a,""].concat(i(e.args.slice(1)))):t.apply(void 0,[s,a].concat(i(e.args)))}}]),t}();return"undefined"!=typeof window&&window.consola||((h=new d({reporters:[new y]})).Consola=d,h.LogLevel=u,h.BrowserReporter=y,h)},e.exports=t()},99960:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},47915:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=r(99960),a=r(97790);o(r(97790),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?i.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}
10,e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},97790:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(99960),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=s;var c=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);t.Text=u;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);t.Comment=l;var f=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=a.ElementType.Directive,n}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);t.ProcessingInstruction=f;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9}
10,enumerable:!1,configurable:!0}),t}(p);t.Document=h;var y=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function O(e){return e.type===a.ElementType.Root}function S(e,t){if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(b(e))r=new l(e.data);else if(m(e)){var r,n=t?j(e.children):[],o=new y(e.name,i({},e.attribs),n);n.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(g(e)){var n=t?j(e.children):[],a=new d(n);n.forEach(function(e){return e.parent=a}),r=a}else if(O(e)){var n=t?j(e.children):[],s=new h(n);n.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(w(e)){var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function j(e){for(var t=e.map(function(e){return S(e,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=y,t.isTag=m,t.isCDATA=g,t.isText=v,t.isComment=b,t.isDirective=w,t.isDocument=O,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},62988:function(e,t,r){var n=r(61755),o=r(26665).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var r=this;this.listener=function(e){r.mql=e.currentTarget||e,r.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new n(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,function(r,n){if(r.equals(e))return r.destroy(),!t.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,function(t){t[e]()})}},e.exports=i},38177:function(e,t,r){var n=r(62988),o=r(26665),i=o.each,a=o.isFunction,s=o.isArray;
10function c(){if(!window.matchMedia)throw Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(e,t,r){var o=this.queries,c=r&&this.browserIsIncapable;return o[e]||(o[e]=new n(e,c)),a(t)&&(t={match:t}),s(t)||(t=[t]),i(t,function(t){a(t)&&(t={match:t}),o[e].addHandler(t)}),this},unregister:function(e,t){var r=this.queries[e];return r&&(t?r.removeHandler(t):(r.clear(),delete this.queries[e])),this}},e.exports=c},61755:function(e){function t(e){this.options=e,e.deferSetup||this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},26665:function(e){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var r=0,n=e.length;r<n&&!1!==t(e[r],r);r++);}}},24974:function(e,t,r){var n=r(38177);e.exports=new n},16932:function(e,t,r){"use strict";let n=r(78501),o=r(58844),i=r(41192);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},17849:function(e,t){"use strict";let r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=RegExp("^"+n+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,r){if(t){let n=Object.keys(t),o=n.length;for(let i=0;i<o;i++)"strict"===r?e[n[i]]=[t[n[i]]]:e[n[i]]=t[n[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return null!=o.exec(e)},t.getAllMatches=function(e,t){let r=[],n=t.exec(e);for(;n;){let o=[];o.startIndex=t.lastIndex-n[0].length;let i=n.length;for(let e=0;e<i;e++)o.push(n[e]);r.push(o),n=t.exec(e)}return r},t.nameRegexp=n},78501:function(e,t,r){"use strict";let n=r(17849),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||" "===e||"\n"===e||"\r"===e}function a(e,t){let r=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){let n=e.substr(r,t-r);if(t>5&&"xml"===n)return l("InvalidXml","XML declaration allowed only at the start of the document.",f(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&0==--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}}return t}t.validate=function(e,t){t=Object.assign({},o,t);let r=[],c=!1,p=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,(o=a(e,o)).err)return o}else if("<"===e[o]){let h=o;if("!"===e[++o]){o=s(e,o);continue}{var d;let y=!1;"/"===e[o]&&(y=!0,o++);let m="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&" "!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)m+=e[o];if("/"===(m=m.trim())[m.length-1]&&(m=m.substring(0,m.length-1),o--),d=m,!n.isName(d))return l("InvalidTag",0===m.trim().length?"Invalid space after '<'.":"Tag '"+m+"' is an invalid name.",f(e,o));let g=function(e,t){let r="",n="",o=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){o=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:o}}(e,o);if(!1===g)return l("InvalidAttr","Attributes for '"+m+"' have open quote.",f(e,o));let v=g.value;if(o=g.index,"/"===v[v.length-1]){let r=o-v.length,n=u(v=v.substring(0,v.length-1),t);
10if(!0!==n)return l(n.err.code,n.err.msg,f(e,r+n.err.line));c=!0}else if(y){if(!g.tagClosed)return l("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",f(e,o));if(v.trim().length>0)return l("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",f(e,h));{let t=r.pop();if(m!==t.tagName){let r=f(e,t.tagStartPos);return l("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+m+"'.",f(e,h))}0==r.length&&(p=!0)}}else{let n=u(v,t);if(!0!==n)return l(n.err.code,n.err.msg,f(e,o-v.length+n.err.line));if(!0===p)return l("InvalidXml","Multiple possible root nodes found.",f(e,o));-1!==t.unpairedTags.indexOf(m)||r.push({tagName:m,tagStartPos:h}),c=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o=s(e,++o);continue}if("?"===e[o+1]){if((o=a(e,++o)).err)return o}else break}else if("&"===e[o]){let t=function(e,t){if(";"===e[++t])return -1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return -1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!e[t].match(/\w/)||!(r<20)){if(";"===e[t])break;return -1}return t}(e,o);if(-1==t)return l("InvalidChar","char '&' is not expected.",f(e,o));o=t}else if(!0===p&&!i(e[o]))return l("InvalidXml","Extra text at the end",f(e,o));"<"===e[o]&&o--}}else{if(i(e[o]))continue;return l("InvalidChar","char '"+e[o]+"' is not expected.",f(e,o))}return c?1==r.length?l("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",f(e,r[0].tagStartPos)):!(r.length>0)||l("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):l("InvalidXml","Start tag expected.",1)};let c=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function u(e,t){let r=n.getAllMatches(e,c),o={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return l("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",p(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return l("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",p(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return l("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",p(r[e]));let i=r[e][2];if(!n.isName(i))return l("InvalidAttr","Attribute '"+i+"' is an invalid name.",p(r[e]));if(o.hasOwnProperty(i))return l("InvalidAttr","Attribute '"+i+"' is repeated.",p(r[e]));o[i]=1}return!0}function l(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function f(e,t){let r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function p(e){return e.startIndex+e[1].length}},41192:function(e,t,r){"use strict";let n=r(82592),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=a,this.options.format?(this.indentate=s,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,r){let n=this.j2x(e,r+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function s(e){return this.options.indentBy.repeat(e)}function c(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let r="",n="";for(let o in e)if(void 0===e[o]);else if(null===e[o])"?"===o[0]?n+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;
10else if(e[o]instanceof Date)n+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){let i=this.isAttribute(o);if(i)r+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){let r=e[o].length,i="";for(let a=0;a<r;a++){let r=e[o][a];void 0===r||(null===r?"?"===o[0]?n+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof r?this.options.oneListGroup?i+=this.j2x(r,t+1).val:i+=this.processTextOrObjNode(r,o,t):i+=this.buildTextValNode(r,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),n+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let t=Object.keys(e[o]),n=t.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else n+=this.processTextOrObjNode(e[o],o,t);return{attrStr:r,val:n}},i.prototype.buildAttrPairStr=function(e,t){return(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t)?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return("?"===t[0]&&(i="?",o=""),r&&-1===e.indexOf("<"))?this.indentate(n)+"<"+t+r+i+">"+e+o:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(n)+`<!--${e}-->`+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+o}},i.prototype.closeTag=function(e){let t="";return -1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`<!--${e}-->`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return""===(o=this.replaceEntitiesValue(o))?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){let r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=i},82592:function(e){function t(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){let i=t.attributeValueProcessor(o,e[o]);!0===(i=r(i,t))&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function r(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){let n=t.entities[r];e=e.replace(n.regex,n.val)}return e}e.exports=function(e,n){let o="";return n.format&&n.indentBy.length>0&&(o="\n"),function e(n,o,i,a){let s="",c=!1;for(let u=0;u<n.length;u++){let l=n[u],f=function(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let r=t[e];if(":@"!==r)return r}}(l),p="";if(p=0===i.length?f:`${i}.${f}`,f===o.textNodeName){let e=l[f];!function(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}(p,o)&&(e=r(e=o.tagValueProcessor(f,e),o)),c&&(s+=a),s+=e,c=!1;continue}if(f===o.cdataPropName){c&&(s+=a),s+=`<![CDATA[${l[f][0][o.textNodeName]}]]>`,c=!1;continue}if(f===o.commentPropName){s+=a+`<!--${l[f][0][o.textNodeName]}-->`,c=!0;continue}if("?"===f[0]){let e=t(l[":@"],o),r="?xml"===f?"":a,n=l[f][0][o.textNodeName];n=0!==n.length?" "+n:"",s+=r+`<${f}${n}${e}?>`,c=!0;continue}let d=a;""!==d&&(d+=o.indentBy);let h=t(l[":@"],o),y=a+`<${f}${h}`,m=e(l[f],o,p,d);-1!==o.unpairedTags.indexOf(f)?o.suppressUnpairedNode?s+=y+">":s+=y+"/>":(!m||0===m.length)&&o.suppressEmptyNode?s+=y+"/>":m&&m.endsWith(">")?s+=y+`>${m}${a}</${f}>`:(s+=y+">",m&&""!==a&&(m.includes("/>")||m.includes("</"))?s+=a+o.indentBy+m+a:s+=m,s+=`</${f}>`),c=!0}return s}(e,n,"",o)}},74780:function(e,t,r){let n=r(17849);function o(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}e.exports=function(e,t){let r={};if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let d=1,h=!1,y=!1;for(;t<e.length;t++)if("<"!==e[t]||y){if(">"===e[t]){if(y?"-"===e[t-1]&&"-"===e[t-2]&&(y=!1,d--):d--,0===d)break}else"["===e[t]?h=!0:e[t]}else{var i,a,s,c,u,l,f,p;if(h&&"!"===(i=e)[(a=t)+1]&&"E"===i[a+2]&&"N"===i[a+3]&&"T"===i[a+4]&&"I"===i[a+5]&&"T"===i[a+6]&&"Y"===i[a+7])t+=7,[entityName,val,t]=function(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(-1!==(r=r.trim()).indexOf(" "))throw Error("External entites are not supported");let n=e[t++],o="";for(;t<e.length&&e[t]!==n;t++)o+=e[t];return[r,o,t]}(e,t+1),-1===val.indexOf("&")&&(r[function(e){if(n.isName(e))return e;throw Error(`Invalid entity name ${e}`)}(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(h&&"!"===(s=e)[(c=t)+1]&&"E"===s[c+2]&&"L"===s[c+3]&&"E"===s[c+4]&&"M"===s[c+5]&&"E"===s[c+6]&&"N"===s[c+7]&&"T"===s[c+8])t+=8;else if(h&&"!"===(u=e)[(l=t)+1]&&"A"===u[l+2]&&"T"===u[l+3]&&"T"===u[l+4]&&"L"===u[l+5]&&"I"===u[l+6]&&"S"===u[l+7]&&"T"===u[l+8])t+=8;else if(h&&"!"===(f=e)[(p=t)+1]&&"N"===f[p+2]&&"O"===f[p+3]&&"T"===f[p+4]&&"A"===f[p+5]&&"T"===f[p+6]&&"I"===f[p+7]&&"O"===f[p+8]&&"N"===f[p+9])t+=9;else if(o)y=!0;else throw Error("Invalid DOCTYPE");d++}if(0!==d)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:t}}},66745:function(e,t){let r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};t.buildOptions=function(e){return Object.assign({},r,e)},t.defaultOptions=r},81078:function(e,t,r){"use strict";
10let n=r(17849),o=r(36311),i=r(74780),a=r(14153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);class s{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"â¬"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"â¹"}},this.addExternalEntities=c,this.parseXml=d,this.parseTextData=u,this.resolveNameSpace=l,this.buildAttributesMap=p,this.isItStopNode=g,this.replaceEntitiesValue=y,this.readStopNodeData=w,this.saveTextToParentTag=m,this.addChild=h}}function c(e){let t=Object.keys(e);for(let r=0;r<t.length;r++){let n=t[r];this.lastEntities[n]={regex:RegExp("&"+n+";","g"),val:e[n]}}}function u(e,t,r,n,o,i,a){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));let n=this.options.tagValueProcessor(t,e,r,o,i);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues?O(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?O(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){let t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}let f=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function p(e,t,r){if(!this.options.ignoreAttributes&&"string"==typeof e){let r=n.getAllMatches(e,f),o=r.length,i={};for(let e=0;e<o;e++){let n=this.resolveNameSpace(r[e][1]),o=r[e][4],a=this.options.attributeNamePrefix+n;if(n.length){if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);let e=this.options.attributeValueProcessor(n,o,t);null==e?i[a]=o:typeof e!=typeof o||e!==o?i[a]=e:i[a]=O(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}}if(Object.keys(i).length){if(this.options.attributesGroupName){let e={};return e[this.options.attributesGroupName]=i,e}return i}}}let d=function(e){e=e.replace(/\r\n?/g,"\n");let t=new o("!xml"),r=t,n="",a="";for(let s=0;s<e.length;
10s++)if("<"===e[s]){if("/"===e[s+1]){let t=v(e,">",s,"Closing Tag is not closed."),o=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){let e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),r&&(n=this.saveTextToParentTag(n,r,a));let i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);let c=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(c=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=a.lastIndexOf("."),a=a.substring(0,c),r=this.tagsNodeStack.pop(),n="",s=t}else if("?"===e[s+1]){let t=b(e,s,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{let e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(r,e,a)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){let t=v(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let o=e.substring(s+4,t-2);n=this.saveTextToParentTag(n,r,a),r.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}s=t}else if("!D"===e.substr(s+1,2)){let t=i(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){let t=v(e,"]]>",s,"CDATA is not closed.")-2,o=e.substring(s+9,t);if(n=this.saveTextToParentTag(n,r,a),this.options.cdataPropName)r.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]);else{let e=this.parseTextData(o,r.tagname,a,!0,!1,!0);void 0==e&&(e=""),r.add(this.options.textNodeName,e)}s=t+2}else{let i=b(e,s,this.options.removeNSPrefix),c=i.tagName,u=i.tagExp,l=i.attrExpPresent,f=i.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,a,!1));let p=r;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(r=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),c!==t.tagname&&(a+=a?"."+c:c),this.isItStopNode(this.options.stopNodes,a,c)){let t="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)s=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))s=i.closeIndex;else{let r=this.readStopNodeData(e,c,f+1);if(!r)throw Error(`Unexpected end of ${c}`);s=r.i,t=r.tagContent}let n=new o(c);c!==u&&l&&(n[":@"]=this.buildAttributesMap(u,a,c)),t&&(t=this.parseTextData(t,c,a,!0,l,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,a)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){u="/"===c[c.length-1]?c=c.substr(0,c.length-1):u.substr(0,u.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));let e=new o(c);c!==u&&l&&(e[":@"]=this.buildAttributesMap(u,a,c)),this.addChild(r,e,a),a=a.substr(0,a.lastIndexOf("."))}else{let e=new o(c);this.tagsNodeStack.push(r),c!==u&&l&&(e[":@"]=this.buildAttributesMap(u,a,c)),this.addChild(r,e,a),r=e}n="",s=f}}}else n+=e[s];return t.child};function h(e,t,r){let n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n&&(t.tagname=n),e.addChild(t))}let y=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){let r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){let r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){let r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function g(e,t,r){let n="*."+r;for(let r in e){let o=e[r];if(n===o||t===o)return!0}return!1}function v(e,t,r,n){let o=e.indexOf(t,r);if(-1!==o)return o+t.length-1;throw Error(n)}function b(e,t,r,n=">"){let o=function(e,t,r=">"){let n;let o="";for(let i=t;i<e.length;i++){let t=e[i];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1]||e[i+1]===r[1])return{data:o,index:i}}else" "===t&&(t=" ");o+=t}}(e,t+1,n);if(!o)return;let i=o.data,a=o.index,s=i.search(/\s/),c=i,u=!0;if(-1!==s&&(c=i.substr(0,s).replace(/\s\s*$/,""),i=i.substr(s+1)),r){let e=c.indexOf(":");-1!==e&&(u=(c=c.substr(e+1))!==o.data.substr(e+1))}return{tagName:c,tagExp:i,closeIndex:a,attrExpPresent:u}}function w(e,t,r){let n=r,o=1;for(;r<e.length;r++)if("<"===e[r]){if("/"===e[r+1]){let i=v(e,">",r,`${t} is not closed`);if(e.substring(r+2,i).trim()===t&&0==--o)return{tagContent:e.substring(n,r),i:i};r=i}else if("?"===e[r+1])r=v(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=v(e,"-->",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=v(e,"]]>",r,"StopNode is not closed.")-2;else{let n=b(e,r,">");n&&((n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&o++,r=n.closeIndex)}}}function O(e,t,r){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&a(e,r)}return n.isExist(e)?e:""}e.exports=s},58844:function(e,t,r){let{buildOptions:n}=r(66745),o=r(81078),{prettify:i}=r(16997),a=r(78501);class s{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"==typeof e);else if(e.toString)e=e.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let r=a.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let r=new o(this.options);r.addExternalEntities(this.externalEntities);let n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:i(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}e.exports=s},16997:function(e,t){"use strict";t.prettify=function(e,t){return function e(t,r,n){let o;let i={};for(let a=0;a<t.length;a++){let s=t[a],c=function(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let r=t[e];if(":@"!==r)return r}}(s),u="";if(u=void 0===n?c:n+"."+c,c===r.textNodeName)void 0===o?o=s[c]:o+=""+s[c];else if(void 0===c)continue;else if(s[c]){let t=e(s[c],r,u),n=function(e,t){let{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||1===n&&(!!e[r]||"boolean"==typeof e[r]||0===e[r])}(t,r);s[":@"]?function(e,t,r,n){if(t){let o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){let i=o[a];n.isArray(i,r+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}(t,s[":@"],u,r):1!==Object.keys(t).length||void 0===t[r.textNodeName]||r.alwaysCreateTextNode?0===Object.keys(t).length&&(r.alwaysCreateTextNode?t[r.textNodeName]="":t=""):t=t[r.textNodeName],void 0!==i[c]&&i.hasOwnProperty(c)?(Array.isArray(i[c])||(i[c]=[i[c]]),i[c].push(t)):r.isArray(c,u,n)?i[c]=[t]:i[c]=t}}return"string"==typeof o?o.length>0&&(i[r.textNodeName]=o):void 0!==o&&(i[r.textNodeName]=o),i}(e,t)}},36311:function(e){"use strict";class t{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}e.exports=t},27959:function(e,t,r){!function(){function e(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var t,n,o,i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e},a=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function s(e,t){if(t){for(var r=a,n=e.split("."),o=0;o<n.length-1;o++){var s=n[o];s in r||(r[s]={}),r=r[s]}(s=t(o=r[n=n[n.length-1]]))!=o&&null!=s&&i(r,n,{configurable:!0,writable:!0,value:s})}}function c(t){var r="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return r?r.call(t):{next:e(t)}}if(s("Symbol",function(e){function t(e,t){this.o=e,i(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.o};var r=0;return function e(n){if(this instanceof e)throw TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(n||"")+"_"+r++,n)}}),s("Symbol.iterator",function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<r.length;n++){var o=a[r[n]];"function"==typeof o&&"function"!=typeof o.prototype[t]&&i(o.prototype,t,{configurable:!0,writable:!0,value:function(){var t;return(t={next:t=e(this)})[Symbol.iterator]=function(){return this},t}})}return t}
10),"function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{e:{var u={};try{u.__proto__={u:!0},o=u.u;break e}catch(e){}o=!1}n=o?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var l=n;function f(){this.h=!1,this.f=null,this.m=void 0,this.b=1,this.l=this.v=0,this.g=null}function p(e){if(e.h)throw TypeError("Generator is already running");e.h=!0}function d(e,t){return e.b=3,{value:t}}function h(e){this.a=new f,this.B=e}function y(e,t,r,n){try{var o=t.call(e.a.f,r);if(!(o instanceof Object))throw TypeError("Iterator result "+o+" is not an object");if(!o.done)return e.a.h=!1,o;var i=o.value}catch(t){return e.a.f=null,e.a.j(t),m(e)}return e.a.f=null,n.call(e.a,i),m(e)}function m(e){for(;e.a.b;)try{var t=e.B(e.a);if(t)return e.a.h=!1,{value:t.value,done:!1}}catch(t){e.a.m=void 0,e.a.j(t)}if(e.a.h=!1,e.a.g){if(t=e.a.g,e.a.g=null,t.A)throw t.w;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function g(e){this.next=function(t){return e.i(t)},this.throw=function(t){return e.j(t)},this.return=function(t){var r;return p(e.a),(r=e.a.f)?y(e,"return"in r?r.return:function(e){return{value:e,done:!0}},t,e.a.return):(e.a.return(t),m(e))},this[Symbol.iterator]=function(){return this}}function v(e,t){var r=new g(new h(t));return l&&l(r,e.prototype),r}if(f.prototype.i=function(e){this.m=e},f.prototype.j=function(e){this.g={w:e,A:!0},this.b=this.v||this.l},f.prototype.return=function(e){this.g={return:e},this.b=this.l},h.prototype.i=function(e){return(p(this.a),this.a.f)?y(this,this.a.f.next,e,this.a.i):(this.a.i(e),m(this))},h.prototype.j=function(e){return(p(this.a),this.a.f)?y(this,this.a.f.throw,e,this.a.i):(this.a.j(e),m(this))},"undefined"!=typeof Blob&&("undefined"==typeof FormData||!FormData.prototype.keys)){var b=function(e,t){for(var r=0;r<e.length;r++)t(e[r])},w=function(e,t,r){return t instanceof Blob?[String(e),t,void 0!==r?r+"":"string"==typeof t.name?t.name:"blob"]:[String(e),String(t)]},O=function(e,t){if(e.length<t)throw TypeError(t+" argument required, but only "+e.length+" present.")},S=function(e){var t=c(e);e=t.next().value;var r=t.next().value;return t=t.next().value,r instanceof Blob&&(r=new File([r],t,{type:r.type,lastModified:r.lastModified})),[e,r]},j="object"==typeof globalThis?globalThis:"object"==typeof window?window:"object"==typeof self?self:this,x=j.FormData,_=j.XMLHttpRequest&&j.XMLHttpRequest.prototype.send,P=j.Request&&j.fetch,E=j.navigator&&j.navigator.sendBeacon,A=j.Element&&j.Element.prototype,k=j.Symbol&&Symbol.toStringTag;k&&(Blob.prototype[k]||(Blob.prototype[k]="Blob"),"File"in j&&!File.prototype[k]&&(File.prototype[k]="File"));try{new File([],"")}catch(e){j.File=function(e,t,r){return Object.defineProperties(e=new Blob(e,r),{name:{value:t},lastModifiedDate:{value:r=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date},lastModified:{value:+r},toString:{value:function(){return"[object File]"}}}),k&&Object.defineProperty(e,k,{value:"File"}),e}}var C=function(e){this.c=[];var t=this;e&&b(e.elements,function(e){if(e.name&&!e.disabled&&"submit"!==e.type&&"button"!==e.type&&!e.matches("form fieldset[disabled] *")){if("file"===e.type){var r=e.files&&e.files.length?e.files:[new File([],"",{type:"application/octet-stream"})];b(r,function(r){t.append(e.name,r)})}else"select-multiple"===e.type||"select-one"===e.type?b(e.options,function(r){!r.disabled&&r.selected&&t.append(e.name,r.value)}):"checkbox"===e.type||"radio"===e.type?e.checked&&t.append(e.name,e.value):(r="textarea"===e.type?e.value.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"):e.value,t.append(e.name,r))}})};if((t=C.prototype).append=function(e,t,r){O(arguments,2),this.c.push(w(e,t,r))},t.delete=function(e){O(arguments,1);var t=[];e=String(e),b(this.c,function(r){r[0]!==e&&t.push(r)}),this.c=t},t.entries=function e(){var t,r=this;return v(e,function(e){if(1==e.b&&(t=0),3!=e.b)return t<r.c.length?e=d(e,S(r.c[t])):(e.b=0,e=void 0),e;t++,e.b=2})},t.forEach=function(e,t){O(arguments,1);for(var r=c(this),n=r.next();!n.done;n=r.next()){var o=c(n.value);n=o.next().value,o=o.next().value,e.call(t,o,n,this)}}
10,t.get=function(e){O(arguments,1);var t=this.c;e=String(e);for(var r=0;r<t.length;r++)if(t[r][0]===e)return S(t[r])[1];return null},t.getAll=function(e){O(arguments,1);var t=[];return e=String(e),b(this.c,function(r){r[0]===e&&t.push(S(r)[1])}),t},t.has=function(e){O(arguments,1),e=String(e);for(var t=0;t<this.c.length;t++)if(this.c[t][0]===e)return!0;return!1},t.keys=function e(){var t,r,n=this;return v(e,function(e){if(1==e.b&&(r=(t=c(n)).next()),3!=e.b){if(r.done){e.b=0;return}return d(e,c(r.value).next().value)}r=t.next(),e.b=2})},t.set=function(e,t,r){O(arguments,2);var n=[],o=w(e=String(e),t,r),i=!0;b(this.c,function(t){t[0]===e?i&&(i=!n.push(o)):n.push(t)}),i&&n.push(o),this.c=n},t.values=function e(){var t,r,n,o=this;return v(e,function(e){if(1==e.b&&(r=(t=c(o)).next()),3!=e.b){if(r.done){e.b=0;return}return(n=c(r.value)).next(),d(e,n.next().value)}r=t.next(),e.b=2})},C.prototype._asNative=function(){for(var e=new x,t=c(this),r=t.next();!r.done;r=t.next()){var n=c(r.value);r=n.next().value,n=n.next().value,e.append(r,n)}return e},C.prototype._blob=function(){for(var e="----formdata-polyfill-"+Math.random(),t=[],r=c(this),n=r.next();!n.done;n=r.next()){var o=c(n.value);n=o.next().value,o=o.next().value,t.push("--"+e+"\r\n"),o instanceof Blob?t.push('Content-Disposition: form-data; name="'+n+'"; filename="'+o.name+'"\r\nContent-Type: '+(o.type||"application/octet-stream")+"\r\n\r\n",o,"\r\n"):t.push('Content-Disposition: form-data; name="'+n+'"\r\n\r\n'+o+"\r\n")}return t.push("--"+e+"--"),new Blob(t,{type:"multipart/form-data; boundary="+e})},C.prototype[Symbol.iterator]=function(){return this.entries()},C.prototype.toString=function(){return"[object FormData]"},A&&!A.matches&&(A.matches=A.matchesSelector||A.mozMatchesSelector||A.msMatchesSelector||A.oMatchesSelector||A.webkitMatchesSelector||function(e){e=(this.document||this.ownerDocument).querySelectorAll(e);for(var t=e.length;0<=--t&&e.item(t)!==this;);return -1<t}),k&&(C.prototype[k]="FormData"),_){var N=j.XMLHttpRequest.prototype.setRequestHeader;j.XMLHttpRequest.prototype.setRequestHeader=function(e,t){N.call(this,e,t),"content-type"===e.toLowerCase()&&(this.s=!0)},j.XMLHttpRequest.prototype.send=function(e){e instanceof C&&(e=e._blob(),this.s||this.setRequestHeader("Content-Type",e.type)),_.call(this,e)}}P&&(j.fetch=function(e,t){return t&&t.body&&t.body instanceof C&&(t.body=t.body._blob()),P.call(this,e,t)}),E&&(j.navigator.sendBeacon=function(e,t){return t instanceof C&&(t=t._asNative()),E.call(this,e,t)}),j.FormData=C}}()},15433:function(e,t,r){"use strict";var n=r(79720),o=r(27048),i=r(50646),a=i.isDelimiter,s=i.isTokenChar,c=i.isExtended,u=i.isPrint;function l(e){return e.replace(/\\(.)/g,"$1")}function f(e,t){return n.format("Unexpected character '%s' at index %d",e.charAt(t),t)}e.exports=function(e){for(var t,r,n=!1,i=!1,p=!1,d={},h=[],y=-1,m=-1,g=0;g<e.length;g++)if(r=e.charCodeAt(g),void 0===t){if(0!==g&&-1===y&&(32===r||9===r))continue;if(s(r))-1===y&&(y=g);else if(61===r&&-1!==y)t=e.slice(y,g).toLowerCase(),y=-1;else throw new o(f(e,g),e)}else if(i&&(9===r||u(r)||c(r)))i=!1;else if(s(r)){if(-1!==m)throw new o(f(e,g),e);-1===y&&(y=g)}else if(a(r)||c(r)){if(p)34===r?(p=!1,m=g):92===r?(-1===y&&(y=g),i=n=!0):-1===y&&(y=g);else if(34===r&&61===e.charCodeAt(g-1))p=!0;else if((44===r||59===r)&&(-1!==y||-1!==m))-1!==y?(-1===m&&(m=g),d[t]=n?l(e.slice(y,m)):e.slice(y,m)):d[t]="",44===r&&(h.push(d),d={}),t=void 0,y=m=-1;else throw new o(f(e,g),e)}else if(32===r||9===r){if(-1!==m)continue;if(p)-1===y&&(y=g);else if(-1!==y)m=g;else throw new o(f(e,g),e)}else throw new o(f(e,g),e);if(void 0===t||p||-1===y&&-1===m||32===r||9===r)throw new o("Unexpected end of input",e);return -1!==y?(-1===m&&(m=g),d[t]=n?l(e.slice(y,m)):e.slice(y,m)):d[t]="",h.push(d),h}},50646:function(e){"use strict";e.exports={isDelimiter:function(e){return 34===e||40===e||41===e||44===e||47===e||e>=58&&e<=64||e>=91&&e<=93||123===e||125===e},isTokenChar:function(e){return 33===e||e>=35&&e<=39||42===e||43===e||45===e||46===e||e>=48&&e<=57||e>=65&&e<=90||e>=94&&e<=122||124===e||126===e},isExtended:function(e){return e>=128&&e<=255},isPrint:function(e){return e>=32&&e<=126}}},27048:function(e,t,r){"use strict";function n(e,t){Error.captureStackTrace(this,n),this.name=this.constructor.name,this.message=e,this.input=t}r(79720).inherits(n,Error),e.exports=n},41405:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(55419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},55419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,o=this;if("function"!=typeof o||"[object Function]"!==r.call(o))throw TypeError("Function.prototype.bind called on incompatible "+o);
10for(var i=t.call(arguments,1),a=Math.max(0,o.length-i.length),s=[],c=0;c<a;c++)s.push("$"+c);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return o.apply(e,i.concat(t.call(arguments)));var r=o.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}),o.prototype){var u=function(){};u.prototype=o.prototype,n.prototype=new u,u.prototype=null}return n}},41364:function(e,t,r){"use strict";var n=r(215);e.exports=Function.prototype.bind||n},17642:function(e,t,r){"use strict";var n=r(41364);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8679:function(e,t,r){"use strict";var n=r(59864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),y=c(r),m=0;m<a.length;++m){var g=a[m];if(!i[g]&&!(n&&n[g])&&!(y&&y[g])&&!(s&&s[g])){var v=p(r,g);try{u(t,g,v)}catch(e){}}}}return t}},60885:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},38276:function(e){var t,r="html",n="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,s=/<body[^]*>/i,c=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},l="object"==typeof window&&window.DOMParser;if("function"==typeof l){var f=new l;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){return t?p.documentElement.querySelector(t).innerHTML=e:p.documentElement.innerHTML=e,p}}var d="object"==typeof document?document.createElement("template"):{};d.content&&(t=function(e){return d.innerHTML=e,d.content.childNodes}),e.exports=function(e){var l,f,p,d,h=e.match(i);switch(h&&h[1]&&(l=h[1].toLowerCase()),l){case r:return f=u(e),!a.test(e)&&(p=f.querySelector(n))&&p.parentNode.removeChild(p),!s.test(e)&&(p=f.querySelector(o))&&p.parentNode.removeChild(p),f.querySelectorAll(r);case n:case o:if(d=(f=c(e)).querySelectorAll(l),s.test(e)&&a.test(e))return d[0].parentNode.childNodes;return d;default:if(t)return t(e);return(p=c(e,o).querySelector(o)).childNodes}}},14152:function(e,t,r){var n=r(38276),o=r(1507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(i);return r&&r[1]&&(t=r[1]),o(n(e),null,t)}},1507:function(e,t,r){for(var n,o=r(47915),i=r(60885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,s=o.Element,c=o.ProcessingInstruction,u=o.Text,l={},f=0,p=i.length;f<p;f++)l[(n=i[f]).toLowerCase()]=n;function d(e){for(var t,r={},n=0,o=e.length;n<o;n++)r[(t=e[n]).name]=t.value;return r}t.formatAttributes=d,t.formatDOM=function e(t,r,n){r=r||null;for(var o=[],i=0,f=t.length;i<f;i++){var p,h,y,m=t[i];switch(m.nodeType){case 1:(y=new s(h=l[p=(p=m.nodeName).toLowerCase()]||p,d(m.attributes))).children=e("template"===h?m.content.childNodes:m.childNodes,y);break;case 3:y=new u(m.nodeValue);break;
10case 8:y=new a(m.nodeValue);break;default:continue}var g=o[i-1]||null;g&&(g.next=y),y.parent=r,y.prev=g,y.next=null,o.push(y)}return n&&((y=new c(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=o[0]||null,y.parent=r,o.unshift(y),o[1]&&(o[1].prev=o[0])),o}},30488:function(e,t,r){var n=r(47915),o=r(14152),i=r(50484),a=r(53670);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||s),t)}c.domToReact=a,c.htmlToDOM=o,c.attributesToProps=i,c.Comment=n.Comment,c.Element=n.Element,c.ProcessingInstruction=n.ProcessingInstruction,c.Text=n.Text,e.exports=c,c.default=c},50484:function(e,t,r){var n=r(25726),o=r(74606),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function c(e){return n.possibleStandardNames[e]}e.exports=function(e,t){var r,u,l,f,p,d={},h=(e=e||{}).type&&s[e.type];for(r in e){if(l=e[r],n.isCustomAttribute(r)){d[r]=l;continue}if(f=c(u=r.toLowerCase())){switch(p=n.getPropertyInfo(f),-1===i.indexOf(f)||-1===a.indexOf(t)||h||(f=c("default"+u)),d[f]=l,p&&p.type){case n.BOOLEAN:d[f]=!0;break;case n.OVERLOADED_BOOLEAN:""===l&&(d[f]=!0)}continue}o.PRESERVE_CUSTOM_ATTRIBUTES&&(d[r]=l)}return o.setStyleProp(e.style,d),d}},53670:function(e,t,r){var n=r(67294),o=r(50484),i=r(74606),a=i.setStyleProp,s=i.canTextBeChildOfNode;e.exports=function e(t,r){for(var c,u,l,f,p,d=(r=r||{}).library||n,h=d.cloneElement,y=d.createElement,m=d.isValidElement,g=[],v="function"==typeof r.replace,b=r.trim,w=0,O=t.length;w<O;w++){if(c=t[w],v&&m(l=r.replace(c))){O>1&&(l=h(l,{key:l.key||w})),g.push(l);continue}if("text"===c.type){if((u=!c.data.trim().length)&&c.parent&&!s(c.parent)||b&&u)continue;g.push(c.data);continue}switch(f=c.attribs,i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===c.type&&i.isCustomComponent(c.name,c.attribs)?a(f.style,f):f&&(f=o(f,c.name)),p=null,c.type){case"script":case"style":c.children[0]&&(f.dangerouslySetInnerHTML={__html:c.children[0].data});break;case"tag":"textarea"===c.name&&c.children[0]?f.defaultValue=c.children[0].data:c.children&&c.children.length&&(p=e(c.children,r));break;default:continue}O>1&&(f.key=w),g.push(y(c.name,f,p))}return 1===g.length?g[0]:g}},74606:function(e,t,r){var n=r(67294),o=r(41476).default,i={reactCompat:!0},a=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var r,n,o="function"==typeof t,i={},a={};for(r in e){if(n=e[r],o&&(i=t(r,n))&&2===i.length){a[i[0]]=i[1];continue}"string"==typeof n&&(a[n]=r)}return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},80645:function(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,l=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=u}return(d?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?5960464477539062e-23:0,d=n?0:i-1,h=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=p/c:t+=p*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+d]=255&a,d+=h,a/=256,u-=8);e[r+d-h]|=128*y}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
10\s]*/,c=/^\s+|\s+$/g;function u(e){return e?e.replace(c,""):""}e.exports=function(e,c){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];c=c||{};var l=1,f=1;function p(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function d(){var e={line:l,column:f};return function(t){return t.position=new h(e),g(n),t}}function h(e){this.start=e,this.end={line:l,column:f},this.source=c.source}h.prototype.content=e;var y=[];function m(t){var r=Error(c.source+":"+l+":"+f+": "+t);if(r.reason=t,r.filename=c.source,r.line=l,r.column=f,r.source=e,c.silent)y.push(r);else throw r}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return m("End of comment missing");var n=e.slice(2,r-2);return f+=2,p(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}return g(n),function(){var e,r=[];for(v(r);e=function(){var e=d(),r=g(o);if(r){if(b(),!g(i))return m("property missing ':'");var n=g(a),c=e({type:"declaration",property:u(r[0].replace(t,"")),value:n?u(n[0].replace(t,"")):""});return g(s),c}}();)!1!==e&&(r.push(e),v(r));return r}()}},36808:function(e,t,r){var n,o,i;void 0!==(o="function"==typeof(n=i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
10)+/g,decodeURIComponent)}return function r(n){function o(){}function i(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(new Date*1+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in i)i[c]&&(s+="; "+c,!0!==i[c]&&(s+="="+i[c].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),c=s.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,r){i(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}(function(){})})?n.call(t,r,t,e):n)&&(e.exports=o),e.exports=i()},80973:function(e,t,r){var n=r(71169),o=function(e){var t="",r=Object.keys(e);return r.forEach(function(o,i){var a,s=e[o];a=o=n(o),/[height|width]$/.test(a)&&"number"==typeof s&&(s+="px"),!0===s?t+=o:!1===s?t+="not "+o:t+="("+o+": "+s+")",i<r.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,n){t+=o(r),n<e.length-1&&(t+=", ")}),t):o(e)}},91296:function(e,t,r){var n=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=u||l||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,y=function(){return f.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return n;if(m(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=m(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var u=a.test(e);return u||s.test(e)?c(e.slice(2),u?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,o,i,a,s,c,u=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function b(e){var r=e-c,n=e-u;return void 0===c||r>=t||r<0||f&&n>=i}function w(){var e,r,n,o=y();if(b(o))return O(o);s=setTimeout(w,(e=o-c,r=o-u,n=t-e,f?h(n,i-r):n))}function O(e){return(s=void 0,p&&n)?v(e):(n=o=void 0,a)}function S(){var e,r=y(),i=b(r);if(n=arguments,o=this,c=r,i){if(void 0===s)return u=e=c,s=setTimeout(w,t),l?v(e):a;if(f)return s=setTimeout(w,t),v(c)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,m(r)&&(l=!!r.leading,i=(f="maxWait"in r)?d(g(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=o=s=void 0},S.flush=function(){return void 0===s?a:O(y())},S}},7544:function(e,t,r){e.exports=r(80490)},31365:function(e,t,r){e.exports=r(94288)},34603:function(e,t,r){"use strict";r.d(t,{Hu:function(){return l},Kd:function(){return a},NH:function(){return u},SA:function(){return s},UP:function(){return o},_e:function(){return i},vL:function(){return c},xo:function(){return n}});let n="access_token",o="IMOLOGIN",i="/auth/login",a="/auth/register",s="/api/auth/login",c="/api/auth/logout",u="/api/auth/signup",l="/api/auth/v1/session-check"},68566:function(e,t,r){"use strict";var n=r(67294),o=r(73606),i=r(18836);let a={user:void 0,error:void 0,isLoading:!1,checkSession:async()=>{}};t.Z=()=>(0,i.Z)()?(0,n.useContext)(o.St):a},21653:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(36808),o=r.n(n),i=r(34603),a=()=>"1"===o().get(i.UP),s=()=>a()},18836:function(e,t){"use strict";t.Z=()=>
10{if("undefined"==typeof document)return!1;let e=document.getElementById("__AUTH0_SETTINGS__");if(!e)return!1;try{var t;return JSON.parse(null!==(t=e.textContent)&&void 0!==t?t:"").enabled}catch{return!1}}},3933:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken"]},36461:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},45753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},7952:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(45753);var o=r(40909);
10Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(36461);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(3933),s=r(6266);t.enableAccessLogs=function(){}},40909:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(45753),a=[r(96204),r(16944)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},16944:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6266);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},96204:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6266);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEac
10h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,level:s[e.type]||"info",forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t,r=this.formatLogObject(e);((0,n.shouldLog)(e.type)||r.forcePush)&&(null===(t=window.DD_LOGS)||void 0===t?void 0:t.logger)&&e.level!==(0,n.getConsolaLevel)("log")&&e.level!==(0,n.getConsolaLevel)("trace")&&(r.forcePush||e.level===(0,n.getConsolaLevel)("error"))&&window.DD_LOGS.logger.log(r.message,r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},6266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(3933);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);return r.searchParams.forEach(l),r}catch(e){return{}}}},37288:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken"]},4625:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}
10function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},40311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},16036:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(40311);var o=r(76824);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(4625);
10Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(37288),s=r(45152);t.enableAccessLogs=function(){}},76824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(40311),a=[r(48408),r(11793)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},11793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(45152);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},48408:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(45152);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,level:s[e.type]||"info",forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t,r=this.formatLogObject(e);((0,n.shouldLog)(e.type)||r.forcePush)&&(null===(t=window.DD_LOGS)||void 0===t?void 0:t.logger)&&e.level!==(0,n.getConsolaLevel)("log")&&e.level!==(0,n.getConsolaLevel)("trace")&&(r.forcePush||e.level===(0,n.getConsolaLevel)("error"))&&window.DD_LOGS.logger.log(r.message,r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},45152:function(e,t,r){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(37288);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);return r.searchParams.forEach(l),r}catch(e){return{}}}},13510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=m(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),o=r(74160),i=y(r(47480)),a=r(27187),s=r(59810),c=r(53958),u=r(17841),l=r(61849),f=r(39173),p=r(67711),d=r(23278),h=y(r(88695));function y(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}let{LAST_STORED_ACCEPTED_PURPOSES_LOCALSTORAGE_NAME:g,QUEUED_TRACK_EVENT_LOCALSTORAGE_NAME:v,SEGMENT_VENDOR_ACCEPTED_LOCALSTORAGE_NAME:b}=u.LOCALSTORAGE_ITEM_NAMES,{CONSENT_EVENT_NAME:w,CONSENT_PREFS_UPDATED_TRACK_EVENT_NAME:O}=u.SEGMENT_EVENTS,S=e=>{let{postFormat:t,postId:r,postTitle:o,postType:y,targeting:m,taxonomies:S}=e,{cdp:j}=(0,n.useContext)(c.SettingsContext)||{},{siteKey:x}=(0,n.useContext)(c.SiteContext)||{},{user:_,isLoading:P}=(0,a.useCurrentUser)(),E=j?.segmentWriteKey;return((0,h.default)(),(0,n.useEffect)(()=>{P||(async()=>{let{webTracking:e}=j||{},n=_?.fabric_user_id;p.logger.debug("CDP settings: ",j),p.logger.debug("CDP user ID: ",n);let i="all"===e||"logged-in"===e&&!!n;if(!E||!i)return;let a=!1;(0,s.waitForConsentChange)(()=>{(0,s.hasConsentData)().then(e=>{if(p.logger.debug("CDP: Consent data retrieved."),e){if(!a&&(a=!0,(0,f.hasSegmentConsent)())){(0,s.createOrUpdateConsentEvent)(w,!1),(0,l.load)(E),(0,l.page)(t,r,o,y,x,m,S,n);let e=localStorage.getItem(v),i=localStorage.getItem(g);e?((0,l.track)(x,O,{userId:n}),localStorage.removeItem(v)):i||(0,l.track)(x,O,{userId:n})}let e=localStorage.getItem(g),i=localStorage.getItem(b),c=(0,s.getConsentStatus)(),p=s.checkPurposes([],[],[u.CMP_PREFERENCES.SEGMENT_SOURCE_POINT_VENDOR_ID])?.toString();
10(e&&e!==c||i&&i!==p)&&(0,f.hasSegmentConsent)()&&localStorage.setItem(v,"true"),localStorage.setItem(g,c),localStorage.setItem(b,p),(0,s.updateConsentEventByKey)(w)}}).catch(e=>{p.logger.debug("CDP: Error fetching consent data."),(0,d.errorLog)("Error fetching consent data.",e)})})})()},[P]),E)?n.default.createElement(i.default,null,n.default.createElement("link",{rel:"preload",as:"script",href:`/segment/analytics.js/v1/${E}/analytics.min.js`}),n.default.createElement("script",{dangerouslySetInnerHTML:{__html:` 11 !function() { 12 var analytics = window.analytics = window.analytics || []; 13 if (!analytics.initialize) { 14 if (analytics.invoked) 15 window.console && console.error && console.error("Segment snippet included twice."); 16 else { 17 analytics.invoked = !0; 18 analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "screen", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware", "register"]; 19 analytics.factory = function(e) { 20 return function() { 21 if (window.analytics.initialized) { 22 return window.analytics[e].apply(window.analytics, arguments); 23 }; 24 var i = Array.prototype.slice.call(arguments); 25 if (["track", "screen", "alias", "group", "page", "identify"].indexOf(e) > -1) { 26 var c = document.querySelector("link[rel='canonical']"); 27 i.push({ 28 __t: "bpc", 29 c: c && c.getAttribute("href") || void 0, 30 p: location.pathname, 31 u: location.href, 32 s: location.search, 33 t: document.title, 34 r: document.referrer 35 }); 36 } 37 i.unshift(e); 38 analytics.push(i); 39 return analytics 40 } 41 }; 42 for (var i = 0; i < analytics.methods.length; i++) { 43 var key = analytics.methods[i]; 44 analytics[key] = analytics.factory(key) 45 } 46 analytics.load = function(key, i) { 47 var t = document.createElement("script"); 48 t.type = "text/javascript"; 49 t.defer = !0; 50 t.src = "/segment/analytics.js/v1/" + key + "/analytics.min.js"; 51 var n = document.getElementsByTagName("script")[0]; 52 n.parentNode.insertBefore(t, n); 53 analytics._loadOptions = i; 54 }; 55 analytics._writeKey = "${E}"; 56 analytics.SNIPPET_VERSION = "5.2.0"; 57 } 58 } 59 }(); 60 `}})):null};S.defaultProps={postFormat:"",postId:"",postTitle:"",postType:"",targeting:{},taxonomies:[]},S.propTypes={postFormat:o.string,postId:o.string,postTitle:o.string,postType:o.str
60ing,targeting:o.object,taxonomies:(0,o.arrayOf)(o.object)},t.default=S},39173:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.hasZephrConsent=t.hasSegmentConsent=t.hasPianoConsent=t.hasGaConsent=t.getSegmentAnonymousId=t.getConsentObject=void 0;var i=r(59810),a=r(17841),s=r(23278);let{ANALYTICS_STORAGE_PURPOSE_NAME:c,GOOGLE_PRODUCTS_VENDOR_ID:u,PIANO_SOURCE_POINT_VENDOR_ID:l,REQUIRED_PURPOSES_PIANO:f,REQUIRED_PURPOSES_ZEPHR:p,ZEPHR_SOURCE_POINT_VENDOR_ID:d,REQUIRED_PURPOSES_SEGMENT:h,SEGMENT_SOURCE_POINT_VENDOR_ID:y}=a.CMP_PREFERENCES;t.hasGaConsent=()=>(0,i.checkPurposes)(null,null,[u],[c]);let m=()=>(0,i.checkPurposes)(f,[l]);t.hasPianoConsent=m;let g=()=>(0,i.checkPurposes)(p,[],[d]);t.hasZephrConsent=g,t.hasSegmentConsent=()=>(0,i.checkPurposes)(h,[],[y]),t.getSegmentAnonymousId=()=>{try{return window.analytics.user().anonymousId()||null}catch(e){return(0,s.errorLog)("Error getting Segment anonymousId",e),null}};let v=async()=>{try{let e=await (0,i.getConsentStatus)(),t=JSON.parse(e),r=Object.entries(t).reduce((e,t)=>{let[r,n]=t,o=a.CONSENT_PURPOSE_TO_SEGMENT_CATEGORY_MAP[r];return o&&(e[o]=n),e},{});return{categoryPreferences:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({Zephr:g(),Piano:m()},r)}}catch(e){return(0,s.errorLog)(`Consent-checker returned non-JSON consent status. Returned ${typeof userConsent}. ${e.message}`,e),null}};t.getConsentObject=v},17841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOCIAL_LOGIN_METHOD_PROVIDERS=t.SEGMENT_EVENTS=t.SEGMENT_DATA_GTM_EVENT=t.PREMIUM_EVENTS=t.LOCALSTORAGE_ITEM_NAMES=t.CONSENT_PURPOSE_TO_SEGMENT_CATEGORY_MAP=t.COLLECTIONS_EVENTS=t.CMP_PREFERENCES=t.BRAND_CODES_MAP=t.AUTH_EVENT_COOKIES=void 0,t.AUTH_EVENT_COOKIES={LOGIN_EVENT_COOKIE_NAME:"SegmentLoginEvent",LOGOUT_EVENT_COOKIE_NAME:"SegmentLogoutEvent"},t.BRAND_CODES_MAP=Object.freeze({bbcgoodfood:"gf",gardenersworld:"gw",historyextra:"hex",madeformums:"mfm",notavailable:"na",olivemagazine:"ol",radiotimes:"rt",matchoftheday:"motd",topgear:"tg",easycook:"ezc"}),t.CMP_PREFERENCES={ANALYTICS_STORAGE_PURPOSE_NAME:"Analytics Storage",GOOGLE_PRODUCTS_VENDOR_ID:"62b2ffcf4e5f6706d4da8cc8",SEGMENT_SOURCE_POINT_VENDOR_ID:"602140eba228631361059572",PIANO_SOURCE_POINT_VENDOR_ID:"412",ZEPHR_SOURCE_POINT_VENDOR_ID:"5f8580a91d467d132d0ac62d",REQUIRED_PURPOSES_SEGMENT:[1,3,4,5,6,8,9,10,11],REQUIRED_PURPOSES_PIANO:[1,2,3,4,5,6,7,8,9,10,11],REQUIRED_PURPOSES_ZEPHR:[1,5,6,8,9,10,11]},t.CONSENT_PURPOSE_TO_SEGMENT_CATEGORY_MAP={1:"StoreOnDevice",2:"BasicAd",3:"CreatePersonalizedAds",4:"SelectPersonalizedAds",5:"CreatePersonalizedContentProfile",6:"SelectPersonalizedContent",7:"AdPerformance",8:"ContentPerformance",9:"MarketResearch",10:"DevelopProducts",11:"LimitedDataSelectContent"},t.LOCALSTORAGE_ITEM_NAMES={LAST_STORED_ACCEPTED_PURPOSES_LOCALSTORAGE_NAME:"last-stored-accepted-purposes",QUEUED_TRACK_EVENT_LOCALSTORAGE_NAME:"consent-prefs-updated-track-event-queued",SEGMENT_VENDOR_ACCEPTED_LOCALSTORAGE_NAME:"last-stored-segment-vendor-accepted-state"},t.SEGMENT_EVENTS={CONSENT_EVENT_NAME:"segment",CONSENT_PREFS_UPDATED_TRACK_EVENT_NAME:"Segment Consent Preference Updated",TRACK_EVENT_NAME:"segmentTrack"},t.SOCIAL_LOGIN_METHOD_PROVIDERS=["apple","facebook","google"],t.PREMIUM_EVENTS={checkoutClose:"checkout_abandoned",checkoutComplete:"checkout_completed"},t.COLLECTIONS_EVENTS={collectionCreated:"collection_created",collectionItemAdded:"collection_item_added",itemSaved:"content_saved"},t.SEGMENT_DATA_GTM_EVENT="segment_data"},61849:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.withAnalyticsInitializedCheck=t.track=t.reset=t.page=t.load=t.identify=t.getGaData=void 0;var a=r(23278),s=r(25761),c=r(39173);let u=e=>function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{window.analytics?.ready(async()=>{await e(...r)})}catch(e){(0,a.errorLog)("Error dispatching analytics event",e)}};t.withAnalyticsInitializedCheck=u;let l=async e=>{try{return await (0,s.getGaData)(e)}catch(e){return{}}};t.getGaData=l,t.identify=u(async function(e){let{loginMethod:t=null,newsletterName:r=null,registrationMethod:n=null,userId:o=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=(0,a.getBrandCode)(e||"notavailable"),u=i(i(i(i(i({},t&&{[`acc_${s}_login_method`]:t}),r&&{[r]:!0}),n&&{[`acc_${s}_registration_method`]:n}),o&&{[`acc_${s}_guid`]:o}),await l(s)),f={brand_code:s,consent:await (0,c.getConsentObject)()};o?window.analytics.identify(o,u,f):window.analytics.identify(u,f)}),t.load=e=>{e&&window.analytics.load(e)},t.page=u(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"notavailable",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,{cat:p=[],channel:d="",primary_cat:h=""}=s?.dfp||{},y=s?.piano?.find(e=>"subscriptionExperience"===e.key)?.value||"",m=(0,a.getBrandCode)(o),g=u.reduce((e,t)=>[...e,...t.terms?.map(e=>`${t.slug}_${e.slug}`)],[]),v=i({name:r,brand_code:m,categories:p,channel:d,format:e,item_id:t.toString(),primary_cat:h,site_name:o,subscriber_experience:y,keywords:g},await l(m)),b={brand_code:m,consent:await (0,c.getConsentObject)(),traits:i({},f&&{[`acc_${m}_guid`]:f})};window.analytics.page(n,r,v,b)}),t.reset=u(()=>{window.analytics.reset()}),t.track=u(async function(e,t){let{collectionId:r=null,method:n=null,postId:o=null,termId:s=null,transactionId:u=null,userId:f=null,videoId:p=null,reactionType:d=null,listings:h=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};if(!t||void 0===window.analytics)return;let m=e||"notavailable",g=(0,a.getBrandCode)(m),v=i(i(i(i(i(i(i(i(i({brand_code:g,site_name:m},r&&{collection_id:r}),n&&{method:n}),o&&{item_id:o.toString()}),s&&{term_id:s}),u&&{transaction_id:u}),p&&{video_id:p}),d&&{reaction_type:d}),h&&{listings:h}),await l(g)),b={brand_code:g,consent:await (0,c.getConsentObject)(),traits:i({},f&&{[`acc_${g}_guid`]:f})};window.analytics.track(t,v,b),y()})},25761:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGaData=void 0;var n=r(39173);t.getGaData=e=>new Promise((t,r)=>{if(!(0,n.hasGaConsent)()){r(Error("No GA consent"));return}let o=t=>({[`acc_${e}_ga_id`]:t});if(window.ga_client_id){t(o(window.ga_client_id));return}window.addEventListener("ga_client_id_known",e=>t(o(e.detail.id)))})},81824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(67294),o=r(27187),i=r(61849);t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{user:r,isLoading:a}=(0,o.useCurrentUser)();(0,n.useEffect)(()=>{if(a)return()=>{};let n=n=>{(n.target?.rel?.includes("sponsored")||n.target?.parentElement?.rel?.includes("sponsored"))&&(0,i.track)(t,"affiliate_clicked",{postId:e,userId:r?.fabric_user_id})},o=document.querySelector(".post__content");return o&&o.addEventListener("click",n),()=>{o&&o.removeEventListener("click",n)}},[e,t,a,r])}},82113:function(e,t,r){"use strict";
60Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(67294),o=r(27187),i=r(61849),a=r(17841);t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{user:r,isLoading:s}=(0,o.useCurrentUser)(),{collectionCreated:c,collectionItemAdded:u,itemSaved:l}=a.COLLECTIONS_EVENTS;(0,n.useEffect)(()=>{if(s)return()=>{};let n=r?.fabric_user_id,o=r=>{let{collectionId:o}=r.detail;(0,i.track)(t,c,{collectionId:o,postId:e,userId:n})},a=r=>{let{collectionId:o}=r.detail;(0,i.track)(t,u,{collectionId:o,postId:e,userId:n})},f=()=>{(0,i.track)(t,l,{postId:e,userId:n})};return window.addEventListener(c,o),window.addEventListener(u,a),window.addEventListener(l,f),()=>{window.removeEventListener(c,o),window.removeEventListener(u,a),window.removeEventListener(l,f)}},[e,t,s,r])}},18606:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(27187),s=r(61849);t.default=()=>{let{user:e,isLoading:t}=(0,a.useCurrentUser)(),r=()=>e?.fabric_user_id;return{identify:(e,n)=>{if(t)return;let o=r();(0,s.identify)(e,i(i({},n||{}),{},{userId:o}))},page:(e,n,o,i,a,c,u)=>{if(t)return;let l=r();(0,s.page)(e,n,o,i,a,c,u,l)},track:(e,n,o,a)=>{if(t)return;let c=r();(0,s.track)(e,n,i(i({},o||{}),{},{userId:c}),a)}}}},64786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(67294),o=r(27187),i=r(17841),a=r(61849);let{checkoutClose:s,checkoutComplete:c}=i.PREMIUM_EVENTS;t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{user:t,isLoading:r}=(0,o.useCurrentUser)();(0,n.useEffect)(()=>{if(r)return()=>{};let n=t?.fabric_user_id,o=()=>{(0,a.track)(e,s,{userId:n})},i=t=>{let{termId:r,transactionId:o}=t.detail;(0,a.track)(e,c,{termId:r,transactionId:o,userId:n})};return window.addEventListener(s,o),window.addEventListener(c,i),()=>{window.removeEventListener(s,o),window.removeEventListener(c,i)}},[e,r,t])}},88695:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(67294),s=r(27187),c=r(39173),u=r(17841),l=r(61849);t.default=()=>{let{user:e,isLoading:t}=(0,s.useCurrentUser)(),r=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(i(i({},e),{},{event:u.SEGMENT_DATA_GTM_EVENT}))};(0,a.useEffect)(()=>{if(t)return;let n=e?.fabric_user_id;(0,l.withAnalyticsInitializedCheck)(async()=>{(0,c.hasGaConsent)()&&(0,c.hasSegmentConsent)()&&r({segment_user_id:n??null,segment_anonymous_id:(0,c.getSegmentAnonymousId)()??null})})()},[t,e])}},28582:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(67294),a=r(27187),s=r(17841),c=r(61849);let{TRACK_EVENT_NAME:u}=s.SEGMENT_EVENTS;t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{user:r,isLoading:s}=(0,a.useCurrentUser)();(0,i.useEffect)(()=>
60{if(s)return()=>{};let i=i=>{let{event:a,options:s,callback:u}=i.detail;(0,c.track)(t,a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({postId:e,userId:r?.fabric_user_id},s),u)};return window.addEventListener(u,i),()=>window.removeEventListener(u,i)},[t,s,r])}},54938:function(e,t,r){"use strict";Object.defineProperty(t,"wo",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BB",{enumerable:!0,get:function(){return n.dispatchUserStatusEvents}}),Object.defineProperty(t,"J6",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"BP",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"hI",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ml",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"r3",{enumerable:!0,get:function(){return u.default}}),r(61849);var n=r(91747),o=l(r(13510)),i=l(r(81824)),a=l(r(82113)),s=l(r(18606)),c=l(r(64786)),u=l(r(28582));function l(e){return e&&e.__esModule?e:{default:e}}},67711:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=void 0,t.logger="undefined"==typeof Proxy?console:new Proxy({},{get:(e,t)=>function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];window.IM=window.IM||{},window.IM.logger=window.IM.logger||{queue:[]},e[t]&&e[t](...n),window.IM.logger.queue.push(()=>{let r=window.IM.logger.withName("cdp-segment");Object.assign(e,r),r[t](...n)})}})},91747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatchUserStatusEvents=void 0;var n,o=r(70591),i=(n=r(36808))&&n.__esModule?n:{default:n},a=r(67711),s=r(61849),c=r(17841);let{LOGIN_EVENT_COOKIE_NAME:u,LOGOUT_EVENT_COOKIE_NAME:l}=c.AUTH_EVENT_COOKIES,f=async(e,t)=>{let{[u]:r,[l]:n}=i.default.get();if(r){let r=await (0,o.getUserLoginMethod)(),n=c.SOCIAL_LOGIN_METHOD_PROVIDERS.find(e=>r?.toLowerCase()?.includes(e))||"email";(0,s.identify)(e,{loginMethod:n,userId:t}),(0,s.track)(e,"user_logged_in",{method:n,userId:t}),i.default.remove(u)}n&&(a.logger.debug("CDP: Segment reset event fired to assign known user anonymous Segment ID."),(0,s.reset)(),i.default.remove(l))};t.dispatchUserStatusEvents=f},23278:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBrandCode=t.errorLog=void 0;var n=r(49768),o=r(17841);t.getBrandCode=e=>o.BRAND_CODES_MAP[e]||"na",t.errorLog=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.logger.error("string"==typeof t[0]?`CDP: ${t[0]}`:t[0],...t.slice(1))}},27187:function(e,t,r){"use strict";r.r(t),r.d(t,{CurrentUserProvider:function(){return a},useCurrentUser:function(){return c},useLoggedIn:function(){return p}});var n=r(67294),o=r(73606),i=()=>{if("undefined"==typeof document)return!1;let e=document.getElementById("__AUTH0_SETTINGS__");if(!e)return!1;try{var t;return JSON.parse(null!==(t=e.textContent)&&void 0!==t?t:"").enabled}catch{return!1}},a=e=>{let{children:t}=e;return i()?n.createElement(o.dr,null,t):t};let s={user:void 0,error:void 0,isLoading:!1,checkSession:async()=>{}};var c=()=>i()?(0,n.useContext)(o.St):s,u=r(36808),l=r.n(u),f=()=>"1"===l().get("IMOLOGIN"),p=()=>f()},70591:function(e,t,r){"use strict";r.r(t),r.d(t,{getIsLoggedIn:function(){return S},getTokenDuration:function(){return j},getTokenProperty:function(){return x},getUserEmail:function(){return m},getUserGuid:function(){return p},getUserInfo:function(){return _},getUserLoginMethod:function(){return h},getUserRole:function(){return y},getUserVanityId:function(){return d},isUserAdmin:function(){return g},normaliseVanityId:function(){return f},pushMemberStatusEvents:function(){return P},shouldAuthenticateUser:function(){return v},validate:function(){return b}});var n=r(63144),o=r.n(n),i=r(49768);
60class a extends Error{constructor(e,t){var r,n,o;super(e),n=void 0,(r="symbol"==typeof(o=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r="statusCode","string"))?o:o+"")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,this.name="ManagementClientError",this.statusCode=t}}let s=async()=>{try{let e=await o()("/api/auth/me");if(204===e.status)return i.logger.debug("No auth profile available - user not authenticated"),null;if(!e.ok){let{status:t}=e;throw new a("Auth0 user profile request failed.",t)}return await e.json()}catch(e){return i.logger.error(e),null}},c={sub:"fabric_user_id",vanity_id:"vanityId",email:"email",idp:"idp",role:"role",name:"name",nickname:"nickname",picture:"picture",updated_at:"updated_at"},u=async e=>{let t=await s(),r=c[e];return t?t[r]:null},l=async(e,t,r,n)=>u(e);var f=e=>Array.isArray(e)?e.sort()[0]:e;let p=async(e,t,r)=>l("sub",e,t,r),d=async(e,t,r)=>{let n=await l("vanity_id",e,t,r);return n?f(n):null},h=async(e,t,r)=>l("idp",e,t,r),y=async(e,t,r)=>l("role",e,t,r),m=async(e,t,r)=>l("email",e,t,r),g=async(e,t,r)=>{let n=await y(e,t,r);return!!n&&(Array.isArray(n)||(n=[n]),n.some(e=>e.includes("wp-admin")))},v=async(e,t,r,n)=>{switch(e){case"never":return!1;case"always":return!0;case"admin":return g(t,r,n);default:throw Error(`Unknown auth type: ${e}`)}},b=async(e,t,r)=>(i.logger.warn("Attempted to validate a JWT user token for a site that has Auth0 enabled"),null);var w=r(36808),O=r.n(w),S=()=>"1"===O().get("IMOLOGIN"),j=async(e,t,r)=>(i.logger.warn("Get token duration called for site with Auth0 enabled"),null),x=async(e,t,r,n)=>{i.logger.warn("Get token property called for a site with Auth0 feature enabled")},_=async(e,t,r)=>(i.logger.warn("Attempted to call fabric user info endpoint for site with Auth0 enabled"),null),P=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],i.logger.debug("Push member status event is temporarily disabled as this site has Auth0 feature enabled.")}},40054:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken"]},61200:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},82742:function(e,t,r){"use strict";
60Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},49768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(82742);var o=r(61171);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(61200);
60Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(40054),s=r(91727);t.enableAccessLogs=function(){}},61171:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(82742),a=[r(82509),r(96245)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},96245:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91727);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},82509:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91727);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,level:s[e.type]||"info",forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t,r=this.formatLogObject(e);((0,n.shouldLog)(e.type)||r.forcePush)&&(null===(t=window.DD_LOGS)||void 0===t?void 0:t.logger)&&e.level!==(0,n.getConsolaLevel)("log")&&e.level!==(0,n.getConsolaLevel)("trace")&&(r.forcePush||e.level===(0,n.getConsolaLevel)("error"))&&window.DD_LOGS.logger.log(r.message,r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},91727:function(e,t,r){"use strict";
60Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(40054);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);return r.searchParams.forEach(l),r}catch(e){return{}}}},18171:function(e,t,r){"use strict";var n=r(21151);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},74160:function(e,t,r){e.exports=r(18171)()},21151:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},68486:function(e,t,r){"use strict";let n=(0,r(67294).createContext)(null);t.Z=n},79804:function(e,t,r){"use strict";let n=(0,r(67294).createContext)(null);t.Z=n},22557:function(e,t,r){"use strict";let n=(0,r(67294).createContext)(e=>{let{children:t}=e;return t});t.Z=n},84450:function(e,t,r){"use strict";let n=(0,r(67294).createContext)(null);t.Z=n},6346:function(e,t,r){"use strict";let n=(0,r(67294).createContext)({});t.Z=n},18769:function(e,t,r){"use strict";let n=(0,r(67294).createContext)(null);t.Z=n},42485:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(67294),o=r(94184),i=r.n(o),a=r(22120),s=r(85893);let c=e=>{let{global:t="adq",script:r}=e,o=(0,n.useRef)(null),i=`(window.${t} = window.${t} || []).push(${r});`;return((0,n.useEffect)(()=>{if("string"==typeof r&&o.current?.innerHTML==="<script></script>"){let e=document.createElement("script");return e.innerHTML=i,o.current.innerHTML="",o.current.appendChild(e),()=>{e.remove()}}},[]),"string"!=typeof r)?null:c.isSSR?(0,s.jsx)("div",{ref:o,children:(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:i}})}):(0,s.jsx)("div",{ref:o,children:(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0})})};c.isSSR=!1,c.displayName="AdQueue";var u=r(33055);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join("--")};var f=r(30899);let p=()=>{let e=window;return e.googletag||(e.googletag={cmd:[]}),e.googletag.cmd||(e.googletag.cmd=[]),e.googletag},d=e=>Object.entries(e).filter(e=>"function"==typeof e[1]),h=(e,t)=>t.slot.getSlotId().getDomId()===e,y=e=>{p().cmd.push(e)},m=(e,t)=>
60function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];let[i]=n;h(e,i)&&t(i)},g=e=>t=>{let[r,n]=t;y(()=>{p().pubads().addEventListener(r,m(e,n))})},v=e=>t=>{let[r,n]=t;y(()=>{p().pubads().removeEventListener(r,m(e,n))})},b=(e,t,r)=>n=>{let{size:o,isEmpty:i}=n;h(e,n)&&t.current&&!i&&o&&!r&&(t.current.style.minHeight=`${o[1]}px`)},w=e=>{let{className:t=null,gptEventListeners:r=null,hide:o=!1,index:p=1,isOutOfPage:h=!1,noResize:y=!1,showLabel:m=!1,showBorders:w=!1,slotKey:O,searchTerm:S=null,fullSearchTerm:j=null,containerClassName:x=null}=e,{targets:{subcat:_}={},suppressionOptions:{disableAllAds:P}={},stitcher:{disableAllAdvertising:E}={}}=(0,n.useContext)(f.Z).adSettings??{},{t:A}=(0,a.$G)(),k=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!_)return;let e=l(_,O,String(p));return g(e)(["slotRenderEnded",b(e,k,y)]),()=>{v(e)(["slotRenderEnded",b(e,k,y)])}},[_]),(0,n.useEffect)(()=>{if(!r||!_)return;let e=l(_,O,String(p));return d(r).forEach(g(e)),()=>{d(r).forEach(v(e))}},[_]),_&&!0!==E&&!0!==P)?(0,s.jsxs)(u.Z,{className:i()(t,"ad-slot","hidden-print",`ad-slot__${O}`,{"ad-slot--oop":h,"ad-slot--bordered":w}),"data-testid":"ad-slot",children:[(0,s.jsx)("div",{className:i()("ad-slot__container",`ad-slot__${O}-container`,x),ref:k,"data-testid":"ad-slot__container",children:!o&&(0,s.jsxs)(s.Fragment,{children:[m&&(0,s.jsx)("div",{className:"ad-slot__label chromatic-ignore",children:(0,s.jsx)("span",{className:"ad-slot__text",children:A("atoms.adSlot.adLabel")})}),(0,s.jsx)("div",{id:l(_,O,String(p)),"data-testid":"ad-unit",className:"ad-unit"})]})}),!o&&(0,s.jsx)(c,{script:`(api) => api.addSlot(${JSON.stringify({key:O,index:p,searchTerm:S,fullSearchTerm:j})})`})]},l(_,O,String(p))):null};w.displayName="AdSlot";var O=w},22359:function(e,t,r){"use strict";var n=r(8307),o=r(67294),i=r(30899),a=r(42485),s=r(85893);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let l={},f=e=>{let t,r,{adSettings:n=l,index:c=1,location:f,slotKey:p="card",searchTerm:d=null,fullSearchTerm:h=null}=e,{adSettings:y=l}=(0,o.useContext)(i.Z),m=u(u({},y),n),g=m.nativeAdvertiser,v=m.targets?.subcat==="article";if(!f)return null;let b=null;return m?.searchQuery&&(t=m?.searchQuery.replace(/[ ,]+/g,","),r=m?.searchQuery),"nova"!==g||v||(b=(0,s.jsx)(a.Z,{slotKey:p,index:c,searchTerm:d??t??null,fullSearchTerm:h??r??null})),b};f.displayName="AdSlotNative",t.Z=f},74349:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(71738),a=r(85893);let s=e=>{let{active:t=!1,className:r=null,onClick:s=null,hideBackground:c=!1,sctrack:u=null}=e;return(0,n.useEffect)(()=>{let e="has-overlay",r=()=>document.body.classList.remove(e);return t?document.body.classList.add(e):r(),()=>{r()}},[t]),(0,a.jsx)("div",{className:(0,o.Z)(r,"backdrop",{"backdrop--active":t,"backdrop--solid-white":c}),role:"presentation",onClick:()=>s(),"data-sctrack":(0,i.Z)("Backdrop",u)})};s.displayName="Backdrop",t.Z=s},11422:function(e,t,r){"use strict";var n=r(8307),o=r(4730);r(67294);var i=r(90512),a=r(77107),s=r(60614),c=r(85893);let u=["as","ariaLabelledBy","children","color","className","withBorder","withPadding","inverted"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
60h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=e=>{let{as:t="div",ariaLabelledBy:r,children:n,color:l="baseWhite",className:p="",withBorder:d=!1,withPadding:h=!0,inverted:y=!1}=e,m=(0,o.Z)(e,u),{colors:g}=(0,a.Z)(),v=(0,i.Z)(p,"box",{"box--with-border":d,"pa-sm":h,"box--inverted":y});return(0,c.jsx)(t,f(f({className:v,style:{backgroundColor:g[l]||void 0},"data-testid":"box","aria-labelledby":r},(0,s.Z)(m)),{},{children:n}))};p.displayName="Box",t.Z=p},14306:function(e,t,r){"use strict";var n=r(67294),o=r(85893);let i=e=>{let{id:t=null,wrapperCssClass:r=null,useEsi:i=!1,apiUrl:a=null}=e,s=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!a||!t||i)return;let e=`${a}/script/init.js`,r=document.createElement("script");r.async=!0,r.setAttribute("data-id",t),r.src=e,s.current&&s.current.appendChild(r)},[]),a&&t)?i?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:`<esi:include src=${a}/ssr/${t}>`}}):(0,o.jsx)("div",{className:r??void 0,children:(0,o.jsx)("div",{ref:s,"data-widget-id":t})}):null};i.displayName="BurdaffiWidget",t.Z=i},26140:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(67294),o=r(22120),i=r(31654),a=r(30899),s=r(94184),c=r.n(s),u=r(86583),l=r(85893);let f=e=>{let{providerName:t=null,brandName:r=null,consentModalButton:n=null,className:i=null,sourcepointUUID:a=null}=e,{t:s}=(0,o.$G)(),f=r?`${s("atoms.consentPlaceholder.bodyTextWithBrand").replace(/\[brandName\]/g,r)}`:`${s("atoms.consentPlaceholder.bodyText")}`;return f=f.replace(/\[providerName\]/g,t??""),(0,l.jsxs)("div",{className:c()("consent-placeholder consent-placeholder--generic",i),"data-testid":"consent-placeholder",children:[(0,l.jsx)(u.Z,{className:"consent-placeholder__heading section-heading-1",size:4,children:`${s("atoms.consentPlaceholder.headingText")}`}),(0,l.jsx)("p",{className:"consent-placeholder__text mb-0 mt-0",children:f}),n&&(0,l.jsx)("button",{className:"consent-placeholder__button button--adaptive mt-sm","data-cmp":"true",onClick:e=>{e.preventDefault();let t=window;a&&t._sp_?.gdpr&&t._sp_.gdpr.loadPrivacyManagerModal?.(a)},type:"button",children:(0,l.jsx)("div",{className:"button__content",children:`${s("atoms.consentPlaceholder.buttonText")}`})})]})};f.displayName="Placeholders.GenericPlaceholder";let p=e=>{let{providerName:t=null,brandName:r=null,className:n=null}=e,{t:i}=(0,o.$G)(),a=r?`${i("atoms.consentPlaceholder.consentOrPay.bodyText").replace(/\[providerName\]/g,r)}`:`${i("atoms.consentPlaceholder.consentOrPay.bodyText").replace(/\[providerName\]/g,t??"")}`;return(0,l.jsxs)("div",{className:c()("consent-placeholder consent-placeholder--consent-or-pay",n),"data-testid":"consent-placeholder",children:[(0,l.jsx)(u.Z,{className:"consent-placeholder__heading section-heading-1",size:4,children:`${i("atoms.consentPlaceholder.headingText")}`}),(0,l.jsx)("p",{className:"consent-placeholder__text mb-0 mt-0",children:a}),(0,l.jsx)("button",{type:"button",className:"consent-placeholder__button button--adaptive mt-sm",onClick:e=>{e.preventDefault(),window?.cp?.("logout")},children:(0,l.jsx)("div",{className:"button__content",children:`${i("atoms.consentPlaceholder.consentOrPay.buttonText")}`})})]})};p.displayName="Placeholders.ConsentOrPayPlaceholder";let d=e=>{let{providerName:t=null,brandName:r=null,className:n=null,requiredConsent:a={}}=e,{t:s}=(0,o.$G)(),f=r?`${s("atoms.consentPlaceholder.customConsent.bodyTextWithBrand").replace(/\[brandName\]/g,r)}`:`${s("atoms.consentPlaceholder.customConsent.bodyText")}`;return f=f.replace(/\[providerName\]/g,t??""),(0,l.jsxs)("div",{className:c()("consent-placeholder consent-placeholder--custom-consent",n),"data-testid":"consent-placeholder",children:[(0,l.jsx)(u.Z,{className:"consent-placeholder__heading section-heading-1",size:4,children:`${s("atoms.consentPlaceholder.headingText")}`}),(0,l.jsx)("p",{className:"consent-placeholder__text mb-0 mt-0",children:f}),(0,l.jsx)("button",{type:"button",className:"consent-placeholder__button button--adaptive mt-sm",onClick:e=>{e.preventDefault(),(0,i.setSourcepointCustomConsent)({contentName:t,purposeIds:a?.purposeIds,vendorIds:a?.vend
60orIds})},children:(0,l.jsx)("div",{className:"button__content",children:`${s("atoms.consentPlaceholder.customConsent.buttonText")}`})})]})};d.displayName="Placeholders.CustomConsentPlaceholder";let h={},y=e=>{let{brandName:t=null,className:r=null,consentModalButton:s=null,providerName:c=null,requiredConsent:u=h}=e,{t:y}=(0,o.$G)(),m=(0,n.useContext)(a.Z),g=m?.adSettings?.sourcepoint?.contentPassEnabled,v=m?.adSettings?.business==="immediate",b=m?.adSettings?.sourcepoint?.sourcepointUUID,w=!!(u&&((u?.purposeIds?.length??0)>0||(u?.vendorIds?.length??0)>0)),{0:O,1:S}=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=!1;return!g||w?S(!1):(async()=>{let t=await (0,i.isLoggedIntoContentpass)();e||S(t)})(),()=>{e=!0}},[]);let j=c?c.trim():`${y("atoms.consentPlaceholder.genericThirdParty")}`;if(w&&v){let e=(u?.purposeIds?.length??0)>0?(0,i.getSourcepointPurposeIds)(u?.purposeIds??[]):[];return(0,l.jsx)(d,{brandName:t,className:r,providerName:j,requiredConsent:{purposeIds:e,vendorIds:u?.vendorIds||[]}})}return g&&O?(0,l.jsx)(p,{brandName:t,className:r,providerName:j}):(0,l.jsx)(f,{brandName:t,className:r,consentModalButton:g?null:s,providerName:j,sourcepointUUID:b})};y.displayName="ConsentPlaceholder";var m=y},66991:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(4730),o=r(8307),i=r(67294),a=r(47480),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=r(1902);function u(e){return e.toUpperCase()}var l=r(30899),f=r(85893);let p=["children"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,o.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e||{},n=t||{};return[...new Set([...Object.keys(r),...Object.keys(n)])].reduce((e,t)=>{let o=h(h({},r[t]),n[t]);return Object.keys(o).length?h(h({},e),{},{[t]:o}):e},{})},m=e=>{var t;return`__${void 0===t&&(t={}),(0,c.B)(e,s({delimiter:"_",transform:u},t))}__`},g=e=>{let{children:t}=e,r=(0,n.Z)(e,p),o=y((0,i.useContext)(l.Z),r);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.default,{children:Object.entries(o).map(e=>{let[t,r]=e,n=m(t);return(0,f.jsx)("script",{type:"application/json",id:n,dangerouslySetInnerHTML:{__html:JSON.stringify(r)}},t)})}),(0,f.jsx)(l.Z.Provider,{value:o,children:t})]})};g.displayName="DataProvider";var v=g},8863:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(85893);let a=e=>{let{children:t=null,className:r=null,listview:a=!1,singleColumn:s=!1}=e;return(0,i.jsx)("div",{className:(0,o.Z)("dynamic-cards-grid",{"dynamic-cards-grid--single-column":s,"dynamic-cards-grid--listview":a},r),"data-nosnippet":"true",children:n.Children.toArray(t).map(e=>(0,i.jsx)("div",{className:"dynamic-cards-grid__item",children:e},e.key))})};a.displayName="DynamicCardsGrid",t.Z=a},86206:function(e,t,r){"use strict";var n=r(8307),o=r(67294),i=r(90512),a=r(4298),s=r.n(a),c=r(21626),u=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=e=>{let{className:t=null,videoId:r=null,playerType:n,breadcrumbs:a=[],postType:l="",keywords:p=[],schema:d=null,baseUrl:h="https://cdn.12341234.pl/player/prod/",disablePlaylist:y=!1,disableAds:m=!1,disableAutoplay:g=!1,isAdult:v=!1,postId:b=null}=e,w=f(f({},r&&{videoId:r}),{}
60,{playerType:n,breadcrumbs:a,postType:l,keywords:p,disablePlaylist:y,disableAds:m,disableAutoplay:g,isAdult:v},b&&{postId:b}),O=(0,o.useId)(),S=(0,o.useId)(),j=(0,o.useRef)(null),x=(0,o.useRef)(null);(0,o.useEffect)(()=>{j.current&&(j.current.id=O),x.current&&(x.current.id=S),window.EdiPlayerQueue=window.EdiPlayerQueue||[],window.EdiPlayerQueue.push([O,w])},[]);let _=`${h}player-loader.min.js`;return(0,u.jsxs)("div",{className:(0,i.Z)("edi-player",t),"data-testid":"ediplayer",children:[(0,u.jsx)("img",{alt:"Video placeholder",className:"edi-player__placeholder image__img","data-item-name":"Video placeholder",loading:"eager",ref:x,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAFoCAIAAABIUN0GAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEf0lEQVR42u3VMQEAIADDsIJ/jdOCC65EQp+ebQEAf10JAMCAAcCAAQADBgADBgAMGAAMGAAwYAAwYADAgAHAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAwIABwIABwIABAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAcCAAQADBgADBgAMGAAMGAAwYAAwYADAgAHAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAwIABwIABwIABAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAcCAAQADBgADBgAMGAAMGAAwYAAwYADAgAHAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAwIABwIABwIABAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAcCAAQADBgADBgAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYAAwYADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgADBgAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYAAwYADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgADBgAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYAAwYADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAMGAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgADBgAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgADBgAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYAAwYADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAMGAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgADFgCADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAwYAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYADBgADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAwYAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYADBgADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAwYAAwYAAwYADAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAMGAAwIABwIABAAMGAAMGAAwYAAwYADBgADBgADBgAMCAAcCAAQADBgADBgAMGAAMGAAwYAAwYADAgAHAgAHAgAEAAwYAAwYADBgADBgAMGAAMGAAoOoBvh0FaqwwF9kAAAAASUVORK5CYII=",fetchpriority:"high"}),(0,u.jsx)("div",{className:"player-container",ref:j}),(0,u.jsx)(s(),{src:_}),d&&(0,u.jsx)(c.Z,{schema:f({"@context":"https://schema.org","@type":"VideoObject"},d)})]})};p.displayName="EdiPlayer",t.Z=p},27618:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(31855),a=r(84920),s=r(85893);let c=e=>{let{children:t=null,className:r=null,gtmLabel:c=null,wrapper:u=null,testid:l=null}=e,f=(0,n.useContext)(a.k),p=n.Fragment,d=(0,i.Z)(t),h=Array.isArray(d)?d[0]:d,y=(0,n.isValidElement)(h)?h:null,m=y?.type,g=!!Object.keys(y?.props||{}).filter(e=>"children"!==e).length;return u&&("string"!=typeof u||u!==m||g)&&(p=u),(0,s.jsx)("div",{className:(0,o.Z)("editor-content",r),"data-gtm-class":c,"data-placement":f,"data-testid":l,children:(0,s.jsx)(p,{children:d})})};c.displayName="EditorContent",t.Z=c},32797:function(e,t,r){"use strict";var n=r(67294);class o extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){let{errorMessage:t}=this.props;t&&console.error(t,e)}render(){let{error:e}=this.state,{children:t}=this.props;return e?null:t}}o.displayName="ErrorBoundary",t.Z=o},53823:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294),a=r(90512),s=r(55444),c=r(90738),u=r(71738),l=r(29028),f=r(85893);let p=["className","label","name","checked","defaultChecked","indeterminate","onChange","rightToLeft","largeLabel","fluid","dataItemName","sctrack"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let y=(0,i.forwardRef)((e,t)=>{let{className:r=null,label:n=null,name:d=null,checked:y=null,defaultChecked:m=null,indeterminate:g=!1,onChange:v=null,rightToLeft:b=!1,largeLabel:w=!1,fluid:O=!1,dataItemName:S=null,sctrack:j=null}=e,x=(0,o.Z)(e,p),{inputId:_,feedbackId:P}=(0,i.useContext)(c.Z),{inverted:E,errors:A,validateInput:k,onChange:C,defaultValues:N}=(0,i.useContext)(s.Z),T=e=>{v&&v(e),C&&C(e)},I=n?l.Z:"div",R=n?{dataItemName:S,dataTestId:"form-checkbox"}:{"data-item-name":S,"data-testid":"form-checkbox"},L=null!=y?{checked:y}:{defaultChecked:m||(null!=d?N?.[d]:void 0)};return(0,f.jsxs)(I,h(h({className:(0,a.Z)("form-checkbox","d-flex",{"form-checkbox--inverted":E,"form-checkbox--invalid":!!(A&&null!=d&&d in A),"form-checkbox--indeterminate":g,"full-width justify-content-space-between":O,"flex-direction-row-reverse":b},r)},R),{},{children:[(0,f.jsx)("input",h(h(h({},x),L),{},{className:"form-checkbox__input",id:null!=_?String(_):void 0,name:null!=d?String(d):void 0,ref:t,type:"checkbox",onChange:k?e=>k(e,T):T,"aria-describedby":null!=P?String(P):void 0,"data-component":"FormCheckbox","data-sctrack":(0,u.Z)("FormCheckbox",j)})),n&&(0,f.jsx)("span",{className:(0,a.Z)({"mr-xs":b,"ml-xs":!b,"body-copy":w}),children:n})]}))});y.displayName="FormCheckbox",t.Z=y},29028:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(55444),a=r(90738),s=r(85893);let c=e=>{let{children:t=null,className:r=null,htmlFor:c=null,dataItemName:u=null,dataTestId:l=null}=e,{inputId:f}=(0,n.useContext)(a.Z),{inverted:p}=(0,n.useContext)(i.Z),d=c??f;return(0,s.jsx)("label",{className:(0,o.Z)("form-label",{"form-label--inverted":p},r),htmlFor:null!=d?String(d):void 0,"data-item-name":u,"data-testid":l,children:t})};c.displayName="FormLabel",t.Z=c},86583:function(e,t,r){"use strict";var n=r(8307),o=r(4730);r(67294);var i=r(90512),a=r(77107),s=r(85893);let c=["as","children","size","type","styledSize","color","className","style"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=e=>{let{as:t=null,children:r="",size:n=1,type:u="default",styledSize:f=null,color:p,className:d="",style:h}=e,y=(0,o.Z)(e,c),m=t||`h${n||1}`,{colors:g}=(0,a.Z)(),v=p?{color:"inherit"===p?"inherit":g[p]}:null;return(0,s.jsx)(m,l(l({},y),{},{className:(0,i.Z)(d,`${"default"!==u&&u?`${u}-`:""}heading-${f||n||1}`),style:p||h?l(l({},v),h):null,children:r}))};f.displayName="Heading",t.Z=f},9811:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(8307),o=r(67294),i=r(90512),a=r(88443),s=r(42473),c=r.n(s),u=r(31855),l=r(74978),f=r(85893),p=e=>{let{embedIcons:t,theme:r,iconsPublicPath:n,iconsEmbedManifest:i}=(0,o.useContext)(l.Z);if(!(e in a.icons))return c()(!1,`Not a known icon: ${e}`),{};let s=r;r||(c()(!1,"No theme was provided via the `ThemeProvider`, falling back to the default."),s="im-slate-theme");let p=(0,a.buildIconUrl)(e,s||"im-slate-theme",n),{aspectRatio:d}=a.icons[e];return t?{icon:(0,u.Z)(i?.[e]),aspectRatio:d}:{icon:(0,f.jsx)("use",{xlinkHref:p}),aspectRatio:d}},d=r(77107);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?h(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=e=>{let{animationDuration:t=1e3,bottom:r=null,className:n="",color:o=null,constrainSvgToParentDimensions:a=!1,height:s=null,left:c=null,name:u,right:l=null,rotate:h=0,size:m=16,sizingUnit:g="px",spinning:v=!1,srOnly:b=null,style:w=null,top:O=null,transition:S=null,width:j=null}=e,{icon:x,aspectRatio:_}=p(u),{colors:P}=(0,d.Z)(),E=null;o&&["inherit","transparent"].includes(o)&&(E=o),o&&o in P&&(E=P[o]);let A=j||m,k=s||m;j&&!s&&(k=j*(_??1)),s&&!j&&(A=s/(_??1));let C=`${A}${g}`,N=`${k}${g}`;return(0,f.jsxs)("i",{className:(0,i.Z)(n,"icon",{"icon--spinning":v}),style:y({width:C,minWidth:C,height:N,minHeight:N,position:[O,l,r,c].some(e=>e)?"absolute":void 0,top:O?`${O}px`:void 0,right:l?`${l}px`:void 0,bottom:r?`${r}px`:void 0,left:c?`${c}px`:void 0,animationDuration:`${t}ms`,transform:h?`rotate(${h}deg)`:void 0,transition:S??void 0},w),"data-testid":"icon",children:[b&&(0,f.jsx)("span",{className:"sr-only","data-testid":"sr-only",children:b}),x?(0,f.jsx)("svg",{className:"icon__svg","aria-hidden":"true",focusable:"false",style:y({color:E??void 0,fill:E??void 0},a&&{display:"inline-block",height:"100%",width:"100%"}),"data-testid":"icon-svg",children:x}):(0,f.jsx)("span",{className:"full-width text-center line-height-middle",children:b})]})};m.displayName="Icon";var g=m},14257:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var n=r(8307),o=r(67294),i=r(90512),a=r(42473),s=r.n(a),c=r(47480),u=r(27618),l=r(88928),f=r(42761),p=r(55448),d=r(71738),h=r(31855),y=r(9811),m=r(85893);let g=(e,t)=>t?e?50:100:e?40:60,v=e=>{let{className:t=null,aspectRatio:r,small:n=!1,loading:o=!1,hideIcon:a=!1}=e;return(0,m.jsxs)("div",{className:(0,i.Z)("placeholder",t),"data-testid":"placeholder",children:[(0,m.jsx)("div",{className:"placeholder__background","data-testid":"placeholder-background",style:{paddingBottom:`${100*(p.Q[r]||r)}%`}}),(0,m.jsx)("div",{className:"placeholder__content","data-testid":"placeholder-content",style:{width:g(n,o)},children:a?null:o?(0,m.jsx)(f.Z,{className:"placeholder__loading-icon chromatic-ignore",color:"inherit",size:100}):(0,m.jsx)(y.Z,{className:"placeholder__icon",color:"inherit",name:"no-img",sizingUnit:"%",width:100})})]})};function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}v.displayName="Placeholder";let O=e=>"number"==typeof e&&Number.isFinite(e),S=e=>e in p.Q,j=(e,t,r)=>e?e*Number(t):r,x=(e,t,r)=>O(t)&&O(r)?Math.round(Number(e)*(t/r)):null,_=(e,t,r)=>{let n=j(e,t,r);return O(t)?O(n)?[Math.round(t),Math.round(n)].join():Math.round(t):null},P=function(){let{url:e,width:t,height:r,quality:n,webp:o,avif:i,crop:a,lbWidth:s,lbHeight:c,external:u,resizeStrategy:l,ratio:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(u)return e;let p=w(w({quality:n},i?{avif:i}:{webp:o}),{},{crop:a?a.map(e=>`${Math.round(e)}px`).join(","):null,lb:s?`${Math.round(s)},${Math.round(Number(c))||""}`:null});p.lb||(p[String(l)]=_(f,t,r));let d=Object.keys(p).filter(e=>p[e]).map(e=>`${e}=${p[e]}`).join("&");return d.length?`${e}?${d}`:e},E=(e,t,r,n)=>{if(!O(t))return[];let o=e.filter(e=>!r||t>=r||"resize"===n?e<=t:(x(e,t,r)??0)<=r);return(o.length<1||o[o.length-1]<t&&e.length>o.length)&&o.push(t),o},A=e=>{let{url:t,width:r,height:n,quality:o,webp:i,avif:a,crop:s,lbWidth:c,lbHeight:u,srcSetBreakpoints:l,resizeStrategy:f,ratio:p}=e;return(c?[c]:E(l,r,n,f)).map(e=>`${P({url:t,width:e,height:x(e,r,n),quality:o,webp:i,avif:a,crop:s,lbWidth:c,lbHeight:u,resizeStrategy:f,ratio:p})} ${e}w`)},k=(e,t,r)=>"number"==typeof e&&Number.isFinite(e)?e:"dynamic"===e?Number(r)/Number(t):"string"==typeof e&&S(e)?p.Q[e]:t&&r?r/t:(s()("dynamic"!==e||Number.isFinite(t)&&Number.isFinite(r),`When using a dynamic aspect ratio a numerical width and height must be given, got width "${t}" and height "${r}".`),s()(!e,`If given, the aspect ratio must be a number, or one of ${Object.keys(p.Q)}`),null),C=(e,t,r,n)=>{let o=Number(r)/Number(t);return Number.isFinite(o)?n&&e&&(Number(r)>Number(t)&&"all"===n||o<e&&"horizontal"===n||Number(r)<=Number(t)&&"all"===n||o>=e&&"vertical"===n)?"fit":"resize":n?"fit":"resize"},N=(e,t)=>O(e)&&O(t)&&e>t?t:e,T=(e,t,r,n,o)=>{let i=N(e,o);return O(r)&&O(e)&&O(t)&&O(i)&&O(n)&&r*i>n?e/t*n:i||o},I=(e,t,r,n,o)=>{let i=N(e,o),a=T(e,t,r,n,o);return i&&r?r*i:a||t||!n?t:n}
60,R=e=>{let{alt:t="",aspectRatio:r=null,avif:n=!1,caption:a=null,className:p="",constrainToParentDimensions:y=!1,contain:g=null,crop:b=null,dataIndex:O=null,external:S=!1,fillContainerWidth:j=!1,fluid:x=!1,gtmLabel:_=null,height:E=null,hideCaption:R=!1,lbHeight:L=null,lbWidth:D=null,link:M=null,maxHeight:F=null,maxWidth:U=null,noPlaceholder:Z=!1,onClick:B=null,onError:$=null,onLoad:G=null,loading:z="lazy",loadingIcon:q=!1,preload:H=!1,quality:V=90,scaleUp:W=!1,sctrack:K=null,sizes:Y=[],sourceName:Q=null,sourceUrl:X=null,srcSetBreakpoints:J=[],style:ee=null,title:et=null,url:er=null,width:en=null}=e,eo=k(r,en,E),ei=C(eo,en,E,g);s()(!F||x,"If using the maxHeight property then you should also set fluid to true");let ea=N(en,U),es=T(en,E,eo,F,U),ec=I(en,E,eo,F,U);s()(S||!er||-1===er.indexOf("?"),`URLs passed to <Image> should not have query parameters: ${er}`);let eu={url:S?er:er?.split("?",1)[0],width:en,height:E,quality:V,crop:b,lbWidth:D,lbHeight:L,external:S,resizeStrategy:ei,ratio:eo},el=M?l.Z:B?"button":"div",ef=a||Q?"figure":"div",ep=W||!Number.isFinite(es)?void 0:`${es}px`,ed=!(en&&E)&&eo,{0:eh,1:ey}=(0,o.useState)(!1),em="string"==typeof X&&X.length>0,eg=H&&!S&&er?A(w(w(w({},eu),n?{avif:!0}:{webp:!0}),{},{srcSetBreakpoints:J})).join(", "):null,ev="auto";H?ev="eager":en&&E&&(ev=z);let{0:eb,1:ew}=(0,o.useState)(!1);(0,o.useEffect)(()=>{ey(!1)},[er]);let eO={className:"image__picture","data-testid":"image-picture",width:ea,height:ec,style:w({},y&&{display:"inline-block",height:"100%",maxWidth:"100%",width:"100%"})};return(0,m.jsxs)(m.Fragment,{children:[eg&&(0,m.jsx)(c.default,{children:(0,m.jsx)("link",{rel:"preload",fetchpriority:"high",as:"image",imageSrcSet:eg,imageSizes:Y&&Y.length>0?Y.join(", "):"100vw",type:n?"image/avif":"image/webp"})}),(0,m.jsxs)(ef,{className:(0,i.Z)(p,"image","chromatic-ignore",{"image--fluid":x,"image--scaled-up":W,"image--reserved-space-fallback":ed}),style:w({maxWidth:j?void 0:ep},ee),"data-testid":"image",children:[!eh&&(er||B)?(0,m.jsx)(el,w(w({className:(0,i.Z)({image__container:eo}),title:er?null:et,onClick:B,style:w({paddingBottom:ed?`${(100*eo).toFixed(2)}%`:null,maxWidth:j?ep:null},y&&{height:"100%",width:"100%"}),"data-testid":"image-container","data-sctrack":(0,d.Z)("Image",K)},M||{}),{},{children:er?(0,m.jsxs)(m.Fragment,{children:[q?(0,m.jsx)(f.Z,{className:"image__loading-icon p-absolute",fadeOut:eb}):null,(0,m.jsxs)("picture",w(w({},eO),{},{children:[!S&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("source",{"data-testid":"image-source",type:n?"image/avif":"image/webp",sizes:Y.join(","),srcSet:A(w(w(w({},eu),n?{avif:!0}:{webp:!0}),{},{srcSetBreakpoints:J})).join(",")}),(0,m.jsx)("source",{"data-testid":"image-source",sizes:Y.join(","),srcSet:A(w(w({},eu),{},{srcSetBreakpoints:J})).join(",")})]}),(0,m.jsx)("img",w(w({className:(0,i.Z)("image__img",{"image__img--fade-out":q&&!eb}),src:P(w(w({},eu),{},{width:ea,height:ec}))??void 0,alt:t,"data-index":O,"data-item-name":t,title:et??void 0,style:w({aspectRatio:Number.isFinite(eo)?`1 / ${eo}`:void 0,objectFit:"fit"===ei?"contain":"cover"},y&&{height:"100%",maxWidth:"100%",width:"100%"}),onError:e=>{B||ey(!0),$&&$(e)},onLoad:e=>{q&&ew(!0),G&&G(e)},loading:ev},H&&{fetchpriority:"high"}),{},{width:ea??void 0,height:ec??void 0,"data-testid":"image-img"}))]}))]}):null})):eo&&!Z&&(0,m.jsx)(v,{aspectRatio:eo}),!R&&(a||Q)&&(0,m.jsxs)(u.Z,{gtmLabel:_?`${_}-img-caption`:null,wrapper:"figcaption",testid:"image-caption",children:[a?(0,h.Z)(Q?`${a} `:a):"",Q?(()=>{let e=em?l.Z:"span",t=em?{href:X,gtmLabel:_?`${_}-img-src-link`:null}:null;return(0,m.jsx)(e,w(w({},t),{},{className:"fs-italic",children:Q}))})():null]})]})]})};R.displayName="Image";var L=R},77801:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(85893);let i=e=>{let{children:t=null,className:r=null,isCard:i=!1}=e;return(0,o.jsx)("span",{className:(0,n.Z)(r,i?"kicker__spacing--small":"kicker__spacing--regular","kicker"),children:t})};i.displayName="Kicker",t.Z=i},88928:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294),a=r(90512),s=r(22557),c=r(96160),u=r(71738),l=r(70770),f=r(85893);let p=["activeClass","activeParentClass","aria","as","children","className","ellipsis","gtmLabel","href","inverted","isActiveClassBasedOnQueryParams","media","onClick","onKeyDown","rel","role","sctrack","style","styled","tabIndex","target","title"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let y=(e,t)=>{if(!t)return!1;if(t===e)return!0;try{return(e=new URL(e,t).href).replace(/\/$/,"")===t.replace(/\/$/,"")}catch(e){return!1}},m=(0,i.forwardRef)((e,t)=>{let{activeClass:r=null,activeParentClass:n=null,aria:d=null,as:m=null,children:g=[],className:v=null,ellipsis:b=!1,gtmLabel:w=null,href:O=null,inverted:S=!1,isActiveClassBasedOnQueryParams:j=!0,media:x=null,onClick:_=null,onKeyDown:P=null,rel:E=null,role:A=null,sctrack:k=null,style:C=null,styled:N=!1,tabIndex:T=null,target:I=null,title:R=null}=e,L=(0,o.Z)(e,p),D=(0,i.useContext)(s.Z),M=(0,u.Z)("Link",k),F=(0,c.Z)();j||(F=(0,l.Z)(F));let U=r&&O&&y(O,F),Z=!!n;return(0,f.jsx)(D,{href:O,children:(0,f.jsx)(m||"a",h(h(h({className:(0,a.Z)("link",{"link--inverted":S,"link--styled":N,"link--ellipsis":b,"body-copy-bold":U||Z,[r]:U,[n]:Z},v),href:O,rel:E,target:I,media:x,title:R,onClick:_,onKeyDown:P,tabIndex:T,ref:t,role:A,style:C},Object.keys(d||{}).reduce((e,t)=>(e[`aria-${t}`]=d[t],e),{})),{},{"data-component":"Link","data-component-variant":w,"data-gtm-class":w,"data-sctrack":M},L),{},{children:g}))})});m.displayName="Link",t.Z=m},75123:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294),a=r(90512),s=r(85893);let c=["children","className","separator","separatorTop","separatorBottom","role","gtmLabel"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=(0,i.forwardRef)((e,t)=>{let{children:r=[],className:n,separator:i=!1,separatorTop:u=!1,separatorBottom:f=!1,role:p,gtmLabel:d=null}=e,h=(0,o.Z)(e,c);return(0,s.jsx)("li",l(l({},h),{},{className:(0,a.Z)(n,"list-item",{"list-item--separator":i,"list-item--separator-top":u,"list-item--separator-bottom":f}),"data-gtm-class":d,role:p,ref:t,children:r}))});f.displayName="ListItem",t.Z=f},63038:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(85893);let a=e=>{let{className:t=null,videoId:r=null}=e,a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!a.current||!r)return;let e=document.createElement("script");e.type="text/javascript",e.src=`https://video.onnetwork.tv/embed.php?sid=${r}`,e.async=!0,a.current.appendChild(e)},[r,a]),(0,i.jsx)("div",{className:(0,o.Z)("onnetwork-player",t),"data-testid":"onnetworkplayer",children:(0,i.jsx)("div",{ref:a,className:"player-container"})})};a.displayName="OnNetworkPlayer",t.Z=a},57478:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(22646),i=r(32797),a=r(85893);let s=e=>{let{name:t,className:r=null,horizontal:s=!1,itemSpacingY:c=null,itemSpacingX:u=null}=e,{[t]:l=[]}=(0,o.Z)(),f=e=>!!e,p=l.filter(e=>f(e)).map((e,t)=>{let r=(0,n.Z)(e.props.className,c&&`mt-${c}`,u&&s&&l.length-1>t?`mr-${u}`:null,s&&"d-flex");return(0,a.jsx)(i.Z,{children:r?(0,a.jsx)("div",{className:r,children:e}):e},e.key)});return p.length?(0,a.jsx)("div",{className:(0,n.Z)("pocket hidden-print",{"pocket--horizontal":s},r),"data-placement":t,children:p}):null};s.displayName="Pocket",t.Z=s},21626:function(e,t,r){"use strict";r(67294);var n=r(47480),o=r(85893);let i=e=>{let{schema:t}=e;return(0,o.jsx)(n.default,{children:(0,o.jsx)("script",{"data-testid":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})};i.displayName="Schema",t.Z=i},45381:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(85893);let i=e=>{let{targetId:t="main-content",children:r="Skip to main content"}=e;return(0,o.jsx)("a",{href:`#${t}`,className:(0,n.Z)("skip-link","mt-xs","mb-xs"),children:r})};i.displayName="SkipLink",t.Z=i},20630:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(67294),o=r(46307),i=r(8307),a=r(25241),s=r(4730),c=r(85893);let u=["classNames","children","type"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?l(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=e=>{let{classNames:t="",children:r=null,type:n=""}=e,o=(0,s.Z)(e,u);return(0,c.jsx)("div",{className:`squirrel-widget ${t}`,children:(0,c.jsx)("div",f(f({"data-feature":"commerce","data-component":"squirrel",className:"squirrel_div","data-loaded":"false","data-component-variant":n},o),{},{children:r}))})};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}p.displayName="SquirrelWidgets.SquirrelWrapper";let y=e=>{let{squirrelId:t=null}=e;return((0,a.i)({data:{"squirrel-widget-button-embedded":!0}}),t)?(0,c.jsx)(p,h(h({type:"button"},{"data-squirrel-id":t,"data-button":1}),{},{classNames:"mt-2 pb-2 squirrel-widget--button"})):null};y.displayName="SquirrelButton";let m=e=>{let{squirrelId:t=null}=e;if((0,a.i)({data:{"squirrel-widget-text-embedded":!0}}),!t)return null;let r=`SQUIRREL_TEXT_${t}`;return(0,c.jsx)(p,{type:"text_link",classNames:"mt-2 mb-2 squirrel-widget--text-link",children:r})};function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}m.displayName="SquirrelText";let b=e=>{let{squirrelId:t=null,autoDetectAmazonLinks:r=!1}=e;(0,a.i)({data:{"squirrel-widget-playlist-embedded":!0}});let n={};return t&&(n={"data-squirrel-playlist-id":t}),r&&(n={"data-squirrel-playlist-intelligent-mode":"all"}),(0,c.jsx)(p,v(v({type:"playlist"},n),{},{classNames:"squirrel-widget--playlist"}))};function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}b.displayName="SquirrelPlaylist";let O=e=>{let{squirrelId:t=null}=e;return((0,a.i)({data:{"squirrel-widget-price_comparison-embedded":!0}}),t)?(0,c.jsx)(p,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:"price_comparison",classNames:"mt-2 mb-2 squirrel-widget--price-comparison"},{"data-squirrel-id":t})):null};O.displayName="SquirrelPriceComparison";let S=e=>{let{script:t,id:r}=e;(0,n.useEffect)(()=>{if(t&&r){let e=document.querySelector(`script[id="${r}"]`);e||((e=document.createElement("script")).setAttribute("id",r),e.setAttribute("type","text/javascript"),e.innerHTML=t,document.head.appendChild(e))}},[r])};var j=r(9445),x=r(26140);let _=e=>{switch(e){case"button":return y;case"text_link":return m;case"playlist":return b;case"price_comparison":return O;default:return null}},P=e=>`var squirrel_settings = { 61 click_refs: { 62 ascsubtag: "${e}", 63 affiliate_subids:["${e}"] 64 }, 65 };`,E=e=>{let{autoDetectAmazonLinks:t=!1,clientId:r="",consent:n={id:"",purposes:[]},enabled:i=!1,postId:a="",requisiteConsentOverride:s=!1,scriptUrl:u="",squirrelId:l=null,type:f=""}=e,{id:p,purposes:d}=n,h=(0,j.Z)({purposes:d,vendorIds:[p]}),y=s||h,m=`${r}-${a}`;S({script:y?a&&r&&P(m):null,id:m}),(0,o.Z)({src:(i&&y?u:null)||void 0,defer:!0});let g=_(f);return i&&f&&u&&g?y?(0,c.jsx)(g,{autoDetectAmazonLinks:t,enabled:i,squirrelId:l,type:f}):(0,c.jsx)(x.Z,{providerName:"Squirrel",className:"mb-md",consentModalButton:!0,requiredConsent:{purposeIds:d,vendorIds:[p]}}):null};E.displayName="Squirrel";var A=E},25370:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294);let a=["children","as","ref"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?s(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=e=>{let{children:t=null,as:r="div",ref:n}=e,s=(0,o.Z)(e,a),l=(0,i.useRef)(null),f=u.canUseDOM;if(n)throw Error("StaticContent does not accept refs");return f?i.createElement(r,c(c({},s),{},{ref:l,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}})):i.createElement(r,s,t)};u.canUseDOM=!0,t.Z=u},33055:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294);let a=["children","as","ref"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=e=>{let{children:t=null,as:r="div",ref:n}=e,s=(0,o.Z)(e,a),l=(0,i.useRef)(null),{0:f,1:p}=(0,i.useState)(u.isSSR);if(n)throw Error("StaticContent does not accept refs");return((0,i.useEffect)(()=>{""===l.current.innerHTML&&p(!0)},[]),f)?i.createElement(r,s,t):i.createElement(r,c(c({},s),{},{ref:l,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}))};u.isSSR=!1,t.Z=u},15783:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(71738),i=r(85893);let a=e=>{let{children:t,className:r=null,url:a=null,type:s=null,disableHitSpace:c=!1,onClick:u=null,sctrack:l=null}=e,f="span";return a&&(f="a"),u&&(f="button"),(0,i.jsx)(f,{className:(0,n.Z)(r,"tag",`tag--${s}`,{"tag--link":a,"tag--button":u,"tag--extra-hit-space":!c}),href:a||void 0,onClick:u||void 0,"data-sctrack":(0,o.Z)("Tag",l),children:t})};a.displayName="Tag",t.Z=a},82624:function(e,t,r){"use strict";r.d(t,{Z:function(){return e6}});var n,o,i,a,s,c,u,l=r(67294);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function h(e){if("undefined"==typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var y=Math.max,m=Math.min,g=Math.round;function v(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function b(){return!/^((?!chrome|android).)*safari/i.test(v())}function w(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&d(e)&&(o=e.offsetWidth>0&&g(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&g(n.height)/e.offsetHeight||1);var a=(p(e)?f(e):window).visualViewport,s=!b()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,l=n.width/o,h=n.height/i;return{width:l,height:h,top:u,right:c+l,bottom:u+h,left:c,x:c,y:u}}function O(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return w(j(e)).left+O(e).scrollLeft}function _(e){return f(e).getComputedStyle(e)}function P(e){var t=_(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function E(e){var t=w(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function A(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||j(e)}function k(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(S(t))>=0?t.ownerDocument.body:d(t)&&P(t)?t:e(A(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=f(n),a=o?[i].concat(i.visualVie
65wport||[],P(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(k(A(a)))}function C(e){return d(e)&&"fixed"!==_(e).position?e.offsetParent:null}function N(e){for(var t=f(e),r=C(e);r&&["table","td","th"].indexOf(S(r))>=0&&"static"===_(r).position;)r=C(r);return r&&("html"===S(r)||"body"===S(r)&&"static"===_(r).position)?t:r||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&d(e)&&"fixed"===_(e).position)return null;var r=A(e);for(h(r)&&(r=r.host);d(r)&&0>["html","body"].indexOf(S(r));){var n=_(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var T="bottom",I="right",R="left",L="auto",D=["top",T,I,R],M="start",F="viewport",U="popper",Z=D.reduce(function(e,t){return e.concat([t+"-"+M,t+"-end"])},[]),B=[].concat(D,[L]).reduce(function(e,t){return e.concat([t,t+"-"+M,t+"-end"])},[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],G={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var q={passive:!0};function H(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?H(o):null,a=o?V(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case"top":t={x:s,y:r.y-n.height};break;case T:t={x:s,y:r.y+r.height};break;case I:t={x:r.x+r.width,y:c};break;case R:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?W(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case M:t[u]=t[u]-(r[l]/2-n[l]/2);break;case"end":t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,r,n,o,i,a,s,c=e.popper,u=e.popperRect,l=e.placement,p=e.variation,d=e.offsets,h=e.position,y=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,b=e.isFixed,w=d.x,O=void 0===w?0:w,S=d.y,x=void 0===S?0:S,P="function"==typeof v?v({x:O,y:x}):{x:O,y:x};O=P.x,x=P.y;var E=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),k=R,C="top",L=window;if(m){var D=N(c),M="clientHeight",F="clientWidth";D===f(c)&&"static"!==_(D=j(c)).position&&"absolute"===h&&(M="scrollHeight",F="scrollWidth"),("top"===l||(l===R||l===I)&&"end"===p)&&(C=T,x-=(b&&D===L&&L.visualViewport?L.visualViewport.height:D[M])-u.height,x*=y?1:-1),(l===R||("top"===l||l===T)&&"end"===p)&&(k=I,O-=(b&&D===L&&L.visualViewport?L.visualViewport.width:D[F])-u.width,O*=y?1:-1)}var U=Object.assign({position:h},m&&Y),Z=!0===v?(t={x:O,y:x},r=f(c),n=t.x,o=t.y,{x:g(n*(i=r.devicePixelRatio||1))/i||0,y:g(o*i)/i||0}):{x:O,y:x};return(O=Z.x,x=Z.y,y)?Object.assign({},U,((s={})[C]=A?"0":"",s[k]=E?"0":"",s.transform=1>=(L.devicePixelRatio||1)?"translate("+O+"px, "+x+"px)":"translate3d("+O+"px, "+x+"px, 0)",s)):Object.assign({},U,((a={})[C]=A?x+"px":"",a[k]=E?O+"px":"",a.transform="",a))}var X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];d(o)&&S(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});d(n)&&S(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},J={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,function(e){return J[e]})}var et={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return et[e]})}function en(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;
65if(r&&h(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function eo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ei(e,t,r){var n,o,i,a,s,c,u,l,d,h;return t===F?eo(function(e,t){var r=f(e),n=j(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=b();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+x(e),y:c}}(e,r)):p(t)?((n=w(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):eo((o=j(e),a=j(o),s=O(o),c=null==(i=o.ownerDocument)?void 0:i.body,u=y(a.scrollWidth,a.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=y(a.scrollHeight,a.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-s.scrollLeft+x(o),h=-s.scrollTop,"rtl"===_(c||a).direction&&(d+=y(a.clientWidth,c?c.clientWidth:0)-u),{width:u,height:l,x:d,y:h}))}function ea(){return{top:0,right:0,bottom:0,left:0}}function es(e){return Object.assign({},ea(),e)}function ec(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function eu(e,t){void 0===t&&(t={});var r,n,o,i,a,s,c,u,l=t,f=l.placement,h=void 0===f?e.placement:f,g=l.strategy,v=void 0===g?e.strategy:g,b=l.boundary,O=l.rootBoundary,x=l.elementContext,P=void 0===x?U:x,E=l.altBoundary,C=l.padding,R=void 0===C?0:C,L=es("number"!=typeof R?R:ec(R,D)),M=e.rects.popper,Z=e.elements[void 0!==E&&E?P===U?"reference":U:P],B=(r=p(Z)?Z:Z.contextElement||j(e.elements.popper),n=void 0===b?"clippingParents":b,o=void 0===O?F:O,c=(s=[].concat("clippingParents"===n?(i=k(A(r)),p(a=["absolute","fixed"].indexOf(_(r).position)>=0&&d(r)?N(r):r)?i.filter(function(e){return p(e)&&en(e,a)&&"body"!==S(e)}
65):[]):[].concat(n),[o]))[0],(u=s.reduce(function(e,t){var n=ei(r,t,v);return e.top=y(n.top,e.top),e.right=m(n.right,e.right),e.bottom=m(n.bottom,e.bottom),e.left=y(n.left,e.left),e},ei(r,c,v))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),$=w(e.elements.reference),G=K({reference:$,element:M,strategy:"absolute",placement:h}),z=eo(Object.assign({},M,G)),q=P===U?z:$,H={top:B.top-q.top+L.top,bottom:q.bottom-B.bottom+L.bottom,left:B.left-q.left+L.left,right:q.right-B.right+L.right},V=e.modifiersData.offset;if(P===U&&V){var W=V[h];Object.keys(H).forEach(function(e){var t=[I,T].indexOf(e)>=0?1:-1,r=["top",T].indexOf(e)>=0?"y":"x";H[e]+=W[r]*t})}return H}function el(e,t,r){return y(e,m(t,r))}function ef(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ep(e){return["top",I,T,R].some(function(t){return e[t]>=0})}var ed=(i=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=f(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,q)}),s&&c.addEventListener("resize",r.update,q),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,q)}),s&&c.removeEventListener("resize",r.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,s={placement:H(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=B.reduce(function(e,r){var n,o,a,s,c,u;return e[r]=(n=t.rects,a=[R,"top"].indexOf(o=H(r))>=0?-1:1,c=(s="function"==typeof i?i(Object.assign({},n,{placement:r})):i)[0],u=s[1],c=c||0,u=(u||0)*a,[R,I].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,f=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,h=void 0===d||d,y=r.allowedAutoPlacements,m=t.options.placement,g=H(m)===m,v=c||(g||!h?[ee(m)]:function(e){if(H(e)===L)return[];var t=ee(e);return[er(e),t,er(t)]}(m)),b=[m].concat(v).reduce(function(e,r){var n,o,i,a,s,c,p,d,m,g,v,b;return e.concat(H(r)===L?(o=(n={placement:r,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:y}).placement,i=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,d=void 0===(p=n.allowedAutoPlacements)?B:p,0===(v=(g=(m=V(o))?c?Z:Z.filter(function(e){return V(e)===m}):D).filter(function(e){return d.indexOf(e)>=0})).length&&(v=g),Object.keys(b=v.reduce(function(e,r){return e[r]=eu(t,{placement:r,boundary:i,rootBoundary:a,padding:s})[H(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),w=t.rects.reference,O=t.rects.popper,S=new Map,j=!0,x=b[0],_=0;_<b.length;_++){var P=b[_],E=H(P),A=V(P)===M,k=["top",T].indexOf(E)>=0,C=k?"width":"height",N=eu(t,{placement:P,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),F=k?A?I:R:A?T:"top";w[C]>O[C]&&(F=ee(F));var U=ee(F),$=[];if(i&&$.push(N[E]<=0),s&&$.push(N[F]<=0,N[U]<=0),$.every(function(e){return e}
65)){x=P,j=!1;break}S.set(P,$)}if(j)for(var G=h?3:1,z=function(e){var t=b.find(function(t){var r=S.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},q=G;q>0&&"break"!==z(q);q--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,s=r.rootBoundary,c=r.altBoundary,u=r.padding,l=r.tether,f=void 0===l||l,p=r.tetherOffset,d=void 0===p?0:p,h=eu(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:c}),g=H(t.placement),v=V(t.placement),b=!v,w=W(g),O="x"===w?"y":"x",S=t.modifiersData.popperOffsets,j=t.rects.reference,x=t.rects.popper,_="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,P="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(void 0===o||o){var C,L="y"===w?"top":R,D="y"===w?T:I,F="y"===w?"height":"width",U=S[w],Z=U+h[L],B=U-h[D],$=f?-x[F]/2:0,G=v===M?j[F]:x[F],z=v===M?-x[F]:-j[F],q=t.elements.arrow,K=f&&q?E(q):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ea(),Q=Y[L],X=Y[D],J=el(0,j[F],K[F]),ee=b?j[F]/2-$-J-Q-P.mainAxis:G-J-Q-P.mainAxis,et=b?-j[F]/2+$+J+X+P.mainAxis:z+J+X+P.mainAxis,er=t.elements.arrow&&N(t.elements.arrow),en=er?"y"===w?er.clientTop||0:er.clientLeft||0:0,eo=null!=(C=null==A?void 0:A[w])?C:0,ei=el(f?m(Z,U+ee-eo-en):Z,U,f?y(B,U+et-eo):B);S[w]=ei,k[w]=ei-U}if(void 0!==i&&i){var es,ec,ef="x"===w?"top":R,ep="x"===w?T:I,ed=S[O],eh="y"===O?"he
65ight":"width",ey=ed+h[ef],em=ed-h[ep],eg=-1!==["top",R].indexOf(g),ev=null!=(ec=null==A?void 0:A[O])?ec:0,eb=eg?ey:ed-j[eh]-x[eh]-ev+P.altAxis,ew=eg?ed+j[eh]+x[eh]-ev-P.altAxis:em,eO=f&&eg?(es=el(eb,ed,ew))>ew?ew:es:el(f?eb:ey,ed,f?ew:em);S[O]=eO,k[O]=eO-ed}t.modifiersData[n]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,c=H(n.placement),u=W(c),l=[R,I].indexOf(c)>=0?"height":"width";if(a&&s){var f=es("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:ec(t,D)),p=E(a),d="y"===u?"top":R,h="y"===u?T:I,y=n.rects.reference[l]+n.rects.reference[u]-s[u]-n.rects.popper[l],m=s[u]-n.rects.reference[u],g=N(a),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=f[d],w=v-p[l]-f[h],O=v/2-p[l]/2+(y/2-m/2),S=el(b,O,w);n.modifiersData[o]=((r={})[u]=S,r.centerOffset=S-O,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&en(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=eu(t,{elementContext:"reference"}),s=eu(t,{altBoundary:!0}),c=ef(a,n),u=ef(s,o,i),l=ep(c),f=ep(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,s=void 0===(a=n.defaultOptions)?G:a,function(e,t,r){void 0===r&&(r=s);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:a,setOptions:function(r){var n,o,u,f,d,y="function"==typeof r?r(a.options):r;h(),a.options=Object.assign({},s,a.options,y),a.scrollParents={reference:p(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var m=(o=Object.keys(n=[].concat(i,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),u=new Map,f=new Set,d=[],o.forEach(function(e){u.set(e.name,e)}),o.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var r=u.get(t);r&&e(r)}}),d.push(t)}(e)}),$.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=m.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var o=n({state:a,name:t,instance:l,options:void 0===r?{}:r});c.push(o||function(){})}}),l.update()},forceUpdate:function(){if(!u){var e,t,r,n,o,i,s,c,p,h,y,m,v=a.elements,b=v.reference,_=v.popper;if(z(b,_)){a.rects={reference:(t=N(_),r="fixed"===a.options.strategy,n=d(t),c=d(t)&&(i=g((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=g(o.height)/t.offsetHeight||1,1!==i||1!==s),p=j(t),h=w(b,c,r),y={scrollLeft:0,scrollTop:0},m={x:0,y:0},(n||!n&&!r)&&(("body"!==S(t)||P(p))&&(y=(e=t)!==f(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:O(e)),d(t)?(m=w(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):p&&(m.x=x(p))),{x:h.left+y.scrollLeft-m.x,y:h.top+y.scrollTop-m.y,width:h.width,height:h.height}),popper:E(_)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var A=0;A<a.orderedModifiers.length;A++){if(!0===a.reset){a.reset=!1,A=-1;continue}var k=a.orderedModifiers[A],C=k.fn,T=k.options,I=void 0===T?{}:T,R=k.name;"function"==typeof C&&(a=C({state:a,options:I,name:R,instance:l})||a)}}}},update:(n=function(){return new Promise(function(e){l.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(n())})})),o}),destroy:function(){h(),u=!0}};if(!z(e,t))return l;
65function h(){c.forEach(function(e){return e()}),c=[]}return l.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),l}),eh={passive:!0,capture:!0},ey=function(){return document.body};function em(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function eg(e,t){var r=({}).toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function ev(e,t){return"function"==typeof e?e.apply(void 0,t):e}function eb(e,t){var r;return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function ew(e){return[].concat(e)}function eO(e,t){-1===e.indexOf(t)&&e.push(t)}function eS(e){return[].slice.call(e)}function ej(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function ex(e){return["Element","Fragment"].some(function(t){return eg(e,t)})}function e_(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function eP(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function eE(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function eA(e,t){for(var r,n=t;n;){if(e.contains(n))return!0;n=null==n.getRootNode?void 0:null==(r=n.getRootNode())?void 0:r.host}return!1}var ek={isTouch:!1},eC=0;function eN(){!ek.isTouch&&(ek.isTouch=!0,window.performance&&document.addEventListener("mousemove",eT))}function eT(){var e=performance.now();e-eC<20&&(ek.isTouch=!1,document.removeEventListener("mousemove",eT)),eC=e}function eI(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eR=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,eL=Object.assign({appendTo:ey,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eD=Object.keys(eL);function eM(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=eL[o])?n:i),t},{});return Object.assign({},e,t)}function eF(e,t){var r,n=Object.assign({},t,{content:ev(t.content,[e])},t.ignoreAttributes?{}:((r=t.plugins)?Object.keys(eM(Object.assign({},eL,{plugins:r}))):eD).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{}));return n.aria=Object.assign({},eL.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function eU(e){var t=e.firstElementChild,r=eS(t.children);return{box:t,content:r.find(function(e){return e.classList.contains("tippy-content")}),arrow:r.find(function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}var eZ=1,eB=[],e$=[];function eG(e,t){void 0===t&&(t={});var r=eL.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eN,eh),window.addEventListener("blur",eI);var n=Object.assign({},t,{plugins:r}),o=(ex(e)?[e]:eg(e,"NodeList")?eS(e):Array.isArray(e)?e:eS(document.querySelectorAll(e))).reduce(function(e,t){var r=t&&function(e,t){var r,n,o,i,a,s,c,u,l=eF(e,Object.assign({},eL,eM(ej(t)))),f=!1,p=!1,d=!1,h=!1,y=[],m=eb(q,l.interactiveDebounce),g=eZ++,v=(r=l.plugins).filter(function(e,t){return r.indexOf(e)===t}),b={id:g,reference:e,popper:document.createElement("div"),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!b.state.isDestroyed){N("onBeforeUpdate",[b,t]),G();var r=b.props,n=eF(e,Object.assign({},r,ej(t),{ignoreAttributes:!0}));b.props=n,$(),r.interactiveDebounce!==n.interactiveDebounce&&(R(),m=eb(q,n.interactiveDebounce)),r.triggerTarget&&!n.triggerTarget?ew(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded"),I(),C(),S&&S(r,n),b.popperInstance&&(K(),Q().forEac
65h(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var t,r,n,o=b.state.isVisible,i=b.state.isDestroyed,a=!b.state.isEnabled,s=ek.isTouch&&!b.props.touch,l=em(b.props.duration,0,eL.duration);if(!(o||i||a||s||(u||e).hasAttribute("disabled"))&&(N("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,E()&&(O.style.visibility="visible"),C(),F(),b.state.isMounted||(O.style.transition="none"),E()){var f=eU(O);e_([f.box,f.content],0)}c=function(){var e;if(b.state.isVisible&&!h){if(h=!0,O.offsetHeight,O.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=eU(O),r=t.box,n=t.content;e_([r,n],l),eP([r,n],"visible")}T(),I(),eO(e$,b),null==(e=b.popperInstance)||e.forceUpdate(),N("onMount",[b]),b.props.animation&&E()&&Z(l,function(){b.state.isShown=!0,N("onShown",[b])})}},r=b.props.appendTo,n=u||e,(t=b.props.interactive&&r===ey||"parent"===r?n.parentNode:ev(r,[n])).contains(O)||t.appendChild(O),b.state.isMounted=!0,K()}},hide:function(){var e,t=!b.state.isVisible,r=b.state.isDestroyed,n=!b.state.isEnabled,o=em(b.props.duration,1,eL.duration);if(!t&&!r&&!n&&(N("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,E()&&(O.style.visibility="hidden"),R(),U(),C(!0),E()){var i=eU(O),a=i.box,s=i.content;b.props.animation&&(e_([a,s],o),eP([a,s],"hidden"))}(T(),I(),b.props.animation)?E()&&(e=b.unmount,Z(o,function(){!b.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&e()})):b.unmount()}},hideWithInteractivity:function(e){A().addEventListener("mousemove",m),eO(eB,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Y(),Q().forEach(function(e){e._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),e$=e$.filter(function(e){return e!==b}),b.state.isMounted=!1,N("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),G(),delete e._tippy,b.state.isDestroyed=!0,N("onDestroy",[b]))}};if(!l.render)return b;var w=l.render(b),O=w.popper,S=w.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+b.id,b.popper=O,e._tippy=b,O._tippy=b;var j=v.map(function(e){return e.fn(b)}),x=e.hasAttribute("aria-expanded");return $(),I(),C(),N("onCreate",[b]),l.showOnCreate&&X(),O.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",m)}),b;function _(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===_()[0]}function E(){var e;return!!(null!=(e=b.props.render)&&e.$$tippy)}function A(){var t,r,n=(u||e).parentNode;return n&&null!=(r=ew(n)[0])&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function k(e){return b.state.isMounted&&!b.state.isVisible||ek.isTouch||a&&"focus"===a.type?0:em(b.props.delay,e?0:1,eL.delay)}function C(e){void 0===e&&(e=!1),O.style.pointerEvents=b.props.interactive&&!e?"":"none",O.style.zIndex=""+b.props.zIndex}function N(e,t,r){if(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r){var n;(n=b.props)[e].apply(n,t)}}function T(){var t=b.props.aria;if(t.content){var r="aria-"+t.content,n=O.id;ew(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(b.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function I(){!x&&b.props.aria.expanded&&ew(b.props.triggerTarget||e).forEach(function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===(u||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function R(){A().removeEventListener("mousemove",m),eB=eB.filter(function(e){return e!==m})}function L(t){if(!ek.isTouch||!d&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!(b.props.interactive&&eA(O,r))){if(ew(b.props.triggerTarget||e).some(function(e){return eA(e,r)})){if(ek.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[b,t]);!0!==b.props.hideOnClick||(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout(function(){p=!1}),b.state.isMounted||U())}}}function D(){d=!0}function M(){d=!1}function F(){var e=A();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,eh),e.addEventListener("touchstart",M,eh),e.addEventListener("touchmove",D,eh)}function U(){var e=A();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,eh),e.removeEventListener("touchstart",M,eh),e.removeEventListener("touchmove",D,eh)}function Z(e,t){var r=eU(O).box;function n(e){e.target===r&&(eE(r,"remove",n),t())}if(0===e)return t();eE(r,"remove",s),eE(r,"add",n),s=n}function B(t,r,n){void 0===n&&(n=!1),ew(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),y.push({node:e,eventType:t,handler:r,options:n})})}function $(){P()&&(B("touchstart",z,{passive:!0}),B("touchend",H,{passive:!0}
65)),b.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(B(e,z),e){case"mouseenter":B("mouseleave",H);break;case"focus":B(eR?"focusout":"blur",V);break;case"focusin":B("focusout",V)}})}function G(){y.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),y=[]}function z(e){var t,r=!1;if(!(!b.state.isEnabled||W(e))&&!p){var n=(null==(t=a)?void 0:t.type)==="focus";a=e,u=e.currentTarget,I(),!b.state.isVisible&&eg(e,"MouseEvent")&&eB.forEach(function(t){return t(e)}),"click"===e.type&&(0>b.props.trigger.indexOf("mouseenter")||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?r=!0:X(e),"click"===e.type&&(f=!r),r&&!n&&J(e)}}function q(t){var r,n,o,i=t.target,a=(u||e).contains(i)||O.contains(i);("mousemove"!==t.type||!a)&&(r=Q().concat(O).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null}).filter(Boolean),n=t.clientX,o=t.clientY,r.every(function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,f="left"===a?s.right.x:0,p=t.top-o+c>i,d=o-t.bottom-u>i,h=t.left-n+l>i,y=n-t.right-f>i;return p||d||h||y})&&(R(),J(t)))}function H(e){if(!(W(e)||b.props.trigger.indexOf("click")>=0&&f)){if(b.props.interactive){b.hideWithInteractivity(e);return}J(e)}}function V(t){0>b.props.trigger.indexOf("focusin")&&t.target!==(u||e)||b.props.interactive&&t.relatedTarget&&O.contains(t.relatedTarget)||J(t)}
65function W(e){return!!ek.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Y();var t=b.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=E()?eU(O).arrow:null,l=i?{getBoundingClientRect:i,contextElement:i.contextElement||u||e}:e,f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var r=eU(O).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];E()&&s&&f.push({name:"arrow",options:{element:s,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),b.popperInstance=ed(l,O,Object.assign({},r,{placement:n,onFirstUpdate:c,modifiers:f}))}function Y(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return eS(O.querySelectorAll("[data-tippy-root]"))}function X(e){b.clearDelayTimeouts(),e&&N("onTrigger",[b,e]),F();var t=k(!0),r=_(),o=r[0],i=r[1];ek.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout(function(){b.show()},t):b.show()}function J(e){if(b.clearDelayTimeouts(),N("onUntrigger",[b,e]),!b.state.isVisible){U();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!f){var t=k(!1);t?o=setTimeout(function(){b.state.isVisible&&b.hide()},t):i=requestAnimationFrame(function(){b.hide()})}}}(t,n);return r&&e.push(r),e},[]);return ex(e)?o[0]:o}eG.defaultProps=eL,eG.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eL[t]=e[t]})},eG.currentInput=ek,Object.assign({},X,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),eG.setDefaultProps({animation:!1});var ez=r(73935);function eq(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var eH="undefined"!=typeof window&&"undefined"!=typeof document;function eV(e,t){e&&("function"==typeof e&&e(t),({}).hasOwnProperty.call(e,"current")&&(e.current=t))}function eW(){return eH&&document.createElement("div")}var eK=eH?l.useLayoutEffect:l.useEffect;function eY(e,t,r){r.split(/\s+/).forEach(function(r){r&&e.classList[t](r)})}var eQ={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,r=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){(!e.props.className||r())&&eY(t,"add",e.props.className)}return{onCreate:n,onBeforeUpdate:function(){r()&&eY(t,"remove",e.props.className)},onAfterUpdate:n}}},eX=(c=function(e){var t,r,n,o=e.children,i=e.content,a=e.visible,s=e.singleton,c=e.render,u=e.reference,f=e.disabled,p=void 0!==f&&f,d=e.ignoreAttributes,h=(e.__source,e.__self,eq(e,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),y=void 0!==a,m=void 0!==s,g=(0,l.useState)(!1),v=g[0],b=g[1],w=(0,l.useState)({}),O=w[0],S=w[1],j=(0,l.useState)(),x=j[0],_=j[1],P=(t=function(){return{container:eW(),renders:1}},(r=(0,l.useRef)()).current||(r.current=t()),r.current),E=Object.assign({ignoreAttributes:void 0===d||d},h,{content:P.container});y&&(E.trigger="manual",E.hideOnClick=!1),m&&(p=!0);var A=E,k=E.plugins||[];c&&(A=Object.assign({},E,{plugins:m&&null!=s.data?[].concat(k,[{fn:function(){return{onTrigger:function(e,t){var r=s.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=r.instance,_(r.content)}}}}]):k,render:function(){return{popper:P.container}}}));var C=[u].concat(o?[o.type]:[]);return eK(function(){var e=u;u&&u.hasOwnProperty("current")&&(e=u.current);var t=eG(e||P.ref||eW(),Object.assign({},A,{plugins:[eQ].concat(E.plugins||[])}));return P.instance=t,p&&t.disable(),a&&t.show(),m&&s.hook({instance:t,content:i,props:A,setSingletonContent:_}),b(!0),function(){t.destroy(),null==s||s.cleanup(t)}},C),eK(function(){if(1===P.renders){P.renders++;return}var e,t,r,n,o,c,u,l=P.instance;l.setProps((e=l.props,Object.assign({},t=A,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(o=[].concat((null==(r=e.popperOptions)?void 0:r.modifiers)||[],(null==(n=t.popperOptions)?void 0:n.modifiers)||[]),c=[],o.forEach(function(e){c.find(function(t){return function e(t,r){if(t===r)return!0;
65if("object"!=typeof t||null==t||"object"!=typeof r||null==r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if(!r.hasOwnProperty(n)||!e(t[n],r[n]))return!1;return!0}(e,t)})||c.push(e)}),c)})}))),null==(u=l.popperInstance)||u.forceUpdate(),p?l.disable():l.enable(),y&&(a?l.show():l.hide()),m&&s.hook({instance:l,content:i,props:A,setSingletonContent:_})}),eK(function(){if(c){var e,t=P.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return"$$tippyReact"!==e.name}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,r=e.state,n=null==(t=r.modifiersData)?void 0:t.hide;(O.placement!==r.placement||O.referenceHidden!==(null==n?void 0:n.isReferenceHidden)||O.escaped!==(null==n?void 0:n.hasPopperEscaped))&&S({placement:r.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),r.attributes.popper={}}}])})})}},[O.placement,O.referenceHidden,O.escaped].concat(C)),l.createElement(l.Fragment,null,o?(0,l.cloneElement)(o,{ref:function(e){P.ref=e,eV(o.ref,e)}}):null,v&&(0,ez.createPortal)(c?c((n={"data-placement":O.placement},O.referenceHidden&&(n["data-reference-hidden"]=""),O.escaped&&(n["data-escaped"]=""),n),x,P.instance):i,P.container))},u={render:function(){return""}},(0,l.forwardRef)(function(e,t){var r=e.children,n=eq(e,["children"]);return l.createElement(c,Object.assign({},u,n),r?(0,l.cloneElement)(r,{ref:function(e){eV(t,e),eV(r.ref,e)}}):null)})),eJ=r(90512),e0=r(99086),e1=r(85893);let e2=e=>{let{children:t=null}=e;return Array.isArray(t)?(0,e1.jsx)(e0.Z,{children:t.map(e=>(0,e1.jsx)(e0.Z.Item,{className:"tooltip__list-item",children:e},e))}):t};e2.displayName="Tooltip.TooltipContent";var e3=r(77107);let e8=e=>{let{padding:t=null,position:r="auto",content:n,children:o,trigger:i="mouseenter",className:a=null,wrap:s=!1}=e,{0:c,1:u}=(0,l.useState)(!1),f=(0,l.useRef)(null),{spacingUnits:p}=(0,e3.Z)();return(0,l.useEffect)(()=>{let e=e=>{let{keyCode:t}=e;27===t&&f.current&&f.current.hide()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,e1.jsx)(eX,{interactive:"click"===i,animation:!0,appendTo:"parent",offset:[0,t?-Number(p[t].replace("px","")):0],content:n,placement:r,trigger:i,onMount:e=>{f.current=e,u(!0)},onHide:()=>{u(!1)},render:e=>(0,e1.jsx)("div",{"aria-hidden":!c,"data-testid":"tooltip",className:(0,eJ.Z)("mr-xs","ml-xs","p-relative","tooltip",`tooltip--${e["data-placement"]}`,{"tooltip--show":c,"tooltip--wrap":s},"body-copy-extra-small pl-xxs pr-xxs"),role:"tooltip",tabIndex:-1,children:(0,e1.jsx)(e2,{children:n})}),children:(0,e1.jsx)("div",{className:(0,eJ.Z)(a,"d-inline-block","tooltip__tip",`tooltip__tip--trigger-${i}`,t&&`pa-${t}`),children:o})})};e8.displayName="Tooltip";var e6=e8},91614:function(e,t,r){"use strict";var n=r(67294),o=r(30899),i=r(85893);let a=e=>{let{location:t=null,customId:r=null,home:a=!1}=e,{siteContext:s,postContent:c,zephrSettings:u}=(0,n.useContext)(o.Z),{siteKey:l}=s||{},{postType:f,pageUrl:p}=c||{},{enabled:d}=u||{};if(a)try{let e=new URL(p||"");if(!("/"===e.pathname||""===e.pathname))return null}catch{return null}if(!d||!l||!r&&!t||!r&&!f)return null;let h=r?`zephr-${r.replace("[brand]",l)}`:`zephr-inline-template-${t}-${l}-${f}`;return(0,i.jsx)("div",{id:h,className:"hidden-print","data-testid":r?h:"zephr-inline-template"})};a.displayName="ZephrInlineTemplate",t.Z=a},25853:function(e,t,r){"use strict";r.d(t,{Wu:function(){return c}});var n=r(67294),o=r(22646),i=r(85893);let a=(0,n.createContext)(()=>{}),s=(e,t)=>()=>t(t=>{if(t.has(e)){let r=new Map(t);return r.delete(e),r}return t}),c=e=>{let t=new Map(((0,o.Z)()[e]||[]).filter(e=>e?.props?.data?.title).map(e=>[e.props.data?.title,e])),{0:r,1:c}=(0,n.useState)(t),u=Array.from(r.keys());Object.freeze(u);let{0:l,1:f}=(0,n.useState)(u[0]);return(void 0===l||!r.has(l))&&r.size>0&&f(u[0]),{pocketItemNames:u,renderedPocketItems:Array.from(r.entries()).map((t,r)=>
65{let[n,o]=t;return(0,i.jsx)(a.Provider,{value:s(n,c),children:(0,i.jsx)("div",{style:{display:n===l?void 0:"none"},"data-placement":e,"data-placement-variant":n,"data-placement-index":r,children:o})},n)}),selectedPocketItemName:l,selectPocketItemByName:f}};t.ZP=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,n.useContext)(a);(0,n.useEffect)(()=>{e(...t)&&r()},[...t])}},61256:function(e,t,r){"use strict";var n=r(8307),o=r(4730);r(67294);var i=r(90512),a=r(60614),s=r(9811),c=r(77107),u=r(85893);let l=["adaptive","animated","ariaChecked","ariaLabel","ariaLabelledBy","as","children","className","color","dataComponentVariant","dataFeature","disabled","fillHeight","fluid","gtmLabel","highlight","href","icon","iconAnimationDuration","iconRotate","iconSize","iconSpinning","id","inputAppend","inputPrepend","inverted","isLoading","light","link","noBorder","noFocusOutline","noMinHeight","noMinWidth","noPadding","noTab","onClick","role","secondary","small","target","text","transparent","type","wide","round"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let d=e=>{let{adaptive:t=!1,animated:r=!1,ariaChecked:n,ariaLabel:f=null,ariaLabelledBy:d,as:h=null,children:y=null,className:m=null,color:g=null,dataComponentVariant:v=null,dataFeature:b=null,disabled:w=!1,fillHeight:O=!1,fluid:S=!1,gtmLabel:j=null,highlight:x=!1,href:_=null,icon:P=null,iconAnimationDuration:E=null,iconRotate:A=null,iconSize:k=20,iconSpinning:C=null,id:N,inputAppend:T=!1,inputPrepend:I=!1,inverted:R=!1,isLoading:L=!1,light:D=null,link:M=!1,noBorder:F=!1,noFocusOutline:U=!1,noMinHeight:Z=!1,noMinWidth:B=!1,noPadding:$=!1,noTab:G=null,onClick:z=null,role:q="button",secondary:H=!1,small:V=!1,target:W=null,text:K="",transparent:Y=!1,type:Q="button",wide:X=!1,round:J=!1}=e,ee=(0,o.Z)(e,l),et=h||"button",{colors:er}=(0,c.Z)();return(0,u.jsx)(et,p(p({},(0,a.Z)(ee)),{},{className:(0,i.Z)("button",{"button--adaptive":t,"button--animated":r,"button--fill-height":O,"button--fluid":S,"button--highlight":x,"button--icon":!L&&P,"button--input-append":T,"button--input-prepend":I,"button--inverted":R,"button--light":D,"button--link":M,"button--loading":L,"button--no-border":F,"button--no-focus-outline":U,"button--no-min-height":Z,"button--no-min-width":B,"button--no-padding":$,"button--secondary":H,"button--small":V,"button--transparent":Y,"button--wide":X,"button--round":J},m),disabled:w,onClick:z,"aria-label":f,type:"button"===et?Q:void 0,href:_,tabIndex:G?-1:void 0,"data-component":"Button","data-component-variant":v||j,"data-feature":b,"data-gtm-class":j,role:q,"aria-checked":n,"aria-labelledby":d,id:N,target:"a"===et?W:void 0,children:(0,u.jsx)("div",{className:"button__content",style:{color:g?er[g]:void 0},children:L?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{"aria-hidden":"true",style:{visibility:"hidden"},children:y||K}),(0,u.jsx)("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex"},children:(0,u.jsx)(s.Z,{name:"loading",size:k,spinning:!0,animationDuration:750,color:"baseWhite"})})]}):(0,u.jsxs)(u.Fragment,{children:[P&&(0,u.jsx)(s.Z,{name:P,size:k,spinning:C??void 0,animationDuration:E??void 0,rotate:A??void 0,color:"inherit",className:K?"mr-xs":void 0}),y||K]})})}))};d.displayName="Button",t.Z=d},8770:function(e,t,r){"use strict";var n=r(8307);r(67294);var o=r(90512),i=r(77107),a=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?s(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u={},l=e=>{let{children:t,className:r=null,color:n=null,bgColor:s=null,border:l=!1,borderColor:f=null,contentAlign:p="center",highlighted:d=!1,wrap:h=!1,slim:y=!1,transparent:m=!1,as:g="div",role:v=null,style:b=u}=e,{colors:w}=(0,i.Z)();return(0,a.jsx)(g,{"data-testid":"callout-box",className:(0,o.Z)(r,"callout-box hidden-print",{"callout-box--align-left":"left"===p,"callout-box--wrap":h,"callout-box--slim":y,"callout-box--highlighted":d,"callout-box--transparent":m,"callout-box--border":l}),style:c(c({},b),{},{backgroundColor:s?w[s]:void 0,borderColor:f?w[f]:void 0,color:n?w[n]:void 0}),role:v,children:t})};l.displayName="CalloutBox",t.Z=l},78508:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(90738),a=r(85893);let s=function(){let{inputId:e,feedbackId:t,children:r,className:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=(0,n.useMemo)(()=>({inputId:e,feedbackId:t}),[e,t]);return(0,a.jsx)(i.Z.Provider,{value:c,children:(0,a.jsx)("div",{className:(0,o.Z)("form-group",s),children:r})})};s.displayName="FormGroup",t.Z=s},10191:function(e,t,r){"use strict";var n=r(67294),o=r(90512),i=r(9811),a=r(85893);let s=e=>{let{children:t,srOnly:r=null,className:i=null,noAlign:s=!1}=e,c=n.Children.toArray(t),u=c.map(e=>{let t=e.props;return t?.size||1}),l=c.map(e=>{let t=e.props;return t?.sizingUnit}),f=Math.max(...u),p=l[0]||"px";if(new Set(l).size>1)throw TypeError(`Custom sizing units in an icon stack must all be set to the same value, got ${l}`);return(0,a.jsxs)("div",{className:(0,o.Z)("icon-stack",{"icon-stack--vertical-align":!s},i),style:{height:`${f}${p}`,width:`${f}${p}`},"data-testid":"icon-stack",children:[r&&(0,a.jsx)("span",{className:"sr-only","data-testid":"screen-reader",children:r}),c.map((e,t)=>{let r=e.props;return(0,a.jsx)("div",{className:"icon-stack__icon",style:{zIndex:c.length-t},children:e},`${r?.name}-${r?.color}-${r?.size}`)})]})};s.Icon=i.Z,s.displayName="IconStack",t.Z=s},60309:function(e,t,r){"use strict";var n=r(8307);r(67294);var o=r(90512),i=r(10191),a=r(77107),s=r(85893);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let u=e=>{let{icons:t=[],children:r=[],textColor:u=null,spacing:l="xs",className:f=null,noAlignment:p=!1,srOnly:d=null,iconRight:h=!1}=e,{colors:y}=(0,a.Z)(),m=(0,s.jsx)("div",{className:"icon-with-text__children",children:r});return(0,s.jsxs)("div",{className:(0,o.Z)("icon-with-text",f,{"icon-with-text--aligned":!p}),style:{color:u?y[u]:void 0},"data-testid":"icon-with-text",children:[h&&m,(0,s.jsx)(i.Z,{className:`flex-none m${h?"l":"r"}-${l}`,srOnly:d,children:t.map(e=>(0,s.jsx)(i.Z.Icon,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),`${e.name}-${e.color}-${e.size}`))}),!h&&m]})};u.displayName="IconWithText",t.Z=u},48917:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(67294),o=r(90512),i=r(42473),a=r.n(i),s=r(91033),c=r(67881),u=r(71738),l=r(88928),f=r(85893);let p=(0,n.forwardRef)((e,t)=>{let{domId:r,className:n=null,children:i,expandButtonText:a="Show more",collapseButtonText:s="Show less",onClick:p,sctrack:d=null,style:h=null,showButton:y=!1,isExpanded:m=!1,gtmLabel:g=null}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{id:r||void 0,ref:t,className:(0,o.Z)("region-clamper",n),style:h||void 0,"data-testid":"region-clamper",children:i}),y&&(0,f.jsx)(l.Z,{styled:!0,as:"button",onClick:p,sctrack:(0,u.Z)("RegionClamper",d),className:"region-clamper__expand-button","aria-expanded":m||!1,"aria-controls":r,"data-gtm-class":g&&(0,c.o)(`${m?"collapse":"expand"} ${g}`),children:m?s:a})]})});p.displayName="RegionClamper";let d=()=>!!window.CSS?.supports?.("color","var(--fake-var)"),h=e=>{let{domId:t=null,className:r=null,children:i,maxLines:c,expandButtonText:u="Read more",collapseButtonText:l="Read less",hideButton:h=!1,gtmLabel:y=null}=e,m=(0,n.useRef)(null),g=(0,n.useRef)(null),{0:v,1:b}
65=(0,n.useState)(!1),{0:w,1:O}=(0,n.useState)(!1),{0:S,1:j}=(0,n.useState)(!1),{0:x,1:_}=(0,n.useState)(c);if(a()(!!t||h,"A `domId` must be provided for accessibility purposes (unless `hideButton` is true)."),(0,n.useEffect)(()=>{v||_(c)},[c,v]),(0,n.useEffect)(()=>{if(!d()||!window.CSS?.supports?.("display","contents")||!(window.CSS?.supports?.("line-clamp","1")||window.CSS?.supports?.("-webkit-line-clamp","1"))){_(null);return}if(v||!c)return;let e=new s.default(e=>{e.forEach(e=>{let{scrollHeight:t,offsetHeight:r}=e.target;j(t>r)})});return g.current&&e.observe(g.current),()=>{e.disconnect()}},[i,c,v]),!c)return(0,f.jsx)("div",{id:t??void 0,className:(0,o.Z)("line-clamper",r),"data-testid":"root",children:i});let P=!h&&(S||w),E=t&&`${t}-region`;return(0,f.jsx)("div",{id:t??void 0,className:(0,o.Z)("line-clamper",{"line-clamper--expanded":P&&v,"line-clamper--collapsed":w&&!v},r),"data-testid":"root",ref:m,children:(0,f.jsx)(p,{domId:E,ref:g,className:"line-clamper__content",style:{lineClamp:x,WebkitLineClamp:x},showButton:P,onClick:e=>{let{scrollHeight:t,offsetHeight:r}=g.current;e.currentTarget.blur(),v||(m.current?.style.setProperty("--line-clamper-line-clamp",String(c)),m.current?.style.setProperty("--line-clamper-clamped-max-height",`${r}px`),m.current?.style.setProperty("--line-clamper-expanded-max-height",`${t}px`)),_(null),b(!v),w||O(!0)},expandButtonText:u,collapseButtonText:l,isExpanded:v,gtmLabel:y,children:i})})};h.displayName="LineClamper";var y=h},6138:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(88928),i=r(77107),a=r(85893);let s=o.Z,c=i.Z,u=e=>{let{text:t,url:r=null,prefix:o=null,hasFlag:i=!1,className:u=null,bgColor:l="inherit",color:f=null,rel:p=null,target:d=null,large:h=!1}=e,{colors:y}=c(),m=!!(l&&y[l]),g="inherit"===l?"inherit":l&&y[l];return(0,a.jsx)("div",{className:(0,n.Z)("link-box",{"body-copy-small":!h,"link-box--large":h,"link-box--flag":m&&i},u),style:{backgroundColor:g||void 0,color:m&&f?y[f]:void 0},children:(0,a.jsxs)("div",{className:(0,n.Z)({"pl-xxs pr-xxs":m&&!h,"pt-xxs pb-xxs pl-xs pr-xs":m&&h}),"data-testid":"link-box-link-wrapper",children:[o&&`${o} `,r?(0,a.jsx)(s,{styled:!m,rel:p,className:"link-box__link",href:r,target:d,children:t}):t]})})};u.displayName="LinkBox",t.Z=u},99086:function(e,t,r){"use strict";var n=r(8307),o=r(4730),i=r(67294),a=r(90512),s=r(75123),c=r(85893);let u=["className","children","itemSpacingX","itemSpacingY","ordered","horizontal","usePadding","marginTop","gtmLabel"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=(0,i.forwardRef)((e,t)=>{let{className:r,children:n=[],itemSpacingX:s=null,itemSpacingY:l=null,ordered:p=!1,horizontal:d=!1,usePadding:h=!1,marginTop:y=!1,gtmLabel:m=null}=e,g=(0,o.Z)(e,u),v=i.Children.toArray(n).filter(i.isValidElement),b=h?"p":"m",w=`${b}t-${l}`,O=`${b}${y&&!h?"t":"b"}-${l}`,S=`${b}r-${s}`;return(0,c.jsx)(p?"ol":"ul",f(f({},g),{},{className:(0,a.Z)(r,"list",{"list--horizontal":d}),"data-gtm-class":m,ref:t,children:v.map((e,t)=>(0,i.cloneElement)(e,{key:e.key||t,className:(0,a.Z)(e.props.className,l&&!d?`${w}`:null,l?`${O}`:null,s&&d&&v.length-1>t?`${S}`:null)}))}))});p.Item=s.Z,p.displayName="List",t.Z=p},42761:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(22120),i=r(9811),a=r(85893);let s=e=>{let{className:t=null,size:r=80,color:s="backgroundDark",fadeOut:c=!1}=e,{t:u}=(0,o.$G)(),l=i.Z;return(0,a.jsx)("div",{"aria-hidden":c||void 0,className:(0,n.Z)("loading-icon",{"loading-icon--fade-out":c},t),"data-testid":"loading-spinner",tabIndex:c?-1:void 0,children:(0,a.jsx)(l,{spinning:!0,color:s,animationDuration:1e3,name:"loading",srOnly:u("molecules.loadingIcon.sr.icon"),size:r})})};s.displayName="LoadingIcon",t.Z=s},64879:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(67294),o=r(90512);let i=(0,n.createContext)({show:!1,fluid:!1,onClose:()=>({})});var a=r(74349),s=r(85893);let c=(0,n.forwardRef)((e,t)=>{let{children:r=null,className:a=null,maxHeight:c="377px",noScroll:u=!1}=e,{0:l,1:f}
65=(0,n.useState)(!1),{show:p,fluid:d}=(0,n.useContext)(i);return(0,n.useEffect)(()=>{let e;return p?e=setTimeout(()=>f(!0),0):f(!1),()=>{clearTimeout(e),f(!1)}},[p]),(0,s.jsx)("div",{className:(0,o.Z)("modal__body",a),ref:t,style:{maxHeight:d?void 0:c,transition:l?"max-height 200ms":void 0,overflowY:u?"hidden":"auto"},"data-testid":"modal-body",children:r})});c.displayName="Modal.Body";var u=r(22120),l=r(86583),f=r(9811);let p=e=>{let{className:t,children:r,subHeader:a,size:c}=e,{onClose:p}=(0,n.useContext)(i),{t:d}=(0,u.$G)(),h=l.Z,y=f.Z;return(0,s.jsxs)("div",{className:(0,o.Z)("modal__header",t,{"pt-md pb-md":!!a}),children:[(0,s.jsxs)("div",{className:"d-flex full-width",children:[(0,s.jsx)(h,{className:(0,o.Z)("modal__title",{"pt-md pb-md":!a}),size:c,children:r}),(0,s.jsx)("button",{"aria-label":d("molecules.modal.ariaLabel.close"),type:"button",className:"modal__close-button",onClick:()=>p(),children:(0,s.jsx)(y,{name:"cross",size:20})})]}),a&&n.createElement("h7",null,a)]})};p.displayName="Modal.Header";let d=e=>{let{className:t=null,children:r=null}=e;return(0,s.jsx)("div",{className:(0,o.Z)("modal__footer",t),children:r})};d.displayName="Modal.Footer";let h=e=>{let{className:t=null,children:r=null}=e;return(0,s.jsx)("div",{className:(0,o.Z)("modal__sub-footer",t),children:r})};h.displayName="Modal.SubFooter";let y=e=>{let{bordered:t=!0,className:r=null,children:c=null,large:u=!1,show:l=!1,onClose:f=null,fluid:p=!1,hideBackground:d=!1}=e,h=a.Z,y=(0,n.useMemo)(()=>({show:l,onClose:f,fluid:p}),[l,f,p]);return(0,s.jsxs)(i.Provider,{value:y,children:[(0,s.jsx)("div",{style:{display:l?void 0:"none"},className:(0,o.Z)("modal",{"modal--bordered":t,"modal--fluid":p,"modal--large":u},r),"data-testid":"modal",children:c}),(0,s.jsx)(h,{active:l,className:"modal__backdrop",onClick:()=>f?.(),hideBackground:d})]})};y.Header=p,y.Body=c,y.Footer=d,y.SubFooter=h,y.displayName="Modal";var m=y},32428:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(48917),i=r(85893);let a={GBP:(0,i.jsx)(i.Fragment,{children:"\xa3"}),EUR:(0,i.jsx)(i.Fragment,{children:"â¬"}),USD:(0,i.jsx)(i.Fragment,{children:"$"})},s=e=>{let{maxLines:t=0,priceType:r=null,priceA:s=null,priceB:c=null,priceNotes:u=null,className:l=null,currency:f="GBP"}=e,p="string"==typeof s||"string"==typeof c?"":a[f];return(0,i.jsxs)("div",{className:(0,n.Z)("pricing-info d-flex flex-direction-column",l),"data-testid":"pricing-info",children:[(0,i.jsxs)("div",{children:["single"===r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"body-copy-large body-copy-bold pricing-info__value pr-md",children:[p,s]}),c&&(0,i.jsxs)("span",{className:"body-copy-small pricing-info__value--strikethrough",children:[p,c]})]}),"range"===r&&(0,i.jsxs)("span",{className:"body-copy-large body-copy-bold pricing-info__value",children:[p,s,"-",p,c]}),"from"===r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"body-copy-regular pr-xs",children:"From"}),(0,i.jsxs)("span",{className:"body-copy-large body-copy-bold pricing-info__value",children:[p,s]})]})]}),u&&(0,i.jsx)("div",{className:"body-copy-small pricing-info__notes",children:(0,i.jsx)(o.Z,{hideButton:!0,maxLines:t,children:u})})]})};s.displayName="PricingInfo",t.Z=s},98001:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}}),r(67294);var n=r(90512),o=r(22120),i=r(9811),a=r(88928),s=r(71738);let c=e=>{let{rating:t,isHalfStar:r,bestRating:n}=e,o=Number((t%1).toFixed(2)),i=!r&&o>=.45?Math.ceil:Math.round,a=r?i(2*t)/2:i(t),s=Number(t.toFixed(1))%1?(Math.round(10*t)/10).toFixed(1):t.toFixed(0);return{displayValue:a,srLabel:`A star rating of ${s} out of ${n}.`,starValue:a}},u=e=>{let{rating:t,bestRating:r}=e,n=t.toFixed(1),o=`A star rating of ${n} out of ${r}.`;return{displayValue:n,srLabel:o,starValue:Math.round(2*t)/2}};var l=r(85893);let f=e=>{let{bestRating:t=5,canRate:r=!1,className:f=null,hasRatingCount:p=!1,hasRatingValue:d=!1,iconColor:h="starRegular",iconSize:y=15,isHalfStar:m=!1,isInline:g=!1,isLoading:v=!1,ratingCount:b=0,ratingLink:w=null,ratingTypeLabel:O="review",ratingValue:S,skeleton:j=!1,isPrecise:x=!1,theme:_=null,globalOpenWebSettings:P=null,commentCount:E=0,ratingV
65aluePosition:A="before",sctrack:k=null}=e,{t:C}=(0,o.$G)(),N=Number.isNaN(Number(S))?0:Number(S),T=Number.isNaN(Number(b))?0:Number(b),I=C("molecules.rating.countText",{count:T,label:C(`molecules.rating.types.${O}`,{count:T,defaultValue:`${O}${1!==T?"s":""}`})}),R=Number.isNaN(Number(E))?0:Number(E),L=C("molecules.commentsLink.text",{count:R,label:C("molecules.commentsLink.text",{count:R})}),D="after"!==A,{displayValue:M,srLabel:F,starValue:U}=(x?u:c)({rating:N,bestRating:t,isHalfStar:m}),Z=[...Array(t)].map((e,t)=>{let r=(!!m||!!x)&&U-t>=.5&&U-t<1;return(0,l.jsx)(i.Z,{className:"rating__icon d-inline-flex",color:j?"backgroundLight":h,name:j?"star-fill":r?"star-half":t+1>U?"star-outline":"star-fill",size:y},`stars-${t}`)}),B=()=>(0,l.jsxs)("div",{className:(0,n.Z)(f,"rating",_&&`rating--theme-${_}`,{"rating--inline":g},{"rating__with-comments":P}),"data-testid":"rating",children:[(!P||P?.avgRatingOnCards)&&(0,l.jsxs)("div",{className:(0,n.Z)("rating__values",{"rating__values--no-rate":!r}),"aria-label":C("molecules.rating.ariaLabel.rating"),children:[d&&D&&(0,l.jsx)("p",{className:"rating__value body-copy-small","aria-hidden":"true","data-testid":"rating-value",children:M}),(0,l.jsx)("div",{className:"rating__stars d-flex",children:Z}),d&&!D&&(0,l.jsx)("p",{className:"rating__value body-copy-small","aria-hidden":"true","data-testid":"rating-value",children:M}),(0,l.jsx)("span",{className:"sr-only",children:F}),p&&(0,l.jsx)("span",{className:"rating__count-text body-copy-small",children:I}),r&&w&&(0,l.jsx)("span",{className:"rating__rate-link ml-xs body-copy-small",children:C("molecules.rating.inlineRateText")})]}),P?.numCommentsOnCards&&(0,l.jsx)("div",{className:"rating__comments-count-wrapper",children:(0,l.jsx)("span",{className:"rating__count-text body-copy-small",children:L})})]});return j?(0,l.jsxs)("div",{className:(0,n.Z)(f,"rating","rating--skeleton",{"rating--inline":g},{"rating--loading":v}),"data-testid":"rating",children:[Z,(0,l.jsx)("span",{className:"rating__count-text body-copy-small","aria-hidden":"true",children:`0 ${O}s`}),r&&w&&(0,l.jsx)("span",{className:"rating__rate-link body-copy-small ml-xs","aria-hidden":"true",children:C("molecules.rating.skeletonRateText")})]}):r&&w?(0,l.jsx)(a.Z,{href:w,className:"d-flex",sctrack:(0,s.Z)("Rating",k),children:B()}):B()};f.displayName="Rating";var p=f},80219:function(e,t,r){"use strict";var n=r(4730),o=r(67294),i=r(90512),a=r(14257),s=r(10191),c=r(71738),u=r(85893);let l=["fallbackIcon","preload"],f=e=>{let{fallbackIcon:t="no-img",preload:r=!1}=e,{width:f,height:p,className:d,maxWidth:h,url:y,gtmLabel:m,alt:g,title:v,quality:b,sizes:w,srcSetBreakpoints:O,external:S,loading:j,noPlaceholder:x,sctrack:_}=(0,n.Z)(e,l),P=f&&p?Math.max(p,f):null,{0:E,1:A}=(0,o.useState)(!!y);return(0,u.jsx)("div",{className:(0,i.Z)("round-image",d),children:E?(0,u.jsx)("div",{className:"round-image__img-wrapper",children:(0,u.jsx)(a.Z,{fluid:!0,scaleUp:!0,aspectRatio:1,width:P,height:P,onError:()=>A(!1),url:y,gtmLabel:m,alt:g,title:v,quality:b,sizes:w,srcSetBreakpoints:O,external:S,loading:j,noPlaceholder:x,preload:r,sctrack:(0,c.Z)("RoundImage",_)})}):(0,u.jsxs)(s.Z,{children:[(0,u.jsx)(s.Z.Icon,{name:t,color:"backgroundDark",size:h/2}),(0,u.jsx)(s.Z.Icon,{name:"circle",color:"backgroundLight",size:h})]})})};f.displayName="RoundImage",t.Z=f},2524:function(e,t,r){"use strict";var n=r(8307);r(67294);var o=r(90512),i=r(99086),a=r(10191),s=r(88928),c=r(52221),u=r(71738),l=r(85893);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let p=function(){let{rssFeed:e,twitterHandle:t,facebookProfile:r,pinterestProfile:n,youtubeChannel:o,instagramProfile:i,tiktokProfile:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s={facebook:r?`https://www.facebook.com/${r}`:null,twitter:t?`https://twitter.com/${t}`:null,instagram:i?`https://www.instagram.com/${i}`:null,pinterest:n?`http://uk.pinterest.com/${n}`:null,youtube:o?`https://www.youtube.com/${o}`:null,tiktok:a?`https://www.tiktok.com/${a}`:null,rss:e||null};return Object.keys(s).reduce((e,t)=>
65{let r=s[t];return r&&(e[t]=r),e},{})},d=(e,t,r)=>t?[{name:e,color:"baseWhite",size:r?18:22},{name:"circle",size:r?18:30,color:`social${(0,c.Z)(e)}`}]:"pinterest"===e?[{name:"pinterest-complete",color:"inherit",size:r?18:25}]:[{name:e,color:"inherit",size:r?18:25}],h=e=>{let{circled:t=!1,className:r=null,rssFeed:h=null,twitterHandle:y=null,facebookProfile:m=null,pinterestProfile:g=null,youtubeChannel:v=null,instagramProfile:b=null,tiktokProfile:w=null,coloured:O=!1,sctrack:S=null}=e,j=(0,u.Z)("SocialFollow",S),x=p({rssFeed:h,twitterHandle:y,facebookProfile:m,pinterestProfile:g,youtubeChannel:v,instagramProfile:b,tiktokProfile:w});return(0,l.jsx)(i.Z,{horizontal:!0,className:(0,o.Z)("social-follow",r,{"social-follow--circled":t}),"data-testid":"social-follow",children:Object.keys(x).map(e=>(0,l.jsx)(i.Z.Item,{className:`social-follow__${e}`,"data-testid":`social-follow-${e}`,children:(0,l.jsx)(s.Z,{href:x[e],className:(0,o.Z)("social-follow__link",{"pa-xxs":O}),target:"_blank",rel:"nofollow noopener noreferrer",sctrack:(0,u.Z)(e,j),children:(0,l.jsx)(a.Z,{className:"social-follow__icon",srOnly:`Visit us on ${(0,c.Z)(e)}`,children:d(e,O,t).map(t=>(0,l.jsx)(a.Z.Icon,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t),`${e}-${t.name}`))})})},e))})};h.displayName="SocialFollow",t.Z=h},90357:function(e,t,r){"use strict";var n=r(67294),o=r(6138),i=r(85893);let a=e=>{let{label:t="",pixels:r=null}=e;return((0,n.useEffect)(()=>{r&&r.length>0&&(window.dataLayer=window.dataLayer||[],r.forEach(e=>{window.dataLayer.push({event:"Tracking Pixel",url:e})}))},[]),t)?(0,i.jsx)("div",{"data-testid":"sponsor-tracking",children:(0,i.jsx)(o.Z,{bgColor:"commercialRegular",color:"baseWhite",rel:"nofollow",text:t})}):null};a.displayName="SponsorTracking",t.Z=a},89276:function(e,t,r){"use strict";r(67294);var n=r(90512),o=r(10191),i=r(99086),a=r(85893);let s=(e,t)=>{let r=Math.floor(e*t);return r%2==e%2?r:r+1},c=(e,t)=>{let{baseSize:r,forceCircle:n}=t,o={name:"circle",size:r},i={freezable:[{name:"snowflake",size:r}],"easily-doubled":[{name:"half-circle",size:r}],"easily-halved":[{name:"half-circle",size:r}],healthy:[{name:"heart",size:r}],vegan:[{name:"letter-ve",size:s(r,.75)},o],vegetarian:[{name:"letter-v",size:s(r,.75)},o],"gluten-free":[{name:"wheat",size:r}],skillLevel:[{name:"chefs-hat",size:s(r,.625)},o],time:[{name:"clock-hands",size:r},o]};if(e.match(/-of-5-a-day/))return n?[{name:"apple",size:s(r,.625)},o]:[{name:"apple",size:r}];if(n&&i[e]?.length===1&&"time"!==e){let t=i[e];if(t)return t[0].size=s(t[0].size,.625),t.concat(o)}return i[e]||[{name:"tick",size:s(r,.625)},o]},u=e=>{let{terms:t=[],className:r=null,baseSize:s=16,forceCircle:u=null,getIconClass:l=()=>void 0,singleRow:f=!1}=e;return(0,a.jsx)(i.Z,{horizontal:!0,usePadding:!0,itemSpacingX:"md",itemSpacingY:"xs",className:(0,n.Z)("terms-icons-list","d-flex",{"terms-icons-list--single-row":f},r),style:{height:f?s:void 0},children:t.map(e=>{let[t,r]=c(e.slug,{baseSize:s,forceCircle:u});return(0,a.jsxs)(i.Z.Item,{className:"d-flex",children:[(0,a.jsxs)(o.Z,{className:"mr-xxs",children:[(0,a.jsx)(o.Z.Icon,{className:l(!r),color:"inherit",name:t.name,size:t.size}),r&&(0,a.jsx)(o.Z.Icon,{className:l(!0),color:"inherit",name:r.name,size:r.size})]}),(0,a.jsx)("span",{className:"terms-icons-list__text d-flex align-items-center",style:{height:s},children:e.display})]},e.slug)})})};u.displayName="TermsIconList",t.Z=u},88455:function(e,t,r){"use strict";r.d(t,{Z:function(){return eW}});var n=r(8307),o=r(67294),i=r(84450);let a={false:null,true:{loggedIn:"This is a premium piece of content available to subscribed users.",notLoggedIn:"This is a premium piece of content available to subscribed users."}};var s=(e,t)=>{let r=a[e?"true":"false"];return r?r[t?"loggedIn":"notLoggedIn"]:null},c=r(90512),u=r(85893);let l=e=>{let{arrowsType:t="",className:r=null,horizontal:n=!1,transparent:o=!1,borderless:i=!1,inline:a=!1,type:s=null,theme:l=null,media:f=null,content:p=null,footer
65:d=null,gtmLabel:h=null,alignment:y=null,dataItemId:m=null,dataItemName:g=null,dataIndex:v=null,dataPlacement:b=null,dataFeature:w=null,dataItemType:O=null,badge:S=null,loose:j=!1,cardType:x="static"}=e;return(0,u.jsxs)("article",{className:(0,c.Z)("card",{"card--horizontal":n,"card--transparent":o,"card--inline":a,"card--with-borders":!i&&"transparent"!==s},{"card--video":"dense"===t},s&&`card--${s}`,l&&`card--theme-${l}`,"center"===y?"text-center":"text-align-left",r),"data-gtm-class":h,"data-item-id":m,"data-item-name":g,"data-variant":n?"horizontal":"standard","data-index":null!=v?`${v+1}`:void 0,"data-component":"Card","data-placement":b,"data-feature":w,"data-item-type":O,"data-testid":"card",children:[f&&(0,u.jsx)("div",{className:(0,c.Z)("card__section card__media",{video_players:"video_players"===x}),"data-testid":"card-media",children:f}),S&&(0,u.jsx)("span",{className:"card__badge",children:S}),p&&(0,u.jsx)("div",{className:(0,c.Z)("card__section","card__content",{"card__content--loose":j&&!S},{"card__content--video":"dense"===t}),"data-testid":"card-content",children:p}),d&&(0,u.jsx)("div",{className:"card__section card__footer","data-testid":"card-footer",children:d})]})};l.displayName="Card";var f=r(22120),p=r(71738),d=r(88928),h=r(9811),y=r(48917),m=r(27618),g=r(82624);let v=e=>{let{className:t=null,title:r="",certificate:n="",description:o="",genres:i=[],year:a="",url:s="",media:l=null,dataItemId:v=null,dataItemName:b=null,dataIndex:w=0,dataPlacement:O=null,dataFeature:S=null,dataItemType:j=null,sctrack:x=null}=e,{t:_}=(0,f.$G)();return(0,u.jsxs)("article",{className:(0,c.Z)("tv-card",t),"data-item-id":v,"data-item-name":b,"data-index":null!=w?`${w+1}`:void 0,"data-component":"Tv-Card","data-placement":O,"data-feature":S,"data-item-type":j,"data-testid":"TV-card",children:[(0,u.jsxs)("div",{className:(0,c.Z)("tv-card__hero"),children:[l&&(0,u.jsx)("div",{className:(0,c.Z)("tv-card__media"),"data-testid":"card-media",children:l}),(0,u.jsxs)("div",{className:(0,c.Z)("tv-card__info"),children:[(0,u.jsx)(d.Z,{styled:!0,href:s,className:(0,c.Z)("tv-card__title"),sctrack:(0,p.Z)("Tv-Card",x),children:r}),a&&(0,u.jsx)("p",{className:(0,c.Z)("tv-card__year"),children:a}),i?.length>0&&(0,u.jsx)("div",{className:(0,c.Z)("tv-card__genres"),children:i.map(e=>(0,u.jsx)("p",{className:(0,c.Z)("tv-card__genre"),children:e},e))}),n&&(0,u.jsxs)("div",{className:(0,c.Z)("tv-card__certificate"),children:[(0,u.jsx)("p",{className:(0,c.Z)("tv-card__certificate-text"),children:n}),(0,u.jsx)(g.Z,{position:"auto",content:{U:"UK: Suitable for all",PG:"UK: General viewing, but some scenes may be unsuitable for young children","12A":"UK: Suitable only for persons of 12 years and over (unless accompanied by an adult)",12:"UK: Suitable only for persons of 12 years and over",15:"UK: Suitable only for persons of 15 years and over",18:"UK: Suitable only for persons of 18 years and over"}[n],children:(0,u.jsx)(h.Z,{name:"info-circle",size:15,color:"backgroundDark"})})]})]})]}),(0,u.jsx)("div",{className:(0,c.Z)("tv-card__content"),children:(0,u.jsx)(y.Z,{domId:"tv-card__description","data-testid":"tv-card-read-more",maxLines:4,className:"tv-card__description",expandButtonText:_("molecules.postTeaser.readMore"),collapseButtonText:_("molecules.postTeaser.readLess"),children:(0,u.jsx)(m.Z,{children:o})})})]})};v.displayName="TvCard";var b=r(18769),w=r(31855),O=r(86583),S=r(98001),j=r(15783),x=r(77801),_=r(60309),P=r(10191);let E=e=>{let{isHorizontalCard:t=!1,isLoggedIn:r=!1,className:n=null}=e,{t:o}=(0,f.$G)();return(0,u.jsx)("div",{className:(0,c.Z)("premium-identifier",n),children:t?(0,u.jsxs)(P.Z,{className:"mr-xxs mb-xxs",children:[(0,u.jsx)(P.Z.Icon,{name:"lock",color:"baseBlack",size:10}),(0,u.jsx)(P.Z.Icon,{name:"circle",color:"starRegular",size:20})]}):(0,u.jsx)(j.Z,{className:"premium-identifier__tag",children:r?"Premium":(0,u.jsx)(_.Z,{iconRight:!0,spacing:"xxs",icons:[{name:"lock",color:"starRegular",size:14}],children:o("atoms.premiumIdentifier.iconText")})})})};E.displayName="PremiumIdentifier";var A=r(32428),k=r(14257);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let N=O.Z,T=S.Z,I=d.Z,R=j.Z,L=h.Z,D=y.Z,M=x.Z,F=A.Z,U=k.Z,Z=e=>{let{children:t=null,title:r=null,descriptionSmall:i=!1,descriptionEmphasis:a=!1,descriptionIsRichText:s=!1,descriptionMaxLines:l=3,kicker:p=null,showTitleIcon:d=!1,rating:h=null,url:y=null,type:m=null,headingSize:g=4,headingStyledSize:v=4,description:O=null,sponsor:S=null,sponsorTracking:j=null,label:x=null,contentType:_=null,horizontal:P=!1,isPremium:A=!1,premiumA11yLabel:k=null,chip:Z=!1,theme:B=null,partnerLogo:$=null,pricing:G=null,offerCode:z=null,callout:q=null,globalOpenWebSettings:H=null,index:V=null}=e,{t:W}=(0,f.$G)(),K=(0,o.useContext)(b.Z),Y={audio:"microphone",gallery:"camera",quote:"pullquote",video:"play"},Q=Z?"chip":"label",X=y?I:"div",J=d&&!!_&&Object.keys(Y).includes(_)&&!(A&&P),ee=(0,o.useCallback)(()=>{"function"==typeof K&&Promise.resolve(K({resultUrl:y||"",resultPosition:(V??0)+1}))},[y,V,K]);return(0,u.jsxs)(u.Fragment,{children:[x&&(0,u.jsx)(R,{disableHitSpace:!0,className:(0,
65c.Z)("card__tag",`card__tag--${Q}`),url:x.url,type:Q,children:x.text}),q&&P&&(0,u.jsx)(R,{className:(0,c.Z)("card__tag"),type:"teaser",children:q}),$&&(0,u.jsx)("div",{className:(0,c.Z)("d-flex mb-sm mt-xs",{"justify-content-center":!P}),children:(0,u.jsx)(U,{url:$.url,alt:$.title,width:140,height:42})}),r&&(0,u.jsxs)(X,{href:y,className:(0,c.Z)("d-block",{"data-gtm-premium-card-title":A}),"data-testid":"title-wrapper",onClick:()=>ee(),children:[A&&P&&(0,u.jsx)(E,{isHorizontalCard:!0,className:"card__title-premium-icon"}),J&&(0,u.jsx)(L,{className:"card__title-icon mr-xxs d-inline-block",name:_?Y[_]:void 0,color:"inherit",size:20,srOnly:_}),(0,u.jsxs)(N,{size:g,styledSize:v,color:"inherit",className:J||P&&A?"d-inline":null,children:[p&&(0,u.jsx)(M,{className:"card__kicker",isCard:!0,children:p}),(0,w.Z)(r),A&&(0,u.jsxs)("span",{className:"sr-only premium-a11y-label","data-testid":"sr-only",children:[". ",k]})]})]}),h&&(0,u.jsx)(T,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:"card__rating",theme:B,iconColor:"inherit",globalOpenWebSettings:H},h)),j&&(0,u.jsx)("p",{className:"card__sponsor body-copy-small body-copy-bold pt-reset",children:j}),S&&(0,u.jsx)("p",{className:"card__sponsor body-copy-small body-copy-bold pt-reset",children:S}),O?(()=>{let e=(0,w.Z)(O),t="string"==typeof O&&/<(p|div|h[1-6]|ul|ol|li|blockquote|pre|hr|table|thead|tbody|tr|td|th|section|article|header|footer|main|aside|nav)\b/i.test(O),r=s||t?"div":"p";return(0,u.jsx)(D,{hideButton:!0,maxLines:l,children:(0,u.jsx)(r,{className:(0,c.Z)("card__description","d-block",{"body-copy-small":!i,"body-copy-extra-small":i,"fs-italic":a,"editor-content":s}),children:e})})})():null,G&&G.priceType&&(0,u.jsx)(F,{priceType:G.priceType,priceA:G.priceA,priceB:G.priceB,priceNotes:G.priceNotes,className:A?"pricing-info--premium":null}),z&&(0,u.jsx)(N,{size:6,styledSize:7,className:"mt-xs",children:W("organisms.cardBuilder.offerCodeText",{offerCode:z})}),t]})};Z.displayName="CardBuilder.Content";let B=r(89276).Z,$=h.Z,G=g.Z,z=e=>{let{terms:t=null,footerTooltip:r=null,footerIcon:n=null,inline:o=!1,publishDate:i=null,authors:a=null}=e;return(0,u.jsxs)(u.Fragment,{children:[!!t?.length&&(0,u.jsx)(B,{forceCircle:!0,className:"card__footer-item",baseSize:22,getIconClass:e=>`card__term-icon${e?"-base":""}`,terms:t,singleRow:o}),n?.icon&&(0,u.jsx)("div",{className:"card__footer-item mb-xs",children:(0,u.jsx)($,{name:n.icon,srOnly:n.label,height:20})}),r?.label&&r?.content&&(0,u.jsx)(G,{className:"card__footer-item card__footer-tooltip mb-xs body-copy-extra-small",content:r.content,trigger:"click",position:"bottom",children:r.label}),i&&(0,u.jsx)("div",{"data-testid":"card-footer-publish-date",className:"card__footer-item card__footer-publish-date",children:i}),a&&(0,u.jsx)("div",{"data-testid":"card-footer-author",className:"card__footer-item card__footer-author",children:a})]})};z.displayName="CardBuilder.Footer";var q=r(42473),H=r.n(q),V=r(60441),W=r(8770),K=r(61256);let Y=K.Z,Q=e=>{let{onClick:t=null,isActive:r=!1,ariaLabel:n="",icon:o}=e;return(0,u.jsx)(Y,{ariaLabel:n,onClick:t,light:!0,icon:r?o.active:o.name,noMinWidth:!0,className:"card__media-buttons-btn mb-xs"})};Q.displayName="CardBuilder.CardButton";var X=r(5275),J=r(30899);function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let er=k.Z,en=d.Z,eo=h.Z,ei=W.Z,ea=[],es=e=>{let{image:t=null,url:r=null,title:n=null,noPlaceholderImage:a=!1,overlayButtons:s=ea,horizontal:l=!1,contentType:p=null,callout:d=null,isPremium:h=!1,premiumA11yLabel:y=null,preloadImage:m=!1,index:g=null,video:v=null}=e,{t:w}=(0,f.$G)(),O=!!(0,o.useContext)(i.Z),{greenVideoSettings:S}=(0,o.useContext)(J.Z),j=(0,o.useContext)(b.Z),x=(0,V.Z)(),_={audio:"microphone",gallery:"camera"},P=!!v?.data?.videoId,A=()=>P?"play":p&&_[p]||null;
65t&&H()(!!t?.aspectRatio,"An aspect ratio should be set in the `image` object for all cards.");let k=r?en:"div",C=r&&n?w("organisms.cardBuilder.ariaLabel.mediaImage",{title:n}):null;C&&h&&(C+=`. ${y}`);let N=(0,o.useCallback)(()=>{"function"==typeof j&&Promise.resolve(j({resultUrl:r||"",resultPosition:(g??0)+1}))},[r,g,j]),T=()=>{sessionStorage.setItem(X.SESSION_STORAGE_ITEM_NAMES.CLICK_TO_PLAY_CONSENTED,"true")};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"d-block p-relative",children:(0,u.jsx)("div",{className:"p-absolute card__media-buttons pa-xs",children:s.map(e=>(0,u.jsx)(Q,et({},e),`${e.icon?.name}`))})}),(0,u.jsxs)(k,et(et({href:r,"aria-label":C,className:(0,c.Z)("d-block","p-relative","card__image-container",{"data-gtm-premium-card-image":h}),"data-testid":"card-image-container",onClick:()=>{N(),P&&x&&!(h&&!O)&&S?.simulatePlayClicks&&T()}},r&&P&&!h&&{gtmLabel:"CardVideoPlayIcon"}),{},{children:[h&&!l&&(0,u.jsx)(E,{className:"card__overlay-premium"}),(!!v||p&&Object.keys(_).includes(p))&&(0,u.jsx)("div",{className:(0,c.Z)("card__overlay-icon","p-absolute","d-grid justify-content-center align-content-center",{"card__overlay-icon--horizontal":l}),children:A()&&(0,u.jsx)(eo,{name:A(),color:"baseWhite",size:l?24:40})}),(0,u.jsx)(er,et(et({},t),{},{caption:null,sourceName:null,className:(0,c.Z)("card__img",{"card__img--contained":!!t?.contain}),fluid:!0,scaleUp:!0,sizes:l?["93px"]:t?.sizes||["(min-width: 768px) 300px","(min-width: 544px) 556px","calc(100vw - 20px)"],srcSetBreakpoints:l?[93,186,279,372]:t?.srcSetBreakpoints||[180,300,375,450,575,700,900,1200,1500,2e3],maxWidth:l?93:t?.maxWidth||556,noPlaceholder:a,preload:m})),d&&!l&&(0,u.jsx)(ei,{slim:!0,bgColor:"highlightRegular",transparent:!0,className:(0,c.Z)("card__callout",{"p-relative":!t}),children:d})]}))]})};es.displayName="CardBuilder.Media";var ec=r(86206),eu=r(63038);function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?el(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ep=ec.Z,ed=eu.Z,eh=(e,t)=>{let r=ef(ef(ef({},e.defaultProps),t),{},{className:null}),n=e(r);return n&&o.Children.toArray(n.props.children).filter(e=>e).length?n:null},ey=e=>{let t=(0,o.useContext)(i.Z),{alignment:r=null,arrowsType:n="",badge:a=null,cardType:c="",loose:f=!1,borderless:p=!1,className:d=null,contentType:h=null,dataFeature:y=null,gtmLabel:m=null,hasMedia:g=!0,horizontal:b=null,tvCard:w=null,id:O=null,index:S=null,inline:j=!1,isPremium:x=!1,postType:_=null,theme:P=null,title:E=null,transparent:A=null,type:k=null,publishDate:C=null,video:N=null,authors:T=null,genres:I=[],certificate:R=null,description:L=null,year:D=null,url:M=null}=e,F=!P&&x?"premium":P,U=s(x??!1,t),B=ef(ef({},e),{},{authors:T,contentType:h,premiumA11yLabel:U,publishDate:C,theme:F}),$=()=>{if("video_players"===c&&N&&N.type&&N.data){if("ediplayer"===N.type)return(0,u.jsx)(ep,ef({},N.data));if("onnetwork"===N.type)return(0,u.jsx)(ed,ef({},N.data))}return g?eh(es,B):null};return w?(0,u.jsx)(v,{title:E,year:D,url:M,media:$(),genres:I,description:L,certificate:R,dataFeature:y,dataIndex:S,dataItemId:O,dataItemName:E,dataItemType:_}):(0,u.jsx)(l,{alignment:r,arrowsType:n,badge:a,loose:f,borderless:p,className:d,content:eh(Z,B),dataFeature:y,dataIndex:S,dataItemId:O,dataItemName:E,dataItemType:_,footer:eh(z,B),gtmLabel:m,horizontal:b,inline:j,media:$(),theme:F,transparent:A,type:k,cardType:c})};ey.displayName="CardBuilder.CardBuilder";let em=(0,o.forwardRef)((e,t)=>{let{arrowsType:r="",className:n=null,horizontal:o=!1,isSaveable:i=!1,theme:a=null,transparent:s=!1,type:l=null,media:f=null,content:p=null,footer:d=null,gtmLabel:h=null,alignment:y=null,dataItemId:m=null,dataItemName:g=null,dataIndex:v=null,dataPlacement:b=null,dataFeature:w=null,dataItemType:O=null,rating:S=null,cardType:j="static"}=e;
65return(0,u.jsxs)("article",{className:(0,c.Z)("new-card",{"new-card--horizontal":o,"new-card--transparent":s},{"new-card--video":"dense"===r},l&&`new-card--${l}`,a&&`new-card--theme-${a}`,"center"===y?"text-center":"text-align-left",n),"data-gtm-class":h,"data-item-id":m,"data-item-name":g,"data-variant":o?"horizontal":"standard","data-index":`${(v??0)+1}`,"data-component":"Card","data-placement":b,"data-feature":w,"data-item-type":O,"data-testid":"new-card",ref:t,children:[f&&(0,u.jsx)("div",{className:(0,c.Z)("new-card__section new-card__media",{video_players:"video_players"===j}),"data-testid":"new-card-media",children:f}),p&&(0,u.jsx)("div",{className:(0,c.Z)("new-card__section","new-card__content",{"new-card__content--video":"dense"===r}),"data-testid":"new-card-content",children:p}),(S||i)&&(0,u.jsx)("div",{className:"new-card__section new-card__footer","data-testid":"new-card-footer",children:d})]})});em.displayName="Card";let eg=e=>{let{children:t,className:r=null,url:n=null,type:o="label",disableHitSpace:i=!1,onClick:a=null,sctrack:s=null}=e,l="span";return n&&(l="a"),(0,u.jsx)(l,{className:(0,c.Z)(r,"new-tag",`new-tag--${o}`,{"new-tag--link":n,"new-tag--extra-hit-space":!i}),href:n||void 0,onClick:a||void 0,"data-sctrack":(0,p.Z)("Tag_NEW",s),children:t})};eg.displayName="Tag";let ev=O.Z,eb=d.Z,ew=y.Z,eO=x.Z,eS=A.Z,ej=k.Z,ex=g.Z,e_=e=>{let{children:t=null,authors:r=null,title:n=null,descriptionSmall:o=!1,kicker:i=null,headingSize:a=4,headingStyledSize:s=4,url:l=null,label:p=null,description:d=null,descriptionEmphasis:h=!1,descriptionIsRichText:y=!1,horizontal:m=!1,sponsor:g=null,sponsorTracking:v=null,isPremium:b=!1,premiumA11yLabel:O=null,publishDate:S=null,chip:j=!1,partnerLogo:x=null,pricing:_=null,offerCode:P=null,terms:E=null,tooltip:A=null,footerIcon:k=null}=e,{t:C}=(0,f.$G)(),N=j?"chip":"label",T=l?eb:"div";return(0,u.jsxs)(u.Fragment,{children:[p&&(0,u.jsx)(eg,{className:(0,c.Z)("new-card__tag",`new-card__tag--${N}`),url:p.url,type:N,children:p.text}),(0,u.jsx)("div",{className:(0,c.Z)("body-copy-extra-small","new-card__content__eyebrow"),children:(0,u.jsxs)("span",{className:"new-card__content__eyebrow__meta",children:[E&&E.length>0&&E.map((e,t)=>{let{slug:r,display:n}=e;return(0,u.jsx)("span",{className:`new-card__content__eyebrow__term ${t===E.length-1&&"last"}`,children:n},r)}),r&&(0,u.jsx)("span",{children:r}),S&&(0,u.jsx)("span",{children:C("organisms.postHeader.publishDate",{published:S})}),A?.label&&A?.content&&(0,u.jsx)(ex,{content:A.content,className:"new-card__footer__footer-tooltip",trigger:"mouseenter",position:"top",children:A.label})]})}),x&&(0,u.jsx)("div",{className:(0,c.Z)("d-flex mb-sm mt-xs"),children:(0,u.jsx)(ej,{url:x.url,alt:x.title,width:140,height:42})}),n&&(0,u.jsx)(T,{href:l,className:(0,c.Z)("d-block",{"data-gtm-premium-card-title":b}),"data-testid":"title-wrapper",children:(0,u.jsxs)(ev,{size:a,styledSize:s,color:"inherit",className:(0,c.Z)("new-card__heading"),children:[i&&(0,u.jsx)(eO,{className:"new-card__kicker",isCard:!0,children:i}),(0,w.Z)(n),b&&(0,u.jsxs)("span",{className:"sr-only premium-a11y-label","data-testid":"sr-only",children:[". ",O]})]})}),v&&(0,u.jsx)("p",{className:"new-card__sponsor body-copy-small body-copy-bold pt-reset",children:v}),g&&(0,u.jsx)("p",{className:"new-card__sponsor body-copy-small body-copy-bold pt-reset",children:g}),d?(()=>{let e=(0,w.Z)(d),t="string"==typeof d&&/<(p|div|h[1-6]|ul|ol|li|blockquote|pre|hr|table|thead|tbody|tr|td|th|section|article|header|footer|main|aside|nav)\b/i.test(d),r=y||t?"div":"p";return(0,u.jsx)(ew,{hideButton:!0,maxLines:m?2:4,children:(0,u.jsx)(r,{className:(0,c.Z)("new-card__description","d-block",{"body-copy-small":!o,"body-copy-extra-small":o,"fs-italic":h,"editor-content":y}),children:e})})})():null,_&&_.priceType&&(0,u.jsx)(eS,{maxLines:2,priceType:_.priceType,priceA:_.priceA,priceB:_.priceB,priceNotes:_.priceNotes,className:b?"pricing-info--premium":null}),P&&(0,u.jsx)(ev,{size:6,styledSize:7,className:"mt-xs",children:C("organisms.cardBuilder.offerCodeText",{offerCode:P})}),t]})};function eP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}
65e_.displayName="CardBuilder_NEW.Content";let eE=S.Z,eA=e=>{let{rating:t=null}=e;return(0,u.jsx)("div",{children:(0,u.jsx)(eE,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eP(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:"new-card__rating",iconColor:"inherit"},t))})};eA.displayName="CardBuilder_NEW.Footer";let ek=e=>{let{className:t=null}=e;return(0,u.jsx)("div",{className:(0,c.Z)("new-premium-identifier",t),children:(0,u.jsx)(j.Z,{className:"new-premium-identifier__tag",children:(0,u.jsx)(h.Z,{name:"padlock",color:"starRegular",size:20})})})};ek.displayName="NewPremiumIdentifier";let eC=K.Z,eN=e=>{let{onClick:t=null,isActive:r=!1,ariaLabel:n="",icon:o}=e;return(0,u.jsx)(eC,{ariaLabel:n,onClick:t,light:!0,icon:r?o.active:o.name,noMinWidth:!0,className:"new-card__media-buttons-btn mb-xs"})};function eT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eT(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}eN.displayName="CardBuilder_NEW.CardButton";let eR=k.Z,eL=d.Z,eD=h.Z,eM=W.Z,eF=e=>{let{image:t=null,url:r=null,title:n=null,noPlaceholderImage:o=!1,showOverlayIcon:i=!1,overlayButtons:a=[],horizontal:s=!1,contentType:l=null,callout:p=null,isPremium:d=!1,premiumA11yLabel:h=null,preloadImage:y=!1,squareImage:m=!1}=e,{t:g}=(0,f.$G)();
65t&&H()(!!t?.aspectRatio,"An aspect ratio should be set in the `image` object for all cards.");let v=r?eL:"div",b=r&&n?g("organisms.cardBuilder.ariaLabel.mediaImage",{title:n}):null;return b&&d&&(b+=`. ${h}`),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"d-block p-relative",children:(0,u.jsx)("div",{className:"p-absolute new-card__media-buttons pa-xs",children:a.map(e=>(0,u.jsx)(eN,eI({},e),`${e.icon?.name}`))})}),(0,u.jsxs)(v,{href:r,"aria-label":b,className:(0,c.Z)("d-block","p-relative","new-card__image-container",{"data-gtm-premium-card-image":d}),"data-testid":"new-card-image-container",children:[i&&l&&(0,u.jsx)("div",{className:(0,c.Z)("new-card__overlay-icon","d-grid justify-content-center align-content-center"),children:(0,u.jsx)(eD,{name:l?({audio:"audio-microphone",video:"play",gallery:"photo-camera"})[l]:void 0,color:"baseBlack",size:20})}),(0,u.jsx)(eR,eI(eI({},t),{},{aspectRatio:m?"square":null,contain:t?.contain||m?"horizontal":null,caption:null,sourceName:null,className:(0,c.Z)("new-card__img",{"new-card__img--contained":!!t?.contain}),fluid:!0,scaleUp:!0,sizes:s?["93px"]:t?.sizes||["(min-width: 768px) 300px","(min-width: 544px) 556px","calc(100vw - 20px)"],srcSetBreakpoints:s?[93,186,279,372]:t?.srcSetBreakpoints||[180,300,375,450,575,700,900,1200,1500,2e3],maxWidth:s?93:t?.maxWidth||556,noPlaceholder:o,preload:y})),d&&(0,u.jsx)(ek,{className:"new-card__overlay-premium"}),p&&!s&&(0,u.jsx)(eM,{slim:!0,bgColor:"highlightRegular",transparent:!0,className:(0,c.Z)("new-card__callout",{"p-relative":!t}),children:p})]})]})};function eU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eZ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eU(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eU(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}eF.displayName="CardBuilder_NEW.Media";let eB=ec.Z,e$=eu.Z,eG=e=>{let{children:t=null,alignment:r=null,arrowsType:n="",authors:a=null,badge:c=null,callout:l=null,cardType:f="",chip:p=!1,certificate:d=null,className:h=null,contentType:y=null,description:m=null,descriptionSmall:g=!1,descriptionEmphasis:b=!1,descriptionIsRichText:w=!1,dataFeature:O=null,footerTooltip:S=null,footerIcon:j=null,genres:x=[],gtmLabel:_=null,id:P=null,image:E=null,index:A=null,isPremium:k=!1,isSaveable:C=!1,hasMedia:N=!0,headingSize:T=4,headingStyledSize:I=4,horizontal:R=null,kicker:L=null,label:D=null,noPlaceholderImage:M=!1,offerCode:F=null,showOverlayIcon:U=!1,partnerLogo:Z=null,postType:B=null,preloadImage:$=!1,pricing:G=null,publishDate:z=null,sponsor:q=null,sponsorTracking:H=null,rating:V=null,terms:W=null,theme:K=null,title:Y=null,transparent:Q=null,tvCard:X=null,type:J=null,url:ee=null,year:et=null,video:er=null}=e,en=(0,o.useContext)(i.Z),eo=(0,o.useRef)(null),{0:ei,1:ea}=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{eo.current&&ea(eo.current.offsetWidth<=300)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let es=!K&&k?"premium":K,ec=s(k,en),eu=(0,u.jsx)(e_,{authors:a,title:Y,headingStyledSize:I,descriptionSmall:g,descriptionEmphasis:b,descriptionIsRichText:w,kicker:L,url:ee,headingSize:T,horizontal:R??void 0,footerIcon:j,tooltip:S,description:m,sponsor:q,sponsorTracking:H,label:D,isPremium:k,premiumA11yLabel:ec,chip:p,partnerLogo:Z,pricing:G,publishDate:z,offerCode:F,terms:W,children:t}),el=(0,u.jsx)(eF,{image:E,url:ee,title:Y,noPlaceholderImage:M,showOverlayIcon:U,horizontal:R??void 0,contentType:y,callout:l,isPremium:k,premiumA11yLabel:ec,preloadImage:$,squareImage:ei}),ef=(0,u.jsx)(eA,{rating:V,isSaveable:C}),ep=()=>{if("video_players"===f&&er&&er.type&&er.data){if("ediplayer"===er.type)return(0,u.jsx)(eB,eZ({},er.data));if("onnetwork"===er.type)return(0,u.jsx)(e$,eZ({},er.data))}return N?el:null};return X?(0,u.jsx)(v,{title:Y,year:et,url:ee,media:ep(),genres:x,description:m,certificate:d,dataFeature:O,dataIndex:A,dataItemId:P,dataItemName:Y,dataItemType:B}):(0,u.jsx)(em,{alignment:r,arrowsType:n,badge:c,className:h,content:eu,dataFeature:O,dataIndex:A,dataItemId:P,dataItemName:Y,dataItemType:B,footer:ef,gtmLabel:_,horizontal:R,isSaveable:C,media:ep(),rating:V,theme:es,transparent:Q,type:J,cardType:f,ref:eo})};
65eG.displayName="CardBuilder";var ez=r(20181);function eq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eq(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eq(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eV=e=>(0,ez.ZP)(ez.N1)?(0,u.jsx)(eG,eH({},e)):(0,u.jsx)(ey,eH({},e));eV.displayName="CardBuilderComponent";var eW=eV},89229:function(e,t,r){"use strict";r(67294);var n=r(85893);let o=e=>{let{builtCards:t=[]}=e;return(0,n.jsx)("div",{className:"card-carousel__basic","aria-hidden":"true",children:t})};o.displayName="CardCarousel.FallbackCarousel",t.Z=o},41009:function(e,t,r){"use strict";var n=r(8307),o=r(67294),i=r(91033),a=r(90512),s=r(41537),c=r(88455),u=r(89229),l=r(11179),f=r(77107),p=r(22359),d=r
65(86583),h=r(61256),y=r(42761),m=r(85893);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let b=c.Z,w=d.Z,O=h.Z,S=y.Z,j=e=>{let{adaptive:t=!1,arrowsType:r="",button:n=null,cards:c=[],cardsToShow:d="auto",cardWidth:h=null,centerMode:y=null,className:g=null,dataFeature:j=null,dots:x=!0,fallback:_=null,gtmLabel:P=null,headingStyle:E={},iconSize:A=30,infinite:k=!0,link:C=null,loading:N=!1,dataComponent:T="CardCarousel",dataPlacement:I=null,dataFeatureVariant:R=null,dataTestId:L=null,postType:D=null,responsive:M=[],showSlideNumber:F=!1,sliderRef:U=null,title:Z=null,titleSize:B=3,cardType:$=""}=e,{currentBreakpoint:G}=(0,l.Z)(),{spacingUnits:z}=(0,f.Z)(),{0:q,1:H}=(0,o.useState)(d??"auto"),{0:V,1:W}=(0,o.useState)(!1),K=(0,o.useRef)(null),Y="xs"===G;(0,o.useEffect)(()=>{if("auto"!==d||!K.current)return H(d),()=>{};let e=()=>{let e=Number(z?.xs?.replace("px","")??"0"),t=h||180,r=K.current.offsetWidth/(t+e);return Math.max(h?r:Math.floor(r),1)},t=e();H(t);let r=new i.default(r=>{r.forEach(()=>{if(!K.current)return;let r=e();r!==t&&(t=r,H(r))})});return r.observe(K.current),()=>{r.disconnect()}},[K,d,t,Y,h,z]),(0,o.useEffect)(()=>{if(!t){W(!1);return}let e=Array.isArray(c)&&c.length>1;W(Y&&e)},[Y,t,c]);let Q=c.map((e,t)=>{if(e.novaId)return(0,m.jsx)(p.Z,{location:"cardCarousel",index:"default",slotKey:"block-native"});let n=t<9?`0${t+1}`:`${t+1}`;return(0,o.createElement)(b,v(v({},e),{},{key:e.id||e.url||e.title,horizontal:e.horizontal||!1,index:t,transparent:e.transparency,borderless:e.borderless,badge:F?n:null,arrowsType:r,cardType:$}))});if("recipe"===D){let e=Math.max((1===d?1:Y?2:3)-Q.length,0);for(let t=0;t<e;t+=1)Q.push((0,m.jsx)("div",{"data-testid":`dummy-card-${t}`},`dummy-card-${t}`))}if(N)return(0,m.jsx)("div",{"data-testid":"card-carousel-loading",children:_||(0,m.jsxs)("div",{className:"d-flex justify-content-center align-items-center p-relative",style:{height:"100%",width:"100%",backgroundColor:"#f5f5f5"},children:[(0,m.jsx)(S,{size:40}),C&&(0,m.jsx)("a",{className:"card-carousel__link","data-testid":"card-carousel-link",href:C.url,children:C.label}),n&&(0,m.jsx)(O,{className:"card-carousel__button",adaptive:!0,as:"a","data-testid":"card-carousel-button",href:n.url,text:n.label})]})});if(!c.length)return null;let X=(0,m.jsx)(u.Z,{builtCards:Q});return(0,m.jsxs)("div",{ref:K,className:(0,a.Z)("card-carousel",{"card-carousel--adaptive":t},g),"data-testid":L||"card-carousel","data-component":T,"data-feature":j,"data-placement":I,"data-feature-variant":R,"data-nosnippet":"true",children:[Z&&(0,m.jsx)(w,{size:B,className:"card-carousel__heading",style:E,children:Z}),Number.isFinite(q)?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.Z,{expand:!0,dots:!V&&x,infinite:k,centerMode:null===y?V:y,slidesToShow:V?1:Math.floor(q),slidesToScroll:V?1:Math.floor(q),gtmLabel:P,sliderRef:U,link:C,itemWidth:h,responsive:M,iconSize:A,arrowsType:r,carouselType:$,children:Q}),n&&(0,m.jsx)(O,{className:(0,a.Z)("card-carousel__button",x&&"card-carousel__button--dots"),adaptive:!0,as:"a","data-testid":"card-carousel-button",href:n.url,text:n.label})]}):X]})};j.displayName="CardCarousel",t.Z=j},41537:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(67294),o=r(90512),i=r(91033),a=r(22120),s=r(10191),c=r(58500),u=r(85893);let l=s.Z,f=s.Z.Icon,p=e=>{let{direction:t,className:r=null,onClick:n=null,offsetTop:i=null,gtmLabel:s=null,iconSize:p=30,arrowsType:d="",leftArrowMargin:h=0}=e,{t:y}=(0,a.$G)(),m=(0,c.Z)(),g=0;return null!=i&&(g=m&&"dense"===d?i+p/2-2:-((i+p)/2*1)),(0,u.jsx)("button",{className:(0,o.Z)("carousel__arrow",`carousel__arrow--${t}`,r,{video:"dense"===d}),onClick:n??void 0,type:"button","data-testid":"carousel-arrow","data-component":"CarouselArrow","data-component-variant":s?`${s}-${t}`:null,"data-gtm-class":s?`${s}-${t}`:null,style:{left:h??void 0},children:(0,u.jsx)("div",{className:"p-absolute full-width",style:{to
65p:i?g:0},children:(0,u.jsxs)(l,{className:(0,o.Z)("carousel__arrow-icon-stack p-absolute",{video:"dense"===d}),srOnly:y("organisms.carousel.sr.iconStack",{direction:t}),children:[(0,u.jsx)(f,{className:"carousel__arrow-chevron",name:"chevron",color:"inherit",size:14,rotate:"next"===t?90:270}),(0,u.jsx)(f,{className:"carousel__arrow-circle",name:"circle",color:"inherit",size:p})]})})})};p.displayName="Carousel.CarouselArrow";var d=e=>{let{dots:t,expand:r,nSlides:o,slidesToScroll:i,slidesToShow:a}=e,s=(0,n.useRef)(null),{0:c,1:u}=(0,n.useState)(0),l=t?1+Math.ceil((o-a)/i):0,f=(e,t,r)=>e<t||e>r?"scale(0)":0!==e&&e!==l-1&&(e===t||e===r)?"scale(.75)":"scale(1)",p=(e,t)=>{u(t);let r=Math.abs(t/e),n=r+4;s.current?.querySelectorAll(".carousel__dot").forEach((e,t)=>{e.style.transform=f(t,r,n)})},d=(e,t)=>e<4?0:e===l-1?-((l-5)*t):-((e-3)*t),h=(e,t)=>e<2?0:e+4>l?-((l-5)*t):-((e-1)*t),y=(e,t)=>{let r=d(e,t);c>r&&p(t,r)},m=(e,t)=>{let r=h(e,t);c<r&&p(t,r)};return{dotOffset:c,dotsWrapRef:s,getDotTransform:f,handleDots:(e,t)=>{if(r||l<6||!s.current)return;let n=s.current.offsetWidth/5;if(t>e){y(t,n);return}m(t,n)}}},h=r(88928),y=r(8307),m=r(4730),g=r(46066);let v=["forwardedRef","children"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,y.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let O=e=>{let{forwardedRef:t=null,children:r}=e,n=(0,m.Z)(e,v);return(0,u.jsx)(g.Z,w(w({},n),{},{ref:t,children:r}))};O.displayName="Carousel.CarouselSlider";let S=h.Z,j=(e,t,r,n,o)=>(0,u.jsx)("nav",{"aria-label":"pagination",ref:t,children:(0,u.jsx)("div",{className:"carousel__dots-wrap",ref:n,children:(0,u.jsx)("ul",{className:"carousel__dots-list ma-reset pa-reset d-flex justify-content-center",style:{transform:o?void 0:`translateX(${r}px)`},children:e})})}),x=(e,t,r,n,o)=>(0,u.jsx)("button",{type:"button",className:"carousel__dot","data-gtm-class":r?`${r}-dot`:null,"data-testid":"carousel-dot",style:{transform:e?void 0:t(n,0,4)},children:(0,u.jsx)("span",{className:"sr-only",children:o("organisms.carousel.sr.paging",`Page ${n+1}`,{pageNumber:n+1})})}),_=e=>{let{arrowsType:t=null,aspectRatio:r=null,autoplay:s=!1,autoplaySpeed:l=3e3,carouselType:f="",centerMode:h=!1,children:y,className:m=null,dots:g=!1,dotType:v=null,expand:b=!1,gtmLabel:w=null,iconSize:_=30,infinite:P=!0,itemWidth:E=null,lazyLoad:A=null,link:k=null,onAfterSlideChange:C=null,onBeforeSlideChange:N=null,responsive:T=[],sliderRef:I=null,slidesToScroll:R=1,slidesToShow:L=1,speed:D=500,underNav:M=!1}=e,{0:F,1:U}=(0,n.useState)(),{0:Z,1:B}=(0,n.useState)(0),{0:$,1:G}=(0,n.useState)(null),{0:z,1:q}=(0,n.useState)(0),{length:H}=n.Children.toArray(y),V=(0,c.Z)(),{t:W}=(0,a.$G)(),K="video_players"===f?".slick-slide .card__media":".slick-slide img",Y=(0,n.useRef)(null),Q=(0,n.useRef)(null),{dotOffset:X,dotsWrapRef:J,getDotTransform:ee,handleDots:et}=d({dots:g,expand:b,nSlides:H,slidesToScroll:R,slidesToShow:L});(0,n.useEffect)(()=>{if(!b)return()=>{};let e=()=>{if(!Y.current)return 0;let e=Q.current,r=Y.current.querySelector(".slick-slide"),n=Y.current.querySelector(K),o=r&&n?n.offsetWidth:null;return(q(r&&n?r.offsetHeight-n.offsetHeight-30:0),G(null===o?null:o-2*_-40),V&&"dense"===t)?(q(n?n.offsetHeight:0),z):g&&e?z+e.offsetHeight:z},r=()=>{if(!Y.current)return;let e=Array.from(Y.current.querySelectorAll(".slick-slide")).map(e=>e.querySelector(K)),t=1/0,r="";e.forEach(e=>{if(e){e.style.aspectRatio="unset";let{offsetHeight:n,offsetWidth:o}=e,i=o/n;i<t&&(t=i,r=`${o} / ${n}`)}}),t>0&&e.forEach(e=>{e&&(e.style.aspectRatio=r)})};"video_players"===f&&r();let n=e();U(n);let o=new i.default(t=>{"video_players"===f&&r(),t.forEach(()=>{let t=e();t!==F&&(n=t,U(t))})});return Y.current&&o.observe(Y.current),()=>{o.disconnect()}},[t,F,f,K,g,b,_,V,z]);let er=(0,n.useRef)(null),en=e=>{er.current&&clearTimeout(er.current),B(e),C&&C(e)};return(0,u.jsxs)("div",{className:(0,o.Z)("carousel",{"carousel--expand":b,"carousel__with-dots":g&&L<H,"carousel--under-nav":M},m),"data-testid":"carousel","data-feature-variant":"carousel","data-gtm-class":w,ref:Y,children:[(0,u.jsx)("div",{className:"carousel__header","data-testid":"carousel-header",children:k?(0,u.jsx)(S,{className:"carousel__link","data-testid":"carousel-link",href:k.url,styled:!0,children:k.label}):null}),(0,u.jsx)("div",{role:"region","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:(0,u.jsx)("p",{children:L>1?W("organisms.cardCarouselSection.slidesToShowItems",{currentSlide:Z+1,nextSlides:Z+Math.min(L,H),allSlides:H}):W("organisms.cardCarouselSection.slidesToShowItem",{currentSlide:Z+1,allSlides:H})})}),(0,u.jsx)(O,{forwardedRef:I,dots:g,arrows:!0,infinite:P,centerMode:h,variableWidth:!!E,slidesToShow:H>L?L:H,slidesToScroll:R,speed:D,autoplay:s,autoplaySpeed:l,lazyLoad:A,className:(0,o.Z)("carousel__slider d-flex flex-direction-column oflow-x-hidden",r&&`carousel__slider--${r}-aspect-ratio`),beforeChange:(e,t)=>
65{e!==t&&(et(e,t),N&&N(e,t),er.current&&clearTimeout(er.current),er.current=setTimeout(()=>{en(t)},600))},afterChange:en,onSwipe:()=>{w&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`${w}-swipe`}))},prevArrow:(0,u.jsx)(p,{offsetTop:F,direction:"previous",gtmLabel:w,iconSize:_,arrowsType:t||void 0,leftArrowMargin:V&&"dense"===t?$:null}),nextArrow:(0,u.jsx)(p,{offsetTop:F,direction:"next",gtmLabel:w,iconSize:_,arrowsType:t||void 0,leftArrowMargin:null}),dotsClass:(0,o.Z)("carousel__dots-nav",v&&`carousel__dots-nav--${v}`),appendDots:e=>j(e,Q,X,J,b),customPaging:e=>x(b,ee,w,e,W),responsive:T,children:n.Children.toArray(y).map((e,t)=>(0,u.jsx)("div",{"data-gtm-class":w?`${w}-item`:null,"data-testid":"carousel-item",style:{width:null===E?void 0:E},children:e},n.isValidElement(e)&&null!==e.key?e.key:t))})]})};_.displayName="Carousel";var P=_},33201:function(e,t,r){"use strict";r.d(t,{Z:function(){return eq}});var n=r(8307),o=r(4730),i=r(67294),a=r(90512),s=e=>{let t=(0,i.useRef)(null);return{get current(){return t.current},set current(value){t.current=value,"function"==typeof e?e(value):e&&(e.current=value)}}};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let u={};var l=r(55444),f=r(90738),p=r(9811),d=r(85893);let h=e=>{let{className:t=null,name:r=null,children:n=null,icon:o=null}=e,{feedbackId:s}=(0,i.useContext)(f.Z),{errors:c}=(0,i.useContext)(l.Z),u=null!=r?Object.entries(c??{}).find(e=>{let[t]=e;return t===r})?.[1]:void 0,h="string"==typeof u||"number"==typeof u||i.isValidElement(u)?u:void 0;return(0,d.jsxs)("div",{id:null!=s?String(s):void 0,className:(0,a.Z)("form-feedback","body-copy-extra-small body-copy-bold",{"mt-xxs":n||h,"form-feedback--invalid":h,"form-feedback--with-icon":o},t),role:h?"alert":void 0,children:[o&&(h||n)?(0,d.jsx)(p.Z,{name:o,className:"d-inline-flex mr-xxs",color:"inherit"}):null,h||n]})};h.displayName="FormFeedback";var y=r(71738),m=r(29028);let g=["placeholder","defaultValue","type","className","borderless","name","as","options","hasError","onChange","onClick","onFocus","onKeyDown","value","inlineLabel","inlineLabelSelected","sctrack"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let w=(0,i.forwardRef)((e,t)=>{let{placeholder:r=null,defaultValue:n="",type:s="text",className:c=null,borderless:u=!1,name:p=null,as:h=null,options:v=[],hasError:w=!1,onChange:O=null,onClick:S=null,onFocus:j=null,onKeyDown:x=null,value:_=null,inlineLabel:P=null,inlineLabelSelected:E=null,sctrack:A=null}=e,k=(0,o.Z)(e,g),{inputId:C,feedbackId:N}=(0,i.useContext)(f.Z),{inverted:T,errors:I,validateInput:R,mobileSquareBorders:L,onChange:D,defaultValues:M}=(0,i.useContext)(l.Z),F=null!=p?String(p):void 0,U=null!=p?I?.[String(p)]:void 0,Z=e=>{O&&O(e),D&&D(e)},B=v.length?v.map(e=>(0,d.jsx)("option",{value:e.value,disabled:e.disabled,"data-item-name":e.text,children:e.text},e.value)):null,$=null!==_?{value:_}:{defaultValue:n||M?.[F??""]||""};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h||"input",b(b(b({},k),$),{},{className:(0,a.Z)("form-input",{"form-input--inverted":!!T,"form-input--borderless":u,"form-input--invalid":w||!!U,"form-input--mobile-square-borders":!!L,"form-input--dropdown":"select"===h,"form-input--height-auto":"textarea"===h,"form-input--with-label":!!P},c),id:null!=C?String(C):void 0,type:s,placeholder:r||" ",name:F,ref:t,onChange:R?e=>R(e,Z):Z,onClick:S??void 0,onFocus:j??void 0,onKeyDown:x??void 0,"aria-describedby":null!=N?String(N):void 0,"aria-invalid":w||!!U,"data-sctrack":(0,y.Z)("FormInput",A),children:B})),P&&(0,d.jsx)(m.Z,{className:(0,a.Z)("form-input__inline-label p-absolute",{"form-input__inline-label--selected":!!E}),htmlFor:C,children:P})]})});w.displayName="FormInput";var O=r(78508);let S=["prepend","append","className","defaultValue","name","formInputRef","hasError","children"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?j(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let _=(0,i.forwardRef)((e,t)=>{let{prepend:r,append:n,className:s,defaultValue:c,name:u,formInputRef:f,hasError:p,children:h}=e,y=(0,o.Z)(e,S),{inverted:m=!1,errors:g={},mobileSquareBorders:v=!1,defaultValues:b={}}=(0,i.useContext)(l.Z),O="string"==typeof u?u:void 0,j=O&&O in b?b[O]:void 0,_="textarea"===y.as,P=!!(p||O&&O in g),E=x(x({},y),{},{borderless:!0,defaultValue:c||j||"",name:O,hasError:p}),A=h?i.cloneElement(h,x(x({},E),{},{ref:f})):i.createElement(w,x(x({},E),{},{className:"form-input-group__input form-input-group__item",ref:f}));return(0,d.jsx)("div",{className:(0,a.Z)("form-input-group",{"form-input-group--inverted":m,"form-input-group--invalid":P,"form-input-group--mobile-square-borders":v,"form-input-group--textarea":_},"d-flex align-items-stretch","string"==typeof s?s:void 0),"data-testid":"form-input-group",ref:t,children:(0,d.jsxs)("div",{className:"d-flex form-input-group__wrapper",children:[r&&(0,d.jsx)("div",{className:(0,a.Z)("form-input-group__item",{"form-input-group__item--not-text":"string"!=typeof r},"d-flex align-items-center text-center"),children:r}),A,(0,d.jsx)("span",{className:"form-input-group__border full-width full-height"}),n&&(0,d.jsx)("div",{className:(0,a.Z)("form-input-group__item",{"form-input-group__item--not-text":"string"!=typeof n},"d-flex align-items-center text-center"),children:n})]})})});_.displayName="FormInputGroup";var P=r(53823);let E=(0,i.forwardRef)((e,t)=>{let{checked:r=null,className:n=null,defaultChecked:o=null,leftLabel:c=null,legacyBehaviour:u=!1,name:p,onChange:h=null,onClick:m=null,rightLabel:g=null,sctrack:v=null}=e,b=s(t),{inputId:w}=(0,i.useContext)(f.Z),{inverted:O,onChange:S,defaultValues:j}=(0,i.useContext)(l.Z),{0:x,1:_}=(0,i.useState)(!!o||!!j?.[p]),P=null!=r,E=P?r:x;return(0,i.useEffect)(()=>{P&&(h?.({target:b.current}),S?.({target:b.current}))},[r,P,h,S,b]),(0,d.jsxs)("div",{className:(0,a.Z)("form-toggle",{"form-toggle--inverted":O},n),children:[c&&(0,d.jsx)("span",{className:(0,a.Z)("form-toggle__label","form-toggle__label--left",{"form-toggle__label--active":!E}),"data-text":c,children:c}),(0,d.jsx)("input",{className:(0,a.Z)("form-toggle__input",{"form-toggle__input--legacy":u}),type:"checkbox",role:"switch","aria-checked":!!E,"aria-label":"form toggle",checked:E,id:null!=w?String(w):void 0,name:p,onChange:e=>{P||_(e.target.checked),h?.(e),S?.(e)},onClick:e=>{m&&m(e)},ref:b,"data-sctrack":(0,y.Z)("FormToggle",v)}
65),g&&(0,d.jsx)("span",{className:(0,a.Z)("form-toggle__label","form-toggle__label--right",{"form-toggle__label--active":E}),"data-text":g,children:g})]})});E.displayName="FormToggle";let A=(0,i.forwardRef)((e,t)=>{let{className:r=null,name:n,rounded:o=!0,onChange:s=null,onClick:c=null,on:u,off:p,fullWidth:h=!1,transparent:m=!1,defaultValue:g=null,sctrack:v=null}=e,{inputId:b}=(0,i.useContext)(f.Z),{inverted:w,onChange:O,defaultValues:S}=(0,i.useContext)(l.Z),{0:j,1:x}=(0,i.useState)(g||S?.[n]||u.value);return(0,d.jsxs)("fieldset",{className:(0,a.Z)("form-switch","d-flex","p-relative",{"form-switch--rounded":o,"form-switch--inverted":w,"form-switch--full-width":h,"form-switch--transparent":m},r),ref:t,onChange:e=>{let{checked:t,value:r}=e.target;t&&x(r),s&&s(e),O&&O(e)},children:[(0,d.jsx)("legend",{className:"sr-only",children:n}),(0,d.jsx)("input",{className:"form-switch__input p-absolute",type:"radio",name:n,id:`${b}-on`,value:u.value,onClick:c??void 0,defaultChecked:j===u.value,"data-sctrack":(0,y.Z)("FormSwitch-On",v)}),(0,d.jsx)("label",{className:"form-switch__label p-relative flex-grow-1 text-center pa-sm ma-reset",htmlFor:`${b}-on`,id:`label-${b}-on`,children:u.text}),(0,d.jsx)("input",{className:"form-switch__input p-absolute",type:"radio",name:n,id:`${b}-off`,value:p.value,onClick:c??void 0,defaultChecked:j===p.value,"data-sctrack":(0,y.Z)("FormSwitch-Off",v)}),(0,d.jsx)("label",{className:"form-switch__label p-relative flex-grow-1 text-center pa-sm ma-reset",htmlFor:`${b}-off`,id:`label-${b}-off`,children:p.text}),(0,d.jsx)("span",{className:(0,a.Z)("form-switch__selector","full-height","p-absolute",{"form-switch__selector--rounded":o},r)})]})});A.displayName="FormSwitch";var k=r(22120),C=r(61256);let N=e=>{let{children:t,className:r=null}=e,{t:n}=(0,k.$G)();return(0,d.jsx)(C.Z,{className:(0,a.Z)(r),ariaLabel:n("molecules.formResetButton.ariaLabel.resetButton"),type:"reset",secondary:!0,children:t})};N.displayName="FormResetButton";let T=["buttonStates","className","onClick","fullWidth","initialWait","intermediateWait","onSuccess"];function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let L=e=>{let{buttonStates:t,className:r,onClick:n,fullWidth:s,initialWait:c=200,intermediateWait:u=1e3,onSuccess:l}=e,f=(0,o.Z)(e,T),{0:p,1:h}=(0,i.useState)(t.default),y=async e=>{let r;let o=t.saved,i=setTimeout(()=>{h(t.saving),r=Date.now()},c);try{await n?.(e)}catch(e){o=t.default}clearTimeout(i);let a=r?Date.now()-r:u;setTimeout(()=>{h(o),setTimeout(()=>{l&&l(),h(t.default)},u)},Math.max(0,u-a))};return(0,d.jsx)("div",{className:(0,a.Z)("save-button",r),children:(0,d.jsx)(C.Z,R(R({className:(0,a.Z)({"full-width":s}),icon:p.icon,iconSize:20,onClick:y},f),{},{children:(0,d.jsx)("div",{className:(0,a.Z)("save-button__text",{"save-button__text--saving":p.text!==t.default.text}),children:p.text})}))})};L.displayName="SaveButton";let D=["onClick","children","className","fullWidth"];function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let U=e=>{let{onClick:t=null,children:r,className:n=null,fullWidth:s=!1}=e,c=(0,o.Z)(e,D),{formRef:u}=(0,i.useContext)(l.Z),{t:f}=(0,k.$G)(),p=async e=>{let r=u?.current;return(e.preventDefault(),r)?(t&&await t(e),new Promise((e,t)=>
65{let n=new Event("submit",{cancelable:!0,bubbles:!0}),o=n=>{let{detail:i}=n;if(r.removeEventListener("submitted",o),!i){t();return}e()};r.addEventListener("submitted",o,!1),r.dispatchEvent(n)})):Promise.reject()};return(0,d.jsx)(L,F(F({},c),{},{className:(0,a.Z)(n),type:"submit",onClick:p,buttonStates:{default:{text:r,icon:null},saving:{text:f("molecules.formSubmitButton.button.savingText"),icon:"kebab-h"},saved:{text:f("molecules.formSubmitButton.button.savedText"),icon:"tick"}},fullWidth:s}))};U.displayName="FormSubmitButton";var Z=r(42473),B=r.n(Z),$=r(10191);function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let q=e=>{let{name:t,className:r=null,stepSchema:n,droppableId:o,defaultSteps:s=null,reactBeautifulDnd:c=null}=e,{errors:u,defaultValues:f,reactBeautifulDnd:p=c}=(0,i.useContext)(l.Z),{t:y}=(0,k.$G)();if(!p)throw Error('For optimisation purposes you must install "react-beautiful-dnd" and pass it in via the `reactBeautifulDnd` prop of either this, or the root Form component.');let{DragDropContext:g,Droppable:v,Draggable:b}=p,w=(s||f?.[t]||[]).reduce((e,t,r)=>t.type in n?[...e,{id:r+1,type:t.type,value:t.value||""}]:(B()(!1,`Invalid step: type "${t.type}" does not exist in the schema`),e),[]),{0:S,1:j}=(0,i.useState)(w),{0:x,1:P}=(0,i.useState)(w.length),{0:E,1:A}=(0,i.useState)(!1),N=S.length>1,T=e=>{P(x+1),j([...S,{id:x,type:e,value:""}])},I=e=>{let t=[...S],r=t.findIndex(t=>t.id===e);r>-1&&t.splice(r,1),j(t)};(0,i.useEffect)(()=>{let e=Object.keys(n)[0];w.length<1&&e&&T(e),A(!0)},[]);let R=(e,t,r,n,o,i)=>(0,d.jsx)("div",z(z({className:(0,a.Z)({"form-sortable-input--dragging":t.isDragging},"mb-sm")},r.draggableProps),{},{ref:r.innerRef,children:(0,d.jsxs)(O.Z,{inputId:e,feedbackId:`${e}-feedback`,children:[(0,d.jsx)(m.Z,{children:`${n.label}${n.showLabelIndex?` ${o+1}`:""}`}),(0,d.jsx)(_,{as:n.textArea?"textarea":null,rows:n.textArea?3:null,className:"form-sortable-input__input",placeholder:n.placeholder,name:e,required:!0,defaultValue:S[o]?.value||"",prepend:(0,d.jsx)("div",z(z({"aria-label":y("molecules.formSortableInputs.ariaLabel.grab"),role:"button"},r.dragHandleProps),{},{className:(0,a.Z)("form-sortable-input__handle",{"form-sortable-input__handle--invalid":u&&e in u},"full-height"),children:(0,d.jsx)("div",{children:(0,d.jsx)($.Z.Icon,{name:"grab",color:"baseWhite",size:16})})})),append:N&&(0,d.jsx)(C.Z,{inputAppend:!0,ariaLabel:`${y("molecules.formSortableInputs.ariaLabel.deleteInput")} ${n.label} ${i.id+1}`,type:"reset",transparent:!0,onClick:()=>{I(i.id)},children:(0,d.jsxs)($.Z,{children:[(0,d.jsx)($.Z.Icon,{name:"cross",color:"baseWhite",size:8}),(0,d.jsx)($.Z.Icon,{name:"circle",color:"backgroundRegular",size:16})]})})}),(0,d.jsx)(h,{name:e})]})}),e);return(0,d.jsxs)("div",{className:(0,a.Z)("form-sortable-input",r),children:[E&&(0,d.jsx)(g,{onDragEnd:e=>{let{destination:t,source:r}=e;if(!t||t.droppableId===r.droppableId&&t.index===r.index)return;let n=[...S],o=n[r.index];o&&(n.splice(r.index,1),n.splice(t.index,0,o),j(n))},children:(0,d.jsx)(v,{droppableId:o,children:e=>(0,d.jsxs)("div",z(z({ref:e.innerRef},e.droppableProps),{},{children:[S?.map((e,t)=>{let r=n[e.type],o=`${e.type}:${e.id}`;return d.jsx(b,{draggableId:o,index:t,children:(n,i)=>R(o,i??{isDragging:!1},n,r,t,e)},o)}),e.placeholder]}))})}),(0,d.jsx)("div",{className:"d-flex flex-direction-row",children:Object.entries(n).map((e,t)=>{let[r,n]=e;return(0,d.jsx)(C.Z,{adaptive:!0,className:(0,a.Z)({"ml-xs":t>0}),secondary:n.buttonTypeSecondary,small:!0,onClick:()=>{T(r)},children:n.buttonText},r)})})]})};q.displayName="FormSortableInputs";let H=(0,i.forwardRef)((e,t)=>{let{name:r,topLabel:n=null,rightLabel:o=null,leftLabel:s=null,min:c=1,max:u=10,className:p=null,onChange:h=null,step:m=1,defaultValue:g=null,sctrack:v=null}=e,{inputId:b,feedbackId:w}=(0,i.useContext)(f.Z),{inverted:O,defaultValues:S,validateInput:j}=(0,i.useContext)(l.Z),x=g??S?.[r],{0:_,1:P}=(0,i.useState)("number"==typeof x||"string"==typeof x?x:c),E=e=>{let t=e.target.value;P(t),h&&h(t)};return(0,d.jsxs)("div",{className:(0,a.Z)("form-range","text-center",{"d-flex":!n,"form-range--inverted":!!O},p),children:[n&&(0,d.jsx)("div",{className:"text-center pb-xxs",children:n}),s&&(0,d.jsx)("span",{className:(0,a.Z)("form-range__label"),children:s}),(0,d.jsx)("input",{autoComplete:"off",id:null!=b?String(b):void 0,type:"range",className:"form-range__input",min:c,max:u,onChange:j?e=>j(e,E):E,ref:t,step:m,name:r,value:_??c,"aria-valuemin":c,"aria-valuemax":u,"aria-describedby":null!=w?String(w):void 0,"data-sctrack":(0,y.Z)("FormRange",v)}),o&&(0,d.jsx)("span",{className:(0,a.Z)("form-range__label"),children:o})]})});H.displayName="FormRange";var V=r(63144),W=r.n(V),K=r(91033);let Y=e=>{let{className:t=null,children:r=null,onClick:n=null,sctrack:o=null}=e;return(0,d.jsx)("button",{className:(0,a.Z)("dashed-button",t),type:"button",onClick:n||void 0,"data-sctrack":(0,y.Z)("DashedButton",o),children:r})};Y.displayName="DashedButton";var Q=r(55448),X=e=>
65new Promise((t,n)=>{let o=new FileReader;o.onload=async()=>{let{result:e}=o,n=(await r.e(8).then(r.t.bind(r,50008,19))).remove;return"string"==typeof e&&e.includes("jpeg")?t(n(e)):t(e)},o.onerror=()=>{n()},o.readAsDataURL(e)});let J=["className","name","accept","required","minDimensions","maxFileSize","aspectRatio","defaultValue","reactEasyCrop","sctrack"];function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let er={height:500,width:500},en=e=>{let t;if("object"==typeof e&&null!==e)return e;try{t=JSON.parse(e||"{}")}catch(e){return{}}return t},eo=e=>{let{className:t=null,name:r=null,accept:n="image/*",required:s=!1,minDimensions:c=er,maxFileSize:u=15e6,aspectRatio:h="square",defaultValue:m=null,reactEasyCrop:g=null,sctrack:v=null}=e,b=(0,o.Z)(e,J),w=String(r),O=(0,y.Z)("FormImageUpload",v),{inputId:S,feedbackId:j}=(0,i.useContext)(f.Z)||{},{errors:x,inverted:_,defaultValues:P,validateInput:E,reactEasyCrop:A=g}=(0,i.useContext)(l.Z)||{},{t:N}=(0,k.$G)();if(!A)throw Error('For optimisation purposes you must install "react-easy-crop" and pass it in via the `reactEasyCrop` prop of either this, or the root Form component.');let T=(0,i.useRef)(null),I=(0,i.useRef)(null),R=P?.[w],L=en(m||R),{0:D,1:M}=(0,i.useState)(L),{0:F,1:U}=(0,i.useState)({}),{0:Z,1:B}=(0,i.useState)(),{0:G,1:z}=(0,i.useState)(1),{0:q,1:V}=(0,i.useState)({x:0,y:0}),{0:ee,1:eo}=(0,i.useState)(""),{0:ei,1:ea}=(0,i.useState)(!1),{0:es,1:ec}=(0,i.useState)(!0),{0:eu,1:el}=(0,i.useState)(!1),{0:ef,1:ep}=(0,i.useState)(0),ed=("string"==typeof h?Q.Q[h]:h)||h,eh=ed*ef,ey={maxWidth:ef,height:eh},em=e=>(E&&e&&T.current&&(T.current.setCustomValidity(e),E({target:T.current})),T.current&&(T.current.value=""),!1),eg=(e,t)=>{let{height:r,width:n}=e,{size:o}=t,i=(u/1e6).toFixed(2);return u<o?em(N("molecules.formImageUpload.error.maxFileSize",`Filesize is too large, please upload an image smaller than ${i}MB`,{maxFileSize:i})):r<c.height?em(N("molecules.formImageUpload.error.minHeight",`Image does not meet the minimum height requirement of ${c.height}px`,{minDimensions:c.height})):n<c.width?em(N("molecules.formImageUpload.error.minWidth",`Image does not meet the minimum width requirement of ${c.width}px`,{minDimensions:c.width})):(x?.image&&T.current&&E&&(T.current.setCustomValidity(""),E({target:T.current})),!0)},ev=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{crop:t}=e;return Array.isArray(t)?{x:t[0],y:t[1],width:t[2],height:t[3]}:null},eb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.height&&e.crop&&(e.width/e.height>1?e.height/e.crop?.[3]:e.width/e.crop?.[2])||1},ew=()=>{eo(null),M(null),B(null),z(1),ea(!1),T.current&&(T.current.value="")},eO=async()=>{let e=T.current?.files?.[0];if(!e)return;let t=await X(e),r=new Image;r.onload=()=>{if(eg(r,e)){let e=et(et({},D||{}),{},{width:r.width,height:r.height});M(e),U(e),ea(!0),eo(t)}},r.src=t},eS=async e=>{let t=new Image;return new Promise((r,n)=>{t.addEventListener("load",()=>r(t)),t.addEventListener("error",e=>n(e)),t.src=e})},ej=async(e,t)=>{let r=await eS(e),n=document.createElement("canvas"),o=n.getContext("2d");return o?(n.width=r.height,n.height=r.width,o.translate(n.width/2,n.height/2),o.rotate(t*Math.PI/180),o.drawImage(r,-(.5*r.width),-(.5*r.height)),n.toDataURL("image/jpeg")):e},ex=(0,i.useCallback)((e,t)=>{U(et(et({},F),{},{crop:[t.x,t.y,t.width,t.height]})),B(null)},[F]),e_=async e=>{if(!ee)return;let t=await ej(ee,e),r=et(et({},F),{},{width:F.height,height:F.width});eo(t),M(r),U(r)};return(0,i.useEffect)(()=>{el(window.matchMedia("(hover: none), (pointer: coarse)").matches)},[]),(0,i.useEffect)(()=>{let e=new K.default(e=>
65{e.forEach(e=>{let{contentRect:t}=e;ep(t.width)})});return I.current&&e.observe(I.current),()=>{e.disconnect()}},[]),(0,i.useEffect)(()=>{(async()=>{if(!D?.url){ec(!1);return}let e=await W()(D.url),t=await e.blob();eo(await X(t)),D.width&&D.crop&&z(eb(D)),D.crop&&B(ev(D)),U(et({},D)),ec(!1)})()},[]),(0,d.jsxs)("div",{className:(0,a.Z)("form-image-upload",{"form-image-upload--invalid":x&&w in x,"form-image-upload--inverted":_},t),"data-testid":"root",ref:I,children:[ee&&!ei&&(0,d.jsxs)("div",{style:ey,className:"p-relative","data-testid":"cropped-img-container",children:[(0,d.jsx)("button",{onClick:()=>ea(!0),onKeyDown:()=>ea(!0),type:"button",children:(0,d.jsx)("div",{style:{width:Number(D?.width)/Number(D?.crop?.[2])*ef||0,height:Number(D?.height)/Number(D?.crop?.[3])*eh||0},children:(0,d.jsx)("img",{alt:"",src:ee,className:"p-relative full-width",style:{left:-(Number(D?.crop?.[0])/Number(D?.crop?.[2])*ef)||0,top:-(Number(D?.crop?.[1])/Number(D?.crop?.[3])*eh)||0}})})}),(0,d.jsx)("button",{className:"form-image-upload__remove ma-sm",onClick:ew,onKeyDown:ew,"data-testid":"cropped-img-remove",type:"button",children:(0,d.jsxs)($.Z,{children:[(0,d.jsx)(p.Z,{name:"cross",color:"baseGrey"},"1"),(0,d.jsx)(p.Z,{name:"circle",color:"baseWhite",size:30},"2")]})})]}),ei&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"p-relative form-image-upload__crop-container",style:{paddingBottom:ey.height,width:ey.maxWidth},children:(0,d.jsx)(A,{aspect:1/ed,crop:q,initialCroppedAreaPixels:Z,image:ee,zoom:G,zoomWithScroll:!1,onCropChange:V,onCropComplete:ex,onZoomChange:z})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"d-flex flex-direction-column mt-sm mb-xs",children:[!eu&&(0,d.jsx)(H,{topLabel:"Zoom",min:1,max:3,name:`${w}-zoom`,step:.1,defaultValue:G,onChange:z,sctrack:(0,y.Z)("Zoom",O)}),(0,d.jsxs)("div",{className:"d-flex justify-content-center mt-sm mb-sm",children:[(0,d.jsx)(C.Z,{small:!0,link:!0,className:"mr-xs ml-xs",onClick:()=>e_(-90),noMinWidth:!0,children:N("molecules.formImageUpload.button.rotateLeft")}),(0,d.jsx)(C.Z,{small:!0,link:!0,className:"mr-xs ml-xs",onClick:()=>e_(90),noMinWidth:!0,children:N("molecules.formImageUpload.button.rotateRight")})]})]}),(0,d.jsxs)("div",{className:(0,a.Z)("d-flex justify-content-center",{"pt-sm":eu}),children:[(0,d.jsx)(C.Z,{secondary:!0,className:"mr-xs ml-xs",onClick:ew,noMinWidth:!0,children:N("molecules.formImageUpload.button.remove")}),(0,d.jsx)(C.Z,{className:"mr-xs ml-xs",onClick:()=>{z(eb(F)),M(et({},F)),ea(!1)},noMinWidth:!0,children:N("molecules.formImageUpload.button.save")})]})]})]}),!ee&&(0,d.jsx)("div",{"data-testid":"empty-img-container",className:"p-relative",style:ey,children:(0,d.jsx)(Y,{className:"form-image-upload__button",onClick:()=>{T.current?.click()},sctrack:O,children:!es&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"pt-sm",children:[(0,d.jsx)(p.Z,{className:"ma-auto",name:"camera",color:_?"baseWhite":"backgroundRegular",size:60}),(0,d.jsxs)("p",{className:"form-image-upload__button-text mb-lg mt-sm body-copy-bold",children:[N("molecules.formImageUpload.button.loadPrompt")," ",s?`(${N("molecules.formImageUpload.button.loadPromptRequired","required")})`:`(${N("molecules.formImageUpload.button.loadPromptOptional","optional")})`]})]}),(0,d.jsx)("p",{className:"form-image-upload__button-text ma-reset body-copy-extra-small",children:N("molecules.formImageUpload.button.ownImage","*Please ensure this is your own image")})]})})}),(0,d.jsx)("input",et(et({},b),{},{required:s,accept:n,className:"hidden",name:w,ref:T,id:S,"aria-describedby":j,type:"file",onChange:eO})),(0,d.jsx)("input",{type:"hidden",name:`${w}-src`,defaultValue:ee||""}),(0,d.jsx)("input",{type:"hidden",name:`${w}-data`,defaultValue:JSON.stringify(D||{})})]})};eo.displayName="FormImageUpload";var ei=r(16380),ea=r(11179),es=r(39306),ec=r(64879),eu=r(87586),el=r(5032);let ef="_select-all",ep=e=>e?Array.isArray(e)?e:JSON.parse(e):[],ed=(0,i.forwardRef)((e,t)=>{let{className:r=null,name:n="",label:o="",defaultValue:s,includeSelectAll:c=!1,options:u=[],onChange:p,position:h="auto",selectAllLabel:y,value:m,tabIndex:g=null,showInlineLabel:v=!1,showModalSearchbox:b=!1}=e,O=(0,ei.Z)(),{inputId:S="",feedbackId:j=""}=(0,i.useContext)(f.Z)||{},{errors:x={},onChange:_,defaultValues:E={}}=(0,i.useContext)(l.Z)||{},{t:A}=(0,k.$G)(),C=y||A("molecules.formMultiSelect.filterOptions.selectAllLabel")||"",N=(0,i.useRef)(t),T=(0,i.useRef)(null),I=(0,i.useRef)(null),R=(0,i.useRef)(null),L=(0,i.useRef)([]),{0:D,1:M}=(0,i.useState)(!1),{0:F,1:U}=(0,i.useState)(u),{0:Z,1:B}=(0,i.useState)(""),{0:$,1:G}=(0,i.useState)(!1),{0:z,1:q}=(0,i.useState)(null),H=ep(m||s||E?.[n]),{0:V,1:W}=(0,i.useState)(H);(0,i.useEffect)(()=>{W(H)},[JSON.stringify(ep(m))]);let{isAboveBreakpoint:K}=(0,ea.Z)(),Y=!K("sm",!1),Q=F.filter(e=>{let t=!Z||e.label.toLowerCase().includes(Z.toLowerCase());return t||e!==z||q(null),t}),X=V.length===F.length,J=!V.length;c&&Q.unshift({label:C,value:ef,indeterminate:!X&&!J}),(0,i.useEffect)(()=>{L.current=F.map((e,t)=>L.current[t]??(0,i.createRef)())},[Q]),(0,i.useEffect)(()=>{U(u)},[JSON.stringify(u)]);let ee=()=>{let e=I.current,t=T.current;if(!e||!t)return;let r=e.style.display;e.style.display="flex";let{height:n}=e.getBoundingClientRect(),{y:o,height:i}=t.getBoundingClientRect(),a=window.innerHeight-(o+i);e.style.display=r;let s=`translateY(-${n+i}px)`,c="translateY(0px)";if("above"===h){e.style.transform=s;return}if("below"===h){e.style.transform=c;return}e.style.transform=!(a>=n)&&o>a?s:c},et=e=>[S||n,e?.value].filter(e=>e).join("-")||null;(0,i.useEffect)(()=>
65{if(!z||!I.current)return;let e=I.current.getBoundingClientRect(),t=et(z),r=t?document.getElementById(t):null;if(!r)return;let n=r.getBoundingClientRect();if(!(n.top>=e.top&&n.bottom<=e.top+e.height)){let t=n.top-e.top,r=n.bottom-e.bottom;if(Math.abs(t)<Math.abs(r)){I.current.scrollTop+=t;return}I.current.scrollTop+=r}},[z,I]);let er=e=>{e&&ee(),G(e)},en=e=>{N.current&&(N.current.value=JSON.stringify(e),N.current.dispatchEvent(new Event("input",{bubbles:!0})))},eo=e=>{e.preventDefault(),B(e.target.value),e.target.value&&G(!0)},ed=e=>{let{keyCode:t}=e;if(!$&&40===t){er(!0),q(Q[0]??null);return}let r=Q.findIndex(e=>e.value===z?.value),n=Q.length-1;if(40===t){q(Q[r===n?r:r+1]??null);return}if(38===t){q(Q[0===r?r:r-1]??null);return}if(36===t){q(Q[0]??null);return}if(35===t){q(Q[n]??null);return}if(13===t){L.current[r]?.current?.click(),q(null);return}(27===t||9===t)&&(er(!1),M(!1),B(""),q(null))},eh=()=>{if(Y){M(!0),B("");return}er(!$)},ey=e=>{let{target:t}=e,r=F.map(e=>e.value),n=X?[]:r;if(t.value===ef){W(n),en(n);return}let o=[...V].filter(e=>String(e)!==t.value);t.checked&&o.push(t.value),W(o),en(o)},em=e=>e.value===ef?X:V.includes(String(e.value));(0,i.useEffect)(()=>{er(!1),M(!1),B("")},[Y]),(0,es.Z)(R,()=>{$&&er(!1)},[$]),(0,i.useEffect)(()=>{if(!$)return()=>{};let e=(0,eu.Z)(ee,100),t=(0,el.Z)({passive:!0});return window.addEventListener("scroll",e,t),window.addEventListener("resize",e,t),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[$]);let eg=`${S||n}-listbox`,ev=(0,i.useMemo)(()=>({}),[]),eb=P.Z,ew=ec.Z,eO=(0,d.jsxs)("ul",{id:eg,className:"ma-reset pa-reset",role:"listbox","aria-label":"options","aria-multiselectable":!0,children:[Q.map((e,t)=>{let r=e.value===z?.value;return(0,d.jsx)("li",{id:et(e)??void 0,className:(0,a.Z)("form-multi-select__list-item","d-flex",{"form-multi-select__list-item--selected":r}),role:"option","aria-selected":r,tabIndex:-1,"data-item-name":e.label,children:(0,d.jsx)(f.Z.Provider,{value:ev,children:i.createElement(eb,{fluid:!0,rightToLeft:!0,ref:L.current[t],className:"form-multi-select__list-item-inner align-items-center",label:e.count?`${e.label} (${e.count}
65)`:e.label,indeterminate:e.indeterminate,onChange:ey,value:e.value,checked:em(e),tabIndex:"-1"})})},e.value)}),!Q.length&&(0,d.jsx)("li",{className:"form-multi-select__list-item form-multi-select__no-options-item body-copy-small",children:(0,d.jsx)("span",{className:"form-multi-select__list-item-inner",children:A("molecules.formMultiSelect.filterOptions.noResult")})})]});return(0,d.jsxs)("div",{className:(0,a.Z)("form-multi-select",{"form-multi-select--open":$,"form-multi-select--enable-focus-styles":O},r),"aria-expanded":!!(D||$),role:"combobox",ref:R,children:[(0,d.jsx)("input",{type:"hidden",name:n,value:JSON.stringify(V),onChange:()=>{},ref:N,onInput:e=>{p&&p(e),"function"==typeof _&&_(e)},"aria-describedby":j}),!(b&&D)&&i.createElement(w,{className:"form-multi-select__searchbox",role:"searchbox",name:`${n}:searchbox`,hasError:!!x?.[n],"aria-haspopup":"listbox","aria-controls":eg,"aria-activedescendant":et(z),"aria-label":A("molecules.formMultiSelect.ariaLabel.formInput",{label:o}),ref:T,onChange:eo,onClick:eh,onKeyDown:ed,placeholder:V.length?`${V.length} ${A("molecules.formMultiSelect.filterOptions.inputPlaceholderSelected")}`:A("molecules.formMultiSelect.filterOptions.inputPlaceholderSelect"),autoComplete:"off",tabIndex:g,inlineLabel:v?o:null,inlineLabelSelected:!!V.length}),(0,d.jsxs)("button",{className:"form-multi-select__caret-button p-absolute",onClick:eh,type:"button",tabIndex:g?parseInt(g,10):void 0,"data-component":"Button",children:[(0,d.jsx)("span",{className:"sr-only",children:A("molecules.formMultiSelect.sr.optionsButton")}),(0,d.jsx)("span",{className:"form-multi-select__caret-icon p-absolute"})]}),(0,d.jsx)("div",{ref:I,"data-testid":"form-multi-select-dropdown",className:"form-multi-select__options",children:!Y&&eO}),i.createElement(ew,{show:D,onClose:()=>M(!1)},i.createElement(ew.Header,{},o),b&&D&&(0,d.jsx)("div",{className:"form-multi-select__modal-searchbox",children:i.createElement(w,{role:"searchbox",name:`${n}:searchbox`,hasError:!!x?.[n],"aria-haspopup":"listbox","aria-controls":eg,"aria-activedescendant":et(z),"aria-label":`Filter ${o}`,ref:T,onChange:eo,onClick:eh,onKeyDown:ed,placeholder:V.length?`${V.length} selected`:"Select...",autoComplete:"off",tabIndex:g,inlineLabel:"Refine list...",inlineLabelSelected:!!V.length})}),i.createElement(ew.Body,{},Y&&eO))]})});ed.displayName="FormMultiSelect";let eh=e=>e?Array.isArray(e)?e:JSON.parse(e):[],ey=(0,i.forwardRef)((e,t)=>{let{className:r=null,name:n="",label:o="",defaultValue:s,options:c=[],onChange:u,position:p="auto",value:h,tabIndex:y=null,showInlineLabel:m=!1,showModalSearchbox:g=!1}=e,v=(0,ei.Z)(),{inputId:b="",feedbackId:O=""}=(0,i.useContext)(f.Z),{errors:S={},onChange:j,defaultValues:x={}}=(0,i.useContext)(l.Z),{t:_}=(0,k.$G)(),E=(0,i.useRef)(t),A=(0,i.useRef)(null),C=(0,i.useRef)(null),N=(0,i.useRef)(null),T=(0,i.useRef)([]),{0:I,1:R}=(0,i.useState)(!1),{0:L,1:D}=(0,i.useState)(c),{0:M,1:F}=(0,i.useState)(""),{0:U,1:Z}=(0,i.useState)(!1),{0:B,1:$}=(0,i.useState)(null),G=eh(h||s||x?.[n]),{0:z,1:q}=(0,i.useState)(G);(0,i.useEffect)(()=>{q(G)},[h]);let{isAboveBreakpoint:H}=(0,ea.Z)(),V=!H("sm",!1),W=L.filter(e=>{let t=!M||e.label.toLowerCase().includes(M.toLowerCase());return t||e!==B||$(null),t});(0,i.useEffect)(()=>{T.current=L.map((e,t)=>T.current[t]??(0,i.createRef)())},[W]),(0,i.useEffect)(()=>{D(c)},[c]);let K=()=>{let e=C.current,t=A.current;if(!e||!t)return;let r=e.style.display;e.style.display="flex";let{height:n}=e.getBoundingClientRect(),{y:o,height:i}=t.getBoundingClientRect(),a=window.innerHeight-(o+i);e.style.display=r;let s=`translateY(-${n+i}px)`,c="translateY(0px)";if("above"===p){e.style.transform=s;return}if("below"===p){e.style.transform=c;return}e.style.transform=!(a>=n)&&o>a?s:c},Y=e=>[b||n,e?.value].filter(e=>e).join("-")||null;(0,i.useEffect)(()=>{if(!B||!C.current)return;let e=C.current.getBoundingClientRect(),t=Y(B),r=t?document.getElementById(t):null;if(!r)return;let n=r.getBoundingClientRect();if(!(n.top>=e.top&&n.bottom<=e.top+e.height)){let t=n.top-e.top,r=n.bottom-e.bottom;if(Math.abs(t)<Math.abs(r)){C.current.scrollTop+=t;return}C.current.scrollTop+=r}},[B,C]);let Q=e=>{e&&K(),Z(e)},X=e=>{q(e),E.current&&(E.current.value=JSON.stringify(e),E.current.dispatchEvent(new Event("input",{bubbles:!0})))},J=e=>{e.preventDefault(),F(e.target.value),e.target.value&&Z(!0)},ee=e=>{let{keyCode:t}=e;if(!U&&40===t){Q(!0),$(W[0]??null);return}let r=W.findIndex(e=>e.value===B?.value),n=W.length-1;if(40===t){$(W[r===n?r:r+1]??null);return}if(38===t){$(W[0===r?r:r-1]??null);return}if(36===t){$(W[0]??null);return}if(35===t){$(W[n]??null);return}
65if(13===t){T.current[r]?.current?.click(),$(null);return}(27===t||9===t)&&(Q(!1),R(!1),F(""),$(null))},et=()=>{if(V){R(!0),F("");return}Q(!U)},er=e=>z?.[0]===String(e.value),en=e=>{let{target:t}=e;X(er({value:t.value,label:""})?[]:[t.value])};(0,i.useEffect)(()=>{Q(!1),R(!1),F("")},[V]),(0,es.Z)(N,()=>{U&&Q(!1)},[U]),(0,i.useEffect)(()=>{if(!U)return()=>{};let e=(0,eu.Z)(K,100),t=(0,el.Z)({passive:!0});return window.addEventListener("scroll",e,t),window.addEventListener("resize",e,t),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[U]);let eo=`${b||n}-listbox`,ef=(0,i.useMemo)(()=>({}),[]),ep=P.Z,ed=(0,d.jsxs)("ul",{id:eo,className:"ma-reset pa-reset",role:"listbox","aria-label":"options",children:[W.map((e,t)=>{let r=e.value===B?.value;return(0,d.jsx)("li",{id:Y(e)??void 0,className:(0,a.Z)("form-checkbox-select__list-item","d-flex",{"form-checkbox-select__list-item--selected":r}),role:"option","aria-selected":r,tabIndex:-1,"data-item-name":e.label,children:(0,d.jsx)(f.Z.Provider,{value:ef,children:i.createElement(ep,{fluid:!0,rightToLeft:!0,ref:T.current[t],className:"form-checkbox-select__list-item-inner align-items-center",label:e.count?`${e.label} (${e.count})`:e.label,indeterminate:e.indeterminate,onChange:en,value:e.value,checked:er(e),tabIndex:"-1"})})},e.value)}),!W.length&&(0,d.jsx)("li",{className:"form-checkbox-select__list-item form-checkbox-select__no-options-item body-copy-small",children:(0,d.jsx)("span",{className:"form-checkbox-select__list-item-inner",children:_("molecules.formMultiSelect.filterOptions.noResult")})})]});return(0,d.jsxs)("div",{className:(0,a.Z)("form-checkbox-select",{"form-checkbox-select--open":U,"form-checkbox-select--enable-focus-styles":v},r),"aria-expanded":!!(I||U),role:"combobox",ref:N,children:[(0,d.jsx)("input",{type:"hidden",name:n,value:JSON.stringify(z),onChange:()=>{},ref:E,onInput:e=>{u&&u(e),j&&j(e)},"aria-describedby":null!=O?String(O):void 0}),!(g&&I)&&i.createElement(w,{className:"form-checkbox-select__searchbox",role:"searchbox",name:`${n}:searchbox`,hasError:!!S?.[n],"aria-haspopup":"listbox","aria-controls":eo,"aria-activedescendant":Y(B),"aria-label":_("molecules.formMultiSelect.ariaLabel.formInput",{label:o}),ref:A,onChange:J,onClick:et,onKeyDown:ee,placeholder:z.length?`${z.length} ${_("molecules.formMultiSelect.filterOptions.inputPlaceholderSelected")}`:_("molecules.formMultiSelect.filterOptions.inputPlaceholderSelect"),autoComplete:"off",tabIndex:y,inlineLabel:m?o:null,inlineLabelSelected:!!z.length}),(0,d.jsxs)("button",{className:"form-checkbox-select__caret-button p-absolute",onClick:et,type:"button",tabIndex:y??void 0,"data-component":"Button",children:[(0,d.jsx)("span",{className:"sr-only",children:_("molecules.formMultiSelect.sr.optionsButton")}),(0,d.jsx)("span",{className:"form-checkbox-select__caret-icon p-absolute"})]}),(0,d.jsx)("div",{ref:C,"data-testid":"form-checkbox-select-dropdown",className:"form-checkbox-select__options",children:!V&&ed}),(0,d.jsxs)(ec.Z,{show:I,onClose:()=>R(!1),children:[(0,d.jsx)(ec.Z.Header,{children:o}),g&&I&&(0,d.jsx)("div",{className:"form-checkbox-select__modal-searchbox",children:i.createElement(w,{role:"searchbox",name:`${n}:searchbox`,hasError:!!S?.[n],"aria-haspopup":"listbox","aria-controls":eo,"aria-activedescendant":Y(B),"aria-label":`Filter ${o}`,ref:A,onChange:J,onClick:et,onKeyDown:ee,placeholder:z.length?`${z.length} selected`:"Select...",autoComplete:"off",tabIndex:y,inlineLabel:"Refine list...",inlineLabelSelected:!!z.length})}),(0,d.jsx)(ec.Z.Body,{children:V&&ed})]})]})});ey.displayName="FormCheckboxSelect";var em=r(67881),eg=r(60303);let ev=["children","className","initialOffset","synced","width","style"];function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ew(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEac
65h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eO=(0,i.forwardRef)((e,t)=>{let{children:r,className:n,initialOffset:s=0,synced:c=!1,width:u=null,style:l}=e,f=(0,o.Z)(e,ev),p=(0,i.useRef)(null),h=(0,i.useRef)(null),y=s?`translateX(${s}px)`:null,{0:m,1:g}=(0,i.useState)({transform:y||void 0}),{0:v,1:b}=(0,i.useState)({minWidth:u||void 0});(0,i.useEffect)(()=>{y&&(g(null),p.current&&(p.current.style.overflowX="auto",p.current.scrollLeft=-1*s));let e=new K.default(()=>{let e=h.current,t=e?.firstElementChild;!u&&t&&b({minWidth:t.scrollWidth})}),t=h.current,r=t?.firstElementChild;return r&&e.observe(r),()=>{e.disconnect()}},[]);let w=c?eg.ScrollSyncPane:i.Fragment;return(0,d.jsx)(w,{children:(0,d.jsx)("div",ew(ew({className:(0,a.Z)("scrollable-container",{"scrollable-container--with-initial-offset":s},n),"data-testid":"scrollable-container-main-container",ref:e=>{p.current=e,"function"==typeof t?t(e):t&&(t.current=e)},style:l||void 0},f),{},{children:(0,d.jsx)("div",{className:"scrollable-container__width-container","data-testid":"scrollable-container-width-container",style:v,children:(0,d.jsx)("div",{"data-testid":"scrollable-container-transform-container",style:m||void 0,ref:h,children:r})})}))})});eO.displayName="ScrollableContainer";var eS=r(23258);let ej=(0,i.forwardRef)((e,t)=>{let{className:r,defaultValue:n,legend:o,name:s,onChange:c,options:u,srOnlyLegend:p,value:h,hideGroupTab:y}=e,{inputId:m,feedbackId:g}=(0,i.useContext)(f.Z),{inverted:v,onChange:b,defaultValues:w}=(0,i.useContext)(l.Z),O=u||[],S=(0,eS.Z)(O),j="string"==typeof s?s:void 0,x=[h,n,j&&w?w[j]:void 0].find(e=>"string"==typeof e||"number"==typeof e),{0:_,1:P}=(0,i.useState)(x),E=O.find(e=>e.value===_);(0,i.useEffect)(()=>{h&&h!==_&&P(h)},[h]);let A=e=>{P(e.target.value),c&&c(e),b&&b(e)},k=e=>S[O.findIndex(t=>t===e)],C=e=>{let t=O.find(t=>{let{group:r}=t;return r===e});P(t.value),k(t).current.click()},N=e=>e.value===_,T=e=>(0,em.o)([m,e].filter(e=>e).join("-"));return(0,d.jsxs)("fieldset",{className:(0,a.Z)("form-radio-tabs",{"form-radio-tabs--has-active-group":E?.group,"form-radio-tabs--inverted":v},r),ref:t,children:[(o||p)&&(0,d.jsx)("legend",{className:(0,a.Z)("form-radio-tabs__legend body-copy mb-xs",p&&"sr-only"),children:o||p}),(0,d.jsx)(eO,{children:(0,d.jsx)("div",{className:(0,a.Z)("d-flex",{"form-radio-tabs__parent-direction":y}),children:O.map((e,t)=>{let r=O.slice(0,t),n=T(e.group||e.value),o=e.group===E?.group,c=O.filter(t=>{let{group:r}=t;return r===e.group});return e.group&&r.find(t=>{let{group:r}=t;return r===e.group})?null:(0,d.jsxs)(i.Fragment,{children:[!y&&(0,d.jsx)("div",{className:"form-radio-tabs__tab",children:e.group?(0,d.jsx)("button",{className:(0,a.Z)("form-radio-tabs__tab-label",{"form-radio-tabs__tab-label--active":E?.group===e.group}),type:"button",tabIndex:-1,onClick:()=>{C(e.group)},children:e.group}):(0,d.jsxs)("label",{className:(0,a.Z)("form-radio-tabs__tab-label mb-reset","d-flex justify-content-center",{"form-radio-tabs__tab-label--active":N(e)}),htmlFor:n,children:[e.label,(0,d.jsx)("input",{className:"sr-only",type:"radio",id:n,value:e.value,name:s,checked:N(e),onChange:A,ref:k(e),"aria-describedby":g?String(g):void 0})]})}),e.group&&(0,d.jsx)(eO,{className:(0,a.Z)("form-radio-tabs__group","p-absolute d-flex",{"sr-only":!o,"form-radio-tabs__group--active":o}),children:(0,d.jsx)("div",{className:(0,a.Z)("d-flex",{"form-radio-tabs__direction":y}),children:c.map(e=>{let t=T(e.value);return(0,d.jsxs)("label",{className:"form-radio-tabs__grouped-radio-button-label mr-md mb-reset",htmlFor:t,children:[(0,d.jsx)("input",{type:"radio",className:"form-radio-tabs__grouped-radio-button-input mr-xxs mb-reset",id:t,value:e.value,name:s,checked:N(e),onChange:A,ref:k(e),"aria-describedby":g?String(g):void 0}),e.label]},t)})})})]},n)})})})]})});ej.displayName="FormRadioTabs";var ex=r(26335),e_=(e,t,r)=>({40:t===r?t:t+1,38:0===t?t:t-1,36:0,35:r})[e],eP=r(88928);let eE=["className","name","formInputRef","autocomplete","onChange","sctrack"];function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?eA(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eC=eP.Z,eN=e=>{let{className:t,name:r,formInputRef:n,autocomplete:s,onChange:c,sctrack:u=null}=e,l=(0,o.Z)(e,eE),f=(0,y.Z)("FormAutocomplete",u),p=(0,i.useRef)(null),{0:h,1:m}=(0,i.useState)(-1),{0:g,1:v}=(0,i.useState)(!1),{0:b,1:O}=(0,i.useState)([]),{t:S}=(0,k.$G)(),j=`${r}-listbox`,x=(0,ex.Z)(e=>{if(!s){v(!1);return}let t=n?.current?.value||e;s(e).then(e=>e.input===t&&O(e.results)).catch(()=>v(!1))},300),_=e=>{let{keyCode:t}=e;if([40,38,36,35,13,27,9].includes(t)){if(!g){40===t&&(v(!0),m(0));return}if(27===t||9===t){v(!1);return}if(13===t&&h>=0){window.open(b[h]?.url);return}m(e_(t,h,b.length-1)??h)}};return(0,es.Z)(p,()=>{g&&v(!1)},[g]),(0,d.jsxs)("div",{className:(0,a.Z)("form-autocomplete",t),children:[(0,d.jsx)(w,ek(ek({},l),{},{ref:n,name:r,className:"form-autocomplete__input",role:"searchbox","aria-haspopup":"listbox","aria-controls":j,"aria-activedescendant":b[h]?.id,"aria-label":S("molecules.formAutoComplete.ariaLabel.search"),onChange:e=>{let{value:t}=e.target,r=t.length>=3;m(-1),r&&x(t),v(r),c?.(e)},onKeyDown:_,autoComplete:"off",sctrack:f})),(0,d.jsxs)("div",{ref:p,"data-testid":"form-autocomplete-dropdown",className:(0,a.Z)("form-autocomplete__options pt-xxs pb-xxs pl-xs pr-xs",{"form-autocomplete__options--visible":g}),children:[(0,d.jsx)("ul",{id:j,className:"ma-reset pa-reset",role:"listbox","aria-label":"options",children:b.map((e,t)=>(0,d.jsx)("li",{id:e.id,className:(0,a.Z)("form-autocomplete__list-item","d-flex",{"form-autocomplete__list-item--selected":h===t}),role:"option","aria-selected":h===t,tabIndex:-1,children:(0,d.jsx)(eC,{href:e?.url,ellipsis:!0,onKeyDown:_,sctrack:f,children:e.title})},e.id))}),!b.length&&(0,d.jsx)("div",{className:"form-autocomplete__list-item form-autocomplete__no-options-item body-copy-small",children:S("molecules.formAutoComplete.ariaLabel.noResult")})]})]})};eN.displayName="FormAutocomplete";var eT=r(19378),eI=r(58500),eR=r(74349);let eL=e=>{let{className:t=null,name:r="search",maxHistoryItems:n=eT.UX,formInputRef:o=null,onChange:s=()=>null,onSubmit:c=null,centralised:u=!1,sctrack:l=null}=e,f=(0,i.useRef)(null),h=(0,i.useRef)(null),m=o??h,{0:g,1:v}=(0,i.useState)(-1),{0:b,1:w}=(0,i.useState)(!1),{0:O,1:S}=(0,i.useState)([]),{0:j,1:x}=(0,i.useState)(!1),_=(0,eI.Z)(),{t:P}=(0,k.$G)(),E=`${r}-listbox`,A=(0,eT.yx)(r),C=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"select_option",item_name:e,item_value:e,component:"RecentSearchItem",feature:"search"})},N=()=>{O.length>0&&(w(!0),v(-1))};(0,i.useEffect)(()=>{S((0,eT.kL)(r,n))},[r,n]);let T=(0,i.useCallback)(e=>{S((0,eT.hP)({name:r,query:e,maxHistoryItems:n}))},[r,n]);(0,i.useEffect)(()=>{let e=m.current?.form;if(!e)return;let t=()=>{T(m.current?.value||"")};return e.addEventListener("submit",t),()=>{e.removeEventListener("submit",t)}},[T]);let I=()=>{w(!1),x(!0),m.current&&T(m.current.value),c&&m.current?.value&&c(m.current.value)},R=e=>{let{keyCode:t}=e,r=m.current?.value||"";if([40,38,36,35,13,27,9].includes(t)){if(!b){40===t&&O.length>0&&!r&&(w(!0),v(0)),13===t&&I();return}if(27===t||9===t){w(!1);return}if(13===t){if(g>=0&&O[g]){let e=O[g];m.current&&(m.current.value=e),C(e),T(e),w(!1),c&&c(e);return}I();return}v(e_(t,g,O.length-1)??g)}};(0,i.useEffect)(()=>{let e=m.current;if(!e)return;let t=()=>{x(!1),e.value||N()},r=()=>{e.value||N()},n=e=>{let t=e.target.value;v(-1),t?w(!1):N(),s(e)},o=e=>{R(e)};return e.addEventListener("focus",t),e.addEventListener("click",r),e.addEventListener("input",n),e.addEventListener("keydown",o),()=>{e.removeEventListener("focus",t),e.removeEventListener("click",r),e.removeEventListener("input",n),e.removeEventListener("keydown",o)}},[m.current,O.length,b,g,j]),(0,i.useEffect)(()=>{let e=e=>{let{target:t}=e;if(!b)return;let r=f.current?.contains(t)??!1,n=m.current===t||m.current?.contains(t);r||n||w(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[b,m]),(0,i.useEffect)(()=>{let e=()=>{w(!1)};return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}},[]);let L=()=>{S([]),v(-1),w(!1),window.localStorage&&window.localStorage.removeItem(A),o?.current?.focus()};return(0,d.jsxs)("div",{className:(0,a.Z)("form-search-history",{"form-search-history--centralised":u},t),ref:f,children:[(0,d.jsxs)("div",{"data-testid":"form-search-history-dropdown",className:(0,a.Z)("form-search-history__options",{"form-search-history__options--visible":b&&O.length>0}),children:[!!O.length&&(0,d.jsxs)("div",{className:"form-search-history__header body-copy-small",children:[(0,d.jsx)("span",{children:" Recent searches "}),u&&(0,d.jsx)("button",{type:"button",className:"form-search-history__clear-button",onClick:L,"aria-label":"Clear all recent searches",children:"Clear all"})]}),(0,d.jsx)("ul",{id:E,className:"ma-reset pa-reset",role:"listbox","aria-label":"search history",children:O.map((e,t)=>(0,d.jsxs)("li",{id:`${E}-item-${t}`,className:(0,a.Z)("form-search-history__list-item","d-flex",{"form-search-history__list-item--selected":g===t}),role:"option","aria-selected":g===t,tabIndex:-1,onClick:()=>{m.current&&(m.current.value=e),C(e),I()},onKeyDown:t=>{let{keyCode:r}=t;(13===r||32===r)&&(m.current&&(m.current.value=e),C(e),I())},children:[u&&(0,d.jsx)(p.Z,{name:"history",color:"backgroundDark",size:18,"aria-hidden":"true",className:"form-search-history__history-icon"}),(0,d.jsx)("span",{className:"form-search-history__query-text",children:e})]},`${e}-${t}`))}),!!O.length&&!u&&(0,d.jsx)("div",{className:"form-search-history__footer",children:(0,d.jsx)("button",{type:"button",className:"form-search-history__clear-button",onClick:L,"aria-label":"Clear all recent searches",children:"Clear all"})})]}),(0,d.jsx)(eR.Z,{className:"form-search-history__backdrop",active:_&&b,onClick:()=>w(!1),sctrack:(0,y.Z)("FormSearchHistory",l)})]})};eL.displayName="FormSearchHistory";var eD=r(68486);let eM=e=>"object"==typeof e&&null!==e,eF=e=>eM(e)&&Array.isArray(e.suggestions)?e.suggestions.map(e=>"string"==typeof e?e:eM(e)&&"string"==typeof e.suggestion?e.suggestion:null).filter(e=>"string"==typeof e):[],eU=e=>{let{className:t=null,name:r="search",formInputRef:n=null,onChange:o=()=>null,onSubmit:s=null,centralised:c=!1,sctrack:u=null}=e,l=(0,i.useRef)(null),f=(0,i.useRef)(""),h=(0,i.useRef)(""),m=(0,i.useRef)(!0),g=(0,i.useRef)(!1),{0:v,1:b}=(0,i.useState)(-1),{0:w,1:O}=(0,i.useState)(!1),{0:S,1:j}=(0,i.useState)([]),x=(0,eI.Z)(),{t:_}=(0,k.$G)(),P=(0,i.useContext)(eD.Z),E="function"==typeof P,A=`${r}-query-completion-listbox`,C=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;n?.current&&(n.current.value=e,"function"==typeof n.current.setSelectionRange&&n.current.setSelectionRange(t,r))},[n]),N=(0,i.useCallback)(()=>{h.current=""},[]),T=(0,i.useCallback)(e=>{h.current=e,f.current=e,C(e,e.length,e.length),O(!1),b(-1)},[C]),I=(0,i.useCallback)((e,t)=>{h.current=t,C(t,e.length,t.length)},[C]),R=(0,i.useCallback)(()=>{N(),C(f.current,f.current.length,f.current.length)},[N,C]),L=(0,i.useCallback)(e=>{let t=f.current;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"select_option",item_name:e,item_value:e,component:"QueryCompletionItem",feature:"search"}),T(e),s&&s(e,{originalQuery:t})},[T,s]),D=(0,i.useCallback)((0,ex.Z)(e=>{E&&P(e).then(t=>{let r=eF(t);if(e!==f.current)return;j(r),O(r.length>0),b(r.length>0?0:-1);let[n]=r;m.current&&n&&n.toLowerCase().startsWith(e.toLowerCase())?I(e,n):N()}).catch(()=>{e===f.current&&O(!1)})},700),[P,E,I,N]),M=(0,i.useCallback)(e=>{let{value:t}=e.target,r="string"==typeof e.inputType&&e.inputType.startsWith("delete")||g.current;m.current=!r,g.current=!1,b(-1),o(e),N(),j([]),O(!1),f.current=t,t.length>=2&&E?D(t):C(t,t.length,t.length)},[o,N,E,D,C]),F=(0,i.useCallback)(e=>{let{keyCode:t}=e;if((8===t||46===t)&&(g.current=!0),![40,38,13,27,9].includes(t))return;let r=!!h.current;if(13===t){let t=v>=0&&S[v]?S[v]:h.current,r=v>=0&&S[v]?S[v]:h.current||f.current,n=f.current;if(r){if(e.preventDefault(),t){L(r);return}T(r),s&&s(r,{originalQuery:n})}return}if(27===t){(w||r)&&(e.preventDefault(),O(!1),j([]),b(-1),R());return}if(9===t){O(!1),b(-1);return}if(!w){40===t&&S.length>0&&(O(!0),b(0),S[0]&&I(f.current,S[0]));return}let n=40===t?Math.min(v+1,S.length-1):Math.max(v-1,0);b(n);let o=S[n];o&&o.toLowerCase().startsWith(f.current.toLowerCase())&&I(f.current,o)},[v,S,w,L,T,s,R,I]);return(0,i.useEffect)(()=>{let e=n?.current;if(e)return e.addEventListener("input",M),e.addEventListener("keydown",F),()=>{e.removeEventListener("input",M),e.removeEventListener("keydown",F)}},[n?.current,M,F]),(0,i.useEffect)(()=>{let e=()=>{O(!1)};return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}},[w]),(0,es.Z)(l,()=>{w&&O(!1)},[w]),(0,d.jsxs)("div",{className:(0,a.Z)("form-query-completion",{"form-query-completion--centralised":c},t),ref:l,children:[(0,d.jsx)("div",{"data-testid":"form-query-completion-dropdown",className:(0,a.Z)("form-query-completion__options",{"form-query-completion__options--visible":w&&S.length>0}),children:(0,d.jsx)("ul",{id:A,className:"ma-reset pa-reset",role:"listbox","aria-label":_("molecules.formQueryCompletion.ariaLabel.suggestions"),children:S.map((e,t)=>(0,d.jsxs)("li",{id:`${A}-item-${t}`,className:(0,a.Z)("form-query-completion__list-item","d-flex",{"form-query-completion__list-item--selected":v===t}),role:"option","aria-selected":v===t,tabIndex:-1,onClick:()=>L(e),onKeyDown:t=>{(13===t.keyCode||32===t.keyCode)&&L(e)},children:[(0,d.jsx)(p.Z,{name:"search",color:"backgroundDark",size:16,"aria-hidden":"true",className:"form-query-completion__suggestion-icon"}),(0,d.jsx)("span",{className:"form-query-completion__query-text",children:e})]},`${e}-${t}`))})}),(0,d.jsx)(eR.Z,{className:"form-query-completion__backdrop",active:x&&w,onClick:()=>O(!1),sctrack:(0,y.Z)("FormQueryCompletion",u)})]})};eU.displayName="FormQueryCompletion";let eZ=["children","className","inverted","mobileSquareBorders","action","method","role","onSubmit","errors","messages","defaultMessages","defaultValues","onChange","reactBeautifulDnd","reactEasyCrop","dataFormName"];function eB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function e$(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?eB(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eB(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eG=function(){let{initialRef:e,initialErrors:t=u,initialMessages:r=u,defaultMessages:o=u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s(e),{0:l,1:f}=(0,i.useState)(t??u),{0:p,1:d}=(0,i.useState)(r),{0:h,1:y}=(0,i.useState)(!1);(0,i.useEffect)(()=>{f(t??u)},[t]),(0,i.useEffect)(()=>{d(r)},[r]);let m=(e,t)=>e.reduce((e,r)=>{let n;let{validity:i,name:a,validationMessage:s}=r,c=p[a]||{};for(let e in i)i[e]&&"valid"!==e&&(n=e);let u=n&&(n in c||n in o)&&(o[n]||c[n])||s;return(t||h||"customError"===n)&&u.length?e[a]=u:delete e[a],e},function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},l)),g=e=>{if(!a.current)return;let t=new CustomEvent("submitted",{detail:e});a.current.dispatchEvent(t)};return{formRef:a,errors:l,validateInput:function(e,t){let{raiseError:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f(m([e.target],r)),t&&t(e)},handleSubmit:async(e,t)=>{let r=e.target,{elements:n}=r,o=[...n].filter(e=>!e.checkValidity()),i=m(o,!0),a=r.checkValidity();if(y(!0),f(i),o.length&&o[0].scrollIntoView({behavior:"smooth"}),!a){e.preventDefault(),g(!1);return}if(!t){g(!0);return}try{await t(e)}catch(e){throw g(!1),e}g(!0)}}},ez=(0,i.forwardRef)((e,t)=>{let{children:r,className:n,inverted:s=!1,mobileSquareBorders:c=!1,action:u,method:f,role:p,onSubmit:h,errors:y,messages:m,defaultMessages:g,defaultValues:v,onChange:b,reactBeautifulDnd:w,reactEasyCrop:O,dataFormName:S}=e,j=(0,o.Z)(e,eZ),{formRef:x,errors:_,validateInput:P,handleSubmit:E}=eG({initialRef:t,initialErrors:y,initialMessages:m,defaultMessages:g}),A=(0,i.useMemo)(()=>({inputId:null,feedbackId:null,inverted:s,mobileSquareBorders:c,errors:_,validateInput:P,onChange:b,defaultValues:v,reactBeautifulDnd:w,reactEasyCrop:O,formRef:x}),[s,c,_,P,b,v,w,O,x]);return(0,d.jsx)(l.Z.Provider,{value:A,children:(0,d.jsx)("form",e$(e$({},j),{},{noValidate:!0,action:u,method:f,ref:x,className:(0,a.Z)("form",n),role:p,onSubmit:e=>E(e,h),"data-form-name":S,"data-testid":"form",children:r}))})});ez.Feedback=h,ez.Input=w,ez.Label=m.Z,ez.Group=O.Z,ez.InputGroup=_,ez.Checkbox=P.Z,ez.Toggle=E,ez.Switch=A,ez.SortableInputs=q,ez.FormRange=H,ez.ResetButton=N,ez.SubmitButton=U,ez.ImageUpload=eo,ez.MultiSelect=ed,ez.CheckboxSelect=ey,ez.RadioTabs=ej,ez.Autocomplete=eN,ez.SearchHistory=eL,ez.QueryCompletion=eU;var eq=ez},17812:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n,o,i=r(67294),a=r(90512),s=r(99860),c=r.n(s);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var f=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(l(t)),t.handleErrored=t.handleErrored.bind(l(t)),t.handleChange=t.handleChange.bind(l(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(l(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},r.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return i.createElement("div",u({},t,{ref:this.handleRecaptchaRef}))},t}(i.Component);f.displayName="ReCAPTCHA",f.propTypes={sitekey:c().string.isRequired,onChange:c().func,grecaptcha:c().object,theme:c().oneOf(["dark","light"]),type:c().oneOf(["image","audio"]),tabindex:c().number,onExpired:c().func,onErrored:c().func,size:c().oneOf(["compact","normal","invisible"]),stoken:c().string,hl:c().string,badge:c().oneOf(["bottomright","bottomleft","inline"])}
65,f.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var p=r(9657),d=r.n(p),h=r(8679),y=r.n(h);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var g={},v=0,b="onloadcallback",w=(n=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+b+"&render=explicit"},o=(o={callbackName:b,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var a=r.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL=0?n:n(),this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=g[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[o.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=o,i=n.globalName,a=n.callbackName,s=n.scriptId;if(i&&void 0!==window[i]&&(g[t]={loaded:!0,observers:{}}),g[t]){var c=g[t];if(c&&(c.loaded||c.errored)){this.asyncScriptLoaderHandleLoad(c);return}c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},g[t]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=t,l.async=!0,o.attributes)l.setAttribute(f,o.attributes[f]);s&&(l.id=s);var p=function(e){if(g[t]){var r=g[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=g[t];e&&(e.loaded=!0,p(function(t){return!a&&(t(e),!0)}))},l.onerror=function(){var e=g[t];e&&(e.errored=!0,p(function(t){return t(e),!0}))},document.body.appendChild(l)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===o.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=g[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===o.removeOnUnmount&&delete g[e])},a.render=function(){var t=o.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=n,(0,i.createElement)(e,a)},r}(i.Component),a=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(r,m({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:d().func},y()(a,e)})(f),O=r(31654);let S={purposes:[1,2,3,4,5,6,7,8,9,10,11],vendorId:["5e952f7404cc1c1121379b00"]};var j=()=>{let e=(0,i.useRef)(null),{0:t,1:r}=(0,i.useState)(!1),{0:n,1:o}=(0,i.useState)(!1),{0:a,1:s}=(0,i.useState)(!1),c=async()=>e?.current?.executeAsync();return(0,i.useEffect)(()=>{(async()=>{try{let e=await (0,O.onConsentReady)(),t=(0,O.hasRequisiteConsent)({tcdata:e,purposes:S.purposes,vendorIds:S.vendorId});o(t),s(t)}catch(e){o(!1),s(!1)}})()},[]),{getRecaptchaToken:c,handleAsyncScriptOnLoad:()=>{r(!0)},hasRecaptchaScriptLoaded:t,recaptchaRef:e,isRecaptchaConsented:n,hasRecaptchaRequisiteConsent:a}},x=r(96911);let _={purposes:[1,2,3,4,5,6,7,8,9,10,11],vendorId:["5e952f7404cc1c1121379b00"]};var P=e=>{let{siteKey:t,action:r}=e,{0:n,1:o}=(0,i.useState)(!1),{0:a,1:s}=(0,i.useState)(!1),c=async()=>t?(window.grecaptcha?.enterprise||await new Promise(e=>{let r=document.createElement("script");r.src=`https://www.google.com/recaptcha/enterprise.js?render=${t}`,r.onload=()=>e(),document.body.appendChild(r)}),window.grecaptcha.enterprise.execute(t,{action:r})):(x.logger.warn("useRecaptchaEnterprise: siteKey is not configured"),null);return(0,i.useEffect)(()=>{(async()=>{try{let e=await (0,O.onConsentReady)(),t=(0,O.hasRequisiteConsent)({tcdata:e,purposes:_.purposes,vendorIds:_.vendorId});o(t),s(t)}catch(e){o(!1),s(!1)}})()},[]),{getToken:c,isRecaptchaConsented:n,hasRecaptchaRequisiteConsent:a}};let E=()=>_;
65var A=r(22120),k=r(54938),C=r(30899),N=r(11422),T=r(61256),I=r(33201),R=r(86583),L=r(88928),D=r(31855),M=r(63144),F=r(84450),U=r(75119),Z=()=>{let{email:e,fabricUserId:t,signUpUrl:r}=(0,i.useContext)(U.Z),n=(0,i.useContext)(F.Z),o=(0,i.useRef)(),{0:a,1:s}=(0,i.useState)(!1),{0:c,1:u}=(0,i.useState)(!1),l=async(e,n)=>{let i,{onSuccess:a}=n,c=new FormData(o.current);c.set("recaptchaToken",e),t&&c.set("fabricUserId",t),u(!0);try{i=await M(r,{method:"POST",body:c})}catch(e){console.error(e)}i?.ok&&(a&&a(),s(!0)),u(!1)};return{email:e,formRef:o,isLoggedIn:n,isSignUpComplete:a,isSignUpDisabled:c,onSubmit:l,signUpUrl:r}},B=r(26140),$=r(85893);let G=Object.freeze({FORM:"form",SUCCESS:"success"}),z=e=>{let{className:t=null,loggedInBodyCopy:r="",loggedInSuccessMessage:n="",loggedOutBodyCopy:o="",loggedOutSignInMessage:s="",loggedOutSuccessMessage:c="",newsletter:u="",registerUrl:l,requisiteRecaptchaConsentOverride:f="",signInUrl:p,siteTitle:d="",title:h="",layout:y="horizontal",disclaimer:m=null,color:g="backgroundExtraLight"}=e,{0:v,1:b}=(0,i.useState)({}),{newsletterSettings:O,recaptchaSettings:S,recaptchaEnterpriseSettings:x,siteContext:_}=(0,i.useContext)(C.Z),{identify:M}=(0,k.hI)(),{t:F}=(0,A.$G)(),{email:U,formRef:z,isLoggedIn:q,isSignUpComplete:H,isSignUpDisabled:V,onSubmit:W,signUpUrl:K}=Z(),{handleAsyncScriptOnLoad:Y,getRecaptchaToken:Q,hasRecaptchaScriptLoaded:X,recaptchaRef:J}=j(),{getToken:ee,isRecaptchaConsented:et,hasRecaptchaRequisiteConsent:er}=P({siteKey:x?x.siteKey??null:null,action:"newsletter_signup"}),en=x?.enabled??!1,eo=O?.isRecaptchaEnabled??S?.isNewsletterRecaptchaEnabled,ei=eo&&!en,ea=H?G.SUCCESS:G.FORM,es=Object.keys(v).length>0,ec="horizontal"===y||"vertical"===y?y:"horizontal",eu=F("organisms.newsletterSignUp.disclaimer.text",{termsAndConditionsLink:`<a class="link link--styled" data-component="Link" href="https://www.immediate.co.uk/terms-and-conditions/" target="_blank">${F("organisms.newsletterSignUp.disclaimer.termsAndConditions")}</a>`,privacyPolicyLink:`<a class="link link--styled" data-component="Link" href="https://policies.immediate.co.uk/privacy/" target="_blank">${F("organisms.newsletterSignUp.disclaimer.privacyPolicy")}</a>`}),el=(0,i.useMemo)(()=>{let e=m||eu;return(0,D.Z)(e)},[m,eu]),ef=()=>{M(_?.siteKey??"",{newsletterName:u})},ep=()=>{b({recaptcha:F("organisms.newsletterSignUp.recaptcha.errorMessage")})},ed=async e=>{e.preventDefault();let t=en?await ee():await Q();if(eo&&!t){ep();return}await W(t,{onSuccess:ef})};if(!(et||f)||!(er||f)){let e=E();return(0,$.jsx)(B.Z,{providerName:"Google reCAPTCHA",brandName:d,className:"mb-md",consentModalButton:!0,requiredConsent:{purposeIds:e?.purposes,vendorIds:e?.vendorId}})}return(0,$.jsxs)(N.Z,{className:(0,a.Z)("newsletter-sign-up text-center pa-sm",t,`newsletter-sign-up--${ec}`),color:g,"data-component":"NewsletterSignUp","data-feature":"NewsletterSignUp","data-form-name":u?u.split("-")[0]:"","data-component-variant":ec,"data-testid":"newsletter-sign-up",children:[ea===G.FORM&&(0,$.jsxs)($.Fragment,{children:[ei&&S?.recaptchaSiteKey&&(0,$.jsx)(w,{className:"recaptcha-badge","data-testid":"recaptcha",ref:J,sitekey:S.recaptchaSiteKey,size:"invisible",asyncScriptOnLoad:Y,onErrored:ep,onExpired:ep}),(0,$.jsxs)(I.Z,{method:"POST",action:K,defaultMessages:{typeMismatch:F("organisms.newsletterSignUp.input.emailErrorMessage")},errors:v,onSubmit:ed,onInput:e=>{let t=e.target;t?.value?.trim()?b({}):b({email:F("molecules.accountDetails.inputErrorMessages.email.typeMismatch")})},ref:z,"data-testid":"newsletter-sign-up-form",children:[(0,$.jsx)("input",{type:"hidden",name:"newsletter",defaultValue:u,"data-testid":"newsletter"}),h&&(0,$.jsx)(R.Z,{size:3,className:"pt-sm pb-sm",children:h}),(0,$.jsx)("p",{className:"body-copy-large body-copy-bold mb-lg",children:q?r:o}),(0,$.jsxs)(I.Z.Group,{inputId:"email-address",feedbackId:"email-feedback",children:[(0,$.jsx)(I.Z.Label,{className:"sr-only",children:F("organisms.newsletterSignUp.input.emailPlaceholder")}),(0,$.jsxs)("div",{className:"newsletter-sign-up__form",children:[(0,$.jsx)(I.Z.Input,{required:!0,defaultValue:U,type:"email",name:"email",placeholder:F("organisms.newsletterSignUp.input.emailPlaceholder"),className:"newsletter-sign-up__form__input"}),(0,$.jsx)(T.Z,{className:"newsletter-sign-up__form__btn",disabled:V||ei&&!X||es,text:F("organisms.newsletterSignUp.submitButton"),type:"submit"})]}),(0,$.jsx)(I.Z.Feedback,{className:"newsletter-sign-up__form__feedback",name:"email"}),(0,$.jsx)(I.Z.Group,{feedbackId:"recaptcha-feedback",children:(0,$.jsx)(I.Z.Feedback,{className:"newsletter-sign-up__form__feedback",name:"recaptcha"})})]})]}),(0,$.jsx)("p",{className:"newsletter-sign-up__disclaimer body-copy-extra-small","data-testid":"disclaimer",children:el})]}),ea===G.SUCCESS&&(0,$.jsxs)("div",{children:[(0,$.jsx)(R.Z,{size:3,className:"pt-sm pb-sm",children:q?n:c}),!q&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("p",{className:"body-copy-large body-copy-bold mb-lg",children:s}),(0,$.jsx)(T.Z,{className:"mb-sm newsletter-sign-up__register",as:"a",href:l,text:F("organisms.newsletterSignUp.successView.registerButton")}),(0,$.jsxs)("p",{className:"mt-reset body-copy-extra-small mb-sm",children:[F("organisms.newsletterSignUp.successView.accountPrompt")," ",(0,$.jsx)(L.Z,{title:F("organisms.newsletterSignUp.successView.signInLinkText"),href:p,styled:!0,children:F("organisms.newsletterSignUp.successView.signInLinkText")})]})]})]})]})};z.displayName="NewsletterSignUp";var q=z},31329:function(e,t,r){"use strict";var n=r(8307);r(67294);var o=r(42761),i=r(41009),a=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?s(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=e=>{let{loading:t=!1,cards:r=[],link:n=null,title:s="",numberOfCardsToInclude:u=1,showDotsNavigation:l=!0,showSponsorLabel:f=!0,showAdvertisingCooperationLabel:p=!0,showCardsNumber:d=!0,headingStyle:h={},dataFeature:y=null,videoCarouselType:m=""}=e,g=(0,a.jsx)("div",{"data-testid":"video-card-carousel-fallback",className:"d-flex justify-content-center",style:{height:n?310:274},children:(0,a.jsx)(o.Z,{size:40})});return t?g:r&&0!==r.length?(0,a.jsx)(i.Z,{cards:r.map((e,t)=>({index:t+1,borderless:!0,loose:!0,alignment:"center",headingStyledSize:2,image:c(c({},e.image),{},{aspectRatio:"landscape"}),video:"video_players"===m&&e.video?e.video:null,id:e.id,title:e.title,url:e.url,callout:e.callout,offerHeadline:e.offerHeadline,sponsorTracking:p?e.sponsorTracking:null,sponsor:f?e.sponsor:null,hasMedia:!0,contentType:e.contentType,showOverlayIcon:e.showOverlayIcon,preloadImage:e.preloadImage})),adaptive:!1,infinite:!0,dots:l,cardsToShow:u,fallback:g,link:n,title:s,titleSize:2,showSlideNumber:d,headingStyle:c({},h),iconSize:44,arrowsType:"dense",cardType:m,dataFeature:y}):null};u.displayName="VideoCarousel",t.Z=u},31855:function(e,t,r){"use strict";var n=r(67294),o=r(25935),i=r(85893);let a=o.ZP,s=(e,t)=>t?(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{key:t}):Array.isArray(e)?e.map((e,r)=>s(e,`${t}.${r}`)):(0,i.jsx)(n.Fragment,{children:e},t):e;t.Z=(e,t)=>{let r=e??"";if(!("string"==typeof r||r instanceof String))return r;let n=r.replace(/(?:\r|\n|\u00a0)/g," ").replace(/\s\s+/g," ").trim();try{return s(a(n),t)}catch(e){return console.error(e),null}}},59810:function(e,t,r){"use strict";r.r(t),r.d(t,{areAllSourcePointVendorsConsented:function(){return m},checkPurposes:function(){return g},consentObj:function(){return d},createOrUpdateConsentEvent:function(){return S},getConsentCMPStatus:function(){return u},getConsentStatus:function(){return p},getSourcePointCustomVendors:function(){return h},hasConsentData:function(){return l},isRejected:function(){return v},markOnce:function(){return a},onCMPUIBeenShown:function(){return c},reloadOnTCFChange:function(){return x},updateConsentEventByKey:function(){return j},waitForConsent:function(){return b},waitForConsentChange:function(){return s}});var n=r(64687),o=r.n(n);function i(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,o)}var a=function(e){window.performance.getEntriesByName(e,"mark").some(function(t){return t.name===e})||window.performance.mark(e)},s=function(e){window.performance.mark("time-to-waitForConsentChange-init"),window.__tcfapi("addEventListener",2,function(){e(),window.performance.mark("time-to-waitForConsentChange-callback"),window.performance.measure("time-to-waitForConsentChange-init","time-to-waitForConsentChange-callback")})},c=function(e){window.__tcfapi("addEventListener",2,function(t,r){r&&"cmpuishown"===t.eventStatus&&(e(),window.__tcfapi("removeEventListener",2,function(e){e||console.error(Error("removeEventListener failure in TCFAPI"))},t.listenerId))})},u=function(){return new Promise(function(e,t){window.__tcfapi("addEventListener",2,function(r,n){if(!n)return t(Error("IM Consent | There was an error retrieving data from TCFAPI"));var o=["useractioncomplete","tcloaded"].includes(r.eventStatus),i="cmpuishown"===r.eventStatus,a=0===Object.keys(r.purpose.consents).length;o?e(!0):i&&a&&e(!1)})})};function l(){return f.apply(this,arguments)}function f(){var e;return e=o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u();case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",console.error("IM Consent: There was an error retrieving hasConsentData",{msg:{error:e.t0.message}}));case 9:case"end":return e.stop()}},e,null,[[0,6]])}),(f=function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)})}).apply(this,arguments)}var p=function(){var e;return window.__tcfapi("getTCData",2,function(t,r){r&&(e=JSON.stringify(t.purpose.consents))}),e},d={},h=function(e){window.performance.mark("time-to-getSourcePointCustomVendors-init"),d.sourcePointVendors=e.consentedVendors},y=function(e){window.performance.mark("time-to-setConsentedPurposes-init"),d.consentedPurposes=e.consentedPurposes},m=function(e){return e.every(function(e){return d.sourcePointVendors.some(function(t){return t._id===e})})},g=function(e,t,r,n){var o;return a("time-to-checkPurposes-init"),window.__tcfapi("addEventListener",2,function(i,a){var s=i.purpose,c=i.vendor,u=i.eventStatus;return r&&window.__tcfapi("getCustomVendorConsents",2,h),n&&window.__tcfapi("getCustomVendorConsents",2,y),a&&["useractioncomplete","tcloaded"].includes(u)&&(d.siteConsents=s.consents,d.vendorConsents=c.consents,o=[!e||e.every(function(e){return d.siteConsents[e]}),!t||t.every(function(e){return d.vendorConsents[e]}),!r||m(r),!n||n.every(function(e){var t;return null===(t=d.consentedPurposes)||void 0===t?void 0:t.find(function(t){return t.name===e})})].every(function(e){return e})),o}),o},v=function(){var e,t=!1;return window.__tcfapi("getTCData",2,function(r,n){n&&(e=r.purpose.consents,t=!0)}),!!e&&!0!==e[1]||!1===t&&null},b=function(e){window.performance.mark("time-to-waitForConsent");var t=(arguments.length<=1?0:arguments.length-1)>1&&(arguments.length<=2?void 0:arguments[2])!==void 0?arguments.length<=2?void 0:arguments[2]:1;window.__tcfapi||(window.performance.mark("time-to-waitForConsent-error"),console.error(Error("window.__tcfapi not found"))),window.__tcfapi("addEventListener",2,function(r,n){if(window.performance.mark("time-to-waitForConsent-event-handler"),window.performance.measure("waitForConsent-to-event-handler","time-to-waitForConsent"),!n){console.error(Error("addEventListener failure in TCFAPI"));return}["useractioncomplete","tcloaded"].includes(r.eventStatus)&&r.purpose.consents[t]&&(e(),window.__tcfapi("removeEventListener",2,function(e){e||console.error(Error("removeEventListener failure in TCFAPI"))},r.listenerId))})},w=function(e){var t=new CustomEvent("consent-checker.listener-events-before-reload",{detail:{hasKeySignalled:e}});window.dispatchEvent(t)},O=function(){document.addEventListener("DOMContentLoaded",function(){return w({})})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];window.consentCheckerEventData[e]=t,w(window.consentCheckerEventData)}
65,j=function(e){S(e,!0)},x=function(){if(window.__tcfapi){O();var e,t=function(t,r){if(!e){e=t.tcString;return}r&&"useractioncomplete"===t.eventStatus&&e!==t.tcString&&new Promise(function(e){var t=window.consentCheckerEventData,r=0===Object.keys(t).length,n=Object.values(t).every(function(e){return!0===e});e(!r&&n)}).then(function(e){e&&window.location.reload()})},r=function(t,r){r&&"tcloaded"===t.eventStatus&&(e=t.tcString)},n=document.querySelector("[data-cmp='true']");try{n.addEventListener("click",function(){window.__tcfapi("addEventListener",2,t),window.__tcfapi("addEventListener",2,r)})}catch(e){}}};window.consentCheckerEventData={},x()},31654:function(e,t,r){"use strict";r.r(t),r.d(t,{getConsentPurposes:function(){return b},getSourcepointPurposeIds:function(){return f},getSourcepointPurposeKeyedIds:function(){return p},getUsersCountryCode:function(){return w},hasRejectedAll:function(){return y},hasRequisiteConsent:function(){return h},isCountryCodeInAllowList:function(){return O},isLoggedIntoContentpass:function(){return S},markOnce:function(){return i},onConsentReady:function(){return u},setSourcepointCustomConsent:function(){return d}});var n,o,i=function(e){window.performance.getEntriesByName(e,"mark").some(function(t){return t.name===e})||window.performance.mark(e)};function a(e){return(a="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)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(t,r,n,i){var a,s,c=Object.create((r&&r.prototype instanceof v?r:v).prototype);return o(c,"_invoke",{value:(a=new k(i||[]),s=h,function(r,o){if(s===y)throw Error("Generator is already running");if(s===m){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var c=function t(r,n){var o=n.method,i=r.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),g;var a=d(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}(i,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=y;var u=d(t,n,a);if("normal"===u.type){if(s=a.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=m,a.method="throw",a.arg=u.arg)}})}),c}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",y="executing",m="completed",g={};function v(){}function b(){}function w(){}var O={};f(O,c,function(){return this});var S=Object.getPrototypeOf,j=S&&S(S(C([])));j&&j!==r&&n.call(j,c)&&(O=j);var x=w.prototype=v.prototype=Object.create(O);function _(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function P(e,t){var r;o(this,"_invoke",{value:function(o,i){function s(){return new t(function(r,s){!function r(o,i,s,c){var u=d(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,c)},function(e){r("throw",e,s,c)}):t.resolve(f).then(function(e){l.value=e,s(l)},function(e){return r("throw",e,s,c)})}c(u.arg)}(o,i,r,s)})}return r=r?r.then(s,s):s()}})}function E(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw TypeError(a(t)+" is not iterable")}return b.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},_(P.prototype),f(P.prototype,u,function(){return this}),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
65ise);var a=new P(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},_(x),f(x,l,"Generator"),f(x,c,function(){return this}),f(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=C,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var u=(n=s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){window.__tcfapi("addEventListener",2,function(r,n){if(!n)return t(Error("Consent Management | Error retrieving data from TCFAPI"));i("onConsentReady-init"),["useractioncomplete","tcloaded"].includes(r.eventStatus)&&(r.cmpCustomData={},window.__tcfapi("getCustomVendorConsents",2,function(t){r.cmpCustomData=t,window.__tcfapi("removeEventListener",2,function(e){e||console.error("Consent Management | Failed to remove event listener",{listenerId:r.listenerId})},r.listenerId),i("onConsentReady-end"),window.performance.measure("onConsentReady-total-time","onConsentReady-init","onConsentReady-end"),e(r)}))})}));case 1:case"end":return e.stop()}},e)}),o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)})},function(){return o.apply(this,arguments)}),l={1:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7f21"},2:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7f4b"},3:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7f76"},4:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7f9e"},5:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7fc5"},6:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7fd3"},7:{sourcepointPurposeId:"611e5f6b945e2b06ba7e7fe0"},8:{sourcepointPurposeId:"611e5f6b945e2b06ba7e800e"},9:{sourcepointPurposeId:"611e5f6b945e2b06ba7e801f"}
65,10:{sourcepointPurposeId:"611e5f6b945e2b06ba7e803a"},11:{sourcepointPurposeId:"654baa0ad1b2a504bc8df776"},12:{sourcepointPurposeId:"657192cd4c17e706f156c006"}},f=function(e){return Array.isArray(e)?e.map(function(e){var t;return null===(t=l[e])||void 0===t?void 0:t.sourcepointPurposeId}).filter(function(e){return void 0!==e}):[]},p=function(e){return Array.isArray(e)?e.reduce(function(e,t){var r,n=null===(r=l[t])||void 0===r?void 0:r.sourcepointPurposeId;return void 0!==n&&(e[t]=n),e},{}):{}},d=function(e){var t=e.contentName,r=e.legitInterestIds,n=e.purposeIds,o=e.vendorIds,i=Array.isArray(n)&&n.every(function(e){return"string"==typeof e})?n:[],a=Array.isArray(o)&&o.every(function(e){return"string"==typeof e})?o:[],s=Array.isArray(r)&&r.every(function(e){return"string"==typeof e})?r:[];window.__tcfapi("postCustomConsent",2,function(e,i){i||console.error("Consent Management | Failed to set custom consent",{contentName:"string"==typeof t?t:"unknown content",purposeIds:n,vendorIds:o,legitInterestIds:r}),window.location.reload()},a,i,s)},h=function(e){var t,r,n,o=e.tcdata,i=e.purposes,a=void 0===i?[]:i,s=e.vendorIds,c=void 0===s?[]:s;if(!o)return!1;var u=o.purpose,l=o.vendor,f=o.cmpCustomData,d=null!==(t=null==u?void 0:u.consents)&&void 0!==t?t:{},h={iabVendors:null!==(r=null==l?void 0:l.consents)&&void 0!==r?r:{},sourcePointVendors:null!==(n=null==f?void 0:f.consentedVendors)&&void 0!==n?n:[]},y=p(a);return y[12]=y[12]||"657192cd4c17e706f156c006",[0===a.length||a.every(function(e){var t;return!0===d[e]||(null==f||null===(t=f.consentedPurposes)||void 0===t?void 0:t.some(function(t){return t._id===y[e]}))}),0===c.length||c.every(function(e){return void 0!==h.iabVendors[e]?!0===h.iabVendors[e]:h.sourcePointVendors.some(function(t){return t._id===e})})].every(Boolean)},y=function(e){var t,r=e.tcdata;if(!r)return!1;var n=r.purpose;if(!(null!=n&&n.consents))return!1;var o=null===(t=r.cmpCustomData)||void 0===t?void 0:t.consentedPurposes;return(!o||!(o.length>0))&&!Object.values(null==n?void 0:n.consents).some(function(e){return!0===e})};function m(e){return(m="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)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var b=function(e){if(!e)return null;var t,r=e.purpose,n=e.cmpCustomData,o={12:"Analytics Storage"},i=null==n||null===(t=n.consentedPurposes)||void 0===t?void 0:t.some(function(e){return e.name===o[12]});return v(v({},null==r?void 0:r.consents),{},{12:i||!1})},w=function(e){return!!e&&(e||{}).publisherCC},O=function(e){var t=e.tcData,r=e.allowedCountryCodes,n=void 0===r?[]:r;if(!t||0===n.length)return!1;var o=w(t);return n.includes(o)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.callbackFailure,r=e.callbackLoggedIn,n=e.callbackLoggedOut;return window.cp&&"function"==typeof window.cp?new Promise(function(e){window.cp("authenticate",function(t,o){return o.isLoggedIn()&&o.hasValidSubscription()?(r&&"function"==typeof r&&r(),e(!0)):(n&&"function"==typeof n&&n(),e(!1))})}):(console.error("Consent Management Platform | Contentpass SDK is unavailable"),t&&"function"==typeof t&&t(),!1)}},6776:function(e,t){"use strict";let r=()=>null;t.Z={ws:{color:r,spacingUnit:r},color:r,spacingUnit:r}},15790:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},25044:function(e,t,r){"use strict";var n=r(26418),o=r(48418),i=r(15790);e.exports={formats:i,parse:o,stringify:n}},48418:function(e,t,r){"use strict";var n=r(63819),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,u),f=-1,p=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?p="utf-8":"utf8=%26%2310003%3B"===l[d]&&
65(p="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,h,y,m=l[d],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(h=t.decoder(m,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,v),a.decoder,p,"key"),y=n.maybeMap(s(m.slice(v+1),t),function(e){return t.decoder(e,a.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=y.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(r,h)?r[h]=n.combine(r[h],y):r[h]=y}return r},u=function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&c!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),u(l,t,r,n)}},f=function(e){if(!e)return a;
65if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?c(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],p=l(u,o[u],r,"string"==typeof e);i=n.merge(i,p,r)}return!0===r.allowSparse?i:n.compact(i)}},26418:function(e,t,r){"use strict";var n=r(37478),o=r(63819),i=r(15790),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,r,i,a,s,u,f,p,y,m,g,v,b,w,O,S){for(var j,x,_=t,P=S,E=0,A=!1;void 0!==(P=P.get(h))&&!A;){var k=P.get(t);if(E+=1,void 0!==k){if(k===E)throw RangeError("Cyclic object value");A=!0}void 0===P.get(h)&&(E=0)}if("function"==typeof p?_=p(r,_):_ instanceof Date?_=g(_):"comma"===i&&c(_)&&(_=o.maybeMap(_,function(e){return e instanceof Date?g(e):e})),null===_){if(s)return f&&!w?f(r,d.encoder,O,"key",v):r;_=""}if("string"==typeof(j=_)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(_))return f?[b(w?r:f(r,d.encoder,O,"key",v))+"="+b(f(_,d.encoder,O,"value",v))]:[b(r)+"="+b(String(_))];var C=[];if(void 0===_)return C;if("comma"===i&&c(_))w&&f&&(_=o.maybeMap(_,f)),x=[{value:_.length>0?_.join(",")||null:void 0}];else if(c(p))x=p;else{var N=Object.keys(_);x=y?N.sort(y):N}for(var T=a&&c(_)&&1===_.length?r+"[]":r,I=0;I<x.length;++I){var R=x[I],L="object"==typeof R&&void 0!==R.value?R.value:_[R];if(!u||null!==L){var D=c(_)?"function"==typeof i?i(T,R):T:T+(m?"."+R:"["+R+"]");S.set(t,E);var M=n();M.set(h,S),l(C,e(L,D,i,a,s,u,"comma"===i&&w&&c(_)?null:f,p,y,m,g,v,b,w,O,M))}}return C},m=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=d.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,o,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var u=[];
65if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var p="comma"===f&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=n(),h=0;h<r.length;++h){var g=r[h];a.skipNulls&&null===i[g]||l(u,y(i[g],g,f,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d))}var v=u.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},63819:function(e,t,r){"use strict";var n=r(15790),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],l=i[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:u}),r.push(l))}return s(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<s.length;++u){var l=s.charCodeAt(u);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)){c+=s.charAt(u);continue}if(l<128){c+=a[l];continue}if(l<2048){c+=a[192|l>>6]+a[128|63&l];continue}if(l<55296||l>=57344){c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l];continue}u+=1,c+=a[240|(l=65536+((1023&l)<<10|1023&s.charCodeAt(u)))>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},47480:function(e,t,r){"use strict";r.r(t),r.d(t,{HeadContext:function(){return a},HeadProvider:function(){return g},default:function(){return v}});var n,o,i=r(67294),a=(0,i.createContext)(void 0),s=r(85893),c=r(9008),u=r.n(c),l=r(84376);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}
65(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function h(e){var t=e.type,r=e.props,n=document.createElement(t);Object.entries(r).forEach(function(e){var r=f(e,2),o=r[0],i=r[1];if("children"!==o&&"dangerouslySetInnerHTML"!==o&&void 0!==i){var a=d[o]||o.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?n[a]=!!i:n.setAttribute(a,i)}});var o=r.children,i=r.dangerouslySetInnerHTML;return i?n.innerHTML=i.__html||"":o&&(n.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),n}var y=function(e,t,r){var n=document.getElementsByTagName("head")[0],o=n.querySelector("meta[name=next-head-count]"),i=Array.from(n.children),a=i.indexOf(o),s=i.slice(0,a).filter(function(e){return e.tagName.toLowerCase()===t}),c=r.map(h),u=new Set(s),l=c.reduce(function(t,r){var n=s.find(function(e){return function(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){var r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){var n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}(e,r)});return void 0===n?t.push(r):(u.delete(n),e.get(n)||e.set(n,!0)),t},[]),f=0;u.forEach(function(t){var r,n=e.get(t);n?(null==t||null===(r=t.parentElement)||void 0===r||r.removeChild(t),f+=1):void 0===n&&e.set(t,!1)}),l.forEach(function(e){return n.insertBefore(e,o)}),null==o||o.setAttribute("data-".concat(t,"-managed"),String(c.length)),null==o||o.setAttribute("data-".concat(t,"-unmanaged"),String(l.length+s.length-f-c.length))},m=(n=new WeakMap,(o=document.querySelector("head meta[name=next-head-count]"))&&(o.nextHeadTrackedElements=n),function(e){var t,r={base:[],link:[],meta:[],script:[],style:[]};e.forEach(function(e){var n;e.type in r?r[e.type].push(e):"title"===e.type&&(null!==(n=t)&&void 0!==n||(t=e))});var o="";if(t){var i=t.props.children;"string"==typeof i?o=i:Array.isArray(i)&&(o=i.join(""))}o!==document.title&&(document.title=o),Object.entries(r).forEach(function(e){var t=f(e,2);return y(n,t[0],t[1])})}),g=function(e){var t=e.children,r=e.HeadManager,n=(0,i.useContext)(l.HeadManagerContext),o=(void 0===r?null:r)||u();return m&&o===u()&&n&&n&&n.updateHead!==m&&(n.updateHead=m),(0,s.jsx)(a.Provider,{value:o,children:void 0===t?null:t})},v=function(e){var t=e.children,r=void 0===t?null:t;if(!r)return null;var n=(0,i.useContext)(a)||i.Fragment;return(0,s.jsx)(n,{children:r})}},98971:function(e,t,r){let n=r(83466);e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{hash:o,icons:i}=n;if(!(e in i))throw Error(`No icon with name "${e}" could be found in the icons manifest.`);if(!t)throw Error("A theme must be provided so we can establish any overrides");let a=i[e],s=a.overrides.includes(t)?`overrides/${t}`:"base",c=`${r||""}/${s}`.replace(/\/\//g,"/"),{pathname:u}=new URL(`${c}/sprite-maps/${a.groupName}-${o}.svg`,"http://temp");return u.concat(`#${e}`)}},88443:function(e,t,r){let n=r(98971),o=r(83466).icons;e.exports={buildIconUrl:n,icons:o}},23156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken","token"]},91062:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}
65function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},11679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},96911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(11679);var o=r(23439);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(91062);
65Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(23156),s=r(96043);t.enableAccessLogs=function(){}},23439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(11679),a=[r(10814),r(72213)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},72213:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(96043);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},10814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(96043);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,log_obj:{level:s[e.type]||"info"},forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t=this.formatLogObject(e);
65if((0,n.shouldLog)(e.type)||t.forcePush){var r="error"===t.log_obj.level,o="fatal"===e.type;if((r||o)&&window.elasticApm){var i,a=e.args[0],s=a instanceof Error?a:Error(t.message||"Logger error");window.elasticApm.captureError(s,{labels:{level:t.log_obj.level,logger:null===(i=t.logger)||void 0===i?void 0:i.name,forcePush:t.forcePush}})}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},96043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(23156);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);return r.searchParams.forEach(l),r}catch(e){return{}}}},67952:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={ADVERTISING_STATIC_DIR:!0,ICONS_STATIC_DIR:!0,NEWSLETTER_SIGNUP_PATH:!0,STYLES_STATIC_DIR:!0,ZEPHR_STATIC_DIR:!0};t.ZEPHR_STATIC_DIR=t.STYLES_STATIC_DIR=t.NEWSLETTER_SIGNUP_PATH=t.ICONS_STATIC_DIR=t.ADVERTISING_STATIC_DIR=void 0;var o=r(83145);Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}),t.ADVERTISING_STATIC_DIR="advertising",t.ICONS_STATIC_DIR="icons",t.NEWSLETTER_SIGNUP_PATH="/forms/newsletter-signup",t.STYLES_STATIC_DIR="styles",t.ZEPHR_STATIC_DIR="zephr"},83145:function(e,t,r){"use strict";var n=r(34155),o=r(20968);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}
65Object.defineProperty(t,"__esModule",{value:!0}),t.getServiceConfig=t.getServerRuntimeConfig=t.getPublicRuntimeConfigScript=t.getPublicRuntimeConfig=t.RUNTIME_CONFIG_GLOBAL=void 0;let s="__IM_RUNTIME_CONFIG__";t.RUNTIME_CONFIG_GLOBAL=s;let c=()=>!1,u=()=>n.env.DEPLOYED_ENV||"staging",l=(e,t)=>{if(!e)return t;try{return JSON.parse(e)}catch{return t}},f=e=>n.env.IMAGE_REMOTE_API_URL||({staging:"https://images.develop.immediate.co.uk/remote",preproduction:"https://images.release.immediate.co.uk/remote",production:"https://images.immediate.co.uk/remote"})[e],p=e=>n.env.DYNAMIC_RELATED_API_URL||({staging:"https://related-content-staging.headless-sandbox.imdserve.com",preproduction:"https://related-content-preproduction.headless-preproduction.imdserve.com",production:"https://related-content-production.headless.imdserve.com/"})[e],d=()=>{let e=n.env.STITCHER_LOCAL_MANIFEST_URL?n.env.STITCHER_LOCAL_MANIFEST_URL:n.env.STITCHER_PUBLIC_MANIFEST_URL,t=!("false"===n.env.STITCHER_AUTHENTICATE_MANIFEST||!n.env.STITCHER_AUTHENTICATE_MANIFEST),r=t?n.env.STITCHER_MANIFEST_URL:e;return{authManifest:t,manifestLambdaUrl:r,localiseFesManifest:e===n.env.STITCHER_PUBLIC_MANIFEST_URL}},h=()=>Object.entries(n.env).filter(e=>{let[t]=e;return t.startsWith("FEATURE_")}).reduce((e,t)=>{let[r,n]=t;return a(a({},e),{},{[r]:n})},{}),y=()=>{if(!c())return window[s]},m=()=>a({dynamicRelatedApiUrl:p(u()),serviceConfig:l(n.env.SERVICE_CONFIG,{}),datadogClientToken:n.env.DATADOG_CLIENT_TOKEN,manifestLambdaConfig:d(),assetPrefix:n.env.ASSET_PREFIX||void 0},h());t.getServiceConfig=()=>{let e=y();return e?.serviceConfig?e.serviceConfig:l(n.env.SERVICE_CONFIG,{})};let g=()=>y()||m();t.getPublicRuntimeConfig=g,t.getServerRuntimeConfig=()=>{let e=u(),t=l(n.env.SERVICE_CONFIG,{});return{apiBasePath:t.backendBasePath,host:n.env.HOST||"127.0.0.1",port:n.env.PORT||t.port,serviceKey:t.name,defaultSiteKey:n.env.DEFAULT_SITE_KEY||"slate",env:e,baseURLs:{content:n.env.CONTENT_API_BASE_URL,collections:n.env.COLLECTIONS_API_BASE_URL,ugr:n.env.UGR_API_BASE_URL,settings:n.env.SETTINGS_API_BASE_URL},images:{uploadApiUrl:n.env.IMAGE_UPLOAD_API_URL,uploadApiKey:n.env.IMAGE_UPLOAD_API_KEY,remoteApiUrl:f(e)},redirectsService:{url:n.env.REDIRECTS_SERVICE_API_URL,key:n.env.REDIRECTS_SERVICE_API_KEY},imagesDomain:n.env.IMAGES_DOMAIN||"https://images.immediate.co.uk",zuoraAiPaywallSiteKeys:n.env.ZUORA_AI_PAYWALL_SITE_KEYS,logMeta:l(n.env.LOG_META,{}),staticDir:n.env.STATIC_DIR,assetPrefix:n.env.ASSET_PREFIX||void 0}},t.getPublicRuntimeConfigScript=()=>{let e=JSON.stringify(g()).replace(/</g,"\\u003c");return`window.${s} = ${e};`}},93035:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(95164),o=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var o=this.bufferLength;o<n.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<n.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(n.DIGEST_LENGTH),o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=0;f<n.BLOCK_SIZE;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var p=this.temp[f-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[f]=(d+this.temp[f-7]|0)+(h+this.temp[f-16]|0)}var y=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&u)|0)+(l+(n.KEY[f]+this.temp[f]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;l=u,u=c,c=s,s=a+y|0,a=i,i=o,o=r,r=y+m|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},95164:function(e,t){"use strict";
65Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=9007199254740991},19883:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(50832).__exportStar(r(33562),t)},33562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(50832),o=r(95164),i=r(93035),a=r(39291),s=function(){function e(e){this.secret=e,this.hash=new i.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new i.RawSha256,this.secret){this.outer=new i.RawSha256;var e=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var r=new i.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(o.BLOCK_SIZE);t.set(e);for(var r=0;r<o.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}();t.Sha256=s},15329:function(e,t,r){"use strict";var n=r(48764).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var o=r(19193),i=void 0!==n&&n.from?function(e){return n.from(e,"utf8")}:o.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},39291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(15329);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var o=r(87066);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=r(49080);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var a=r(41917);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},87066:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},49080:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},41917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},50832:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return O},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return _},__classPrivateFieldSet:function(){return P},__createBinding:function(){return p},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return j}
65,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return y},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return g},__values:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,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(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
65function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},74355:function(e,t,r){"use strict";t.Z=void 0;var n,o=r(67294),i=(n=r(11163))&&n.__esModule?n:{default:n};t.Z=e=>{if(!e)throw Error("A URL must be given");let[t,r]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let e=()=>{r(window.location.href)};return i.default.events.on("routeChangeComplete",e),()=>{i.default.events.off("routeChangeComplete",e)}},[]),t}},84164:function(e,t,r){"use strict";var n=(0,r(67294).createContext)({});t.Z=n},53958:function(e,t,r){"use strict";r.r(t),r.d(t,{PostContentContext:function(){return i},PostMetaContext:function(){return a},PublicRuntimeContext:function(){return u},SettingsContext:function(){return c},SiteContext:function(){return s}});var n=r(67294);function o(e,t){return"undefined"==typeof Proxy?t??{}:new Proxy({},{get(t,r){throw Error(`Could not find the property "${String(r)}" in the ${e}. Please wrap your code with the <${e}.Provider />.`)}})}var i=(0,n.createContext)(o("PostContentContext")),a=(0,n.createContext)(o("PostMetaContext")),s=(0,n.createContext)(o("SiteContext")),c=(0,n.createContext)(o("SettingsContext")),u=(0,n.createContext)(o("PublicRuntimeContext"))},66329:function(e,t,r){"use strict";r.d(t,{v:function(){return i7},oM:function(){return i4}});var n,o,i,a,s,c,u,l,f,p,d,h,y,m,g,v,b,w,O={};r.r(O),r.d(O,{aboveFooter:function(){return oz},articleAboveContent:function(){return oV},articleActions:function(){return oq},articleBelowContent:function(){return oW},articleContentBottom:function(){return oQ},articleFooter:function(){return oX},articleHeader:function(){return oH},articleMeta:function(){return o1},articleSidebar:function(){return o2},belowHeader:function(){return i3},competitionActions:function(){return o3},competitionBelowContent:function(){return o8},competitionFooter:function(){return o6},competitionSidebar:function(){return o4},glossaryActions:function(){return o5},glossaryBelowContent:function(){return o7},glossaryFooter:function(){return o9},glossaryNavbar:function(){return ie},glossarySidebar:function(){return it},howToActions:function(){return ir},howToBelowContent:function(){return io},howToFooter:function(){return ii},howToSidebar:function(){return ia},hubOverviewBelowContent:function(){return is},hubSavedItems:function(){return ic},listActions:function(){return iu},listBelowContent:function(){return il},listContentBottom:function(){return ip},listFooter:function(){return id},listMeta:function(){return im},listSidebar:function(){return ig},liveBlogActions:function(){return iv},liveBlogBelowContent:function(){return ib},liveBlogFooter:function(){return iw},liveBlogSidebar:function(){return iO},pageBottom:function(){return iS},plantActions:function(){return ij},plantBelowContent:function(){return ix},plantFooter:function(){return i_},plantSidebar:function(){return iP},recipeAboveContent:function(){return ik},recipeActions:function(){return iA},recipeBelowContent:function(){return iC},recipeBelowIngredients:function(){return iN},recipeContentBottom:function(){return iR},recipeFooter:function(){return iL},recipeHeader:function(){return iD},recipeMasthead:function(){return iE},recipeMeta:function(){return iU},recipeSidebar:function(){return iZ},reviewAboveContent:function(){return iB},reviewActions:function(){return i$},reviewBelowContent:function(){return iG},reviewContentBottom:function(){return iH},reviewFooter:function(){return iV},reviewSidebar:function(){return iW},searchSidebar:function(){return iK},showActions:function(){return iY},showFooter:function(){return iQ},showSidebar:function(){return iX},streamingHomepageBelowContent:function(){return iJ},streamingHomepageFooter:function(){return i0},streamingHomepageSidebar:function(){return i1},venueActions:function(){return i2}});var S=r(8307),j=r(67294),x=r(88767),_=r(8243),P=r(53958),E=r(20938),A=j.createContext({}),k=A.Provider;A.Consumer;var C=function(){return(0,j.useContext)(A)}
65,N=r(11422),T=r(33201),I=r(86583),R=r(90512),L=r(22120),D=r(9811),M=r(85893);let F=()=>{},U=e=>{let{className:t=null,bestRating:r=5,currentRating:n=0,disabled:o=!1,iconColor:i="starRegular",iconDisabledColor:a="swatchSilver",iconHoverColor:s="starDark",iconSize:c=48,onSelectRating:u=F}=e,{0:l,1:f}=(0,j.useState)(0),{t:p}=(0,L.$G)(),d=e=>o?n>=e?"star-fill":"star-outline":l?l>=e?"star-fill":"star-outline":n>=e?"star-fill":"star-outline",h=e=>o?a:l>=e?s:i,y=e=>{o||u(e)},m=e=>`${e} ${p("molecules.rate.sr.star",1===e?"star":"stars",{count:e})} ${p("molecules.rate.sr.outOf")} ${r}`;return(0,M.jsxs)("fieldset",{className:(0,R.Z)("rate",o?"rate--disabled":"",t),disabled:o,children:[(0,M.jsx)("legend",{className:"sr-only",children:p("molecules.rate.sr.legend",`What is your star rating out of ${r}?`,{bestRating:r})}),[...Array(r+1)].map((e,t)=>t>0?(0,M.jsxs)("label",{className:"rate__stars",htmlFor:`stars-${t}`,onMouseEnter:()=>f(t),onMouseLeave:()=>f(0),"data-item-name":"Star",children:[(0,M.jsx)("span",{className:"sr-only",children:m(t)}),(0,M.jsx)("input",{className:"sr-only",id:`stars-${t}`,name:"stars",onClick:()=>y(t),type:"radio",value:t}),(0,M.jsx)(D.Z,{className:"rate__icon",color:h(t),name:d(t),size:c})]},`rate-label-star-${t}`):null)]})};U.displayName="Rate";var Z=r(21653),B=r(68566),$="commentsFeed",G="rating",z=function(e){return parseFloat((e.value/e.bestRating*100).toFixed(1))},q=function(e){return parseFloat((e.value*e.bestRating/100).toFixed(1))};function H(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return V(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(V(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,V(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,V(f,"constructor",u),V(u,"constructor",c),c.displayName="GeneratorFunction",V(u,o,"GeneratorFunction"),V(f),V(f,o,"Generator"),V(f,n,function(){return this}),V(f,"toString",function(){return"[object Generator]"}),(H=function(){return{w:i,m:p}})()}function V(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(V=function(e,t,r,n){function i(t,r){V(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function W(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var K=(n=H().m(function e(t){var r,n,o,i,a,s,c,u,l;return H().w(function(e){for(;;)if(0===e.n)return r=t.entityId,n=t.entityType,o=t.existingRating,i=t.fabricApi,a=t.settings,s=t.siteId,c=t.source,u=z({value:t.val,bestRating:a.ratings.bestRating}),l={entityId:parseInt(r,10),entityType:n,rating:u,siteId:s,source:c},e.a(2,null!=o&&o.id?i.reactions.ratings.update(null==o?void 0:o.id,l):i.reactions.ratings.create(l))},e)}),o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){W(i,r,o,a,s,"next",e)}function s(e){W(i,r,o,a,s,"throw",e)}a(void 0)})},function(e){return o.apply(this,arguments)});function Y(e){return(Y="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)}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var X=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?Q(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Y(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({event:"submit_reaction",feature:"Reactions",status:"Member"},e))},J=r(99086),ee=r(75123),et=r(88928),er=r(34603),en=function(e){var t=e.text;return j.createElement("div",{className:"d-flex flex-direction-row justify-content-center"},j.createElement("p",{className:"mt-reset mb-reset mr-lg"},t),j.createElement(J.Z,{horizontal:!0,itemSpacingX:"sm"},j.createElement(ee.Z,null,j.createElement(et.Z,{styled:!0,href:er.SA},"Sign in")),j.createElement(ee.Z,null,j.createElement(et.Z,{styled:!0,href:er.NH},"Register"))))};function eo(e){return(eo="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)}function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=eo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eo(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eo(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ei(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function es(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return ec(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(ec(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ec(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,ec(f,"constructor",u),ec(u,"constructor",c),c.displayName="GeneratorFunction",ec(u,o,"GeneratorFunction"),ec(f),ec(f,o,"Generator"),ec(f,n,function(){return this}),ec(f,"toString",function(){return"[object Generator]"}),(es=function(){return{w:i,m:p}})()}function ec(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(ec=function(e,t,r,n){function i(t,r){ec(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function eu(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function el(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){eu(i,n,o,a,s,"next",e)}function s(e){eu(i,n,o,a,s,"throw",e)}a(void 0)})}}function ef(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
65finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ep(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ep(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ep(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ed=function(){var e,t,r=(0,x.useMutation)(K).mutate,n=(0,x.useQueryClient)(),o=C(),i=o.client,a=o.clientId,s=o.entity,c=o.fabricApi,u=o.proxyFabricApi,l=o.settings,f=o.source,p=(0,Z.Z)(),d=(0,B.Z)(),h=d.user,y=d.isLoading,m=null==h?void 0:h.vanityId,g=ef((0,j.useState)(!1),2),v=g[0],b=g[1],w=ef((0,j.useState)({}),2),O=w[0],S=w[1],_=ef((0,j.useState)(""),2),P=_[0],E=_[1],A=ef((0,j.useState)({id:null,value:0}),2),k=A[0],R=A[1],L=(e=el(es().m(function e(){var t;return es().w(function(e){for(;;)switch(e.n){case 0:if(m){e.n=1;break}return e.a(2,null);case 1:return e.n=2,c.reactions.ratings.filter({siteId:i,entityType:s,entityId:a,source:f,"author.vanityId":m});case 2:return t=e.v,e.a(2,t)}},e)})),function(){return e.apply(this,arguments)}),D=(0,x.useQuery)("existing-rating",L,{enabled:!y&&!!h}),M=D.data,F=D.status;(0,j.useEffect)(function(){var e,t,r;"success"===F&&null!=M&&null!==(e=M["hydra:member"])&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.id&&(R({id:null==M||null===(t=M["hydra:member"])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id,value:q({value:null==M||null===(r=M["hydra:member"])||void 0===r||null===(r=r[0])||void 0===r?void 0:r.rating,bestRating:l.ratings.bestRating})}),n.invalidateQueries("ratings-stats"))},[F,M,n,l.ratings.bestRating]);var $=(t=el(es().m(function e(t){return es().w(function(e){for(;;)switch(e.n){case 0:if(b(!0),S(null),p){e.n=1;break}return S({rate:j.createElement(en,{text:l.ratings.add.auth})}),e.a(2,null);case 1:return R(ea(ea({},k),{},{value:t})),E(l.ratings.add.saving),e.n=2,r({entityId:a,entityType:s,existingRating:k,fabricApi:u,settings:l,siteId:i,source:f,val:t},{onSuccess:function(e){n.invalidateQueries("ratings-stats"),E(l.ratings.add.success);var t=q({value:e.rating,bestRating:l.ratings.bestRating});R({id:e.id,value:t}),X({user_id:m,reaction_type:"Rate",rating:"stars-".concat(t)}),window.dispatchEvent(new CustomEvent("segmentTrack",{detail:{event:"reaction_submitted",options:{postId:a,reactionType:"rating"}}}))},onError:function(e,t){S({rate:l.ratings.add.error}),R(t.existingRating)},onSettled:function(){b(!1),n.invalidateQueries("existing-rating")}});case 2:return e.a(2,null)}},e)})),function(e){return t.apply(this,arguments)});return j.createElement("div",{id:G},j.createElement(N.Z,{color:"backgroundExtraLight",className:"mb-xs"},j.createElement(T.Z,{errors:O,dataFormName:"Rate"},j.createElement(T.Z.Group,{className:"pt-lg pb-lg text-center"},j.createElement(I.Z,{size:3,styledSize:4,className:"mb-md"},l.ratings.add.heading),k.value?j.createElement("p",{className:"sr-only"},"Your current rating: ".concat(k.value," out of ").concat(l.ratings.bestRating)):null,j.createElement(U,{className:"mb-md",disabled:v,name:"rate",currentRating:k.value,onSelectRating:function(e){return $(e)}}),j.createElement(T.Z.Feedback,{name:"rate"},P)))))};function eh(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return ey(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
65if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(ey(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ey(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,ey(f,"constructor",u),ey(u,"constructor",c),c.displayName="GeneratorFunction",ey(u,o,"GeneratorFunction"),ey(f),ey(f,o,"Generator"),ey(f,n,function(){return this}),ey(f,"toString",function(){return"[object Generator]"}),(eh=function(){return{w:i,m:p}})()}function ey(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(ey=function(e,t,r,n){function i(t,r){ey(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function em(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var eg=(i=eh().m(function e(t){var r,n,o,i,a,s,c,u;return eh().w(function(e){for(;;)if(0===e.n)return r=t.entityId,n=t.entityType,o=t.fabricApi,i=t.siteId,a=t.source,s=t.text,c=t.type,u={body:s,entityId:parseInt(r,10),entityType:n,siteId:i,source:a},e.a(2,o.reactions["".concat(c,"s")].create(u))},e)}),a=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=i.apply(e,t);function a(e){em(o,r,n,a,s,"next",e)}function s(e){em(o,r,n,a,s,"throw",e)}a(void 0)})},function(e){return a.apply(this,arguments)});function ev(e){return(ev="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)}function eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var eO=function(e){var t=e.reactionType,r=e.feedbackName,n=e.setErrors,o=e.setShowModeration,i={};i[r]="Your ".concat(t," is pending review."),n(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=ev(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ev(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ev(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},i)),o(!0),setTimeout(function(){o(!1)},3e3)},eS=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,j.useState)(!1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,2)||function(e,t){if(e){if("string"==typeof e)return eb(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eb(e,2):void 0}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return{showModeration:t[0],setShowModeration:t[1]}};function ej(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
65finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ex(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ex(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e_=function(e){return e.replace(/(\r\n|\n|\r)\s*/g,"\n\n").trim().length},eP=function(e,t){var r=t.minLength,n=t.maxLength,o=e_(e),i=n-o;return 0===o?(i=r,{feedback:"Minimum ".concat(r," character").concat(1===i?"":"s"),canSubmit:!1}):o<r?(i=r-o,{feedback:"You need to type ".concat(r-o," more character").concat(1===i?"":"s"),canSubmit:!1}):o>n?(i=o-n,{feedback:"You need to type ".concat(i," fewer character").concat(1===i?"":"s"),canSubmit:!1}):{feedback:"You have ".concat(i," character").concat(1===i?"":"s"," remaining"),canSubmit:!0}},eE=function(e){var t=e.settings.comments.textarea,r=e.isVisible,n=ej((0,j.use
65State)(""),2),o=n[0],i=n[1],a=ej((0,j.useState)(!1),2),s=a[0],c=a[1],u=ej((0,j.useState)(""),2),l=u[0],f=u[1];(0,j.useEffect)(function(){c(eP(o,t).canSubmit),f(eP(o,t).feedback)},[o,t]);var p=ej((0,j.useState)(!1),2),d=p[0],h=p[1];return{canSubmit:s,handleCancel:function(){return 0===e_(o)||d?(i(""),c(!1),h(!1),r(!1)):(f("Discard your post?"),h(!0))},handleHideDiscard:function(){f(eP(o,t).feedback),h(!1)},setText:i,showDiscard:d,text:o,textFeedback:l}},eA=r(61256),ek=function(e){var t=e.canSubmit,r=e.commentType,n=e.handleCancel,o=e.hideDiscard,i=e.isSaving,a=e.showDiscard;return j.createElement(T.Z.Group,{className:"mt-sm"},a?j.createElement(J.Z,{horizontal:!0,itemSpacingX:"xs",itemSpacingY:"xs",className:"justify-content-center"},j.createElement(J.Z.Item,{className:"ml-xs"},j.createElement(eA.Z,{onClick:function(){return n()},secondary:!0,text:"Yes",type:"button"})),j.createElement(J.Z.Item,{className:"ml-xs mr-xs"},j.createElement(eA.Z,{key:"discard-no",onClick:function(){return o()},secondary:!0,text:"No",type:"button"}))):j.createElement(J.Z,{horizontal:!0,itemSpacingX:"xs",itemSpacingY:"xs",className:"justify-content-center"},j.createElement(J.Z.Item,{className:"ml-xs"},j.createElement(eA.Z,{disabled:!t||i,icon:i?"loading":null,iconSpinning:!!i,iconAnimationDuration:1e3,text:i?"Adding ".concat(r):"Add ".concat(r),type:"submit"})),j.createElement(J.Z.Item,{className:"ml-xs mr-xs"},j.createElement(eA.Z,{disabled:i,onClick:function(){return n()},secondary:!0,text:"Cancel",type:"button"}))))},eC=function(e,t){if("textarea"!==e.type)return null;var r=parseInt(getComputedStyle(e).getPropertyValue("line-height"),10);e.rows=t;var n=Math.floor(e.scrollHeight/r);return e.rows=n,n};function eN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eT=function(e){var t,r=e.commentRef,n=e.commentType,o=e.disabled,i=e.text,a=e.textFeedback,s=C().settings,c=(0,j.useRef)(null),u=function(e){if(Array.isArray(e))return e}(t=(0,j.useState)(s.comments.textarea.minRows))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eN(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eN(e,2):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=u[0],f=u[1];return(0,j.useEffect)(function(){f(eC(c.current,s.comments.textarea.minRows))},[s.comments.textarea.minRows,i]),j.createElement(j.Fragment,null,j.createElement(T.Z.Input,{as:"textarea",autoFocus:!0,className:"textarea__field",disabled:o,maxLength:s.comments.textarea.maxLength,minLength:s.comments.textarea.minLength,name:"".concat(r,"-textarea"),placeholder:"Add ".concat(n,"â¦"),ref:c,required:!0,rows:l,style:{resize:"none"}}),j.createElement(T.Z.Feedback,{className:"pt-xs text-center fw-400",name:"".concat(r,"-textarea")},a))};eT.defaultProps={disabled:!1,text:"",textFeedback:""};var eI=function(e){var t=e.cancelComment,r=e.className,n=e.commentId,o=e.commentType,i=e.hideDiscard,a=e.state,s=e.text;return j.createElement("div",{className:r},j.createElement(T.Z.Group,{feedbackId:"".concat(o,"-").concat(n,"-textarea-feedback"),inputId:"".concat(o,"-").concat(n,"-textarea")},j.createElement(T.Z.Label,{className:"sr-only"},"Add your ".concat(o)),j.createElement(eT,{commentRef:"".concat(o,"-").concat(n),commentType:o,disabled:a.isSaving||a.showDiscard,text:s,textFeedback:a.textFeedback})),j.createElement(ek,{canSubmit:a.canSubmit,commentType:o,handleCancel:t,hideDiscard:i,isSaving:a.isSaving,showDiscard:a.showDiscard}))};eI.defaultProps={className:"",state:{},text:""};var eR=r(77107);let eL=e=>{let{className:t=null,disabled:r=!1,disabledColor:n="swatchSilver",options:o=[],onClick:i=()=>{},label:a,value:s=null}=e,{colors:c}=(0,eR.Z)(),{0:u,1:l}
65=(0,j.useState)(null),f=e=>r?l(null):l(e),p=()=>l(null),{0:d,1:h}=(0,j.useState)(null),y=(e,t)=>{r||(h(t),i(e))},m=(e,t)=>r?n:u===t||d===t?e.hoverColor:e.color;return(0,j.useEffect)(()=>h(s),[s]),(0,M.jsxs)("div",{role:"group",className:(0,R.Z)("icon-radio-group",r?"icon-radio-group--disabled":"",t),"aria-labelledby":"group-legend","data-component":"IconRadioGroup",children:[(0,M.jsx)("div",{id:"group-legend",className:"sr-only",children:a}),o.map((e,t)=>{let r=m(e,t),n={color:c[r]||void 0},o=`${e.label.replace(/\s+/g,"").toLowerCase()}-${e.icon}`;return(0,M.jsxs)("label",{className:"icon-radio-group__label",htmlFor:o,style:n,onMouseEnter:()=>f(t),onMouseLeave:()=>p(),"data-item-name":e.label,"data-testid":e.label,children:[(0,M.jsx)("input",{checked:d===t,id:o,className:"icon-radio-group__input sr-only",name:"icon-radio-group__input",onChange:()=>y(e.label,t),type:"radio",value:e.label}),(0,M.jsxs)("span",{className:"icon-radio-group__badge",children:[(0,M.jsx)(D.Z,{className:"icon-radio-group__badge-icon",color:r,name:e.icon,size:25}),(0,M.jsx)(I.Z,{as:"span",color:r,size:4,styledSize:6,children:e.label})]})]},o)})]})};eL.displayName="IconRadioGroup";var eD=function(e){var t,r=e.handleIconClick,n=e.showAuth,o=e.isSaving,i=e.showDiscard,a=e.showModeration,s=e.reaction,c=e.options,u=e.heading;if(!(null!=c&&c.length))return null;var l=null===(t=c[0])||void 0===t?void 0:t.label;return j.createElement(j.Fragment,null,c.length>1?j.createElement(j.Fragment,null,j.createElement(I.Z,{size:3,styledSize:4,className:"mb-md ml-md mr-md"},u),j.createElement(eL,{className:"justify-content-center",disabled:n||o||i||a,label:u,onClick:function(e){return r({reactionType:e})},options:c,value:s.value})):j.createElement(eA.Z,{onClick:function(){return r({reactionType:l})}},"Add ".concat(l)))};function eM(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return eF(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(eF(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,eF(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,eF(f,"constructor",u),eF(u,"constructor",c),c.displayName="GeneratorFunction",eF(u,o,"GeneratorFunction"),eF(f),eF(f,o,"Generator"),eF(f,n,function(){return this}),eF(f,"toString",function(){return"[object Generator]"}),(eM=function(){return{w:i,m:p}})()}function eF(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(eF=function(e,t,r,n){function i(t,r){eF(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function eU(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function eZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
65finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eB(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eB(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}eD.defaultProps={heading:"",showAuth:!1,isSaving:!1,showDiscard:!1,showModeration:!1};var e$=function(){var e,t,r,n,o=(0,x.useQueryClient)(),i=(0,x.useMutation)(eg).mutate,a=C(),s=a.client,c=a.clientId,u=a.entity,l=a.proxyFabricApi,f=a.settings,p=a.source,d=(0,Z.Z)(),h=eZ((0,j.useState)({}),2),y=h[0],m=h[1],g=eZ((0,j.useState)(!1),2),v=g[0],b=g[1],w=eZ((0,j.useState)(!1),2),O=w[0],S=w[1],_=eZ((0,j.useState)({}),2),P=_[0],E=_[1],A=eZ((0,j.useState)(!1),2),k=A[0],I=A[1],R=eS(),L=R.showModeration,D=R.setShowModeration,M=(0,B.Z)().user,F=null==M?void 0:M.vanityId,U="addReaction",$=null===(r=f.addReaction)||void 0===r?void 0:r.options,G=null===(n=f.addReaction)||void 0===n?void 0:n.heading,z=function(){m({}),b(!1),E({})},q=eE({settings:f,isVisible:z}),H=q.handleCancel,V=q.handleHideDiscard,W=q.showDiscard,K=q.setText,Y=q.text,Q=q.textFeedback,J=q.canSubmit,ee=(e=eM().m(function e(t){return eM().w(function(e){for(;;)switch(e.n){case 0:return t.preventDefault(),S(!0),e.n=1,i({entityId:c,entityType:u,fabricApi:l,settings:f,siteId:s,source:p,text:Y,type:P.type.toLowerCase()},{onSuccess:function(e,t){var r;return(z(),K(""),X({user_id:F,reaction_type:(r=t.type).charAt(0).toUpperCase()+r.slice(1)}),window.dispatchEvent(new CustomEvent("segmentTrack",{detail:{event:"reaction_submitted",options:{postId:c,reactionType:t.type}}})),2===e.postModerationStatus)?eO({reactionType:t.type,setErrors:m,setShowModeration:D,feedbackName:U}):setTimeout(function(){o.invalidateQueries("reactions-count"),o.invalidateQueries("comments")},100)},onError:function(e,t){m({addReaction:"There was a problem saving your ".concat(t.type)})},onSettled:function(){S(!1)}});case 1:return e.a(2)}},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){eU(i,n,o,a,s,"next",e)}function s(e){eU(i,n,o,a,s,"throw",e)}a(void 0)})},function(e){return t.apply(this,arguments)}),et=1===$.length;return j.createElement(N.Z,{color:et?null:"backgroundExtraLight",className:et?"":"mb-sm"},j.createElement("div",{className:"pt-xxs pb-sm text-center full-width"},j.createElement(T.Z,{errors:y,onChange:function(e){return K(e.target.value)},onSubmit:function(e){return ee(e)},dataFormName:"Reaction"},j.createElement(T.Z.Group,null,j.createElement(eD,{handleIconClick:function(e){var t=e.reactionType;return(m({}),d)?(E({type:t.toLowerCase(),value:f.addReaction.options.findIndex(function(e){return e.label===t})}),b(!0)):(m({addReaction:j.createElement(en,{text:"You have to be signed in to leave a ".concat(t.toLowerCase())})}),I(!0))},showAuth:k,isSaving:O,showDiscard:W,showModeration:L,reaction:P,options:$,heading:G}),v&&j.createElement(eI,{cancelComment:H,className:"pt-sm",commentId:Date.now().toString(),commentType:P.type,hideDiscard:V,state:{canSubmit:J,isSaving:O,showDiscard:W,textFeedback:Q},text:Y}),j.createElement(T.Z.Feedback,{name:U})))))},eG=r(14257),ez=r(71738);let eq=e=>{let{className:t=null,dateTime:r="",headingSize:n=4,headingStyledSize:o=4,imageUrl:i="",isLoading:a=!1,postDate:s="",skeleton:c=!1,username:u="",sctrack:l=null}=e;return(0,M.jsx)("div",{className:(0,R.Z)("profile-details",{"profile-details--loading":a},t),children:c?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{className:"profile-details__avatar-container profile-details__avatar-container--skeleton mr-sm"}),(0,M.jsx)("div",{className:"profile-details__username profile-details__username--skeleton"})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{className:"profile-details__avatar-container mr-xs",children:[!i&&(0,M.jsx)(D.Z,{color:"backgroundRegular",name:"person",size:60}),i&&(0,M.jsx)(eG.Z,{alt:`${u} avatar`,className:"profile-details__avatar-image",fluid:!0,height:60,loading:"lazy",url:i,width:60,sctrack:(0,ez.Z)("ProfileDetails",l)})]}),(0,M.jsxs)("div",{className:"profile-details__text-container",children:[(0,M.jsx)(I.Z,{className:"profile-details__username mb-reset mr-sm",size:n,styledSize:o,children:u}),(0,M.jsx)("time",{dateTime:r,className:"profile-details__post-date body-copy-extra-small",children:s})]})]})})};eq.displayName="ProfileDetails";var eH=r(98001);let eV=e=>{let{ariaLabel:t=null,className:r=null,handleLike:n=null,isActive:o=!1,isDisabled:i=!1,value:a=0}=e;return(0,M.jsx)(eA.Z,{ariaLabel:t,className:r,disabled:i,highlight:!0,icon:o?"thumbs-up-fill":"thumbs-up-outline",noMinWidth:!0,onClick:n,text:JSON.stringify(a),"data-item-name":"Like"})};eV.displayName="Like";var eW=e=>e.charAt(0).toUpperCase()+e.slice(1);function eK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let eY=e=>{let{canReply:t=!0,children:r=null,className:n=null,id:o=null,isCurrentUser:i=!1,isLoading:a=!1,isPublished:s=!1,isReply:c=!1,isSkeleton:u=!1,handleDelete:l=null,handleReply:f=null,reportOnClick:p=null,reaction:d=null,likes:h=null}=e,y=d?.type&&!c,m=c?5:4,g=c?6:4,{colors:v}=(0,eR.Z)(),b=d?.type?.name||"comment",{t:w}=(0,L.$G)();return u?(0,M.jsxs)("div",{className:(0,R.Z)("reaction","reaction--skeleton",{"reaction--reply pl-lg pr-lg":c,"reaction--parent":!c,"reaction--loading":a},n),id:o??void 0,"data-testid":"reaction-skeleton",children:[(0,M.jsx)(eq,{className:"reaction__profile mt-md pb-xs",isLoading:a,skeleton:!0}),(0,M.jsx)("div",{className:"mb-xl",children:[void 0,void 0,void 0].map((e,t)=>(0,M.jsx)("div",{className:"reaction__skeleton-text"},t))})]}):(0,M.jsx)("article",{className:(0,R.Z)("reaction",{"reaction--reply pl-lg pr-lg":c,"reaction--parent":!c},n),"data-reaction-type":eW(b),id:o??void 0,children:s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{className:"reaction__header mt-md pb-sm",children:[(0,M.jsx)(eq,{dateTime:d?.dateTime,headingSize:m,headingStyledSize:g,imageUrl:d?.user?.avatar,postDate:d?.postDate,username:d?.user?.username}),y&&(0,M.jsx)("span",{className:"fw-600 body-copy-extra-small reaction__type",style:{backgroundColor:v[d?.type?.color||""]||void 0},"data-testid":"reaction-type",children:d?.type?.name})]}),d?.ratingValue?(0,M.jsx)(eH.Z,{className:"pb-xs",ratingValue:d.ratingV
65alue}):null,d?.text&&(0,M.jsx)("div",{className:"mt-reset mb-reset",children:d.text}),(0,M.jsxs)("div",{className:"reaction__actions pt-sm pb-md",children:[h?(0,M.jsx)(eV,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eK(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eK(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:"mr-xs"},h)):null,t&&!c?(0,M.jsx)(eA.Z,{noMinWidth:!0,onClick:f??void 0,secondary:!0,children:w("organisms.reaction.button.replyText")}):null,(0,M.jsx)("div",{className:"reaction__action-buttons",children:i?l&&(0,M.jsx)(eA.Z,{ariaLabel:w("organisms.reaction.ariaLabel.delete"),icon:"bin",noMinWidth:!0,onClick:l,secondary:!0,transparent:!0}):p&&(0,M.jsx)(eA.Z,{as:"a",noMinWidth:!0,noPadding:!0,link:!0,onClick:p,children:w("organisms.reaction.button.reportText","Report")})})]}),r]}):(0,M.jsx)(I.Z,{size:m,styledSize:7,className:"pb-lg pt-lg fw-400",children:w("organisms.reaction.removedText","This has been removed")})})};function eQ(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return eX(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(eX(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,eX(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,eX(f,"constructor",u),eX(u,"constructor",c),c.displayName="GeneratorFunction",eX(u,o,"GeneratorFunction"),eX(f),eX(f,o,"Generator"),eX(f,n,function(){return this}),eX(f,"toString",function(){return"[object Generator]"}),(eQ=function(){return{w:i,m:p}})()}function eX(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(eX=function(e,t,r,n){function i(t,r){eX(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function eJ(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}eY.displayName="Reaction";var e0=function(e,t){var r;return null!=e&&null!==(r=e["hydra:view"])&&void 0!==r&&!!r["hydra:next"]&&t.length+1},e1=function(){var e,t,r=C(),n=r.client,o=r.clientId,i=r.entity,a=r.fabricApi,s=r.settings,c=r.source,u="search-api"===c?[c,"content-api"]:c,l=(e=eQ().m(function e(t){var r,c;return eQ().w(function(e){for(;;)if(0===e.n)return c=void 0===(r=t.pageParam)?1:r,e.a(2,a.reactions.reactions.filter({siteId:n,entityType:i,entityId:o,source:u,"exists[body]":!0,itemsPerPage:s.comments.itemsPerPage,page:c}))},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){eJ(i,n,o,a,s,"next",e)}function s(e){eJ(i,n,o,a,s,"throw",e)}a(void 0)})},function(e){return t.apply(this,arguments)});return(0,x.useInfiniteQuery)("comments",l,{getNextPageParam:e0})},e2=function(e){var t,r=e.id,n=e.data,o=null==n||null===(t=n["hydra:member"])||void 0===t?void 0:t.map(function(e){return{"@type":"Comment",text:String(e.body),author:{"@type":"Person",name:String(e.author.displayName)}}}),i={"@context":"https://schema.org/","@id":String(r),commentCount:String(n["hydra:totalItems"]),comment:o};return j.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}})},e3=["second","minute","hour","day","week","month","year"],e8=["ç§","åé","å°æ¶","天","å¨","个æ","å¹´"],e6={},e4=function(e,t){e6[e]=t},e5=[60,60,24,7,365/7/12,12];function e7(e){return e instanceof Date?e:new Date(!isNaN(e)||/^\d+$/.test(e)?parseInt(e):e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"))}var e9=function(e,t,r){var n;return function(e,t){for(var r=e<0?1:0,n=e=Math.abs(e),o=0;e>=e5[o]&&o<e5.length;o++)e/=e5[o];return o*=2,(e=Math.floor(e))>(0===o?9:1)&&(o+=1),t(e,o,n)[r].replace("%s",e.toString())}((+((n=r&&r.relativeDate)?e7(n):new Date)-+e7(e))/1e3,e6[t]||e6.en_US)};e4("en_US",function(e,t){if(0===t)return["just now","right now"];var r=e3[Math.floor(t/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]}),e4("zh_CN",function(e,t){if(0===t)return["åå","çå»å"];var r=e8[~~(t/2)];return[e+" "+r+"å",e+" "+r+"å"]});var te=r(45697);function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tr=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";return e.length<=t?e:e.substr(0,e.lastIndexOf(r,t))},tn=function(e,t,r){var n=(t?tr(e,300):e).split("\n\n");return n.map(function(o,i){return j.createElement("p",{key:o.slice(0,20),className:"mt-reset"},o,t&&i===n.length-1?j.createElement(j.Fragment,null,"⦠",j.createElement(eA.Z,{className:"reaction__excerpt",link:!0,noMinWidth:!0,noPadding:!0,onClick:function(){return r(tn(e,!1))}},"More")):null)})},to=function(e){var t,r=e.body,n=function(e){if(Array.isArray(e))return e}
65(t=(0,j.useState)(""))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tt(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tt(e,2):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],i=n[1];return(0,j.useEffect)(function(){if(r.length>300){var e=tn(r,!0,i);return i(e)}var t=tn(r,!1,i);return i(t)},[r]),o};to.propTypes={body:te.string.isRequired};var ti=function(e){return e?String(e).toString():null},ta=function(e){var t=e.entityId,r=e.entityType,n=e.id,o=e.settings,i=e.siteId,a=o.comments.text.report;return encodeURI([a.email,"?subject=",a.subject,"&body=",a.body,"\n","ID: ".concat(n),"\n","Entity: ".concat(t),"\n","Type: ".concat(r),"\n","Site: ".concat(i)].join(""))},ts=function(e,t,r,n){e.preventDefault(),X({event:"submit_reaction",reaction_type:"Report",feature:"Reactions",user_id:n,status:"Member"});var o=ta({entityId:t.entityId,entityType:t.entityType,id:ti(t["@id"]),settings:r,siteId:t.siteId});window.location.assign("mailto:".concat(o))},tc=function(e){var t,r,n,o=e.canLike,i=e.data,a=e.isLoggedIn,s=e.settings,c=e.userId;return{endpoint:"Tip"===(t=i["@type"])?"tips":"https://schema.org/Question"===t?"questions":"https://schema.org/Comment"===t?"comments":"Reply"===t?"replies":null,id:ti(i.id),iri:ti(i["@id"]),key:ti(i.id),isCurrentUser:!1,isLoading:!1,isPublished:1===i.publishStatus,isReply:!1,isSkeleton:!1,handleDelete:null,handleReply:null,reportOnClick:a?function(e){return ts(e,i,s,c)}:null,reaction:{postDate:i.created?e9(i.created):null,dateTime:i.created,text:i.body?j.createElement(to,{body:(r=i.body)?String(r).toString():""}):j.createElement("div",null),type:"Tip"===(n=i["@type"])?{name:"tip",color:"formInfoLight"}:"https://schema.org/Question"===n?{name:"question",color:"formSuccessLight"}:null,user:{username:i.author.displayName,vanityId:ti(i.author.vanityId),avatar:i.author.avatar||null},ratingValue:null!=i&&i.rating?q({value:i.rating,bestRating:s.ratings.bestRating}):null},likesData:o?i.likes:null}},tu=function(e){return e.vanityId,!1};function tl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tf(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tf(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tf(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tf(f,"constructor",u),tf(u,"constructor",c),c.displayName="GeneratorFunction",tf(u,o,"GeneratorFunction"),tf(f),tf(f,o,"Generator"),tf(f,n,function(){return this}),tf(f,"toString",function(){return"[object Generator]"}),(tl=function(){return{w:i,m:p}})()}function tf(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tf=function(e,t,r,n){function i(t,r){tf(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tp(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var td=(s=tl().m(function e(t){var r,n,o,i,a,s,c;return tl().w(function(e){for(;;)if(0===e.n)return r=t.entityId,n=t.entityType,o=t.fabricApi,i=t.iri,a=t.siteId,s=t.source,c={entityId:parseInt(r,10),entityType:n,reaction:i,siteId:a,source:s},e.a(2,o.reactions.likes.create(c))},e)}),c=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=s.apply(e,t);function i(e){tp(o,r,n,i,a,"next",e)}function a(e){tp(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return c.apply(this,arguments)});function th(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return ty(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
vendor: 4,926 bytes, line 65
65(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(ty(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ty(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,ty(f,"constructor",u),ty(u,"constructor",c),c.displayName="GeneratorFunction",ty(u,o,"GeneratorFunction"),ty(f),ty(f,o,"Generator"),ty(f,n,function(){return this}),ty(f,"toString",function(){return"[object Generator]"}),(th=function(){return{w:i,m:p}})()}function ty(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(ty=function(e,t,r,n){function i(t,r){ty(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tm(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var tg=(u=th().m(function e(t){var r,n,o,i,a,s,c,u;return th().w(function(e){for(;;)if(0===e.n)return r=t.entityId,n=t.entityType,o=t.fabricApi,i=t.likeIri,a=t.siteId,s=t.source,c={entityId:parseInt(r,10),entityType:n,siteId:a,source:s},u=i.substring(i.lastIndexOf("/")+1),e.a(2,o.reactions.likes.delete(u,c))},e)}),l=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=u.apply(e,t);function i(e){tm(o,r,n,i,a,"next",e)}function a(e){tm(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return l.apply(this,arguments)});function tv(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tb(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tb(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tb(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tb(f,"constructor",u),tb(u,"constructor",c),c.displayName="GeneratorFunction",tb(u,o,"GeneratorFunction"),tb(f),tb(f,o,"Generator"),tb(f,n,function(){return this}),tb(f,"toString",function(){return"[object Generator]"}),(tv=function(){return{w:i,m:p}})()}function tb(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tb=function(e,t,r,n){function i(t,r){tb(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tw(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function tO(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){tw(i,n,o,a,s,"next",e)}function s(e){tw(i,n,o,a,s,"throw",e)}a(void 0)})}}function tS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
65finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tj(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tj(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tx=function(e){var t,r,n,o=e.className,i=e.data,a=e.iri,s=(0,x.useQueryClient)(),c=C(),u=c.client,l=c.clientId,f=c.entity,p=c.proxyFabricApi,d=c.source,h=(0,Z.Z)(),y=(0,B.Z)().user,m=null==y?void 0:y.vanityId,g=tS((0,j.useState)(!1),2),v=g[0],b=g[1],w=tS((0,j.useState)(!1),2),O=w[0],S=w[1],_=tS((0,j.useState)(),2),P=_[0],E=_[1],A=tS((0,j.useState)(0),2),k=A[0],N=A[1];(0,j.useEffect)(function(){if(i){N(i.length);var e=i.find(function(e){return e.author.vanityId===m});if(e){b(!0),E(e["@id"]);return}b(!1)}},[i,m]);var T=(0,x.useMutation)(td).mutate,I=(t=tO(tv().m(function e(){return tv().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,T({entityId:l,entityType:f,fabricApi:p,iri:a,siteId:u,source:d},{onSuccess:function(e){b(!0),N(k+1),E(e["@id"]),s.invalidateQueries("comments"),X({user_id:m,reaction_type:"Like"})},onSettled:function(){S(!1)}});case 1:return e.a(2)}},e)})),function(){return t.apply(this,arguments)}),R=(0,x.useMutation)(tg).mutate,L=(r=tO(tv().m(function e(){return tv().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,R({entityId:l,entityType:f,fabricApi:p,likeIri:P,siteId:u,source:d},{onSuccess:function(){N(k-1),b(!1),E(null),s.invalidateQueries("comments")},onSettled:function(){S(!1)}});case 1:return e.a(2)}},e)})),function(){return r.apply(this,arguments)}),D=(n=tO(tv().m(function e(){return tv().w(function(e){for(;;)switch(e.n){case 0:if(S(!0),!v){e.n=2;break}return e.n=1,L();case 1:case 3:return e.a(2);case 2:return e.n=3,I()}},e)})),function(){return n.apply(this,arguments)});return i&&h?{ariaLabel:"".concat(v?"Remove your like, current likes:":"Like this comment, current likes:"," ").concat(k),className:o,handleLike:function(){return D()},isActive:v,isDisabled:O,value:k}:null};function t_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tP(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tP(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tP(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tP(f,"constructor",u),tP(u,"constructor",c),c.displayName="GeneratorFunction",tP(u,o,"GeneratorFunction"),tP(f),tP(f,o,"Generator"),tP(f,n,function(){return this}),tP(f,"toString",function(){return"[object Generator]"}),(t_=function(){return{w:i,m:p}})()}function tP(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tP=function(e,t,r,n){function i(t,r){tP(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tE(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}tx.defaultProps={className:null,data:null},tx.propTypes={className:te.string,data:(0,te.arrayOf)((0,te.shape)()),iri:te.string.isRequired};var tA=(f=t_().m(function e(t){var r,n,o,i,a;return t_().w(function(e){for(;;)if(0===e.n)return r=t.fabricApi,n=t.iri,o=t.reactionType,i={publishStatus:0},a=n.substring(n.lastIndexOf("/")+1),e.a(2,r.reactions[o].update(a,i))},e)}),p=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=f.apply(e,t);function i(e){tE(o,r,n,i,a,"next",e)}function a(e){tE(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return p.apply(this,arguments)});function tk(e){return(tk="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)}function tC(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tN(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
65(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tN(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tN(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tN(f,"constructor",u),tN(u,"constructor",c),c.displayName="GeneratorFunction",tN(u,o,"GeneratorFunction"),tN(f),tN(f,o,"Generator"),tN(f,n,function(){return this}),tN(f,"toString",function(){return"[object Generator]"}),(tC=function(){return{w:i,m:p}})()}function tN(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tN=function(e,t,r,n){function i(t,r){tN(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tT(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var tI=function(e){var t,r,n,o,i,a,s=e.iri,c=e.reactionType,u=e.setDeleteReaction,l=(0,x.useQueryClient)(),f=C(),p=f.proxyFabricApi,d=f.settings,h=(0,x.useMutation)(tA),y=h.mutate,m=h.isLoading,g=h.isError,v="deleteReaction",b=(r=tC().m(function e(t){return tC().w(function(e){for(;;)switch(e.n){case 0:return t.preventDefault(),e.n=1,y({fabricApi:p,iri:s,reactionType:c},{onSuccess:function(){l.invalidateQueries("comments"),u(!1)}});case 1:return e.a(2)}},e)}),n=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){tT(i,n,o,a,s,"next",e)}function s(e){tT(i,n,o,a,s,"throw",e)}a(void 0)})},function(e){return n.apply(this,arguments)});return j.createElement("div",{className:"reaction--delete text-center mb-sm"},j.createElement(T.Z,{errors:g?(o={},i=v,a=d.deleteReaction.errorMsg,(t=function(e,t){if("object"!=tk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tk(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),(i="symbol"==tk(t)?t:t+"")in o)?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o):{},onSubmit:function(e){return b(e)}},j.createElement("p",{className:"body-copy-extra-small"},d.deleteReaction.heading),j.createElement("div",{className:"mt-xs"},j.createElement(eA.Z,{className:"mr-xs",disabled:m,icon:m?"loading":null,iconSpinning:!!m,iconAnimationDuration:1e3,secondary:!0,type:"submit"},m?d.deleteReaction.loadingMsg:d.deleteReaction.okBtn),j.createElement(eA.Z,{className:"ml-xs",secondary:!0,onClick:function(){return u(!1)}},d.deleteReaction.cancelBtn)),j.createElement(T.Z.Feedback,{name:v,className:"pt-xs text-center"})))};function tR(){return(tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function tL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tD=function(e){var t,r,n=e.reply,o=function(e){if(Array.isArray(e))return e}(t=(0,j.useState)(!1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}
65finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tL(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tL(e,2):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return j.createElement(eY,tR({},n,{handleDelete:function(){a(!0)},isCurrentUser:tu({vanityId:null==n||null===(r=n.user)||void 0===r?void 0:r.vanityId}),likes:tx({data:n.likesData,iri:n.iri})}),i&&j.createElement(tI,{iri:n.iri,reactionType:"replies",setDeleteReaction:a}))};function tM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tF=function(e){var t,r=e.replies,n=r.length,o=n-1,i=function(e){if(Array.isArray(e))return e}(t=(0,j.useState)(1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tM(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tM(e,2):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],s=i[1],c=n>a;return j.createElement(j.Fragment,null,r.slice(0,a).map(function(e){return j.createElement(tD,{key:e.iri,reply:e})}),n>1&&j.createElement("div",{className:"d-flex justify-content-center"},j.createElement(eA.Z,{className:"mb-md",secondary:!0,onClick:function(){return c?s(n):s(1)}},c?"Show replies (".concat(o,")"):"Hide replies")))};function tU(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tZ(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tZ(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tZ(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tZ(f,"constructor",u),tZ(u,"constructor",c),c.displayName="GeneratorFunction",tZ(u,o,"GeneratorFunction"),tZ(f),tZ(f,o,"Generator"),tZ(f,n,function(){return this}),tZ(f,"toString",function(){return"[object Generator]"}),(tU=function(){return{w:i,m:p}})()}function tZ(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tZ=function(e,t,r,n){function i(t,r){tZ(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tB(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var t$=(d=tU().m(function e(t){var r,n,o,i,a,s,c;return tU().w(function(e){for(;;)if(0===e.n)return r=t.entityId,n=t.entityType,o=t.fabricApi,i=t.iri,a=t.siteId,s=t.source,c={body:t.text,entityId:parseInt(r,10),entityType:n,parent:i,siteId:a,source:s},e.a(2,o.reactions.replies.create(c))},e)}),h=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=d.apply(e,t);function i(e){tB(o,r,n,i,a,"next",e)}function a(e){tB(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return h.apply(this,arguments)});function tG(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return tz(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
65(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(tz(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tz(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,tz(f,"constructor",u),tz(u,"constructor",c),c.displayName="GeneratorFunction",tz(u,o,"GeneratorFunction"),tz(f),tz(f,o,"Generator"),tz(f,n,function(){return this}),tz(f,"toString",function(){return"[object Generator]"}),(tG=function(){return{w:i,m:p}})()}function tz(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tz=function(e,t,r,n){function i(t,r){tz(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function tq(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function tH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tV(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tV(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tV(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tW=function(e){var t,r,n=e.id,o=e.iri,i=e.setAddReply,a=(0,x.useQueryClient)(),s=(0,Z.Z)(),c=eS().setShowModeration,u=(0,x.useMutation)(t$).mutate,l=tH((0,j.useState)(!1),2),f=l[0],p=l[1],d=tH((0,j.useState)({}),2),h=d[0],y=d[1],m=tH((0,j.useState)(!1),2),g=m[0],v=m[1],b="addReply",w=C(),O=w.client,S=w.clientId,_=w.entity,P=w.proxyFabricApi,E=w.settings,A=w.source,k=eE({settings:E,isVisible:i}),N=k.canSubmit,I=k.handleCancel,R=k.handleHideDiscard,L=k.setText,D=k.showDiscard,M=k.text,F=k.textFeedback;(0,j.useEffect)(function(){return s?p(!0):y({addReply:j.createElement(en,{text:"You have to be signed in to leave a reply"})})},[s]);var U=(t=tG().m(function e(t){return tG().w(function(e){for(;;)switch(e.n){case 0:return t.preventDefault(),v(!0),e.n=1,u({entityId:S,entityType:_,fabricApi:P,iri:o,siteId:O,source:A,text:M},{onSuccess:function(e){return(p(!1),2===e.postModerationStatus)?eO({reactionType:"reply",setErrors:y,setShowModeration:c,feedbackName:b}):(i(!1),setTimeout(function(){a.invalidateQueries("comments"),a.invalidateQueries("reactions-count")},100))},onError:function(){y({addReply:"There was a problem saving your reply"})},onSettled:function(){v(!1)}});case 1:return e.a(2)}},e)}),r=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){tq(i,n,o,a,s,"next",e)}function s(e){tq(i,n,o,a,s,"throw",e)}a(void 0)})},function(e){return r.apply(this,arguments)});return j.createElement("section",{className:"reaction reaction--reply pt-md pb-lg pl-lg pr-lg"},j.createElement(T.Z,{errors:h,onChange:function(e){return L(e.target.value)},onSubmit:function(e){return U(e)},dataFormName:"Reply"},f&&j.createElement(eI,{cancelComment:I,commentId:n,commentType:"reply",hideDiscard:R,state:{canSubmit:N,isSaving:g,showDiscard:D,textFeedback:F},text:M}),j.createElement(T.Z.Feedback,{name:b,className:"pt-xs text-center"})))};function tK(){return(tK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
65).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function tY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tQ(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tQ(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tX=function(e){var t,r=e.comment,n=C().canReply,o=Array.isArray(null==r?void 0:r.replies),i=tY((0,j.useState)(!1),2),a=i[0],s=i[1],c=tY((0,j.useState)(!1),2),u=c[0],l=c[1],f=function(){l(!0)},p=n&&a;return j.createElement(eY,tK({},r,{canReply:n,handleReply:function(){return s(!0)},isCurrentUser:tu({vanityId:null==r||null===(t=r.user)||void 0===t?void 0:t.vanityId}),likes:tx({data:r.likesData,iri:r.iri}),handleDelete:function(){return f()}}),u?j.createElement(tI,{iri:r.iri,reactionType:r.endpoint,setDeleteReaction:l}):null,p?j.createElement(tW,{id:r.id,iri:r.iri,setAddReply:s}):null,o?j.createElement(tF,{replies:r.replies}):null)};function tJ(e){return(tJ="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)}function t0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t0(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=tJ(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tJ(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tJ(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var t2=function(e){var t=e.canLike,r=e.data,n=e.settings,o=(0,Z.Z)(),i=(0,B.Z)().user,a=r["hydra:member"].map(function(e){var r,a=(null===(r=e.replies)||void 0===r?void 0:r.map(function(e){return t1(t1({},tc({canLike:t,data:e,isLoggedIn:o,settings:n,userId:null==i?void 0:i.vanityId})),{},{isReply:!0})}))||[];return t1(t1({},tc({canLike:t,data:e,isLoggedIn:o,settings:n,userId:null==i?void 0:i.vanityId})),{},{replies:a,ratingValue:e.rating?e.rating*(n.ratings.bestRating/100):null})});return j.createElement(j.Fragment,null,a.map(function(e){return j.createElement(tX,{key:e.id,comment:e})}))},t3=function(){var e,t=C(),r=t.canLike,n=t.schemaId,o=t.settings,i=e1(),a=i.data,s=i.isFetching,c=i.isFetchingNextPage,u=i.fetchNextPage,l=i.hasNextPage,f=i.status;return s&&(!a||(null==a?void 0:a.length)===0)?j.createElement(j.Fragment,null,j.createElement(eY,{isSkeleton:!0,isLoading:!0}),j.createElement(eY,{isSkeleton:!0,isLoading:!0}),j.createElement(eY,{isSkeleton:!0,isLoading:!0})):"error"===f?j.createElement(j.Fragment,null,j.createElement(eY,{isSkeleton:!0}),j.createElement(eY,{isSkeleton:!0}),j.createElement(eY,{isSkeleton:!0})):s||(null===(e=a.pages[a.pages.length-1])||void 0===e?void 0:e["hydra:totalItems"])!==0?j.createElement(j.Fragment,null,a.pages.map(function(e,t){return j.createElement(j.Fragment,{key:t},n&&0===t&&j.createElement(e2,{data:e,id:n}),j.createElement(t2,{canLike:r,data:e,settings:o}))}),l&&j.createElement("div",{className:"reaction__interaction pt-lg pb-lg text-center"},j.createElement(eA.Z,{disabled:!!c,icon:c?"loading":null,iconSpinning:!!c,iconAnimationDuration:1e3,onClick:function(){return u()},secondary:!0,text:c?"Show more":"Show more (".concat(a.pages[a.pages.length-1]["hydra:totalItems"]-a.pages.length*o.comments.itemsPerPage,")")}))):j.createElement("div",{className:"text-center pa-lg"},j.createElement(I.Z,{size:3},o.comments.text.emptyFeedTitle),j.createElement("p",{className:"body-copy-small"},o.comments.text.emptyFeedBody))};function t8(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return t6(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
65(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(t6(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,t6(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,t6(f,"constructor",u),t6(u,"constructor",c),c.displayName="GeneratorFunction",t6(u,o,"GeneratorFunction"),t6(f),t6(f,o,"Generator"),t6(f,n,function(){return this}),t6(f,"toString",function(){return"[object Generator]"}),(t8=function(){return{w:i,m:p}})()}function t6(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(t6=function(e,t,r,n){function i(t,r){t6(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function t4(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var t5=function(){var e,t,r=C(),n=r.client,o=r.clientId,i=r.entity,a=r.fabricApi,s=r.source,c="search-api"===s?[s,"content-api"]:s,u=(e=t8().m(function e(){return t8().w(function(e){for(;;)if(0===e.n)return e.a(2,a.reactions.reactions.filter({siteId:n,entityType:i,entityId:o,source:c,"exists[body]":!0,itemsPerPage:0}))},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){t4(i,n,o,a,s,"next",e)}function s(e){t4(i,n,o,a,s,"throw",e)}a(void 0)})},function(){return t.apply(this,arguments)}),l=(0,x.useQuery)("reactions-count",u),f=l.status,p=l.data,d=l.error;return{status:f,data:{reactions:null==p?void 0:p["hydra:totalItems"]},error:d}},t7=function(e){return"#".concat(e)},t9=function(){var e=C().settings,t=t5(),r=t.status,n=t.data,o=t7($);if("error"===r)return null;if("loading"===r)return j.createElement(D.Z,{className:"d-inline-flex",name:"loading",srOnly:"loading...",spinning:!0,color:"backgroundRegular"});var i=parseInt((null==n?void 0:n.reactions)||0,10),a="".concat(i," ").concat(e.comments.text.pluralLabel),s="".concat(i," ").concat(e.comments.text.singularLabel);return j.createElement(et.Z,{styled:!0,className:"d-inline-flex",href:o},0===i?e.comments.text.firstComment:1===i?s:a)},re=function(){var e=C().settings,t=t5(),r=t.status,n=t.data,o=parseInt((null==n?void 0:n.reactions)||0,10);return j.createElement(I.Z,{size:2,className:"pt-md pb-md"},e.feed.title,"success"===r&&o?" (".concat(o,")"):null)},rt={addReaction:{heading:"Choose the type of message you'd like to post",options:[{label:"Comment",icon:"pullquote",color:"clickableRegular",hoverColor:"clickableDark"},{label:"Question",icon:"dialog",color:"interactiveRegular",hoverColor:"interactiveDark"},{label:"Tip",icon:"note",color:"highlightRegular",hoverColor:"highlightDark"}]},deleteReaction:{heading:"Delete post?",okBtn:"Delete",cancelBtn:"Cancel",errorMsg:"There was a problem deleting your post",loadingMsg:"Deleting"},comments:{itemsPerPage:5,text:{singularLabel:"comment",pluralLabel:"comments",firstComment:"Post a comment",emptyFeedTitle:"Be the first to comment",emptyFeedBody:"Weâd love to hear how you got on with this recipe. Did you like it? Do you have suggestions for possible swaps and additions? Or simply ask us your questions...",report:{email:"[email protected]",subject:"Report a comment",body:"Please tell us why you are reporting this comment:\n\n\n\n\n\n---\nThank you for taking the time to report a comment, we appreciate your feedback. Reporting enables us to take the appropriate action as quickly as possible.\n\nThe BBC Good Food Team\n\nPlease do not delete the below information, as it will help us to quickly locate the content in question and deal with your concerns."}},textarea:{maxLength:500,minLength:1,minRows:4}},ratings:{bestRating:5,label:"rating",hasRatingValue:!1,add:{heading:"Rate this recipe",auth:"You have to be signed in to leave a rating",saving:"Saving your ratingâ¦",success:"Thanks for rating",error:"There was a problem saving your rating"},feed:{heading:"Overall rating"}},feed:{title:"Comments, questions and tips"}};function rr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return rn(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
65(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(rn(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,rn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,rn(f,"constructor",u),rn(u,"constructor",c),c.displayName="GeneratorFunction",rn(u,o,"GeneratorFunction"),rn(f),rn(f,o,"Generator"),rn(f,n,function(){return this}),rn(f,"toString",function(){return"[object Generator]"}),(rr=function(){return{w:i,m:p}})()}function rn(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(rn=function(e,t,r,n){function i(t,r){rn(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function ro(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var ri=function(){var e,t,r=C(),n=r.client,o=r.clientId,i=r.entity,a=r.fabricApi,s=r.settings,c=r.source,u=r.userRatings,l=(null==u?void 0:u.total)>=0&&(null==u?void 0:u.avg)>=0,f={"hydra:member":[{totalRatings:null==u?void 0:u.total,avgRating:"ugr-api"===c?null==u?void 0:u.avg:z({value:null==u?void 0:u.avg,bestRating:s.ratings.bestRating})}]},p="search-api"===c?[c,"content-api"]:c,d=(e=rr().m(function e(){return rr().w(function(e){for(;;)if(0===e.n)return e.a(2,a.reactions.aggregateRatings.filter({siteId:n,entityType:i,entityId:o,source:p}))},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ro(i,n,o,a,s,"next",e)}function s(e){ro(i,n,o,a,s,"throw",e)}a(void 0)})},function(){return t.apply(this,arguments)}),h=(0,x.useQuery)("ratings-stats",d,{initialData:l?f:void 0,initialStale:!l,staleTime:l?864e5:0,select:function(e){if(!e||!(null!=e&&null!==(t=e["hydra:member"])&&void 0!==t&&t.length))return{ratingCount:0,ratingValue:0};var t,r=e["hydra:member"],n=r.reduce(function(e,t){return{count:e.count+(parseInt(t.totalRatings,10)||0),averages:e.averages+t.avgRating}},{count:0,averages:0});return{ratingCount:n.count,ratingValue:q({value:n.averages/r.length,bestRating:s.ratings.bestRating})}}});return{status:h.status,data:h.data,error:h.error}},ra=function(){var e=C(),t=e.settings,r=e.userRatings,n=ri(),o=n.status,i=n.data,a=(null==r?void 0:r.isHalfStar)||!1;if("error"===o)return j.createElement("div",{className:"mt-lg"},j.createElement(I.Z,{size:3,styledSize:4,className:"mb-xs"},t.ratings.feed.heading),j.createElement(eH.Z,{iconSize:28,ratingValue:0,skeleton:!0}));if("loading"===o)return j.createElement("div",{className:"mt-lg"},j.createElement(I.Z,{size:3,styledSize:4,className:"mb-xs"},t.ratings.feed.heading),j.createElement(eH.Z,{iconSize:28,ratingValue:0,skeleton:!0,isLoading:!0}));var s=i.ratingCount,c=i.ratingValue;return j.createElement("div",{className:"mt-lg"},j.createElement(I.Z,{size:3,styledSize:4,className:"mb-xs"},t.ratings.feed.heading),j.createElement(eH.Z,{className:"rating--feed pb-lg",iconSize:28,hasRatingValue:t.ratings.hasRatingValue,hasRatingCount:!0,ratingTypeLabel:t.ratings.label,ratingValue:c,ratingCount:s,isHalfStar:a,bestRating:t.ratings.bestRating}))},rs=function(e){var t=e.bestRating,r=e.ratingCount,n=e.ratingValue,o=e.schemaId;return j.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/","@id":o,aggregateRating:{"@type":"AggregateRating",ratingValue:n,reviewCount:r,bestRating:t,worstRating:1}})}})},rc=function(e){var t=e.ratingValue,r=e.isHalfStar,n=Number.isNaN(Number(t))?0:Number(t);return void 0!==r&&r?Math.round(2*n)/2:((n%1).toFixed(2)>=.45?Math.ceil:Math.round)(n)},ru=function(e){var t=e.hasSpacing,r=C(),n=r.schemaId,o=r.settings,i=r.userRatings,a=ri(),s=a.status,c=a.data,u=t7(G),l=t?"mr-lg":"",f=(null==i?void 0:i.isHalfStar)||!1;if("error"===s)return j.createElement(eH.Z,{className:l,ratingValue:0,isInline:!0,skeleton:!0});if("loading"===s)return j.createElement(eH.Z,{className:l,ratingValue:0,isInline:!0,skeleton:!0,isLoading:!0});
65var p=c.ratingCount,d=c.ratingValue,h=n&&d>=1,y=rc({ratingValue:d,isHalfStar:f});return j.createElement(j.Fragment,null,j.createElement(eH.Z,{hasRatingValue:o.ratings.hasRatingValue,hasRatingCount:!0,ratingTypeLabel:o.ratings.label,ratingValue:d,ratingCount:p,isHalfStar:f,bestRating:o.ratings.bestRating,isInline:!0,canRate:!0,ratingLink:u,className:l}),h&&j.createElement(rs,{bestRating:o.ratings.bestRating,ratingCount:p,ratingValue:y,schemaId:n}))};function rl(e){return(rl="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)}function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=rl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rl(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rl(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}ru.defaultProps={hasSpacing:!1};var rh=function(e,t){var r,n,o,i=e||{},a=i.addReaction,s=i.comments,c=t||{},u=c.canAddComments,l=c.canAddQuestions,f=c.canAddTips,p=e||{},d=p.commentsTextReportEmail,h=p.commentsTextReportSubject,y=p.commentsTextReportBody,m=(null==s||null===(r=s.text)||void 0===r?void 0:r.report)||{},g=m.email,v=m.subject,b=m.body,w=(null==a||null===(n=a.options)||void 0===n?void 0:n.reduce(function(e,t){var r=t.label;return"Comment"===r&&u||"Question"===r&&l||"Tip"===r&&f?[].concat(function(e){if(Array.isArray(e))return rd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rd(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rd(e,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t]):e},[]))||[];return rp(rp({},e),{},{comments:rp(rp({},null==e?void 0:e.comments),{},{text:rp(rp({},null==e||null===(o=e.comments)||void 0===o?void 0:o.text),{},{report:{email:d||g,subject:h||v,body:y||b}})}),addReaction:rp(rp({},a),{},{options:w})})};function ry(e){return(ry="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)}function rm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=ry(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ry(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ry(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEac
65h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rv(e){return(rv="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)}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=rv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rv(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rv(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var rO=function(e){var t,r,n,o=e.postData,i=e.settings,a=e.userRatings,s=e.variant,c=(o||{}).postType,u=(0,_.rV)().reactions,l=((null==u||null===(n=u.postTypes)||void 0===n?void 0:n.find(function(e){return e.type===c}))||{}).options,f=u||{},p=f.commentsTextReportEmail,d=f.commentsTextReportSubject,h=f.commentsTextReportBody,y=l||{},m=y.canAddComments,g=y.canAddQuestions,v=y.canAddRatings,b=y.canAddTips,w=y.canLike,O=y.canReply,S=y.hasRatings,A=y.hasReactions,C=(t=rw(rw({},i),{},{commentsTextReportEmail:p,commentsTextReportSubject:d,commentsTextReportBody:h}),r={canAddComments:m,canAddQuestions:g,canAddTips:b},rh(rg(rg({},rt),t),r)),N=(0,j.useContext)(P.PostMetaContext),T=N.client,I=N.clientId,R=N.entity,L=N.source,D={canLike:w,canReply:O,client:T,clientId:I,entity:R,fabricApi:(0,_.jr)(),proxyFabricApi:(0,_.jr)({useProxyApi:!0}),schemaId:null==o?void 0:o.schemaId,settings:C,source:L,userRatings:a},M=new x.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});return j.createElement(k,{value:D},j.createElement(x.QueryClientProvider,{client:M},"skiplink"===s&&j.createElement("div",{"data-feature":"Reactions","data-placement":"Reactions Quick Links",className:A?"rating__skiplinks":""},S&&j.createElement(ru,null),A&&j.createElement(t9,null)),"feed"===s&&j.createElement("div",{className:A||v||m||S?"pb-lg":"",id:$,"data-feature":"Reactions"},A&&j.createElement(re,null),v&&j.createElement(ed,null),m&&j.createElement(e$,null),S&&j.createElement(ra,null),A&&j.createElement(t3,null)),j.createElement(E.ReactQueryDevtools,{initialIsOpen:!1})))};rO.defaultProps={settings:rt,userRatings:null};var rS=r(25370),rj=r(14306),rx=r(89229),r_=r(41009);r(64687);var rP=r(63144),rE=r.n(rP)();let rA=e=>{if(!e)return[];if(Array.isArray(e)){if(e.every(e=>"string"==typeof e))return e.map((e,t)=>({position:Number(t)+1,content:{clientId:`${e}`}}));if(e.every(Number.isInteger))return e.map((e,t)=>({position:t+1,content:{clientId:`${e}`}}));if(e.every(e=>"object"==typeof e&&"position"in e&&"content"in e&&"clientId"in e.content))return e}return"object"==typeof e?Object.entries(e).map(e=>{let[t,r]=e;return{position:t,content:{clientId:`${r}`}}}):[]},rk=e=>{if(!e)return[];if(Array.isArray(e)){if(e.every(Number.isInteger))return e.map(e=>({clientId:`${e}`}));if(e.every(e=>"object"==typeof e&&"position"in e&&"content"in e&&"clientId"in e.content))return e.map(e=>({clientId:`${e.content.clientId}`}))}return"object"==typeof e?Object.entries(e).map(e=>{let[,t]=e;return{clientId:`${t}`}}):[]},rC=e=>{let{context:{postMeta:t,postContent:r,settings:n},widgetSettings:{limit:o,categories:i,tags:a,tagsOperators:s,type:c,contentType:u,showCardLabels:l,showDescriptions:f,pinnedContent:p,isRelated:d}}=e;return{siteKey:n?.slug,postId:t?Number(t.clientId):null,searchTerm:d?r?.title:"",pinned:p?rk(p):void 0,widgetLimit:o,categories:i,tags:a,tagsOperators:s,type:c,contentType:u,showCardLabels:l,showDescription:f}},rN=async e=>{let{context:t,widgetSettings:r}=e,n=t?.publicRuntime?.dynamicRelatedApiUrl||t?.settings?.dynamicRelated?.dynamicApiUrl,o=rC({context:t,widgetSettings:r});if(!n)throw Error("Dynamic API URL not found");let i=new URL(n);i.searchParams.append("contentRequest",JSON.stringify(o));let a=await rE(i.href,{method:"GET",headers:{Accept:"application/json"}}),{status:s}=a,{pinnedContent:c=[],limit:u}=r,l=rA(c);if(200!==s)throw Error(`Dynamic API returned a ${s} status code`);let f=await a.json();if(0===l.length)return void 0!==u&&u<f.length?f.slice(0,u):f;let p=[];
65return(l.forEach(e=>{let{position:t,content:{clientId:r}}=e,n=f.findIndex(e=>e.id===r);if(-1!==n){let[e]=f.splice(n,1);e&&Number(t)>0&&p.push({position:Number(t)-1,item:e})}}),p.sort((e,t)=>e.position-t.position),p.forEach(e=>{let{position:t,item:r}=e;f.splice(t,0,r)}),void 0!==u&&u<f.length)?f.slice(0,u):f};function rT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var rR=r(31855),rL=r(88455),rD=r(8863),rM=r(4730),rF=r(26335),rU=r(25853),rZ=r(11179);let rB=["terms","label","isPremium","theme"];function r$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rG(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?r$(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let rz=e=>{let{recommendedCards:t={}}=e;(0,rU.ZP)(e=>(e?.items?.length??0)===0,[t]);let{currentBreakpoint:r}=(0,rZ.Z)(),n="xs"===r,{0:o,1:i}=(0,j.useState)(0),{0:a,1:s}=(0,j.useState)(n?2:3),{0:c,1:u}=(0,j.useState)(!0);(0,j.useEffect)(()=>{i(window.innerWidth);let e=window.innerWidth<=359,t=3;e?t=1:n&&(t=2),s(t),setTimeout(()=>{u(!1)},100)},[n]),(0,j.useEffect)(()=>{let e=(0,rF.Z)(()=>{i(window.innerWidth)},100);return window.addEventListener("resize",e),(()=>{let e=window.innerWidth<=359,t=3;e?t=1:n&&(t=2),s(t)})(),()=>{window.removeEventListener("resize",e)}},[o]);let l=t?.items?.map(e=>{let{terms:t,label:r,isPremium:o,theme:i}=e;return rG(rG({},rM.Z(e,rB)),{},{isPremium:o,inline:!0,horizontal:!n,headingSize:6,headingStyledSize:6,theme:i,transparency:!o&&"media"!==i,borderless:!0})})||[];return(0,M.jsx)(r_.Z,{cards:l,postType:"recipe",cardsToShow:a,dataTestId:"recipe-card-carousel",dataFeature:"RecipeCardCarousel",className:(0,R.Z)("recipe-card-carousel",{invisible:c})})};function rq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rq(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rq(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}rz.displayName="RecipeCardCarousel";let rV=I.Z,rW=rL.Z,rK=rD.Z,rY=e=>{let{title:t="",layout:r="horizontal",showCardLabels:n=!1,displayCarousel:o=!1,smallCardTitles:i=!1,hideOnMobile:a=!1,cards:s=[],className:c=null,postType:u=null}=e,l="vertical"===r,f="recipe"===u?(0,M.jsx)(rz,{recommendedCards:{items:s}}):(0,M.jsx)(r_.Z,{cards:s});return(0,M.jsxs)("section",{"data-gtm-class":"dynamic-related-content","data-feature":"Related Content",className:(0,R.Z)("dynamic-related-content",c,a?"hidden-for-sm-down":null),"data-testid":"dynamic-related-content",children:[!!t&&(0,M.jsx)(rV,{size:4,styledSize:1,type:"section",className:"dynamic-related-content__heading","data-testid":"dynamic-related-content-title",children:(0,rR.Z)(t)}),o?f:(0,M.jsx)(rK,{children:s.map((e,t)=>(0,j.createElement)(rW,rH(rH({},e),{},{key:e.id,headingSize:4,horizontal:l,label:n?e.label:null,headingStyledSize:i?6:4,dataItemName:e.title,index:t})))})]})};rY.displayName="DynamicRelatedContent";var rQ=r(18769);let rX=(0,r(96911).createLogger)("pockets"),rJ=e=>{let{context:{postMeta:t,postContent:r,settings:n},widgetSettings:{limit:o,categories:i,type:a,contentType:s,showCardLabels:c}}=e;return{siteKey:n.slug,postId:Number(t.clientId),searchTerm:r.title,pinned:r.relatedItems??[],limit:o,categories:i,type:a,contentType:s,showCardLabels:c}},r0=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{DRCUrl:t,params:r={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw rX.debug("No lambda API URL",e),Error("Lambda API URL not found");let n=new URLSearchParams(Object.entries(r).flatMap(e=>{let[t,r]=e;return Array.isArray(r)?0===r.length?[[t,""]]:[[t,r.join(",")]]:"boolean"==typeof r?r?[[t,""]]:[]:null!=r?[[t,String(r)]]:[]}));return rE(`${t}?${n.toString()}`,{method:"GET",headers:{Accept:"application/json"}})},r1=e=>{let{status:t}=e;if(200!==t)throw Error(`lambda returned a ${t} status code: ${JSON.stringify(e)}`)},r2=async e=>{let{context:t,widgetSettings:r}=e,n=t?.publicRuntime.serviceConfig?.backendBasePath;if(!n)throw Error("backendBasePath is not configured â cannot build DRC URL");let o=`${n}/search/dynamic-related`,i=rJ({context:t,widgetSettings:r}),a=await r0({widgetSettings:r,context:t},{DRCUrl:o,params:i});return r1(a),await a.json()??{items:[],searchApiVersion:void 0}};function r3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function r8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?r3(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r3(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let r6=rL.Z,r4=I.Z,r5=J.Z,r7=e=>{let{terms:t=null,title:r=null}=e;return!!t&&!!t.length&&(0,M.jsxs)("section",{children:[r&&(0,M.jsx)(r4,{className:"section-heading-1",size:4,children:r}),(0,M.jsx)(r5,{itemSpacingY:"sm",children:t.map((e,t)=>(0,M.jsx)("li",{children:(0,M.jsx)(r6,{borderless:!0,description:e.description,headingSize:2,horizontal:!0,image:e.image,noPlaceholderImage:!0,title:e.title,url:e.url,index:t})},e.url))})]})};r7.displayName="FeaturedTerms";let r9=e=>e.reduce((e,t)=>e+t,0),ne=(e,t)=>e.taxonomy<t.taxonomy?-1:e.taxonomy>t.taxonomy?1:0;var nt=(e,t)=>e.reduce((e,r)=>{let n=e[e.length-1];return n&&n.length<t?n.push(r):e.push([r]),e},[[]]),nr=e=>(e-1)%5==0,nn=r(42485),no=r(17679);let ni=e=>{let{adSlotKey:t=null,adSlotIndexOffset:r=0,children:n=[],className:o=null,cols:i,preAdvertisingSlot:a=null,spanLast:s=!1}=e,c=j.Children.toArray(n),u=nt(c,i),l=(0,no.s)(r+1);return(0,M.jsx)("div",{className:(0,R.Z)("simple-grid",o),children:u.map((e,r)=>{let n=JSON.stringify(e.map(e=>e.key));return(0,M.jsxs)(j.Fragment,{children:[(0,M.jsx)("div",{className:(0,R.Z)("row"),children:e.map((e,t)=>{let n=r*i+t===c.length-1,o=e.key||`${r}-${t}`;return(0,M.jsx)("div",{className:(0,R.Z)(`col-md${n&&s?"":`-${12/i}`}`,"pb-md"),"data-testid":"col",children:e},o)})}),(nr(r)||c.length<=i)&&(0,M.jsxs)(M.Fragment,{children:[(c.length<=i||1===r)&&a,t&&(0,M.jsx)("div",{className:"row simple-grid__ad-row mt-xs pb-lg",children:(0,M.jsx)(nn.Z,{showLabel:!0,showBorders:!0,slotKey:t,index:l()})})]})]},n)})})};ni.displayName="SimpleGrid";var na=r(27618);function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nu=rL.Z,nl=[],nf=e=>{let{cards:t=nl,className:r=null,dataFeature:n=null,sctrack:o=null}=e;if(!t?.length)return null;let i=(0,ez.Z)("PromotionCards",o);return(0,M.jsx)("div",{className:(0,R.Z)("promotion-cards",{"promotion-cards--single":1===t.length},r),"data-component":"PromotionCards","data-feature":n,children:t.length>1?(()=>{let e=!t.find(e=>!e.image);return(0,M.jsx)("div",{className:"container pt-lg",children:(0,M.jsx)(ni,{cols:t.length,children:t.map(t=>{let{buttonLink:r,buttonText:n,description:o,image:i,title:a}=t;return(0,M.jsx)(nu,{borderless:!0,description:o,descriptionEmphasis:!0,descriptionMaxLines:0,descriptionSmall:!0,hasMedia:e,headingStyledSize:7,horizontal:!0,image:nc(nc({},i),{},{aspectRatio:"square"}),title:a,transparent:!0,url:r,children:r&&n?(0,M.jsx)(eA.Z,{as:"a","data-testid":"promo-card-button",href:r,small:!0,children:n}):null},a)})})})})():(()=>
65{let{buttonLink:e,buttonText:r,description:n,image:o,title:a}=t[0],s=e?et.Z:"div",c=e?{href:e,sctrack:i}:{};return(0,M.jsxs)(M.Fragment,{children:[o?.url?(0,M.jsx)(s,nc(nc({className:"promotion-cards__image","data-testid":"card-image"},c),{},{children:(0,M.jsx)(eG.Z,nc(nc({fluid:!0,noPlaceholder:!0,scaleUp:!0,sizes:["(min-width: 768px) 940px","(min-width: 544px) 556px","(min-width: 300px) 400px","calc(100vw - 20px)"],srcSetBreakpoints:[300,400,556,675,800,940,1200,1500,1880,2820,3760]},o),{},{sctrack:i}))})):null,a||n||r&&e?(0,M.jsxs)("div",{className:"promotion-cards__info","data-testid":"card-info",children:[a?(0,M.jsx)(s,nc(nc({className:"promotion-cards__title"},c),{},{children:(0,M.jsx)(I.Z,{className:"promotion-cards__title--heading",color:"inherit",size:2,styledSize:4,children:(0,rR.Z)(a)})})):null,n?(0,M.jsx)(na.Z,{className:"promotion-cards__description body-copy-small",children:n}):null,r&&e?(0,M.jsx)(eA.Z,{as:"a","data-testid":"promo-card-button",fluid:!0,gtmLabel:"promo-card-button",href:e,children:r}):null]}):null]})})()})};nf.displayName="PromotionCards";var np=r(33055);let nd=e=>{let{className:t=null,children:r=[],siteKey:n=null}=e;return(0,M.jsx)(np.Z,{children:(0,M.jsx)("div",{className:(0,R.Z)("masthead-promotional","mt-md","mb-md",t),"data-testid":"masthead-promotional","data-sitekey":n,children:r})})};nd.displayName="MastheadPromotional";var nh=r(17812);function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ng=r(42761);function nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nv(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nw=e=>{let{loading:t=!1,cards:r=[],link:n=null}=e,o=(0,M.jsx)("div",{"data-testid":"offer-card-carousel-fallback",className:"d-flex justify-content-center",style:{height:n&&t?332:296},children:(0,M.jsx)(ng.Z,{size:40})});return t?o:r&&0!==r.length?(0,M.jsx)(r_.Z,{className:"offer-card-carousel",cards:r.map(e=>({borderless:!0,alignment:"center",headingStyledSize:7,image:nb(nb({},e.image),{},{aspectRatio:"portrait"}),id:e.id,title:e.title,url:e.url,callout:e.callout,offerHeadline:e.offerHeadline})),adaptive:!0,infinite:!0,dots:!1,cardsToShow:6,fallback:o,link:n,cardWidth:160,centerMode:!1}):null};nw.displayName="OfferCardCarousel";var nO=r(47480),nS=r(60441),nj=()=>{let{0:e,1:t}=(0,j.useState)();return(0,j.useEffect)(()=>{let e=document.querySelector('link[rel="canonical"]');if(e){t(e.getAttribute("href"));return}t(window.location.href)},[]),e},nx=r(30899);let n_=e=>{let{id:t="AR_2"}=e,r=(0,nS.Z)(),n=nj(),{t:o}=(0,L.$G)(),{adSettings:i}=(0,j.useContext)(nx.Z),a=i?.stitcher?.disableAllAdvertising;return n&&!0!==a?(0,M.jsxs)(M.Fragment,{children:[r&&(0,M.jsx)(nO.default,{children:(0,M.jsx)("script",{type:"text/javascript",defer:!0,src:"//widgets.outbrain.com/outbrain.js","data-testid":"script"},"outbrain-script")}),(0,M.jsxs)(np.Z,{children:[(0,M.jsx)(I.Z,{className:"sr-only",size:2,children:o("organisms.post.sr.sponsoredHeading")}),(0,M.jsx)("div",{className:"OUTBRAIN hidden-print","data-src":n,"data-feature":"Outbrain","data-outbrain-widget-id":t,"data-widget-id":t,"data-testid":"outbrain"})]})]}):null};function nP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}n_.displayName="OutbrainContainer";let nE=e=>{let{className:t=null,dataFeature:r=null,mainIcon:n=null,subIcon:o,text:i,onClickMain:a=null,onClickSub:s=null,mainGtmClass:c=null,mainGtmComponentVariant:u=null,subGtmClass:l=null,showSubButton:f=!1,subAriaLabel:p="sub menu",disabled:d=!1}=e;return(0,M.jsxs)("div",{className:(0,R.Z)("split-button",t),"data-feature":r,children:[(0,M.jsx)(eA.Z,{className:(0,R.Z)("split-button__button","split-button__main-button",{"split-button__main-button--show":f}),onClick:a,noMinWidth:!0,gtmLabel:c,disabled:d,dataComponentVariant:u,children:(0,M.jsxs)("div",{className:(0,R.Z)("split-button__main-button-content","d-flex justify-content-space-between align-items-center full-width"),children:[n&&(0,M.jsx)(D.Z,{color:"inherit",size:14,name:n}),(0,M.jsx)("div",{className:"pl-xs",children:i})]})}),(0,M.jsx)(eA.Z,{className:(0,R.Z)("split-button__button","split-button__sub-button",{"split-button__sub-button--show":f}),ariaLabel:p,noTab:!f,secondary:!0,noMinWidth:!0,noPadding:!0,onClick:s,gtmLabel:l,disabled:d,children:(0,M.jsx)(D.Z,{color:"inherit",size:20,name:o})})]})};nE.displayName="SplitButton";var nA=r(87586);let nk=e=>{let{children:t,className:r=null,loadMore:n=null,loading:o=!1,threshold:i=100,containerRef:a}=e,s=(0,j.useRef)(null),c=()=>{let e=a.current.getBoundingClientRect(),t=s.current.getBoundingClientRect().bottom-e.bottom;n&&!o&&t<i&&n()};return(0,j.useEffect)(()=>{let e=a.current,t=(0,nA.Z)(c,200);return e.addEventListener("scroll",t),e.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),e.removeEventListener("resize",t)}},[a,n,o,i]),(0,M.jsxs)("div",{className:(0,R.Z)("infinite-scroll",r),ref:s,children:[t,o&&(0,M.jsx)(ng.Z,{className:"infinite-scroll__loading mt-md mb-md",size:25})]})};nk.displayName="InfiniteScroll";
65var nC=r(78508),nN=r(29028),nT=r(53823);function nI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nL=r(80219).Z,nD=nT.Z,nM=e=>{let{collections:t=[],className:r=null,dataFeature:n=null,dataPlacement:o=null,fallbackIcon:i="no-img"}=e;return(0,M.jsx)("ul",{className:(0,R.Z)("collection-list",r),"data-placement":o,"data-component":"CollectionList","data-feature":n,children:t.map(e=>{let{id:t,image:r,itemCount:n=0,onChange:o,selected:a,title:s}=e;return(0,M.jsx)("li",{className:"collection-list__item-item","data-component":"CollectionListItem","data-collection-id":"string"==typeof t?t.replace("/v1/collections/",""):t,"data-collection-name":s,children:(0,M.jsx)(nC.Z,{inputId:t,children:(0,M.jsxs)(nN.Z,{className:"collection-list__item-label",children:[(0,M.jsx)(nL,nR(nR({},r),{},{className:"collection-list__item-image",sizes:["60px"],srcSetBreakpoints:[60,120,180,240],fallbackIcon:i,maxWidth:60})),(0,M.jsx)("span",{className:"collection-list__item-title",children:`${s} (${n})`}),(0,M.jsx)(nD,{className:"collection-list__item-checkbox",name:t,defaultChecked:a,onChange:o})]})})},t)})})};function nF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nU(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nF(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nF(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}nM.displayName="CollectionList";let nZ={icon:"coffee-cup",sentences:["Start organising your saved items by creating a collection below"]},nB={recipe:{icon:"cupboard",sentences:["Your cupboard is bare!","Start organising your saved recipes by creating a collection below"]}};var n$=e=>{let{entity:t,collectionsLoaded:r=!1}=e,n=nU(nU({},nZ),nB[t]||{}),o="interactiveRegular";return(0,M.jsx)(N.Z,{className:"d-flex flex-direction-column align-items-center full-height",children:r?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(D.Z,{name:n.icon,size:60,color:o}),n.sentences.map(e=>(0,M.jsx)("p",{className:"text-center mt-reset mb-sm",children:e},e))]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(ng.Z,{size:60,color:o}),m||(m=(0,M.jsx)("p",{className:"text-center mt-reset mb-sm",children:"Loading your collections"}))]})})},nG=r(64879);let nz=(0,j.forwardRef)((e,t)=>{let{question:r,confirmText:n,cancelText:o,handleConfirm:i,handleCancel:a}=e;return(0,M.jsxs)("div",{ref:t,className:"pa-sm","data-placement":"RemoveItemModal",children:[(0,M.jsx)("p",{className:"mt-reset mb-sm",children:r}),(0,M.jsxs)("div",{className:"row",children:[(0,M.jsx)("div",{className:"col-md-6 mb-xs",children:(0,M.jsx)(eA.Z,{fluid:!0,onClick:i,children:n})}),(0,M.jsx)("div",{className:"col-md-6",children:(0,M.jsx)(eA.Z,{secondary:!0,fluid:!0,onClick:a,children:o})})]})]})});nz.displayName="RemoveConfirmation";var nq=e=>{let{show:t,onClose:r,remove:n,bodyRef:o,baseHeader:i,baseBodyHeight:a=null,removeHeader:s,removeQuestion:c,removeConfirmText:u,removeCancelText:l,footerRemoveText:f=null,body:p=null,footer:d=null}=e,{0:h,1:y}=(0,j.useState)(!1),{0:m,1:g}=(0,j.useState)(a),{0:v,1:b}=(0,j.useState)(i),{0:w,1:O}
65=(0,j.useState)(),S=(0,j.useRef)(null);return(0,j.useEffect)(()=>{if(o.current?.firstChild){let{clientHeight:e}=o.current.firstChild,t=e?`${e}px`:a,r=new MutationObserver(e=>{e.forEach(()=>{g(t)})});r.observe(o.current.firstChild,{subtree:!0,childList:!0}),w&&w.disconnect(),O(r),g(t)}return()=>{w&&w.disconnect()}},[t,h,a]),(0,M.jsxs)(nG.Z,{show:t,onClose:()=>{y(!1),r()},children:[(0,M.jsx)(nG.Z.Header,{children:v}),(0,M.jsx)(nG.Z.Body,{maxHeight:m,ref:o,children:h?(0,M.jsx)(()=>((0,j.useEffect)(()=>(b(s),()=>{b(i)})),(0,M.jsx)(nz,{ref:S,question:c,confirmText:u,cancelText:l,handleConfirm:()=>{y(!1),n()},handleCancel:()=>y(!1)})),{}):p}),!h&&(0,M.jsxs)(M.Fragment,{children:[d&&(0,M.jsx)(nG.Z.Footer,{className:"d-flex",children:d}),f&&(0,M.jsx)(nG.Z.SubFooter,{children:(0,M.jsx)(eA.Z,{link:!0,noPadding:!0,className:"d-flex",onClick:()=>y(!0),children:f})})]})]})};let nH={collectionCreated:"collection_created",collectionItemAdded:"collection_item_added"},nV=new Map,nW=new Map,nK=e=>JSON.stringify(e),nY=async(e,t)=>{let r=nV.get(e);if(r&&r.expiresAt>Date.now())return r.value;let n=nW.get(e);if(n)return n;let o=Promise.resolve(t()).then(t=>(nV.set(e,{value:t,expiresAt:Date.now()+5e3}),t)).finally(()=>{nW.delete(e)});return nW.set(e,o),o},nQ=()=>{nV.clear(),nW.clear()},nX=(e,t)=>{let{"@id":r,id:n}=e;return r||(null==n||""===n?void 0:`/v1/${t}/${n}`)},nJ=e=>String(e??"").match(/\d+$/)?.[0];function n0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n0(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let n2=e=>nJ(e)??e,n3=e=>!!e&&("object"!=typeof e||Object.keys(e).length>0);var n8=e=>{let{user:t}=(0,B.Z)(),{0:r,1:n}=(0,j.useState)(e?.itemConnections||[]),{0:o,1:i}=(0,j.useState)(!1),{0:a,1:s}=(0,j.useState)(null),{0:c,1:u}=(0,j.useState)(),{0:l,1:f}=(0,j.useState)(!0),p=(0,_.jr)(),d=(0,j.useContext)(P.PostContentContext),h="created",y=(0,j.useCallback)(()=>{let e={userVanityRef:t?.vanityId,order:{[h]:"desc"}};if(a&&a.length){let t=a[a.length-1];t&&(e.cursor=t.id,e[h]={lte:t[h]})}return e},[a,t?.vanityId,h]),m=async(e,t)=>{let r=n1(n1({},t),{},{image:n1({},d.image)});try{await p.collections.collections.update(e,r)}catch{throw Error(`Image could not be saved to collection number: ${e}`)}},g=async(t,o)=>{let i;let a=n2(t),s=nX(e,"saved_items"),c=o??await p.collections.collections.get(a);n3(c.image)||await m(a,c);try{i=await p.collections.itemConnections.create({collection:t,savedItem:s});let{postId:e,title:r,postType:n}=d,{title:o}=c,u=c.id??a;(0,_.y_)({event:"content_added_to_collection",item_id:e,item_name:r,content_type:n,collection_id:u,collection_name:o,feature:"save",component:"FormCheckbox",placement:"CollectionsListModal"}),window.dispatchEvent(new CustomEvent(nH.collectionItemAdded,{detail:{collectionId:u}}))}catch{throw Error(`An itemConnection could not be created between saved item ${s} and connection ${t}`)}return nQ(),i&&n([...r,i]),p.collections.collections.get(a)},v=e=>{let t=nJ(e);return void 0===t?-1:r.findIndex(e=>nJ(e.collection)===t)},b=async t=>{let o=v(t);if(o<0)throw Error(`An itemConnection could not be found between saved item ${nX(e,"saved_items")} and connection ${t}`);let i=[...r],{id:a}=r[o];return await p.collections.itemConnections.delete(a),nQ(),i.splice(o,1),n(i),p.collections.collections.get(n2(t))},w=async(e,t)=>{let r;e.persist(),e.target.disabled=!0;let n=v(t.id)>=0,o=a?.findIndex(e=>nX(e,"collections")===t.id)??-1;try{r=n?await b(t.id):await g(t.id,a?.[o])}catch(t){throw e.target.disabled=!1,t}if(!a||o<0){e.target.disabled=!1;return}a[o]=r,s([...a]),e.target.disabled=!1},O=(0,j.useCallback)(async()=>{let e;if(o)return;i(!0);let t=y();try{e=await nY(nK(t),()=>p.collections.collections.filter(t))}catch(e){throw i(!1),e}let{"hydra:member":r,"hydra:totalItems":n}=e,l=[...a||[],...r];c||u(n),f(n>l.length),s(l),i(!1)},[a,p.collections.collections,o,y,c]);return(0,j.useEffect)(()=>{!a&&t&&O()},[a,t,O]),{collections:a?a.map(e=>{let t=nX(e,"collections")??"";return{id:t,title:e.title,itemCount:e.savedItemCount,image:e.image,selected:v(t)>=0,[h]:e[h]}}):null,loadMore:O,hasMore:l,loading:o,addCollection:e=>{nQ(),s([e,...a||[]]);let{id:t,title:r}=e;(0,_.y_)({event:"collection_create",content_type:"collection",collection_id:t,collection_name:r,feature:"hub",component:"FormSubmitButton",placement:"CollectionsListModal"})},onChange:w,createConnection:g}};r(27959);var n6=r(67881),n4=function(){let{show:e,onSubmit:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,j.useRef)(null),{0:n,1:o}
65=(0,j.useState)({}),i=()=>{r&&r.current&&r.current.reset(),o({})};(0,j.useEffect)(()=>(e||i(),()=>i()),[e]);let a=()=>!r.current||void 0===[...r.current.querySelectorAll("input, select, textarea")].find(e=>!e.checkValidity());return{formRef:r,errors:n,setErrors:o,submit:async e=>{e.preventDefault();let r=new FormData(e.target);a()&&await t?.(r)},reset:i}},n5=function(){let{show:e,onSuccess:t,onError:r,resourceId:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{user:o}=(0,B.Z)(),i=(0,_.jr)(),{siteKey:a}=(0,j.useContext)(P.SiteContext),s=(e,t)=>{let r=(e.get("title")||"").trim(),n={title:r,description:(e.get("description")||"").trim(),client:a,userId:o?.guid,userVanityRef:o?.vanityId};return t&&r&&(n.vanityRef=(0,n6.o)(r)),n},c=e=>{throw r&&/.*VanityRef.*unique.*/i.test(e.response?.data?.violations?.[0]?.message??"")&&r({title:"You already have a collection with this name"}),e},u=async e=>{let r;try{r=await i.collections.collections.update(n,s(e))}catch(e){c(e)}t&&t(r)},l=async e=>{let r;try{r=await i.collections.collections.create(s(e,!0))}catch(e){c(e)}t&&(t(r),window.dispatchEvent(new CustomEvent(nH.collectionCreated,{detail:{collectionId:r?.id}})))};return n4({show:e,onSubmit:async e=>{o&&await (n?u(e):l(e))}})};function n7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n9(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n7(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n7(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var oe=e=>{let{show:t,onClose:r,savedItem:n,onDelete:o}=e,{entity:i}=n,{0:a,1:s}=(0,j.useState)(""),{hub:c}=(0,_.rV)(),u=c?.header,l=(0,j.useRef)(null),{collections:f,loadMore:p,hasMore:d,loading:h,addCollection:y,onChange:m,createConnection:w}=n8(n),{formRef:O,errors:S,setErrors:x,reset:P,submit:E}=n5({show:t,onSuccess:async e=>{let t=nX(e,"collections")??"";y(await w(t)),P(),l.current?.scrollTo&&l.current.scrollTo({top:0})},onError:e=>{x(n9(n9({},S),e))}});return(0,M.jsx)(nq,{show:t,onClose:r,remove:o,baseHeader:"Add to a collection",baseBodyHeight:"377px",bodyRef:l,removeHeader:`Remove from ${u}?`,removeQuestion:`Are you sure you want to remove this from ${u} and all collections?`,removeConfirmText:"Remove",removeCancelText:"Keep",footerRemoveText:`Remove from ${u}`,body:f&&f.length>0?(0,M.jsx)(nk,{className:"d-flex flex-grow-1",loadMore:d?p:null,loading:h,containerRef:l,threshold:500,children:(0,M.jsx)(nM,{collections:f.map(e=>n9(n9({},e),{},{onChange:t=>m(t,e)})),dataFeature:"save",dataPlacement:"CollectionListModal"})}):(0,M.jsx)(n$,{entity:i,collectionsLoaded:!!f}),footer:(0,M.jsxs)(T.Z,{onSubmit:E,className:"full-width",ref:O,errors:S,children:[(0,M.jsxs)(T.Z.Group,{inputId:"title-input",feedbackId:"title-feedback",children:[g||(g=(0,M.jsx)(T.Z.Label,{className:"sr-only",children:"New collection title"})),(0,M.jsx)(T.Z.InputGroup,{placeholder:"+ Create a new collection",type:"text",name:"title",autoComplete:"off",onChange:e=>{s(e.target.value)},append:a.length>0&&(v||(v=(0,M.jsx)(eA.Z,{input:!0,text:"Create",type:"submit"})))})]}),b||(b=(0,M.jsx)(T.Z.Feedback,{name:"title"}))]})})},ot=r(20630),or=r(15783);let on=e=>{let{items:t=[],itemSpacingX:r="xxs",itemSpacingY:n="xxs",className:o="",tagType:i=null,sctrack:a=null}=e;return(0,M.jsx)(J.Z,{className:(0,R.Z)(o),horizontal:!0,itemSpacingX:r,itemSpacingY:n,children:t.map((e,t)=>(0,M.jsx)(J.Z.Item,{children:(0,M.jsx)(or.Z,{url:e.url,disableHitSpace:!0,type:i,sctrack:(0,ez.Z)("Tags",a),children:e.label})},e.id||e.url||`${e.label}-${t}`))})};on.displayName="Tags";var oo=r(31329);function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?oi(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var os=r(9445),oc=r(26140);let ou=[1,2,3,4,7,10],ol=["280"],of=["5e7ced57b8e05c4854221bd7"],op=e=>{let{id:t="",eventUrl:r,spotId:n,clientId:o,articleUrl:i,authorId:a,messageCount:s=0,disableReadOnly:c=!1,seoEnabled:u=!1,disableSocialReviews:l=!1,sortBy:f=!1,placement:p="",className:d="",notificationType:h="",postId:y="",client:m=""}=e,g=(0,j.useRef)(null),v=(0,os.Z)({purposes:ou,vendorIds:ol}),b=()=>{fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:y,spotId:n,client:m,notificationType:h})})},w=e=>{let{detail:t}=e,{type:r}=t||{};window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Share",event:"link_click",feature:"comments",component:r,placement:p})},O=e=>{let{detail:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Report",event:"link_click",feature:"comments",comment_id:t?.message_id,comment_parent_id:t?.parent_id,comment_type:t?.type,report_reason:t?.reason,placement:p})},S=e=>{let{detail:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form_submit",feature:"comments",comment_id:t?.message_id,comment_parent_id:t?.parent_id,comment_type:t?.message_type,placement:p}),fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:y,spotId:n,client:m,notificationType:h})})},x=e=>{let{detail:t}=e;fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:y,spotId:n,client:m,notificationType:h})}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submit_comment",feature:"comments",comment_id:t?.message_id,comment_parent_id:t?.parent_id,comment_type:t?.message_type,placement:p})},_=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Show more comments",event:"link_click",feature:"comments",component:"show_more",placement:p})},P=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Show more replies",event:"link_click",feature:"comments",component:"show_more_replies",placement:p})},E=e=>{let{detail:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submit_comment_vote",feature:"comments",comment_vote_type:"down",comment_id:t?.message_id,comment_parent_id:t?.parent_id,comment_type:t?.type,comment_vote_count:t?.count,placement:p})},A=e=>{let{detail:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submit_comment_vote",feature:"comments",comment_vote_type:"up",comment_id:t?.message_id,comment_parent_id:t?.parent_id,comment_type:t?.type,comment_vote_count:t?.count,placement:p})},k=e=>{let{detail:t}=e;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"sort_comments",feature:"comments",placement:p,sort_by:t?.sortedBy,previous_sort_by:t?.previousSort})},C=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Log in",event:"link_click",feature:"comments",placement:p})},N=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Sign up",event:"link_click",feature:"comments",placement:p})},T=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_text:"Logout",event:"link_click",feature:"comments",placement:p})};return((0,j.useEffect)(()=>{if(v)return document.addEventListener("spot-im-clicked-delete-message",b),document.addEventListener("ow-embedded-link-event",w),document.addEventListener("spot-im-comment-reported",O),document.addEventListener("spot-im-current-user-sent-message-clicked",S),document.addEventListener("spot-im-current-user-sent-message-succeed",x),document.addEventListener("spot-im-user-down-vote-click",x),document.addEventListener("spot-im-show-more-comments-clicked",_),document.addEventListener("spot-im-show-more-replies-clicked",P),document.addEventListener("spot-im-user-down-vote-click",E),document.addEventListener("spot-im-user-up-vote-click",A),document.addEventListener("spot-im-sort-by-select",k),document.addEventListener("spot-im-login-start",C),document.addEventListener("spot-im-signup-start",N),document.addEventListener("spot-im-user-logout",T),document.addEventListener("openweb-reactions-voted",x),()=>{document.removeEventListener("spot-im-clicked-delete-message",b),document.removeEventListener("ow-embedded-link-event",w),document.removeEventListener("spot-im-comment-reported",O),document.removeEventListener("spot-im-current-user-sent-message-clicked",S),document.removeEventListener("spot-im-current-user-sent-message-succeed",x),document.removeEventListener("spot-im-user-down-vote-click",x),document.removeEventListener("spot-im-show-more-comments-clicked",_),document.removeEventListener("spot-im-show-more-replies-clicked",P),document.removeEventListener("spot-im-user-down-vote-click",E),document.removeEventListener("spot-im-user-up-vote-click",A),document.removeEventListener("spot-im-sort-by-select",k),document.removeEventListener("spot-im-login-start",C),document.removeEventListener("spot-im-signup-start",N),document.removeEventListener("spot-im-user-logout",T),document.removeEventListener("openweb-reactions-voted",x)}},[v]),(0,j.useEffect)(()=>
65{if(!v)return;let e=new IntersectionObserver(t=>{let r=t[0];if(r&&r.isIntersecting&&r.boundingClientRect.top<window.innerHeight+200){let t=window;t.__OPEN_WEB__&&"function"==typeof t.__OPEN_WEB__.initOW&&t.__OPEN_WEB__.initOW(),e.disconnect()}},{root:null,rootMargin:"200px",threshold:0});g.current&&e.observe(g.current)},[v]),v)?(0,M.jsxs)("div",{className:(0,R.Z)("openweb-widget",d),"data-testid":"openweb-widget",ref:g,id:t,children:[(0,M.jsx)(nO.default,{children:(0,M.jsx)("script",{async:!0,src:`https://launcher.spot.im/spot/${n}`,"data-social-reviews":l?"false":"true","data-spotim-module":"spotim-launcher","data-post-id":o,"data-post-url":i})}),(0,M.jsx)("div",{"data-spotim-autorun":"true","data-spotim-module":"conversation","data-spot-id":n,"data-post-id":o,"data-post-url":i,"data-author-id":a,"data-messages-count":s,"data-read-only":c?"false":"true","data-seo-enabled":u?"true":"false","data-social-reviews":l?"false":"true","data-sort-by":f})]}):(0,M.jsx)(oc.Z,{providerName:"OpenWeb",className:"mb-md",consentModalButton:!0,requiredConsent:{purposeIds:ou,vendorIds:of}})};op.displayName="OpenWebWidget";var od=r(48917);let oh="burdaffi_legal_notice_id",oy="burdaffi_widget_id",om="im_carousel_card_widget",og="dynamicRelatedContent",ov="featuredTermsWidget",ob="footerPromotionalWidget",ow="mastheadPromotional",oO="newsletterSignup",oS="im_offer_promo_carousel_widget",oj="outbrain",ox="promotionalWidget",o_="reactions",oP="im_recipe_recommendations",oE="savePostButton",oA="im_squirrel_widget",ok="tagCloud",oC="im_
65carousel_video_widget",oN="im_openweb_widget",oT="im_warning_notice_widget",oI="promo_link_text",oR="text",oL={[oh]:()=>{let e=(0,j.useContext)(P.SettingsContext),{legalNotice:t}=e?.burdaffiSettings||{},{suppression:r}=(0,j.useContext)(P.PostContentContext);return r?.disableBurdaffiWidgets!==!0&&t?(0,M.jsx)(rS.Z,{children:(0,M.jsx)("script",{async:!0,src:t})}):null},[oy]:e=>{let t,{data:r={}}=e,{widgetId:n,wrapperCssClass:o="ecomm-boxd"}=r,i=(0,j.useContext)(P.SettingsContext),{useEsi:a=!1,apiUrl:s}=i?.burdaffiSettings||{},{suppression:c}=(0,j.useContext)(P.PostContentContext);return c?.disableBurdaffiWidgets===!0?null:(s&&(t=s.replace(/\/$/,"")),(0,M.jsx)(rj.Z,{id:n,apiUrl:t,wrapperCssClass:o,useEsi:a}))},[om]:function(e){let{data:t}=e,{title:r,categoryLabels:n,categories:o,articlesType:i,contentType:a,buttonText:s,buttonLink:c,numberOfCardsToInclude:u,numberOfCardsToShowInViewport:l,aspectRatioOverride:f,showDotsNavigation:p,showDescriptions:d,showAdvertisingCooperationLabel:h,showSponsorLabel:y,pinnedContent:m,tags:g,tagsOperators:v}=t,b=(0,j.useContext)(P.PostContentContext),w=(0,j.useContext)(P.PostMetaContext),O=(0,j.useContext)(P.SettingsContext),S=(0,j.useContext)(P.PublicRuntimeContext),{0:x,1:_}=(0,j.useState)(!0),{0:E,1:A}=(0,j.useState)([]),k="show"===n||"use_customizer_settings"===n&&O?.cardSettings?.displayCategoryLabel;if((0,j.useEffect)(()=>{(async()=>{_(!0),A(await rN({context:{postContent:b,postMeta:w,settings:O,publicRuntime:S},widgetSettings:{categories:o,limit:u,type:i,contentType:a,showCardLabels:k,showDescriptions:d,pinnedContent:m,tags:g,tagsOperators:v}})),_(!1)})()},[]),x)return(0,M.jsx)(rx.Z,{builtCards:[]});let C=1!==E.length;return(0,M.jsx)(r_.Z,{cardsToShow:l,cards:E.map(e=>rI(rI({},e),{headingStyledSize:4,image:e.image?rI(rI({},e.image),f?{aspectRatio:f}:{}):null,sponsorTracking:h?e.sponsorTracking:null,sponsor:y?e.sponsor:null})),title:r,adaptive:!0,centered:!0,infinite:!1,dots:p,button:s&&c?{label:s,url:c}:null,responsive:[{breakpoint:544,settings:{centerMode:C,infinite:!0}}]})},[og]:e=>{let{data:{title:t,limit:r,layout:n,showCardLabels:o,smallCardTitles:i,hideOnMobile:a,displayCarousel:s,type:c,contentType:u,categories:l,className:f,hidePublishDateOnCards:p,hideAuthorNameOnCards:d,aspectRatioOverride:h=null}}=e,m=(0,j.useContext)(P.PostContentContext),g=(0,j.useContext)(rQ.Z),v=(0,j.useContext)(P.PostMetaContext),b=(0,j.useContext)(P.SettingsContext),w=(0,j.useContext)(P.PublicRuntimeContext),{0:O,1:S}=(0,j.useState)(!0),{0:x,1:_}=(0,j.useState)("5"),{0:E,1:A}=(0,j.useState)([]),k=(0,j.useCallback)("function"==typeof g&&!O&&m?.title&&g({type:"click",feature:"dynamic_related_content",limit:r,totalItems:E?.length||0,searchApiVersion:x,queryText:m.title}),[O,x,g,m]);(0,j.useEffect)(()=>{(async()=>{S(!0);let e=await r2({context:{postContent:m,postMeta:v,settings:b,publicRuntime:w},widgetSettings:{limit:r,type:c,contentType:u,categories:l,showCardLabels:o}}).catch(e=>{rX.error(`Dynamic Related Content ${e}`,{context:{postContent:m,postMeta:v,settings:b,publicRuntime:w},widgetSettings:{limit:r,type:c,contentType:u,categories:l,showCardLabels:o}})});A(e?.items||[]),_(e?.searchApiVersion||"5"),S(!1)})()},[l,u,r,m,v,w,b,o,c]);let{postType:C}=m;return m?.suppression?.disableRelatedContent===!0?null:O?y||(y=(0,M.jsx)(M.Fragment,{children:"Loading..."})):E&&0!==E.length?(0,M.jsx)(rQ.Z.Provider,{value:k,children:(0,M.jsx)(rY,{title:!s&&t?t:"",layout:n,showCardLabels:o,smallCardTitles:i,hideOnMobile:a,cards:E.map(e=>r8(r8({},e),{},{image:e.image?r8(r8({},e.image),h?{aspectRatio:h}:{}):null,publishDate:p?null:e.published,authors:d?null:e.authorName})),displayCarousel:s,postType:C,className:f})}):null},[ov]:e=>{let{data:t=null}=e,{featureFlags:r}=(0,j.useContext)(P.SiteContext);if(!t)return null;let{max:n,taxonomies:o,text:i,title:a}=t;if(!o||(Array.isArray(o)?0===o.length:0===Object.keys(o).length))return null;let s=(0,_.jr)(),c=(0,_.rV)(),{0:u,1:l}=(0,j.useState)([]),{taxonomies:f=[]}=(0,j.useContext)(P.PostContentContext),p=(f??[]).map(e=>e.terms).flat(),d=Object.entries(o).filter(e=>e[1]).map(e=>p.filter(t=>
65t.taxonomy===e[0])).flat().filter(Boolean);if(!d.length)return null;let h=[...new Set(d.map(e=>e.taxonomy))],y=[],m=Array(h.length).fill(0);for(;r9(m)<+n;)for(let e=0;e<m.length&&(m[e]+=1,r9(m)!==+n);e+=1);let g=(d=h.map((e,t)=>{let r=d.filter(t=>t.taxonomy===e);return r.length<m[t]?m[t+1]+=m[t]-r.length:y.push(r.splice(m[t],r.length)),r.slice(0,m[t])}).flat()).length,v=(y=y.flat()).length;if(g<+n&&v>0){for(let e=0;e<+n-g;e+=1)d.push(y[e]),y.pop();d=d.sort(ne)}let b=async(e,t)=>{let n;let o={limit:1,sitekey:c.slug,[`filter[taxonomies.${e}.terms.slug.keyword][match][]`]:t,"sort[published]":"desc"};try{let e=r?.FEATURE_SEARCHV6?s.searchv6.search:s.search.searchv5;n=await e.filter(o)}catch(e){return e.message=`No results returned by search v5 for siteKey: ${c.slug}`,rX.error(e),{}}return n};return(0,j.useEffect)(()=>{Promise.all(d.map(async e=>{let{"hydra:member":t}=await b(e.taxonomy,e.slug),r=t[0]?.headlineImages?.thumbnail,n=r?.url,o=null;if(n){let{protocol:e,host:t,pathname:r}=new URL(n);o=`${e}//${t}${r}`}e.image={aspectRatio:c?.cardSettings?.thumbnailImageSize,url:o,loading:"lazy",title:r?.title,alt:r?.alt,width:Number(r?.width),height:Number(r?.height)},e.description=i;let{siteSearchUrl:a,siteSearchQueryParameter:s}=c.siteConfig.search;return e.url=`${a}?${s}=${e.slug}`,e.title=e.display&&e.display.replace(/\[(.*?)\]/ig,"").replace(/\s\s+/g," ").trim(),e})).then(e=>{l(e)}).catch(e=>{e.message=`No results returned by search v5 for taxo ${Object.keys(o).join(", ")}`,rX.error(e)})},[]),(0,M.jsx)(r7,{title:a,terms:u})},[ob]:e=>{let{data:t={}}=e;return(0,M.jsx)(nf,{cards:t?.promoTabs,dataFeature:"Footer Promotional Widget"})},[ow]:()=>{let e=(0,j.useContext)(P.SettingsContext),t=e?.slug??!1;return(0,M.jsx)(nd,{siteKey:t})},[oO]:e=>{let{data:t}=e,{general:r}=(0,j.useContext)(P.SettingsContext),{title:n}=t,o=r?.siteTitle,i=n?.replace(/site title/i,r?.siteTitle??"");return(0,M.jsx)(nh.Z,nm(nm({},t),{},{registerUrl:er.NH,siteTitle:o,signInUrl:er.SA,title:i}))},[oS]:e=>{let{data:{categories:t,linkText:r,linkUrl:n,limit:o,pinnedContent:i},widgetArea:a}=e,s=(0,j.useContext)(P.PostContentContext),c=(0,j.useContext)(P.PostMetaContext),u=(0,j.useContext)(P.SettingsContext),l=(0,j.useContext)(P.PublicRuntimeContext),{0:f,1:p}=(0,j.useState)(!0),{0:d,1:h}=(0,j.useState)([]);return((0,j.useEffect)(()=>{(async()=>{s?.suppression?.disablePromoCarousel||(p(!0),h(await rN({context:{postContent:s,postMeta:c,settings:u,publicRuntime:l},widgetSettings:{categories:t,limit:o,type:["offer"],contentType:[],showCardLabels:!1,pinnedContent:i}})),p(!1))})()},[]),s?.suppression?.disablePromoCarousel)?"":(0,M.jsx)("div",{className:(()=>{if("post"===s.postType&&u?.offersSettings?.promoCarouselArticleMobileDisplay){if("belowHeader"===a)return"hidden-for-md-down";if("articleAboveContent"===a)return"hidden-for-lg"}return""})(),children:(0,M.jsx)(nw,{cards:d,loading:f,link:r&&n?{label:r,url:n}:null})})},[oj]:e=>{let{data:{widgetId:t}}=e,{suppression:r}=(0,j.useContext)(P.PostContentContext);return r?.disableOutbrain===!0?null:(0,M.jsx)(n_,{id:t})},[ox]:e=>{let{data:t={}}=e;return Object.keys(t).length?(0,M.jsx)(nf,{cards:[function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nP(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({buttonText:t.buttonLabel},t)],dataFeature:"Promotional Widget"}):null},[o_]:rO,[oP]:()=>{let{recommendedCards:e}=(0,j.useContext)(P.PostContentContext);return(0,M.jsx)(rz,{recommendedCards:e})},[oE]:function(){let{entity:e}=(0,j.useContext)(P.PostMetaContext),{0:t,1:r}
65=(0,j.useState)(!1),{isPrivate:n,savedItem:o}=(0,j.useContext)(P.PostContentContext),[i,a,s,c]=(0,_.hv)(o??null,void 0!==o),u=` ${"recipe"===e?e:""}`.replace(/ +$/,"");return(0,M.jsxs)(M.Fragment,{children:[c&&(0,M.jsxs)("div",{className:"header__action-feedback body-copy-extra-small body-copy-bold form-feedback--invalid mt-xxs mb-sm ml-auto mr-auto text-center",role:"alert",children:[`${e.charAt(0).toUpperCase()+e.slice(1)} cannot be saved. `,w||(w=(0,M.jsx)("br",{})),"Please try again later."]}),(0,M.jsx)(nE,{dataFeature:"save",text:i?"Saved":`Save${u}`,mainIcon:i?"tick":"plus",subIcon:"dot-menu",disabled:n,showSubButton:!!i,onClickMain:s?null:a,onClickSub:i?()=>{r(!0),document.activeElement?.blur()}:null,mainGtmClass:"save-button",mainGtmComponentVariant:i?"saved":"save",subGtmClass:"add-to-collection-button",subAriaLabel:"Manage Collections"}),i&&(0,M.jsx)(oe,{show:t,onClose:()=>r(!1),savedItem:i,onDelete:()=>{a(),r(!1)}})]})},[oA]:e=>{let{data:t={playlistId:void 0,autoDetectAmazonLinks:!1}}=e,r=(0,j.useContext)(P.PostMetaContext),n=(0,j.useContext)(P.SettingsContext),{clientId:o,postId:i}=r,{scriptUrl:a,enabled:s}=n.squirrel||{};return(0,M.jsx)(P.PostMetaContext.Provider,{value:r,children:(0,M.jsx)(ot.Z,{squirrelId:t.playlistId,enabled:s,type:"playlist",scriptUrl:a,autoDetectAmazonLinks:t.autoDetectAmazonLinks,postId:i,clientId:o,consent:{id:"68b7076d8b5a298b0a8aa8c5",purposes:[1,2,3,4,5,6,7,8,9,10,11]}})})},[ok]:e=>{let t,{data:r=null}=e;if(!r)return null;let{taxonomies:n}=r;if(!n||0===Object.keys(n).length)return null;let o=(0,j.useContext)(P.PostContentContext),i=e=>{let t=(0,_.rV)().archivePageConfig||{},r=Object.keys(t).filter(e=>t[e]?.enabled).map(e=>({key:e,slug:t[e].url.replace(/^\/|\/$/g,"")}));return r&&0!==r.length&&r.find(t=>t.key===e)?.slug||e},{taxonomies:a=[]}=o,s=n.map(e=>a.map(t=>{let r=t.terms||[];return t.slug===e?t:r.some(t=>t.taxonomy===e)?t:null})).flat().filter(e=>null!==e);return s.length?(s.forEach(e=>{let r=e.terms.map(t=>{let r;return r=t.parent||"category"!==t.taxonomy?t.parent?`/${i(t.parent.slug??"")}/${t.slug}/`:`/${i(e.slug||t.taxonomy||"")}/${t.slug}/`:`/${t.slug}/`,{label:t.display,url:r}});t=[...t||[],...r]}),(0,M.jsx)(on,{tagType:"outline",items:t})):null},[oC]:function(e){let{data:t={}}=e,{title:r="",link:n=null,categoryLabels:o,categories:i,articlesType:a,contentType:s,numberOfCardsToInclude:c=1,showDotsNavigation:u=!0,showAdvertisingCooperationLabel:l=!0,showSponsorLabel:f=!0,pinnedContent:p=[],showCardsNumber:d=!0,tags:h,tagsOperators:y,videoCarouselType:m="",videoCarouselAutoplay:g=!1}=t,v=(0,j.useContext)(P.PostContentContext),b=(0,j.useContext)(P.PostMetaContext),w=(0,j.useContext)(P.SettingsContext),O=(0,j.useContext)(P.PublicRuntimeContext),{disableEdiplayerPlaylist:S,disableEdiplayerAds:x,disableEdiplayerAutoplay:_}=v?.suppression||{},{0:E,1:A}=(0,j.useState)(!0),{0:k,1:C}=(0,j.useState)([]),N="show"===o||"use_customizer_settings"===o&&w?.cardSettings?.displayCategoryLabel;return(0,j.useEffect)(()=>{(async()=>{A(!0),C(await rN({context:{postContent:v,postMeta:b,settings:w,publicRuntime:O},widgetSettings:{categories:i,limit:c,type:a,contentType:s,showCardLabels:N,pinnedContent:p,tags:h,tagsOperators:y}})),A(!1)})()},[]),(0,M.jsx)(oo.Z,{loading:E,cards:"video_players"===m?k.map(e=>e.video?.type==="ediplayer"?oa(oa({},e),{},{video:{type:"ediplayer",data:{videoId:e.video.data.videoId,playerType:"carousel",postType:"page",keywords:[],breadcrumbs:[],disablePlaylist:S??!1,disableAutoplay:!0!==g||!!_,isAdult:v?.adultContent??!1,disableAds:x}}}):e.video?.type==="onnetwork"?oa(oa({},e),{},{video:{type:"onnetwork",data:{videoId:e.video.data.videoId}}}):e):k,link:n,showCardsNumber:d,showDotsNavigation:u,showSponsorLabel:f,title:r,showAdvertisingCooperationLabel:l,videoCarouselType:m})},[oN]:function(e){let{data:t,widgetArea:r}=e,n=(0,j.useContext)(P.PostContentContext),o=(0,j.useContext)(P.PostMetaContext),i=(0,j.useContext)(P.SettingsContext),a=(0,j.useContext)(P.PublicRuntimeContext),s="openweb-comment-added",{schemaId:c,client:u,clientId:l}=o||{},f=`${a.serviceConfig?.backendBasePath}/${s}`,{messageCount:p,socialReviews:d,readOnly:h,sortBy:y}=t,{spotId:m,seoEnabled:g}=i?.openWebSettings||{},{canonicalUrl:v,authors:b,openWebSettings:w,hideComments:O,postId:S,userRatings:x}=n||{},{avg:_,total:E}=x||{},A=b&&b.length>0&&b[0]?.id?.toString()||"";return!O&&m&&l?(0,M.jsxs)(M.Fragment,{children:[c&&void 0!==E&&E>=1&&(0,M.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/","@id":c,aggregateRating:{"@type":"AggregateRating",ratingValue:_,reviewCount:E,bestRating:5,worstRating:1}})}}),(0,M.jsx)(op,{articleUrl:v,authorId:A,client:u,clientId:l,disableReadOnly:!!w?.disableReadOnly||!h,disableSocialReviews:!!w?.disableSocialReviews||!d,eventUrl:f,id:"commentsFeed",messageCount:p,notificationType:s,placement:r,postId:S,seoEnabled:g,sortBy:y,spotId:m})]}):null},[oT]:e=>{let{data:t={categories:[],content:"",displayOnAllCategories:!1}}=e,{categories:r=[],content:n="",displayOnAllCategories:o=!1}=t,i=(0,j.useContext)(P.PostContentContext);return i?.taxonomies&&(o||i.taxonomies.some(e=>e.terms.some(e=>
65"category"===e.taxonomy&&r.includes(e.slug))))?(0,M.jsx)(na.Z,{className:"waring-notice-widget",children:n}):null},[oR]:e=>{let{data:t=null}=e,{text:r=""}=t||{};return"string"==typeof r&&r.trim()?(0,M.jsx)(na.Z,{className:"editor-content-widget",children:r}):null},[oI]:e=>{let{data:t}=e;return(0,M.jsx)("div",{"data-feature":"promotionalWidget","data-feature-variant":"promoLink",children:(0,M.jsx)(od.Z,{maxLines:3,hideButton:!0,children:(0,M.jsxs)(M.Fragment,{children:[t.text," ",(0,M.jsx)(et.Z,{styled:!0,href:t.link,children:t.linkText})]})})})}},oD={[o_]:(e,t)=>{let{entity:r}=e||{},{reactions:n}=t||{};if(!r||!n)return!1;let{postTypes:o=[]}=n,i=o?.find(e=>{let{type:t}=e;return t===r});if(!i)return!1;let{hasReactions:a,hasRatings:s,canAddReactions:c,canAddRatings:u}=i?.options||{};return!!a||!!s||!!c||!!u}};function oM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let oF=(e,t)=>{if(!(e in oL))throw Error(`The ID "${e}" does not exist in the components manifest`);return{componentId:e,getProps:t}},oU=e=>{let{index:t,componentId:r,props:n={}}=e,o=oL[r];return(0,j.createElement)(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oM(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({key:r+JSON.stringify(n)+t},n))},oZ=async(e,t)=>{let{componentId:r,getProps:n}=e;return{componentId:r,props:n?n(t??{}):{}}},oB={"im-featured-terms":ov,"newsletter-sign-up":oO,footer_promotional:ob,im_burdaffi_legal_notice_widget:oh,im_burdaffi_widget:oy,im_carousel_card_widget:om,im_dynamic_related_content_widget:og,im_offer_promo_carousel_widget:oS,im_outbrain_widget:oj,im_recipe_recommendations:oP,im_squirrel_widget:oA,im_tag_cloud_widget:ok,promotional:ox,im_carousel_video_widget:oC,im_openweb_widget:oN,im_warning_notice_widget:oT,promo_link_text:oI,text:oR},o$={aboveFooter:"above_footer",articleHeader:"article_header",articleAboveContent:"article_above_content",articleBelowContent:"article_below_content",articleFooter:"article_footer",articleSidebar:"article_sidebar",belowHeader:"below_header",competitionBelowContent:"competition_below_content",competitionFooter:"competition_footer",competitionSidebar:"competition_sidebar",glossaryFooter:"glossary-item_footer",glossaryNavbar:"glossary-item_nav_bar",glossarySidebar:"glossary-item_sidebar",howToBelowContent:"how_to_below_content",howToFooter:"how_to_footer",howToSidebar:"how_to_sidebar",listBelowContent:"list_below_content",listFooter:"list_footer",listMeta:"list_meta",listSidebar:"list_sidebar",liveBlogBelowContent:"live-blog_below_content",liveBlogFooter:"live-blog_footer",liveBlogSidebar:"live-blog_sidebar",pageBottom:"page_bottom",plantBelowContent:"plant_below_content",plantFooter:"plant_footer",plantSidebar:"plant_sidebar",recipeHeader:"recipe_header",recipeAboveContent:"recipe_above_content",recipeBelowContent:"sxs-recipe_below_content",recipeBelowIngredients:"recipe_below_ingredients",recipeFooter:"recipe_footer",recipeSidebar:"sxs-recipe_sidebar",reviewBelowContent:"reviews_below_content",reviewContentBottom:"reviews_content_bottom",reviewFooter:"reviews_footer",reviewSidebar:"reviews_sidebar",searchSidebar:"search_sidebar",showFooter:"bs-show_footer",showSidebar:"show_sidebar",streamingHomepageBelowContent:"broadcast_content_streaming_homepage_below_content",streamingHomepageFooter:"broadcast_content_streaming_homepage_footer",streamingHomepageSidebar:"broadcast_content_streaming_homepage_sidebar"},oG=(e,t)=>
65{let r;if(t?.widgetAreas&&e&&o$[e]){let n=t.widgetAreas.find(t=>t.name===o$[e]);r=n?.widgets}return r?r.filter(e=>oB[e.type]).map(t=>oF(oB[t.type],()=>({data:t.data,widgetArea:e}))):[]},oz=null,oq=[oF(oE)],oH=null,oV=null,oW=null;function oK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oY(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oK(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oK(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let oQ=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:oY(oY({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"feed"}})],oX=null;function oJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o0(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oJ(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oJ(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let o1=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:o0(o0({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"skiplink"}})],o2=null,o3=[oF(oE)],o8=null,o6=null,o4=null,o5=[oF(oE)],o7=null,o9=null,ie=null,it=null,ir=[oF(oE)],io=null,ii=null,ia=null,is=[oF(og,e=>{let{settings:t={}}=e;return{data:{categories:[],hideOnMobile:!1,layout:"horizontal",limit:3,showCardLabels:t?.hub?.recommendations?.showCardLabels,smallCardTitles:!0,title:t?.hub?.recommendations?.title,type:[t?.hub?.recommendations?.type]},widgetArea:"hubOverviewBelowContent"}})],ic=[oF(og,e=>{let{settings:t={}}=e;return{data:{categories:[],hideOnMobile:!1,layout:"horizontal",limit:3,showCardLabels:t?.hub?.recommendations?.showCardLabels,smallCardTitles:!0,title:t?.hub?.recommendations?.title,type:[t?.hub?.recommendations?.type]},widgetArea:"hubSavedItems"}})],iu=[oF(oE)],il=null,ip=null,id=null;function ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ih(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ih(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let im=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:iy(iy({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"skiplink"}})],ig=null,iv=[oF(oE)],ib=null,iw=null,iO=null,iS=null,ij=[oF(oE)],ix=null,i_=null,iP=null,iE=[oF(ow)],iA=[oF(oE)],ik=null,iC=null,iN=null;function iT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iT(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let iR=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:iI(iI({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"feed"}})],iL=null,iD=null;function iM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iF(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?iM(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let iU=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:iF(iF({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"skiplink"}})],iZ=null,iB=null,i$=[oF(oE)],iG=null;function iz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iz(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iz(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let iH=[oF(o_,e=>{let{postMeta:t={},postContent:r={}}=e;return{canonicalUrl:r.canonicalUrl,postData:iq(iq({},t),{},{postId:t?.clientId,postType:t?.entity}),userRatings:r.userRatings,variant:"feed"}})],iV=null,iW=null,iK=null,iY=[oF(oE)],iQ=null,iX=null,iJ=null,i0=null,i1=null,i2=[oF(oE)],i3=null;function i8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i6(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i8(Object(r),!0).forEach(function(t){(0,S.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i8(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let i4=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach(r=>{let n=(e[r]??[]).map((e,t)=>i6(i6({},e),{},{index:t}));Object.defineProperty(t,r,{enumerable:!0,get:()=>n.map(oU)})}),t},i5=(e,t,r)=>{let n=oD[e];return!n||n(t,r)},i7=async e=>{let{areas:t=[],postMeta:r,settings:n}=e,o={},i=Object.keys(O).filter(e=>"default"!==e&&(!t.length||t.includes(e)));return await Promise.all(i.map(async t=>{let i=O[t],a=oG(t,n),s=[...Array.isArray(i)?i:[],...a].filter(e=>{let{componentId:t}=e;return i5(t,r,n)}),c=await Promise.all(s.map(async t=>{let r;try{r=await oZ(t,e)}catch(e){rX.error(e)}return r}));o[t]=c.filter(e=>void 0!==e)})),o}},8243:function(e,t,r){"use strict";let n;r.d(t,{y_:function(){return e9},ie:function(){return ti},jr:function(){return e8},hv:function(){return tr},rV:function(){return e6}});var o={};r.r(o),r.d(o,{collections:function(){return d},content:function(){return h},conversions:function(){return y},entitlements:function(){return m},reactions:function(){return g},search:function(){return v},searchRelevancy:function(){return w},searchv6:function(){return b},settings:function(){return j},subscriptions:function(){return x},ugr:function(){return _},webhooks:function(){return P}});var i={};r.r(i),r.d(i,{DeleteUserPreference:function(){return N},GetHealth:function(){return A},GetUserPreference:function(){return k},SetUserPreference:function(){return C}});var a={};r.r(a),r.d(a,{config:function(){return E},operations:function(){return i}});var s={};r.r(s),r.d(s,{GetChannelById:function(){return L},GetChannelGroups:function(){return I},GetChannelsByGroupId:function(){return R},GetContentBroadcastsById:function(){return U},GetContentById:function(){return F},GetContentSearch:function(){return J},GetContentSearchGeneric:function(){return ee},GetDataDictionaryCategories:function(){return $},GetDataDictionaryGenres:function(){return Z},GetDataDictionarySVODProviders:function(){return B},GetDiscoverableMappings:function(){return Y},GetDiscoverableMappingsCount:function(){return K},GetForChannel:function(){return X},GetHealthCheck:function(){return G},GetHealthCheckSystem:function(){return z}
65,GetLatestFromSvodProvider:function(){return er},GetMappings:function(){return W},GetMappingsById:function(){return H},GetMappingsByMetabroadcastId:function(){return q},GetMappingsCount:function(){return V},GetMappingsStats:function(){return Q},GetRegions:function(){return D},GetRelatedContentBySvodProvider:function(){return en},GetSVODDataSearch:function(){return et},GetTVProviders:function(){return M}});var c={};r.r(c),r.d(c,{config:function(){return T},operations:function(){return s}});var u={};r.r(u),r.d(u,{broadcast:function(){return c},preference:function(){return a}});var l=r(67294),f=r(8307),p=r(96911),d={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://collections.staging-api.immediate.co.uk",preproduction:"https://collections.preproduction-api.immediate.co.uk",production:"https://collections.api.immediate.co.uk"},endpoints:{collections:{endpoint:"/v1/collections"},savedItems:{endpoint:"/v1/saved_items"},itemConnections:{endpoint:"/v1/item_connections"},userOverview:{endpoint:"/v1/user_overview"}}},h={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://content.staging-api.immediate.co.uk",preproduction:"https://content.preproduction-api.immediate.co.uk",production:"https://content.api.immediate.co.uk"},endpoints:{recipes:{endpoint:"/v1/recipes"},editorialLists:{endpoint:"/v1/editorial_lists"},posts:{endpoint:"/v1/posts"},glossaries:{endpoint:"/v1/glossaries"},howTos:{endpoint:"/v1/how_tos"},plants:{endpoint:"/v1/plants"},reviews:{endpoint:"/v1/reviews"},venues:{endpoint:"/v1/venues"},shows:{endpoint:"/v1/broadcast_services_shows"},pages:{endpoint:"/v1/pages"},liveBlogs:{endpoint:"/v1/live_blogs"},appScreens:{endpoint:"/v1/app_screens"}}},y={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://conversions.staging-api.immediate.co.uk",preproduction:"https://conversions.preproduction-api.immediate.co.uk",production:"https://conversions.api.immediate.co.uk"},endpoints:{recipes:{endpoint:"/api/conversion"}}},m={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://entitlements-api-staging.headless-sandbox.imdserve.com",preproduction:"https://entitlements-api-preproduction.headless-preproduction.imdserve.com",production:"https://entitlements-api-production.headless.imdserve.com"},endpoints:{entitlements:{endpoint:"/api/entitlements"},me:{endpoint:"/api/users/me/entitlement"},linkSubscription:{endpoint:"/api/link-subscription"}}},g={settings:{mimeType:"application/ld+json",corsEnabled:!0},environments:{staging:"https://reactions.staging-api.immediate.co.uk",preproduction:"https://reactions.preproduction-api.immediate.co.uk",production:"https://reactions.api.immediate.co.uk"},endpoints:{reactions:{endpoint:"/api/reactions"},aggregateRatings:{endpoint:"/api/aggregate_ratings"},likes:{endpoint:"/api/likes"},ratings:{endpoint:"/api/ratings"},replies:{endpoint:"/api/replies"},comments:{endpoint:"/api/comments"},questions:{endpoint:"/api/questions"},tips:{endpoint:"/api/tips"}}},v={settings:{mimeType:"application/ld+json",corsEnabled:!1,m2mClientName:"search-api-client"},environments:{staging:"https://search.staging-api.immediate.co.uk",preproduction:"https://search.preproduction-api.immediate.co.uk",production:"https://search.api.immediate.co.uk"},endpoints:{searchv5:{endpoint:"/v5/search/{siteKey}",hasPlaceholders:!0,appendLanguage:!0},searchv5Documents:{endpoint:"/v5/search_documents"},batch:{endpoint:"/v5/batch"},terms:{endpoint:"/v5/terms"}}},b={settings:{mimeType:"application/json",corsEnabled:!1,m2mClientName:"search-api-client",apiKeyEnvVar:"SEARCH_V6_API_KEY",apiKeyHeaderName:"X-API-KEY"},environments:{staging:"https://searchv6-qf.staging-api.immediate.co.uk",preproduction:"https://searchv6-qf.preproduction-api.immediate.co.uk",production:"https://searchv6-qf.api.immediate.co.uk"},endpoints:{search:{endpoint:"/v2/api/{siteKey}/search",hasPlaceholders:!0},hybrid:{endpoint:"/v2/api/{siteKey}/hybrid",hasPlaceholders:!0},batch:{endpoint:"/v2/api/{siteKey}/batch",hasPlaceholders:!0},completion:{endpoint:"/v2/api/{siteKey}/completion",hasPlaceholders:!0}}},w={settings:{mimeType:"application/json",corsEnabled:!1,m2mClientName:"search-api-client",apiKeyEnvVar:"SEARCH_RELEVANCY_API_KEY",apiKeyHeaderName:"X-API-KEY"},environments:{staging:"https://staging-api.srchv6.headless-sandbox.imdserve.com",preproduction:"https://staging-api.srchv6.headless-preproduction.imdserve.com",production:"https://staging-api.srchv6.headless.imdserve.com"},endpoints:{query:{endpoint:"/v2/content/queryLogs"},click:{endpoint:"/v2/content/clickLogs"}}};function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?O(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://settings.staging-api.immediate.co.uk",preproduction:"https://settings.preproduction-api.immediate.co.uk",production:"https://settings.api.immediate.co.uk"},endpoints:{clients:{endpoint:"/v1/settings/clients",mocks:e=>S(S({},e),{},{get:async t=>{let r=await e.get(t),n=r.isEtag?r.data:r;return r.isEtag&&!n?r:r.isEtag?S(S({},r),{},{data:n}):n}})}}},x={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://subscriptions-api-staging.headless-sandbox.imdserve.com",preproduction:"https://subscriptions-api-preproduction.headless-preproduction.imdserve.com",production:"https://subscriptions-api-production.headless.imdserve.com"},endpoints:{voucherValidate:{endpoint:"/voucher-code/validate"},voucherRedeem:{endpoint:"/voucher-code/redeem"}}},_={settings:{mimeType:"application/ld+json",corsEnabled:!1,m2mClientName:"ugr-api-client"},environments:{staging:"https://ugr.staging-api.immediate.co.uk",preproduction:"https://ugr.preproduction-api.immediate.co.uk",production:"https://ugr.api.immediate.co.uk"},endpoints:{recipes:{endpoint:"/v1/recipes"}}},P={settings:{mimeType:"application/ld+json",corsEnabled:!1},environments:{staging:"https://webhooks.staging-api.immediate.co.uk",preproduction:"https://webhooks.preproduction-api.immediate.co.uk",production:"https://webhooks.api.immediate.co.uk"},endpoints:{mobileBffStaging:{endpoint:"/webhooks/mobile-bff-staging"},mobileBffPreproduction:{endpoint:"/webhooks/mobile-bff-preprod"},mobileBffProduction:{endpoint:"/webhooks/mobile-bff"},wordpress:{endpoint:"/webhooks/wordpress"}}},E={discoveryUrl:"https://preference.preproduction-api.immediate.co.uk/docs/v1/swagger.json",environments:{staging:"https://preference.staging-api.immediate.co.uk",preproduction:"https://preference.preproduction-api.immediate.co.uk",production:"https://preference.api.immediate.co.uk"},defaultHeaders:{"Content-Type":"text/plain"}};let A={endpoint:"/healthcheck",method:"get"},k={endpoint:"/user-preference/{key}",method:"get"},C={endpoint:"/user-preference/{key}",method:"post"},N={endpoint:"/user-preference/{key}",method:"delete"};var T={discoveryUrl:"https://broadcast-services.preproduction-api.immediate.co.uk/docs/v1/swagger.json,",environments:{staging:"https://broadcast-services.staging-api.immediate.co.uk",preproduction:"https://broadcast-services.preproduction-api.immediate.co.uk",production:"https://broadcast-services.api.immediate.co.uk"},defaultHeaders:{"Content-Type":"application/json",accept:"application/json"},qsOptions:{arrayFormat:"comma"}};let I={endpoint:"/channel/groups",method:"get"},R={endpoint:"/channel/group/{id}",method:"get"},L={endpoint:"/channel/{id}",method:"get"},D={endpoint:"/channel/regions/{network}",method:"get"},M={endpoint:"/channel/providers",method:"get"},F={endpoint:"/content/{id}",method:"get"},U={endpoint:"/content/{id}/broadcasts",method:"get"},Z={endpoint:"/data-dictionary/genres",method:"get"},B={endpoint:"/data-dictionary/svod-providers",method:"get"},$={endpoint:"/data-dictionary/categories",method:"get"},G={endpoint:"/healthcheck",method:"get"},z={endpoint:"/healthcheck/system",method:"get"},q={endpoint:"/mappings/by-metabroadcast-id/{mbId}",method:"get"},H={endpoint:"/mappings/{id}/repid",method:"get"},V={endpoint:"/mappings/count",method:"get"},W={endpoint:"/mappings",method:"get"},K={endpoint:"/mappings/discoverable/count",method:"get"},Y={endpoint:"/mappings/discoverable",method:"get"},Q={endpoint:"/mappings/stats",method:"get"},X={endpoint:"/channels/{channelId}/schedule",method:"get"},J={endpoint:"/content/search",method:"get"},ee={endpoint:"/content/search/generic",method:"get"},et={endpoint:"/content/search/svod",method:"get"},er={endpoint:"/svod/{provider}/latest",method:"get"},en={endpoint:"/svod/content/{id}/related/by-provider",method:"get"},eo=()=>u;var ei=r(25044),ea=r.n(ei),es=r(9669),ec=r.n(es),eu=r(4730);let el=["data"];function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?ef(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ed=e=>({success:t=>{if("GET"!==t.method.toUpperCase())throw Error("Etag requests can only be made with GET requests.");return e&&(t.headers["If-None-Match"]=e,t.validateStatus=e=>304===e||e>=200&&e<300),t}}),eh=e=>({success:t=>{let{data:r}=t,n=(0,eu.Z)(t,el);return 304===t.status?ep({data:{etag:e,isEtag:!0}},n):r&&t.headers?.etag?ep({data:{data:r,etag:t.headers.etag,isEtag:!0}},n):ep({data:{data:r,isEtag:!0}},n)}});r(34155);let ey=async e=>{throw Error("getM2MToken should not be called on the client side")};var em=e=>{let{m2mClientName:t}=e;return{success:async e=>{if(t)try{let r=await ey(t);r?(p.logger.debug(`Successfully retrieved m2m token for ${t}`),e.headers.Authorization=`Bearer ${r}`):p.logger.warn(`Received empty m2m token for ${t} from response`)}catch(e){throw p.logger.error(`Failed to get m2m token for ${t}:`,e),e}return e},error:e=>Promise.reject(e)}},eg=e=>{let{apiKey:t,headerName:r="X-API-KEY"}=e;return{success:async e=>(t&&(e.headers=e.headers||{},e.headers[r]||(e.headers[r]=t)),e),error:e=>Promise.reject(e)}},ev=e=>{let{refreshToken:t}=e;return{success:e=>e,error:async e=>{let{config:r}=e;if(e.response&&401===e.response.status&&r.headers.Authorization&&!r._retry){r._retry=!0;let n=await t();return n?(r.headers.Authorization=`Bearer ${n}`,ec()(r)):Promise.reject(e)}return Promise.reject(e)}}},eb=e=>{let{getToken:t}=e;return{success:async e=>{let r=await t();return e.headers.Authorization=r?`Bearer ${r}`:null,e},error:e=>Promise.reject(e)}};let ew=["request","response","config"];function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ej=(e,t)=>{let r,{request:n,response:o,config:i}=t,a=(0,eu.Z)(t,ew),s=new Date,c={};if(!i)return c;let u=i.params?`?${i.paramsSerializer(i.params)}`:"",l=new URL(`/${i.url}${u}`.replace(/\/\//g,"/"),i.baseURL),{headers:f={}}=i;delete f?.cookie,delete f?.Authorization;let p=Object.keys(f).reduce((e,t)=>(e[t.toLowerCase()]=f[t],e),{});try{r=JSON.parse(i.data)}catch(e){r=i.data}try{c=eS({duration:(s-i._startTime)*1e6,correlationId:p["x-correlation-id"],http:{url:l.href,status_code:o?.status,method:i?.method?.toUpperCase(),referer:p.referer||p.referrer,useragent:p["user-agent"],headers:f,contentLength:o?.headers["content-length"],payload:r,url_details:{host:l.hostname,port:l.port,path:l.pathname,queryString:i.params,scheme:l.protocol.replace(":","")}}},a)}catch(t){e.error(t)}return c},ex=()=>({success:e=>(e._startTime=new Date,e)}),e_=e=>!Number.isFinite(e)||e>=500?"error":e>=400?"warn":"debug",eP=function(e){let{apiName:t,getLogLevel:r=e_,getExtraLogAttributes:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=`${t?t.charAt(0).toUpperCase()+t.slice(1):""} API`.trim();return{success:t=>{let{config:i,request:a,status:s}=t||{};return(0,e[r(s)])(`${o} Request`,ej(e,eS(eS({},n?.()),{},{config:i,response:t,request:a,api:o}))),t},error:t=>{let{config:i,request:a,response:s,message:c}=t,{data:u,status:l}=s||{};throw(0,e[r(l)])(Error(c?`${o} Error: ${c}`:`${o} Error`),ej(e,eS(eS({},n?.()),{},{config:i,request:a,response:s,api:o,data:u}))),t}}};var eE=()=>({success:e=>e,error:async e=>{let{config:t,request:r,code:n}=e,{reusedSocket:o}=r||{};return o&&"ECONNRESET"===n&&!t._econnresetRetry?(t._econnresetRetry=!0,ec()(t)):Promise.reject(e)}}),eA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ek=new Uint8Array(16),eC=[];for(let e=0;e<256;++e)eC.push((e+256).toString(16).slice(1));var eN=function(e,t,r){if(eA.randomUUID&&!t&&!e)return eA.randomUUID();let o=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(ek)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}
65return function(e,t=0){return eC[e[t+0]]+eC[e[t+1]]+eC[e[t+2]]+eC[e[t+3]]+"-"+eC[e[t+4]]+eC[e[t+5]]+"-"+eC[e[t+6]]+eC[e[t+7]]+"-"+eC[e[t+8]]+eC[e[t+9]]+"-"+eC[e[t+10]]+eC[e[t+11]]+eC[e[t+12]]+eC[e[t+13]]+eC[e[t+14]]+eC[e[t+15]]}(o)};let eT=e=>{let t=`${Date.now()}-${eN()}`;return e??t};var eI=r(34155);function eR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eR(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class eD{constructor(){let{baseURL:e,mimeType:t,getToken:r,refreshToken:n,m2mClientName:o,debug:i=!0,getLogLevel:a,getExtraLogAttributes:s,logger:c,apiName:u,defaultHeaders:l,correlationId:p,qsOptions:d={arrayFormat:"brackets"},requiresM2MTokenForSearch:h=!1,apiKeyEnvVar:y,apiKeyHeaderName:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,f.Z)(this,"withEtag",(e,t)=>{let r=ed(e),n=eh(e),o=this.axios.interceptors.request.use(r.success),i=this.axios.interceptors.response.use(n.success),a=t();return this.axios.interceptors.request.eject(o),this.axios.interceptors.response.eject(i),a}),!e)throw TypeError("A baseURL must be provided.");this.metadata={clientIds:[]};let g={baseURL:e,headers:l||{"Content-Type":"application/json",accept:t||"application/json","X-Correlation-ID":eT(p)},paramsSerializer:e=>ea().stringify(e,d)};this.axios=ec().create(g),this.setupInterceptors({getToken:r,refreshToken:n,m2mClientName:o,debug:i,getLogLevel:a,getExtraLogAttributes:s,logger:c,apiName:u,requiresM2MTokenForSearch:h,apiKeyEnvVar:y,apiKeyHeaderName:m})}setupInterceptors(e){let{getToken:t,refreshToken:r,m2mClientName:n,debug:o,getLogLevel:i,getExtraLogAttributes:a,logger:s,apiName:c,requiresM2MTokenForSearch:u,apiKeyEnvVar:l,apiKeyHeaderName:f}=e;n&&u?this.setupM2MTokenInterceptor({m2mClientName:n}):t&&this.setupGetTokenInterceptor({getToken:t}),r&&this.setupRefreshTokenInterceptor({refreshToken:r}),l&&void 0!==eI&&this.setupApiKeyInterceptor({apiKey:eI.env?.[l],headerName:f}),o&&this.setupDebugInterceptors(s,{apiName:c,getLogLevel:i,getExtraLogAttributes:a})}setupM2MTokenInterceptor(e){let{m2mClientName:t}=e,r=em({m2mClientName:t});this.axios.interceptors.request.use(r.success,r.error)}setupApiKeyInterceptor(e){let{apiKey:t,headerName:r}=e,n=eg({apiKey:t,headerName:r});this.axios.interceptors.request.use(n.success,n.error)}setupRefreshTokenInterceptor(e){let{refreshToken:t}=e,r=ev({refreshToken:t});this.axios.interceptors.response.use(r.success,r.error)}setupGetTokenInterceptor(e){let{getToken:t}=e,r=eb({getToken:t});this.axios.interceptors.request.use(r.success,r.error)}setupDebugInterceptors(e,t){let{apiName:r,getLogLevel:n,getExtraLogAttributes:o}=t,i=ex(),a=eP(e,{apiName:r,getLogLevel:n,getExtraLogAttributes:o});this.axios.interceptors.request.use(i.success,i.error),this.axios.interceptors.response.use(a.success,a.error)}setupEconnresetInterceptor(){let e=eE();this.axios.interceptors.response.use(e.success,e.error)}async request(e,t){let{data:r}=await this.axios.request(e,t);return r}async get(e,t){let r=await this.request(e,eL(eL({},t),{},{method:"GET"}));if(r){if(r["hydra:member"]){let e=r["hydra:member"].map(e=>e.clientId).filter(e=>void 0!==e);this.metadata.clientIds.push(...e)}r.clientId&&this.metadata.clientIds.push(r.clientId)}return r}async post(e,t){return this.request(e,eL(eL({},t),{},{method:"POST"}))}async put(e,t){return this.request(e,eL(eL({},t),{},{method:"PUT"}))}async delete(e,t){return this.request(e,eL(eL({},t),{},{method:"DELETE"}))}}function eM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eF(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?eM(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eU=e=>{let t=e.toLowerCase(),r=["staging","preproduction","production"];if(0>r.indexOf(t))throw TypeError(`Unknown environment: must be one of ${r.join(", ")}, got "${t}"`)};var eZ=e=>{let{apiName:t,baseURLs:r={},env:n,useProxyApi:i}=e,a=Object.entries(eo()).reduce((e,t)=>{let[r,{config:n}]=t;return eF(eF({},e),{},{[r]:n})},{});if(!(t in o)&&!(t in a))throw TypeError(`Could not find a config file for API with name "${t}"`);let{environments:s={},settings:{corsEnabled:c=!1}={}}=a[t]||o[t]||{};eU(n);let u=r[t]||s[n];if(c&&!i&&(u=s[n]),!u)throw Error(`No base URL could be found for the "${t}" "${n}" environment`);return u},eB=r(34078),e$=r.n(eB),eG=r(88143);function ez(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ez(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ez(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eH=(e,t,r,n)=>{let o=Object.keys(e).filter(e=>e).reduce((t,r)=>(t[r]=e[r],t),{});if(o.sitekey||(o.client=t),o?.search&&o?.search.length>250){let e=o.search.substring(0,250),t=e.substr(0,Math.min(e.length,e.lastIndexOf(" ")));o.search=t}if(r&&delete o.sitekey,n){let{language:e="en"}=eG.tc[t],[r]=e.split("-");o.lang=r}return o},eV=(e,t,r)=>r?e.replace(/\{siteKey\}/g,t):e;var eW=(e,t,r,n,o,i)=>{let{endpoint:a,mocks:s}=n,c=eV(a,r,o),u={get:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw TypeError("An id must be given for the entity to get, perhaps you want the filter() function.");return e.get(e$()(c,t.toString()),{params:r})},create:(t,r)=>{if(!t)throw TypeError("Some data must be given to create an entity.");return e.post(c,eq({data:t},r))},delete:t=>{if(!t)throw TypeError("An id must be given for the entity to delete.");return e.delete(e$()(c,t.toString()))},update:(t,r)=>{if(!t)throw TypeError("An id must be given for the entity to update.");if(!r)throw TypeError("Some data must be given to update an entity.");return e.put(e$()(c,t.toString()),{data:r})},filter:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.get(c,{params:eH(t,r,o,i)})},find:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=await e.get(c,{params:eH(eq(eq({},t),{},{limit:1}),r,o,i)});return n?.["hydra:member"]?.[0]}};if(s){let e=s(eq({},u),t);Object.keys(e).forEach(t=>{u[t]=e[t]})}return u};function eK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eY(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eK(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eK(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let eQ=(e,t)=>Object.entries(e||{}).reduce((e,r)=>
65{let[n,o]=r;return RegExp(`{${n}}`).test(t)?e.pathParams[n]=o:e.queryParams[n]=o,e},{queryParams:{},pathParams:{}}),eX=(e,t)=>{let r=e;Object.entries(t).forEach(e=>{let[t,n]=e;r=r.replace(RegExp(`{${t}}`),n)});let n=r.match(/\{.*\}/g);if(n?.length)throw Error(`Missing required path parameter(s): ${n.join(", ")}`);return r},eJ=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{endpoint:o,method:i}=t,{queryParams:a,pathParams:s}=eQ(r,o),c=eX(o,s),u={method:i};return Object.keys(n).length&&(u.data=n),Object.keys(a).length&&(u.params=a),e.request(c,u)},e0=e=>{let{env:t,getToken:r,refreshToken:n,getLogLevel:o,getExtraLogAttributes:i,logger:a,correlationId:s,baseURLs:c={},useProxyApi:u,requiresM2MTokenForSearch:l=!1}=e;return Object.entries(eo()).reduce((e,f)=>{let[d,{operations:h,config:y}]=f,{defaultHeaders:m,qsOptions:g}=y||{},v=eZ({apiName:d,baseURLs:c,env:t,useProxyApi:u}),b=(0,p.createLogger)("fabric-api-clients"),w=new eD({apiName:d,baseURL:v,getToken:r,refreshToken:n,defaultHeaders:m,qsOptions:g,getLogLevel:o,getExtraLogAttributes:i,logger:a??b,correlationId:s,requiresM2MTokenForSearch:l});return e[d]=Object.entries(h).reduce((e,t)=>{let[r,n]=t;return eY(eY({},e),{},{[r]:(e,t)=>eJ(w,n,e,t),withEtag:w.withEtag,metadata:w.metadata})},{}),e},{})},e1=e=>{let{env:t,siteKey:r,getToken:n,refreshToken:i,getLogLevel:a,getExtraLogAttributes:s,logger:c,correlationId:u,baseURLs:l={},useProxyApi:f,requiresM2MTokenForSearch:d=!1}=e;return Object.keys(o).reduce((e,h)=>{let{settings:y,endpoints:m}=o[h],g=eZ({apiName:h,baseURLs:l,env:t,useProxyApi:f}),v=(0,p.createLogger)("fabric-api-clients"),b=new eD(eY({apiName:h,baseURL:g,getToken:n,refreshToken:i,m2mClientName:y.m2mClientName,getLogLevel:a,getExtraLogAttributes:s,requiresM2MTokenForSearch:d,logger:c??v,correlationId:u},y)),w=Object.keys(m).reduce((e,n)=>(e[n]=eW(b,t,r,m[n],m[n]?.hasPlaceholders,m[n]?.appendLanguage),e),{});return e[h]=eY(eY({},w),{},{withEtag:b.withEtag,metadata:b.metadata}),e},{})};var e2=e=>eY(eY({},e1(e)),e0(e)),e3=r(53958),e8=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{env:t,siteKey:r,apiBaseURLs:n}=(0,l.useContext)(e3.SiteContext),{useProxyApi:o}=e;return(0,l.useMemo)(()=>e2({env:t,siteKey:r,baseURLs:n,useProxyApi:o}),[t,r,n,o])},e6=()=>(0,l.useContext)(e3.SettingsContext),e4=r(34603),e5=r(68566),e7=r(21653);let e9=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},te=Object.freeze({root:"/account-settings",myDetails:"/account-settings/my-details",contactPreferences:"/account-settings/contact-preferences",mySubscriptions:"/account-settings/my-subscriptions"}),tt=Object.freeze({root:"/subscriptions/my-subscriptions",mySubscriptions:"/subscriptions/my-subscriptions",giftedSubscriptions:"/subscriptions/my-subscriptions/gifted",linkSubscription:"/subscriptions/my-subscriptions/link-subscription"});var tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{user:r}=(0,e5.Z)(),n=(0,e7.Z)(),{clientId:o,source:i,entity:a}=(0,l.useContext)(e3.PostMetaContext),s=(0,l.useContext)(e3.SiteContext),{layout:c,postId:u,postType:f,title:p}=(0,l.useContext)(e3.PostContentContext),d=e8(),{0:h,1:y}=(0,l.useState)(e),{0:m,1:g}=(0,l.useState)(!1),{0:v,1:b}=(0,l.useState)(!1),w=(0,l.useRef)(!1),O=(0,l.useCallback)(()=>{let e={client:s?.siteKey,clientId:o,source:i,entity:a,userId:r?.guid,userVanityRef:r?.vanityId};return Object.keys(e).reduce((t,r)=>{let n=e[r];return n&&(t[r]=n.toString()),t},{})},[s?.siteKey,o,i,a,r?.guid,r?.vanityId]),S=async()=>{y(await d.collections.savedItems.create(O())),e9({event:"content_save",item_id:u,item_name:p,content_type:f,feature:"save",component:"Button",placement:"PostHeader",placement_variant:c}),window.dispatchEvent(new Event("content_saved"))},j=(0,l.useCallback)(async()=>{y(await d.collections.savedItems.find(O())),g(!1),w.current=!0},[d.collections.savedItems,O]);(0,l.useEffect)(()=>{w.current||t||!n||!r||h||j()},[n,r,j,h,t]);let x=async()=>{h&&(await d.collections.savedItems.delete(h.id),y(null))},_=()=>{let e=new URL(e4.SA,window.location.href);window.location.assign(e.href)},P=async()=>
65{if(!m){if(!n){_();return}g(!0),b(!1);try{await (h?x:S)()}catch(e){if(g(!1),e.response?.status===401){_();return}throw b(!0),e}g(!1)}};return[h,P,m,v]},tn=r(22120);let to=e=>{let{label:t,target:r,setActiveParentOnPathnameMatch:n=!1}=e;return{label:t,target:r,setActiveParentOnPathnameMatch:n}};var ti=e=>{let{0:t,1:r}=(0,l.useState)(null),{user:n,isLoading:o}=(0,e5.Z)(),i=(0,e7.Z)(),a=e6(),{t:s}=(0,tn.$G)(),{accountSettings:{subscriptionsEnabled:c,subscriptionsLinksEnabled:u=!1}={},subscriptionVendors:f={},hub:p}=a||{},{zephr:d={}}=f||{},{enabled:h}=d||{},y=!0===h,m=(0,l.useCallback)(()=>{if(o||!i&&!n)return[];let e=window.location.pathname,t=e.startsWith(te.root),r=e.startsWith(tt.root),a=[to({label:s("pocketHooks.useAccountSettings.accountMenu.accountSettings"),target:te.myDetails})];if(c&&y&&a.push(to({label:"Subscriptions",target:tt.root})),a.push(to({label:s("pocketHooks.useAccountSettings.accountMenu.signOut"),target:e4.vL})),t&&(a[0].children=[to({label:s("pocketHooks.useAccountSettings.accountMenu.myDetails"),target:te.myDetails}),to({label:s("pocketHooks.useAccountSettings.accountMenu.contactPreferences"),target:te.contactPreferences})]),r&&c&&y){let e=a.find(e=>e.target===tt.root);e&&(e.children=[to({label:s("pocketHooks.useAccountSettings.accountMenu.mySubscriptions"),target:tt.mySubscriptions}),...u?[to({label:"Gifted Subscriptions",target:tt.giftedSubscriptions}),to({label:"Link a Subscription",target:tt.linkSubscription})]:[]])}return i&&!n||n?.vanityId&&p&&p?.enabled&&(p.ugc?.enabled&&a.unshift(to({label:p.ugc.label??"",target:`/user/${n.vanityId}/${p.ugc.href}`})),p.items&&[...p.items].reverse().forEach(e=>{a.unshift(to({label:e.pluralLabel??"",target:`/user/${n.vanityId}/${e.href}`,setActiveParentOnPathnameMatch:"collections"===e.key}))}),a.unshift(to({label:s("pocketHooks.useAccountSettings.accountMenu.overview"),target:`/user/${n.vanityId}`}))),a},[o,i,c,u,y,p,s,n]);return(0,l.useEffect)(()=>{let t=e?encodeURIComponent(`?redirect=${e}`):"";r({accountNavOptions:{label:p?.enabled&&p?.header?p.header:s("pocketHooks.useAccountSettings.accountNavOptions.label"),menuItems:m(),signInUrl:e4.SA,registerUrl:e4.NH,settingsUrl:`${te.myDetails}${t}`}})},[m,o,i,e,p?.enabled,p?.header,s,n]),t}},46935:function(e,t){"use strict";t.Z=void 0,t.Z=()=>window.location.hostname},82032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=r(46935).Z;t.default=n},296:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=c(r(82032)),s=c(r(74052));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let{req:e,defaultSiteKey:t="slate"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,a.default)(e),n=s.default[t],o=r.match(/^([a-z0-9-]+)\.frontend-services\.localhost$/i),c=o?.[1],u=Object.entries(s.default).find(e=>{let[t,{domain:n}]=e;return c?t===c:new RegExp(n).test(r)});if(!u&&!n)throw Error(`No site config could be established for the current host and the \`defaultSiteKey\` of "${t}" does not map to a known site.`);if(!u)return i({siteKey:t},n);let[l,f]=u;return i({siteKey:l},f)}},88143:function(e,t,r){"use strict";Object.defineProperty(t,"ZD",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tc",{enumerable:!0,get:function(){return n.default}});var n=i(r(74052)),o=i(r(296));function i(e){return e&&e.__esModule?e:{default:e}}},74052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={olivemagazine:{domain:"olivemagazine.com",theme:"im-olive-theme",adobeFontsId:"xnp5lep",business:"immediate",shortName:"OL",displayName:"olive Magazine"},radiotimes:{theme:"im-rt-theme",domain:"radiotimes.com",adobeFontsId:"fer7rij",language:"en-GB",dateTimeFormat:{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0},business:"immediate",shortName:"RT",displayName:"Radio Times"},radiotimesmoney:{theme:"im-rtmoney-theme",domain:"radiotimesmoney.com",adobeFontsId:"fer7rij",business:"immediate"},slate:{domain:"im-slate.com",theme:"im-slate-theme",adobeFontsId:"sts5pxq",business:"immediate",shortName:"SL",displayName:"Slate"},historyextra:{theme:"im-historyextra-theme",domain:"historyextra.com",adobeFontsId:"jgm6vxd",business:"immediate",shortName:"HEX",displayName:"HistoryExtra"},gardenersworld:{theme:"im-gw-theme",domain:"gardenersworld.com",adobeFontsId:"jrx3jsy",language:"en-GB",dateTimeFormat:{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0},business:"immediate",shortName:"GW",displayName:"Gardeners' World"},policies:{theme:"im-slate-theme",domain:"policies.immediate.co.uk",adobeFontsId:"snd2ukk",business:"immediate"},madeformums:{theme:"im-madeformums-theme",domain:"madeformums.com",adobeFontsId:"sqa2rfw",business:"immediate",shortName:"MFM",displayName:"MadeForMums"},bbcgoodfood:{domain:"bbcgoodfood.com",theme:"im-bbcgoodfood-theme",adobeFontsId:"xij0cqx",business:"immediate",shortName:"GF",displayName:"Good Food"},junior:{theme:"im-slate-theme",domain:"juniormagazine.co.uk",adobeFontsId:"qdj6zdx",business:"immediate"},therecommended:{theme:"im-therecommended-theme",domain:"therecommended.com",adobeFontsId:"gug4ypu",business:"immediate"},imlogging:{theme:"im-slate-theme",domain:"imlogging.co.uk",adobeFontsId:"sts5pxq",business:"immediate"},topgear:{theme:"im-topgear-theme",domain:"topgearmagazine.co.uk",adobeFontsId:"wcy5yrn",business:"immediate",shortName:"TG",dis
65playName:"Top Gear Magazine"},easycook:{theme:"im-easycook-theme",domain:"easycookmagazine.co.uk",adobeFontsId:"xij0cqx",business:"immediate",shortName:"EZC",displayName:"Easy Cook"},matchoftheday:{theme:"im-matchoftheday-theme",domain:"matchofthedaymagazine.co.uk",adobeFontsId:"yex1txn",business:"immediate",shortName:"MOTD",displayName:"Match of the Day Magazine"},imwebops:{theme:"im-slate-theme",domain:"imwebops.co.uk",adobeFontsId:"sts5pxq",business:"immediate"},varimerychle:{domain:"varimerychle.cz",theme:"im-slate-theme",adobeFontsId:"wkp2jvw",language:"cs-CZ",business:"bi"},platosricos:{domain:"platosricos.es",theme:"im-slate-theme",adobeFontsId:"yqi8jys",language:"es-ES",dateTimeFormat:{dateStyle:"full"},business:"bi"},saveurs:{theme:"bb-saveurs-theme",domain:"saveurs-magazine.fr",adobeFontsId:"hdc1ksx",language:"fr-FR",dateTimeFormat:{dateStyle:"full",timeStyle:"short"},business:"bi"},viva:{theme:"bmp-viva-theme",domain:"viva.pl",adobeFontsId:"cvt8iwj",language:"pl-PL",dateTimeFormat:{dateStyle:"full",timeStyle:"short"},business:"bmp"},party:{theme:"im-slate-theme",domain:"party.pl",adobeFontsId:"ogg0pql",language:"pl-PL",dateTimeFormat:{dateStyle:"full",timeStyle:"short"},business:"bmp"},wizaz:{theme:"bmp-wizaz-theme",domain:"wizaz.pl",adobeFontsId:"hbs6gcb",language:"pl-PL",dateTimeFormat:{dateStyle:"full",timeStyle:"short"},business:"bmp"},mamotoja:{theme:"bmp-mamotoja-theme",domain:"mamotoja.pl",adobeFontsId:"qev3hjz",language:"pl-PL",dateTimeFormat:{dateStyle:"full",timeStyle:"short"},business:"bmp"},kobieta:{theme:"im-slate-theme",domain:"kobieta.pl",adobeFontsId:"nns1bbi",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},"national-geographic-pl":{theme:"bmp-nationalgeographic-theme",domain:"national-geographic.pl",adobeFontsId:"bxi4upb",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},glamour:{theme:"bmp-glamour-theme",domain:"glamour.pl",adobeFontsId:"lmw7ypp",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},"elle-pl":{theme:"bmp-elle-theme",domain:"elle.pl",adobeFontsId:"hgr3hmn",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},polki:{theme:"bmp-polki-theme",domain:"polki.pl",adobeFontsId:"wnn6grf",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},mojegotowanie:{theme:"bmp-mojegotowanie-theme",domain:"mojegotowanie.pl",adobeFontsId:"avu8bad",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"},story:{theme:"bmp-story-theme",domain:"story.pl",adobeFontsId:"ldv0ozd",language:"pl-PL",dateTimeFormat:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},business:"bmp"}}},25241:function(e,t,r){"use strict";r.d(t,{i:function(){return y}});var n=r(11163),o=r.n(n),i=r(67294),a=(0,r(22207).createLogger)("speedcurve-lux");function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=function(e){if(e){var t=e.replace(/[-_]/g," ");window.LUX.label=t}},u=function(e,t){t&&window.LUX.addData(e,t)},l=function(){window.LUX.init()},f=function(){window.LUX.send()},p=function(e){(0,i.useEffect)(function(){return e?(o().events.on("routeChangeStart",l),o().events.on("routeChangeComplete",f),function(){o().events.off("routeChangeStart",l),o().events.off("routeChangeComplete",f)}):function(){}},[])},d=function(e){var t=e.label,r=e.siteKey,n=e.service,o=e.business,a=e.platform,l=e.data;(0,i.useEffect)(function(){c(t),u("site-key",r),u("service",n),u("business",o),u("platform",a),Object.entries(l).forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),2!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,2)}}
65(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u(t[0],t[1])})},[])},h=function(e){var t=((0,n.useRouter)()||{}).asPath;(0,i.useEffect)(function(){if(e){var r=null==t?void 0:t.split("?")[0];r&&window.LUX.addData("page-path",r)}},[t])},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,r=e.siteKey,n=e.service,o=e.business,i=e.platform,s=e.data,c=e.init,u=void 0!==c&&c,l=function(e){return function(){a.warn("window.LUX.".concat(e," was called before LUX was initialised. ")+"Please check that the inline LUX script has been added to the page.")}};window.LUX=window.LUX||{addData:l("addData"),init:l("init"),send:l("send")},window.LUX.debug=["debug","trace"].includes(localStorage.logLevel),d({label:t,siteKey:r,service:n,business:o,platform:i,data:void 0===s?{}:s}),p(u),h(u)}},91828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken"]},80231:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},82136:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)
65]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},22207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(82136);var o=r(99460);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(80231);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(91828),s=r(31734);t.enableAccessLogs=function(){}},99460:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(82136),a=[r(72158),r(15171)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},15171:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(31734);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},72158:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(31734);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,level:s[e.type]||"info",forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t,r=this.formatLogObject(e);((0,n.shouldLog)(e.type)||r.forcePush)&&(null===(t=window.DD_LOGS)||void 0===t?void 0:t.logger)&&e.level!==(0,n.getConsolaLevel)("log")&&e.level!==(0,n.getConsolaLevel)("trace")&&(r.forcePush||e.level===(0,n.getConsolaLevel)("error"))&&window.DD_LOGS.logger.log(r.message,r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},31734:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(91828);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);
65return r.searchParams.forEach(l),r}catch(e){return{}}}},85865:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(63144))&&n.__esModule?n:{default:n},i=r(19949),a=r(70437);let s=async function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=await (0,o.default)(e,r);try{t=new URL(n.url)}catch{}if(n.status>=400){let e=new i.VerboseError(n.statusText,t?{status:n.status>=500?"error":"warn",http:{url:t.href,status_code:n.status,method:"GET",headers:n.headers,url_details:{host:t.hostname,port:t.port,path:t.pathname,queryString:(0,a.parseQuery)(t),scheme:t.protocol.replace(":","")}},data:await n.text()}:{});throw e.statusCode=n.status,e}return n.json()};t.default=()=>async(e,t)=>{let r=Array.isArray(e),n=r?e:[e],o=await Promise.all(n.map(e=>s(e,t)));return r?o:o[0]}},99624:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let{default:n}=r(85865);t.default=n},77216:function(e,t,r){"use strict";Object.defineProperty(t,"dD",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(99624))&&n.__esModule?n:{default:n}},70437:function(e,t,r){"use strict";var n,o=r(20968);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyQuery=t.parseQuery=void 0;var s=(n=r(35536))&&n.__esModule?n:{default:n};let c={arrayFormat:"brackets"};t.parseQuery=e=>{let{search:t}=e instanceof URL?e:new URL(e,"http://temp"),r=t.replace(/^\?/,"");return s.default.parse(r,c)},t.stringifyQuery=e=>s.default.stringify(e,a(a({},c),{},{encodeValuesOnly:!0}))},91381:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_KEYS=void 0,t.SENSITIVE_KEYS=["username","firstname","lastname","screenname","phone","phonenumber","mobile","mobilenumber","telephone","telephonenumber","email","useremail","address","town","city","county","state","country","postcode","zipcode","accesstoken","refreshtoken","idtoken"]},53503:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.VerboseError=void 0;var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var t,n=(t=i(),function(){var e,n=s(o);return e=t?Reflect.construct(n,arguments,s(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function o(e,t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,e)).name="VerboseError",r.logAttrs=t,r}return o}(n(Error));t.VerboseError=c},26274:function(e,t,r){"use strict";
65Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobalLogger=t.getGlobalObject=void 0;var n="logger",o=function(){var e=window;return e.IM=e.IM||{},e.IM};t.getGlobalObject=o;var i=function(e){var t=o();if(!t[n])return t[n]=e,e;var r=Object.create(t[n]);return Object.keys(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.getOwnPropertySymbols(t[n]).forEach(function(e){r[e]=t[n][e],delete t[n][e]}),Object.keys(e).forEach(function(r){t[n][r]=e[r]}),Object.getOwnPropertySymbols(e).forEach(function(r){t[n][r]=e[r]}),r};t.setGlobalLogger=function(e){var t=Object.keys(e._types),a=o(),s=a[n]||{},c=Object.keys(s),u=s.queue;t.find(function(e){return!c.includes(e)})&&(i(e),r.g.consola&&delete r.g.consola,t.forEach(function(e){console["__".concat(e)]||(console["__".concat(e)]=console[e]),console[e]=function(){var t;(t=a[n])[e].apply(t,arguments)}}),(void 0===u?[]:u).forEach(function(e){return e()}),a[n].queue={push:function(e){return e()}})}},19949:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={enableAccessLogs:!0,SENSITIVE_KEYS:!0,getLogLevel:!0,sanitiseUrl:!0};Object.defineProperty(t,"SENSITIVE_KEYS",{enumerable:!0,get:function(){return a.SENSITIVE_KEYS}}),Object.defineProperty(t,"getLogLevel",{enumerable:!0,get:function(){return s.getLogLevel}}),Object.defineProperty(t,"sanitiseUrl",{enumerable:!0,get:function(){return s.sanitiseUrl}}),t.enableAccessLogs=void 0,r(26274);var o=r(86825);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=r(53503);
65Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=r(91381),s=r(12880);t.enableAccessLogs=function(){}},86825:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.createLogger=void 0;var n,o=(n=r(44652))&&n.__esModule?n:{default:n},i=r(26274),a=[r(631),r(87053)],s=function e(t,r){var n,i,s=(n=t,i=r,{level:"trace",reporters:a.map(function(e){return new e.default(n,i)})});if(!t)throw Error("Logger must be created with a name as the first argument, got ".concat(t));var c=o.default.create(s);return c.withName=function(t){return e(t,r)},c.withMeta=function(r){return e(t,r)},c};t.createLogger=s,(0,i.setGlobalLogger)(s("global"));var c=(0,i.getGlobalObject)().logger;t.logger=c},87053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(12880);function o(e){return(o="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)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e;function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e}return e=[{key:"log",value:function(e){var t,r=e.type,a=(0,n.getColor)(r),s=i(e.args),c=0;if("object"!==o(null==e?void 0:e.args[0])&&(c=1),null==e||null===(t=e.args[c])||void 0===t||!t.silenceConsole){var u="%c".concat([this.name]),l=console.__log||console.log;if(e.level<=(0,n.getConsolaLevel)("error")&&(l=console.__error||console.error),e.level===(0,n.getConsolaLevel)("warn")&&console.warn&&(l=console.__warn||console.warn),(0,n.shouldLog)(r)){if((0,n.currentConsolaLevel)()<(0,n.getConsolaLevel)("debug")){l.apply(void 0,i(s));return}"string"==typeof e.args[0]&&(u+="%c ".concat(e.args[0]),s.splice(0,1,"")),l.apply(void 0,[u,"\n background: ".concat(a,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n ")].concat(i(s)))}}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=s},631:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(12880);function o(e){return(o="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)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={trace:"debug",debug:"debug",info:"info",success:"info",log:"info",warn:"warn",error:"error",fatal:"error"},c=function(e){if(!e)return e;var t=e;if("string"==typeof e){var r=e.match(/(?:https?:\/\/.*)?\/\S+\?(.*?)(?:[\s"'`\])]|$)/);if(r&&r.length>1)try{var o=new URLSearchParams(r[1]);o.forEach(n.sanitiseParam),t=t.replace(r[1],o.toString())}catch(e){console.log(e),t=t.replace(r[1],"")}}return t},u=function(){var e;function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.meta=r}return e=[{key:"formatLogObject",value:function(e){var t=[].concat(e.args),r=t.shift(),i=(0,n.getDefaultLogMeta)(),u=a(a(a({date:e.date,level:s[e.type]||"info",forcePush:(null==r?void 0:r.forcePush)||!1,logger:{name:this.name},message:c(r),status:e.type||"info"},this.meta),i),"object"===o(t[0])?t[0]:{args:t[0]});return r instanceof Error&&(u.message="",u.error={stack:r.stack,message:c(r.message)},r.logAttrs&&Object.assign(u,r.logAttrs||{})),u}},{key:"log",value:function(e){var t,r=this.formatLogObject(e);((0,n.shouldLog)(e.type)||r.forcePush)&&(null===(t=window.DD_LOGS)||void 0===t?void 0:t.logger)&&e.level!==(0,n.getConsolaLevel)("log")&&e.level!==(0,n.getConsolaLevel)("trace")&&(r.forcePush||e.level===(0,n.getConsolaLevel)("error"))&&window.DD_LOGS.logger.log(r.message,r)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();t.default=u},12880:function(e,t,r){"use strict";
65Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUrl=t.sanitiseParam=t.omitValues=t.getDefaultLogMeta=t.shouldLog=t.currentConsolaLevel=t.getLogLevel=t.getColor=t.getConsolaLevel=void 0;var n=r(44652),o=r(91381);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a={fatal:"#c0392b",error:"#c0392b",warn:"#f39c12",success:"#2ecc71",info:"#00bcd4"},s=function(e){var t;return null===(t=n._types[e])||void 0===t?void 0:t.level};t.getConsolaLevel=s,t.getColor=function(e){return a[e]||"#7f8c8d"};var c=function(){return localStorage.logLevel};t.getLogLevel=c;var u=function(){return s(c())||s("info")};t.currentConsolaLevel=u,t.shouldLog=function(e){return u()>=s(e)},t.getDefaultLogMeta=function(){try{return JSON.parse({})}catch(e){return{}}},t.omitValues=function(e,t){return e&&t?Object.fromEntries(Object.entries(t).filter(function(t){var r=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),1!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(t,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!e.includes(r)})):t};var l=function(e,t,r){var n=t.toLowerCase().replace(/[_-]/g,"");if(o.SENSITIVE_KEYS.some(function(e){return n.includes(e)})){r.set(t,"REDACTED");return}var i=/\S+@\S+\.[a-z]{2,}(--[a-z0-9-]+)?/;if(i.test(decodeURIComponent(e))){var a=e.replace(i,"REDACTED");r.set(t,a)}};t.sanitiseParam=l,t.sanitiseUrl=function(e){try{var t=decodeURIComponent(e),r=new URL(t);return r.searchParams.forEach(l),r}catch(e){return{}}}},59827:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},35536:function(e,t,r){"use strict";var n=r(33284),o=r(64647),i=r(59827);e.exports={formats:i,parse:o,stringify:n}},64647:function(e,t,r){"use strict";var n=r(42840),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,u),f=-1,p=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?p="utf-8":"utf8=%26%2310003%3B"===l[d]&&(p="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,h,y,m=l[d],g=m.indexOf("]="),v=-1===g?m.indexOf("="):g+1;-1===v?(h=t.decoder(m,a.decoder,p,"key"),y=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,v),a.decoder,p,"key"),y=n.maybeMap(s(m.slice(v+1),t),function(e){return t.decoder(e,a.decoder,p,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=y.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(r,h)?r[h]=n.combine(r[h],y):r[h]=y}return r},u=function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&c!==u&&String(l)===u&&l>
65=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),u(l,t,r,n)}},f=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?c(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],p=l(u,o[u],r,"string"==typeof e);i=n.merge(i,p,r)}return!0===r.allowSparse?i:n.compact(i)}},33284:function(e,t,r){"use strict";var n=r(37478),o=r(42840),i=r(59827),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,r,i,a,s,u,f,p,y,m,g,v,b,w,O,S){for(var j,x,_=t,P=S,E=0,A=!1;void 0!==(P=P.get(h))&&!A;){var k=P.get(t);if(E+=1,void 0!==k){if(k===E)throw RangeError("Cyclic object value");A=!0}void 0===P.get(h)&&(E=0)}if("function"==typeof p?_=p(r,_):_ instanceof Date?_=g(_):"comma"===i&&c(_)&&(_=o.maybeMap(_,function(e){return e instanceof Date?g(e):e})),null===_){if(s)return f&&!w?f(r,d.encoder,O,"key",v):r;_=""}if("string"==typeof(j=_)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(_))return f?[b(w?r:f(r,d.encoder,O,"key",v))+"="+b(f(_,d.encoder,O,"value",v))]:[b(r)+"="+b(String(_))];var C=[];if(void 0===_)return C;if("comma"===i&&c(_))w&&f&&(_=o.maybeMap(_,f)),x=[{value:_.length>0?_.join(",")||null:void 0}];else if(c(p))x=p;else{var N=Object.keys(_);x=y?N.sort(y):N}for(var T=a&&c(_)&&1===_.length?r+"[]":r,I=0;I<x.length;++I){var R=x[I],L="object"==typeof R&&void 0!==R.value?R.value:_[R];if(!u||null!==L){var D=c(_)?"function"==typeof i?i(T,R):T:T+(m?"."+R:"["+R+"]");S.set(t,E);var M=n();M.set(h,S),l(C,e(L,D,i,a,s,u,"comma"===i&&w&&c(_)?null:f,p,y,m,g,v,b,w,O,M))}}return C},m=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=d.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,o,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var u=[];
65if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var p="comma"===f&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=n(),h=0;h<r.length;++h){var g=r[h];a.skipNulls&&null===i[g]||l(u,y(i[g],g,f,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d))}var v=u.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),v.length>0?b+v:""}},42840:function(e,t,r){"use strict";var n=r(59827),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],l=i[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:u}),r.push(l))}return s(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<s.length;++u){var l=s.charCodeAt(u);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)){c+=s.charAt(u);continue}if(l<128){c+=a[l];continue}if(l<2048){c+=a[192|l>>6]+a[128|63&l];continue}if(l<55296||l>=57344){c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l];continue}u+=1,c+=a[240|(l=65536+((1023&l)<<10|1023&s.charCodeAt(u)))>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},1234:function(e,t){"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return c},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return d}});let a="refresh",s="navigate",c="restore",u="server-patch",l="prefetch",f="fast-refresh",p="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=r||(r={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=n||(n={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
65dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66004:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(38740),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11568:function(e,t,r){"use strict";var n=r(20968),o=r(47069);let i=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let c=r(38754),u=r(85893),l=c._(r(67294)),f=r(47806),p=r(50893),d=r(6213),h=r(88900),y=r(64551),m=r(91351),g=r(94462),v=r(29637),b=r(66004),w=r(25076),O=r(1234),S=new Set;function j(e,t,r,n,o,i){if(i||(0,p.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let o=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(S.has(o))return;S.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,r,n))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,d.formatUrl)(e)}let _=l.default.forwardRef(function(e,t){let r,n;let{href:a,as:c,children:d,prefetch:S=null,passHref:_,replace:P,shallow:E,scroll:A,locale:k,onClick:C,onMouseEnter:N,onTouchStart:T,legacyBehavior:I=!1}=e,R=o(e,i);r=d,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,u.jsx)("a",{children:r}));let L=l.default.useContext(m.RouterContext),D=l.default.useContext(g.AppRouterContext),M=null!=L?L:D,F=!L,U=!1!==S,Z=null===S?O.PrefetchKind.AUTO:O.PrefetchKind.FULL,{href:B,as:$}=l.default.useMemo(()=>{if(!L){let e=x(a);return{href:e,as:c?x(c):e}}let[e,t]=(0,f.resolveHref)(L,a,!0);return{href:e,as:c?(0,f.resolveHref)(L,c):t||e}},[L,a,c]),G=l.default.useRef(B),z=l.default.useRef($);I&&(n=l.default.Children.only(r));let q=I?n&&"object"==typeof n&&n.ref:t,[H,V,W]=(0,v.useIntersection)({rootMargin:"200px"}),K=l.default.useCallback(e=>{(z.current!==$||G.current!==B)&&(W(),z.current=$,G.current=B),H(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[$,q,B,W,H]);l.default.useEffect(()=>{M&&V&&U&&j(M,B,$,{locale:k},{kind:Z},F)},[$,B,V,k,U,null==L?void 0:L.locale,M,F,Z]);let Y={ref:K,onClick(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,r,n,o,i,a,s,c){let{nodeName:u}=e.currentTarget;if("A"===u.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,p.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:i,locale:s,scroll:e}):t[o?"replace":"push"](n||r,{scroll:e})};c?l.default.startTransition(f):f()}(e,M,B,$,P,E,A,k,F)},onMouseEnter(e){I||"function"!=typeof N||N(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&(U||!F)&&j(M,B,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},F)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&(U||!F)&&j(M,B,$,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:Z},F)}};if((0,h.isAbsoluteUrl)($))Y.href=$;else if(!I||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,b.getDomainLocale)($,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);Y.href=t||(0,w.addBasePath)((0,y.addLocale)($,e,null==L?void 0:L.defaultLocale))}return I?l.default.cloneElement(n,Y):(0,u.jsx)("a",s(s(s({},R),Y),{},{children:r}))});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
65dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let n=r(67294),o=r(33507),i="function"==typeof IntersectionObserver,a=new Map,s=[];function c(e){let{rootRef:t,rootMargin:r,disabled:c}=e,u=c||!i,[l,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(u||l)return;let e=p.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},s.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!l){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,l,p.current]),[d,l,(0,n.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80490:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let i=r(38754),a=r(85893),s=i._(r(67294)),c=r(88900);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,c.loadGetInitialProps)(t,r)}}class l extends s.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,a.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t))}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext({})},11057:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},74394:function(e,t,r){"use strict";var n=r(20968);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},defaultHead:function(){return d}});let i=r(38754),a=r(61757),s=r(85893),c=a._(r(67294)),u=i._(r(55562)),l=r(68767),f=r(84376),p=r(11057);function d(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===c.default.Fragment?e.concat(c.default.Children.toArray(t.props.children).reduce((e,t)=>
65"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(93678);let y=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(h,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=y.length;e<t;e++){let t=y[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?i=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}}return i}}()).reverse().map((e,t)=>{let i=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e.props||{});return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,c.default.cloneElement(e,t)}return c.default.cloneElement(e,{key:i})})}let g=function(e){let{children:t}=e,r=(0,c.useContext)(l.AmpStateContext),n=(0,c.useContext)(f.HeadManagerContext);return(0,s.jsx)(u.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,p.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(67294),o=n.useLayoutEffect,i=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},93678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},78924:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ct}});var n,o,i,a,s,c,u,l,f,p,d,h,y,m,g,v,b,w=r(22557),O=r(67294),S=r(7544),j=r.n(S),x=r(11163),_=r(31365),P=r(71002),E=r(15671),A=r(43144);function k(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var C=r(89611);function N(e,t){if("function"!=typeof t&&null!==t)throw 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,C.Z)(e,t)}function T(e,t){if(t&&("object"===(0,P.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return k(e)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=r(4942),L=r(83878),D=r(81563),M=r(25267);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?F(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Z={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},B=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,E.Z)(this,e),this.init(t,r)}return(0,A.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Z,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,U(U({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),$=function(){function e(){(0,E.Z)(this,e),this.observers={}}return(0,A.Z)(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(r))})}}]),e}();function G(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r}function z(e){return null==e?"":""+e}function q(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function H(e,t,r){var n=q(e,t,Object);n.obj[n.k]=r}function V(e,t){var r=q(e,t),n=r.obj,o=r.k;if(n)return n[o]}function W(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var K={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Y(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return K[e]}):e}var Q="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,X=[" ",",","?","!",";"];function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o||"string"==typeof o[n[i]]&&i+1<n.length)return;if(void 0===o[n[i]]){for(var a=2,s=n.slice(i,i+a).join(r),c=o[s];void 0===c&&n.length>i+a;)a++,c=o[s=n.slice(i,i+a).join(r)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var u=n.slice(i+a).join(r);if(u)return J(c,u,r);return}o=o[n[i]]}return o}}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?ee(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var er=function(e){N(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=I(n);return e=t?Reflect.construct(r,arguments,I(this).constructor):r.apply(this,arguments),T(this,e)});function n(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,E.Z)(this,n),t=r.call(this),Q&&$.call(k(t)),t.data=e||{},t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,A.Z)(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=V(this.data,a);return s||!i||"string"!=typeof r?s:J(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),H(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)("string"==typeof r[o]||"[object Array]"===Object.prototype.toString.apply(r[o]))&&this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);var s=V(this.data,a)||{};n?function e(t,r,n){for(var o in r)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof r[o]||r[o]instanceof String?n&&(t[o]=r[o]):e(t[o],r[o],n):t[o]=r[o]);return t}(s,r,o):s=et(et({},s),r),H(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?et(et({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}($),en={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))}),t}};function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?eo(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ea={},es=function(e){N(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=I(n);return e=t?Reflect.construct(r,arguments,I(this).constructor):r.apply(this,arguments),T(this,e)});function n(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,E.Z)(this,n),t=r.call(this),Q&&$.call(k(t)),!function(e,t,r){e.forEach(function(e){t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,k(t)),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=B.create("translator"),t}return(0,A.Z)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";var n=X.filter(function(e){return 0>t.indexOf(e)&&0>r.indexOf(e)});if(0===n.length)return!0;var o=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var c=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var o=this;if("object"!==(0,P.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,P.Z)(t)&&(t=ei({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,u=s.namespaces,l=u[u.length-1],f=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var d=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(l).concat(d).concat(c),usedKey:c,exactUsedKey:c,usedLng:f,usedNS:l}:"".concat(l).concat(d).concat(c)}return i?{res:c,usedKey:c,exactUsedKey:c,usedLng:f,usedNS:l}:c}var h=this.resolve(e,t),y=h&&h.res,m=h&&h.usedKey||c,g=h&&h.exactUsedKey||c,v=Object.prototype.toString.apply(y),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,O="string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y;if(w&&y&&O&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&!("string"==typeof b&&"[object Array]"===v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,y,ei(ei({},t),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=S,h):S}if(a){var j="[object Array]"===v,x=j?[]:{},_=j?g:m;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var A="".concat(_).concat(a).concat(E);x[E]=this.translate(A,ei(ei({},t),{joinArrays:!1,ns:u})),x[E]===A&&(x[E]=y[E])}y=x}}else if(w&&"string"==typeof b&&"[object Array]"===v)(y=y.join(b))&&(y=this.extendTranslation(y,e,t,r));else{var k=!1,C=!1,N=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),I=N?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(I
vendor: 2,300 bytes, line 65
65)]||t.defaultValue;!this.isValidLookup(y)&&T&&(k=!0,y=R),this.isValidLookup(y)||(C=!0,y=c);var L=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:y,D=T&&R!==y&&this.options.updateMissing;if(C||k||D){if(this.logger.log(D?"updateKey":"missingKey",f,l,c,D?R:y),a){var M=this.resolve(c,ei(ei({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var Z=0;Z<U.length;Z++)F.push(U[Z]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(t.lng||this.language):F.push(t.lng||this.language);var B=function(e,r,n){var i=T&&n!==y?n:L;o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,r,i,D,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,r,i,D,t),o.emit("missingKey",e,l,r,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?F.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(r){B([e],c+r,t["defaultValue".concat(r)]||R)})}):B(F,c,R))}y=this.extendTranslation(y,e,t,h,r),C&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(l,":").concat(c)),(C||k)&&this.options.parseMissingKeyHandler&&(y="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,k?y:void 0):this.options.parseMissingKeyHandler(y))}return i?(h.res=y,h):y}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,ei(ei({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(ei(ei({},r),{interpolation:ei(ei({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);
65a=c&&c.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=ei(ei({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},r)),r.interpolation&&this.interpolator.reset()}var f=r.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=en.handle(p,e,t,this.options&&this.options.postProcessPassResolved?ei({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,p=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!ea["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(ea["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(r){if(!a.isValidLookup(t)){o=r;var i,c=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,u,r,e,s);else{f&&(l=a.pluralResolver.getSuffix(r,s.count,s));var l,h="".concat(a.options.pluralSeparator,"zero");if(f&&(c.push(u+l),p&&c.push(u+h)),d){var y="".concat(u).concat(a.options.contextSeparator).concat(s.context);c.push(y),f&&(c.push(y+l),p&&c.push(y+h))}}for(;i=c.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}}))})}}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),n}($);function ec(e){return e.charAt(0).toUpperCase()+e.slice(1)}var eu=function(){function e(t){(0,E.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=B.create("languageUtils")}return(0,A.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ec(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ec(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=ec(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach(function(e){if(!t){var n=r.formatLanguageCode(e);(!r.options.supportedLngs||r.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find(function(e){if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];
vendor: 4,848 bytes, line 65
65return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>o.indexOf(e)&&i(r.formatLanguageCode(e))}),o}}]),e}(),el=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ef={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ep=["v1","v2","v3"],ed={zero:0,one:1,two:2,few:3,many:4,other:5},eh=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,E.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=B.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},el.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:ef[e.fc]}})}),r)}return(0,A.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
65return this.getSuffixes(e,r).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return ed[e]-ed[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,r)}):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!ep.includes(this.options.compatibilityJSON)}}]),e}();function ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function em(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ey(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eg(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=void 0!==(n=V(e,r))?n:V(t,r);return!a&&i&&"string"==typeof r&&void 0===(a=J(e,r,o))&&(a=J(t,r,o)),a}var ev=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,e),this.logger=B.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,A.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Y,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?W(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?W(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?W(t.nestingPrefix):t.nestingPrefixEscaped||W("$t("),this.nestingSuffix=t.nestingSuffix?W(t.nestingSuffix):t.nestingSuffixEscaped||W(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var o=eg(t,c,e,s.options.keySeparator,s.options.ignoreJSONStructure);
65return s.alwaysFormat?s.format(o,void 0,r,em(em(em({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(eg(t,c,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,r,em(em(em({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=l(r))){if("function"==typeof f){var c=f(e,o,n);i="string"==typeof c?c:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else if(p){i=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=z(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),p?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=em(em({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var c=[];(o=(o=em({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var l=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=l.shift(),c=l,u=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=z(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=c.reduce(function(e,t){return i.format(e,t,a.lng,em(em({},a),{},{interpolationkey:r[1].trim()}))},n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ew(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eO(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(n,o),t[i]=a),a(r)}}var eS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,e),this.logger=B.create("formatter"),this.options=t,this.formats={number:eO(function(e,t){var r=new Intl.NumberFormat(e,ew({},t));return function(e){return r.format(e)}}),currency:eO(function(e,t){var r=new Intl.NumberFormat(e,ew(ew({},t),{},{style:"currency"}));return function(e){return r.format(e)}}),datetime:eO(function(e,t){var r=new Intl.DateTimeFormat(e,ew({},t));return function(e){return r.format(e)}}),relativetime:eO(function(e,t){var r=new Intl.RelativeTimeFormat(e,ew({},t));return function(e){return r.format(e,t.range||"day")}}),list:eO(function(e,t){var r=new Intl.ListFormat(e,ew({},t));return function(e){return r.format(e)}})},this.init(t)}return(0,A.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=eO(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r
65={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&0>o.indexOf(":")?r.currency||(r.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?r.range||(r.range=o.trim()):o.split(";").forEach(function(e){if(e){var t,n=(t=e.split(":"),(0,L.Z)(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||(0,D.Z)(t)||(0,M.Z)()),o=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[o.trim()]||(r[o.trim()]=i),"false"===i&&(r[o.trim()]=!1),"true"===i&&(r[o.trim()]=!0),isNaN(i)||(r[o.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var c=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=u.locale||u.lng||o.locale||o.lng||r;c=n.formats[a](e,l,ew(ew(ew({},s),o),u))}catch(e){n.logger.warn(e)}return c}return n.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function ej(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ej(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var e_=function(e){N(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=I(n);return e=t?Reflect.construct(r,arguments,I(this).constructor):r.apply(this,arguments),T(this,e)});function n(e,t,o){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,E.Z)(this,n),i=r.call(this),Q&&$.call(k(i)),i.backend=e,i.store=t,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=B.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return(0,A.Z)(n,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},c={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===c[t]&&(c[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(r){var n,s,c,u;(c=(s=q(r.loaded,[o],Object)).obj)[u=s.k]=c[u]||[],n||c[u].push(i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;var s=function(s,c){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(s&&c&&o<n.maxRetries){setTimeout(function(){n.read.call(n,e,t,r,o+1,2*i,a)},i);return}a(s,c)},c=this.backend[r].bind(this.backend);if(2===c.length){try{var u=c(e,t);u&&"function"==typeof u.then?u.then(function(e){return s(null,e)}).catch(s):s(null,u)}catch(e){s(e)}return}return c(e,t,s)}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;
65i.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s,c=ex(ex({},i),{},{isUpdate:o}),u=this.backend.create.bind(this.backend);if(u.length<6)try{(s=5===u.length?u(e,t,r,n,c):u(e,t,r,n))&&"function"==typeof s.then?s.then(function(e){return a(null,e)}).catch(a):a(null,s)}catch(e){a(e)}else u(e,t,r,n,a,c)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),n}($);function eP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,P.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,P.Z)(e[2])||"object"===(0,P.Z)(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function eE(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(t){(0,R.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eC(){}var eN=function(e){N(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=I(n);return e=t?Reflect.construct(r,arguments,I(this).constructor):r.apply(this,arguments),T(this,e)});function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((0,E.Z)(this,n),e=r.call(this),Q&&$.call(k(e)),e.options=eE(t),e.services={},e.logger=B,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEac
65h(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(k(e)),o&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,o),T(e,k(e));setTimeout(function(){e.init(t,o)},0)}return e}return(0,A.Z)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n=eP();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ek(ek(ek({},n),this.options),eE(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ek(ek({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?B.init(o(this.modules.logger),this.options):B.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=eS);var i,a=new eu(this.options);this.store=new er(this.options.resources,this.options);var s=this.services;s.logger=B,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new eh(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ev(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new e_(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new es(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,r||(r=eC),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}});var u=G(),l=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eC,n=r,o="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}
65),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,r){var n=G();return e||(e=this.languages),t||(t=this.options.ns),r||(r=eC),this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&en.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=G();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})},a=function(t){e||t||!r.services.languageDetector||(t=[]);var n="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);n&&(r.language||o(n),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){if("object"!==(0,P.Z)(o)){for(var i,a,s=arguments.length,c=Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([t,o].concat(c))}else i=ek({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var l=n.options.keySeparator||".";return a=i.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(i.keyPrefix).concat(l).concat(e)}):i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t,n.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
65if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=r.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!o||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=G();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>r.options.ns.indexOf(e)&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=G();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter(function(e){return 0>n.indexOf(e)});return o.length?(this.options.preload=n.concat(o),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new eu(eP())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eC,o=ek(ek(ek({},this.options),t),{isClone:!0}),i=new n(o);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=ek({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new es(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))}),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}($);(0,R.Z)(eN,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eN(e,t)});var eT=eN.createInstance();eT.createInstance=eN.createInstance,eT.createInstance,eT.dir,eT.init,eT.loadResources,eT.reloadResources,eT.use,eT.changeLanguage,eT.getFixedT,eT.t,eT.exists,eT.setDefaultNamespace,eT.hasLoadedNamespace,eT.loadNamespaces,eT.loadLanguages;var eI=r(22120),eR=r(38087);function eL(e,t){void 0===t&&(t={});var r,n=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(r=t.doNotParse)&&(r=!n||"{"!==n[0]&&"["!==n[0]&&'"'!==n[0]),!r)try{return JSON.parse(n)}catch(e){}return e}var eD=function(){return(eD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},eM=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?eR.Q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=eR.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),eL(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=eL(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var n;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=eD(eD({},this.cookies),((n={})[e]=t,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=eR.q(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=eD(eD({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
65);this.cookies=eD({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=eR.q(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),eF=O.createContext(new eM),eU=eF.Provider;eF.Consumer;var eZ=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),eB=function(e){function t(t){var r=e.call(this,t)||this;return t.cookies?r.cookies=t.cookies:r.cookies=new eM,r}return eZ(t,e),t.prototype.render=function(){return O.createElement(eU,{value:this.cookies},this.props.children)},t}(O.Component);function e$(){var e;return e="object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments),function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var o=e[n];if("string"!=typeof o)throw TypeError("Url must be a string. Received "+o);""!==o&&(n>0&&(o=o.replace(/^[\/]+/,"")),o=n<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}(e)}var eG=r(54938),ez=r(18769),eq=r(6346),eH=r(84450),eV=r(79804),eW=r(68486),eK=r(90512),eY=r(42485),eQ=r(91614),eX=r(57478),eJ=r(33385),e0=r(10191),e1=r(85893);let e2=e0.Z,e3=eY.Z,e8=e=>{let{className:t=null}=e,{0:r,1:n}=(0,O.useState)(!1),{t:o}=(0,eI.$G)();return!r&&(0,e1.jsx)("div",{className:(0,eK.Z)("ad-banner",t),children:(0,e1.jsxs)("div",{className:"ad-banner__content",children:[(0,e1.jsx)(e3,{noResize:!0,slotKey:"banner",className:"ad-banner__slot d-flex align-items-center","data-testid":"ad-slot",containerClassName:"ad-slot__banner-container"}),(0,e1.jsx)("button",{className:"ad-banner__dismiss-btn",onClick:()=>n(!0),type:"button","aria-label":o("molecules.adBanner.ariaLabel.dismissText"),children:(0,e1.jsx)("div",{className:"ad-banner__dismiss-btn-inner",children:(0,e1.jsx)(e2,{children:(0,e1.jsx)(e2.Icon,{name:"cross",color:"baseWhite",size:10})})})})]})})};e8.displayName="AdBanner";var e6=r(8307),e4=r(2524),e5=r(14257),e7=r(9811);function e9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e9(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e9(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let tt=e=>{let{className:t=null,fillColor:r="baseGrey",width:n=1e3,logo:o=null,name:i="Immediate Media"}=e,a=.39*n,s=`${i} Logo`;return o?(0,e1.jsx)(e5.Z,te(te({},o),{},{fluid:!0,alt:o.alt||s,srcSetBreakpoints:[n,2*n,3*n,4*n],sizes:[`${n}px`]})):(0,e1.jsxs)("div",{className:(0,eK.Z)("corporate-logo",t),children:[(0,e1.jsx)(e7.Z,{name:"im-logo",color:r,width:n,height:a}),(0,e1.jsx)("span",{className:"sr-only",children:s})]})};tt.displayName="CorporateLogo";var tr=r(99086),tn=r(77107);function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?to(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ta=e=>{let{children:t=null,className:r="",color:n=null,hasTopBorder:o=!1,hasBottomBorder:i=!1}=e,{colors:a}=(0,tn.Z)(),s=n&&a[n]||void 0;return(0,e1.jsx)("div",{className:(0,eK.Z)("background-container",r),style:ti({},n&&{backgroundColor:s}),children:(0,e1.jsx)("div",{className:(0,eK.Z)("background-container__inner","container--no-gutters",r),style:ti(ti(ti({},n&&{backgroundColor:s}),o&&{marginTop:-1}),i&&{marginBottom:-1}),children:t})})};ta.displayName="BackgroundContainer";var ts=r(71738),tc=r(88928);let tu=(0,O.forwardRef)((e,t)=>{let{activeClass:r=null,activeParentClass:n=null,aria:o=null,children:i=null,className:a=null,inverted:s=null,isActiveClassBasedOnQueryParams:c=!0,newTab:u=null,onClick:l=null,onKeyDown:f=null,role:p=null,sctrack:d=null,styled:h=null,tabIndex:y=null,target:m=null,title:g=null,xfn:v=null}=e;return(0,e1.jsx)(tc.Z,{activeClass:r,activeParentClass:n,aria:o,className:a,href:m,inverted:s,isActiveClassBasedOnQueryParams:c,onClick:l,onKeyDown:f,ref:t,rel:v,role:p,sctrack:(0,ts.Z)("MenuLink",d),styled:h,tabIndex:y,target:u?"_blank":null,title:g||null,children:i})});function tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}tu.displayName="MenuLink";let tp=e=>{let{className:t=null,items:r=[],feature:n=null,placement:o=null,sctrack:i=null}=e,a=(0,ts.Z)("DeepLinksNavigation",i),s=r.some(e=>e?.children&&e?.children.length>0);return(0,e1.jsx)(ta,{className:(0,eK.Z)("deep-links-navigation",{"deep-links-navigation--has-children":s},t),children:(0,e1.jsx)("section",{className:"body-copy-small fluid-container deep-links-navigation__section",children:(0,e1.jsx)(tr.Z,{className:(0,eK.Z)("deep-links-navigation__list",{"deep-links-navigation--has-children__list":s}),"data-feature":n,"data-placement":o,children:r.map((e,t)=>(0,e1.jsxs)(tr.Z.Item,{className:(0,eK.Z)("deep-links-navigation__item",{"deep-links-navigation--has-children__item":s}),"data-component":"MenuLink","data-index":t+1,"data-item-name":e.label,children:[(0,e1.jsx)(tu,tf(tf({className:(0,eK.Z)({"deep-links-navigation--has-children__title":s},{"heading-6":s})},e),{},{sctrack:a,children:e.label})),e?.children&&0!==e.children.length&&(0,e1.jsx)(tr.Z,{children:e.children.map(e=>(0,e1.jsx)(tr.Z.Item,{className:"deep-links-navigation--has-children__child",children:(0,e1.jsx)(tu,tf(tf({},e),{},{sctrack:a,children:e.label}))},`${e.label}-${e.target}`))})]},`${e.label}-${e.target}`))})})})};function td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?td(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}tp.displayName="DeepLinksNavigation";let ty=tr.Z,tm=tc.Z,tg=()=>window,tv=e=>{let{className:t=null,socialFollow:r=null,logo:n=null,company:o={logo:null,url:"https://www.immediate.co.uk",name:null},partnerLogo:i=null,menuItems:a=[],copyrightText:s=null,sourcepoint:c=null,logoUrl:u=null,deepLinksTop:l=[],deepLinksBottom:f=[]}=e,p=c?.enabled,d=c?.enableUtiq,{t:h}=(0,eI.$G)(),y=[...a,p&&{label:h("organisms.siteFooter.privacyItemLabel"),target:"#",title:h("organisms.siteFooter.privacyItemTitle"),cmpLink:"true",onClick:e=>{e.preventDefault();let t=tg();c?.enabled&&t._sp_?.gdpr&&t._sp_.gdpr.loadPrivacyManagerModal?.(c?.settingsUiId)}},d&&{label:h("organisms.siteFooter.utiqLabel"),target:"#",title:h("organisms.siteFooter.utiqTitle"),utiqLink:"true",onClick:e=>{e.preventDefault();let t=tg();c?.enableUtiq&&t.Utiq?.API&&t.Utiq.queue.push(()=>
65t.Utiq?.API?.showConsentModal?.())}}].filter(e=>!!e),m=((o?.name?` ${o.name} `:null)||" Immediate Media Company Ltd. ")+new Date().getFullYear();return(0,e1.jsxs)("footer",{className:(0,eK.Z)("site-footer hidden-print",t),"data-feature":"FooterNavigation",children:[(0,e1.jsx)(ta,{className:"site-footer__brand-section",hasTopBorder:!0,children:(0,e1.jsxs)("div",{className:"site-footer__brand-section-inner site-footer__flex-row site-footer__flex-row--center container chromatic-ignore",children:[n&&(0,e1.jsx)(e5.Z,th(th({},n),{},{fluid:!0,className:"site-footer__brand-logo",maxWidth:220,maxHeight:40,srcSetBreakpoints:[220,440,660,880],sizes:["220px"],link:{href:u??"",rel:"home"}})),r&&(0,e1.jsx)("div",{className:"site-footer__social-follow","data-testid":"site-footer-social-follow",children:(0,e1.jsx)(e4.Z,th({},r))})]})}),(0,e1.jsx)(ta,{className:"site-footer__corporate-section",children:(0,e1.jsxs)("section",{className:"site-footer__corporate-section-inner body-copy-small fluid-container",children:[(0,e1.jsx)("div",{className:"site-footer__flex-row container chromatic-ignore",children:a.length>1&&(0,e1.jsx)(ty,{className:"site-footer__menu","data-testid":"site-footer-menu",children:y.map((e,t)=>(0,e1.jsx)(ty.Item,th(th(th({className:"site-footer__menu-item","data-component":"MenuLink","data-index":t+1,"data-item-name":e.label,"data-testid":"site-footer-menu-item"},e.cmpLink?{"data-cmp":e.cmpLink}:{}),e.utiqLink?{"data-utiq":e.utiqLink,id:"utiq__modal-manager"}:{}),{},{children:(0,e1.jsx)(tu,th(th({inverted:!0,className:"site-footer__menu-link"},Object.assign(e,{children:null})),{},{children:e.label}))}),`${e.label}-${e.target}`))})}),(0,e1.jsxs)("div",{className:"site-footer__flex-row container",children:[(0,e1.jsx)("div",{className:"site-footer__corporate-logo chromatic-ignore",children:o&&(0,e1.jsx)(tm,{href:o.url??"",target:"_blank",rel:"noopener noreferrer",children:(0,e1.jsx)(tt,{name:o.name??void 0,logo:o.logo,width:100,fillColor:"baseWhite"})})}),(0,e1.jsxs)("div",{className:"site-footer__copyright-section",children:[s&&(0,e1.jsx)("small",{className:"site-footer__copyright-text body-copy-small",children:s}),(0,e1.jsxs)("small",{className:"site-footer__copyright-text body-copy-small mt-xs",children:["\xa9",m]})]}),i&&(0,e1.jsx)(e5.Z,th(th({},i),{},{fluid:!0,className:"site-footer__partner-logo",maxWidth:80,srcSetBreakpoints:[80,160,240,320],sizes:["80px"]}))]})]})}),l.length>0&&(0,e1.jsx)(tp,{items:l,feature:"CorporateLinks",placement:"SiteFooter"}),f.length>0&&(0,e1.jsx)(tp,{items:f,feature:"SeoLinks"})]})};tv.displayName="SiteFooter";var tb=r(4730);function tw(e,t){let{0:r,1:n}=(0,O.useState)(null),{0:o,1:i}=(0,O.useState)(!1);return(0,O.useEffect)(()=>{let t=window,r=!0,o=null;if(!e)return i(!0),()=>{r=!1};let a=()=>{let o=t.optimizely?.get,a="function"==typeof o?Reflect.apply(o,t.optimizely,["state"]):void 0;if(!a)return!1;let s=a.getVariationMap?.()?.[e];return r&&(n(s?.id??null),i(!0)),!0};if(a())return()=>{r=!1};t.optimizely||(t.optimizely=[]);let s=t.optimizely.push;return"function"==typeof s&&Reflect.apply(s,t.optimizely,[{type:"addListener",filter:{type:"lifecycle",name:"campaignDecided"},handler:()=>a()}]),o=setTimeout(()=>{r&&i(!0)},3e3),()=>{r=!1,o&&clearTimeout(o)}},[e]),{isReady:o,variationId:r,isInTest:!!t&&r===t}}var tO=r(96911),tS=r(33201),tj=r(61256),tx=r(20181),t_=r(30899),tP=r(19378);let tE=["className","url","inverted","mobileSquareBorders","placeholder","query","inputId","focusInput"],tA=e=>{let{className:t=null,url:r=null,inverted:n,mobileSquareBorders:o=!1,placeholder:i="Search...",query:a=null,inputId:s="search-field",focusInput:c=!1}=e,u=(0,tb.Z)(e,tE),l=(0,O.useRef)(null),f=(0,O.useRef)(null),{0:p,1:d}=(0,O.useState)(""),{t:h}=(0,eI.$G)(),{siteContext:y}=(0,O.useContext)(t_.Z),{SEARCH_HISTORY_EXPERIMENT:m,SEARCH_COMPLETION_EXPERIMENT:g}=y?.optimizelyTestIds||{},v=(0,O.useContext)(ez.Z),b=(0,tx.ZP)(tx.YM),w=(0,tx.ZP)(tx.IH),{isInTest:S}=tw(m?.testId,m?.variantId),{isInTest:j}=tw(g?.testId,g?.variantId),x="";(0,O.useEffect)(()=>{c&&f.current&&"undefined"!=typeof navigator&&!navigator.userAgent.match(/iPad|iPhone/i)&&f.current.focus()}),(0,O.useEffect)(()=>{x=new URL(window.location.href).searchParams.get(a||"")||"",f.current&&(f.current.value=x),d(x)},[]);let _=(0,e1.jsx)(e7.Z,{className:"search-form__search-icon",name:"search",size:22}),P=(0,e1.jsx)(tj.Z,{className:(0,eK.Z)("search-form__reset-button",{"search-form--hidden":!p}),inputAppend:!0,ariaLabel:h("molecules.searchForm.ariaLabel.resetButton"),type:"reset",transparent:!0,onClick:()=>{d(""),f.current&&(f.current.value="",f.current.dispatchEvent(new Event("input",{bubbles:!0})),f.current.focus())},children:(0,e1.jsxs)(e0.Z,{children:[(0,e1.jsx)(e7.Z,{name:"cross",color:"baseWhite",size:8}),(0,e1.jsx)(e7.Z,{name:"circle",color:"backgroundExtraDark",size:16})]})}),E=function(e){let{originalQuery:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((b||S||w||j)&&(0,tP.hP)({name:a||"search",query:e}),"function"==typeof v&&"string"==typeof t&&Promise.resolve(v({type:"query",feature:"search",query:e,originalQuery:t})).catch(e=>{tO.logger.warn("Client: Error logging search relevancy query data",{error:e})}),l.current){if("function"==typeof l.current.requestSubmit){l.current.requestSubmit();return}l.current.submit()}};return(0,e1.jsx)(tS.Z,{className:(0,eK.Z)("search-form",t),action:r||void 0,inverted:n,mobileSquareBorders:o,role:"search",method:"GET",ref:l,"data-placement":u.dataPlacement,"data-component":"SearchForm",children:(0,e1.jsxs)(tS.Z.Group,{inputId:s,children:[(0,e1.jsx)(tS.Z.Label,{className:"sr-only",children:"Search"}),(0,e1.jsx)(tS.Z.InputGroup,{className:"chromatic-ignore",defaultValue:x,placeholder:i,name:a||"q",autoComplete:"off",formInputRef:f,prepend:_,append:P,onChange:e=>{d(e.currentTarget.value)}}),(b||S)&&(0,e1.jsx)(tS.Z.SearchHistory,{className:"form-search-history__group",formInputRef:f,onSubmit:E,name:a||"search"}),(w||j)&&(0,e1.jsx)(tS.Z.QueryCompletion,{formInputRef:f,onSubmit:E,name:a||"search"})]})})};tA.displayName="SearchForm";let tk=O.createContext({activePopup:null,setActivePopup:()=>{},popupKeys:{}});var tC=r(90357);function tN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?tN(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let tI=e5.Z,tR=tC.Z,tL=function(){let{logo:e=null,logoAlignment:t="left",strapline:r=null,search:n=null,className:o=null,logoUrl:i="/",desktopPromoLogoImage:a=null,desktopPromoLogoAlignment:s="right",promoLogoUrl:c=null,sponsorTracking:u=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{activePopup:l,popupKeys:f}=(0,O.useContext)(tk),p="left"===t||!t,d="right"===s||!s,h=p&&!a;return(0,e1.jsxs)("div",{className:(0,eK.Z)("branded-section",{"branded-section--show-mobile-search":l===f.search},o),id:`${f.search}-popup`,"data-testid":"branded-section",children:[(0,e1.jsxs)("div",{className:"branded-section__container container",children:[(0,e1.jsxs)("div",{className:(0,eK.Z)("align-items-center",{"branded-section__row":!h},a?{"justify-content-space-between":p&&(d||!s),"justify-content-start":p&&!d,"justify-content-space-between branded-section__row-adjusted":!p&&(d||!s),"justify-content-center":!p&&!d}:{row:h,"justify-content-center":!p,"justify-content-space-between":p}),children:[(0,e1.jsxs)("div",{className:(0,eK.Z)("branded-section__brand",{"col-lg-8":h}),children:[e&&(0,e1.jsx)(tI,tT(tT({maxHeight:65,maxWidth:600,srcSetBreakpoints:[300,375,450,650,900,1100,1400,1800],sizes:["600px"],fluid:!0,link:{href:i,rel:"home"}},e),{},{loading:"eager"})),h&&r&&(0,e1.jsx)("small",{className:"branded-section__strapline",children:r})]}),a&&(0,e1.jsx)("div",{"data-testid":"desktop-promo-logo",className:(0,eK.Z)("branded-section__promo-logo"),children:(0,e1.jsx)(tI,tT(tT({maxHeight:65,maxWidth:200,srcSetBreakpoints:[300,375,450,600],sizes:["200px"],fluid:!0,link:{href:c}},a),{},{loading:"eager"}))}),h&&n&&!n.centralised&&(0,e1.jsx)(tA,{className:"col-lg-4 branded-section__search hidden-print",inputId:"branded-section-search-input",focusInput:l===f.search,mobileSquareBorders:!0,url:n.url,query:n.query,placeholder:n.placeholder,dataPlacement:"HeaderBrandAreaRight"})]}),!h&&r&&(0,e1.jsx)("div",{className:(0,eK.Z)("branded-section__row",{"justify-content-center":!p}),children:(0,e1.jsx)("small",{className:"branded-section__strapline",children:r})})]}),u&&(0,e1.jsx)(tR,tT({},u))]})};tL.displayName="BrandedSection";var tD=r(74349);let tM=e=>{let{active:t=!1,className:r=null,sctrack:n=null}=e,{setActivePopup:o}=(0,O.useContext)(tk);return(0,e1.jsx)(tD.Z,{className:r,active:t,onClick:()=>o(null),sctrack:(0,ts.Z)("PopupBackdrop",n)})};tM.displayName="PopupBackdrop";var tF=r(96160),tU=r(87586);function tZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tZ(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tZ(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let t$=()=>window.innerWidth>=992,tG=e=>Array.isArray(e.children)&&e.children.length>0,tz=e=>[].concat(e.key,...(e.children||[]).map(tz)),tq=(e,t)=>{let r=null;return e.forEach(e=>{if(e.domNode===t&&(r=e),e.hasChildren){let n=tq(e.children,t);n&&(r=n)}return null}),r},tH=(e,t)=>{t.hasChildren&&"menubar"===t.level?(e.preventDefault(),t.children[0].activate(t)):t.domNode.click()},tV=(e,t)=>{e.preventDefault(),t$()&&t.hasChildren?t.children[0].activate(t):t.next()&&t.next().activate(t)},tW=(e,t)=>{e.preventDefault(),t$()?t.prev()?t.prev().activate(t):t.parent&&t.parent.activate(t):t.prev()&&t.prev().activate(t)},tK=(e,t)=>{e.preventDefault(),t$()?t.parent&&"menu"===t.parent.level?t.parent.activate(t):t.prev()?t.prev().activate(t,"menubar"!==t.prev().level):t.parent&&t.parent.activate(t):t.parent&&t.parent.activate(t)},tY=(e,t)=>
65{e.preventDefault(),t$()?t.parent&&"menu"===t.parent.level&&t.parent.next()?t.parent.next().activate(t):t.next()?t.next().activate(t,"menubar"!==t.next().level):t.hasChildren&&t.children[0].activate(t):t.hasChildren&&t.children[0].activate(t)},tQ=(e,t)=>{e.preventDefault();let r=t;for(;r.prev();)r=r.prev();r.activate(t)},tX=(e,t)=>{e.preventDefault();let r=t;for(;r.next()&&!r.next().data.mobile;)r=r.next();r.activate(t)},tJ=(e,t,r)=>{e.preventDefault();let n=t;for(;n.parent;)n=n.parent;n.activate(t),r.clear()},t0=(e,t)=>{let r=e;for(;r.parent;)r=r.parent;"menubar"!==e.level&&r.activate(e),t.clear()},t1=e=>e.filter(e=>e.data.backLink?!t$():(e.hasChildren&&(e.children=t1(e.children)),!0)),t2=(e,t)=>{let{keyCode:r,target:n}=e,o={down:40,end:35,enter:13,esc:27,home:36,left:37,right:39,tab:9,space:32,up:38},i=tq(t1(t.items),n);switch(r){case o.enter:case o.space:tH(e,i);break;case o.up:tW(e,i);break;case o.down:tV(e,i);break;case o.right:tY(e,i);break;case o.left:tK(e,i);break;case o.home:tQ(e,i);break;case o.end:tX(e,i);break;case o.esc:tJ(e,i,t);break;case o.tab:t0(i,t)}},t3=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&(t$()||!t.hasChildren)||e.preventDefault(),t&&n?t.parent.activate(t):t&&t.hasChildren&&!n?t.children[0].activate(t):t||r.clear()},t8=e=>{let{menu:t,item:r,level:n,index:o,parent:i,tabIndex:a,activeMenuKey:s,setActiveMenuKey:c}=e,u=null,l={},f=e=>{u=e,l.domNode=e};return Object.assign(l,{data:r,ref:f,domNode:u,level:n,parent:i,children:[],hasChildren:tG(r)}),l.key=JSON.stringify([n,o,i?i.data.label:"",r]),l.linkProps={ref:f,tabIndex:a,onClick:e=>t3(e,l,t,r.backLink),onKeyDown:e=>t2(e,t)},Object.assign(l.linkProps,r,{children:null,aria:l.hasChildren?{haspopup:!0}:null}),l.activate=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=l.domNode;t&&c(l.key),e?.domNode.setAttribute("tabindex","-1"),r?.setAttribute("tabindex","0"),r?.focus();let n=0,o=setInterval(()=>{r?.focus(),(document.activeElement||n>50)&&clearInterval(o),n+=1},20)},l.isActiveSubMenu=()=>l.children.findIndex(e=>tz(e).indexOf(s)>-1)>-1,l},t6=e=>e.replace(/\/+$/,""),t4=(e,t)=>{if(!t)return!1;let r=new URL(t);for(let n=0;n<e.length;n+=1){let o=e[n],{target:i}=o.linkProps;if(i){let e=t6(new URL(i,r.origin).pathname),t=t6(r.pathname);if(o.parent&&e===t){let{parent:e}=o;return o.parent.children[0].activate(e),!0}}if(tG(o)){let e=t4(o.children,t);if(e)return e}}return!1},t5=e=>{let{menu:t,menuItems:r,activeMenuKey:n,setActiveMenuKey:o,parent:i,level:a="menu"}=e,s=[],c={menu:t,activeMenuKey:n,setActiveMenuKey:o};return r.forEach((e,t)=>{let r=t8(tB({item:e,parent:i,level:a,tabIndex:0===t&&"menubar"===a?"0":"-1",index:t},c));s.push(r),tG(e)&&r.children.push(...t5(tB({menuItems:e.children,parent:r},c)))}),s},t7=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t.map(e=>tB(tB({},e),{},{mobile:!0}))].filter(e=>e)},t9=(e,t)=>{e.filter(tG).filter(e=>!e.children[0].backLink).forEach(e=>{e.children.unshift({label:t,backLink:!0}),t9(e.children,e.label)})},re=e=>{let{length:t}=e;e.forEach(r=>{r.prev=()=>{let t=e.filter(e=>!t$()||!e.data.backLink),n=t.findIndex(e=>e===r);return n>0?t[n-1]:null},r.next=()=>{let n=e.filter(e=>!t$()||!e.data.backLink),o=n.findIndex(e=>e===r);return t-1>o?n[o+1]:null},r.hasChildren&&re(r.children)})};var rt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{menuItems:n,mobileMenuItems:o,focusActiveSubmenu:i=!1}=r,a=(0,tF.Z)(),{t:s}=(0,eI.$G)();if(!n)throw Error("A menuItems prop must be defined when using the withAccessibleMenu HOC");let{0:c,1:u}=(0,O.useState)(null),l={items:[],clear:()=>u(null)},f=t7(n,o);return t.withBackLinks&&t9(f,s("hoc.withAccessibleMenu.backButtonText")),l.items=t5({menu:l,menuItems:f,activeMenuKey:c,setActiveMenuKey:u,level:"menubar"}),re(l.items),(0,O.useEffect)(()=>{!i||c||t$()||t4(l.items,a)},[c,a,i,t$(),n]),(0,O.useEffect)(()=>{let e=window.innerWidth,t=(0,tU.Z)(()=>{window.innerWidth>=992!=e>=992&&l.clear()},200);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),(0,e1.jsx)(e,tB(tB({},r),{},{accessibleMenuItems:l.items,onClose:l.clear}))}},rr=r(59353);function rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ro(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
65t%2?rn(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ri=e=>e.reduce((e,t)=>(t.data.backLink?0:1)+e+ri(t.children||[]),0),ra=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=ri(e),r=e.filter(e=>!e.data.backLink).length;return t>32&&r>3?4:t>16&&r>2?3:t>4&&r>1?2:1},rs=(0,e1.jsx)(e7.Z,{className:"main-nav__nav-icon",name:"caret",color:"inherit",size:12}),rc=rt(e=>{let{accessibleMenuItems:t,onClose:r,search:n=null,className:o=null}=e,{t:i}=(0,eI.$G)(),{activePopup:a,popupKeys:s}=(0,O.useContext)(tk),c=(0,O.useRef)(null),u=[],l=!!(0,rr.Z)();return(0,O.useEffect)(()=>{a!==s.mainNav&&r&&r()},[a]),(0,O.useEffect)(()=>{if(void 0===window.IntersectionObserver)return()=>{};let e=new IntersectionObserver(e=>{let t=c.current?.getBoundingClientRect();if(!t)return;let r=t.width,n=t.left;e.forEach(e=>{let{target:t}=e,{width:o,left:i}=e.boundingClientRect,a=o+i-n;r&&a&&a>r&&!t.style.left&&l&&(t.style.left=`${r-o}px`,t.classList.add("main-nav__mega-menu--fixed"))})},{threshold:[0,1]});return u.filter(e=>e.current).forEach(t=>{t.current&&e.observe(t.current)}),()=>{e.disconnect()}},[c]),(0,e1.jsxs)("nav",{className:(0,eK.Z)("main-nav",{"main-nav--open":a===s.mainNav,"main-nav--centered":n&&n.centralised},o),id:`${s.mainNav}-popup`,"aria-label":i("organisms.mainNav.ariaLabel.main"),"data-feature":"MainNavigation","data-testid":"main-nav",children:[(0,e1.jsxs)("div",{className:(0,eK.Z)("main-nav__container","container","container--no-gutters",{"main-nav__container--has-search-box":n&&!n.centralised},o),ref:c,children:[(0,e1.jsx)(tr.Z,{className:(0,eK.Z)("main-nav__nav",{"main-nav__nav--short-length":n&&!n.centralised}),role:t.length?"menubar":void 0,children:t.map((e,t)=>{let r=(0,O.createRef)();e.hasChildren&&u.push(r);let n=t+1;return(0,e1.jsxs)(tr.Z.Item,{className:(0,eK.Z)("main-nav__nav-item",{"main-nav__nav-item--mobile":e.data.mobile,"main-nav__nav-item--has-children":e.hasChildren},e.data.color&&`main-nav__nav-item--wildcard-${e.data.color}`),role:"presentation","data-index":n,"data-item-name":e.data.label,"data-component-variant":e.data.color&&!e.data.mobile?"Wildcard":null,"data-component":"MenuLink",children:[(0,e1.jsxs)(tu,ro(ro({className:(0,eK.Z)("main-nav__nav-link",{"main-nav__nav-link--show-diamond":e.isActiveSubMenu()}),role:"menuitem"},e.linkProps),{},{children:[(0,e1.jsx)("span",{className:"main-nav__nav-text",children:e.data.label}),e.hasChildren&&rs]})),e.hasChildren&&(0,e1.jsx)("div",{className:(0,eK.Z)("main-nav__sub-menu","main-nav__mega-menu",`main-nav__mega-menu--cols-${ra(e.children)}`,{"main-nav__sub-menu--active":e.isActiveSubMenu()}),"data-testid":"main-nav-mega-menu",ref:r,children:(0,e1.jsx)(tr.Z,{className:"main-nav__list",role:e.children.length?"menu":void 0,children:e.children.map((e,t)=>{let r=e.data.backLink?null:`${n}.${t}`;return(0,e1.jsxs)(tr.Z.Item,{className:(0,eK.Z)("main-nav__nav-item","main-nav__nav-item--tier-one",{"main-nav__nav-item--has-children":e.hasChildren,"main-nav__nav-item main-nav__nav-item--back":e.data.backLink}),role:"presentation","data-index":r,"data-item-name":e.data.label,children:[(0,e1.jsxs)(tu,ro(ro({className:"main-nav__nav-link",role:"menuitem"},e.linkProps),{},{children:[e.data.backLink&&(0,e1.jsxs)(e1.Fragment,{children:[rs,(0,e1.jsxs)("span",{className:"sr-only",children:[i("organisms.mainNav.sr.tierTwoBack")," "]})]}),(0,e1.jsx)("span",{className:"main-nav__nav-text",children:e.data.label}),e.hasChildren&&rs]})),e.hasChildren&&(0,e1.jsx)("div",{className:(0,eK.Z)("main-nav__sub-menu",{"main-nav__sub-menu--active":e.isActiveSubMenu()}),children:(0,e1.jsx)(tr.Z,{className:"main-nav__list",role:e.children.length?"menu":void 0,children:e.children.map((e,t)=>{let n=e.data.backLink?null:`${r}.${t}`;return(0,e1.jsx)(tr.Z.Item,{className:(0,eK.Z)("main-nav__nav-item","main-nav__nav-item--tier-two",{"main-nav__nav-item main-nav__nav-item--back":e.data.backLink}),role:"presentation","data-index":n,"data-item-name":e.data.label,children:(0,e1.jsxs)(tu,ro(ro({className:"main-nav__nav-link",role:"menuitem"},e.linkProps),{},{children:[e.data.backLink&&(0,e1.jsxs)(e1.Fragment,{children:[rs,(0,e1.jsxs)("span",{className:"sr-only",children:[i("organisms.mainNav.sr.tierThreeBack")," "]})]}),(0,e1.jsx)("span",{className:"main-nav__nav-text",children:e.data.label})]}))},e.key)})})})]},e.key)})})})]},e.key)})}),n&&!n.centralised&&(0,e1.jsx)("div",{className:"main-nav__search-box",children:(0,e1.jsx)(tA,{className:"hidden-print",inputId:"branded-section-search-input",mobileSquareBorders:!0,url:n.url,query:n.query,placeholder:n.placeholder,dataPlacement:"HeaderNavAreaRight"})})]}),(0,e1.jsx)(tM,{className:"main-nav__backdrop",active:a===s.mainNav})]})},{withBackLinks:!0}),ru=e=>{let{menuItems:t=[],mobileMenuItems:r=[],className:n=null,search:o=null,focusActiveSubmenu:i=!1}=e;return(0,e1.jsx)(rc,{menuItems:t,mobileMenuItems:r,className:n,search:o,focusActiveSubmenu:i})};ru.displayName="MainNav";let rl=e=>{let{variant:t="banner",position:r,isFixed:n=!1,className:o=null,desktopOnly:i=!0}=e,{zephrSettings:a}=(0,O.useContext)(t_.Z)||{},s=!!a?.enabled,c=rr.Z?.()??!0,{0:u,1:l}=(0,O.useState)(!1);if((0,O.useEffect)(()=>
65{l(!0)},[]),!s)return null;let f=r||("ribbon"===t?"low":"high");if("ribbon"===t&&i&&!u||"ribbon"===t&&i&&u&&!c)return null;let p=`js-zephr-${f}`,d="ribbon"===t?"zephr-ribbon-template":"zephr-banner-template",h="ribbon"===t?"zephr-ribbon-template__content":"zephr-banner-template__content";return(0,e1.jsx)("div",{className:(0,eK.Z)(o,d,{"container container--no-gutters":"high"===f}),"data-testid":`${d}`,children:(0,e1.jsx)("div",{className:(0,eK.Z)(h,`${d.replace(/-template$/,"")}-wrapper`,`${h}--${f}`,{[`${h}--fixed`]:n}),"data-zephr-wrapper":!0,children:(0,e1.jsx)("div",{id:"ribbon"===t?"zephr-ribbon-bottom":"zephr-banner-top",className:(0,eK.Z)("ribbon"===t?"zephr-ribbon-bottom":"zephr-banner-top",p),"data-zephr-target":!0})})})};rl.displayName="ZephrPlacementContainer";let rf=e=>{let{className:t=null,popup:r,closeIcon:n,openIcon:o}=e,{activePopup:i,setActivePopup:a}=(0,O.useContext)(tk),{0:s,1:c}=(0,O.useState)(!1),{t:u}=(0,eI.$G)();(0,O.useEffect)(()=>{c(!0)});let l=u("molecules.popupToggleButton.ariaLabel.toggle",{popup:r}),f=i===r?n:o;return s?(0,e1.jsx)("button",{className:(0,eK.Z)("popup-toggle-button",t),type:"button",onClick:()=>{a(i===r?null:r)},"aria-label":l,"aria-haspopup":"true","aria-expanded":i===r,children:(0,e1.jsx)(e7.Z,{size:24,color:"inherit",name:f})}):(0,e1.jsx)("a",{className:(0,eK.Z)("popup-toggle-button",t),onClick:()=>{a(i===r?null:r)},"aria-label":l,"aria-haspopup":"true",href:`#${r}-popup`,children:(0,e1.jsx)(e7.Z,{size:24,color:"inherit",name:f})})};rf.displayName="PopupToggleButton";var rp=r(70770);function rd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ry=(0,e1.jsx)(e7.Z,{className:"vertical-nav__nav-icon vertical-nav__nav-icon--caret",name:"caret",color:"inherit",size:12}),rm=e=>e?.endsWith("/")?e:`${e}/`,rg=(e,t)=>{if(!e||!t)return!1;try{let{origin:r,pathname:n}=new URL(t),o=new URL(e,r).pathname;return n.startsWith(o)}catch(e){return console.error(e),!1}},rv=rt(e=>{let{accessibleMenuItems:t,ariaLabel:r="menu",className:n=null,domId:o="",isActiveClassBasedOnQueryParams:i=!0,showActiveClass:a=!1,showBackLinkToParent:s=!1,showSubmenu:c=!1,sctrack:u=null}=e,l=(0,ts.Z)("VerticalNav",u),{t:f}=(0,eI.$G)(),{setActivePopup:p}=(0,O.useContext)(tk),d=(0,O.useRef)(null),h=(0,tF.Z)(),y=(0,rr.Z)(),m=rm((0,rp.Z)(h)),g=!y&&c;return(0,e1.jsx)("nav",{className:(0,eK.Z)("vertical-nav","vertical-nav--open",n),id:o,"aria-label":r,children:(0,e1.jsx)("div",{className:(0,eK.Z)("vertical-nav__container",n),ref:d,children:(0,e1.jsx)(tr.Z,{className:"vertical-nav__list",role:t.length?"menubar":void 0,children:t.map((e,t)=>{let{setActiveParentOnPathnameMatch:r=!1,target:n}=e.data||{},o=m&&e?.children?.some(e=>{let{target:t}=e.data;return t?rm(t)===m:m.endsWith(rm(t))})||r&&rg(n,h),u=a&&!o?"vertical-nav__nav-link--active":null,d=a&&o?"vertical-nav__nav-link--active-parent":null,y=t+1;return(0,e1.jsxs)(tr.Z.Item,{className:(0,eK.Z)("vertical-nav__nav-item"),role:"presentation","data-index":y,"data-item-name":e.data.label,"data-component":"MenuLink",children:[(0,e1.jsxs)(tu,rh(rh({className:(0,eK.Z)("vertical-nav__nav-link pt-xs pb-xs pl-sm pr-sm body-copy-small"),activeClass:u,activeParentClass:(0,eK.Z)(d,{"vertical-nav__nav-link--active-parent-without-submenu":d&&!c}),isActiveClassBasedOnQueryParams:i,role:"menuitem"},e.linkProps),{},{sctrack:l,onClick:t=>{e.linkProps.onClick(t),e.hasChildren||p(null)},onKeyDown:t=>{let{keyCode:r}=t;e.linkProps.onKeyDown(t),(13===r||27===r)&&p(null)},children:[e.data.icon&&(0,e1.jsx)(e7.Z,{name:e.data.icon,color:"inherit",className:"mr-xs vertical-nav__nav-icon"}),(0,e1.jsx)("span",{className:"vertical-nav__nav-text",children:e.data.label}),g&&e.hasChildren&&ry]})),e.hasChildren&&c&&(0,e1.jsx)("div",{className:(0,eK.Z)("vertical-nav__sub-menu",{"vertical-nav__sub-menu
65--active":e.isActiveSubMenu()}),children:(0,e1.jsx)(tr.Z,{className:"vertical-nav__submenu",role:e.children.length?"menu":void 0,children:e.children.map((t,r)=>{let{backLink:n}=t.data,o=t.data.backLink?void 0:`${y}.${r}`,c=a?"vertical-nav__nav-link--tier-two--active":null,u=s&&n?e.data.label:t.data.label;return(0,e1.jsx)(tr.Z.Item,{className:(0,eK.Z)("vertical-nav__nav-item",{"vertical-nav__nav-item--back":n}),role:"presentation","data-index":o,"data-item-name":t.data.label,children:(0,e1.jsxs)(tu,rh(rh({className:(0,eK.Z)("vertical-nav__nav-link pt-xs pb-xs body-copy-small",{"vertical-nav__nav-link-tier-two":!n,"body-copy-bold pl-md pr-md":n,"vertical-nav__nav-link--backlink":a&&n}),isActiveClassBasedOnQueryParams:i,role:"menuitem"},t.linkProps),{},{sctrack:l,activeClass:c,onClick:t.linkProps.onClick,onKeyDown:t.linkProps.onKeyDown,children:[g&&t.data.backLink&&(0,e1.jsxs)(e1.Fragment,{children:[ry,(0,e1.jsxs)("span",{className:"sr-only",children:[f("organisms.mainNav.sr.tierTwoBack")," "]})]}),t.data.icon&&(0,e1.jsx)(e7.Z,{name:t.data.icon,color:"inherit",className:"mr-xs vertical-nav__nav-icon"}),u]}))},t.key)})})})]},e.key)})})})})},{withBackLinks:!0}),rb=e=>{let{className:t="",menuItems:r=[],ariaLabel:n="",domId:o="",showBackLinkToParent:i=!1}=e;return(0,e1.jsx)("div",{className:(0,eK.Z)("drop-down-nav",t),"data-testid":"drop-down-nav",children:O.createElement(rv,{domId:o,ariaLabel:n,menuItems:r,showActiveClass:!0,showBackLinkToParent:i})})};function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}rb.displayName="DropDownNav";let rS=e=>{let{className:t=null,image:r=null,noShadow:n=!1,sctrack:o=null}=e;return(0,e1.jsx)("div",{className:(0,eK.Z)("avatar",{"avatar--no-shadow":n},t),children:r?(0,e1.jsx)(e5.Z,rO(rO({},r),{},{fluid:!0,sctrack:(0,ts.Z)("Avatar",o)})):(0,e1.jsx)(e7.Z,{color:"inherit",name:"person",size:100,sizingUnit:"%"})})};rS.displayName="Avatar";let rj=tc.Z,rx=tr.Z,r_=e=>{let{signInUrl:t,registerUrl:r,menuItems:n=[],className:o=null,label:i="",avatarImage:a=null,sctrack:s=null}=e,c=(0,ts.Z)("AccountNav",s),{0:u,1:l}=(0,O.useState)(!1),{0:f,1:p}=(0,O.useState)(!1),d=(0,O.useRef)(null),h="account-dropdown",y=!!(0,O.useContext)(eH.Z),{t:m}=(0,eI.$G)(),g=i||m("molecules.accountNav.defaultLabel"),v=e=>{d.current&&e.target instanceof Node&&!d.current.contains(e.target)&&l(!1)};return(0,O.useEffect)(()=>(document.addEventListener("click",v,!1),()=>{document.removeEventListener("click",v,!1)}),[]),(0,O.useEffect)(()=>{p(!0)},[]),(0,e1.jsx)("div",{className:(0,eK.Z)(o,"account-nav"),children:f&&(y?(0,e1.jsxs)("div",{className:"account-nav__logged-in-wrapper",children:[(0,e1.jsxs)("button",{className:"body-copy-small account-nav__dropdown-btn",ref:d,type:"button",onClick:()=>{l(!u)},"aria-haspopup":"true","aria-controls":h,children:[(0,e1.jsx)("div",{className:"account-nav__avatar mr-xxs chromatic-ignore",children:(0,e1.jsx)(rS,{image:a,noShadow:!0}
65)}),g]}),(0,e1.jsx)(rb,{className:(0,eK.Z)("account-nav__drop-down-nav",{"account-nav__drop-down-nav--open":u}),menuItems:n,domId:h,ariaLabel:m("molecules.accountNav.ariaLabel.account")})]}):(0,e1.jsx)("nav",{"aria-label":m("molecules.accountNav.ariaLabel.account"),children:(0,e1.jsxs)(rx,{className:"account-nav__list",horizontal:!0,children:[(0,e1.jsx)(rx.Item,{children:(0,e1.jsx)(e7.Z,{className:"account-nav__icon mr-xs chromatic-ignore",color:"inherit",name:"profile",size:25})}),(0,e1.jsx)(rx.Item,{className:"body-copy-small",children:(0,e1.jsx)(rj,{href:t,className:"account-nav__link",sctrack:(0,ts.Z)("SignIn",c),children:m("molecules.accountNav.signInText")})}),(0,e1.jsx)(rx.Item,{className:"account-nav__listitem body-copy-small",children:(0,e1.jsx)(rj,{href:r,className:"account-nav__link",sctrack:(0,ts.Z)("Register",c),children:m("molecules.accountNav.registerText")})})]})}))})};function rP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r_.displayName="AccountNav";let rA=e=>{let{className:t=null,items:r=[],logo:n=null,logoUrl:o="/",swapContent:i=!1,accountNavOptions:a=null,avatarImage:s=null,backgroundColour:c=null,hasMainMenuItems:u=!1,sctrack:l=null}=e,f=(0,ts.Z)("EyebrowNav",l),{activePopup:p,popupKeys:d}=(0,O.useContext)(tk),h=(0,O.useRef)(null),{t:y}=(0,eI.$G)();return s&&(s.sizes=["28px"],s.srcSetBreakpoints=[28,56,84]),(0,e1.jsx)("div",{className:(0,eK.Z)(t,"eyebrow-nav"),style:c?{backgroundColor:c}:void 0,ref:h,children:(0,e1.jsxs)("div",{className:"eyebrow-nav__container container container--no-gutters",children:[d.mainNav&&(0,e1.jsx)("div",{className:(0,eK.Z)("eyebrow-nav__icon eyebrow-nav__icon--muted mr-xs",{"eyebrow-nav__icon--open":p===d.mainNav}),children:(r.length>0||u)&&(0,e1.jsx)(rf,{popup:d.mainNav,openIcon:"menu",closeIcon:"menu-close"})}),n&&(0,e1.jsx)(e5.Z,rE(rE({className:"eyebrow-nav__logo eyebrow-nav__brand-logo",maxHeight:24,maxWidth:120,fluid:!0},n),{},{sizes:["120px"],srcSetBreakpoints:[120,240,360,480],link:{href:o,rel:"home"},loading:"eager",sctrack:(0,ts.Z)("Logo",f)})),(0,e1.jsxs)("div",{className:"eyebrow-nav__desktop",children:[i&&(0,e1.jsx)("div",{className:"mt-xxs mb-xxs",children:(0,e1.jsx)(e5.Z,rE(rE({className:"eyebrow-nav__logo",maxHeight:25,maxWidth:120,fluid:!0},n),{},{srcSetBreakpoints:[120,240,360,480],sizes:["120px"],link:{href:o,rel:"home"},loading:"eager",sctrack:(0,ts.Z)("Logo",f)}))}),!i&&r.length>0&&(0,e1.jsx)("nav",{className:"eyebrow-nav__navigation","aria-label":y("molecules.eyebrowNav.ariaLabel.quickLinks"),"data-feature":"QuickLinks",children:(0,e1.jsx)(tr.Z,{horizontal:!0,children:r.map((e,t)=>(0,e1.jsx)(tr.Z.Item,{className:"eyebrow-nav__navigation-listitem body-copy-small","data-index":t+1,"data-component":"MenuLink","data-item-name":e.label,children:(0,e1.jsx)(tu,rE(rE({className:"eyebrow-nav__navigation-link"},Object.assign(e,{children:null})),{},{sctrack:f,children:e.label}))},`${e.label}-${e.target}`))})})]}),a&&(0,e1.jsx)("div",{className:"eyebrow-nav__sign-in hidden-for-md-down",children:(0,e1.jsx)(r_,rE(rE({},a),{},{avatarImage:s}))}),(0,e1.jsxs)("div",{className:"eyebrow-nav__items-right ml-xs",children:[d.account&&a&&(0,e1.jsx)("div",{className:(0,eK.Z)("eyebrow-nav__icon","eyebrow-nav__account-icon",{"eyebrow-nav__icon--open":p===d.account}),children:(0,e1.jsx)(rf,{popup:d.account,openIcon:"profile",closeIcon:"cross"})}),d.search&&(0,e1.jsx)("div",{className:(0,eK.Z)("eyebrow-nav__icon","eyebrow-nav__search-icon",{"eyebrow-nav__icon--open":p===d.search}),children:(0,e1.jsx)(rf,{popup:d.search,openIcon:"search",closeIcon:"cross"})})]})]})})};rA.displayName="EyebrowNav";let rk=e=>{let{accountNavOptions:t={menuItems:[]},className:r=null,left:n=!1,sctrack:o=null}=e,{activePopup:i,popupKeys:a}=(0,O.useContext)(tk),{t:s}=(0,eI.$G)();return(0,e1.jsxs)("aside",{className:(0,eK.Z)("sidebar-nav",{"sidebar-nav--open":i===a.account},r),children:[(0,e1.jsx)("div",{className:(0,eK.Z)("sidebar-nav__container",{"sidebar-nav__container--left":n}),"data-testid":"sidebar-nav-container",children:(0,e1.jsx)(rv,{ariaLabel:s("molecules.sideBarNav.ariaLabel.verticalNav"),domId:`${a.account}-popup`,menuItems:t?.menuItems||[],isActiveClassBasedOnQueryParams:!1,showActiveClass:!0,showBackLinkToParent:!0,showSubmenu:!0})}),(0,e1.jsx)(tM,{active:i===a.account,sctrack:(0,ts.Z)("SidebarNav",o)})]})};rk.displayName="SidebarNav";let rC=["className","mobileSquareBorders","search","inputId","focusInput"],rN=e=>{let{className:t=null,mobileSquareBorders:r=!1,search:n={placeholder:"Search...",query:"q",url:"",label:"Discover"},inputId:o="search-field",focusInput:i=!1}=e,a=(0,tb.Z)(e,rC),{placeholder:s,query:c,url:u,label:l}=n,f=(0,O.useRef)(null),p=(0,O.useRef)(null),{0:d,1:h}=(0,O.useState)(""),{0:y,1:m}=(0,O.useState)(!1),{t:g}=(0,eI.$G)(),{siteContext:v}=(0,O.useContext)(t_.Z),{SEARCH_HISTORY_EXPERIMENT:b,SEARCH_COMPLETION_EXPERIMENT:w}=v?.optimizelyTestIds||{},S=(0,O.useContext)(ez.Z),j=(0,tx.ZP)(tx.YM),{isInTest:x}=tw(b?.testId,b?.variantId),_=(0,tx.ZP)(tx.IH),{isInTest:P}=tw(w?.testId,w?.variantId),E="";(0,O.useEffect)(()=>
65{i&&p.current&&"undefined"!=typeof navigator&&!navigator.userAgent.match(/iPad|iPhone/i)&&p.current.focus()}),(0,O.useEffect)(()=>{E=new URL(window.location.href).searchParams.get(c)||"",p.current&&(p.current.value=E),h(E)},[]);let A=(0,e1.jsx)(e7.Z,{className:"centralised-search-form__search-icon",name:"search",size:24}),k=(0,e1.jsx)(tj.Z,{className:(0,eK.Z)("centralised-search-form__clear-button",{hidden:!d||d.length<=0}),type:"reset",transparent:!0,small:!0,onClick:()=>{h(""),p.current&&(p.current.value="",p.current.dispatchEvent(new Event("input",{bubbles:!0})),p.current.focus())},children:"Clear"}),C=()=>{h(p.current?.value||"")},N=function(e){let{originalQuery:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((j||x||_||P)&&(0,tP.hP)({name:c,query:e}),"function"==typeof S&&"string"==typeof t&&Promise.resolve(S({type:"query",feature:"search",query:e,originalQuery:t})).catch(e=>{tO.logger.warn("Client: Error logging search relevancy query data",{error:e})}),f.current){if("function"==typeof f.current.requestSubmit){f.current.requestSubmit();return}f.current.submit()}},T=()=>{m(!0)},I=e=>{let t=e.relatedTarget;t&&f.current?.contains(t)||m(!1)};return(0,e1.jsx)(tS.Z,{className:(0,eK.Z)("centralised-search-form",t),action:u||void 0,mobileSquareBorders:r,role:"search",method:"GET",ref:f,"data-placement":a.dataPlacement,"data-component":"SearchFormCentralised",onFocus:T,onBlur:I,children:(0,e1.jsxs)(tS.Z.Group,{className:(0,eK.Z)("centralised-search-form__group",{"centralised-search-form__group--focused":y}),inputId:o,children:[(0,e1.jsx)(tS.Z.Label,{className:"centralised-search-form__label",children:l}),(0,e1.jsxs)("div",{className:"centralised-search-form__input-wrapper",children:[(0,e1.jsx)(tS.Z.InputGroup,{className:"centralised-search-form__input-group chromatic-ignore",defaultValue:E,placeholder:s,name:c,autoComplete:"off",formInputRef:p,prepend:A,append:k,onChange:e=>{h(e.target.value)},onInput:C,onKeyUp:C,onFocus:T,onBlur:I}),(j||x)&&(0,e1.jsx)(tS.Z.SearchHistory,{formInputRef:p,onSubmit:N,name:c,centralised:!0}),(_||P)&&(0,e1.jsx)(tS.Z.QueryCompletion,{formInputRef:p,onSubmit:N,name:c,centralised:!0})]}),(0,e1.jsx)("div",{className:"centralised-search-form__reset-button-wrapper",children:(0,e1.jsx)(tj.Z,{className:(0,eK.Z)("centralised-search-form__reset-button",{hidden:!d&&!y}),ariaLabel:g("molecules.SearchFormCentralised.ariaLabel.resetButton"),type:"reset",icon:"cross",iconSize:15,inputAppend:!0,transparent:!0,onClick:()=>{h(""),p.current&&(p.current.value="",p.current.dispatchEvent(new Event("input",{bubbles:!0})),p.current.blur()),m(!1)}})})]})})};rN.displayName="SearchFormCentralised";let rT=tc.Z,rI=e=>{let{className:t=null,signInUrl:r,registerUrl:n,centered:o=!1,sctrack:i=null}=e,{activePopup:a,popupKeys:s}=(0,O.useContext)(tk),c=(0,ts.Z)("AuthDropDown",i),{t:u}=(0,eI.$G)(),l=a===s.account;return(0,e1.jsxs)(e1.Fragment,{children:[(0,e1.jsxs)("div",{id:`${s.account}-popup`,className:(0,eK.Z)("auth-drop-down",{"auth-drop-down--open":l,"auth-drop-down--centered":o},t),"data-testid":"auth-drop-down",children:[(0,e1.jsx)(rT,{href:r,className:"auth-drop-down__link",sctrack:(0,ts.Z)("SignIn",c),children:u("molecules.authDropDown.signInText")}),(0,e1.jsx)("div",{className:"auth-drop-down__separator"}),(0,e1.jsx)(rT,{href:n,className:"auth-drop-down__link",sctrack:(0,ts.Z)("Register",c),children:u("molecules.authDropDown.registerText")})]}),(0,e1.jsx)(tM,{active:l,className:"auth-drop-down__backdrop",sctrack:c})]})};rI.displayName="AuthDropDown";var rR=r(5032);let rL=e=>{let{isDesktop:t,fixedPositioning:r,headerRef:n,eyebrowRef:o,navRef:i,overrides:a}=e,{0:s,1:c}=(0,O.useState)(!1),u=()=>{if(!n.current||!o.current||!i.current)return;if(!t){c(!0);return}let{height:e,y:r}=n.current.getBoundingClientRect(),u=a?.eyebrowHeight||o.current.getBoundingClientRect()?.height,l=a?.eyebrowHeight?u:0,{height:f}=i.current.getBoundingClientRect(),p=s?e-l:e-u-f,d=window.scrollY+r;c(window.scrollY-d>p)},l=()=>{if(!o.current||!i.current)return;let{y:e}=i.current.getBoundingClientRect();if(e<0&&s)return;let{top:t}=o.current.getBoundingClientRect();c(e-t<=(a?.eyebrowHeight||o.current.getBoundingClientRect()?.height))};return(0,O.useEffect)(()=>{let e=(0,rR.Z)({passive:!0}),t=(0,tU.Z)(r?u:l,100);return t(),window.addEventListener("scroll",t,e),()=>{window.removeEventListener("scroll",t)}},[s,t,a]),s},rD=e=>{let{isDesktop:t}=e,{0:r,1:n}=(0,O.useState)(null);return(0,O.useEffect)(()=>{"main-navigation"===r||"account"===r?document.body.classList.add("has-overlay"):document.body.classList.remove("has-overlay")},[r]),(0,O.useEffect)(()=>{let e=(0,rR.Z)({passive:!0}),o=()=>{r&&t&&n(null)};return window.addEventListener("resize",o,e),()=>{window.removeEventListener("resize",o)}},[r,t]),[r,n]},rM=e=>{let{sponsoredRef:t}=e,{0:r,1:n}=(0,O.useState)(!1),{0:o,1:i}=(0,O.useState)(null);return(0,O.useEffect)(()=>{let e=t.current,r="takeover";if(e){if(e?.classList.contains(r)){let t=e.style.getPropertyValue("background-color");n(!0),t&&i(t)}else new MutationObserver((e,t)=>
65{e.find(e=>"attributes"===e.type&&"class"===e.attributeName&&e.target.classList.contains(r))&&(n(!0),t.disconnect())}).observe(e,{attributes:!0,attributeFilter:["class"]})}},[t,r]),[r,o]},rF=["wrap","children"];function rU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rZ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rU(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rU(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let rB={mainNav:"main-navigation",search:"search",account:"account"},r$=(0,O.forwardRef)((e,t)=>{let{wrap:r,children:n}=e,o=(0,tb.Z)(e,rF);return r?(0,e1.jsx)("div",rZ(rZ({ref:t},o),{},{"data-testid":"site-header-wrapper",children:n})):n}),rG=e=>{let{trackingId:t,whiteLabel:r,text:n=""}=e;return{label:n,title:n,target:"#",onClick:e=>{e.preventDefault();let n=window.whisk??{};n.queue=n.queue||[],n.queue.push(()=>{n.shoppingList?.viewList?.({trackingId:t,whiteLabel:r})})}}},rz=e=>{let{brandedSectionLogo:t=null,brandedSectionLogoAlignment:r=null,strapline:n=null,search:o=null,eyebrowEnabled:i=!0,eyebrowMenuItems:a=[],eyebrowLogo:s=null,mobileLogo:c=null,logoUrl:u=null,mainNavMenuItems:l=[],accountNavOptions:f=null,className:p=null,whiskSettings:d={},fixedPositioning:h=!1,mobilePromoLogoImage:y=null,desktopPromoLogoImage:m=null,desktopPromoLogoAlignment:g=null,promoLogoUrl:v=null,sponsorTracking:b=null}=e,w=(0,O.useRef)(null),S=(0,O.useRef)(null),j=(0,O.useRef)(null),x=(0,O.useRef)(null),_=[...a];d?.active&&d.text&&_.push(rG(d));let P=(0,rr.Z)(),E=(0,O.useContext)(eH.Z),[A,k]=rD({isDesktop:P}),C=rL({isDesktop:P,fixedPositioning:h,headerRef:j,eyebrowRef:w,navRef:S,overrides:i?void 0:{eyebrowHeight:35}}),[N,T]=rM({sponsoredRef:x}),I=(0,O.useMemo)(()=>({activePopup:A,setActivePopup:k,popupKeys:rZ(rZ({},rB),{},{search:o&&!o.centralised?rB.search:""})}),[A,k,o]),R=!i&&P&&!C,L=o?.centralised?"center":r??void 0;return(0,e1.jsxs)(e1.Fragment,{children:[(0,e1.jsx)(r$,{wrap:h,className:(0,eK.Z)("site-header",{"site-header--sticky":C},p),ref:j,"data-feature":"Header",children:(0,e1.jsxs)(tk.Provider,{value:I,children:[(0,e1.jsx)("div",{ref:w,className:(0,eK.Z)("site-header__eyebrow-nav hidden-print",{"site-header__eyebrow-nav--hidden":R}),"data-feature":"Header","data-testid":"site-header-eyebrow-nav",children:!R&&(0,e1.jsx)(rA,{items:_,logo:(!P&&c?c:s)??null,logoUrl:u??void 0,swapContent:C,accountNavOptions:i?f:null,backgroundColour:T,hasMainMenuItems:l.length>0})}),i&&f&&(E?(0,e1.jsx)("div",{className:"site-header__nav-section site-header__nav-section--right","data-feature":"Header",children:(0,e1.jsx)(rk,{accountNavOptions:f,left:!1})}):(0,e1.jsx)(rI,{signInUrl:f.signInUrl??"",registerUrl:f.registerUrl??"",centered:o?.centralised})),(0,e1.jsxs)("div",{className:"site-header__brand","data-feature":"Header",children:[(0,e1.jsx)(tL,{logo:t,logoAlignment:P?L:void 0,strapline:n,search:P?null:o,logoUrl:u??void 0,desktopPromoLogoImage:P?m:null,desktopPromoLogoAlignment:g,promoLogoUrl:v,sponsorTracking:b}),y&&v&&(0,e1.jsx)("div",rZ(rZ({className:"site-header__mobile-promo-logo"},!P&&{"data-testid":"mobile-promo-logo"}),{},{children:!P&&(0,e1.jsx)(e5.Z,rZ(rZ({},y),{},{link:{href:v},maxHeight:100,fluid:!0,sizes:["100vw"],srcSetBreakpoints:[360,480,600,740,991],loading:"eager"}))})),(0,e1.jsx)("div",{className:(0,eK.Z)("site-header__sponsored",{"site-header__sponsored--takeover":N,takeover:N,"site-header__sponsored--static":N&&C}),ref:x})]}),(0,e1.jsx)("div",{ref:S,className:"site-header__nav-section hidden-print","data-feature":"Header",children:(0,e1.jsx)(ru,{menuItems:l,mobileMenuItems:_,search:P?o:null})}),o?.centralised&&(0,e1.jsx)("div",{className:"site-header__search hidden-print","data-feature":"Header",children:(0,e1.jsx)(rN,{className:"hidden-print",inputId:"centralised-search-input",search:o,dataPlacement:"HeaderNavAreaBellowNav"})})]})}),(0,e1.jsxs)("div",{className:"hidden-print",children:[(0,e1.jsx)(rl,{variant:"banner",position:"high",isFixed:C}),(0,e1.jsx)(eQ.Z,{home:!0,customId:"[brand]-homepage-banner"}),(0,e1.jsx)(eQ.Z,{location:"siteHeader"})]})]})};rz.displayName="SiteHeader";var rq=r(45381);let rH=eY.Z,rV=eQ.Z,rW=eX.Z,rK=rq.Z,rY=e=>{let{socialFollow:t=null,footerBrandLogo:r=null,footerCompany:n=null,partnerLogo:o=null,footerMenuItems:i=[],footerCopyrightText:a=null,eyebrowEnabled:s=!0,eyebrowMenuItems:c=[],eyebrowLogo:u=null,mobileLogo:l=null,logoUrl:f="/",brandedSectionLogo:p=null,brandedSectionLogoAlignment:d=null,brandedSectionStrapline:h=null,search:y=null,mainNavMenuItems:m=[],accountNavOptions:g=null,children:v=null,className:b=null,whiskSettings:w={},sourcepoint:S={},footerDeepLinksTop:j=[],footerDeepLinksBottom:x=[],disableSkimlinks:_=!1,mobilePromoLogoImage:P=null,desktopPromoLogoImage:E=null,desktopPromoLogoAlignment:A=null,promoLogoUrl:k=null,hidePromoLogoInHeader:C=!1,sponsorTracking:N=null,disableBelowHeaderPocket:T=!1,disableAboveFooterPocket:I=!1,disablePageBottomPocket:R=!1}=e;return(0,e1.jsxs)("div",{className:(0,eK.Z)("default-layout",{noskim:_},b),children:[(0,e1.jsx)(rK,{targetId:"site-main"}),(0,e1.jsx)(rH,{slotKey:"oop",index:1,isOutOfPage:!0,className:"hidden-for-md-down"}),(0,e1.jsx)(e8,{domId:"main-ad-banner",className:"hidden-print"}),(0,e1.jsx)(rz,{eyebrowEnabled:s,eyebrowMenuItems:c,eyebrowLogo:u,mobileLogo:l,logoUrl:f,brandedSectionLogo:p,brandedSectionLogoAlignment:d,strapline:h,search:y,mainNavMenuItems:m,accountNavOptions:g,whiskSettings:w,mobilePromoLogoImage:C?
65null:P,desktopPromoLogoImage:C?null:E,desktopPromoLogoAlignment:C?null:A,promoLogoUrl:C?null:k,sponsorTracking:N}),!T&&(0,e1.jsx)("div",{className:"default-layout__below-header-widget",children:(0,e1.jsx)(rW,{className:"container",name:"belowHeader",itemSpacingY:"md"})}),(0,e1.jsx)(eJ.Z.Provider,{value:Object.assign((0,O.useContext)(eJ.Z),{hasSiteHeader:!0}),children:(0,e1.jsx)("main",{id:"site-main",className:"js-site-main site-main body-background fluid-container",children:v})}),!I&&(0,e1.jsx)("div",{className:"default-layout__above-footer-widget",children:(0,e1.jsx)(rW,{className:"container",name:"aboveFooter"})}),(0,e1.jsx)(tv,{socialFollow:t,logo:r,company:n,partnerLogo:o,menuItems:i,copyrightText:a,sourcepoint:S,logoUrl:f,deepLinksTop:j,deepLinksBottom:x}),!R&&(0,e1.jsx)("div",{className:"default-layout__page-bottom-widget",children:(0,e1.jsx)(rW,{className:"container",name:"pageBottom"})}),(0,e1.jsxs)("div",{className:"hidden-print",children:[(0,e1.jsx)(rl,{variant:"ribbon",position:"low",isFixed:!0,desktopOnly:!1}),(0,e1.jsx)(rV,{location:"footer"})]})]})};rY.displayName="DefaultLayout";var rQ=r(23887),rX=r(47480),rJ=r(68566),r0=r(9445);let r1="OpenWebLoginEvent",r2="OpenWebLogoutEvent",r3=[280],r8=[1,2,3,4,7,10],r6=e=>{if("undefined"==typeof document)return null;let t=`${encodeURIComponent(e)}=`,r=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(t));return r?decodeURIComponent(r.substring(t.length)):null},r4=e=>{"undefined"!=typeof document&&(document.cookie=`${e}=; Max-Age=0; path=/; SameSite=Lax`,tO.logger.info(`Removed ${e} cookie`))},r5=()=>{tO.logger.info("Triggering OpenWeb SSO logout");let e=window;e.SPOTIM?.logout?(e.SPOTIM.logout(),tO.logger.info("OpenWeb SSO logout triggered successfully")):(tO.logger.info("SPOTIM not ready, waiting for spot-im-api-ready event"),document.addEventListener("spot-im-api-ready",()=>{e.SPOTIM?.logout?(e.SPOTIM.logout(),tO.logger.info("OpenWeb SSO logout triggered successfully")):tO.logger.warn("SPOTIM.logout not available after spot-im-api-ready event")},{once:!0}))},r7=e=>{let{openWebSettings:t={},ssoEndpoint:r="/api/auth/v1/openweb/sso"}=e;tO.logger.info("Initializing OpenWebSSO component");let{user:n,isLoading:o}=(0,rJ.Z)(),i=(0,O.useRef)(!1),a=(0,r0.Z)({purposes:r8,vendorIds:r3}),{spotId:s,useIdentitySso:c}=t||{};return((0,O.useEffect)(()=>{if(!s||!c||!a)return;let e=()=>{window.location.assign("/api/auth/login")};return document.addEventListener("spot-im-login-start",e),()=>{document.removeEventListener("spot-im-login-start",e)}},[s,c,a]),(0,O.useEffect)(()=>{if(!s||!c){tO.logger.info("Missing required settings. Skipping.",{spotId:s,useIdentitySso:c});return}if(!a){tO.logger.info("User has not given consent for OpenWeb. Skipping.");return}if(o||!n?.fabric_user_id){tO.logger.info("User data is still loading or user is not authenticated. Skipping.");return}let e=n.fabric_user_id,t=window,u=()=>{tO.logger.info("Initialising OpenWeb SSO"),t.SPOTIM?.startSSO?.({callback:(e,t)=>{tO.logger.info("Received code_a from OpenWeb, initiating exchange for code_b"),fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code_a:e})}).then(e=>e.json()).then(e=>{let r=e.code_b;r?(tO.logger.info("Successfully exchanged codeA for codeB"),t(r)):(tO.logger.error("Failed to exchange codeA for codeB: no codeB in response"),t(null,Error("No codeB in response")))}).catch(e=>{tO.logger.error("Error exchanging codeA for codeB",e),t(null,e)})},userId:e})},l=()=>{tO.logger.info("Handling OpenWeb SSO renewal request"),u()};return document.addEventListener("spot-im-renew-sso",l),(()=>{if(i.current){tO.logger.info("Already initialized OpenWeb SSO. Skipping.");return}if("true"!==r6(r1)){tO.logger.info("OpenWebLoginEvent cookie not present. Skipping.");return}r4(r1),i.current=!0,t.SPOTIM?.startSSO?u():(tO.logger.info("SPOTIM not ready, waiting for spot-im-api-ready event"),document.addEventListener("spot-im-api-ready",()=>{u()},{once:!0}))})(),()=>{document.removeEventListener("spot-im-renew-sso",l)}},[n,o,s,c,r,a]),(0,O.useEffect)(()=>{if(!s||!c){tO.logger.info("Missing required settings for logout check. Skipping.",{spotId:s,useIdentitySso:c});return}if(!a){tO.logger.info("User has not given consent for OpenWeb. Skipping logout check.");return}if("true"!==r6(r2)){tO.logger.info("OpenWebLogoutEvent cookie not present. Skipping logout.");return}r4(r2),tO.logger.info("OpenWebLogoutEvent cookie detected. Initiating SSO logout."),r5()},[s,c,a]),s)?(0,e1.jsx)(rX.default,{children:(0,e1.jsx)("script",{async:!0,src:`https://launcher.spot.im/spot/${s}`,"data-spotim-module":"spotim-launcher"})}):null};r7.displayName="OpenWebSSO";var r9=r(11440),ne=r.n(r9),nt=r(74978),nr=r(64593),nn=r(25370);let no=e=>{let{adobeFontsId:t=null,cssEmbed:r=!1}=e,{0:n,1:o}=(0,O.useState)();return((0,O.useEffect)(()=>{let e=()=>{[...document.querySelectorAll('script[src^="https://use.typekit.net"]')].forEac
65h(e=>{let t=e.parentNode;t&&t.removeChild(e)})};return n&&e(),o(t),()=>{e()}},[t]),t)?r?(0,e1.jsxs)(nr.Helmet,{children:[(0,e1.jsx)("html",{lang:"en",className:"wf-active"}),(0,e1.jsx)("link",{rel:"stylesheet",href:`https://use.typekit.net/${t}.css`})]}):(0,e1.jsx)(nn.Z,{children:(0,e1.jsx)(nr.Helmet,{children:(0,e1.jsx)("script",{children:` 66 (function(d) { 67 var config = { 68 kitId: '${t}', 69 scriptTimeout: 3000, 70 async: true 71 }, 72 h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) 73 })(document); 74 `})})}):null};no.displayName="FontManager";let ni=e=>{let{children:t,theme:r,iconsPublicPath:n="/",iconsEmbedManifest:o=null,embedIcons:i=!1,tokens:a=null,adobeFontsId:s=null,adobeFontsCssEmbed:c=!1}=e;(0,O.useEffect)(()=>{ne()()},[]);let u=(0,O.useMemo)(()=>({theme:r,iconsPublicPath:n,iconsEmbedManifest:o,embedIcons:i,tokens:a}),[r,n,o,i,a]);return(0,e1.jsxs)(e1.Fragment,{children:[s&&(0,e1.jsx)(no,{adobeFontsId:s,cssEmbed:c}),(0,e1.jsx)(nt.Z.Provider,{value:u,children:t})]})};ni.displayName="ThemeProvider";let na=[1,2,3,4,5,6,7,8,9,10,11],ns=["691f4449ac592b40ec604cae"],nc=e=>{let{groupId:t}=e,r=(0,r0.Z)({purposes:na,vendorIds:ns});return(0,O.useEffect)(()=>{if(!r)return;let e=new MutationObserver(()=>{window.Genius?.amazon&&(window.Genius.amazon.addOnClickRedirect(t,!0,"https://buy.geni.us"),e.disconnect())});return e.observe(document.head,{childList:!0}),()=>{e.disconnect()}},[r,t]),null};nc.displayName="Geniuslink";var nu={SetGAConsentedCookie:"\n window.__tcfapi('addEventListener', 2, (tcData, success) => {\n if (!success) {\n console.error('Consent Management | Error retrieving data from TCFAPI');\n return;\n }\n\n const domainName = (() => {\n const parts = window.location.hostname.split('.');\n return parts.length > 2\n ? `.${parts.slice(-2).join('.')}`\n : `.${window.location.hostname}`;\n })();\n\n const isConsentReady = ['useractioncomplete', 'tcloaded'].includes(tcData.eventStatus);
74\n if (!isConsentReady) {\n console.debug('Consent Management | Consent not ready');\n return;\n }\n\n window.__tcfapi('getCustomVendorConsents', 2, (data) => {\n const purposes = data?.consentedPurposes || [];\n const vendors = data?.consentedVendors || [];\n const vendorConsent = vendors.find(v => v._id === '62b2ffcf4e5f6706d4da8cc8') || null;\n\n const hasPurpose1 = purposes[0] !== undefined;\n const hasPurpose12 = purposes[11] !== undefined;\n const hasVendorConsent = vendorConsent !== null;\n\n const cookieName = 'IM_SP_GA';\n const cookieOptions = `Path=/; Domain=${domainName}; Secure; SameSite=Strict; Priority=Medium;`;\n\n if (hasPurpose1 && hasPurpose12 && hasVendorConsent) {\n document.cookie = `${cookieName}=1; Max-Age=${60 * 60 * 2}; ${cookieOptions}`;\n console.log(`Consent Management | setGAConsented`);\n } else {\n document.cookie = `${cookieName}=; Max-Age=0; ${cookieOptions}`;\n console.log(`Consent Management | unsetGAConsented`);\n }\n });\n\n window.__tcfapi('removeEventListener', 2, (removed) => {\n if (!removed) {\n console.error('Consent Management | Failed to remove event listener', { listenerId: tcData.listenerId });\n }\n }, tcData.listenerId);\n });\n",InitReloadPageOnPMChange:"\n const PRIVACY_MANAGER_SELECTOR = '[data-cmp=\"true\"]';\n\n window.document.addEventListener('click', (event) => {\n const target = event.target.closest(PRIVACY_MANAGER_SELECTOR);\n if (target && window._sp_ && window._sp_.addEventListener) {\n console.log('Consent Management | Privacy Manager surfaced - setting up to reload on consent change');\n window._sp_.addEventListener('onConsentReady', () => {\n console.log('Consent Management | CMP Choice re-selected, reloading page');\n window.location.reload();\n }, { once: true });\n }\n });\n"},nl={Init:function(e,t){return"\n (function() {\n var cpBaseUrl = '".concat(t,"';\n var cpController = '","".concat(t,"/now.js"),"';\n var cpPropertyId = '").concat(e,'\';\n\n !function(C,o,n,t,P,a,s){C.CPObject=n,C[n]||(C[n]=function(){\n for(var e=arguments.length,i=new Array(e),c=0;c<e;c++)i[c]=arguments[c];const[r,u,l]=i;if(C[n].q||(C[n].q=[]),\n t=Array.prototype.slice.call(arguments,0),!C[n].patched&&("fatal"===r&&u&&(C[n].le=u,\n Array.prototype.forEach.call(C[n].q,(function(e){"error"===e[0]&&"function"==typeof e[1]&&e[1](u)}))),\n "error"===r&&"function"==typeof u&&C[n].le&&u(C[n].le),"extension"===r&&u&&l&&"function"==typeof l.init&&(l.init(),\n l.initialized=!0),"authenticate"===r&&u)){try{\n P=-1===(o.cookie||"").indexOf("_cpauthhint=")&&!(C.localStorage||{})._cpuser&&-1===C.location.href.toLowerCase().indexOf("cpauthenticated")\n }catch(e){P=!1}P&&(a={isLoggedIn:function(){return!1},hasValidSubscription:function(){return!1}},\n "function"==typeof u&&u(null,a),t=["authenticate",null])}C[n].q.push(t)});try{\n ((s=(o.cookie.split("_cpauthhint=")[1]||"").split(";")[0])?Number(s[1]):NaN)>0&&(o.body?o.body.classList.add("cpauthenticated"):o.addEventListener("DOMContentLoaded",(function(){\n o.body.classList.add("cpauthenticated")})))}catch(e){}C[n].l=+new Date,C[n].sv=5}(window,document,"cp");\n\n // Will activate contentpass and initialize basic interfaces for\n // communicating with contentpass.\n cp(\'create\', cpPropertyId, {\n baseUrl: cpBaseUrl\n });\n\n // This function will trigger rendering of the Sourcepoint consent layer. First, it will check\n // whether the current user is an authenticated contentpass user. If so, the targeting parameter\n // acps is set to the string value \'true\' (important: the value is not a bool, but a string!).\n // If the user is not an authenticated contentpass user, the targeting parameter is set to\n // \'false\'. Make sure to not show the consent layer when the targeting parameter is set to \'true\'\n // in your Sourcepoint scenario. When login status is determined, Sourcepoint is automatically\n // triggered by calling window._sp_.executeMessaging().\n cp(\'render\', {\n onFullConsent: function() {\
74n console.log(\'ContentPass | onFullConsent\');\n // Init advertising here\n //\n // Attention:\n // When you update your vendor list without asking for re-consent\n // then Sourcepoint does not signal full consent for previously\n // fully consented visitors. Thus this callback is not executed,\n // and partially consented impressions are not monetized at all!\n //\n // We therefore strongly recommend to configure your Sourcepoint\n // scenario setup to always ask for re-consent on vendor updates.\n //\n // Alternatively you can always load vendors specifically based\n // on their respective consent status according to the TCF API.\n // You can find a sample integration for this on\n // https://docs.contentpass.net/docs/3rdparty\n }\n })\n })()\n')},Authentication:function(){return"\n (function () {\n cp('authenticate', function(err, user) {\n if (err || (!user.isLoggedIn() && !user.hasValidSubscription())) {\n if (err) {\n window.LUX?.addData('cmp-contentpass-error', 1);\n }\n (function spExecMsg() {\n if (window._sp_ && window._sp_.executeMessaging) {\n if (!window._sp_.config.isSPA) {\n console.warn('ContentPass | Sourcepoint not in SPA mode!');\n } else if (window._sp_.version) {\n console.log('ContentPass | Sourcepoint already running');\n } else {\n console.log('ContentPass | Starting Sourcepoint');\n window._sp_.executeMessaging();\n window.LUX?.addData('cmp-shown-contentpass', 1);\n }\n } else {\n console.log('ContentPass | Sourcepoint not loaded yet. Retrying.');\n setTimeout(spExecMsg, 10);\n }\n })();\n }\n });\n })();\n"}},nf={utiqInit:function(e,t){return"\n(function() {\n let purpose, vendor;\n if('".concat(t,"' === 'slate'){\n purpose = '").concat("6979f44c90b0366ef9471942","';\n vendor = '").concat("6578414dfc14920617437b0d","';\n } else {\n purpose = '").concat("4321","';\n vendor = '").concat("1234","';\n }\n\n const utiqPurposeId = purpose;\n const utiqVendorId = vendor;\n const sourcePointBase = '").concat(e,"';\n\n /* Initialize required namespaces */\n window.Utiq ||= {};\n window.Utiq.API ||= {};\n window.Utiq.queue ||= [];\n window._sp_ ||= [];\n window._sp_.API ||= [];\n window._sp_queue ||= [];\n\n const getConsentUUID = () => {\n const match = document.cookie.match(/(?:^|;\\s*)consentUUID=([^;]+)/);\n return match ? decodeURIComponent(match[1]) : null;\n }\n\n /**\n * SP-provided: Sends a DELETE request to the SourcePoint TCFv2 consent API\n * to remove a vendor/purpose consent record for the current user.\n * @param {object} options\n * @param {string} options.siteId - The SourcePoint site ID to target.\n * @param {string[]} [options.vendors=[]] - Vendor IDs to remove consent for.\n * @param {string[]} [options.categories=[]] - Purpose/category IDs to remove consent for.\n * @param {string[]} [options.legIntCategories=[]] - Legitimate interest category IDs to remove.\n * @returns {Promise<object|undefined>} The parsed JSON response from the API, or undefined on error.\n */\n const deleteCustomConsent = async ({\n siteId,\n vendors = [],\n categories = [],\n legIntCategories = [],\n }) => {\n const consentUUID = getConsentUUID();\n if (!consentUUID) {\n console.error('[Utiq] Consent UUID cookie not found');\n return;\n }\n\n const url =\n sourcePointBase +\n '/consent/tcfv2/consent/v3/custom/' +\n encodeURIComponent(siteId) +\n '?consentUUID=' +\n encodeURIComponent(consentUUID);\n\n const body = JSON.stringify({\n vendors,\n categories,\n legIntCategories,\n });\n\n try {\n const response = await fetch(url, {\n method: 'DELETE',\n headers: {\n 'Content-Type': 'application/json',\n },\n body,\n });\n\n if (!response.ok) {\n const errorText = await response.text();\n throw new Error(\n 'Request failed: ' + response.status + ' ' + response.statusText + ' ' + errorText,\n );\n }\n\n const result = await response.json().catch(() => ({}));\n console.log('[Utiq] Deleted custom consent data successfully:', result);\n return result;\n } catch (error) {\n console.error('[Utiq] Error deleting custom consent data:', error);\n }\n };\n\n /**\n * SP-provided: Sends a GET request to the SourcePoint TCFv2 consent API\n * to retrieve the current vendor and purpose consent state for the current user.\n * @param {object} options\n * @param {string} options.siteId - The SourcePoint site ID to query.\n * @param {string} options.utiqPurposeId - The Utiq purpose/category ID to check consent for.\n * @param {string} options.utiqVendorId - The Utiq vendor ID to check consent for.\n * @returns {Promise<{vendorConsent: boolean|undefined, purposeConsent: boolean|undefined}>}\n * An object indicating whether vendor and purpose consent is granted, or undefined values if the UUID is missing.\n */\n const getConsents = async({\n siteId,\n utiqPurposeId,\n utiqVendorId,\n }) =>
74 {\n const consentUUID = getConsentUUID();\n if (!consentUUID) {\n window.LUX?.addData('Utiq-ConsentUUID-missing', 1);\n console.log('[Utiq] Consent UUID cookie not found');\n return {\n vendorConsent: undefined,\n purposeConsent: undefined,\n };\n }\n\n const url =\n sourcePointBase +\n '/consent/tcfv2/consent/v3/' +\n encodeURIComponent(siteId) +\n '?consentUUID=' +\n encodeURIComponent(consentUUID) +\n '&separateLegIntVendors=true';\n\n try {\n const response = await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n });\n\n if (!response.ok) {\n const errorText = await response.text();\n throw new Error(\n 'Request failed: ' + response.status + ' ' + response.statusText + ' ' + errorText,\n )\n }\n\n const result = await response.json().catch(() => ({}));\n console.log('[Utiq] Get consents response success');\n\n return {\n vendorConsent: result.vendors?.includes(utiqVendorId),\n purposeConsent: result.categories?.includes(utiqPurposeId),\n };\n } catch (error) {\n console.error('[Utiq] Error getting consent data:', error);\n }\n };\n\n /**\n * Checks whether the Utiq vendor and purpose consent has been granted in SourcePoint.\n *\n * Returns 'true' if consent is granted, 'false' if explicitly denied, or\n * 'undefined' if the state cannot be determined (e.g. new user with no SP record,\n * or both vendor and purpose consent are unavailable).\n *\n * @returns {Promise<boolean|undefined>}\n */\n const isCmpConsentGranted = () => {\n return new Promise(async (resolve) => {\n await __tcfapi('getCustomVendorConsents', 2, async function (data) {\
74n const { vendorConsent, purposeConsent } =\n await getConsents({\n siteId: window._sp_.metricData.propertyId,\n utiqVendorId,\n utiqPurposeId,\n });\n if (data.newUser || (vendorConsent === undefined && purposeConsent === undefined)) {\n /* newUser = no SP record yet; both undefined = can't determine state â treat as indeterminate. */\n resolve(undefined);\n } else if (purposeConsent === true && vendorConsent !== false) {\n resolve(true);\n } else {\n resolve(false);\n }\n });\n });\n };\n\n /* Safe localStorage wrappers â certain environments (e.g. Safari\n private browsing, sandboxed iframes) block storage access entirely,\n so we swallow any SecurityError rather than letting it bubble up and interrupt consent updates. */\n\n const getLocalFlag = (key) => { try { return localStorage.getItem(key) } catch { return null; } };\n const setLocalFlag = (key, val) => { try { localStorage.setItem(key, val) } catch {} };\n const clearLocalFlag = (key) => { try { localStorage.removeItem(key) } catch {} };\n\n /* Guards against overlapping updateConsent calls (e.g. rapid\n consent changes firing before the previous async update has finished). If an\n update is already in progress, the latest consent value is held in pendingConsent\n and reapplied once the current run completes â ensuring the most recent change always wins. */\n let updateConsentRunning = false;\n let pendingConsent = null;\n\n /**\n * Synchronises consent state between Utiq and SourcePoint (SP).\n *\n * On init (isInitCall: true), SP is authoritative. If a previous consent rejection failed,\n * it is retried first. Otherwise, if SP and Utiq are out of sync, Utiq is updated to match SP.\n *\n * At runtime (isInitCall: false), when Utiq drove the change SP is updated to match:\n * consent is rejected if the Manage Utiq Modal withdrew it, or accepted if the Manage Utiq Modal granted it.\n *\n * @param consent - The Utiq consent value (true = accepted, false = rejected, undefined = unknown/no cookie).\n * @param options\n * @param options.isInitCall - Whether this is the initial call on page load. Defaults to false.\n * @returns {Promise<void>}\n */\n const updateConsent = async (consent, { isInitCall = false } = {}) => {\n if (updateConsentRunning) {\n pendingConsent = consent;\n return;\n }\n updateConsentRunning = true;\n try {\n const sourcepointIsCmpConsentGranted = await isCmpConsentGranted();\n\n if (isInitCall) {\n /* Retry the failed consent rejection before the SP->Utiq sync runs\n â otherwise init would re-grant consent the user already rejected.*/\n if (getLocalFlag('utiqRevocationPending') === '1') {\n const siteId = window._sp_?.metricData?.propertyId;\n if (!siteId) {\n console.error('[Utiq] Skipping pending consent removal retry â site ID not available yet');\n return;\n }\n console.log('[Utiq] Retrying pending rejection DELETE from previous session');\n const retryResult = await deleteCustomConsent({\n siteId,\n vendors: [utiqVendorId],\n categories: [utiqPurposeId],\n legIntCategories: [],\n });\n if (retryResult !== undefined) {\n clearLocalFlag('utiqRevocationPending');\n }\n /* Skip the SP->Utiq sync regardless of whether the retry succeeded:\n - Succeeded: the rejection is now applied, no sync needed.\n - Failed: SP's \"accepted\" state is stale â it was never updated\n because the deletion failed last session. Syncing now would use that\n stale state to re-grant Utiq, overriding the user's rejection. */\n return;\n }\n\n /* On init, SP is authoritative â sync Utiq->SP, never the reverse.\n Treat utiq undefined (no cookie) as false: if both sides agree, then no sync needed. */\n const effectiveConsent = consent ?? false;\n if (sourcepointIsCmpConsentGranted !== undefined && effectiveConsent !== sourcepointIsCmpConsentGranted) {\n console.log('[Utiq] Init mismatch â SP is authoritative | utiq:', consent, '-> SP:', sourcepointIsCmpConsentGranted);\n window.Utiq.API.handleConsentChange(sourcepointIsCmpConsentGranted);\n }\n return;\n }\n\n /* User changed their consent preference via Utiq.\n Update SourcePoint to reflect that change. */\n if (consent === false && sourcepointIsCmpConsentGranted) {\n console.log('[Utiq] Deleting custom consent â utiq withdrew, SP says true');\n const siteId = window._sp_?.metricData?.propertyId;\n if (!siteId) {\n console.error('[Utiq] Skipping consent removal â site ID not available');\n return;\n }\n const deleteResult = await deleteCustomConsent({\n siteId,\n vendors: [utiqVendorId],\n categories: [utiqPurposeId],\n legIntCategories: [],\n });\n if (deleteResult === undefined) {\n /* Consent deleti
74on failed â set a flag so it's\n retried on next page load, preventing SP from\n re-granting consent the user already rejected. */\n\n setLocalFlag('utiqRevocationPending', '1');\n window.LUX?.addData('Utiq-DeleteFailed', 1);\n } else {\n clearLocalFlag('utiqRevocationPending');\n }\n } else if (consent === true && sourcepointIsCmpConsentGranted === false) {\n console.log('[Utiq] postCustomConsent â utiq granted, SP says false');\n __tcfapi(\n 'postCustomConsent',\n 2,\n function (result, success) {\n if (!success) {\n console.error('[Utiq] postCustomConsent failed | result:', JSON.stringify(result));\n }\n },\n [utiqVendorId],\n [utiqPurposeId],\n [],\n );\n }\n } finally {\n updateConsentRunning = false;\n if (pendingConsent !== null) {\n const next = pendingConsent;\n pendingConsent = null;\n await updateConsent(next);\n }\n }\n };\n\n window._sp_queue.push(() => {\n window.Utiq.queue.push(() => {\n if (window.__utiqIntegrationInitialised) {\n console.warn('[Utiq] Integration queue callback fired again â skipping to prevent consent loop.');\n return;\n }\n window.__utiqIntegrationInitialised = true;\n\n let pmActionFired = false;\n let messageChoiceFired = false;\n\n window._sp_.addEventListener('onPrivacyManagerAction', () => { pmActionFired = true; });\n\n window._sp_.addEventListener('onMessageChoiceSelect', () => { messageChoiceFired = true; });\n\n /**\n * Listens for SourcePoint's onConsentReady event, which fires after any consent\n * interaction via SourcePoint's UI â either through the Privacy Manager (granular\n * consent controls) or the consent banner (e.g. Accept All / Reject All).\n * The flags above tell us which triggered it. They are read and immediately cleared\n * together so a simultaneous trigger from both doesn't carry stale state into the next fire.\n * @listens window._sp_#onConsentReady\n * @fires window.Utiq.API#handleConsentChange\n */\n window._sp_.addEventListener('onConsentReady', async () => {\n const pmAction = pmActionFired;\n const messageChoice = messageChoiceFired;\n pmActionFired = false;\n messageChoiceFired = false;\n if (pmAction) {\n window.Utiq.API.handleConsentChange(await isCmpConsentGranted());\n } else if (messageChoice) {\n window.Utiq.API.handleConsentChange(await isCmpConsentGranted(), {\n syncConsentOnAccept: true, // syncConsentOnAccept should only be set true on explicit acceptance\n });\n }\n });\n\n try {\n const utiqInitialStatus = window.Utiq.API.getUtiqConsentStatus();\n updateConsent(utiqInitialStatus, { isInitCall: true }).catch((err) => {\n window.LUX?.addData('Utiq-API-error', 1);\n console.error('[Utiq] updateConsent failed on init. Reason: ' + err.message);\n });\n } catch (err) {\n window.LUX?.addData('Utiq-API-error', 1);\n console.error(\n '[Utiq] getUtiqConsentStatus API call failed. Reason: ' + err.message,\n );\n }\n window.Utiq.API.addEventListener(\n 'onConsentUpdateFinished',\n ({ isConsentGranted }) => {\n updateConsent(isConsentGranted);\n },\n );\n });\n });\n\n window.Utiq.config = {\n CMP: 'none',\n };\n})();\n")}};let np=e=>{var t;let{accountId:r,baseEndpoint:n,targetingParams:o=null,contentPassEnabled:i=!1}=e;return r&&n?(i&&o&&Object.assign(o,{acps:"false"}),(0,e1.jsx)(nn.Z,{children:(0,e1.jsxs)(nr.Helmet,{children:[(0,e1.jsx)("script",{children:"\nfunction _typeof(t) {\n return (_typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? function (t) {\n return typeof t;\n } : function (t) {\n return t && typeof Symbol === 'function' && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t;\n })(t);\n}!(function () {\n const t = function () {\n let t; let e; const o = [];\n const n = window;\n let r = n;\n for (; r;
74) {\n try {\n if (r.frames.__tcfapiLocator) {\n t = r;\n break;\n }\n } catch (t) {}\n if (r === n.top) break;\n r = n.parent;\n }\n t || (!(function t() {\n const e = n.document;\n const o = !!n.frames.__tcfapiLocator;\n if (!o) {\n if (e.body) {\n const r = e.createElement('iframe');\n r.style.cssText = 'display:none', r.name = '__tcfapiLocator', e.body.appendChild(r);\n } else setTimeout(t, 5);\n }\n return !o;\n }()), n.__tcfapi = function () {\n for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];\n if (!n.length) return o;\n n[0] === 'setGdprApplies' ? n.length > 3 && parseInt(n[1], 10) === 2 && typeof n[3] === 'boolean' && (e = n[3], typeof n[2] === 'function' && n[2]('set', !0)) : n[0] === 'ping' ? typeof n[2] === 'function' && n[2](\n {\n gdprApplies: e,\n cmpLoaded: !1,\n cmpStatus: 'stub',\n },\n ) : o.push(n);\n }, n.addEventListener('message', ((t) => {\n const e = typeof t.data === 'string';\n let o = {};\n if (e) {\n try {\n o = JSON.parse(t.data);\n } catch (t) {}\n } else o = t.data;\n const n = _typeof(o) === 'object' ? o.__tcfapiCall : null;\n n && window.__tcfapi(n.command, n.version, ((o, r) => {\n const a = {\n __tcfapiReturn:\n {\n returnValue: o,\n success: r,\n callId: n.callId,\n },\n };\n t && t.source && t.source.postMessage && t.source.postMessage(e ? JSON.stringify(a) : a, '*');\n }), n.parameter);\n }), !1));\n };\n typeof module !== 'undefined' ? module.exports = t : t();\n}());\n"}),(0,e1.jsx)("script",{children:(t=o??void 0,"\n window._sp_queue = [];\n window._sp_ = {\n config: {\n accountId: ".concat(r,",\n baseEndpoint: '").concat(n,"',\n gdpr: {\n targetingParams: ").concat(t?JSON.stringify(t):"{}","\n },\n isSPA: ").concat(i,",\n events: {\n onMessageChoiceSelect() {\n if (performance.getEntriesByName('time-to-cmp-choice').length === 0) {\n performance.mark('time-to-cmp-choice');\n }\n console.log('SourcePoint | [event] onMessageChoiceSelect', arguments);\n },\n onMessageReady() {\n if (performance.getEntriesByName('time-to-cmp-message').length === 0) {\n performance.mark('time-to-cmp-message');\n }\n console.log('SourcePoint | [event] onMessageReady', arguments);\n window.LUX?.addData('cmp-shown-sourcepoint', 1);\n },\n onMessageChoiceError() {\n console.log('SourcePoint | [event] onMessageChoiceError', arguments);\n },\n onPrivacyManagerAction() {\n console.log('SourcePoint | [event] onPrivacyManagerAction', arguments);\n },\n onPMCancel() {\n console.log('SourcePoint | [event] onPMCancel', arguments);\n },\n onMessageReceiveData() {\n console.log('SourcePoint | [event] onMessageReceiveData', arguments);\n window.LUX?.addData('cmp-shown', arguments[1]?.messageId != 0);\n },\n onSPPMObjectReady() {\n console.log('SourcePoint | [event] onSPPMObjectReady', arguments);\n },\n onConsentReady(consentUUID, euconsent) {\n performance.mark('time-to-cmp');\n console.log('SourcePoint | [event] onConsentReady', arguments);\n },\n onError() {\n console.log('SourcePoint | [event] onError', arguments);\n window.LUX?.addData('cmp-sourcepoint-error', 1);\n },\n },\n },\n };\n window.__cmpProvider = 'sp';\n"))}),(0,e1.jsx)("script",{children:nu.SetGAConsentedCookie}),(0,e1.jsx)("script",{children:nu.InitReloadPageOnPMChange})]})})):null};np.displayName="Sourcepoint";let nd=e=>{let{propertyId:t=null,baseEndpoint:r=null}=e;return t&&r?(0,e1.jsx)(nn.Z,{children:(0,e1.jsxs)(nr.Helmet,{children:[(0,e1.jsx)("script",{"data-description":"contentpass integration",children:nl.Init(t,r)}),(0,e1.jsx)("script",{"data-description":"contentpass sourcepoint authenticate usage",children:nl.Authentication()})]})}):null};nd.displayName="ContentPass";let nh=e=>{let{baseEndpoint:t,siteKey:r}=e;return t&&r?(0,e1.jsx)(nn.Z,{children:(0,e1.jsx)(nr.Helmet,{children:(0,e1.jsx)("script",{children:nf.utiqInit(t,r)})})}):null};nh.displayName="Utiq";var ny=r(66991);let nm=e=>{let{optimizelyEnabledOnSite:t=!1,siteKey:r}=e,{0:n,1:o}=(0,O.useState)(!1);return(0,O.useEffect)(()=>{o(!0)},[]),!n&&(0,e1.jsx)(nr.Helmet,{children:(0,e1.jsx)("script",{children:` 75 window.dataLayer = window.dataLayer || []; 76 window.dataLayer.push({ 77 event: "Site Data", 78 sendCustomOptimizelyEvents: "${t}", 79 site_name: "${r}" 80 }); 81 `})})};nm.displayName="GtmSiteData";var ng=r(4298),nv=r.n(ng),nb=r(60441);let nw=e=>{if("undefined"==typeof document)return null;let t=`${encodeURIComponent(e)}=`,r=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(t));return r?decodeURIComponent(r.substring(t.length)):null},nO=e=>{"undefined"!=typeof document&&(document.cookie=`${e}=; Max-Age=0; path=/; SameSite=Lax`)},nS=e=>{(0,O.useEffect)(()=>{e&&[{cookie:"OptimizelySignupEvent",eventName:"sign_up"}
81,{cookie:"OptimizelyLoginEvent",eventName:"login"}].forEach(e=>{let{cookie:t,eventName:r}=e;if(nw(t)){tO.logger.info(`Firing Optimizely event: ${r}`);let e=window;e.optimizely=e.optimizely||[],e.optimizely.push({type:"event",eventName:r,tags:{revenue:0,value:0}}),tO.logger.info(`Optimizely event fired: ${r}`),nO(t),tO.logger.info(`Removed cookie: ${t}`)}})},[e])},nj=e=>{let{projectId:t}=e,r=(0,nb.Z)([1,10],[],["61e188da293cdf6fd48568bb"]);return nS(!!r),r&&t?(0,e1.jsx)(nv(),{src:`https://cdn.optimizely.com/js/${t}.js`},"optimizely"):null};nj.displayName="Optimizely";var nx={quantcast_v1:` 82(function() { 83 var host = window.location.hostname; 84 var element = document.createElement('script'); 85 var firstScript = document.getElementsByTagName('script')[0]; 86 var milliseconds = (new Date).getTime(); 87 var url = 'https://cmp.quantcast.com' 88 .concat('/choice/', '-0C6KuZYa9BXe', '/', host, '/choice.js') 89 .concat('?timestamp=', milliseconds); 90 element.async = true; 91 element.type = 'text/javascript'; 92 element.src = url; 93 94 firstScript.parentNode.insertBefore(element, firstScript); 95})(); 96 97var cmpStubFunction = function() { 98 var arg = arguments; 99 if (typeof window.__cmp.a !== "object") { 100 setTimeout(function() { 101 window.__cmp.apply(window.__cmp, arg); 102 }, 500); 103 } 104}; 105 106var checkIfCmpIsReady = function() { 107 if (window.__cmp === cmpStubFunction) { 108 console.warn("CMP not loaded after 6 seconds. Trying again."); 109 } else { 110 clearInterval(cmpInterval); 111 } 112}; 113 114if (typeof window.__cmp === "undefined") { 115 window.__cmp = cmpStubFunction; 116 var cmpInterval = setInterval(checkIfCmpIsReady, 6000); 117} 118`,quantcast_v2:` 119(function() { 120 const useFallback = [/^localhost$/, /^127\\.0\\.0\\.1$/, /\\.imdserve\\.com$/, /^develop\\./, /^release\\./, /^local\\./].filter(function(pattern){ 121 return pattern.test(window.location.hostname); 122 }).length > 0; 123 var host = useFallback ? 'immediate.fallback' : window.location.hostname; 124 var element = document.createElement('script'); 125 var firstScript = document.getElementsByTagName('script')[0]; 126 var url = 'https://cmp.quantcast.com' 127 .concat('/choice/', '-0C6KuZYa9BXe', '/', host, '/choice.js') 128 var uspTries = 0; 129 var uspTriesLimit = 3; 130 element.async = true; 131 element.type = 'text/javascript'; 132 element.src = url; 133 134 firstScript.parentNode.insertBefore(element, firstScript); 135 136 function makeStub() { 137 var TCF_LOCATOR_NAME = '__tcfapiLocator'; 138 var queue = []; 139 var win = window; 140 var cmpFrame; 141 142 function addFrame() { 143 var doc = win.document; 144 var otherCMP = !!(win.frames[TCF_LOCATOR_NAME]); 145 146 if (!otherCMP) { 147 if (doc.body) { 148 var iframe = doc.createElement('iframe'); 149 150 iframe.style.cssText = 'display:none'; 151 iframe.name = TCF_LOCATOR_NAME; 152 doc.body.appendChild(iframe); 153 } else { 154 setTimeout(addFrame, 5); 155 } 156 } 157 return !otherCMP; 158 } 159 160 function tcfAPIHandler() { 161 var gdprApplies; 162 var args = arguments; 163 164 if (!args.length) { 165 return queue; 166 } else if (args[0] === 'setGdprApplies') { 167 if ( 168 args.length > 3 && 169 args[2] === 2 && 170 typeof args[3] === 'boolean' 171 ) { 172 gdprApplies = args[3]; 173 if (typeof args[2] === 'function') { 174 args[2]('set', true); 175 } 176 } 177 } else if (args[0] === 'ping') { 178 var retr = { 179 gdprApplies: gdprApplies, 180 cmpLoaded: false, 181 cmpStatus: 'stub' 182 }; 183 184 if (typeof args[2] === 'function') { 185 args[2](retr); 186 } 187 } else { 188 if(args[0] === 'init' && typeof args[3] === 'object'){ 189 args[3] = { ...args[3], tag_version: 'V2' }; 190 } 191 queue.push(args); 192 } 193 } 194 195 function postMessageEventHandler(event) { 196 var msgIsString = typeof event.data === 'string'; 197 var json = {}; 198 199 try { 200 if (msgIsString) { 201 json = JSON.parse(event.data); 202 } else { 203 json = event.data; 204 } 205 } catch (ignore) {} 206 207 var payload = json.__tcfapiCall; 208 209 if (payload) { 210 window.__tcfapi( 211 payload.command, 212 payload.version, 213 function(retValue, success) { 214 var returnMsg = { 215 __tcfapiReturn: { 216 returnValue: retValue, 217 success: success, 218 callId: payload.callId 219 } 220 }; 221 if (msgIsString) { 222 returnMsg = JSON.stringify(returnMsg); 223 } 224 if (event && event.source && event.source.postMessage){ 225 event.source.postMessage(returnMsg, '*'); 226 } 227 }, 228 payload.parameter 229 ); 230 } 231 } 232 233 while (win) {
234 try { 235 if (win.frames[TCF_LOCATOR_NAME]) { 236 cmpFrame = win; 237 break; 238 } 239 } catch (ignore) {} 240 241 if (win === window.top) { 242 break; 243 } 244 win = win.parent; 245 } 246 if (!cmpFrame) { 247 addFrame(); 248 win.__tcfapi = tcfAPIHandler; 249 win.addEventListener('message', postMessageEventHandler, false); 250 } 251 }; 252 253 makeStub(); 254 255 var uspStubFunction = function() { 256 var arg = arguments; 257 if (typeof window.__uspapi !== uspStubFunction) { 258 setTimeout(function() { 259 if (typeof window.__uspapi !== 'undefined') { 260 window.__uspapi.apply(window.__uspapi, arg); 261 } 262 }, 500); 263 } 264 }; 265 266 var checkIfUspIsReady = function() { 267 uspTries++; 268 if (window.__uspapi === uspStubFunction && uspTries < uspTriesLimit) { 269 console.warn('USP is not accessible'); 270 } else { 271 clearInterval(uspInterval); 272 } 273 }; 274 275 if (typeof window.__uspapi === 'undefined') { 276 window.__uspapi = uspStubFunction; 277 var uspInterval = setInterval(checkIfUspIsReady, 6000); 278 } 279})(); 280`};let n_=e=>{let{provider:t}=e,r=nx[t];return r?(0,e1.jsx)(nn.Z,{children:(0,e1.jsx)(nr.Helmet,{children:(0,e1.jsx)("script",{children:r})})}):null};n_.displayName="ConsentManager";var nP=r(42473),nE=r.n(nP),nA=r(33055);let nk=e=>{let{gtmId:t=null}=e;return(nE()(!!t,"GTM could not be enabled: gtmId not provided"),t)?(0,e1.jsxs)(nA.Z,{children:[(0,e1.jsx)("noscript",{children:(0,e1.jsx)("iframe",{title:"gtm",src:`//www.googletagmanager.com/ns.html?id=${t}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}),(0,e1.jsx)("script",{dangerouslySetInnerHTML:{__html:` 281 (function(w,d,s,l,i){ 282 w[l]=w[l]||[]; 283 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 284 })(window,document,'script','dataLayer','${t}'); 285 `}})]}):null};nk.displayName="GoogleTagManager";let nC={},nN=e=>{let{id:t,url:r,parameters:n=nC}=e,o=Object.entries(n).map(e=>`${e[0]}=${e[1]}`);return(0,e1.jsx)(rX.default,{children:(0,e1.jsx)("script",{dangerouslySetInnerHTML:{__html:` 286 <!--//--><![CDATA[//><!-- 287 var gemius_extraparameters = ${JSON.stringify(o)}; 288 var gemius_identifier = new String('${t}'); 289 function gemius_pending(i) { window[i] = window[i] || function() {var x = window[i+'_pdata'] = window[i+'_pdata'] || []; x[x.length]=arguments;};}; 290 gemius_pending('gemius_hit'); gemius_pending('gemius_event'); gemius_pending('pp_gemius_hit'); gemius_pending('pp_gemius_event'); 291 (function(d,t) {try {var gt=d.createElement(t),s=d.getElementsByTagName(t)[0],l='http'+((location.protocol=='https:')?'s':''); gt.setAttribute('async','async'); 292 gt.setAttribute('defer','defer'); gt.src=l+'://${r}'; s.parentNode.insertBefore(gt,s);} catch (e) {}})(document,'script'); 293 //--><!]]> 294 `}})})};nN.displayName="Gemius";let nT=e=>{let{contentId:t=null,siteCategoryId:r=null,contentName:n=null,contentUrl:o=null,contentType:i=null,siteCategoryName:a=null,
294siteCategory:s=null,pageType:c="Content",website:u=null}=e;return(0,e1.jsx)(rX.default,{children:(0,e1.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.c2cVars = ${JSON.stringify({ContentId:t,SiteCategoryId:r,ContentName:n,ContentUrl:o,ContentType:i,SiteCategoryName:a,SiteCategory:s,PageType:c,Website:u})};`}})})};nT.displayName="C2cVars";let nI=e=>{throw Error("For optimisation purposes, this function cannot be called from the browser")};var nR=r(74355),nL=r(38228),nD=r.n(nL);let nM=e=>{if(Number.isFinite(Number(e)))return Number(e);try{return nD()(e)}catch(t){throw Error(`Invalid input when setting cache header: ${e}`)}};var nF=(e,t)=>{let{maxAge:r,staleWhileRevalidate:n,staleIfError:o,etag:i}=t,a=[];r&&a.push("public","max-age=0",`s-maxage=${nM(r)}`),i&&e.setHeader("Etag",i),n&&a.push(`stale-while-revalidate=${nM(n)}`),o&&a.push(`stale-if-error=${nM(o)}`),a.length&&e.setHeader("Cache-Control",a.join(", "))},nU=r(53958),nZ=r(66329),nB=r(8243),n$=r(32518),nG=r(26258),nz=r(46295),nq=r(41664),nH=r.n(nq),nV=function(e){var t=e.children,r=e.href,n=e.pagePaths.find(function(e){return(0,nz.getRouteMatcher)((0,nG.getRouteRegex)(e))(r)});return n?(0,n$.isDynamicRoute)(n)?O.createElement(nH(),{href:n,as:r},t):O.createElement(nH(),{href:r},t):t},nW=r(67952),nK=r(21653),nY=r(73606),nQ=r(18836),nX=e=>{let{children:t}=e;return(0,nQ.Z)()?O.createElement(nY.dr,null,t):t},nJ=r(34603),n0=r(7952);let n1="session-watcher-leader-heartbeat",n2=e=>"object"==typeof e&&null!==e&&"valid"in e&&"boolean"==typeof e.valid,n3=()=>{window.location.href=nJ.vL},n8=(e,t)=>Math.max(e+(Math.random()*t*2-t),3e4);var n6=()=>{let e=(0,nK.Z)(),t=(0,O.useRef)(0),r=(0,O.useRef)(null),n=(0,O.useRef)(!1),o=(0,O.useRef)(null),i=(0,O.useRef)(!0),a=(0,O.useRef)(0),s=(0,O.useRef)(null),c=(0,O.useCallback)(async e=>{try{let t=e?`${nJ.Hu}?finalAttempt=true`:nJ.Hu,r=await fetch(t,{credentials:"include",cache:"no-store"});if(!r.ok)return"unknown";let n=await r.json();if(n2(n))return n.valid?"valid":"invalid";return"unknown"}catch{return"unknown"}},[]),u=(0,O.useCallback)(()=>{var e;localStorage.setItem(n1,String(Date.now())),n.current=!0,null===(e=o.current)||void 0===e||e.postMessage({type:"leader-claim"}),n0.logger.debug("Session watcher - leadership claimed by this tab")},[]),l=(0,O.useCallback)(()=>{localStorage.removeItem(n1),n.current=!1,n0.logger.debug("Session watcher - leadership yielded by this tab")},[]);return(0,O.useEffect)(()=>{if(!e){n0.logger.debug("Session watcher inactive - user not logged in");return}n0.logger.debug("Session watcher mounted"),i.current=!0;let f=e=>{r.current&&clearTimeout(r.current),r.current=setTimeout(e,n8(3e5,6e4))},p=async()=>{if("visible"!==document.visibilityState){n0.logger.debug("Session watcher - tab hidden, pausing checks");return}if(!n.current){n0.logger.debug("Session watcher - follower tab, skipping network check"),f(p);return}let e=Date.now();if(e-a.current<6e4){n0.logger.debug("Session watcher - check rate-limited"),f(p);return}a.current=e;let r=t.current>=1,s=await c(r);if(i.current){if("invalid"===s){if(t.current+=1,n0.logger.warn("Session watcher - invalid session response",{count:t.current,threshold:2}),t.current>1){var u;n0.logger.warn("Session watcher - session confirmed invalid, redirecting to logout"),null===(u=o.current)||void 0===u||u.postMessage({type:"session-invalid"}),n3();return}}else"valid"===s?(t.current=0,n0.logger.debug("Session watcher - session valid")):n0.logger.debug("Session watcher - session check result unknown (network or server error), retrying next cycle");f(p)}};if("BroadcastChannel"in window){let e=new BroadcastChannel("session-watcher-leader");o.current=e,e.onmessage=e=>{var t,r;(null===(t=e.data)||void 0===t?void 0:t.type)==="session-invalid"?(n0.logger.warn("Session watcher - received session-invalid broadcast, redirecting to logout"),n3()):(null===(r=e.data)||void 0===r?void 0:r.type)==="leader-claim"&&(n.current=!1,n0.logger.debug("Session watcher - another tab claimed leadership, yielding"))}}"visible"===document.visibilityState?u():n0.logger.debug("Session watcher - tab hidden at mount, waiting for visibility");let d=setInterval(()=>{n.current&&localStorage.setItem(n1,String(Date.now()))},7500);"visible"===document.visibilityState&&p();let h=()=>{"visible"===document.visibilityState?(u(),s.current&&clearTimeout(s.current),s.current=setTimeout(p,200)):(l(),r.current&&(clearTimeout(r.current),r.current=null))};return window.addEventListener("focus",h),document.addEventListener("visibilitychange",h),()=>{var e;n0.logger.debug("Session watcher unmounted"),localStorage.removeItem(n1),i.current=!1,r.current&&clearTimeout(r.current),s.current&&clearTimeout(s.current),clearInterval(d),null===(e=o.current)||void 0===e||e.close(),window.removeEventListener("focus",h),document.removeEventListener("visibilitychange",h)}},[c,u,l,e]),null},n4=r(25241),n5=function(e){var t=e.HeadManager,r=e.speedCurveId;return O.createElement(t,null,O.createElement("script",{dangerouslySetInnerHTML:{__html:'LUX=(function(){var a=("undefined"!==typeof(LUX)&&"undefined"!==typeof(LUX.gaMarks)?LUX.gaMarks:[]);var d=("undefined"!==typeof(LUX)&&"undefined"!==typeof(LUX.gaMeasures)?LUX.gaMeasures:[]);var j="LUX_start";var k=window.performance;var l=("undefined"!==typeof(LUX)&&LUX.ns?LUX.ns:(Date.now?Date.now():+(new Date())));if(k&&k.timing&&k.timing.navigationStart){l=k.timing.navigationStart}function f(){if(k&&k.now){return k.now()}var o=Date.now?Date.now():+(new Date());return o-l}function b(n){if(k){if(k.mark){return k.mark(n)}else{if(k.webkitMark){return k.webkitMark(n)}}}a.push({name:n,entryType:"mark",startTime:f(),duration:0});return}function m(p,t,n){if("undefined"===typeof(t)&&h(j)){t=j}if(k){if(k.measure){if(t){if(n){return k.measure(p,t,n)}else{return k.measure(p,t)}}else{return k.measure(p)}}else{if(k.webkitMeasure){return k.webkitMeasure(p,t,n)}}}
294var r=0,o=f();if(t){var s=h(t);if(s){r=s.startTime}else{if(k&&k.timing&&k.timing[t]){r=k.timing[t]-k.timing.navigationStart}else{return}}}if(n){var q=h(n);if(q){o=q.startTime}else{if(k&&k.timing&&k.timing[n]){o=k.timing[n]-k.timing.navigationStart}else{return}}}d.push({name:p,entryType:"measure",startTime:r,duration:(o-r)});return}function h(n){return c(n,g())}function c(p,o){for(i=o.length-1;i>=0;i--){var n=o[i];if(p===n.name){return n}}return undefined}function g(){if(k){if(k.getEntriesByType){return k.getEntriesByType("mark")}else{if(k.webkitGetEntriesByType){return k.webkitGetEntriesByType("mark")}}}return a}return{mark:b,measure:m,gaMarks:a,gaMeasures:d}})();LUX.ns=(Date.now?Date.now():+(new Date()));LUX.ac=[];LUX.cmd=function(a){LUX.ac.push(a)};LUX.init=function(){LUX.cmd(["init"])};LUX.send=function(){LUX.cmd(["send"])};LUX.addData=function(a,b){LUX.cmd(["addData",a,b])};LUX_ae=[];window.addEventListener("error",function(a){LUX_ae.push(a)});LUX_al=[];if("function"===typeof(PerformanceObserver)&&"function"===typeof(PerformanceLongTaskTiming)){var LongTaskObserver=new PerformanceObserver(function(c){var b=c.getEntries();for(var a=0;a<b.length;a++){var d=b[a];LUX_al.push(d)}});try{LongTaskObserver.observe({type:["longtask"]})}catch(e){}};'}}),O.createElement("script",{async:!0,defer:!0,key:"speedcurve",src:"https://cdn.speedcurve.com/js/lux.js?id=".concat(r),crossOrigin:"anonymous"}))}
294,n7=r(77216),n9=r(84164);function oe(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,o)}function ot(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){oe(i,n,o,a,s,"next",e)}function s(e){oe(i,n,o,a,s,"throw",e)}a(void 0)})}}var or=r(64687),on=r.n(or),oo=r(31654),oi={AFFINITYCOHORTS:{API:function(e){return"https://api.permutive.com/ctx/v1/segment?k=".concat(e)},ERROR_MESSAGE:"Affinity Cohorts did not return ok"},CONSENT:{PURPOSES:[1,3,5,7,8,9,10],REQUIRED:!0,VENDORS:[361]},CLIENTDATA:{url:"undefined"!=typeof document?document.URL:"",referrer:"undefined"!=typeof document?document.referrer:"",type:"web",user_agent:"undefined"!=typeof navigator?navigator.userAgent:"",domain:window.location.hostname,title:"undefined"!=typeof document?document.title:""},MONITORING:{INIT:"permutive-affinity-cohorts-init",API_REQUESTED:"permutive-affinity-cohorts-api-requested",API_RETURNED:"permutive-affinity-cohorts-api-returned",API_NOT_REQUESTED:"permutive-affinity-cohorts-api-not-requested",API_REQUEST_COMPLETE:"permutive-affinity-cohorts-time-to-api-return",SET_TARGETING:"permutive-affinity-cohorts-set-targeting",TIME_TO_SET_TARGETING:"permutive-affinity-cohorts-time-to-set-targeting",TIME_TO_COMPLETE:"permutive-affinity-cohorts-time-to-complete"}},oa=ot(on().mark(function e(){return on().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(0,O.useEffect)(function(){(function(){var e=ot(on().mark(function e(){var t,r;return on().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(window.permutive){e.next=2;break}return e.abrupt("return");case 2:return t=oi.CONSENT,e.next=5,(0,oo.onConsentReady)();case 5:r=e.sent,(0,oo.hasRequisiteConsent)({tcdata:r,purposes:t.PURPOSES,vendorIds:t.VENDORS})?window.permutive.consent({opt_in:!0,token:"CONSENT_CAPTURED"}):window.permutive.consent({opt_in:!1});case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}})()()},[]);case 1:case"end":return e.stop()}},e)})),os=function(e){var t=e.projectId,r=e.apiKey,n=e.namespace,o=e.children,i=e.amp;return oa(),O.createElement(O.Fragment,null,t&&r&&O.createElement(nn.Z,null,O.createElement(nr.Helmet,null,O.createElement("script",null,'\n !function(n,e,o,r,i){if(!e){e=e||{},window.permutive=e,e.q=[],e.config=i||{},e.config.projectId=o,e.config.apiKey=r,e.config.environment=e.config.environment||"production";for(var t=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],c=0;c<t.length;c++){var f=t[c];e[f]=function(n){return function(){var o=Array.prototype.slice.call(arguments,0);e.q.push({functionName:n,arguments:o})}}(f)}}}(document,window.permutive,"'.concat(t,'","').concat(r,'",{ "consentRequired": true })\n ')))),O.createElement(n9.Z.Provider,{value:{projectId:t,apiKey:r,namespace:n,amp:i}},o))};os.defaultProps={children:null,amp:!1,namespace:"immediatemedia"};var oc=r(19011);function ou(e){return(ou="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)}function ol(){ol=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(t,r,n,i){var a,s,c=Object.create((r&&r.prototype instanceof m?r:m).prototype);return o(c,"_invoke",{value:(a=new E(i||[]),s=p,function(r,o){if(s===d)throw Error("Generator is already running");if(s===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var c=function t(r,n){var o=n.method,i=r.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&r.iterator.return&&
vendor: 5,139 bytes, line 294
294(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),y;var a=f(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,y)}(i,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===p)throw s=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=d;var u=f(t,n,a);if("normal"===u.type){if(s=a.done?h:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=h,a.method="throw",a.arg=u.arg)}})}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",y={};function m(){}function g(){}function v(){}var b={};u(b,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(A([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=v.prototype=m.prototype=Object.create(b);function j(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t(function(r,a){!function r(o,i,a,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==ou(l)&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(l).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,s)})}s(c.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}})}function _(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw TypeError(ou(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,c,"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,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},j(x.prototype),u(x.prototype,s,function(){return this}),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},j(S),u(S,c,"Generator"),u(S,a,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];
294if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function of(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,o)}function op(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){of(i,n,o,a,s,"next",e)}function s(e){of(i,n,o,a,s,"throw",e)}a(void 0)})}}var od=(o=op(ol().mark(function e(t,n){var o,i;return ol().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={},e.next=3,r.e(906).then(r.bind(r,20906));case 3:return e.t0=e.sent.default,e.next=6,r.e(723).then(r.bind(r,47723));case 6:return e.t1=e.sent.default,e.next=9,r.e(516).then(r.bind(r,87516));case 9:return e.t2=e.sent.default,e.next=12,r.e(258).then(r.bind(r,36258));case 12:return e.t3=e.sent.default,e.t4={webBff:e.t0,frontendServices:e.t1,patchwork:e.t2,pockets:e.t3},e.next=16,r.e(681).then(r.bind(r,32681));case 16:return e.t5=e.sent.default,e.next=19,r.e(302).then(r.bind(r,28302));case 19:return e.t6=e.sent.default,e.next=22,r.e(618).then(r.bind(r,65618));case 22:return e.t7=e.sent.default,e.next=25,r.e(108).then(r.bind(r,52108));case 25:return e.t8=e.sent.default,e.t9={webBff:e.t5,frontendServices:e.t6,patchwork:e.t7,pockets:e.t8},e.next=29,r.e(670).then(r.bind(r,83670));case 29:return e.t10=e.sent.default,e.next=32,r.e(450).then(r.bind(r,90450));case 32:return e.t11=e.sent.default,e.next=35,r.e(151).then(r.bind(r,51151));case 35:return e.t12=e.sent.default,e.next=38,r.e(790).then(r.bind(r,66790));case 38:return e.t13=e.sent.default,e.t14={webBff:e.t10,frontendServices:e.t11,patchwork:e.t12,pockets:e.t13},e.next=42,r.e(697).then(r.bind(r,21697));case 42:return e.t15=e.sent.default,e.next=45,r.e(470).then(r.bind(r,41470));case 45:return e.t16=e.sent.default,e.next=48,r.e(969).then(r.bind(r,38969));case 48:return e.t17=e.sent.default,e.next=51,r.e(120).then(r.bind(r,23120));case 51:return e.t18=e.sent.default,e.t19={webBff:e.t15,frontendServices:e.t16,patchwork:e.t17,pockets:e.t18},e.next=55,r.e(714).then(r.bind(r,20714));case 55:return e.t20=e.sent.default,e.next=58,r.e(455).then(r.bind(r,44455));case 58:return e.t21=e.sent.default,e.next=61,r.e(463).then(r.bind(r,80463));case 61:return e.t22=e.sent.default,e.next=64,r.e(702).then(r.bind(r,90702));case 64:return e.t23=e.sent.default,e.t24={webBff:e.t20,frontendServices:e.t21,patchwork:e.t22,pockets:e.t23},i={cs:e.t4,en:e.t9,es:e.t14,pl:e.t19,fr:e.t24},n.forEach(function(e){o[e]={},t.forEach(function(){var t=op(ol().mark(function t(r){return ol().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o[e][r]=i[e][r];case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}),e.abrupt("return",o);case 69:case"end":return e.stop()}},e)})),function(e,t){return o.apply(this,arguments)}),oh=r(88143);function oy(e){return(oy="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)}function om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=oy(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oy(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oy(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEac
294h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ov=function(e){var t,r,n=e.siteKey,o=void 0===n?"slate":n,i=e.namespaces,a=e.fallback,s=void 0===a?"en":a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o in oh.tc||console.error("".concat(o," is not a recognised site in the translation package. Default to slate")),!Array.isArray(i))throw Error("Namespaces should be an array for example: ['".concat(i,"']"));var u="en",l=[];return null!==(t=oh.tc[o])&&void 0!==t&&t.language&&(u=null===(r=oh.tc[o])||void 0===r?void 0:r.language.split("-")[0]),l.push(u),u!==s&&l.push(s),og(og({},c),{},{lng:u,ns:i,fallbackNS:i.slice(1),fallbackLng:s,supportedLngs:l,load:"languageOnly"})};function ob(e){return(ob="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)}function ow(){ow=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(t,r,n,i){var a,s,c=Object.create((r&&r.prototype instanceof m?r:m).prototype);return o(c,"_invoke",{value:(a=new E(i||[]),s=p,function(r,o){if(s===d)throw Error("Generator is already running");if(s===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var c=function t(r,n){var o=n.method,i=r.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),y;var a=f(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,y)}(i,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===p)throw s=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=d;var u=f(t,n,a);if("normal"===u.type){if(s=a.done?h:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=h,a.method="throw",a.arg=u.arg)}})}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",d="executing",h="completed",y={};function m(){}function g(){}function v(){}var b={};u(b,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(A([])));O&&O!==r&&n.call(O,a)&&(b=O);var S=v.prototype=m.prototype=Object.create(b);function j(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t(function(r,a){!function r(o,i,a,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==ob(l)&&n.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(l).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,s)})}s(c.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}})}function _(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw TypeError(ob(t)+" is not iterable")}return g.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=u(v,c,"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,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},j(x.prototype),u(x.prototype,s,function(){return this}),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
294ise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},j(S),u(S,c,"Generator"),u(S,a,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=ob(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ob(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ob(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function oj(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,o)}var ox=(i=ow().mark(function e(t){var r,n,o,i,a=arguments;return ow().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=ov({siteKey:t.siteKey,namespaces:r=t.namespaces,fallback:void 0===(n=t.fallback)?"en":n},a.length>1&&void 0!==a[1]?a[1]:{}),e.next=5,od(r,o.supportedLngs);case 5:return i=e.sent,e.abrupt("return",oS(oS({},o),{},{resources:i}));case 7:case"end":return e.stop()}},e)}),a=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=i.apply(e,t);function a(e){oj(o,r,n,a,s,"next",e)}function s(e){oj(o,r,n,a,s,"throw",e)}a(void 0)})},function(e){return a.apply(this,arguments)});r(57515);var o_={PREFIX:"Stitcher | EFE | Third Party Claims |"};function oP(e){return(oP="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)}function oE(){var e=oT(),t=e.m(oE),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,oA(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(oE=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new oR(e,t)},AsyncIterator:oN,async:function(e,t,r,o,a){return(n(t)?oC:function(e,t,r,n,o){var i=oC(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:ok,values:oA}})()}function oA(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
294if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(oP(e)+" is not iterable")}function ok(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function oC(e,t,r,n,o){return new oN(oT().w(e,t,r,n),o||Promise)}function oN(e,t){var r;this.next||(oI(oN.prototype),oI(oN.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),oI(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof oR?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function oT(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return oI(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(oI(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,oI(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,oI(f,"constructor",u),oI(u,"constructor",c),c.displayName="GeneratorFunction",oI(u,o,"GeneratorFunction"),oI(f),oI(f,o,"Generator"),oI(f,n,function(){return this}),oI(f,"toString",function(){return"[object Generator]"}),(oT=function(){return{w:i,m:p}})()}function oI(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(oI=function(e,t,r,n){function i(t,r){oI(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function oR(e,t){this.v=e,this.k=t}function oL(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function oD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oM(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oM(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var oF=(s=oE().mark(function e(t){var r,n,o,i;return oE().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.providers,n=t.tcString,e.prev=1,o=Object.entries(r).filter(function(e){return oD(e,2)[1]}).map(function(e){return oD(e,1)[0].replace(/_/g,"-")}).join(","),e.next=5,fetch("".concat("/api/auth/v1/third-party-claims","?providers=").concat(o),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tcString:n})});case 5:if(401!==(i=e.sent).status){e.next=9;break}return tO.logger.info("".concat(o_.PREFIX," User is not logged in, no claims to
294send"),{statusCode:i.status,statusText:i.statusText,statusMessage:"User not logged in"}),e.abrupt("return",!1);case 9:if(i.ok){e.next=11;break}throw Error("".concat(o_.PREFIX," Failed to fetch third party claims"));case 11:return e.abrupt("return",i.json());case 14:return e.prev=14,e.t0=e.catch(1),tO.logger.error(e.t0),e.abrupt("return",!1);case 18:case"end":return e.stop()}},e,null,[[1,14]])}),c=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=s.apply(e,t);function i(e){oL(o,r,n,i,a,"next",e)}function a(e){oL(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return c.apply(this,arguments)}),oU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;return new Promise(function(r,n){var o=Date.now();!function i(){var a,s,c=null==e?void 0:null===(a=e.getUserContext())||void 0===a?void 0:null===(s=a.config)||void 0===s?void 0:s.thirdPartyClaimsAllowed;null!=c?r(c):Date.now()-o>=t?(tO.logger.info("".concat(o_.PREFIX," Timed out waiting for third party claim providers from Stitcher")),n(Error("Timed out waiting for third party claim providers from Stitcher"))):requestAnimationFrame(i)}()})};function oZ(e){return(oZ="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)}function oB(){var e=oH(),t=e.m(oB),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,o$(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(oB=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new oW(e,t)},AsyncIterator:oq,async:function(e,t,r,o,a){return(n(t)?oz:function(e,t,r,n,o){var i=oz(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:oG,values:o$}})()}function o$(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(oZ(e)+" is not iterable")}function oG(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function oz(e,t,r,n,o){return new oq(oH().w(e,t,r,n),o||Promise)}function oq(e,t){var r;this.next||(oV(oq.prototype),oV(oq.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),oV(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof oW?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function oH(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return oV(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
294if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(oV(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,oV(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,oV(f,"constructor",u),oV(u,"constructor",c),c.displayName="GeneratorFunction",oV(u,o,"GeneratorFunction"),oV(f),oV(f,o,"Generator"),oV(f,n,function(){return this}),oV(f,"toString",function(){return"[object Generator]"}),(oH=function(){return{w:i,m:p}})()}function oV(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(oV=function(e,t,r,n){function i(t,r){oV(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function oW(e,t){this.v=e,this.k=t}function oK(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function oY(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){oK(i,n,o,a,s,"next",e)}function s(e){oK(i,n,o,a,s,"throw",e)}a(void 0)})}}var oQ=(u=oY(oB().mark(function e(t){var r,n;return oB().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.isLoggedIn,e.next=3,(0,oo.onConsentReady)();case 3:n=e.sent,window.adq=window.adq||[],window.adq.push(function(){var e=oY(oB().mark(function e(t){var o,i;return oB().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}return tO.logger.debug("".concat(o_.PREFIX," User is not logged in, clearing user context")),null==t||t.clearUserContext({}),e.abrupt("return");case 4:return e.next=6,null==t?void 0:t.isUserContextValid();case 6:if(!e.sent){e.next=10;break}return t.setUserContext({useCache:!0}),e.abrupt("return");case 10:return e.next=12,oU(t);case 12:return o=e.sent,e.next=15,oF({providers:o,tcString:n.tcString});case 15:i=e.sent,t.setUserContext({thirdPartyClaims:i});case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}},e)})),function(e){return u.apply(this,arguments)}),oX=r(9008),oJ=r.n(oX),o0=function(e){var t=e.async,r=e.defer,n=e.fetchpriority,o=e.src,i=e.cookieName,a=e.cookieValue,s=e.delayUntil;return(0,e1.jsx)(nA.Z,{as:"script",dangerouslySetInnerHTML:{__html:"\n function isCookieValid(cookieName, cookieValue, src) {\n const match = document.cookie.match(new RegExp('(?:^|; )' + cookieName + '=([^;]*)'));\n if (!match) return false;\n const actualValue = match[1];\n\n if (cookieValue === 'null') {\n return true;\n }\n\n if (cookieValue !== 'null') {\n return actualValue === cookieValue;\n }\n return true;\n }\n (function () {\n setTimeout(function () {\n if (!isCookieValid('".concat(i,"', '").concat(a,"', '").concat(o,"')) {\n var script = document.createElement('script');\n script.async = ").concat(t,";\n script.defer = ").concat(r,";\n script.fetchPriority = '").concat(n,"';\n script.src = '").concat(o,"';\n document.head.appendChild(script);\n }\n }, ").concat(void 0===s?100:s,");\n })();\n ")}})},o1=function(e){var t=e.async,r=e.consentData,n=e.consentPurposes,o=e.defer,i=e.fetchpriority,a=e.src,s=e.vendorIds;return(0,e1.jsx)(nA.Z,{as:"script",dangerouslySetInnerHTML:{__html:"\n window.__tcfapi('addEventListener', 2, (tcData, listenerSuccess) => {\n if (!listenerSuccess) {\n const error = new Error('addEventListener failure in TCFAPI');\n console.error(error);\n\n return;\n }\n\n if (".concat((0,oo.hasRequisiteConsent)({tcdata:r,purposes:n,vendorIds:s}),") {\n const script = document.createElement('script');\n script.async = ").concat(t,";\n script.defer = ").concat(o,";\n script.fetchpriority = '").concat(i,"';\n script.src = '").concat(a,"';\n\n document.head.appendChild(script);\n window.__tcfapi('removeEventListener', 2, (removeSuccess) =>
294 {\n if (!removeSuccess) {\n const error = new Error('removeEventListener failure in TCFAPI');\n\n console.error(error);\n }\n }, tcData.listenerId);\n }\n });\n ")}})};function o2(e){return(o2="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)}function o3(){var e=o7(),t=e.m(o3),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,o8(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(o3=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new ie(e,t)},AsyncIterator:o5,async:function(e,t,r,o,a){return(n(t)?o4:function(e,t,r,n,o){var i=o4(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:o6,values:o8}})()}function o8(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(o2(e)+" is not iterable")}function o6(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function o4(e,t,r,n,o){return new o5(o7().w(e,t,r,n),o||Promise)}function o5(e,t){var r;this.next||(o9(o5.prototype),o9(o5.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o9(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof ie?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function o7(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return o9(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(o9(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,o9(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,o9(f,"constructor",u),o9(u,"constructor",c),c.displayName="GeneratorFunction",o9(u,o,"GeneratorFunction"),o9(f),o9(f,o,"Generator"),o9(f,n,function(){return this}),o9(f,"toString",function(){return"[object Generator]"}),(o7=function(){return{w:i,m:p}})()}function o9(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(o9=function(e,t,r,n){function i(t,r){o9(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function ie(e,t){this.v=e,this.k=t}function it(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
294finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ii(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function io(e){return function(e){if(Array.isArray(e))return ia(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ii(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t){if(e){if("string"==typeof e)return ia(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ia(e,t):void 0}}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?is(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=o2(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o2(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o2(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var iu="defer",il=[1,2,3,4,5,6,7,8,9,10,11],ip=[],id=function(e){try{return encodeURI(e)}catch(e){return null}},ih=function(e){var t=e.type,r=id(e.url);return r?"<".concat(r,'>; rel="').concat(t,'"'):null},iy=function(e){var t=e.as,r=ih({type:"preload",url:e.url});return r?"".concat(r,'; as="').concat(t,'"'):null},im=function(e,t){var r=e.consent,n=e.cookieSettings,o=e.fetchPriority,i=e.loadStrategy,a=e.type,s=e.url,c=e.userConsent,u=id(s),l=!1;if(!u)return null;var f=null==n?void 0:n.useCookieSettings,p=(null==n?void 0:n.cookie)||{},d={async:"async"===(i||iu),cookieName:p.cookie_to_check,cookieValue:p.value_to_check,defer:"defer"===(i||iu),fetchpriority:o||"auto",src:u,type:"script"===a?void 0:a},h=(0,e1.jsx)("script",ic({},d)),y="manifest-script-".concat(t),m=r||{},g=m.purposes,v=m.vendorId,b=v?[v]:ip,w=g||il;return(c&&(l=(0,oo.hasRequisiteConsent)({tcdata:c,vendorIds:b,purposes:w}
294)),null!=r&&r.required&&!l)?(0,e1.jsx)(o1,ic(ic({},d),{},{consentData:c,consentPurposes:w,vendorIds:b}),y):null!=r&&r.required&&l?(0,e1.jsx)(oJ(),{children:h},y):f?(0,e1.jsx)(o0,ic({},d),y):(0,e1.jsx)(oJ(),{children:h},y)},ig=function(e){var t=e.preload,r=e.url;return!0!==t?null:iy({as:"script",url:r})},iv=function(e){return null!==e},ib=function(e){return e.map(function(e){return"preload"===e.type?iy(e):ih(e)}).filter(iv)},iw=function(e){return e.map(ig).filter(iv)},iO=function(e,t,r){var n=e.filter(function(e){var t;return!(null!==(t=e.consent)&&void 0!==t&&t.required)&&!r.has(e.url)}),o=e.filter(function(e){var t;return(null===(t=e.consent)||void 0===t?void 0:t.required)&&!r.has(e.url)}),i=n.map(function(e,t){return im(ic({},e),t)}).filter(iv);if(null===t)return i;var a=o.map(function(e,r){return im(ic(ic({},e),{},{userConsent:t}),r+i.length)}).filter(iv);return[].concat(io(i),io(a))},iS=function(e){var t=e.scripts,r=ir((0,O.useState)(null),2),n=r[0],o=r[1],i=ir((0,O.useState)(new Set),2),a=i[0],s=i[1];(0,O.useEffect)(function(){var e,t;(e=o3().mark(function e(){return o3().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oo.onConsentReady)();case 2:o(e.sent);case 4:case"end":return e.stop()}},e)}),t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){it(i,n,o,a,s,"next",e)}function s(e){it(i,n,o,a,s,"throw",e)}a(void 0)})},function(){return t.apply(this,arguments)})()},[]),(0,O.useEffect)(function(){var e=new Set(a),r=t.filter(function(e){var t;return!(null!==(t=e.consent)&&void 0!==t&&t.required)&&!a.has(e.url)}),o=t.filter(function(e){var t;return(null===(t=e.consent)||void 0===t?void 0:t.required)&&!a.has(e.url)});r.forEach(function(t){e.add(t.url)}),o.forEach(function(t){null!==n&&e.add(t.url)}),e.size!==a.size&&s(e)},[t,n]);var c=iO(t,n,a);return(0,e1.jsx)(e1.Fragment,{children:c})},ij=function(e,t){var r="https://".concat(t);return e.map(function(e){var t;return(t=e.url,/^(?:https?:)?\/\//.test(t))?e:ic(ic({},e),{},{url:r+e.url})})},ix=function(e,t){var r=e.scripts;if(e.localiseManifest){var n=ij(r,t);return(0,e1.jsx)(iS,{scripts:n})}return(0,e1.jsx)(iS,{scripts:r})},i_=function(e,t){var r=e.scripts,n=e.resourceHints;return e.localiseManifest?[].concat(io(iw(ij(r,t))),io(ib(n))):[].concat(io(iw(r)),io(ib(n)))},iP={staging:"develop.",preproduction:"release.",production:""},iE=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=iP[null==e?void 0:null===(t=e.context)||void 0===t?void 0:t.env],i=null==e?void 0:null===(r=e.config)||void 0===r?void 0:r.domain;return i&&void 0!==o?"".concat(n?"www.":"").concat(o).concat(i):null},iA=r(83300),ik=r.n(iA);r(94079);let iC={},iN={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),iC[e]=t,iN[t]=e}function iT(e){let t="";for(let r=0;r<e.byteLength;r++)t+=iC[e[r]];return t}class iI{constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x7fffffffffffffff||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&iR(t),new iI(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&iR(e),parseInt(iT(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function iR(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class iL{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let r of Object.keys(e)){let n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),n=0;for(let e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(a,3),c;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(iI.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!iq.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in iN)t[r/2]=iN[n];else throw Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){let t={},r=0;for(;r<e.byteLength;
294){let n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:iD,value:!0};break;case 1:t[o]={type:iD,value:!1};break;case 2:t[o]={type:iM,value:e.getInt8(r++)};break;case 3:t[o]={type:iF,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:iU,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:iZ,value:new iI(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let i=e.getUint16(r,!1);r+=2,t[o]={type:iB,value:new Uint8Array(e.buffer,e.byteOffset+r,i)},r+=i;break;case 7:let a=e.getUint16(r,!1);r+=2,t[o]={type:i$,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,a))},r+=a;break;case 8:t[o]={type:iG,value:new Date(new iI(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:iz,value:`${iT(s.subarray(0,4))}-${iT(s.subarray(4,6))}-${iT(s.subarray(6,8))}-${iT(s.subarray(8,10))}-${iT(s.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}(l=b||(b={}))[l.boolTrue=0]="boolTrue",l[l.boolFalse=1]="boolFalse",l[l.byte=2]="byte",l[l.short=3]="short",l[l.integer=4]="integer",l[l.long=5]="long",l[l.byteArray=6]="byteArray",l[l.string=7]="string",l[l.timestamp=8]="timestamp",l[l.uuid=9]="uuid";let iD="boolean",iM="byte",iF="short",iU="integer",iZ="long",iB="binary",i$="string",iG="timestamp",iz="uuid",iq=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,iH={},iV={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),iH[e]=t,iV[t]=e}function iW(e){let t="";for(let r=0;r<e.byteLength;r++)t+=iH[e[r]];return t}let iK=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},iY=e=>new TextDecoder("utf-8").decode(e),iQ=e=>new TextEncoder().encode(e),iX=e=>"string"==typeof e?iQ(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),iJ="X-Amz-Date",i0="X-Amz-Signature",i1="X-Amz-Security-Token",i2="authorization",i3=iJ.toLowerCase(),i8=[i2,i3,"date"],i6=i0.toLowerCase(),i4="x-amz-content-sha256",i5=i1.toLowerCase(),i7={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},i9=/^proxy-/,ae=/^sec-/,at="AWS4-HMAC-SHA256",ar="aws4_request",an={},ao=[],ai=(e,t,r)=>`${e}/${t}/${r}/${ar}`,aa=async(e,t,r,n,o)=>{let i=await as(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${o}:${iW(i)}:${t.sessionToken}`;if(a in an)return an[a];for(ao.push(a);ao.length>50;)delete an[ao.shift()];let s=`AWS4${t.secretAccessKey}`;for(let t of[r,n,o,ar])s=await as(e,s,t);return an[a]=s},as=(e,t,r)=>{let n=new e(t);return n.update(iX(r)),n.digest()},ac=({headers:e},t,r)=>{let n={};for(let o of Object.keys(e).sort()){if(void 0==e[o])continue;let i=o.toLowerCase();(!(i in i7||t?.has(i)||i9.test(i)||ae.test(i))||r&&(!r||r.has(i)))&&(n[i]=e[o].trim().replace(/\s+/g," "))}return n},au=e=>encodeURIComponent(e).replace(/[!'()*]/g,al),al=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,af=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===i6)continue;t.push(n);let o=e[n];"string"==typeof o?r[n]=`${au(n)}=${au(o)}`:Array.isArray(o)&&(r[n]=o.slice(0).sort().reduce((e,t)=>e.concat([`${au(n)}=${au(t)}`]),[]).join("&"))}return t.map(e=>r[e]).filter(e=>e).join("&")},ap=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),ad=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===i4)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||ap(t)){let e=new r;return e.update(iX(t)),iW(await e.digest())}return"UNSIGNED-PAYLOAD"},ah=(e,t)=>{for(let r of(e=e.toLowerCase(),Object.keys(t)))if(e===r.toLowerCase())return!0;return!1},ay=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?am(t):void 0}),am=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{}),ag=(e,t={})=>{let{headers:r,query:n={}}="function"==typeof e.clone?e.clone():ay(e);for(let e of Object.keys(r)){let o=e.toLowerCase();
294"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}},av=e=>{for(let t of Object.keys((e="function"==typeof e.clone?e.clone():ay(e)).headers))i8.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ab=e=>aw(e).toISOString().replace(/\.\d{3}Z$/,"Z"),aw=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?new Date(Number(e)?1e3*Number(e):e):e;class aO{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new iL(iY,iQ),this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=iK(r),this.credentialProvider=iK(t)}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:s,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);let l=s??await this.regionProvider(),{longDate:f,shortDate:p}=aS(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let d=ai(p,l,c??this.service),h=ag(av(e),{unhoistableHeaders:i});u.sessionToken&&(h.query[i1]=u.sessionToken),h.query["X-Amz-Algorithm"]=at,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${d}`,h.query[iJ]=f,h.query["X-Amz-Expires"]=n.toString(10);let y=ac(h,o,a);return h.query["X-Amz-SignedHeaders"]=aj(y),h.query[i0]=await this.get
294Signature(f,d,this.getSigningKey(u,l,p,c),this.createCanonicalRequest(h,y,await ad(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){let a=o??await this.regionProvider(),{shortDate:s,longDate:c}=aS(r),u=ai(s,a,i??this.service),l=await ad({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let p=["AWS4-HMAC-SHA256-PAYLOAD",c,u,n,iW(await f.digest()),l].join("\n");return this.signString(p,{signingDate:r,signingRegion:a,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let i=r??await this.regionProvider(),{shortDate:a}
294=aS(t),s=new this.sha256(await this.getSigningKey(o,i,a,n));return s.update(iX(e)),iW(await s.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let s=o??await this.regionProvider(),c=av(e),{longDate:u,shortDate:l}=aS(t),f=ai(l,s,i??this.service);c.headers[i3]=u,a.sessionToken&&(c.headers[i5]=a.sessionToken);let p=await ad(c,this.sha256);!ah(i4,c.headers)&&this.applyChecksum&&(c.headers[i4]=p);let d=ac(c,n,r),h=await this.getSignature(u,f,this.getSigningKey(a,s,l,i),this.createCanonicalRequest(c,d,p));return c.headers[i2]=`${at} Credential=${a.accessKeyId}/${f}, SignedHeaders=${aj(d)}, Signature=${h}`,c}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method} 295${this.getCanonicalPath(e)} 296${af(e)} 297${n.map(e=>`${e}:${t[e]}`).join("\n")} 298 299${n.join(";")} 300${r}`}async createStringToSign(e,t,r){let n=new this.sha256;n.update(iX(r));let o=await n.digest();return`${at} 301${e} 302${t} 303${iW(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let r of e.split("/"))r?.length!==0&&"."!==r&&(".."===r?t.pop():t.push(r));return encodeURIComponent(`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){let o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(iX(o)),iW(await i.digest())}getSigningKey(e,t,r,n){return aa(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}}let aS=e=>{let t=ab(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},aj=e=>Object.keys(e).sort().join(";");var ax=r(19883),a_=r(34155);function aP(e){return(aP="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)}function aE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aE(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=aP(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=aP(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aP(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ak(){var e=aR(),t=e.m(ak),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,aC(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(ak=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new aD(e,t)},AsyncIterator:aI,async:function(e,t,r,o,a){return(n(t)?aT:function(e,t,r,n,o){var i=aT(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:aN,values:aC}})()}function aC(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
303if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(aP(e)+" is not iterable")}function aN(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function aT(e,t,r,n,o){return new aI(aR().w(e,t,r,n),o||Promise)}function aI(e,t){var r;this.next||(aL(aI.prototype),aL(aI.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),aL(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof aD?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function aR(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return aL(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(aL(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,aL(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,aL(f,"constructor",u),aL(u,"constructor",c),c.displayName="GeneratorFunction",aL(u,o,"GeneratorFunction"),aL(f),aL(f,o,"Generator"),aL(f,n,function(){return this}),aL(f,"toString",function(){return"[object Generator]"}),(aR=function(){return{w:i,m:p}})()}function aL(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(aL=function(e,t,r,n){function i(t,r){aL(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function aD(e,t){this.v=e,this.k=t}function aM(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function aF(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){aM(i,n,o,a,s,"next",e)}function s(e){aM(i,n,o,a,s,"throw",e)}a(void 0)})}}var aU=r(5031).fromNodeProviderChain,aZ=(f=aF(ak().mark(function e(t){var r,n,o,i,a,s;return ak().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.host,n=t.pathname,o=t.protocol,i=t.hostname,a=t.searchParams,s=new aO({service:"lambda",region:a_.env.AWS_DEFAULT_REGION,credentials:aU(),sha256:ax.Sha256}),e.abrupt("return",s.sign({method:"GET",hostname:r,path:n,protocol:o,headers:{"Content-Type":"application/json",host:i},query:Object.fromEntries(Array.from(a))}));case 3:case"end":return e.stop()}},e)})),function(e){return f.apply(this,arguments)}),aB=(p=aF(ak().mark(function e(t,r){return ak().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}e.t0=ik()(t),e.next=13;break;case 4:return e.t1=ik(),e.t2=t,e.t3=aA,e.t4={},e.next=10,aZ(t);case 10:e.t5=e.sent,e.t6=(0,e.t3)(e.t4,e.t5),e.t0=(0,e.t1)(e.t2,e.t6);case 13:return e.abrupt("return",e.t0);case 14:case"end":return e.stop()}},e)})),function(e,t){return p.apply(this,arguments)}
303),a$=function(e,t){var r=new URL(e);return r.searchParams.append("stitch_site",null==t?void 0:t.stitch_site),null!=t&&t.stitch_version&&new Date(Number(null==t?void 0:t.stitch_version)).getTime()>0&&r.searchParams.append("stitch_version",null==t?void 0:t.stitch_version),r},aG=(d=aF(ak().mark(function e(t){var r,n,o,i,a,s,c=arguments;return ak().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:null,n=t.authManifest,o=t.manifestLambdaUrl,i=t.localiseFesManifest,e.next=4,aB(a$(o,r),n);case 4:return a=e.sent,e.next=7,a.json();case 7:if(s=e.sent,i&&Object.assign(s,{localiseManifest:i}),!(200!==a.status)){e.next=11;break}throw Error(null==s?void 0:s.message);case 11:return e.abrupt("return",Array.isArray(s)?s.shift():s);case 12:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)});function az(e){return(az="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)}function aq(){var e=aY(),t=e.m(aq),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,aH(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(aq=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new aX(e,t)},AsyncIterator:aK,async:function(e,t,r,o,a){return(n(t)?aW:function(e,t,r,n,o){var i=aW(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:aV,values:aH}})()}function aH(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(az(e)+" is not iterable")}function aV(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function aW(e,t,r,n,o){return new aK(aY().w(e,t,r,n),o||Promise)}function aK(e,t){var r;this.next||(aQ(aK.prototype),aQ(aK.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),aQ(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof aX?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function aY(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return aQ(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
303if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(aQ(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,aQ(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,aQ(f,"constructor",u),aQ(u,"constructor",c),c.displayName="GeneratorFunction",aQ(u,o,"GeneratorFunction"),aQ(f),aQ(f,o,"Generator"),aQ(f,n,function(){return this}),aQ(f,"toString",function(){return"[object Generator]"}),(aY=function(){return{w:i,m:p}})()}function aQ(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(aQ=function(e,t,r,n){function i(t,r){aQ(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function aX(e,t){this.v=e,this.k=t}function aJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a0(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var a1=function(e){var t,r;return(null==e?void 0:null===(t=e.query)||void 0===t?void 0:t.stitch_site)||(null===(r=(0,oh.ZD)({req:e}))||void 0===r?void 0:r.siteKey)},a2=(h=aq().mark(function e(t,r){return aq().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,aG(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aJ(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=az(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=az(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==az(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aJ(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({stitch_site:a1(r)},null==r?void 0:r.query));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),tO.logger.error(e.t0),e.abrupt("return",null);case 10:case"end":return e.stop()}},e,null,[[0,6]])}),y=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=h.apply(e,t);function i(e){a0(o,r,n,i,a,"next",e)}function a(e){a0(o,r,n,i,a,"throw",e)}i(void 0)})},function(e,t){return y.apply(this,arguments)}),a3=r(45697),a8=r(64879),a6=r(53823),a4=r(82624);function a5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a7(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a5(Object(r),!0).forEach(function(t){(0,e6.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a5(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let a9=a8.Z,se=tj.Z,st=a6.Z,sr=tc.Z,sn=a4.Z,so=e7.Z,si=e=>{let{ageLimit:t=18,messageText:r=null,informationText:n=null,optionalTextLink:o=null,adultConfirmCallback:i=()=>!1,redirectCallback:a=()=>{window.location.href="/"},sctrack:s=null}=e,c=(0,ts.Z)("AgeVerificationModal",s),u=(0,O.useRef)(null),{t:l}=(0,eI.$G)(),f=()=>{a()},p=r||l("molecules.ageVerificationModal.intro");return(0,e1.jsx)("div",{"data-feature":"adult-overlay","data-feature-variant":t,className:"age-verification-modal",children:(0,e1.jsxs)(a9,{className:"age-verification-modal__modal",show:!0,hideBackgroun
303d:!0,fluid:!0,onClose:f,children:[(0,e1.jsx)(a9.Header,{children:l("molecules.ageVerificationModal.title")}),(0,e1.jsx)(a9.Body,{children:(0,e1.jsxs)("div",{className:"age-verification-modal__content",children:[(0,e1.jsx)("p",{className:"heading-1",children:p}),(0,e1.jsxs)("div",{className:"age-verification-modal__buttons",children:[(0,e1.jsx)(se,{className:"age-verification-modal__button",onClick:()=>{i(u.current?.checked??!1)},adaptive:!0,children:`${l("molecules.ageVerificationModal.confirm",{ageLimit:t})}`}),(0,e1.jsx)(se,{className:"age-verification-modal__button",onClick:f,secondary:!0,adaptive:!0,children:`${l("molecules.ageVerificationModal.deny",{ageLimit:t})}`})]}),(0,e1.jsxs)("div",{className:"age-verification-modal__consent",children:[(0,e1.jsx)(st,{className:"age-verification-modal__checkbox",ref:u,label:l("molecules.ageVerificationModal.remember"),sctrack:c}),o&&(0,e1.jsx)(sr,{className:"age-verification-modal__link",href:o,sctrack:c,children:l("molecules.ageVerificationModal.moreInfo")}),n&&(0,e1.jsx)(sn,a7(a7({content:n},{position:"top",trigger:"mouseenter"}),{},{children:(0,e1.jsx)(so,a7({className:"age-verification-modal__icon"},{name:"info-circle",size:15}))}))]})]})})]})})};function sa(e){return(sa="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)}function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return su(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?su(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}si.displayName="AgeVerificationModal";var sl=function(e){var t=e.children,r=e.isAdult,n=e.adultModalSettings;if(!r)return t;var o=sc((0,O.useState)(!1),2),i=o[0],a=o[1],s="is_adult",c=sc(function(e){var t=(0,O.useContext)(eF);if(!t)throw Error("Missing <CookiesProvider>");var r=t.getAll(),n=(0,O.useState)(r),o=n[0],i=n[1],a=(0,O.useRef)(o);return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,O.useLayoutEffect)(function(){function r(){var r=t.getAll();(function(e,t,r){if(!e)return!0;for(var n=0;n<e.length;n++){var o=e[n];if(t[o]!==r[o])return!0}return!1})(e||null,r,a.current)&&i(r),a.current=r}return t.addChangeListener(r),function(){t.removeChangeListener(r)}},[t]),[o,(0,O.useMemo)(function(){return t.set.bind(t)},[t]),(0,O.useMemo)(function(){return t.remove.bind(t)},[t])]}([s]),2),u=c[0],l=c[1];(0,O.useEffect)(function(){u[s]||a(!0)},[]);var f=function(){var e=new Date;return e.setFullYear(e.getFullYear()+1),e};return(0,e1.jsxs)(e1.Fragment,{children:[i&&(0,e1.jsx)(si,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=sa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sa(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sa(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEac
303h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({adultConfirmCallback:function(e){a(!1),e?l(s,!0,{path:"/",expires:f()}):l(s,!0,{path:"/"})}},n)),t]})};sl.defaultProps={children:null,isAdult:!1,adultModalSettings:null},sl.propTypes={children:a3.node,isAdult:a3.bool,adultModalSettings:a3.object};var sf=function(e,t){var r,n,o,i=e?null===(r=t.headers)||void 0===r?void 0:r.host:null===(n=window)||void 0===n?void 0:null===(o=n.location)||void 0===o?void 0:o.host;return/^www./.test(i)},sp=function(e){var t=e.postId,r=e.siteKey,n=(0,rJ.Z)(),o=n.user,i=n.isLoading;return(0,eG.J6)(t,r),(0,eG.BP)(t,r),(0,eG.ml)(r),(0,eG.r3)(t,r),(0,O.useEffect)(function(){i||(0,eG.BB)(r,null==o?void 0:o.fabric_user_id)},[r,i,o]),null},sd=r(16036);let sh=async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],sd.logger.debug("Push member status event is temporarily disabled as this site has Auth0 feature enabled.")};function sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sm=function(){var e,t=(0,rJ.Z)(),r=t.user,n=t.isLoading,o=function(e){if(Array.isArray(e))return e}(e=(0,O.useState)(!1))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,2)||function(e,t){if(e){if("string"==typeof e)return sy(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sy(e,2):void 0}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return(0,O.useEffect)(function(){n||i||(sh({memberId:null==r?void 0:r.guid,memberIdp:null==r?void 0:r.idp}),a(!0))},[r,i,n]),null},sg=r(75119);let sv=e=>{let{children:t,email:r=null,fabricUserId:n=null,signUpUrl:o=""}=e,i=(0,O.useMemo)(()=>({email:r,signUpUrl:o,fabricUserId:n}),[r,o]);return(0,e1.jsx)(sg.Z.Provider,{value:i,children:t})};sv.displayName="NewsletterProvider";var sb=function(e){var t=e.backendBasePath,r=e.children,n=(0,rJ.Z)().user;return(0,e1.jsx)(sv,{email:null==n?void 0:n.email,fabricUserId:(null==n?void 0:n.fabric_user_id)||(null==n?void 0:n.guid),signUpUrl:"".concat(t).concat(nW.NEWSLETTER_SIGNUP_PATH),children:r})};function sw(e){return(sw="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)}var sO=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t||"object"!==sw(t))return t;if(Array.isArray(t))return t.map(function(t){return e(t,r)});var n={};return Object.keys(t).forEach(function(o){"schema"===r?n[o]=t[o]:"@id"!==o&&"@type"!==o&&"@context"!==o&&(n[o]=e(t[o],o))}),n};function sS(e){return(sS="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)}function sj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sx(){var e=sk(),t=e.m(sx),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,s_(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(sx=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new sN(e,t)},AsyncIterator:sA,async:function(e,t,r,o,a){return(n(t)?sE:function(e,t,r,n,o){var i=sE(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:sP,values:s_}})()}function s_(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
303if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(sS(e)+" is not iterable")}function sP(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function sE(e,t,r,n,o){return new sA(sk().w(e,t,r,n),o||Promise)}function sA(e,t){var r;this.next||(sC(sA.prototype),sC(sA.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),sC(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof sN?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function sk(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return sC(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(sC(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,sC(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,sC(f,"constructor",u),sC(u,"constructor",c),c.displayName="GeneratorFunction",sC(u,o,"GeneratorFunction"),sC(f),sC(f,o,"Generator"),sC(f,n,function(){return this}),sC(f,"toString",function(){return"[object Generator]"}),(sk=function(){return{w:i,m:p}})()}function sC(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(sC=function(e,t,r,n){function i(t,r){sC(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function sN(e,t){this.v=e,this.k=t}function sT(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function sI(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sT(i,n,o,a,s,"next",e)}function s(e){sT(i,n,o,a,s,"throw",e)}a(void 0)})}}var sR=(m=sI(sx().mark(function e(t){var r;return sx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oo.isLoggedIntoContentpass)();case 2:if(r=e.sent,!t){e.next=5;break}return e.abrupt("return",r?"subscriber":"registered");case 5:return e.abrupt("return","anonymous");case 6:case"end":return e.stop()}},e)})),function(e){return m.apply(this,arguments)}),sL=function(){var e=new URL(window.location.href,window.location.origin);return e.searchParams.delete("weight"),{term:e.searchParams.get("q"),page:e.searchParams.get("page")||1,queryParameters:e.searchParams.toString()}},sD=function(e){var t=e.isLoggedIn,r=e.backendBasePath;return function(e){var n,o=e.type,i=void 0===o?"click":o,a=e.feature,s=void 0===a?"search":a,c=e.limit,u=void 0===c?0:c,l=e.totalItems,f=void 0===l?0:l,p=e.searchApiVersion,d=void 0===p?"5":p,h=e.queryText;return n=sI(sx().mark(function e(n){var o,a,c,l,p,y,m,g,v,b,w,O,S;return sx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(o=n.resultUrl)?"":o,l=void 0===(c=n.resultPosition)?0:c,e.next=3,sR(t);case 3:if(p=e.sent,g=void 0===(m=(y=sL()).term)?"":m,v=y.page,b=y.queryParameters,r){e.next=8;break}return tO.logger.warn("Search relevancy logging error: backendBasePath is undefined"),e.abrupt("return",!1);case 8:return w=JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
303t%2?sj(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=sS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sS(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sS(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({signal_type:i,query_string_text:h||g,query_parameters:b,query_result_count:f,query_pageSize_filters:u,query_pageNo_filters:v,search_feature:s,version:d,user_type:p},"click"===i&&{result_position:l,result_url:a})),e.prev=9,e.next=12,ik()("".concat(r,"/search/search-relevancy"),{method:"POST",headers:{"Content-Type":"application/json"},body:w});case 12:return O=e.sent,e.next=15,O.json();case 15:return S=e.sent,e.abrupt("return",!!S);case 19:return e.prev=19,e.t0=e.catch(9),tO.logger.warn("Search relevancy logging error",{error:e.t0}),e.abrupt("return",!1);case 23:case"end":return e.stop()}},e,null,[[9,19]])})),function(e){return n.apply(this,arguments)}}};function sM(e){return(sM="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)}function sF(){var e=sG(),t=e.m(sF),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,sU(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(sF=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new sq(e,t)},AsyncIterator:s$,async:function(e,t,r,o,a){return(n(t)?sB:function(e,t,r,n,o){var i=sB(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:sZ,values:sU}})()}function sU(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(sM(e)+" is not iterable")}function sZ(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function sB(e,t,r,n,o){return new s$(sG().w(e,t,r,n),o||Promise)}function s$(e,t){var r;this.next||(sz(s$.prototype),sz(s$.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),sz(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof sq?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function sG(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return sz(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
303(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(sz(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,sz(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,sz(f,"constructor",u),sz(u,"constructor",c),c.displayName="GeneratorFunction",sz(u,o,"GeneratorFunction"),sz(f),sz(f,o,"Generator"),sz(f,n,function(){return this}),sz(f,"toString",function(){return"[object Generator]"}),(sG=function(){return{w:i,m:p}})()}function sz(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(sz=function(e,t,r,n){function i(t,r){sz(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function sq(e,t){this.v=e,this.k=t}function sH(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var sV=function(e){var t,r;return t=sF().mark(function t(r){var n,o,i,a,s,c,u,l,f,p=arguments;return sF().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:{},o=String(r)){t.next=4;break}return t.abrupt("return",null);case 4:return a=void 0===(i=n.debug)?0:i,c=void 0===(s=n.limit)?6:s,u=new URLSearchParams({search:o}),void 0!==a&&u.set("debug",String(a)),void 0!==c&&u.set("limit",String(c)),l=e||"",t.next=11,fetch("".concat(l,"/search/completion?").concat(u.toString()));case 11:if((f=t.sent).ok){t.next=14;break}throw Error("Completion request failed with status ".concat(f.status));case 14:return t.abrupt("return",f.json());case 15:case"end":return t.stop()}},t)}),r=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){sH(i,n,o,a,s,"next",e)}function s(e){sH(i,n,o,a,s,"throw",e)}a(void 0)})},function(e){return r.apply(this,arguments)}};function sW(e){return(sW="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)}function sK(){var e=s0(),t=e.m(sK),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,sY(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(sK=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new s2(e,t)},AsyncIterator:sJ,async:function(e,t,r,o,a){return(n(t)?sX:function(e,t,r,n,o){var i=sX(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(i(e),t,r,o,a)},keys:sQ,values:sY}})()}function sY(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(sW(e)+" is not iterable")}function sQ(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function sX(e,t,r,n,o){return new sJ(s0().w(e,t,r,n),o||Promise)}function sJ(e,t){var r;this.next||(s1(sJ.prototype),s1(sJ.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),s1(this,"_invoke",function(n,o,i){function a(){return new t(function(r,o){(function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof s2?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}})(n,i,r,o)})}return r=r?r.then(a,a):a()},!0)}function s0(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=Object.create((n&&n.prototype instanceof s?n:s).prototype);return s1(c,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];r>3?(o=h===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(s=0,p.v=n,p.n=i[1]):d<h&&
303(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),c}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(s1(t={},n,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,s1(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,s1(f,"constructor",u),s1(u,"constructor",c),c.displayName="GeneratorFunction",s1(u,o,"GeneratorFunction"),s1(f),s1(f,o,"Generator"),s1(f,n,function(){return this}),s1(f,"toString",function(){return"[object Generator]"}),(s0=function(){return{w:i,m:p}})()}function s1(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(s1=function(e,t,r,n){function i(t,r){s1(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))})(e,t,r,n)}function s2(e,t){this.v=e,this.k=t}function s3(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s8(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s8(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s6(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s4(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=sW(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sW(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sW(t)?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s4(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s7={},s9=function(e){var t=e.CustomLayout,r=e.defaultLayoutProps,n=e.children,o=e.disableSkimlinks,i=e.disableBelowHeaderPocket,a=e.disableAboveFooterPocket,s=e.disablePageBottomPocket,c=e.hidePromoLogoInHeader,u=r.showAccountNav,l=(0,nB.ie)(),f=(0,rJ.Z)().isLoading;return(0,e1.jsx)(rY,s5(s5(s5({},r),u&&!f?l:{}),{},{disableSkimlinks:o,disableBelowHeaderPocket:i,disableAboveFooterPocket:a,disablePageBottomPocket:s,hidePromoLogoInHeader:c,children:(0,e1.jsx)(t,{children:n})}))},ce=function e(t){var r,n,o,i,a,s,c,u,l,f,p,d,h=t.Component,y=t.pageProps,m=t.pagePaths,g=t.defaultLayoutProps,v=t.siteConfig,b=t.tokens,S=t.pockets,j=t.iconsEmbedManifest,P=t.initialUrl,E=t.publicRuntimeConfig,A=t.i18NextConfig,k=t.currentDomain,C=t.adAssetManifest,N=v.config,T=v.context,I=v.settings,R=v.adSettings,L=y.adSettings,D=y.postFormat,M=y.postId,F=y.postType,U=y.seoMetadata,Z=y.targeting,B=y.taxonomies,$=y.gemius,G=void 0===$?null:$,z=y.c2cVars,q=void 0===z?null:z,H=y.adultContent,V=void 0!==H&&H,W=N.business,K=N.theme,Y=T.siteKey,Q=T.env,X=I.tracking,J=I.sourcepoint,ee=(0,nW.getServiceConfig)(),et=ee.name,er=ee.backendBasePath,en=(0,nK.Z)(),eo=(0,x.useRouter)(),ei=eo.asPath,ea=eo.pathname,es=e.CustomLayout?e.CustomLayout:function(e){return e.children},ec=L||R,eu=s5(s5({},ec),{},{business:W,suppressionOptions:s5(s5({},y.suppression),{},{adultContent:V}),targets:(null==Z?void 0:Z.dfp)||(null==ec?void 0:ec.targets),unitName:(null==ec?void 0:ec.unitName)&&e$(null==ec?void 0:ec.unitName,ei.split("?")[0])}),el=s5(s5({},g),{},{search:g.search?s5(s5({},g.search),{},{centralised:(null===(n=T.featureFlags)||void 0===n?void 0:n.FEATURE_CENTRALISED_SEARCH)&&"/listings"!==ea}):g.search});(0,oc.K)({ignoreQuery:!1}),(0,n4.i)({init:!0,service:et,siteKey:Y,business:W,platform:"Fabric"}),(0,O.useEffect)(function(){var e=performance.now();requestAnimationFrame(function(){var t=performance.now();tO.logger.info("Hydration complete after ".concat((t-e).toFixed(2)," ms")),window.dispatchEvent(new CustomEvent("hydration-complete"))}),window.waitHydrationReady=!0,oQ({isLoggedIn:en})},[]);var ef=(0,nR.Z)(P),ep=(null==A?void 0:A.lng)||"en";s7[ep]||(s7[ep]=eT.createInstance(),s7[ep].use(eI.Db),s7[ep].init(A));var ed=(null==I?void 0:I.tracking)||{},eh=ed.performanceMonitoring,ey=ed.speedCurveId,em=null==I?void 0:null===(o=I.optimizely)||void 0===o?void 0:o.optimizelyId,eg=!!em;return(0,e1.jsxs)(e1.Fragment,{children:[(0,e1.jsx)(rX.default,{children:(0,e1.jsx)("script",{id:"waitHydration",dangerouslySetInnerHTML:{__html:"(() =>
303 {\n if (!window) return;\n window.waitHydrationReady = false;\n window.waitHydrationInterval = null;\n window.waitHydration = new Promise((resolve) => {\n window.waitHydrationInterval = setInterval(() => {\n if (window.waitHydrationReady) {\n clearInterval(window.waitHydrationInterval);\n resolve();\n }\n }, 50);\n });\n })();"}})}),C&&ix(C,k),(0,e1.jsx)(rQ.Z.Provider,{value:v.context.featureFlags,children:(0,e1.jsx)(rX.HeadProvider,{children:(0,e1.jsxs)(nX,{children:[(null===(i=T.featureFlags)||void 0===i?void 0:i.FEATURE_USER_SESSION_V2)&&(0,e1.jsx)(n6,{}),(0,e1.jsx)(sp,{postId:M,siteKey:Y}),(0,e1.jsx)(sm,{}),(0,e1.jsx)(r7,{openWebSettings:null==I?void 0:I.openWebSettings}),(0,e1.jsx)(ni,{theme:K,iconsPublicPath:e$((null==E?void 0:E.assetPrefix)||"/",_.CLIENT_STATIC_FILES_PATH,nW.ICONS_STATIC_DIR),iconsEmbedManifest:j,adobeFontsId:N.adobeFontsId,tokens:b,children:(0,e1.jsxs)(eI.a3,{i18n:s7[ep],children:[(eh||ey)&&(0,e1.jsx)(n5,{HeadManager:rX.default,speedCurveId:ey||"430481854"}),(null==I?void 0:null===(a=I.affiliateLinks)||void 0===a?void 0:a.amazonLinkLocale)&&(0,e1.jsx)(nc,{groupId:null==I?void 0:null===(s=I.affiliateLinks)||void 0===s?void 0:s.groupId}),(null==J?void 0:J.enabled)&&(0,e1.jsx)(np,s5(s5({},J),{},{targetingParams:{env:Q}})),(null==J?void 0:J.contentPassEnabled)&&(0,e1.jsx)(nd,{propertyId:null==J?void 0:J.contentPassPropertyId,baseEndpoint:null==J?void 0:J.contentPassBaseUrl}
303),(null==J?void 0:J.enableUtiq)&&(0,e1.jsx)(nh,{baseEndpoint:null==J?void 0:J.baseEndpoint,siteKey:Y}),(0,e1.jsx)(ny.Z,{adSettings:eu,archivePageSettings:I.archivePageConfig,broadcastServicesShowSettings:I.broadcastServicesShow,cdpSettings:I.cdp,greenVideoSettings:I.greenVideo,newsletterSettings:I.newsletterAdestra,postContent:y,recaptchaSettings:I.recaptcha,recaptchaEnterpriseSettings:I.recaptchaEnterprise,siteContext:T,zephrSettings:null===(c=I.subscriptionVendors)||void 0===c?void 0:c.zephr,auth0Settings:I.auth0Settings,children:(0,e1.jsx)(sb,{backendBasePath:er,children:(0,e1.jsx)(nU.PostContentContext.Provider,{value:y,children:(0,e1.jsx)(nU.PostMetaContext.Provider,{value:null==y?void 0:y.postMeta,children:(0,e1.jsx)(ez.Z.Provider,{value:sD({isLoggedIn:en,backendBasePath:er}),children:(0,e1.jsx)(eq.Z.Provider,{value:(0,nZ.oM)(S),children:(0,e1.jsx)(nU.SettingsContext.Provider,{value:I,children:(0,e1.jsx)(nU.SiteContext.Provider,{value:T,children:(0,e1.jsx)(nU.PublicRuntimeContext.Provider,{value:E,children:(0,e1.jsx)(eB,{children:(0,e1.jsx)(eH.Z.Provider,{value:en,children:(0,e1.jsx)(eV.Z.Provider,{value:ef,children:(0,e1.jsxs)(w.Z.Provider,{value:function(e){return(0,e1.jsx)(nV,s5(s5({},e),{},{pagePaths:m}))},children:[(0,e1.jsx)(nm,{optimizelyEnabledOnSite:eg,siteKey:Y}),(0,e1.jsxs)(os,{apiKey:null==X?void 0:X.permutiveApiKey,projectId:null==X?void 0:X.permutiveProjectId,namespace:"immediatemedia",currentDomain:k,children:[eg&&(0,e1.jsx)(nj,{projectId:em}),(0,e1.jsx)(eW.Z.Provider,{value:sV(er),children:e.CustomRender?(r=e.CustomRender,(0,e1.jsx)(r,{Component:h,pageProps:y})):(0,e1.jsx)(s9,{CustomLayout:es,defaultLayoutProps:el,disableBelowHeaderPocket:null==y?void 0:null===(u=y.suppression)||void 0===u?void 0:u.disableBelowHeader,disableAboveFooterPocket:null==y?void 0:null===(l=y.suppression)||void 0===l?void 0:l.disableAboveFooter,disablePageBottomPocket:null==y?void 0:null===(f=y.suppression)||void 0===f?void 0:f.disablePageBottom,disableSkimlinks:null==eu?void 0:null===(p=eu.suppressionOptions)||void 0===p?void 0:p.disableSkimlinks,hidePromoLogoInHeader:null==y?void 0:null===(d=y.suppression)||void 0===d?void 0:d.hidePromoLogoInHeader,children:(0,e1.jsx)(sl,{adultModalSettings:null==I?void 0:I.adultContentSettings,isAdult:V,children:(0,e1.jsx)(h,s5({},y))})})})]}),(null==X?void 0:X.consentProvider)&&(0,e1.jsx)(n_,{provider:X.consentProvider}),(0,e1.jsx)(nk,{gtmId:null==X?void 0:X.gtmId}),(0,e1.jsx)(eG.wo,{postFormat:D,postId:M,postTitle:null==U?void 0:U.title,postType:F,targeting:Z,taxonomies:B}),G&&(0,e1.jsx)(nN,s5({},G)),q&&(0,e1.jsx)(nT,s5({},q))]})})})})})})})})})})})})})]})})]})})})]})};ce.getInitialProps=(g=sK().mark(function e(t){var r,n,o,i,a,s,c,u,l,f,p,d,h,y,m,g,v,b,w,O,S,x,_,P;return sK().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(n=(null==t?void 0:t.ctx)||{}).req,i=n.res,a=!!o,s=(0,nW.getServerRuntimeConfig)(),c=(0,nW.getPublicRuntimeConfig)(),u=(0,n7.dD)({req:o,res:i,runtimeConfig:s}),l=(0,nW.getServiceConfig)().backendBasePath,e.next=8,Promise.all([j().getInitialProps(t),u(["".concat(l,"/site/config"),"".concat(l,"/layouts/default")])]);case 8:return p=(f=s3(e.sent,2))[0],h=(d=s3(f[1],2))[0],y=d[1],m=sf(a,o),g=iE(h,m),e.next=18,(0,nZ.v)({site:h.context,settings:h.settings,areas:["belowHeader","aboveFooter","pageBottom"]});case 18:return v=e.sent,e.next=21,a2(null==c?void 0:c.manifestLambdaConfig,o);case 21:var E;return b=e.sent,i&&b&&i.setHeader("Link",i_(b,g)),i&&!i.hasHeader("cache-control")&&nF(i,{maxAge:"15m",staleIfError:"1d",staleWhileRevalidate:"1d"}),w=(E=o)?(0,n$.getSortedRoutes)(Object.keys(E.app.locals.nextApp.pagesManifest||{})):window.__NEXT_DATA__.props.pagePaths,O=null,S=window.location.href,e.next=29,ox({siteKey:(null===(r=h.context)||void 0===r?void 0:r.siteKey)||"slate",namespaces:["frontendServices","patchwork","pockets"],fallback:"en"},{useSuspense:!1,interpolation:{escapeValue:!1},compatibilityJSON:"v3"});case 29:return x=e.sent,_=sO(h),P=sO(y),e.abrupt("return",s5(s5({},p),{},{siteConfig:_,defaultLayoutProps:P,pockets:v,pagePaths:w,iconsEmbedManifest:O,initialUrl:S,publicRuntimeConfig:c,i18NextConfig:x,currentDomain:g,adAssetManifest:b,tokens:a?nI(h.config.theme):function(){try{return JSON.parse(document.getElementById("__DESIGN_TOKENS__").textContent)}catch(e){return tO.logger.error("Failed to load design tokens: ".concat(e.message)),{}}}()}));case 33:case"end":return e.stop()}},e)}),v=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=g.apply(e,t);function i(e){s6(o,r,n,i,a,"next",e)}function a(e){s6(o,r,n,i,a,"throw",e)}i(void 0)})},function(e){return v.apply(this,arguments)}),ce.CustomLayout=e=>{let{children:t}=e;return(0,e1.jsx)(w.Z.Provider,{value:e=>{let{children:t}=e;return t},children:t})};var ct=ce},63144:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(78924)}])},11987:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(97334)}},n={};function o(e){var r=n[e];
303if(void 0!==r)return r.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab="//";var i={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=g(e));var n,o,i,a,s,c,u,l,f,p=(o=(n=e).auth,i=n.hostname,a=n.protocol||"",s=n.pathname||"",c=n.hash||"",u=n.query||"",l=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",n.host?l=o+n.host:i&&(l=o+(~i.indexOf(":")?"["+i+"]":i),n.port&&(l+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),f=n.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),c&&"#"!==c[0]&&(c="#"+c),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:l,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:c});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var a="http://",s=a+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function l(e,t){var r="string"==typeof e?g(e):e;e="object"==typeof e?n(e):e;var o=g(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,t=t.replace(o.protocol,"")));var l=e.match(c);l&&!o.protocol&&(e=e.substr((i=l[1]+(l[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var f=new URL(e,s+"/"),p=new URL(t,f).toString().replace(s,""),d=o.protocol||r.protocol;return d+=r.slashes||o.slashes?"//":"",!i&&d?p=p.replace(a,d):i&&(p=p.replace(a,"")),u.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),i&&(p=i+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=g,f.prototype.format=n,f.prototype.resolve=l,f.prototype.resolveObject=l;var p=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,h=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(e,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof f)return e;var i=(e=e.trim()).match(d);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(h),c=y.test(e),u="";a&&(p.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(c=!1,p.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var l,g=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=g&&g[1],b=new f,w="",O="";try{l=new URL(e)}catch(t){w=t,u||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(O="/",e=e.substr(1));try{l=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=c&&!O,b.host="w.w"===l.host?"":l.host,b.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:l.protocol,b.search=l.search.replace(/\\/g,"%5C"),b.hash=l.hash.replace(/\\/g,"%5C");var S=e.split("#");!b.search&&~S[0].indexOf("?")&&(b.search="?"),b.hash||""!==S[1]||(b.hash="#"),b.query=r?t.decode(l.search.substr(1)):b.search.substr(1),b.pathname=O+(a?l.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):l.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!p.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=l.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=O?""+b.pathname+b.search+b.hash:n(b);var j=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~j.indexOf(e)||(b[e]=b[e]||null)}),b}i.parse=g,i.format=n,i.resolve=l,i.resolveObject=function(e,t){return g(l(e,t))},i.Url=f}(),e.exports=i}()},97334:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,p,d,h=e[u].replace(a,"%20"),y=h.indexOf(n);(y>=0?(l=h.substr(0,y),f=h.substr(y+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(i,p))?t(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(o(e),function(o){var s=encodeURIComponent(t(o))+a;return r(e[o])?n(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o={};
303o.decode=o.parse=n(815),o.encode=o.stringify=n(577),e.exports=o}()},79720:function(e,t,r){var n=r(48764).lW,o=r(34155);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var o=[],i=0;i<e.length;i++)if(t.call(e,i)){var a=e[i];r.call(n,a,i,e)&&o.push(a)}return o};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(925),o=r(139),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},139:function(e,t,r){"use strict";var n=r(174),o=r(925),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(o,e[s],s,e)}},426:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,o=this;if("function"!=typeof o||"[object Function]"!==r.call(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var i=t.call(arguments,1),a=Math.max(0,o.length-i.length),s=[],c=0;c<a;c++)s.push("$"+c);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return o.apply(e,i.concat(t.call(arguments)));var r=o.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}),o.prototype){var u=function(){};u.prototype=o.prototype,n.prototype=new u,u.prototype=null}return n}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(115)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
303IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(174),b=r(101),w=v.call(Function.call,Array.prototype.concat),O=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,E=function(e){var t=j(e,0,1),r=j(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,_,function(e,t,r,o){n[n.length]=r?S(o,P,"$1"):t||e}),n},A=function(e,t){var r,n=e;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(y,n)){var i=y[n];if(i===d&&(i=m(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=E(e),n=r.length>0?r[0]:"",i=A("%"+n+"%",t),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],O(r,w([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=j(h,0,1),g=j(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,b(y,s="%"+n+"%"))u=y[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var v=c(u,h);u=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else d=b(u,h),u=u[h];d&&!l&&(y[s]=u)}}return u}},925:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(115)(),p=r(504)(),d=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):n,m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
303IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(e){var g=d(d(e));m["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(r=d(o.prototype))}return m[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(174),O=r(101),S=w.call(Function.call,Array.prototype.concat),j=w.call(Function.apply,Array.prototype.splice),x=w.call(Function.call,String.prototype.replace),_=w.call(Function.call,String.prototype.slice),P=w.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,k=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,E,function(e,t,r,o){n[n.length]=r?x(o,A,"$1"):t||e}),n},C=function(e,t){var r,n=e;if(O(b,n)&&(n="%"+(r=b[n])[0]+"%"),O(m,n)){var i=m[n];if(i===h&&(i=v(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(e),n=r.length>0?r[0]:"",i=C("%"+n+"%",t),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],j(r,S([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],y=_(h,0,1),g=_(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,O(m,s="%"+n+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var v=c(u,h);u=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else d=O(u,h),u=u[h];d&&!l&&(m[s]=u)}}return u}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},o=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},i=function(){return n(arguments)}();n.isLegacyArguments=o,e.exports=i?n:o},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?i(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(o?i(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),c=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=i(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),p={},d=n(24),h=Object.getPrototypeOf;c&&d&&h&&o(u,function(e){var t=new r.g[e];
303if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),o=d(n,Symbol.toStringTag);o||(o=d(h(n),Symbol.toStringTag)),p[e]=o.get});var y=function(e){var t=!1;return o(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(c?!!d&&y(e):l(u,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof n}},584:function(e,t,r){"use strict";var n=r(157),o=r(391),i=r(490),a=r(994);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(c)var h=s(BigInt.prototype.valueOf);if(u)var y=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function O(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function j(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(j.working?j(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=S,j.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&j(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var _="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function P(e){return"[object SharedArrayBuffer]"===l(e)}function E(e){return void 0!==_&&(void 0===P.working&&(P.working=P(new _)),P.working?P(e):e instanceof _)}function A(e){return m(e,f)}function k(e){return m(e,p)}function C(e){return m(e,d)}function N(e){return c&&m(e,h)}function T(e){return u&&m(e,y)}t.isSharedArrayBuffer=E,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=A,t.isStringObject=k,t.isBooleanObject=C,t.isBigIntObject=N,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return A(e)||k(e)||C(e)||N(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||E(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])g(s)||!S(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
303return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var c=o.env.NODE_DEBUG;s=RegExp("^"+(c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i,a,s,c,u=r.inspect(n,e);return b(u)||(u=p(e,u,n)),u}var l=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,r);if(l)return l;var f=Object.keys(r),S=(s={},f.forEach(function(e,t){s[e]=!0}),s);if(e.showHidden&&(f=Object.getOwnPropertyNames(r)),x(r)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return d(r);if(0===f.length){if(_(r)){var P=r.name?": "+r.name:"";return e.stylize("[Function"+P+"]","special")}if(O(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return d(r)}var E="",A=!1,C=["{","}"];return(y(r)&&(A=!0,C=["[","]"]),_(r)&&(E=" [Function"+(r.name?": "+r.name:"")+"]"),O(r)&&(E=" "+RegExp.prototype.toString.call(r)),j(r)&&(E=" "+Date.prototype.toUTCString.call(r)),x(r)&&(E=" "+d(r)),0!==f.length||A&&0!=r.length)?n<0?O(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=A?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)k(t,String(a))?i.push(h(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(h(e,t,r,n,o,!0))}),i}(e,r,n,S,f):f.map(function(t){return h(e,r,n,S,t,A)}),e.seen.pop(),o=E,i=C,a=0,c.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===o?"":o+"\n ")+" "+c.join(",\n ")+" "+i[1]:i[0]+o+" "+c.join(", ")+" "+i[1]):C[0]+E+C[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(n,o)||(a="["+o+"]"),!s&&(0>e.seen.indexOf(c.value)?(s=g(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return void 0===e}function O(e){return S(e)&&"[object RegExp]"===P(e)}function S(e){return"object"==typeof e&&null!==e}function j(e){return S(e)&&"[object Date]"===P(e)}function x(e){return S(e)&&("[object Error]"===P(e)||e instanceof Error)}function _(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=y,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e}
303,t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=O,t.types.isRegExp=O,t.isObject=S,t.isDate=j,t.types.isDate=j,t.isError=x,t.types.isNativeError=x,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[E((e=new Date).getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t=e[C];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(N.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),c=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=i(),l=a("String.prototype.slice"),f={},p=n(24),d=Object.getPrototypeOf;c&&p&&d&&o(u,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=d(t),o=p(n,Symbol.toStringTag);o||(o=p(d(n),Symbol.toStringTag)),f[e]=o.get}});var h=function(e){var t=!1;return o(f,function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}}),t},y=n(994);e.exports=function(e){return!!y(e)&&(c?h(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var o=n(992);e.exports=function(){return o(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},o=!0;try{t[e](n,n.exports,a),o=!1}finally{o&&delete i[e]}return n.exports}a.ab="//";var s=a(177);e.exports=s}()},9008:function(e,t,r){e.exports=r(74394)},41664:function(e,t,r){e.exports=r(11568)},11163:function(e,t,r){e.exports=r(11171)},4298:function(e,t,r){e.exports=r(80976)},1902:function(e,t,r){"use strict";function n(e){return e.toLowerCase()}r.d(t,{B:function(){return a}});var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function a(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,a=t.stripRegexp,c=t.transform,u=t.delimiter,l=s(s(e,void 0===r?o:r,"$1\0$2"),void 0===a?i:a,"\0"),f=0,p=l.length;"\0"===l.charAt(f);)f++;for(;"\0"===l.charAt(p-1);)p--;return l.slice(f,p).split("\0").map(void 0===c?n:c).join(void 0===u?" ":u)}function s(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(e,t){return e.replace(t,r)},e)}},83300:function(e,t,r){"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},57515:function(e,t,r){"use strict";let n=r(11987).parse,o=r(15433),i=r(95660);function a(e,t){let r=e.headers[t];return(Array.isArray(r)?r[0]:r).split(", ")[0]}function s(e){let t=-1!==e.indexOf("://"),r=n(t?e:"invalid://"+e);return t||(r.protocol=""),r}e.exports=function(e){let t;let r=e.originalUrl||e.url,c=n(r||""),u=e.secure||e.connection&&e.connection.encrypted,l={raw:r};if(e.headers.forwarded){let r=a(e,"forwarded");try{if(r=o(r)[0],t=s(r.host),r.for){let e=r.for.split("]"),n=e[e.length-1].split(":")[1];n&&(t.port=Number(n))}r.proto&&(t.protocol=r.proto+":")}catch(e){}}else e.headers["x-forwarded-host"]&&(t=s(a(e,"x-forwarded-host")));return t||(t="string"==typeof e.headers.host?s(e.headers.host):{}),c.protocol?l.protocol=c.protocol:e.headers["x-forwarded-proto"]?l.protocol=a(e,"x-forwarded-proto")+":":e.headers["x-forwarded-protocol"]?l.protocol=a(e,"x-forwarded-protocol")+":":e.headers["x-url-scheme"]?l.protocol=a(e,"x-url-scheme")+":":e.headers["front-end-https"]?l.protocol="on"===a(e,"front-end-https")?"https:":"http:":e.headers["x-forwarded-ssl"]?l.protocol="on"===a(e,"x-forwarded-ssl")?"https:":"http:":t.protocol?l.protocol=t.protocol:u?l.protocol="https:":l.protocol="http:",c.hostname?l.hostname=c.hostname:t.hostname&&(l.hostname=t.hostname),i.isIPv6(l.hostname)&&(l.hostname="["+l.hostname+"]"),c.port?l.port=Number(c.port):e.headers["x-forwarded-port"]?l.port=Number(a(e,"x-forwarded-port")):t.port&&(l.port=Number(t.port)),c.pathname?l.pathname=c.pathname:t.pathname&&(l.pathname=t.pathname),c.search?l.search=c.search:t.search&&(l.search=t.search),t.hash&&(l.hash=t.hash),l.protocol&&l.hostname&&(l.full=l.protocol+"//"+l.hostname,l.port&&(l.full+=":"+l.port),l.pathname&&(l.full+=l.pathname),l.search&&(l.full+=l.search),l.hash&&(l.full+=l.hash)),l}},67881:function(e,t,r){"use strict";r.d(t,{o:function(){return a}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=r(1902);function a(e,t){var r;return void 0===t&&(t={}),void 0===(r=n({delimiter:"-"},t))&&(r={}),(0,i.B)(e,o({delimiter:"."},r))}},34155:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],u=!1,l=-1;function f(){u&&n&&(u=!1,n.length?c=n.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(n=c,c=[];++l<t;)n&&n[l].run();l=-1,t=c.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
303if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||u||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},92703:function(e,t,r){"use strict";var n=r(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36104:function(e,t,r){"use strict";var n=r(82637);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},9657:function(e,t,r){e.exports=r(36104)()},82637:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69590:function(e){"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;e.exports=function(e,i){try{return function e(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,c,u,l=t(i),f=t(a);if(l&&f){if((c=i.length)!=a.length)return!1;for(s=c;0!=s--;)if(!e(i[s],a[s]))return!1;return!0}if(l!=f)return!1;var p=i instanceof Date,d=a instanceof Date;if(p!=d)return!1;if(p&&d)return i.getTime()==a.getTime();var h=i instanceof RegExp,y=a instanceof RegExp;if(h!=y)return!1;if(h&&y)return i.toString()==a.toString();var m=r(i);if((c=m.length)!==r(a).length)return!1;for(s=c;0!=s--;)if(!n.call(a,m[s]))return!1;if(o&&i instanceof Element&&a instanceof Element)return i===a;for(s=c;0!=s--;)if(("_owner"!==(u=m[s])||!i.$$typeof)&&!e(i[u],a[u]))return!1;return!0}return i!=i&&a!=a}(e,i)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},93485:function(e,t,r){"use strict";var n=r(34072);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},99860:function(e,t,r){e.exports=r(93485)()},34072:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64593:function(e,t,r){"use strict";r.r(t),r.d(t,{Helmet:function(){return J}});var n,o,i,a,s=r(89324),c=r.n(s),u=r(83524),l=r.n(u),f=r(69590),p=r.n(f),d=r(67294),h=r(96086),y=r.n(h),m={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(g).map(function(e){return g[e]});var v={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"}
303,b={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},w=Object.keys(b).reduce(function(e,t){return e[b[t]]=t,e},{}),O=[g.NOSCRIPT,g.SCRIPT,g.STYLE],S="data-react-helmet",j="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},x=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E=function(e,t){if("function"!=typeof t&&null!==t)throw 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)},A=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},k=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e},C=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},N=function(e){var t=R(e,g.TITLE),r=R(e,"titleTemplate");if(r&&t)return r.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var n=R(e,"defaultTitle");return t||n||void 0},T=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return P({},e,t)},{})},I=function(e,t,r){var n={};return r.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&U("Helmet: "+e+' should be of type "Array". Instead found type "'+j(t[e])+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,r){var o={};r.filter(function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||r===v.REL&&"canonical"===e[r].toLowerCase()||c===v.REL&&"stylesheet"===e[c].toLowerCase()||(r=c),-1!==t.indexOf(s)&&(s===v.INNER_HTML||s===v.CSS_TEXT||s===v.ITEM_PROP)&&(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][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=y()({},n[s],o[s]);n[s]=c}return e},[]).reverse()},R=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},L=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout(function(){L(e)},0)}),D=function(e){return clearTimeout(e)},M="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||L:r.g.requestAnimationFrame||L,F="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||D:r.g.cancelAnimationFrame||D,U=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Z=null,B=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;z(g.BODY,n),z(g.HTML,o),G(f,p);var d={baseTag:q(g.BASE,r),linkTags:q(g.LINK,i),metaTags:q(g.META,a),noscriptTags:q(g.NOSCRIPT,s),scriptTags:q(g.SCRIPT,u),styleTags:q(g.STYLE,l)},h={},y={};Object.keys(d).forEach(function(e){var t=d[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(y[e]=d[e].oldTags)}),t&&t(),c(e,h,y)},$=function(e){return Array.isArray(e)?e.join(""):e},G=function(e,t){void 0!==e&&document.title!==e&&(document.title=$(e)),z(g.TITLE,t)},z=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(S),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute(S):r.getAttribute(S)!==a.join(",")&&r.setAttribute(S,a.join(","))}},q=function(e,t){var r=document.head||document.querySelector(g.HEAD),n=r.querySelectorAll(e+"["+S+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach(function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n)){if(n===v.INNER_HTML)r.innerHTML=t.innerHTML;else if(n===v.CSS_TEXT)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}}r.setAttribute(S,"true"),o.some(function(e,t){return a=t,r.isEqualNode(e)})?o.splice(a,1):i.push(r)}),o.forEach(function(e){return e.parentNode.removeChild(e)}
303),i.forEach(function(e){return r.appendChild(e)}),{oldTags:o,newTags:i}},H=function(e){return Object.keys(e).reduce(function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},V=function(e,t,r,n){var o=H(r),i=$(t);return o?"<"+e+" "+S+'="true" '+o+">"+C(i,n)+"</"+e+">":"<"+e+" "+S+'="true">'+C(i,n)+"</"+e+">"},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,r){return t[b[r]||r]=e[r],t},t)},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,r){return t[w[r]||r]=e[r],t},t)},Y=function(e,t,r){var n,o=W(r,((n={key:t})[S]=!0,n));return[d.createElement(g.TITLE,o,t)]},Q=function(e,t,r){switch(e){case g.TITLE:return{toComponent:function(){return Y(e,t.title,t.titleAttributes,r)},toString:function(){return V(e,t.title,t.titleAttributes,r)}};case m.BODY:case m.HTML:return{toComponent:function(){return W(t)},toString:function(){return H(t)}};default:return{toComponent:function(){return t.map(function(t,r){var n,o=((n={key:r})[S]=!0,n);return Object.keys(t).forEach(function(e){var r=b[e]||e;if(r===v.INNER_HTML||r===v.CSS_TEXT){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]}),d.createElement(e,o)})},toString:function(){return t.reduce(function(t,n){var o=Object.keys(n).filter(function(e){return!(e===v.INNER_HTML||e===v.CSS_TEXT)}).reduce(function(e,t){var o=void 0===n[t]?t:t+'="'+C(n[t],r)+'"';return e?e+" "+o:o},""),i=n.innerHTML||n.cssText||"",a=-1===O.indexOf(e);return t+"<"+e+" "+S+'="true" '+o+(a?"/>":">"+i+"</"+e+">")},"")}}}},X=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;return{base:Q(g.BASE,t,n),bodyAttributes:Q(m.BODY,r,n),htmlAttributes:Q(m.HTML,o,n),link:Q(g.LINK,i,n),meta:Q(g.META,a,n),noscript:Q(g.NOSCRIPT,s,n),script:Q(g.SCRIPT,c,n),style:Q(g.STYLE,u,n),title:Q(g.TITLE,{title:void 0===l?"":l,titleAttributes:f},n)}},J=(o=l()(function(e){var t;return{baseTag:(t=[v.HREF,v.TARGET],e.filter(function(e){return void 0!==e[g.BASE]}).map(function(e){return e[g.BASE]}).reverse().reduce(function(e,r){if(!e.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==t.indexOf(i)&&r[i])return e.concat(r)}return e},[])),bodyAttributes:T(m.BODY,e),defer:R(e,"defer"),encode:R(e,"encodeSpecialCharacters"),htmlAttributes:T(m.HTML,e),linkTags:I(g.LINK,[v.REL,v.HREF],e),metaTags:I(g.META,[v.NAME,v.CHARSET,v.HTTPEQUIV,v.PROPERTY,v.ITEM_PROP],e),noscriptTags:I(g.NOSCRIPT,[v.INNER_HTML],e),onChangeClientState:R(e,"onChangeClientState")||function(){},scriptTags:I(g.SCRIPT,[v.SRC,v.INNER_HTML],e),styleTags:I(g.STYLE,[v.CSS_TEXT],e),title:N(e),titleAttributes:T(m.TITLE,e)}},function(e){Z&&F(Z),e.defer?Z=M(function(){B(e,function(){Z=null})}):(B(e),Z=null)},X)(function(){return null}),a=i=function(e){function t(){return x(this,t),k(this,e.apply(this,arguments))}return E(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t}}throw 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,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return P({},n,((t={})[r.type]=[].concat(n[r.type]||[],[P({},o,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case g.TITLE:return P({},o,((t={})[n.type]=a,t.titleAttributes=P({},i),t));case g.BODY:return P({},o,{bodyAttributes:P({},i)});case g.HTML:return P({},o,{htmlAttributes:P({},i)})}return P({},o,((r={})[n.type]=P({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=P({},t);return Object.keys(e).forEach(function(t){var n;r=P({},r,((n={})[t]=e[t],n))}),r}
303,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return d.Children.forEach(e,function(e){if(e&&e.props){var o=e.props,i=o.children,a=K(A(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=P({},A(e,["children"]));return t&&(r=this.mapChildrenToProps(t,r)),d.createElement(o,r)},_(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(d.Component),i.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=X({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);J.renderStatic=J.rewind},17579:function(e,t,r){"use strict";var n=r(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},89324:function(e,t,r){e.exports=r(17579)()},80070:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69921:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case y:case c:return e;default:return t}}case o:return t}}}function S(e){return O(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=y,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||O(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},59864:function(e,t,r){"use strict";e.exports=r(69921)},25726:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}
303Object.defineProperty(t,"__esModule",{value:!0});var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){i[e]=new o(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return n(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],a=t[1];i[r]=new o(r,1,!1,a,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){i[e]=new o(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){i[e]=new o(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){i[e]=new o(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){i[e]=new o(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)});var a=/[\-\:]([a-z])/g,s=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(a,s);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)});var c=r(78229),u=c.CAMELCASE,l=c.SAME,f=c.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
303037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(f).reduce(function(e,t){var r=f[t];return r===l?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=d},78229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
303-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},20938:function(e){e.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},59852:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(94578),o=r(52943),i=r(52288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setFocused(e):r.onFocus()})},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(e){e()})},r.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.l))},46747:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S}});var n=r(61284),o=r(86755);r.o(o,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return o.QueryClientProvider}}),r.o(o,"useInfiniteQuery")&&r.d(t,{useInfiniteQuery:function(){return o.useInfiniteQuery}}),r.o(o,"useMutation")&&r.d(t,{useMutation:function(){return o.useMutation}}),r.o(o,"useQuery")&&r.d(t,{useQuery:function(){return o.useQuery}}),r.o(o,"useQueryClient")&&r.d(t,{useQueryClient:function(){return o.useQueryClient}})},36997:function(e,t,r){"use strict";r.d(t,{Gm:function(){return i},Qy:function(){return c},ZF:function(){return u}});var n=r(21216),o=r(52288);function i(){return{onFetch:function(e){e.fetchFn=function(){var t,r,i,c,u,l,f,p=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,d=null==(i=e.fetchOptions)?void 0:null==(c=i.meta)?void 0:c.fetchMore,h=null==d?void 0:d.pageParam,y=(null==d?void 0:d.direction)==="forward",m=(null==d?void 0:d.direction)==="backward",g=(null==(u=e.state.data)?void 0:u.pages)||[],v=(null==(l=e.state.data)?void 0:l.pageParams)||[],b=(0,o.G9)(),w=null==b?void 0:b.signal,O=v,S=!1,j=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,r,n){return O=n?[t].concat(O):[].concat(O,[t]),n?[r].concat(e):[].concat(e,[r])},_=function(t,r,o,i){if(S)return Promise.reject("Cancelled");if(void 0===o&&!r&&t.length)return Promise.resolve(t);var a=j({queryKey:e.queryKey,signal:w,pageParam:o,meta:e.meta}),s=Promise.resolve(a).then(function(e){return x(t,o,e,i)});return(0,n.LE)(a)&&(s.cancel=a.cancel),s};if(g.length){if(y){var P=void 0!==h,E=P?h:a(e.options,g);
303f=_(g,P,E)}else if(m){var A=void 0!==h,k=A?h:s(e.options,g);f=_(g,A,k,!0)}else!function(){O=[];var t=void 0===e.options.getNextPageParam;f=!p||!g[0]||p(g[0],0,g)?_([],t,v[0]):Promise.resolve(x([],v[0],g[0]));for(var r=function(r){f=f.then(function(n){if(!p||!g[r]||p(g[r],r,g)){var o=t?v[r]:a(e.options,n);return _(n,t,o)}return Promise.resolve(x(n,v[r],g[r]))})},n=1;n<g.length;n++)r(n)}()}else f=_([]);var C=f.then(function(e){return{pages:e,pageParams:O}});return C.cancel=function(){S=!0,null==b||b.abort(),(0,n.LE)(f)&&f.cancel()},C}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function c(e,t){if(e.getNextPageParam&&Array.isArray(t)){var r=a(e,t);return null!=r&&!1!==r}}function u(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var r=s(e,t);return null!=r&&!1!==r}}},41909:function(e,t,r){"use strict";r.d(t,{E:function(){return i},j:function(){return o}});var n=console;function o(){return n}function i(e){n=e}},81262:function(e,t,r){"use strict";r.d(t,{R:function(){return u},m:function(){return c}});var n=r(87462),o=r(41909),i=r(101),a=r(21216),s=r(52288),c=function(){function e(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||u(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),n.then(function(){return t.executeMutation()}).then(function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}
303(this.state,e),i.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function u(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},101:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(52288),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];t.schedule(function(){e.apply(void 0,n)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n.A4)(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},40068:function(e,t,r){"use strict";r.d(t,{N:function(){return a}});var n=r(94578),o=r(52943),i=r(52288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setOnline(e):r.onOnline()})},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(e){e()})},r.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(o.l))},61284:function(e,t,r){"use strict";r.d(t,{S:function(){return g}});var n=r(87462),o=r(52288),i=r(94578),a=r(101),s=r(41909),c=r(21216),u=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,i=this.state.data,a=(0,o.SE)(e,i);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,i,a))?a=i:!1!==this.options.structuralSharing&&(a=(0,o.Q$)(i,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(o.ZT).catch(o.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
303SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,i,a,u,l,f=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var p=this.observers.find(function(e){return e.options.queryFn});p&&this.setOptions(p.options)}var d=(0,o.mc)(this.queryKey),h=(0,o.G9)(),y={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(y,"signal",{enumerable:!0,get:function(){if(h)return f.abortSignalConsumed=!0,h.signal}});var m={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return f.options.queryFn?(f.abortSignalConsumed=!1,f.options.queryFn(y)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(a=this.options.behavior)?void 0:a.onFetch)&&(null==(n=this.options.behavior)||n.onFetch(m)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(u=m.fetchOptions)?void 0:u.meta)||this.dispatch({type:"fetch",meta:null==(i=m.fetchOptions)?void 0:i.meta}),this.retryer=new c.m4({fn:m.fetchFn,abort:null==h?void 0:null==(l=h.abort)?void 0:l.bind(h),onSuccess:function(e){f.setData(e),null==f.cache.config.onSuccess||f.cache.config.onSuccess(e,f),0===f.cacheTime&&f.optionalRemove()},onError:function(e){(0,c.DV)(e)&&e.silent||f.dispatch({type:"error",error:e}),(0,c.DV)(e)||(null==f.cache.config.onError||f.cache.config.onError(e,f),(0,s.j)().error(e)),0===f.cacheTime&&f.optionalRemove()},onFail:function(){f.dispatch({type:"failed"})},onPause:function(){f.dispatch({type:"pause"})},onContinue:function(){f.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,o;switch(t.type){case"failed":return(0,n.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"fetch":return(0,n.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;if((0,c.DV)(i)&&i.revert&&this.revertState)return(0,n.Z)({},this.revertState);return(0,n.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.Z)({},e,{isInvalidated:!0});case"setState":return(0,n.Z)({},e,t.state);default:return e}},e}(),l=r(52943),f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,i.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,i=t.queryKey,a=null!=(n=t.queryHash)?n:(0,o.Rm)(i,t),s=this.get(a);return s||(s=new u({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;
303a.V.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,o.I6)(e,t)[0];return void 0===r.exact&&(r.exact=!0),this.queries.find(function(e){return(0,o._x)(r,e)})},r.findAll=function(e,t){var r=(0,o.I6)(e,t)[0];return Object.keys(r).length>0?this.queries.filter(function(e){return(0,o._x)(r,e)}):this.queries},r.notify=function(e){var t=this;a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},r.onFocus=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},r.onOnline=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(l.l),p=r(81262),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,i.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new p.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},r.clear=function(){var e=this;a.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},r.getAll=function(){return this.mutations},r.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,o.X7)(e,t)})},r.findAll=function(e){return this.mutations.filter(function(t){return(0,o.X7)(e,t)})},r.notify=function(e){var t=this;a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPau
303sed});return a.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(o.ZT)})},Promise.resolve())})},t}(l.l),h=r(59852),y=r(40068),m=r(36997),g=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new f,this.mutationCache=e.mutationCache||new d,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe(function(){h.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=y.N.subscribe(function(){h.j.isFocused()&&y.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,o.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,r){var n=(0,o._v)(e),i=this.defaultQueryOptions(n);return this.queryCache.build(this,i).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return a.V.batch(function(){return n.getQueryCache().findAll(e).map(function(e){var o=e.queryKey;return[o,n.setQueryData(o,t,r)]})})},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,o.I6)(e,t)[0],n=this.queryCache;a.V.batch(function(){n.findAll(r).forEach(function(e){n.remove(e)})})},t.resetQueries=function(e,t,r){var i=this,s=(0,o.I6)(e,t,r),c=s[0],u=s[1],l=this.queryCache,f=(0,n.Z)({},c,{active:!0});return a.V.batch(function(){return l.findAll(c).forEach(function(e){e.reset()}),i.refetchQueries(f,u)})},t.cancelQueries=function(e,t,r){var n=this,i=(0,o.I6)(e,t,r),s=i[0],c=i[1],u=void 0===c?{}:c;return void 0===u.revert&&(u.revert=!0),Promise.all(a.V.batch(function(){return n.queryCache.findAll(s).map(function(e){return e.cancel(u)})})).then(o.ZT).catch(o.ZT)},t.invalidateQueries=function(e,t,r){var i,s,c,u=this,l=(0,o.I6)(e,t,r),f=l[0],p=l[1],d=(0,n.Z)({},f,{active:null==(i=null!=(s=f.refetchActive)?s:f.active)||i,inactive:null!=(c=f.refetchInactive)&&c});return a.V.batch(function(){return u.queryCache.findAll(f).forEach(function(e){e.invalidate()}),u.refetchQueries(d,p)})},t.refetchQueries=function(e,t,r){var i=this,s=(0,o.I6)(e,t,r),c=s[0],u=s[1],l=Promise.all(a.V.batch(function(){return i.queryCache.findAll(c).map(function(e){return e.fetch(void 0,(0,n.Z)({},u,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))})})).then(o.ZT);return(null==u?void 0:u.throwOnError)||(l=l.catch(o.ZT)),l},t.fetchQuery=function(e,t,r){var n=(0,o._v)(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);var a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,o._v)(e,t,r);return n.behavior=(0,m.Gm)(),this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.cancelMutations=function(){var e=this;return Promise.all(a.V.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(o.ZT).catch(o.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find(function(t){return(0,o.yF)(e)===(0,o.yF)(t.queryKey)});r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,o.to)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find(function(t){return(0,o.yF)(e)===(0,o.yF)(t.mutationKey)});r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,o.to)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},21216:function(e,t,r){"use strict";r.d(t,{DV:function(){return u},LE:function(){return s},m4:function(){return l}});var n=r(59852),o=r(40068),i=r(52288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var c=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function u(e){return e instanceof c}var l=function(e){var t,r,u,l,f=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){u=e,l=t});var d=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),u(t))},h=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),l(t))};!function u(){var l;if(!f.isResolved){try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(h(new c(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(d).catch(function(t){if(!f.isResolved){var s,c,l=null!=(s=e.retry)?s:3,d=null!=(c=e.retryDelay)?c:a,y="function"==typeof d?d(f.failureCount,t):d,m=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);if(p||!m){h(t);return}f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),(0,i.Gh)(y).then(function(){if(!n.j.isFocused()||!o.N.isOnline())return new Promise(function(t){r=t,f.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){r=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){p?h(t):u()})}})}}()}},52943:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==r}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},86755:function(){},52288:function(e,t,r){"use strict";r.d(t,{A4:function(){return j},G9:function(){return x},Gh:function(){return S},I6:function(){return p},Kp:function(){return u},PN:function(){return s},Q$:function(){return function e(t,r){if(t===r)return t;var n=Array.isArray(t)&&Array.isArray(r);if(n||b(t)&&b(r)){for(var o=n?t.length:Object.keys(t).length,i=n?r:Object.keys(r),a=i.length,s=n?[]:{},c=0,u=0;u<a;u++){var l=n?u:i[u];s[l]=e(t[l],r[l]),s[l]===t[l]&&c++}return o===a&&c===o?t:s}return r}},Rm:function(){return y},SE:function(){return a},VS:function(){return v},X7:function(){return h},ZT:function(){return i},_v:function(){return l},_x:function(){return d},lV:function(){return f},mc:function(){return c},sk:function(){return o},to:function(){return g},yF:function(){return m}});var n=r(87462),o="undefined"==typeof window;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e){return Array.isArray(e)?e:[e]}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return O(e)?"function"==typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function f(e,t,r){return O(e)?"function"==typeof t?(0,n.Z)({},r,{mutationKey:e,mutationFn:t}):(0,n.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,n.Z)({},t,{mutationFn:e}):(0,n.Z)({},e)}function p(e,t,r){return O(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function d(e,t){var r=e.active,n=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,c=e.stale;
303if(O(s)){if(n){if(t.queryHash!==y(s,t.options))return!1}else if(!g(t.queryKey,s))return!1}var u=!0===r&&!0===i||null==r&&null==i?"all":!1===r&&!1===i?"none":(null!=r?r:!i)?"active":"inactive";if("none"===u)return!1;if("all"!==u){var l=t.isActive();if("active"===u&&!l||"inactive"===u&&l)return!1}return("boolean"!=typeof c||t.isStale()===c)&&("boolean"!=typeof o||t.isFetching()===o)&&(!a||!!a(t))}function h(e,t){var r=e.exact,n=e.fetching,o=e.predicate,i=e.mutationKey;if(O(i)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(i))return!1}else if(!g(t.options.mutationKey,i))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!o||!!o(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){return JSON.stringify(c(e),function(e,t){return b(t)?Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{}):t})}function g(e,t){return function e(t,r){return t===r||typeof t==typeof r&&!!t&&!!r&&"object"==typeof t&&"object"==typeof r&&!Object.keys(r).some(function(n){return!e(t[n],r[n])})}(c(e),c(t))}function v(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function b(e){if(!w(e))return!1;var t=e.constructor;if(void 0===t)return!0;var r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e){return"string"==typeof e||Array.isArray(e)}function S(e){return new Promise(function(t){setTimeout(t,e)})}function j(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function x(){if("function"==typeof AbortController)return new AbortController}},88767:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return o.QueryClientProvider},useInfiniteQuery:function(){return o.useInfiniteQuery},useMutation:function(){return o.useMutation},useQuery:function(){return o.useQuery},useQueryClient:function(){return o.useQueryClient}});var n=r(46747);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useInfiniteQuery")&&r.d(t,{useInfiniteQuery:function(){return n.useInfiniteQuery}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var o=r(3407)},3407:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return d},useInfiniteQuery:function(){return R},useMutation:function(){return O},useQuery:function(){return N},useQueryClient:function(){return p}});var n,o=r(101),i=r(73935).unstable_batchedUpdates;o.V.setBatchNotifyFunction(i);var a=r(41909),s=console;(0,a.E)(s);var c=r(67294),u=c.createContext(void 0),l=c.createContext(!1);function f(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=u),window.ReactQueryClientContext):u}var p=function(){var e=c.useContext(f(c.useContext(l)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},d=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,o=e.children;c.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var i=f(n);return c.createElement(l.Provider,{value:n},c.createElement(i.Provider,{value:t},o))},h=r(87462),y=r(52288),m=r(94578),g=r(81262),v=r(52943),b=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,m.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},r.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},r.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,h.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,g.R)(),t=(0,h.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},r.notify=function(e){var t=this;o.V.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEac
303h(function(e){e(t.currentResult)})})},t}(v.l);function w(e,t,r){return"function"==typeof t?t.apply(void 0,r):"boolean"==typeof t?t:!!e}function O(e,t,r){var n=c.useRef(!1),i=c.useState(0)[1],a=(0,y.lV)(e,t,r),s=p(),u=c.useRef();u.current?u.current.setOptions(a):u.current=new b(s,a);var l=u.current.getCurrentResult();c.useEffect(function(){n.current=!0;var e=u.current.subscribe(o.V.batchCalls(function(){n.current&&i(function(e){return e+1})}));return function(){n.current=!1,e()}},[]);var f=c.useCallback(function(e,t){u.current.mutate(e,t).catch(y.ZT)},[]);if(l.error&&w(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return(0,h.Z)({},l,{mutate:f,mutateAsync:l.mutate})}var S=r(59852),j=r(21216),x=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.previousSelectError=null,n.bindMethods(),n.setOptions(r),n}(0,m.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),_(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return P(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return P(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var o=this.hasListeners();o&&E(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();var i=this.computeRefetchInterval();o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},o=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&o("error"),n},r.getNextResult=function(e){var t=this;return new Promise(function(r,n){var o=t.subscribe(function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then(function(){return t.createResult(n,r)})},r.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(y.ZT)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!y.sk&&!this.currentResult.isStale&&(0,y.PN)(this.options.staleTime)){var t=(0,y.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},r.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!y.sk&&!1!==this.options.enabled&&(0,y.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackgroun
303d||S.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},r.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},r.createResult=function(e,t){var r,n,o,i=this.currentQuery,s=this.options,c=this.currentResult,u=this.currentResultState,l=this.currentResultOptions,f=e!==i,p=f?e.state:this.currentQueryInitialState,d=f?this.currentResult:this.previousQueryResult,h=e.state,m=h.dataUpdatedAt,g=h.error,v=h.errorUpdatedAt,b=h.isFetching,w=h.status,O=!1,S=!1;if(t.optimisticResults){var j=this.hasListeners(),x=!j&&_(e,t),P=j&&E(e,i,t,s);(x||P)&&(b=!0,m||(w="loading"))}if(t.keepPreviousData&&!h.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==w)r=d.data,m=d.dataUpdatedAt,w=d.status,O=!0;else if(t.select&&void 0!==h.data){if(c&&h.data===(null==u?void 0:u.data)&&t.select===(null==(n=this.previousSelect)?void 0:n.fn)&&!this.previousSelectError)r=this.previousSelect.result;else try{r=t.select(h.data),!1!==t.structuralSharing&&(r=(0,y.Q$)(null==c?void 0:c.data,r)),this.previousSelect={fn:t.select,result:r},this.previousSelectError=null}catch(e){(0,a.j)().error(e),g=e,this.previousSelectError=e,v=Date.now(),w="error"}}else r=h.data;if(void 0!==t.placeholderData&&void 0===r&&("loading"===w||"idle"===w)){if((null==c?void 0:c.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))o=c.data;else if(o="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==o)try{o=t.select(o),!1!==t.structuralSharing&&(o=(0,y.Q$)(null==c?void 0:c.data,o)),this.previousSelectError=null}catch(e){(0,a.j)().error(e),g=e,this.previousSelectError=e,v=Date.now(),w="error"}void 0!==o&&(w="success",r=o,S=!0)}return{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:r,dataUpdatedAt:m,error:g,errorUpdatedAt:v,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>p.dataUpdateCount||h.errorUpdateCount>p.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==w,isLoadingError:"error"===w&&0===h.dataUpdatedAt,isPlaceholderData:S,isPreviousData:O,isRefetchError:"error"===w&&0!==h.dataUpdatedAt,isStale:A(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,o=r.notifyOnChangePropsExclusions;if(!n&&!o||"tracked"===n&&!this.trackedProps.length)return!0;var i="tracked"===n?this.trackedProps:n;return Object.keys(e).some(function(r){var n=e[r]!==t[r],a=null==i?void 0:i.some(function(e){return e===r}),s=null==o?void 0:o.some(function(e){return e===r});return n&&!s&&(!i||a)})},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,y.VS)(this.currentResult,t)){var r={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,h.Z)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,j.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;o.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
303h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(v.l);function _(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&P(e,t,t.refetchOnMount)}function P(e,t,r){if(!1!==t.enabled){var n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&A(e,t)}return!1}function E(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&A(e,r)}function A(e,t){return e.isStaleByTime(t.staleTime)}var k=c.createContext((n=!1,{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}));function C(e,t){var r=c.useRef(!1),n=c.useState(0)[1],i=p(),a=c.useContext(k),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=o.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=o.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=o.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);var u=c.useState(function(){return new t(i,s)})[0],l=u.getOptimisticResult(s);if(c.useEffect(function(){r.current=!0,a.clearReset();var e=u.subscribe(o.V.batchCalls(function(){r.current&&n(function(e){return e+1})}));return u.updateResult(),function(){r.current=!1,e()}},[a,u]),c.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&l.isLoading)throw u.fetchOptimistic(s).then(function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)}).catch(function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)});if(l.isError&&!a.isReset()&&!l.isFetching&&w(s.suspense,s.useErrorBoundary,[l.error,u.getCurrentQuery()]))throw l.error;return"tracked"===s.notifyOnChangeProps&&(l=u.trackResult(l,s)),l}function N(e,t,r){return C((0,y._v)(e,t,r),x)}var T=r(36997),I=function(e){function t(t,r){return e.call(this,t,r)||this}(0,m.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},r.setOptions=function(t,r){e.prototype.setOptions.call(this,(0,h.Z)({},t,{behavior:(0,T.Gm)()}),r)},r.getOptimisticResult=function(t){return t.behavior=(0,T.Gm)(),e.prototype.getOptimisticResult.call(this,t)},r.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},r.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},r.createResult=function(t,r){var n,o,i,a,s,c,u=t.state,l=e.prototype.createResult.call(this,t,r);return(0,h.Z)({},l,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,T.Qy)(r,null==(n=u.data)?void 0:n.pages),hasPreviousPage:(0,T.ZF)(r,null==(o=u.data)?void 0:o.pages),isFetchingNextPage:u.isFetching&&(null==(i=u.fetchMeta)?void 0:null==(a=i.fetchMore)?void 0:a.direction)==="forward",isFetchingPreviousPage:u.isFetching&&(null==(s=u.fetchMeta)?void 0:null==(c=s.fetchMore)?void 0:c.direction)==="backward"})},t}(x);function R(e,t,r){return C((0,y._v)(e,t,r),I)}},19011:function(e,t,r){"use strict";Object.defineProperty(t,"K",{enumerable:!0,get:function(){return n.useResourceMonitor}});var n=r(85185)},55968:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printWarning=void 0,t.printWarning=function(e){var t="Warning: ".concat(e);console.error&&console.error(t);try{throw Error(t)}catch(e){}}},85185:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useResourceMonitor=void 0;var n=r(67294),o=r(55968);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
303t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var f="undefined"==typeof window?function(){}:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.initiatorTypes,r=void 0===t?["script","link","css"]:t,i=e.ignoreQuery,l=void 0===i||i,f=e.disable;void 0===window.performance||"undefined"==typeof PerformanceObserver||f||(0,n.useEffect)(function(){var e=[],t=[],n=function(n){e.push.apply(e,c(n)),Object.entries(e.filter(function(e){var t=e.initiatorType;return r.includes(t)}).reduce(function(e,t){var r=new URL(t.name);l&&(r.search="");var n=r.href;return a(a({},e),{},s({},n,[].concat(c(e[n]||[]),[t])))},{})).forEach(function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),2!==r.length);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}(e,2)||u(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],i=r[1];i.length<2||t.includes(n)||((0,o.printWarning)("A ".concat(i[0].initiatorType," resource was loaded multiple times: ").concat(n)),t.push(n))})};n(performance.getEntriesByType("resource"));var i=new PerformanceObserver(function(e){n(e.getEntries())});try{i.observe({entryTypes:["resource"]})}catch(e){}return function(){i.disconnect()}},[r,l])};t.useResourceMonitor=f},60303:function(e,t,r){var n;n=function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return i(n).default}});var o=r(12);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(2),i=s(o),a=s(r(3));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,n,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.panes={}
303,n.registerPane=function(e,t){t.forEach(function(t){n.panes[t]||(n.panes[t]=[]),n.findPane(e,t)||(n.panes[t].length>0&&n.syncScrollPosition(n.panes[t][0],e),n.panes[t].push(e))}),n.addEvents(e,t)},n.unregisterPane=function(e,t){t.forEach(function(t){n.findPane(e,t)&&(n.removeEvents(e),n.panes[t].splice(n.panes[t].indexOf(e),1))})},n.addEvents=function(e,t){e.onscroll=n.handlePaneScroll.bind(n,e,t)},n.removeEvents=function(e){e.onscroll=null},n.findPane=function(e,t){return!!n.panes[t]&&n.panes[t].find(function(t){return t===e})},n.handlePaneScroll=function(e,t){n.props.enabled&&window.requestAnimationFrame(function(){n.syncScrollPositions(e,t)})},n.syncScrollPositions=function(e,t){t.forEach(function(r){n.panes[r].forEach(function(o){e!==o&&(n.removeEvents(o,r),n.syncScrollPosition(e,o),window.requestAnimationFrame(function(){n.addEvents(o,t)}))})}),n.props.onSync&&n.props.onSync(e)},c(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw 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),n(t,[{key:"getChildContext",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight,i=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,c=n-o,u=a-s,l=this.props,f=l.proportional,p=l.vertical,d=l.horizontal,h=t.scrollHeight-o,y=t.scrollWidth-s;p&&c>0&&(t.scrollTop=f?h*r/c:r),d&&u>0&&(t.scrollLeft=f?y*i/u:i)}},{key:"render",value:function(){return i.default.Children.only(this.props.children)}}]),t}(o.Component);u.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},u.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},u.childContextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=u,e.exports=t.default},function(t,r){t.exports=e},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r(5)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},!0)}else e.exports=r(11)()}).call(t,r(4))},function(e,t){var r,n,o,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],l=!1,f=-1;function p(){l&&o&&(l=!1,o.length?u=o.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=c(p);l=!0;for(var t=u.length;t;){for(o=u,u=[];++f<t;)o&&o[f].run();f=-1,t=u.length}o=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||l||c(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){(function(t){"use strict";var n=r(6),o=r(7),i=r(8),a=r(9),s=r(10);e.exports=function(e,r){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",l={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("str
303ing"),symbol:d("symbol"),any:p(n.thatReturnsNull),arrayOf:function(e){return p(function(t,r,n,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+o+" `"+i+"` of type "+("`"+h(s))+"` supplied to `"+n+"`, expected an array.");for(var c=0;c<s.length;c++){var u=e(s,c,n,o,i+"["+c+"]",a);if(u instanceof Error)return u}return null})},element:p(function(t,r,n,o,i){var a=t[r];return e(a)?null:new f("Invalid "+o+" `"+i+"` of type "+("`"+h(a))+"` supplied to `"+n+"`, expected a single ReactElement.")}),instanceOf:function(e){return p(function(t,r,n,o,i){if(!(t[r]instanceof e)){var a,s=e.name||u;return new f("Invalid "+o+" `"+i+"` of type "+("`"+((a=t[r]).constructor&&a.constructor.name?a.constructor.name:u))+"` supplied to `"+n+"`, expected instance of `"+s+"`.")}return null})},node:p(function(t,r,n,o,i){return!function t(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(t);if(null===r||e(r))return!0;var n=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(r);if(!n)return!1;var o,i=n.call(r);if(n!==r.entries){for(;!(o=i.next()).done;)if(!t(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!t(a[1]))return!1}return!0;default:return!1}}(t[r])?new f("Invalid "+o+" `"+i+"` supplied to `"+n+"`, expected a ReactNode."):null}),objectOf:function(e){return p(function(t,r,n,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[r],c=h(s);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type "+("`"+c)+"` supplied to `"+n+"`, expected an object.");for(var u in s)if(s.hasOwnProperty(u)){var l=e(s,u,n,o,i+"."+u,a);if(l instanceof Error)return l}return null})},oneOf:function(e){return Array.isArray(e)?p(function(t,r,n,o,i){for(var a,s=t[r],c=0;c<e.length;c++)if(s===(a=e[c])?0!==s||1/s==1/a:s!=s&&a!=a)return null;return new f("Invalid "+o+" `"+i+"` of value `"+s+"` "+("supplied to `"+n)+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),n.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),n.thatReturnsNull;for(var r=0;r<e.length;r++){var o=e[r];if("function"!=typeof o)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",function(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(o),r),n.thatReturnsNull}return p(function(t,r,n,o,i){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,r,n,o,i,a))return null;return new f("Invalid "+o+" `"+i+"` supplied to `"+n+"`.")})},shape:function(e){return p(function(t,r,n,o,i){var s=t[r],c=h(s);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(var u in e){var l=e[u];if(l){var p=l(s,u,n,o,i+"."+u,a);if(p)return p}}return null})}};function f(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var n={},s=0;function c(c,l,p,d,h,y,m){if(d=d||u,y=y||p,m!==a){if(r)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var g=d+":"+p;!n[g]&&s<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,d),n[g]=!0,s++)}}return null!=l[p]?e(l,p,d,h,y):c?new f(null===l[p]?"The "+h+" `"+y+"` is marked as required in `"+d+"`, but its value is `null`.":"The "+h+" `"+y+"` is marked as required in `"+d+"`, but its value is `undefined`."):null}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function d(e){return p(function(t,r,n,o,i,a){var s=t[r];return h(s)!==e?new f("Invalid "+o+" `"+i+"` of type "+("`"+y(s))+"` supplied to `"+n+"`, expected `"+e+"`."):null})}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol?"symbol":t}function y(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return f.prototype=Error.prototype,l.checkPropTypes=s,l.PropTypes=l,l}}).call(t,r(4))},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw Error("invariant requires an error message argument")}
303),e.exports=function(e,t,n,o,i,a,s,c){if(r(t),!e){var u;if(void 0===t)u=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,s,c],f=0;(u=Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,r(4))},function(e,t,r){(function(t){"use strict";var n,o=r(6);"production"!==t.env.NODE_ENV&&(n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw Error(i)}catch(e){}},o=function(e,t){if(void 0===t)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n.apply(void 0,[t].concat(o))}}),e.exports=o}).call(t,r(4))},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var n=r(7),o=r(8),i=r(9),a={};e.exports=function(e,r,s,c,u){if("production"!==t.env.NODE_ENV){for(var l in e)if(e.hasOwnProperty(l)){var f;try{n("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",s,l),f=e[l](r,l,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var p=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}}).call(t,r(4))},function(e,t,r){"use strict";var n=r(6),o=r(7),i=r(9);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(2),i=s(r(13)),a=s(r(3));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,n,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.toArray=function(e){return[].concat(e)},c(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw 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),n(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.node=this.props.attachTo||i.default.findDOMNode(this),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.children}}]),t}(o.Component);u.propTypes={children:a.default.node.isRequired,attachTo:a.default.object,group:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string)]),enabled:a.default.bool},u.defaultProps={group:"default",enabled:!0},u.contextTypes={registerPane:a.default.func,unregisterPane:a.default.func},t.default=u,e.exports=t.default},function(e,r){e.exports=t}])},e.exports=n(r(67294),r(73935))},83524:function(e,t,r){"use strict";var n=r(67294),o=n&&"object"==typeof n&&"default"in n?n.default:n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=!!("undefined"!=typeof window&&window.document&&window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw Error("Expected reducePropsToState to be a function.");
303if("function"!=typeof t)throw Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw Error("Expected mapStateOnServer to either be undefined or a function.");return function(s){if("function"!=typeof s)throw Error("Expected WrappedComponent to be a React component.");var c,u=[];function l(){c=e(u.map(function(e){return e.props})),f.canUseDOM?t(c):r&&(c=r(c))}var f=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t.peek=function(){return c},t.rewind=function(){if(t.canUseDOM)throw Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e};var r=t.prototype;return r.UNSAFE_componentWillMount=function(){u.push(this),l()},r.componentDidUpdate=function(){l()},r.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},r.render=function(){return o.createElement(s,this.props)},t}(n.PureComponent);return i(f,"displayName","SideEffect("+(s.displayName||s.name||"Component")+")"),i(f,"canUseDOM",a),f}}},8205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var n=a(r(67294)),o=a(r(94184)),i=r(15518);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="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)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function h(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);return r=t?Reflect.construct(n,arguments,g(this).constructor):n.apply(this,arguments),r&&("object"===s(r)||"function"==typeof r)?r:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){h(r,e);var t=m(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},i={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.default.cloneElement(this.props.prevArrow,l(l({},r),i)):n.default.createElement("button",c({key:"0",type:"button"},r)," ","Previous")}}]),r}(n.default.PureComponent);t.PrevArrow=v;var b=function(e){h(r,e);var t=m(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,i.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.default.cloneElement(this.props.nextArrow,l(l({},r),a)):n.default.createElement("button",c({key:"1",type:"button"},r)," ","Next")}}]),r}(n.default.PureComponent);t.NextArrow=b},23492:function(e,t,r){"use strict";
303Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(67294))&&n.__esModule?n:{default:n};t.default={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0}},16329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var n=a(r(67294)),o=a(r(94184)),i=r(15518);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="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)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,r,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(f);return e=t?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),e&&("object"===s(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function f(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,f),a.apply(this,arguments)}return r=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,a=t.onMouseOver,s=t.onMouseLeave,u=t.infinite,l=t.slidesToScroll,f=t.slidesToShow,p=t.slideCount,d=t.currentSlide,h=(e={slideCount:p,slidesToScroll:l,slidesToShow:f,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,y=[],m=0;m<h;m++){var g=(m+1)*l-1,v=u?g:(0,i.clamp)(g,0,p-1),b=v-(l-1),w=u?b:(0,i.clamp)(b,0,p-1),O=(0,o.default)({"slick-active":u?d>=w&&d<=v:d===w}),S={message:"dots",index:m,slidesToScroll:l,currentSlide:d},j=this.clickHandler.bind(this,S);y=y.concat(n.default.createElement("li",{key:m,className:O},n.default.cloneElement(this.props.customPaging(m),{onClick:j})))}return n.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},{onMouseEnter:r,onMouseOver:a,onMouseLeave:s}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(f.prototype,r),f}(n.default.PureComponent);t.Dots=f},46066:function(e,t,r){"use strict";t.Z=void 0;var n,o=((n=r(5798))&&n.__esModule?n:{default:n}).default;t.Z=o},46948:function(e,t){"use strict";
303Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},58517:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var n=p(r(67294)),o=p(r(46948)),i=p(r(91296)),a=p(r(94184)),s=r(15518),c=r(64740),u=r(16329),l=r(8205),f=p(r(91033));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="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)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(y,e);var t,r,p=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=b(y);return e=t?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),e&&("object"===d(e)||"function"==typeof e)?e:v(this)});function y(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,y),w(v(t=p.call(this,e)),"listRefHandler",function(e){return t.list=e}),w(v(t),"trackRefHandler",function(e){return t.track=e}),w(v(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,s.getHeight)(e)+"px"}}),w(v(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,s.getOnDemandLazySlides)(m(m({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var r=m({listRef:t.list,trackRef:t.track},t.props);t.updateState(r,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new f.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),w(v(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEac
303h(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),w(v(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,s.getOnDemandLazySlides)(m(m({},t.props),t.state));r.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}}),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var o=m(m({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(o,i,function(){t.state.currentSlide>=n.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:n.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),w(v(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),w(v(t),"resizeWindow",function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(t.track&&t.track.node){var r=m(m({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),w(v(t),"updateState",function(e,r,o){var i=(0,s.initializedState)(e);e=m(m(m({},e),i),{},{slideIndex:i.currentSlide});var a=(0,s.getTrackLeft)(e);e=m(m({},e),{},{left:a});var c=(0,s.getTrackCSS)(e);(r||n.default.Children.count(t.props.children)!==n.default.Children.count(e.children))&&(i.trackStyle=c),t.setState(i,o)}),w(v(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],i=(0,s.getPreClones)(m(m(m({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,s.getPostClones)(m(m(m({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var c=0;c<i;c++)r+=o[o.length-1-c],e+=o[o.length-1-c];for(var u=0;u<a;u++)e+=o[u];for(var l=0;l<t.state.currentSlide;l++)r+=o[l];var f={width:e+"px",left:-r+"px"};if(t.props.centerMode){var p="".concat(o[t.state.currentSlide],"px");f.left="calc(".concat(f.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:f}}var d=n.default.Children.count(t.props.children),h=m(m(m({},t.props),t.state),{},{slideCount:d}),y=(0,s.getPreClones)(h)+(0,s.getPostClones)(h)+d,g=100/t.props.slidesToShow*y,v=100/y,b=-v*((0,s.getPreClones)(h)+t.state.currentSlide)*g/100;return t.props.centerMode&&(b+=(100-v*g/100)/2),{slideWidth:v+"%",trackStyle:{width:g+"%",left:b+"%"}}}),w(v(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],r=e.length,n=0;Array.prototype.forEach.call(e,function(e){var o=function(){return++n&&n>=r&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),w(v(t),"progressiveLazyLoad",function(){for(var e=[],r=m(m({},t.props),t.state),n=t.state.currentSlide;n<t.state.slideCount+(0,s.getPostClones)(r);n++)if(0>t.state.lazyLoadedList.indexOf(n)){e.push(n);break}for(var o=t.state.currentSlide-1;o>=-(0,s.getPreClones)(r);o--)if(0>t.state.lazyLoadedList.indexOf(o)){e.push(o);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),w(v(t),"slideHandler",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.props,o=n.asNavFor,i=n.beforeChange,a=n.onLazyLoad,c=n.speed,u=n.afterChange,l=t.state.currentSlide,f=(0,s.slideHandler)(m(m(m({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!r})),p=f.state,d=f.nextState;if(p){i&&i(l,p.currentSlide);var h=p.lazyLoadedList.filter(function(e){return 0>t.state.lazyLoadedList.indexOf(e)});a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),u&&u(l),delete t.animationEndCallback),t.setState(p,function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),d&&(t.animationEndCallback=setTimeout(function(){var e=d.animating,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(d,["animating"]);t.setState(r,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),u&&u(p.currentSlide),delete t.animationEndCallback})},c))})}}),w(v(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=m(m({},t.props),t.state),o=(0,s.changeSlide)(n,e);if((0===o||o)&&(!0===r?t.slideHandler(o,r):t.slideHandler(o),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}}),w(v(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),w(v(t),"keyHandler",function(e){var r=(0,s.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),w(v(t),"selectHandler",function(e){t.changeSlide(e)}),w(v(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),w(v(t),"enableBodyScroll",function(){window.ontouchmove=null}),w(v(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,s.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),w(v(t),"swipeMove",function(e){var r=(0,s.swipeMove)(e,m(m(m({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),w(v(t),"swipeEnd",function(e){var r=(0,s.swipeEnd)(e,m(m(m({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(r){var n=r.triggerSlideHandler;delete r.triggerSlideHandler,t.setState(r),void 0!==n&&(t.slideHandler(n),t.props.verticalSwiping&&t.enableBodyScroll())}}),w(v(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),w(v(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),w(v(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),w(v(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(isNaN(e=Number(e)))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},r)},0))}),w(v(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,s.canGoNext)(m(m({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),w(v(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var r=t.state.autoplaying;if("update"===e){if("hovered"===r||"focused"===r||"paused"===r)return}else if("leave"===e){if("paused"===r||"focused"===r)return}else if("blur"===e&&("paused"===r||"hovered"===r))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({auto
303playing:"playing"})}),w(v(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var r=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?("hovered"===r||"playing"===r)&&t.setState({autoplaying:"focused"}):"playing"===r&&t.setState({autoplaying:"hovered"})}),w(v(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),w(v(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),w(v(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),w(v(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),w(v(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),w(v(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),w(v(t),"render",function(){var e,r,o,i=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),f=m(m({},t.props),t.state),p=(0,s.extractObject)(f,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=t.props.pauseOnHover;if(p=m(m({},p),{},{onMouseEnter:d?t.onTrackOver:null,onMouseLeave:d?t.onTrackLeave:null,onMouseOver:d?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var y=(0,s.extractObject)(f,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),g=t.props.pauseOnDotsHover;y=m(m({},y),{},{clickHandler:t.changeSlide,onMouseEnter:g?t.onDotsLeave:null,onMouseOver:g?t.onDotsOver:null,onMouseLeave:g?t.onDotsLeave:null}),e=n.default.createElement(u.Dots,y)}var v=(0,s.extractObject)(f,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=t.changeSlide,t.props.arrows&&(r=n.default.createElement(l.PrevArrow,v),o=n.default.createElement(l.NextArrow,v));var b=null;t.props.vertical&&(b={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var O=m(m({},b),w),S=t.props.touchMove,j={className:"slick-list",style:O,onClick:t.clickHandler,onMouseDown:S?t.swipeStart:null,onMouseMove:t.state.dragging&&S?t.swipeMove:null,onMouseUp:S?t.swipeEnd:null,onMouseLeave:t.state.dragging&&S?t.swipeEnd:null,onTouchStart:S?t.swipeStart:null,onTouchMove:t.state.dragging&&S?t.swipeMove:null,onTouchEnd:S?t.touchEnd:null,onTouchCancel:t.state.dragging&&S?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},x={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(j={className:"slick-list"},x={className:i}),n.default.createElement("div",x,t.props.unslick?"":r,n.default.createElement("div",h({ref:t.listRefHandler},j),n.default.createElement(c.Track,h({ref:t.trackRefHandler},p),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=m(m({},o.default),{},{currentSlide:t.props.initialSlide,slideCount:n.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var t,r=t.ssrInit();return t.state=m(m({},t.state),r),t}return r=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,o=Object.keys(this.props);r<o.length;r++){var i=o[r];if(!e.hasOwnProperty(i)||"object"!==d(e[i])&&"function"!=typeof e[i]&&e[i]!==this.props[i]){t=!0;break}}return t||n.default.Children.count(this.props.children)!==n.default.Children.count(e.children)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(y.prototype,r),y}(n.default.Component);t.InnerSlider=O},5798:function(e,t,r){"use strict";
303Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r(67294)),o=r(58517),i=c(r(80973)),a=c(r(23492)),s=r(15518);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="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)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){m(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=(0,s.canUseDOM)()&&r(24974),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(f,e);var t,r,c=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=y(f);return e=t?Reflect.construct(r,arguments,y(this).constructor):r.apply(this,arguments),e&&("object"===u(e)||"function"==typeof e)?e:h(this)});function f(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,f),m(h(t=c.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),m(h(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),m(h(t),"slickNext",function(){return t.innerSlider.slickNext()}),m(h(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,r)}),m(h(t),"slickPause",function(){return t.innerSlider.pause("paused")}),m(h(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return r=[{key:"media",value:function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,n){var o;o=0===n?(0,i.default)({minWidth:0,maxWidth:r}):(0,i.default)({minWidth:t[n-1]+1,maxWidth:r}),(0,s.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:r})})});var r=(0,i.default)({minWidth:t.slice(-1)[0]});(0,s.canUseDOM)()&&this.media(r,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){g.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,t,r=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===r.state.breakpoint}))[0].settings?"unslick":p(p(p({},a.default),this.props),t[0].settings):p(p({},a.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.
303slidesToShow=1,e.slidesToScroll=1);var i=n.default.Children.toArray(this.props.children);i=i.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var s=[],c=null,u=0;u<i.length;u+=e.rows*e.slidesPerRow){for(var f=[],d=u;d<u+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var h=[],y=d;y<d+e.slidesPerRow&&(e.variableWidth&&i[y].props.style&&(c=i[y].props.style.width),!(y>=i.length));y+=1)h.push(n.default.cloneElement(i[y],{key:100*u+10*d+y,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));f.push(n.default.createElement("div",{key:10*u+d},h))}e.variableWidth?s.push(n.default.createElement("div",{key:u,style:{width:c}},f)):s.push(n.default.createElement("div",{key:u},f))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:m},i)}return s.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(o.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},e),s)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(f.prototype,r),f}(n.default.Component);t.default=v},64740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=a(r(67294)),o=a(r(94184)),i=r(15518);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="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)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){var t,r,n,o,i;return n=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),r=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":n,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},m=function(e){var t={};return(void 0===e.variableWidth||!1===e.variableWidth)&&(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},g=function(e,t){return e.key||t},v=function(e){var t,r=[],a=[],s=[],c=n.default.Children.count(e.children),u=(0,i.lazyStartIndex)(e),l=(0,i.lazyEndIndex)(e);return(n.default.Children.forEach(e.children,function(f,p){var h,v={message:"children",index:
303p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?f:n.default.createElement("div",null);var b=m(d(d({},e),{},{index:p})),w=h.props.className||"",O=y(d(d({},e),{},{index:p}));if(r.push(n.default.cloneElement(h,{key:"original"+g(h,p),"data-index":p,className:(0,o.default)(O,w),tabIndex:"-1","aria-hidden":!O["slick-active"],style:d(d({outline:"none"},h.props.style||{}),b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})),e.infinite&&!1===e.fade){var S=c-p;S<=(0,i.getPreClones)(e)&&c!==e.slidesToShow&&((t=-S)>=u&&(h=f),O=y(d(d({},e),{},{index:t})),a.push(n.default.cloneElement(h,{key:"precloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(O,w),"aria-hidden":!O["slick-active"],style:d(d({},h.props.style||{}),b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}}))),c!==e.slidesToShow&&((t=c+p)<l&&(h=f),O=y(d(d({},e),{},{index:t})),s.push(n.default.cloneElement(h,{key:"postcloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(O,w),"aria-hidden":!O["slick-active"],style:d(d({},h.props.style||{}),b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})))}}),e.rtl)?a.concat(r,s).reverse():a.concat(r,s)},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(i);return e=t?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),e&&("object"===s(e)||"function"==typeof e)?e:l(this)});function i(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(l(e=o.call.apply(o,[this].concat(r))),"node",null),h(l(e),"handleRef",function(t){e.node=t}),e}return r=[{key:"render",value:function(){var e=v(this.props),t=this.props,r=t.onMouseEnter,o=t.onMouseOver,i=t.onMouseLeave;return n.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},{onMouseEnter:r,onMouseOver:o,onMouseLeave:i}),e)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(i.prototype,r),i}(n.default.PureComponent);t.Track=b},15518:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=s,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var n,o=(n=r(67294))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return Math.max(t,Math.min(e,r))}var c=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=c;var u=function(e){for(var t=[],r=l(e),n=f(e),o=r;o<n;o++)0>
303e.lazyLoadedList.indexOf(o)&&t.push(o);return t};t.getOnDemandLazySlides=u,t.getRequiredLazySlides=function(e){for(var t=[],r=l(e),n=f(e),o=r;o<n;o++)t.push(o);return t};var l=function(e){return e.currentSlide-p(e)};t.lazyStartIndex=l;var f=function(e){return e.currentSlide+d(e)};t.lazyEndIndex=f;var p=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=p;var d=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=d;var h=function(e){return e&&e.offsetWidth||0};t.getWidth=h;var y=function(e){return e&&e.offsetHeight||0};t.getHeight=y;var m=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(t=e.startX-e.curX,(r=Math.round(180*Math.atan2(e.startY-e.curY,t)/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315)?"left":r>=135&&r<=225?"right":!0===n?r>=35&&r<=135?"up":"down":"vertical"};t.getSwipeDirection=m;var g=function(e){var t=!0;return!e.infinite&&(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t};t.canGoNext=g,t.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},t.initializedState=function(e){var t,r=o.default.Children.count(e.children),n=e.listRef,i=Math.ceil(h(n)),s=Math.ceil(h(e.trackRef&&e.trackRef.node));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var l=n&&y(n.querySelector('[data-index="0"]')),f=l*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=r-1-e.initialSlide);var d=e.lazyLoadedList||[],m=u(a(a({},e),{},{currentSlide:p,lazyLoadedList:d})),g={slideCount:r,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:p,slideHeight:l,listHeight:f,lazyLoadedList:d=d.concat(m)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,r=e.animating,n=e.fade,o=e.infinite,i=e.index,c=e.slideCount,l=e.lazyLoad,f=e.currentSlide,p=e.centerMode,d=e.slidesToScroll,h=e.slidesToShow,y=e.useCSS,m=e.lazyLoadedList;if(t&&r)return{};var v,b,w,O=i,_={},P={},E=o?i:s(i,0,c-1);if(n){if(!o&&(i<0||i>=c))return{};i<0?O=i+c:i>=c&&(O=i-c),l&&0>m.indexOf(O)&&(m=m.concat(O)),_={animating:!0,currentSlide:O,lazyLoadedList:m,targetSlide:O},P={animating:!1,targetSlide:O}}else v=O,O<0?(v=O+c,o?c%d!=0&&(v=c-c%d):v=0):!g(e)&&O>f?O=v=f:p&&O>=c?(O=o?c:c-1,v=o?0:c-1):O>=c&&(v=O-c,o?c%d!=0&&(v=0):v=c-h),!o&&O+h>=c&&(v=c-h),b=x(a(a({},e),{},{slideIndex:O})),w=x(a(a({},e),{},{slideIndex:v})),o||(b===w&&(O=v),b=w),l&&(m=m.concat(u(a(a({},e),{},{currentSlide:O})))),y?(_={animating:!0,currentSlide:v,trackStyle:j(a(a({},e),{},{left:b})),lazyLoadedList:m,targetSlide:E},P={animating:!1,currentSlide:v,trackStyle:S(a(a({},e),{},{left:w})),swipeLeft:null,targetSlide:E}):_={currentSlide:v,trackStyle:S(a(a({},e),{},{left:w})),lazyLoadedList:m,targetSlide:E};return{state:_,nextState:P}},t.changeSlide=function(e,t){var r,n,o,i,s=e.slidesToScroll,c=e.slidesToShow,u=e.slideCount,l=e.currentSlide,f=e.targetSlide,p=e.lazyLoad,d=e.infinite;if(r=u%s!=0?0:(u-l)%s,"previous"===t.message)i=l-(o=0===r?s:c-r),p&&!d&&(i=-1==(n=l-o)?u-1:n),d||(i=f-s);else if("next"===t.message)i=l+(o=0===r?s:r),p&&!d&&(i=(l+s)%u+r),d||(i=f+s);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,d){var h=A(a(a({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=u:i<t.currentSlide&&"right"===h&&(i+=u)}}else"index"===t.message&&(i=Number(t.index));return i},t.keyHandler=function(e,t,r){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?r?"next":"previous":39===e.keyCode?r?"previous":"next":""},t.swipeStart=function(e,t,r){return("IMG"===e.target.tagName&&c(e),t&&(r||-1===e.type.indexOf("mouse")))?{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}:""},t.swipeMove=function(e,t){var r=t.scrolling,n=t.animating,o=t.vertical,i=t.swipeToSlide,s=t.verticalSwiping,u=t.rtl,l=t.currentSlide,f=t.edgeFriction,p=t.edgeDragged,d=t.onEdge,h=t.swiped,y=t.swiping,v=t.slideCount,b=t.slidesToScroll,w=t.infinite,O=t.touchObject,j=t.swipeEvent,_=t.listHeight,P=t.listWidth;if(!r){if(n)return c(e);o&&i&&s&&c(e);var E,A={},k=x(t);O.curX=e.touches?e.touches[0].pageX:e.clientX,O.curY=e.touches?e.touches[0].pageY:e.clientY,O.swipeLength=Math.round(Math.sqrt(Math.pow(O.curX-O.startX,2)));var C=Math.round(Math.sqrt(Math.pow(O.curY-O.startY,2)));if(!s&&!y&&C>10)return{scrolling:!0};s&&(O.swipeLength=C);var N=(u?-1:1)*(O.curX>O.startX?1:-1);s&&(N=O.curY>O.startY?1:-1);var T=m(t.touchObject,s),I=O.swipeLength;return!w&&(0===l&&("right"===T||"down"===T)||l+1>=Math.ceil(v/b)&&("left"===T||"up"===T)||!g(t)&&("left"===T||"up"===T))&&(I=O.swipeLength*f,!1===p&&d&&(d(T),A.edgeDragged=!0)),!h&&j&&(j(T),A.swiped=!0),E=o?k+_/P*I*N:u?k-I*N:k+I*N,s&&(E=k+I*N),A=a(a({},A),{},{touchObject:O,swipeLeft:E,trackStyle:S(a(a({},t),{},{left:E}))}),Math.abs(O.curX-O.startX)<.8*Math.abs(O.curY-O.startY)||O.swipeLength>10&&(A.swiping=!0,c(e)),A}},t.swipeEnd=function(e,t){var r=t.dragging,n=t.swipe,o=t.touchObject,i=t.listWidth,s=t.touchThreshold,u=t.verticalSwiping,l=t.listHeight,f=t.swipeToSlide,p=t.scrolling,d=t.onSwipe,h=t.targetSlide,y=t.currentSlide,g=t.infinite;if(!r)return n&&c(e),{};var v=u?l/s:i/s,O=m(o,u),S={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p||!o.swipeLength)return S;if(o.swipeLength>v){c(e),d&&d(O);var _,P,E=g?y:h;switch(O){case"left":case"up":P=E+w(t),_=f?b(t,P):P,S.currentDirection=0;break;case"right":case"down":P=E-w(t),_=f?b(t,P):P,S.currentDirection=1;break;default:_=E}S.triggerSlideHandler=_}else{var A=x(t);S.trackStyle=j(a(a({},t),{},{left:A}))}return S};var v=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,o=[];r<t;
303)o.push(r),r=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return o};t.getNavigableIndexes=v;var b=function(e,t){var r=v(e),n=0;if(t>r[r.length-1])t=r[r.length-1];else for(var o in r){if(t<r[o]){t=n;break}n=r[o]}return t};t.checkNavigable=b;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(!e.swipeToSlide)return e.slidesToScroll;var r,n=e.listRef;if(Array.from(n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[]).every(function(n){if(e.vertical){if(n.offsetTop+y(n)/2>-1*e.swipeLeft)return r=n,!1}else if(n.offsetLeft-t+h(n)/2>-1*e.swipeLeft)return r=n,!1;return!0}),!r)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(r.dataset.index-o)||1};t.getSlideCount=w;var O=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=O;var S=function(e){O(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t,r,n=e.slideCount+2*e.slidesToShow;e.vertical?r=n*e.slideHeight:t=E(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=a(a({},o),{},{WebkitTransform:i,transform:s,msTransform:c})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),r&&(o.height=r),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o};t.getTrackCSS=S;var j=function(e){O(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=S(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=j;var x=function(e){if(e.unslick)return 0;O(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,r=e.trackRef,n=e.infinite,o=e.centerMode,i=e.slideCount,a=e.slidesToShow,s=e.slidesToScroll,c=e.slideWidth,u=e.listWidth,l=e.variableWidth,f=e.slideHeight,p=e.fade,d=e.vertical,h=0,y=0;if(p||1===e.slideCount)return 0;var m=0;if(n?(m=-_(e),i%s!=0&&t+s>i&&(m=-(t>i?a-(t-i):i%s)),o&&(m+=parseInt(a/2))):(i%s!=0&&t+s>i&&(m=a-i%s),o&&(m=parseInt(a/2))),h=m*c,y=m*f,g=d?-(t*f*1)+y:-(t*c*1)+h,!0===l){var g,v,b,w=r&&r.node;if(b=t+_(e),g=(v=w&&w.childNodes[b])?-1*v.offsetLeft:0,!0===o){b=n?t+_(e):t,v=w&&w.children[b],g=0;for(var S=0;S<b;S++)g-=w&&w.children[S]&&w.children[S].offsetWidth;g-=parseInt(e.centerPadding),g+=v&&(u-v.offsetWidth)/2}}return g};t.getTrackLeft=x;var _=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=_;var P=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=P;var E=function(e){return 1===e.slideCount?1:_(e)+e.slideCount+P(e)};t.getTotalSlides=E;var A=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+k(e)?"left":"right":e.targetSlide<e.currentSlide-C(e)?"right":"left"};t.siblingDirection=A;var k=function(e){var t=e.slidesToShow,r=e.centerMode,n=e.rtl,o=e.centerPadding;if(r){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),n&&t%2==0&&(i+=1),i}return n?0:t-1};t.slidesOnRight=k;var C=function(e){var t=e.slidesToShow,r=e.centerMode,n=e.rtl,o=e.centerPadding;if(r){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),n||t%2!=0||(i+=1),i}return n?t-1:0};t.slidesOnLeft=C,t.canUseDOM=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},91033:function(e,t,r){"use strict";r.r(t);var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&c()}function s(){a(i)}function c(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(s,20);o=e}return c}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
303w e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=m(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+d(e["border-"+r+"-width"])},0)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function m(e,t,r,n){return{x:e,y:t,width:r,height:n}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!o)return p;if(y(e)){var t;return m(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return p;var n=f(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=d(i)}return t}(n),i=o.left+o.right,a=o.top+o.bottom,s=d(n.width),c=d(n.height);if("border-box"===n.boxSizing&&(Math.round(s+i)!==t&&(s-=h(n,"left","right")+i),Math.round(c+a)!==r&&(c-=h(n,"top","bottom")+a)),e!==f(e).document.documentElement){var u=Math.round(s+i)-t,l=Math.round(c+a)-r;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return m(o.left,o.top,s,c)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),v=function(e,t){var r,n,o,i,a,s=(r=t.x,n=t.y,o=t.width,i=t.height,l(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:r,y:n,width:o,height:i,top:n,right:r+o,bottom:i+n,left:r}),a);l(this,{target:e,contentRect:s})},b=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new v(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,O=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new b(t,u.getInstance(),this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){O.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:O;t.default=S},37478:function(e,t,r){"use strict";
303var n=r(45388),o=r(21924),i=r(27470),a=n("%TypeError%"),s=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),y=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},m=function(e,t){var r=y(e,t);return r&&r.value},g=function(e,t,r){var n=y(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return p(t,n)}else if(r)return m(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(c){if(t)return h(t,n)}else if(r)return!!y(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),l(e,n,o)):c?(t||(t=new c),d(t,n,o)):(r||(r={key:{},next:null}),g(r,n,o))}};return n}},57630:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,o=this;if("function"!=typeof o||"[object Function]"!==r.call(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var i=t.call(arguments,1),a=Math.max(0,o.length-i.length),s=[],c=0;c<a;c++)s.push("$"+c);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return o.apply(e,i.concat(t.call(arguments)));var r=o.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}),o.prototype){var u=function(){};u.prototype=o.prototype,n.prototype=new u,u.prototype=null}return n}},28109:function(e,t,r){"use strict";var n=r(57630);e.exports=Function.prototype.bind||n},45388:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(41405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
303IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var m=p(p(e));y["%Error.prototype%"]=m}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(28109),w=r(17642),O=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),j=b.call(Function.call,String.prototype.replace),x=b.call(Function.call,String.prototype.slice),_=b.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,A=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,P,function(e,t,r,o){n[n.length]=r?j(o,E,"$1"):t||e}),n},k=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(y,n)){var i=y[n];if(i===d&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],S(r,O([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],m=x(h,0,1),g=x(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,w(y,s="%"+n+"%"))u=y[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var v=c(u,h);u=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else d=w(u,h),u=u[h];d&&!l&&(y[s]=u)}}return u}},27470:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,S=RegExp.prototype.test,j=Array.prototype.concat,x=Array.prototype.join,_=Array.prototype.slice,P=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var L=r(47165),D=L.custom,M=B(D)?D:null;function F(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function U(e){return"[object Array]"===z(e)&&(!N||!("object"==typeof e&&N in e))}function Z(e){return"[object RegExp]"===z(e)&&(!N||!("object"==typeof e&&N in e))}function B(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
303if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,o){var s=r||{};if(G(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&" "!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return F(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",r)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return y?R(t,w):w}if("bigint"==typeof t){var S=String(t)+"n";return y?R(t,S):S}var P=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var A=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(s,n);if(void 0===o)o=[];else if(q(o,t)>=0)return"[Circular]";function D(t,r,i){if(r&&(o=_.call(o)).push(r),i){var a={depth:s.depth};return G(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,n+1,o)}return e(t,s,n+1,o)}if("function"==typeof t&&!Z(t)){var $=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),X=Q(t,D);return"[Function"+($?": "+$:" (anonymous)")+"]"+(X.length>0?" { "+x.call(X,", ")+" }":"")}if(B(t)){var J=C?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||C?J:V(J)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var ee,et="<"+O.call(String(t.nodeName)),er=t.attributes||[],en=0;en<er.length;en++)et+=" "+er[en].name+"="+F((ee=er[en].value,b.call(String(ee),/"/g,""")),"double",s);return et+=">",t.childNodes&&t.childNodes.length&&(et+="..."),et+="</"+O.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var eo=Q(t,D);return A&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(eo)?"["+Y(eo,A)+"]":"[ "+x.call(eo,", ")+" ]"}if("[object Error]"===z(t)&&(!N||!("object"==typeof t&&N in t))){var ei=Q(t,D);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ei.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ei,", ")+" }":"{ ["+String(t)+"] "+x.call(j.call("[cause]: "+D(t.cause),ei),", ")+" }"}if("object"==typeof t&&c){if(M&&"function"==typeof t[M]&&L)return L(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ea=[];return a&&a.call(t,function(e,r){ea.push(D(r,t,!0)+" => "+D(e,t))}),K("Map",i.call(t),ea,A)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var es=[];return l&&l.call(t,function(e){es.push(D(e,t))}),K("Set",u.call(t),es,A)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return W("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return W("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return W("WeakRef");if("[object Number]"===z(t)&&(!N||!("object"==typeof t&&N in t)))return V(D(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return V(D(E.call(t)));if("[object Boolean]"===z(t)&&(!N||!("object"==typeof t&&N in t)))return V(h.call(t));if("[object String]"===z(t)&&(!N||!("object"==typeof t&&N in t)))return V(D(String(t)));if(!("[object Date]"===z(t)&&(!N||!("object"==typeof t&&N in t)))&&!Z(t)){var ec=Q(t,D),eu=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,el=t instanceof Object?"":"null prototype",ef=!eu&&N&&Object(t)===t&&N in t?v.call(z(t),8,-1):el?"Object":"",ep=(eu||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ef||el?"["+x.c
303all(j.call([],ef||[],el||[]),": ")+"] ":"");return 0===ec.length?ep+"{}":A?ep+"{"+Y(ec,A)+"}":ep+"{ "+x.call(ec,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return $.call(e,t)}function z(e){return y.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function H(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function V(e){return"Object("+e+")"}function W(e){return e+" { ? }"}function K(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):x.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r,n=U(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=G(e,i)?t(e[i],e):""}var a="function"==typeof A?A(e):[];if(C){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var c in e)G(e,c)&&(!n||String(Number(c))!==c||!(c<e.length))&&(C&&r["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)T.call(e,a[u])&&o.push("["+t(a[u])+"]: "+t(e[a[u]],e));return o}},71169:function(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},14153:function(e){let t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},n,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{let t=r.exec(i);if(!t)return e;{var a;let r=t[1],n=t[2],s=((a=t[3])&&-1!==a.indexOf(".")&&("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1))),a),c=t[4]||t[6];if(!o.leadingZeros&&n.length>0&&r&&"."!==i[2])return e;{if(!o.leadingZeros&&n.length>0&&!r&&"."!==i[1])return e;let t=Number(i),a=""+t;return -1!==a.search(/[eE]/)||c?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===s?t:a===s?t:r&&a==="-"+s?t:e:n?s===a?t:r+s===a?t:e:i===a?t:i===r+a?t:e}}}}},41476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=n(r(57848)),i=r(26678);t.default=function(e,t){var r={};return e&&"string"==typeof e&&(0,o.default)(e,function(e,n){e&&n&&(r[(0,i.camel
303Case)(e,t)]=n)}),r}},26678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||o.test(u)||r.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(i,c)).replace(n,s))}},57848:function(e,t,r){var n=r(18139);function o(e,t){var r,o,i,a=null;if(!e||"string"!=typeof e)return a;for(var s=n(e),c="function"==typeof t,u=0,l=s.length;u<l;u++)o=(r=s[u]).property,i=r.value,c?t(o,i,r):i&&(a||(a={}),a[o]=i);return a}e.exports=o,e.exports.default=o},11440:function(e,t){var r,n,o;n=this,o=function(){function e(e,t,r){if(r){var n=document.createDocumentFragment(),o=!t.hasAttribute("viewBox")&&r.getAttribute("viewBox");o&&t.setAttribute("viewBox",o);for(var i=r.cloneNode(!0);i.childNodes.length;)n.appendChild(i.firstChild);e.appendChild(n)}}return function(t){var r,n=Object(t),o=window.top!==window.self;r="polyfill"in n?n.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&o;var i={},a=window.requestAnimationFrame||setTimeout,s=document.getElementsByTagName("use"),c=0;r&&function t(){for(var o=0;o<s.length;){var u=s[o],l=u.parentNode,f=function(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}(l),p=u.getAttribute("xlink:href")||u.getAttribute("href");if(!p&&n.attributeName&&(p=u.getAttribute(n.attributeName)),f&&p){if(r){if(!n.validate||n.validate(p,f,u)){l.removeChild(u);var d=p.split("#"),h=d.shift(),y=d.join("#");if(h.length){var m=i[h];m||((m=i[h]=new XMLHttpRequest).open("GET",h),m.send(),m._embeds=[]),m._embeds.push({parent:l,svg:f,id:y}),function(t){t.onreadystatechange=function(){if(4===t.readyState){var r=t._cachedDocument;r||((r=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map(function(n){var o=t._cachedTarget[n.id];o||(o=t._cachedTarget[n.id]=r.getElementById(n.id)),e(n.parent,n.svg,o)})}},t.onreadystatechange()}(m)}else e(l,f,document.getElementById(y))}else++o,++c}}else++o}(!s.length||s.length-c>0)&&a(t,67)}()}},void 0!==(r=(function(){return n.svg4everybody=o()}).apply(t,[]))&&(e.exports=r)},38228:function(e){e.exports=function(e,r,o){var i;let a;o=Object.assign({},t,o||{});let s=0,c=(i=o,(a={ms:.001,s:1,m:60,h:3600}).d=i.hoursPerDay*a.h,a.w=i.daysPerWeek*a.d,a.mth=i.daysPerYear/i.monthsPerYear*a.d,a.y=i.daysPerYear*a.d,a),u=e.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(null===u)throw Error(`The string [${e}] could not be parsed by timestring`);return(u.forEach(e=>{let t=e.match(/[0-9.]+/g)[0],r=e.match(/[a-z]+/g)[0];s+=t*c[n(r)]}),r)?s/c[n(r)]:s};let t={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},r={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function n(e){for(let t of Object.keys(r))if(r[t].indexOf(e)>-1)return t;throw Error(`The unit [${e}] is not supported by timestring`)}},38087:function(e,t){"use strict";t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},o=e.split(";"),i=(t||{}).decode||r,a=0;a<o.length;a++){var s=o[a],c=s.indexOf("=");if(!(c<0)){var u=s.substring(0,c).trim();if(void 0==n[u]){var l=s.substring(c+1,s.length).trim();'"'===l[0]&&(l=l.slice(1,-1)),n[u]=function(e,t){try{return t(e)}catch(t){return e}}(l,i)}}}return n},t.q=function(e,t,r){var i=r||{},a=i.encode||n;if("function"!=typeof a)throw TypeError("option encode is invalid");
303if(!o.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var c=e+"="+s;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(i.domain){if(!o.test(i.domain))throw TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");c+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=decodeURIComponent,n=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},34078:function(e,t,r){var n,o;o=function(){return function(){var e;return e="object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments),function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<e.length;n++){var o=e[n];if("string"!=typeof o)throw TypeError("Url must be a string. Received "+o);""!==o&&(n>0&&(o=o.replace(/^[\/]+/,"")),o=n<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}(e)}},e.exports?e.exports=o():void 0===(n=o.call(t,r,t,e))||(e.exports=n)},71739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},42473:function(e){"use strict";e.exports=function(){}},18796:function(){},95660:function(){},47165:function(){},17061:function(e,t,r){var n=r(18698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o,i,s=Object.create((t&&t.prototype instanceof y?t:y).prototype);return a(s,"_invoke",{value:(o=new P(n||[]),i="suspendedStart",function(t,n){if("executing"===i)throw Error("Generator is already running");if("completed"===i){if("throw"===t)throw n;return A()}for(o.method=t,o.arg=n;;){var a=o.delegate;if(a){var s=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,h)}(a,o);if(s){if(s===h)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var c=d(e,r,o);if("normal"===c.type){if(i=o.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i="completed",o.method="throw",o.arg=c.arg)}})}),s}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function y(){}function m(){}function g(){}var v={};f(v,c,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==r&&i.call(w,c)&&(v=w);var O=g.prototype=y.prototype=Object.create(v);function S(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){var r;a(this,"_invoke",{value:function(o,a){function s(){return new t(function(r,s){!function r(o,a,s,c){var u=d(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,s,c)},function(e){r("throw",e,s,c)}):t.resolve(f).then(function(e){l.value=e,s(l)},function(e){return r("throw",e,s,c)})}c(u.arg)}(o,a,r,s)})}return r=r?r.then(s,s):s()}})}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[c];if(t)return t.call(e);
303if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return m.prototype=g,a(O,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=f(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,f(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(j.prototype),f(j.prototype,u,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(O),f(O,l,"Generator"),f(O,c,function(){return this}),f(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=E,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(_),!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 r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("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 r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,r){var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},83878:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{Z:function(){return n}})},15671:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},43144:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83997);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(83997);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
303for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},94578:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(89611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},25267:function(e,t,r){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return n}})},89611:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:function(){return n}})},83997:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71002);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},71002:function(e,t,r){"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})(e)}r.d(t,{Z:function(){return n}})},81563:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}r.d(t,{Z:function(){return o}})},90512:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(n&&(n+=" "),n+=t);return n}},25935:function(e,t,r){"use strict";r.d(t,{AG:function(){return o}});var n=r(30488);n.domToReact;var o=n.htmlToDOM;n.attributesToProps,n.Comment,n.Element,n.ProcessingInstruction,n.Text,t.ZP=n},55448:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}});var n=r(8307);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let a={square:.908,landscape:.667,letterbox:.425,portrait:1.299,video:.5625},s=Object.freeze(i(i({},a),{},{landscape_thumbnail:a.landscape,portrait_thumbnail:a.portrait,square_thumbnail:a.square,letterbox_image:a.letterbox,dynamic:null}))},30899:function(e,t,r){"use strict";let n=(0,r(67294).createContext)({adSettings:{},newsletterSettings:{},recaptchaEnterpriseSettings:{},recaptchaSettings:{}});t.Z=n},23887:function(e,t,r){"use strict";let n=r(67294).createContext({});t.Z=n},55444:function(e,t,r){"use strict";let n=r(67294).createContext({inputId:null,feedbackId:null,inverted:!1,errors:{},validateInput:null,mobileSquareBorders:!1,defaultValues:{},onChange:null,reactBeautifulDnd:void 0,reactEasyCrop:void 0,formRef:null});t.Z=n},90738:function(e,t,r){"use strict";let n=r(67294).createContext({inputId:null,feedbackId:null});t.Z=n},84920:function(e,t,r){"use strict";r.d(t,{k:function(){return n}});let n=(0,r(67294).createContext)(null)},75119:function(e,t,r){"use strict";let n=(0,r(67294).createContext)({signUpUrl:""});t.Z=n},33385:function(e,t,r){"use strict";let n=(0,r(67294).createContext)({hasSiteHeader:!1,hasAnchorNav:!1});t.Z=n},74978:function(e,t,r){"use strict";let n=(0,r(67294).createContext)({});t.Z=n},11179:function(e,t,r){"use strict";var n=r(67294),o=r(5032),i=r(77107);t.Z=()=>{let e=["xs","sm","md","lg"],{grid:t}=(0,i.Z)(),{0:r,1:a}
303=(0,n.useState)();return(0,n.useEffect)(()=>{let r=e.slice(1).map(e=>({bp:e,query:window.matchMedia(`(min-width: ${t[e]}px)`)})),n=(0,o.Z)({passive:!0}),i=()=>{a(r.reduce((e,t)=>{let{query:r,bp:n}=t;return r.matches?n:e},e[0]))};return r.forEach(e=>{let{query:t}=e;if(!t.addEventListener&&t.addListener){t.addListener(i);return}t.addEventListener&&t.addEventListener("change",i,n)}),i(),()=>{r.forEach(e=>{let{query:t}=e;t.removeEventListener("change",i)})}},[]),{currentBreakpoint:r,isAboveBreakpoint:function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?e.indexOf(t)<=e.indexOf(r):n},isBelowBreakpoint:function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?e.indexOf(t)>=e.indexOf(r):n}}}},60441:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(67294);r(64687);var o=function(e){window.performance.getEntriesByName(e,"mark").some(function(t){return t.name===e})||window.performance.mark(e)},i=function(e){window.performance.mark("time-to-waitForConsentChange-init"),window.__tcfapi("addEventListener",2,function(){e(),window.performance.mark("time-to-waitForConsentChange-callback"),window.performance.measure("time-to-waitForConsentChange-init","time-to-waitForConsentChange-callback")})},a={},s=function(e){window.performance.mark("time-to-getSourcePointCustomVendors-init"),a.sourcePointVendors=e.consentedVendors},c=function(e){window.performance.mark("time-to-setConsentedPurposes-init"),a.consentedPurposes=e.consentedPurposes},u=function(e,t,r,n){var i;return o("time-to-checkPurposes-init"),window.__tcfapi("addEventListener",2,function(o,u){var l=o.purpose,f=o.vendor,p=o.eventStatus;return r&&window.__tcfapi("getCustomVendorConsents",2,s),n&&window.__tcfapi("getCustomVendorConsents",2,c),u&&["useractioncomplete","tcloaded"].includes(p)&&(a.siteConsents=l.consents,a.vendorConsents=f.consents,i=[!e||e.every(function(e){return a.siteConsents[e]}),!t||t.every(function(e){return a.vendorConsents[e]}),!r||r.every(function(e){return a.sourcePointVendors.some(function(t){return t._id===e})}),!n||n.every(function(e){var t;return null===(t=a.consentedPurposes)||void 0===t?void 0:t.find(function(t){return t.name===e})})].every(function(e){return e})),i}),i},l=function(e){var t=new CustomEvent("consent-checker.listener-events-before-reload",{detail:{hasKeySignalled:e}});window.dispatchEvent(t)},f=function(){document.addEventListener("DOMContentLoaded",function(){return l({})})};window.consentCheckerEventData={},function(){if(window.__tcfapi){f();var e,t=function(t,r){if(!e){e=t.tcString;return}r&&"useractioncomplete"===t.eventStatus&&e!==t.tcString&&new Promise(function(e){var t=window.consentCheckerEventData,r=0===Object.keys(t).length,n=Object.values(t).every(function(e){return!0===e});e(!r&&n)}).then(function(e){e&&window.location.reload()})},r=function(t,r){r&&"tcloaded"===t.eventStatus&&(e=t.tcString)},n=document.querySelector("[data-cmp='true']");try{n.addEventListener("click",function(){window.__tcfapi("addEventListener",2,t),window.__tcfapi("addEventListener",2,r)})}catch(e){}}}();var p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],{0:o,1:a}=(0,n.useState)();return(0,n.useEffect)(()=>{i(()=>a(u(e,t,r)))},[]),o}},96160:function(e,t,r){"use strict";var n=r(67294),o=r(79804);t.Z=()=>(0,n.useContext)(o.Z)??void 0},77107:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67294),o=r(42473);r(6776).Z;let i=r(66295);var a=r(74978),s=()=>{let{tokens:e=i}=(0,n.useContext)(a.Z);return o(!!e,"Theme-specific design tokens cannot be loaded as no theme has been set via the ThemeProvider."),e||i}},20181:function(e,t,r){"use strict";r.d(t,{IH:function(){return c},N1:function(){return i},YM:function(){return s},sK:function(){return a}});var n=r(67294),o=r(23887);let i="FEATURE_SAVE_ON_CARD",a="FEATURE_IMAGE_FORMAT_AVIF",s="FEATURE_SEARCH_HISTORY",c="FEATURE_QUERY_COMPLETION";t.ZP=e=>{let t=(0,n.useContext)(o.Z);if(!t)throw Error("useFeatureFlag must be used within a FeatureFlagsProvi
303der");return t[e]}},9445:function(e,t,r){"use strict";var n=r(67294),o=r(31654);t.Z=e=>{let{purposes:t=[],vendorIds:r=[]}=e,{0:i,1:a}=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(async()=>{let e=await (0,o.onConsentReady)();a((0,o.hasRequisiteConsent)({tcdata:e,purposes:t,vendorIds:r}))})()},[]),i}},59353:function(e,t,r){"use strict";var n=r(11179);t.Z=()=>{let{isAboveBreakpoint:e}=(0,n.Z)();return e("lg",!0)}},58500:function(e,t,r){"use strict";var n=r(11179);t.Z=()=>{let{isBelowBreakpoint:e}=(0,n.Z)();return e("sm",!0)}},16380:function(e,t,r){"use strict";var n=r(67294);t.Z=()=>{let{0:e,1:t}=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=r=>{("Tab"===r.key||9===r.keyCode)&&(t(!0),window.removeEventListener("keydown",e))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]),e}},39306:function(e,t,r){"use strict";var n=r(67294);t.Z=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,n.useEffect)(()=>{let r=r=>{let{target:n}=r;e?.current&&(e.current===n||e.current.contains(n)||t())};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},r)}},22646:function(e,t,r){"use strict";var n=r(67294),o=r(6346);t.Z=()=>(0,n.useContext)(o.Z)},23258:function(e,t,r){"use strict";var n=r(67294);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,n.useRef)([]);if(!Array.isArray(e))throw Error(`The useRefs hooks must be given an array, got "${typeof e}".`);return r.current=(0,n.useMemo)(()=>e.map((e,t)=>r.current[t]??(0,n.createRef)()),t),r?.current||[]}},46307:function(e,t,r){"use strict";var n=r(4730),o=r(67294);let i=["src","onLoad","onError","dedupeScripts","dedupeEvents"];t.Z=e=>{let{src:t,onLoad:r,onError:a,dedupeScripts:s=!0,dedupeEvents:c=!0}=e,u=(0,n.Z)(e,i),{0:l,1:f}=(0,o.useState)(!!t),{0:p,1:d}=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(!t)return;f(!0),d(null);let e=document.querySelector(`script[src="${t}"]`);e&&s||(e=document.createElement("script"),Object.keys(u).forEach(t=>{let r=e,n=u[t];void 0===r[t]?e.setAttribute(t,String(n)):r[t]=n}));let n=e=>{f(!1),d(e),a&&a(e)},o=()=>{f(!1),r&&r(),e.removeEventListener("error",n)},i=e.getAttribute("hasLoadEventListener");return i&&(!i||c)||(e.addEventListener("error",n,{once:!0}),e.addEventListener("load",o,{once:!0}),e.setAttribute("hasLoadEventListener","true")),e.setAttribute("src",t),document.head.appendChild(e),()=>{e.removeEventListener("load",o),e.removeEventListener("error",n),e.removeAttribute("hasLoadEventListener")}},[t]),[l,p]}},19378:function(e,t,r){"use strict";r.d(t,{UX:function(){return n},hP:function(){return c},kL:function(){return s},yx:function(){return a}});let n=6,o=e=>e.trim().toLowerCase(),i=(e,t)=>{let r=new Set;return e.map(e=>e.trim()).filter(e=>!!e).filter(e=>{let t=o(e);return!r.has(t)&&(r.add(t),!0)}).slice(0,t)},a=e=>`search-history-${e}`,s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;try{if(!window.localStorage)return[];let r=a(e),n=window.localStorage.getItem(r);if(!n)return[];let o=JSON.parse(n),s=Array.isArray(o)?o.filter(e=>"string"==typeof e):[],c=i(s,t);return window.localStorage.setItem(r,JSON.stringify(c)),c}catch{return[]}},c=e=>{let{name:t,query:r,maxHistoryItems:s=n}=e,c=r.trim();if(!c)return[];try{if(!window.localStorage)return[];let e=a(t),r=window.localStorage.getItem(e),n=r?JSON.parse(r):[],u=Array.isArray(n)?n.filter(e=>"string"==typeof e):[],l=o(c),f=i([c,...u.filter(e=>o(e)!==l)],s);return window.localStorage.setItem(e,JSON.stringify(f)),f}catch{return[]}}},71738:function(e,t){"use strict";t.Z=(e,t)=>t?`${t}/${e}`:e},52221:function(e,t){"use strict";t.Z=e=>e.split(" ").map(e=>e[0]?e[0].toUpperCase()+e.slice(1):e).join(" ")},5275:function(e,t,r){"use strict";r.d(t,{SESSION_STORAGE_ITEM_NAMES:function(){return n}}),Object.freeze({PHABLET:544,TABLET:768,DESKTOP:992});let n={CLICK_TO_PLAY_CONSENTED:"ctpConsented"}},17679:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e;return()=>{let e=t;return t+=1,e}}},60614:function(e,t,r){"use strict";var n=r(8307);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
303t%2?o(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.Z=e=>Object.keys(e).filter(t=>{let r=e[t];if(!t.startsWith("data-")||!0===r||!1===r||null==r)return!1;if("undefined"!=typeof document&&document.createElement("div").setAttribute(t,""),"string"==typeof r||"number"==typeof r)return!0;throw Error(`Data attribute ${t} has nonsensical value ${r}`)}).reduce((t,r)=>i(i({},t),{},{[r]:e[r]}),{})},26335:function(e,t){"use strict";var r=void 0;t.Z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];t&&clearTimeout(t),t=setTimeout(()=>{e.apply(r,i)},n)}}},5032:function(e,t,r){"use strict";var n=r(8307);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let i=()=>{let e=!1;try{let t=Object.defineProperty({},"passive",{get(){e=!0}}),r=()=>{};window.addEventListener("testPassive",r,t),window.removeEventListener("testPassive",r,t)}catch{}return e};t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e);return i()||delete t.passive,t}},70770:function(e,t){"use strict";t.Z=e=>{if("string"!=typeof e)return e;let[t=""]=e.split("?");return t}},87586:function(e,t){"use strict";t.Z=function(e){let t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=0,s=()=>{o=0,a=+new Date,n=e.apply(t,r),t=null,r=null};return function(){t=this;for(var e=arguments.length,c=Array(e),u=0;u<e;u++)c[u]=arguments[u];r=c;let l=Date.now()-a;return o||(l>=i?s():o=setTimeout(s,i-l)),n}}},8307:function(e,t,r){"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})(e)}function o(e,t,r){var o;return o=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===n(o)?o:String(o))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return o}})},4730:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:function(){return n}})},22120:function(e,t,r){"use strict";r.d(t,{a3:function(){return N},Db:function(){return w},$G:function(){return C}});var n,o=r(67294);function i(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r(71739),Object.create(null);var a={};function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&a[t[0]]||("string"==typeof t[0]&&(a[t[0]]=new Date),i.apply(void 0,t))}var c=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function u(e,t,r){e.loadNamespaces(t,c(e,r))}function l(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}
303),e.loadLanguages(t,c(e,n))}var f=r(4942),p=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},h=function(e){return d[e]};function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(p,h)}},v=r(15671),b=r(43144),w={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=m(m({},g),e)}(e.options.react),n=e}},O=(0,o.createContext)(),S=function(){function e(){(0,v.Z)(this,e),this.usedNamespaces={}}return(0,b.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),j=r(83878),x=r(81563),_=r(25267),P=r(71002);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){(0,f.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=function(e,t){var r=(0,o.useRef)();return(0,o.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function C(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.i18n,a=(0,o.useContext)(O)||{},c=a.i18n,f=a.defaultNS,p=i||c||n;if(p&&!p.reportNamespaces&&(p.reportNamespaces=new S),!p){s("You will need to pass in an i18next instance by using initReactI18next");var d=function(e,t){return"string"==typeof t?t:t&&"object"===(0,P.Z)(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},h=[d,{},!1];return h.t=d,h.i18n={},h.ready=!1,h}p.options.react&&void 0!==p.options.react.wait&&s("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var y=A(A(A({},g),p.options.react),r),m=y.useSuspense,v=y.keyPrefix,b=e||f||p.options&&p.options.defaultNS;b="string"==typeof b?[b]:b||["translation"],p.reportNamespaces.addUsedNamespaces&&p.reportNamespaces.addUsedNamespaces(b);var w=(p.isInitialized||p.initializedStoreOnce)&&b.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
303isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!a(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(n,e)&&(!o||a(i,e)))}(e,t,r):(s("i18n.languages were undefined or empty",t.languages),!0)}(e,p,y)});function E(){return p.getFixedT(r.lng||null,"fallback"===y.nsMode?b:b[0],v)}var C=(t=(0,o.useState)(E),(0,j.Z)(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{for(i=(r=r.call(e)).next;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,2)||(0,x.Z)(t,2)||(0,_.Z)()),N=C[0],T=C[1],I=b.join();r.lng&&(I="".concat(r.lng).concat(I));var R=k(I),L=(0,o.useRef)(!0);(0,o.useEffect)(function(){var e=y.bindI18n,t=y.bindI18nStore;function n(){L.current&&T(E)}return L.current=!0,w||m||(r.lng?l(p,r.lng,b,function(){L.current&&T(E)}):u(p,b,function(){L.current&&T(E)})),w&&R&&R!==I&&L.current&&T(E),e&&p&&p.on(e,n),t&&p&&p.store.on(t,n),function(){L.current=!1,e&&p&&e.split(" ").forEach(function(e){return p.off(e,n)}),t&&p&&t.split(" ").forEach(function(e){return p.store.off(e,n)})}},[p,I]);var D=(0,o.useRef)(!0);(0,o.useEffect)(function(){L.current&&!D.current&&T(E),D.current=!1},[p,v]);var M=[N,p,w];if(M.t=N,M.i18n=p,M.ready=w,w||!w&&!m)return M;throw new Promise(function(e){r.lng?l(p,r.lng,b,function(){return e()}):u(p,b,function(){return e()})})}function N(e){var t=e.i18n,r=e.defaultNS,n=e.children,i=(0,o.useMemo)(function(){return{i18n:t,defaultNS:r}},[t,r]);return(0,o.createElement)(O.Provider,{value:i},n)}},66295:function(e){"use strict";e.exports=JSON.parse('{"colors":{"highlightLight":"rgba(33, 189, 255, 1)","highlightRegular":"rgba(0, 123, 182, 1)","highlightDark":"rgba(0, 89, 130, 1)","clickableLight":"rgba(255, 83, 61, 1)","clickableRegular":"rgba(214, 61, 43, 1)","clickableDark":"rgba(163, 46, 33, 1)","interactiveLight":"rgba(48, 184, 154, 1)","interactiveRegular":"rgba(34, 133, 111, 1)","interactiveDark":"rgba(21, 82, 69, 1)","commercialLight":"rgba(162, 151, 200, 1)","commercialRegular":"rgba(112, 101, 160, 1)","commercialDark":"rgba(72, 61, 120, 1)","displayLight":null,"displayRegular":null,"displayDark":null,"baseWhite":"rgba(255, 255, 255, 1)","baseGrey":"rgba(15, 44, 59, 1)","baseBlack":"rgba(0, 0, 0, 1)","backgroundExtraLight":"rgba(243, 244, 245, 1)","backgroundLight":"rgba(231, 233, 235, 1)","backgroundRegular":"rgba(207, 213, 216, 1)","backgroundDark":"rgba(159, 171, 177, 1)","backgroundExtraDark":"rgba(104, 121, 130, 1)","socialApple":"rgba(0, 0, 0, 1)","socialFacebook":"rgba(59, 89, 153, 1)","socialTwitter":"rgba(0, 0, 0, 1)","socialPinterest":"rgba(189, 8, 28, 1)","socialInstagram":"rgba(225, 48, 108, 1)","socialGoogleBorder":"rgba(136, 136, 136, 1)","socialTumblr":"rgba(53, 70, 92, 1)","socialReddit":"rgba(95, 153, 207, 1)","socialBlogger":"rgba(245, 125, 0, 1)","socialVkontakt":"rgba(69, 102, 142, 1)","socialWhatsapp":"rgba(18, 140, 126, 1)","socialYoutube":"rgba(255, 0, 0, 1)","socialRss":"rgba(242, 101, 34, 1)","socialEmail":"rgba(214, 61, 43, 1)","formFocus":"rgba(33, 157, 255, 1)","formWarningRegular":"rgba(204, 0, 0, 1)","formWarningLight":"rgba(249, 229, 229, 1)","formWarningReversed":"rgba(252, 111, 111, 1)","formSuccessRegular":"rgba(25, 105, 54, 1)","formSuccessLight":"rgba(227, 244, 227, 1)","formInfoRegular":"rgba(49, 112, 143, 1)","formInfoLight":"rgba(217, 237, 247, 1)","formReactionsDark":"rgba(218, 167, 13, 1)","swatchBlack":"rgba(0, 0, 0, 1)","swatchBlue":"rgba(151, 203, 251, 1)","swatchGreen":"rgba(119, 194, 61, 1)","swatchOrange":"rgba(246, 135, 0, 1)","swatchPeach":"rgba(255, 176, 124, 1)","swatchPink":"rgba(245, 127, 175, 1)","swatchPurple":"rgba(187, 99, 250, 1)","swatchRed":"rgba(249, 70, 70, 1)","swatchWhite":"rgba(255, 255, 255, 1)","swatchYellow":"rgba(255, 232, 29, 1)","swatchBlueGreen":"rgba(80, 227, 194, 1)","swatchBronze":"rgba(187, 119, 33, 1)","swatchGolde
303n":"rgba(225, 176, 58, 1)","swatchSilver":"rgba(186, 186, 186, 1)","swatchVariegation":"rgba(255, 255, 255, 1)","starLight":"rgba(255, 218, 65, 1)","starRegular":"rgba(244, 191, 31, 1)","starDark":"rgba(218, 167, 13, 1)"},"spacingUnits":{"xxs":"5px","xs":"10px","sm":"15px","md":"20px","lg":"30px","xl":"40px","xxl":"60px"},"grid":{"xs":0,"sm":544,"md":768,"lg":992}}')},83466:function(e){"use strict";e.exports=JSON.parse('{"hash":"a70b33c1148f85407b9692364b1322bc","icons":{"arrow-circle":{"groupName":"arrows","overrides":[],"aspectRatio":1},"arrow-light":{"groupName":"arrows","overrides":[],"aspectRatio":1},"arrow":{"groupName":"arrows","overrides":[],"aspectRatio":1},"caret":{"groupName":"arrows","overrides":["bmp-elle-theme","bmp-mojegotowanie-theme","bmp-nationalgeographic-theme","bmp-polki-theme","im-gw-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"chevron-shallow":{"groupName":"arrows","overrides":[],"aspectRatio":1},"chevron":{"groupName":"arrows","overrides":["bmp-elle-theme","bmp-mojegotowanie-theme","bmp-polki-theme"],"aspectRatio":1},"expand":{"groupName":"arrows","overrides":[],"aspectRatio":0.96},"email-inbox":{"groupName":"authentication","overrides":[],"aspectRatio":0.8888888888888888},"acorn-tv":{"groupName":"broadcast","overrides":[],"aspectRatio":0.1733102253032929},"amazon-prime-video":{"groupName":"broadcast","overrides":[],"aspectRatio":0.30864197530864196},"apple-itunes":{"groupName":"broadcast","overrides":[],"aspectRatio":0.20202020202020202},"apple-tv-plus":{"groupName":"broadcast","overrides":[],"aspectRatio":0.3787878787878788},"bbc-iplayer":{"groupName":"broadcast","overrides":[],"aspectRatio":0.29411764705882354},"britbox":{"groupName":"broadcast","overrides":[],"aspectRatio":0.26420079260237783},"c4-all4":{"groupName":"broadcast","overrides":[],"aspectRatio":1.3333333333333333},"dazn-uk":{"groupName":"broadcast","overrides":[],"aspectRatio":0.9941176470588236},"discovery-plus-uk":{"groupName":"broadcast","overrides":[],"aspectRatio":0.29411764705882354},"disney-plus":{"groupName":"broadcast","overrides":[],"aspectRatio":0.5468579909211029},"google-play-movies":{"groupName":"broadcast","overrides":[],"aspectRatio":0.20202020202020202},"hayu":{"groupName":"broadcast","overrides":[],"aspectRatio":0.3929273084479371},"hbo-max-uk":{"groupName":"broadcast","overrides":[],"aspectRatio":0.7213709677419354},"imdb-square":{"groupName":"broadcast","overrides":[],"aspectRatio":1},"imdb":{"groupName":"broadcast","overrides":[],"aspectRatio":0.5040521739130435},"itvx-uk":{"groupName":"broadcast","overrides":[],"aspectRatio":0.4},"my5":{"groupName":"broadcast","overrides":[],"aspectRatio":1.4001411432604094},"netflix":{"groupName":"broadcast","overrides":[],"aspectRatio":0.2684563758389262},"now-tv":{"groupName":"broadcast","overrides":[],"aspectRatio":0.3210594315245478},"paramount-plus-tv":{"groupName":"broadcast","overrides":[],"aspectRatio":0.29411764705882354},"rakuten-tv":{"groupName":"broadcast","overrides":[],"aspectRatio":0.22587968217934165},"rotten-tomatoes":{"groupName":"broadcast","overrides":[],"aspectRatio":1.053384642659742},"sky-go":{"groupName":"broadcast","overrides":[],"aspectRatio":0.3389830508474576},"sky-store-uk":{"groupName":"broadcast","overrides":[],"aspectRatio":0.2432103769760843},"starz-play":{"groupName":"broadcast","overrides":[],"aspectRatio":0.14549653579676675},"stv-player":{"groupName":"broadcast","overrides":[],"aspectRatio":0.3389830508474576},"uktv-play":{"groupName":"broadcast","overrides":[],"aspectRatio":1},"virgin-tv-go":{"groupName":"broadcast","overrides":[],"aspectRatio":0.5847953216374269},"address-book":{"groupName":"core","overrides":[],"aspectRatio":1.1428571428571428},"audio-microphone":{"groupName":"core","overrides":[],"aspectRatio":1},"bookmark-fill":{"groupName":"core","overrides":[],"aspectRatio":1},"bookmark":{"groupName":"core","overrides":[],"aspectRatio":1},"calendar":{"groupName":"core","overrides":[],"aspectRatio":1.0555555555555556},"camera":{"groupName":"core","overrides":["bmp-elle-theme","bmp-glamour-theme","bmp-mojegotowanie-theme","bmp-polki-theme","bmp-viva-theme"],"aspectRatio":1},"caption":{"groupName":"core","overrides":[],"aspectRatio":1},"clock-hands":{"groupName":"core","overrides":[],"aspectRatio":1},"clock":{"groupName":"core","overrides":[],"aspectRatio":1},"cog":{"groupName":"core","overrides":[],"aspectRatio":1},"credit-card":{"groupName":"core","overrides":[],"aspectRatio":0.8},"cross":{"groupName":"core","overrides":[],"aspectRatio":1},"directions":{"groupName":"core","overrides":[],"aspectRatio":0.8333333333333334},"door":{"groupName":"core","overrides":[],"aspectRatio":1},"dot-menu":{"groupName":"core","overrides":[],"aspectRatio":4},"enlarge":{"groupName":"core","overrides":[],"aspectRatio":1},"exclamation":{"groupName":"core","overrides":[],"aspectRatio":5},"family":{"groupName":"core","overrides":[],"aspectRatio":0.8888888888888888},"grab":{"groupName":"core","overrides":[],"aspectRatio":1.4},"heart":{"groupName":"core","overrides":[],"aspectRatio":0.9130434782608695},"helper":{"groupName":"core","overrides":[],"aspectRatio":1},"history":{"groupName":"core","overrides":[],"aspectRatio":1},"home":{"groupName":"core","overrides":[],"aspectRatio":0.8571428571428571},"im-logo":{"groupName":"core","overrides":[],"aspectRatio":0.3902439024390244},"info-circle":{"groupName":"core","overrides":[],"aspectRatio":1},"info":{"groupName":"core","overrides":[],"aspectRatio":2.3333333333333335},"kebab-h":{"groupName":"core","overrides":[],"aspectRatio":0.22580645161290322},"key":{"groupName":"core","overrides":[],"aspectRatio":1},"live":{"groupName":"core","overrides":[],"aspectRatio":1},"loading":{"groupName":"core","overrides":[],"aspectRatio":1},"location":{"groupName":"core","overrides":[],"aspectRatio":1.2},"lock":{"groupName":"core","overrides":[],"aspectRatio":1},"menu-close":{"groupName":"core","overrides":["bmp-elle-theme","bmp-mojegotowanie-theme","bmp-viva-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"menu":{"groupName":"core","overrides":["bmp-elle-theme","bmp-glamour-theme","bmp-mamotoja-theme","bmp-mojegotowanie-theme","bmp-nationalgeographic-theme","bmp-polki-theme","bmp-viva-theme","bmp-wizaz-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"minus":{"groupName":"core","overrides":[],"aspectRatio":0.3333333333333333},"note":{"groupName":"core","overrides":[],"aspectRatio":1.36},"notification":{"groupName":"core","overrides":[],"aspectRatio":1},"padlock":{"groupName":"core","overrides":[],"aspectRatio":1.2857142857142858},"pencil":{"groupName":"core","overrides":[],"aspectRatio":1.0625},"person":{"groupName":"core","overrides":["im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"phone":{"groupName":"core","overrides":[],"aspectRatio":1},"photo-camera":{"groupName":"core","overrides":[],"aspectRatio":1},"placeholder":{"groupName":"core","overrides":[],"aspectRatio":0.6012998375203099},"plus":{"groupName":"core","overrides":[],"aspectRatio":1},"print":{"groupName":"core","overrides":[],"aspectRatio":0.9},"profile":{"groupName":"core","overrides":["bmp-elle-theme","bmp-mamotoja-theme","bmp-mojegotowanie-theme","bmp-nationalgeographic-theme","bmp-polki-theme","bmp-viva-theme","bmp-wizaz-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":0.85},"pullquote":{"groupName":"core","overrides":["bmp-elle-theme","bmp-glamour-theme","bmp-mojegotowanie-theme","bmp-nationalgeographic-theme","bmp-polki-theme","bmp-viva-theme","bmp-wizaz-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":0.7142857142857143},"recommended":{"groupName":"core","overrides":["im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"record":{"groupName":"core","overrides":[],"aspectRatio":1},"search":{"groupName":"core","overrides":["bmp-elle-theme","bmp-polki-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"snowflake":{"groupName":"core","overrides":[],"aspectRatio":1},"speech-bubble":{"groupName":"core","overrides":[],"aspectRatio":0.5357142857142857},"stream":{"groupName":"core","overrides":[],"aspectRatio":1},"tick":{"groupName":"core","overrides":[],"aspectRatio":0.7368421052631579},"tune":{"groupName":"core","overrides":[],"aspectRatio":1},"unlocked":{"groupName":"core","overrides":[],"aspectRatio":1},"wifi":{"groupName":"core","overrides":[],"aspectRatio":1},"bin":{"groupName":"facilities","overrides":[],"aspectRatio":1},"bus":{"groupName":"facilities","overrides":[],"aspectRatio":1.25},"coffee-cup":{"groupName":"facilities","overrides":[],"aspectRatio":0.82352941176470
30358},"dog-on-lead":{"groupName":"facilities","overrides":[],"aspectRatio":1.1176470588235294},"flower":{"groupName":"facilities","overrides":[],"aspectRatio":1},"picnic-area":{"groupName":"facilities","overrides":[],"aspectRatio":0.7894736842105263},"wheelchair":{"groupName":"facilities","overrides":[],"aspectRatio":1},"apple":{"groupName":"food","overrides":[],"aspectRatio":1.2307692307692308},"carrot":{"groupName":"food","overrides":[],"aspectRatio":0.96},"chefs-hat":{"groupName":"food","overrides":["im-olive-theme"],"aspectRatio":1},"cupboard":{"groupName":"food","overrides":[],"aspectRatio":1.2},"cutlery":{"groupName":"food","overrides":["im-olive-theme"],"aspectRatio":1},"serves-filled":{"groupName":"food","overrides":[],"aspectRatio":1},"serves":{"groupName":"food","overrides":[],"aspectRatio":1},"wheat":{"groupName":"food","overrides":[],"aspectRatio":1.6},"letter-p":{"groupName":"letters","overrides":[],"aspectRatio":1.5454545454545454},"letter-s":{"groupName":"letters","overrides":[],"aspectRatio":1.4545454545454546},"letter-t":{"groupName":"letters","overrides":[],"aspectRatio":1.3333333333333333},"letter-v":{"groupName":"letters","overrides":[],"aspectRatio":1},"letter-ve":{"groupName":"letters","overrides":[],"aspectRatio":1},"viva-dot":{"groupName":"magazine","overrides":["bmp-viva-theme"],"aspectRatio":1},"viva-letter-white":{"groupName":"magazine","overrides":["bmp-viva-theme"],"aspectRatio":1},"viva-letter":{"groupName":"magazine","overrides":["bmp-viva-theme"],"aspectRatio":1.0333333333333334},"microphone":{"groupName":"media","overrides":["bmp-elle-theme","bmp-glamour-theme","bmp-mojegotowanie-theme","bmp-polki-theme","bmp-viva-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":1},"pause":{"groupName":"media","overrides":[],"aspectRatio":1},"play":{"groupName":"media","overrides":["bmp-elle-theme","bmp-glamour-theme","bmp-mojegotowanie-theme","bmp-polki-theme","bmp-viva-theme"],"aspectRatio":1},"bee-alt":{"groupName":"nature","overrides":[],"aspectRatio":1},"bee":{"groupName":"nature","overrides":[],"aspectRatio":0.96},"bird":{"groupName":"nature","overrides":[],"aspectRatio":1},"butterfly":{"groupName":"nature","overrides":[],"aspectRatio":1},"cat":{"groupName":"nature","overrides":[],"aspectRatio":1},"dog":{"groupName":"nature","overrides":[],"aspectRatio":1},"flower-alt-2":{"groupName":"nature","overrides":[],"aspectRatio":1},"flower-alt":{"groupName":"nature","overrides":[],"aspectRatio":0.96},"frost":{"groupName":"nature","overrides":[],"aspectRatio":0.96},"horse":{"groupName":"nature","overrides":[],"aspectRatio":1},"ladybird":{"groupName":"nature","overrides":[],"aspectRatio":1},"leaf":{"groupName":"nature","overrides":[],"aspectRatio":0.96},"person-alt":{"groupName":"nature","overrides":[],"aspectRatio":1},"sheep":{"groupName":"nature","overrides":[],"aspectRatio":1},"collections":{"groupName":"placeholders","overrides":["im-bbcgoodfood-theme","im-easycook-theme"],"aspectRatio":1},"no-img":{"groupName":"placeholders","overrides":["im-bbcgoodfood-theme","im-easycook-theme"],"aspectRatio":1},"user-content":{"groupName":"placeholders","overrides":["im-bbcgoodfood-theme","im-easycook-theme"],"aspectRatio":1},"aspect":{"groupName":"raw","overrides":[],"aspectRatio":1},"depth":{"groupName":"raw","overrides":[],"aspectRatio":1},"green-ring-with-checkmark":{"groupName":"raw","overrides":[],"aspectRatio":1},"neutral-other-pollinators":{"groupName":"raw","overrides":[],"aspectRatio":1},"plant-aspect":{"groupName":"raw","overrides":[],"aspectRatio":1},"plant-depth":{"groupName":"raw","overrides":[],"aspectRatio":1.0444444444444445},"plant-dimensions":{"groupName":"raw","overrides":[],"aspectRatio":0.9107142857142857},"plant-position":{"groupName":"raw","overrides":[],"aspectRatio":0.7777777777777778},"plant-spacing":{"groupName":"raw","overrides":[],"aspectRatio":0.4915254237288136},"plant-yield":{"groupName":"raw","overrides":[],"aspectRatio":0.8305084745762712},"position":{"groupName":"raw","overrides":[],"aspectRatio":1},"red-ring-with-cross":{"groupName":"raw","overrides":[],"aspectRatio":1},"shade":{"groupName":"raw","overrides":[],"aspectRatio":1},"size":{"groupName":"raw","overrides":[],"aspectRatio":1},"soil":{"groupName":"raw","overrides":[],"aspectRatio":1},"spacing":{"groupName":"raw","overrides":[],"aspectRatio":1},"sun":{"groupName":"raw","overrides":[],"aspectRatio":1},"toxic-livestock":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-bees":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-beneficial-insects":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-birds":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-butterflies-moths":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-green-tick":{"groupName":"raw","overrides":[],"aspectRatio":1},"wildlife-other-pollinators":{"groupName":"raw","overrides":[],"aspectRatio":1},"yield":{"groupName":"raw","overrides":[],"aspectRatio":1},"circle":{"groupName":"shapes","overrides":[],"aspectRatio":1},"dialog":{"groupName":"shapes","overrides":[],"aspectRatio":1.206896551724138},"half-circle":{"groupName":"shapes","overrides":[],"aspectRatio":1},"ring-thin":{"groupName":"shapes","overrides":[],"aspectRatio":1},"ring":{"groupName":"shapes","overrides":[],"aspectRatio":1},"thumbs-up-fill":{"groupName":"shapes","overrides":[],"aspectRatio":0.925},"thumbs-up-outline":{"groupName":"shapes","overrides":[],"aspectRatio":0.925},"triangle":{"groupName":"shapes","overrides":[],"aspectRatio":1},"blogger":{"groupName":"social","overrides":[],"aspectRatio":1.0454545454545454},"chat":{"groupName":"social","overrides":[],"aspectRatio":0.92},"email":{"groupName":"social","overrides":[],"aspectRatio":0.7},"facebook":{"groupName":"social","overrides":[],"aspectRatio":2.0714285714285716},"instagram":{"groupName":"social","overrides":[],"aspectRatio":0.9999666666666667},"mail":{"groupName":"social","overrides":[],"aspectRatio":0.8},"pinterest-complete":{"groupName":"social","overrides":[],"aspectRatio":1},"pinterest":{"groupName":"social","overrides":[],"aspectRatio":1.3},"reddit":{"groupName":"social","overrides":[],"aspectRatio":1},"rss":{"groupName":"social","overrides":[],"aspectRatio":1},"share":{"groupName":"social","overrides":[],"aspectRatio":1},"tiktok":{"groupName":"social","overrides":[],"aspectRatio":1},"tumblr":{"groupName":"social","overrides":[],"aspectRatio":1.6428571428571428},"twitter":{"groupName":"social","overrides":[],"aspectRatio":1.0225},"vkontakt":{"groupName":"social","overrides":[],"aspectRatio":0.5625},"whatsapp":{"groupName":"social","overrides":[],"aspectRatio":1},"youtube":{"groupName":"social","overrides":[],"aspectRatio":0.9999666666666667},"star-fill":{"groupName":"stars","overrides":["im-madeformums-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":0.941176470
3035882353},"star-half":{"groupName":"stars","overrides":["im-madeformums-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":0.9510682288077189},"star-outline":{"groupName":"stars","overrides":["im-madeformums-theme","im-rt-theme","im-rtmoney-theme"],"aspectRatio":0.9510682288077189},"star-rounded":{"groupName":"stars","overrides":[],"aspectRatio":1}}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(11171)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.