Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bentoproject/core

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentoproject/core - npm Package Compare versions

Comparing version 0.2305221508.0 to 0.2305232041.0

2

dist/bento.core.js
;
var n,t=Object.defineProperty;function i(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function r(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return i(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var u=0;return function(){return u>=n.length?{done:!0}:{done:!1,value:n[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(){return n||(n=Promise.resolve(void 0))}!function(n,i){for(var r in function(n){t(n,"__esModule",{value:!0})}(n),i)t(n,r,{get:i[r],enumerable:!0})}(exports,{BaseElement:function(){return ui},Children:function(){return lr},ContainWrapper:function(){return vr},Fragment:function(){return _t},PreactBaseElement:function(){return Yi},Slot:function(){return xi},WithAmpContext:function(){return hi},Wrapper:function(){return hr},addGroup:function(){return mn},assignSlot:function(){return cn},cloneElement:function(){return Xn},contextProp:function(){return Z},createContext:function(){return Yn},createElement:function(){return Mn},createRef:function(){return Cn},createSlot:function(){return Ci},defineBentoElement:function(){return si},discover:function(){return vn},forwardRef:function(){return fr},hydrate:function(){return Qn},isValidElement:function(){return tn},memo:function(){return ir},rediscoverChildren:function(){return dn},removeGroupProp:function(){return wn},removeProp:function(){return yn},render:function(){return Kn},setGroupProp:function(){return bn},setIsRoot:function(){return hn},setParent:function(){return sn},setProp:function(){return pn},subscribe:function(){return K},unassignSlot:function(){return an},unsubscribe:function(){return Q},useAmpContext:function(){return di},useCallback:function(){return pt},useContext:function(){return yt},useDOMHandle:function(){return pr},useEffect:function(){return at},useImperativeHandle:function(){return ht},useLayoutEffect:function(){return st},useLoading:function(){return pi},useMemo:function(){return dt},useReducer:function(){return ct},useRef:function(){return vt},useSlotContext:function(){return Ei},useState:function(){return lt},useValueRef:function(){return dr}});var e=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function o(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function f(n){for(var t,i=null,u="",e=r(arguments,!0);!(t=e()).done;){var f=t.value;f instanceof Error&&!i?i=o(f):(u&&(u+=" "),u+=f)}return i?u&&(i.message=u+": "+i.message):i=new Error(u),i}function l(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function c(n){var t=f.apply(null,arguments);setTimeout((function(){throw l(t),t}))}function a(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){c(n)}}function s(n){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var v=Object.prototype,h=v.hasOwnProperty;function d(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function p(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}v.toString;var y=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,m=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],b={"childList":!0,"subtree":!0};function w(n,t){if(!y.test(t)||m.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var g=function(){function n(n,t){this.i=n,this.u=t,this.o=d()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,w(t.SyntaxError,n),this.u.getByName(n))return u();var i=this.o,r=i[n];return r||(r=new e,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),j=function(){function n(n){this.i=n,this.v=d(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var u=this.i,e=u.Error,o=u.SyntaxError;if(i)throw new e("Extending native custom elements is not supported");if(w(o,n),this.getByName(n)||this.getByConstructor(t))throw new e('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var f,l=r(this.g,!0);!(f=l()).done;){var c=f.value;this.upgrade(c,n)}},t.upgrade=function(n,t){for(var i,u=!!t,e=t||this.h,o=r(this.O(n,e),!0);!(i=o()).done;){var f=i.value;u?this._(f):this.upgradeSelf(f)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){c(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){c(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){c(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var u,e=r(this.g,!0);!(u=e()).done;){var o=u.value;i.observe(o,b)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,l=u.prototype,c=e.prototype,a=f.createElement,s=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,y=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:a.apply(this,arguments)},f.importNode=function(){var n=s.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=y.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=l,b=Object.getOwnPropertyDescriptor(m,"innerHTML");if(b||(m=Object.getPrototypeOf(n.HTMLElement.prototype),b=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=b)&&void 0!==i&&i.configurable){var w=b.set;b.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",b)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,b)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=r(n,!0);!(t=i()).done;){var u=t.value;if(u){for(var e,o=u.addedNodes,f=u.removedNodes,l=r(o,!0);!(e=l()).done;){var c=e.value,a=this.O(c,this.h);this._(c);for(var s,v=r(a,!0);!(s=v()).done;){var h=s.value;this._(h)}}for(var d,p=r(f,!0);!(d=p()).done;){var y=d.value,m=this.O(y,this.h);this.k(y);for(var b,w=r(m,!0);!(b=w()).done;){var g=b.value;this.k(g)}}}}},n}();function O(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),_(t,n)}function _(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var u,e=r(Object.getOwnPropertyNames(i),!0);!(u=e()).done;){var o=u.value;if(!Object.hasOwnProperty.call(n,o)){var f=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(n,o,f)}}i=Object.getPrototypeOf(i)}}(n,t)}var S=Array.isArray;function k(n){return S(n)?n:[n]}function P(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function A(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function M(n){return 1==(null==n?void 0:n.nodeType)}function z(n,t,i,r,u,e,o,f,l,c,a){return n}function C(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function x(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(e){var o=t(n,i,u);o&&x(n,t,i,o,!1)}else if(n.children)for(var f,l=r(n.children,!0);!(f=l()).done;){var c=f.value;x(c,t,i,u,!0)}}var E=[],R=function(){},T=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=C(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){z(t),z(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),V(n)&&x(this.A,L,n,!0,!1))},t.remove=function(n,t){z(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){z(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),x(this.A,L,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(P(i.subscribers,t)){var r=i.value;F(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&A(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&x(this.A,B,void 0,E)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){V(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!V(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(R):E,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):E,pingParent:V(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return c("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){c(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,u=n.value,e=i.key,o=this.C;if(u!==t&&n===(null==o?void 0:o.get(e))&&this.L()){n.value=t;for(var f,l=r(n.subscribers,!0);!(f=l()).done;)(0,f.value)(t)}},t.F=function(n,t){var i,r;z(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,l=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(l))||void 0===r?void 0:r.values,a=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||a!=Boolean(n.parentContextNode)){var s=a?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,I,e,!1):null;this.I(n,s)}var v=F(n.parentValue)?n.parentValue:a&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(F)&&(!a||F(v))){var d=this.A.node;c&&!o?h=c[0]:V(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||E,v,u):F(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||E,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,z(r),i&&i.values.unsubscribe(u,r),t&&(z(r),t.values.subscribe(u,r)))},n}();function L(n,t){return n.values.scan(t)}function B(n,t,i){return n.values.scanAll(i)}function I(n,t){return n.values.has(t)}function V(n){return!!n.recursive}function F(n){return void 0!==n}var H=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new T(this),this.N=null,this.W=!1,this.$=C(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(N),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(W)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||M(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,N(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,N(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(W)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(W)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){z(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(W),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),z(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var u=this.parent;if(n!=u){if(this.parent=n,null!=u&&u.children&&(z(u.children),A(u.children,this)),n){var e=n.children||(n.children=[]);P(e,this);for(var o,f=r(e,!0);!(o=f()).done;){var l=o.value;l!=this&&l.isDiscoverable()&&l.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function N(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=H.closest(n,i);if(u)if(u.node==n)t(u);else if(u.children)for(var e,o=r(u.children,!0);!(e=o()).done;){var f=e.value;n.contains(f.node)&&t(f)}}(n,W)}function W(n){n.discover()}function $(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function D(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?q(Object(i),!0).forEach((function(t){$(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var G=[];function Z(n,t){var i=D({key:n,deps:G,recursive:!1},t);return z(0==i.deps.length||i.compute),i}var U=[],J=function(){};function K(n,t,i){t=k(t);var r=i;H.get(n).subscribe(r,fn,i,t)}function Q(n,t){var i=t;H.get(n).unsubscribe(i)}var X,Y,nn,tn,rn,un,en,on,fn=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(J):U,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):U,this.X=!1,this.Y=null,this.K=C(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(ln)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(a(this.Y),this.Y=null)},n}();function ln(n){return void 0!==n}function cn(n,t){H.assignSlot(n,t)}function an(n,t){H.unassignSlot(n,t)}function sn(n,t){H.get(n).setParent(t)}function vn(n){H.get(n).discover()}function hn(n,t){H.get(n).setIsRoot(t)}function dn(n){H.rediscoverChildren(n)}function pn(n,t,i,r){H.get(n).values.set(t,i,r)}function yn(n,t,i){H.get(n).values.remove(t,i)}function mn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;H.get(n).addGroup(t,i,r)}function bn(n,t,i,r,u){var e;null===(e=H.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function wn(n,t,i,r){var u;null===(u=H.get(n).group(t))||void 0===u||u.values.remove(i,r)}var gn,jn,On,_n={},Sn=[],kn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Pn(n,t){for(var i in t)n[i]=t[i];return n}function An(n){var t=n.parentNode;t&&t.removeChild(n)}function Mn(n,t,i){var r,u,e,o={};for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?X.call(arguments,2):i),"function"==typeof n&&null!=n.defaultProps)for(e in n.defaultProps)void 0===o[e]&&(o[e]=n.defaultProps[e]);return zn(n,o,r,u,null)}function zn(n,t,i,r,u){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++nn:u};return null==u&&null!=Y.vnode&&Y.vnode(e),e}function Cn(){return{current:null}}function xn(n){return n.children}function En(n,t){this.props=n,this.context=t}function Rn(n,t){if(null==t)return n.__?Rn(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?Rn(n):null}function Tn(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return Tn(n)}}function Ln(n){(!n.__d&&(n.__d=!0)&&rn.push(n)&&!Bn.__r++||en!==Y.debounceRendering)&&((en=Y.debounceRendering)||un)(Bn)}function Bn(){for(var n;Bn.__r=rn.length;)n=rn.sort((function(n,t){return n.__v.__b-t.__v.__b})),rn=[],n.some((function(n){var t,i,r,u,e,o;n.__d&&(e=(u=(t=n).__v).__e,(o=t.__P)&&(i=[],(r=Pn({},u)).__v=u.__v+1,Dn(o,u,r,t.__n,void 0!==o.ownerSVGElement,null!=u.__h?[e]:null,i,null==e?Rn(u):e,u.__h),Gn(i,u),u.__e!=e&&Tn(u)))}))}function In(n,t,i,r,u,e,o,f,l,c){var a,s,v,h,d,p,y,m=r&&r.__k||Sn,b=m.length;for(i.__k=[],a=0;a<t.length;a++)if(null!=(h=i.__k[a]=null==(h=t[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?zn(null,h,null,null,h):Array.isArray(h)?zn(xn,{children:h},null,null,null):h.__b>0?zn(h.type,h.props,h.key,null,h.__v):h)){if(h.__=i,h.__b=i.__b+1,null===(v=m[a])||v&&h.key==v.key&&h.type===v.type)m[a]=void 0;else for(s=0;s<b;s++){if((v=m[s])&&h.key==v.key&&h.type===v.type){m[s]=void 0;break}v=null}Dn(n,h,v=v||_n,u,e,o,f,l,c),d=h.__e,(s=h.ref)&&v.ref!=s&&(y||(y=[]),v.ref&&y.push(v.ref,null,h),y.push(s,h.__c||d,h)),null!=d?(null==p&&(p=d),"function"==typeof h.type&&h.__k===v.__k?h.__d=l=Vn(h,l,n):l=Hn(n,h,v,m,d,l),"function"==typeof i.type&&(i.__d=l)):l&&v.__e==l&&l.parentNode!=n&&(l=Rn(v))}for(i.__e=p,a=b;a--;)null!=m[a]&&("function"==typeof i.type&&null!=m[a].__e&&m[a].__e==i.__d&&(i.__d=Rn(r,a+1)),Un(m[a],m[a]));if(y)for(a=0;a<y.length;a++)Zn(y[a],y[++a],y[++a])}function Vn(n,t,i){for(var r,u=n.__k,e=0;u&&e<u.length;e++)(r=u[e])&&(r.__=n,t="function"==typeof r.type?Vn(r,t,i):Hn(i,r,r,u,r.__e,t));return t}function Fn(n,t){return t=t||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some((function(n){Fn(n,t)})):t.push(n)),t}function Hn(n,t,i,r,u,e){var o,f,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==i||u!=e||null==u.parentNode)n:if(null==e||e.parentNode!==n)n.appendChild(u),o=null;else{for(f=e,l=0;(f=f.nextSibling)&&l<r.length;l+=2)if(f==u)break n;n.insertBefore(u,e),o=e}return void 0!==o?o:u.nextSibling}function Nn(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||kn.test(t)?i:i+"px"}function Wn(n,t,i,r,u){var e;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||Nn(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||Nn(n.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])e=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+e]=i,i?r||n.addEventListener(t,e?qn:$n,e):n.removeEventListener(t,e?qn:$n,e);else if("dangerouslySetInnerHTML"!==t){if(u)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in n)try{n[t]=null==i?"":i;break n}catch(n){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?n.setAttribute(t,i):n.removeAttribute(t))}}function $n(n){this.l[n.type+!1](Y.event?Y.event(n):n)}function qn(n){this.l[n.type+!0](Y.event?Y.event(n):n)}function Dn(n,t,i,r,u,e,o,f,l){var c,a,s,v,h,d,p,y,m,b,w,g=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(l=i.__h,f=t.__e=i.__e,t.__h=null,e=[f]),(c=Y.__b)&&c(t);try{n:if("function"==typeof g){if(y=t.props,m=(c=g.contextType)&&r[c.__c],b=c?m?m.props.value:c.__:r,i.__c?p=(a=t.__c=i.__c).__=a.__E:("prototype"in g&&g.prototype.render?t.__c=a=new g(y,b):(t.__c=a=new En(y,b),a.constructor=g,a.render=Jn),m&&m.sub(a),a.props=y,a.state||(a.state={}),a.context=b,a.__n=r,s=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=g.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=Pn({},a.__s)),Pn(a.__s,g.getDerivedStateFromProps(y,a.__s))),v=a.props,h=a.state,s)null==g.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==g.getDerivedStateFromProps&&y!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,b)||t.__v===i.__v){a.props=y,a.state=a.__s,t.__v!==i.__v&&(a.__d=!1),a.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(n){n&&(n.__=t)})),a.__h.length&&o.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,h,d)}))}a.context=b,a.props=y,a.state=a.__s,(c=Y.__r)&&c(t),a.__d=!1,a.__v=t,a.__P=n,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=Pn(Pn({},r),a.getChildContext())),s||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(v,h)),w=null!=c&&c.type===xn&&null==c.key?c.props.children:c,In(n,Array.isArray(w)?w:[w],t,i,r,u,e,o,f,l),a.base=t.__e,t.__h=null,a.__h.length&&o.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==e&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=function(n,t,i,r,u,e,o,f){var l,c,a,s=i.props,v=t.props,h=t.type,d=0;if("svg"===h&&(u=!0),null!=e)for(;d<e.length;d++)if((l=e[d])&&(l===n||(h?l.localName==h:3==l.nodeType))){n=l,e[d]=null;break}if(null==n){if(null===h)return document.createTextNode(v);n=u?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),e=null,f=!1}if(null===h)s===v||f&&n.data===v||(n.data=v);else{if(e=e&&X.call(n.childNodes),c=(s=i.props||_n).dangerouslySetInnerHTML,a=v.dangerouslySetInnerHTML,!f){if(null!=e)for(s={},d=0;d<n.attributes.length;d++)s[n.attributes[d].name]=n.attributes[d].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===n.innerHTML)||(n.innerHTML=a&&a.__html||""))}if(function(n,t,i,r,u){var e;for(e in i)"children"===e||"key"===e||e in t||Wn(n,e,null,i[e],r);for(e in t)u&&"function"!=typeof t[e]||"children"===e||"key"===e||"value"===e||"checked"===e||i[e]===t[e]||Wn(n,e,t[e],i[e],r)}(n,v,s,u,f),a)t.__k=[];else if(d=t.props.children,In(n,Array.isArray(d)?d:[d],t,i,r,u&&"foreignObject"!==h,e,o,e?e[0]:i.__k&&Rn(i,0),f),null!=e)for(d=e.length;d--;)null!=e[d]&&An(e[d]);f||("value"in v&&void 0!==(d=v.value)&&(d!==n.value||"progress"===h&&!d)&&Wn(n,"value",d,s.value,!1),"checked"in v&&void 0!==(d=v.checked)&&d!==n.checked&&Wn(n,"checked",d,s.checked,!1))}return n}(i.__e,t,i,r,u,e,o,l);(c=Y.diffed)&&c(t)}catch(n){t.__v=null,(l||null!=e)&&(t.__e=f,t.__h=!!l,e[e.indexOf(f)]=null),Y.__e(n,t,i)}}function Gn(n,t){Y.__c&&Y.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){Y.__e(n,t.__v)}}))}function Zn(n,t,i){try{"function"==typeof n?n(t):n.current=t}catch(n){Y.__e(n,i)}}function Un(n,t,i){var r,u;if(Y.unmount&&Y.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Zn(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){Y.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(u=0;u<r.length;u++)r[u]&&Un(r[u],t,"function"!=typeof n.type);i||null==n.__e||An(n.__e),n.__e=n.__d=void 0}function Jn(n,t,i){return this.constructor(n,i)}function Kn(n,t,i){var r,u,e;Y.__&&Y.__(n,t),u=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],Dn(t,n=(!r&&i||t).__k=Mn(xn,null,[n]),u||_n,_n,void 0!==t.ownerSVGElement,!r&&i?[i]:u?null:t.firstChild?X.call(t.childNodes):null,e,!r&&i?i:u?u.__e:t.firstChild,r),Gn(e,n)}function Qn(n,t){Kn(n,t,Qn)}function Xn(n,t,i){var r,u,e,o=Pn({},n.props);for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];return arguments.length>2&&(o.children=arguments.length>3?X.call(arguments,2):i),zn(n.type,o,r||n.key,u||n.ref,null)}function Yn(n,t){var i={__c:t="__cC"+on++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.some(Ln)},this.sub=function(n){i.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),t&&t.call(n)}}),n.children}};return i.Provider.__=i.Consumer.contextType=i}X=Sn.slice,Y={__e:function(n,t){for(var i,r,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),u=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n),u=i.__d),u)return i.__E=i}catch(t){n=t}throw n}},nn=0,tn=function(n){return null!=n&&void 0===n.constructor},En.prototype.setState=function(n,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Pn({},this.state),"function"==typeof n&&(n=n(Pn({},i),this.props)),n&&Pn(i,n),null!=n&&this.__v&&(t&&this.__h.push(t),Ln(this))},En.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Ln(this))},En.prototype.render=xn,rn=[],un="function"==typeof Promise?Promise.prototype.then.bind(u()):setTimeout,Bn.__r=0,on=0;var nt=0,tt=[],it=Y.__b,rt=Y.__r,ut=Y.diffed,et=Y.__c,ot=Y.unmount;function ft(n,t){Y.__h&&Y.__h(jn,n,nt||t),nt=0;var i=jn.__H||(jn.__H={__:[],__h:[]});return n>=i.__.length&&i.__.push({}),i.__[n]}function lt(n){return nt=1,ct(Ot,n)}function ct(n,t,i){var r=ft(gn++,2);return r.t=n,r.__c||(r.__=[i?i(t):Ot(void 0,t),function(n){var t=r.t(r.__[0],n);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=jn),r.__}function at(n,t){var i=ft(gn++,3);!Y.__s&&jt(i.__H,t)&&(i.__=n,i.__H=t,jn.__H.__h.push(i))}function st(n,t){var i=ft(gn++,4);!Y.__s&&jt(i.__H,t)&&(i.__=n,i.__H=t,jn.__h.push(i))}function vt(n){return nt=5,dt((function(){return{current:n}}),[])}function ht(n,t,i){nt=6,st((function(){"function"==typeof n?n(t()):n&&(n.current=t())}),null==i?i:i.concat(n))}function dt(n,t){var i=ft(gn++,7);return jt(i.__H,t)&&(i.__=n(),i.__H=t,i.__h=n),i.__}function pt(n,t){return nt=8,dt((function(){return n}),t)}function yt(n){var t=jn.context[n.__c],i=ft(gn++,9);return i.c=n,t?(null==i.__&&(i.__=!0,t.sub(jn)),t.props.value):n.__}function mt(){tt.forEach((function(n){if(n.__P)try{n.__H.__h.forEach(wt),n.__H.__h.forEach(gt),n.__H.__h=[]}catch(t){n.__H.__h=[],Y.__e(t,n.__v)}})),tt=[]}Y.__b=function(n){jn=null,it&&it(n)},Y.__r=function(n){rt&&rt(n),gn=0;var t=(jn=n.__c).__H;t&&(t.__h.forEach(wt),t.__h.forEach(gt),t.__h=[])},Y.diffed=function(n){ut&&ut(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==tt.push(t)&&On===Y.requestAnimationFrame||((On=Y.requestAnimationFrame)||function(n){var t,i=function(){clearTimeout(r),bt&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(i,100);bt&&(t=requestAnimationFrame(i))})(mt)),jn=null},Y.__c=function(n,t){t.some((function(n){try{n.__h.forEach(wt),n.__h=n.__h.filter((function(n){return!n.__||gt(n)}))}catch(i){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Y.__e(i,n.__v)}})),et&&et(n,t)},Y.unmount=function(n){ot&&ot(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(wt)}catch(n){Y.__e(n,t.__v)}};var bt="function"==typeof requestAnimationFrame;function wt(n){var t=jn;"function"==typeof n.__c&&n.__c(),jn=t}function gt(n){var t=jn;n.__c=n.__(),jn=t}function jt(n,t){return!n||n.length!==t.length||t.some((function(t,i){return t!==n[i]}))}function Ot(n,t){return"function"==typeof t?t(n):t}function _t(n){return n.children}function St(n,t){return(St=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function kt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&St(n,t)}function Pt(n){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function At(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Mt(n,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return At(n)}function zt(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Pt(n);if(t){var u=Pt(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Mt(this,i)}}var Ct,xt,Et=["auto","lazy","eager","unload"],Rt=($(Ct={},"auto",0),$(Ct,"lazy",1),$(Ct,"eager",2),$(Ct,"unload",3),Ct);function Tt(n,t){var i=Rt[null!=n?n:"auto"]||0,r=Rt[null!=t?t:"auto"]||0,u=Math.max(i,r);return Et[u]}function Lt(n){return(n.ownerDocument||n).defaultView}function Bt(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function It(n){z(/^[\w-]+$/.test(n))}function Vt(n,t){if(void 0!==xt?xt:xt=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(Bt(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=Bt(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function Ft(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Ht(n,t){return It(t),Vt(n,"> [".concat(t,"]"))}function Nt(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Wt(r)&&i.push(r);return i}(n)}function Wt(n){return"string"==typeof(t=n)?i=t:M(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var $t={bubbles:!0,cancelable:!0};function qt(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Dt(n,t,i,r){var u=i||{};z(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||$t,f=o.bubbles,l=o.cancelable;e.initEvent(t,f,l),n.dispatchEvent(e)}var Gt=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Zt,"1")},t.resolveListQuery=function(n){return this.on(n,Ut,"")},t.complete=function(){for(var n in this.en)n in this.un||Jt(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Jt(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(z(this.en),r=this.en[n]),r||Jt(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Zt(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Ut(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var l=t.charAt(u);if(!("%"==l||"-"==l||"_"==l||l>="a"&&l<="z"||l>="A"&&l<="Z"||l>="0"&&l<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Jt(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Kt={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Qt=/vertical/,Xt=new WeakMap,Yt=new WeakMap,ni=new WeakMap;function ti(n){var t=Xt.get(n);return t||(t=new n.ResizeObserver(ii),Xt.set(n,t)),t}function ii(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Yt.get(u);if(e){ni.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],l=f.callback;ri(f.type,l,r)}}}}}function ri(n,t,i){if(0==n){var r=i.contentRect,u=r.height;a(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,l,c=i.target,s=Lt(c),v=Qt.test(function(n,t){return n.getComputedStyle(t)||Kt}(s,c).writingMode),h=c,d=h.offsetHeight,p=h.offsetWidth;v?(l=p,f=d):(f=p,l=d),e={inlineSize:f,blockSize:l}}a(t,e)}}var ui,ei,oi,fi,li=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Yt.get(n);if(u||(u=[],Yt.set(n,u),ti(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=ni.get(n);e&&setTimeout((function(){return ri(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Yt.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Yt.delete(n),ni.delete(n);var u=n.ownerDocument.defaultView;u&&ti(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function ci(n){if("object"!==("undefined"==typeof Reflect?"undefined":s(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ai(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ei&&oi===t||(ei=ci((oi=t).HTMLElement)),function(t){kt(r,ei);var i=zt(r);function r(){var t;return(t=i.call(this)).implementation=new n(At(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function si(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ai(t,i))}function vi(){return fi||(fi=Yn({renderable:!0,playable:!0,loading:"auto"}))}function hi(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,l=void 0===f||f,c=di(),a=l&&c.renderable,s=a&&o&&c.playable,v=Tt(a?"auto":"lazy",Tt(r,c.loading)),h=u||c.notify,d=dt((function(){return{renderable:a,playable:s,loading:v,notify:h}}),[a,s,v,h]);return Mn(vi().Provider,{children:t,value:d})}function di(){return yt(vi())}function pi(n){return Tt(n,di().loading)}ui="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Lt(n)}var t=n.prototype;return t.mutateElement=function(n){u().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var yi=Z("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(wi)},compute:function(n,t,i){return i&&t.reduce(wi,!0)||!1}}),mi=Z("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(wi)},deps:[yi],compute:function(n,t,i,r){return r&&i&&t.reduce(wi,!0)||!1}}),bi=Z("Loading",{defaultValue:"auto",recursive:!0,deps:[yi],compute:function(n,t,i,r){return Tt(r?"auto":"lazy",Tt(i||"auto",t.reduce(Tt,"auto")))}}),wi=function(n,t){return n&&t},gi=function(n){return n.ensureLoaded()},ji=function(n){return n.pause()},Oi=function(n){return n.unmount()};function _i(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!1,gi)}function Si(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!0,ji)}function ki(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!0,Oi)}function Pi(n,t,i,r){for(var u=k(n),e=0;e<u.length;e++)Ai(u[e],t,i,r)}function Ai(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(a(r,u),!i){var e=u.getPlaceholder();return void(e&&Ai(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,l=0;l<o.length;l++){var c=o[l];if(i)a(r,c);else{f=f||[];for(var s=!1,v=0;v<f.length;v++)if(f[v].contains(c)){s=!0;break}s||(f.push(c),a(r,c))}}}var Mi={},zi=new WeakMap;function Ci(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return Mn(xi,D(D({},i||Mi),{},{name:t}));var u=zi.get(n);if(u&&p(u.oldProps,i))return u.component;function e(n){return Mn(xi,D(D({},i||Mi),{},{name:t},n))}return zi.set(n,{oldProps:i,component:e}),e}function xi(n){var t=vt(null);return Ei(t,n),at((function(){n.postRender&&n.postRender()})),Mn("slot",D(D({},n),{},{ref:t}))}function Ei(n,t){var i=null==t?void 0:t.loading,r=di();st((function(){var t=n.current;return z(M(t)),pn(t,yi,xi,r.renderable),pn(t,mi,xi,r.playable),pn(t,bi,xi,r.loading),r.playable||Ri(t,Si,!0),function(){yn(t,yi,xi),yn(t,mi,xi),yn(t,bi,xi),dn(t)}}),[n,r]),st((function(){var t=n.current;return z(M(t)),"lazy"!=i&&Ri(t,_i,!0),function(){Ri(t,ki,!1)}}),[n,i])}function Ri(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var Ti,Li={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},Bi=(Ti=0,function(){return String(++Ti)});function Ii(n,t){return Object.values(n).some(t)}var Vi=function(n){return"string"==typeof n||!!n.selector},Fi=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Hi(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var l=D(D({},r),{},{ref:i});return o&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=o),e&&(n.usesShadowDom?l.style=Li:l.class="i-amphtml-fill-content"),Ni(n,l,f,t,u),u&&u.complete(),l}function Ni(n,t,i,r,u){if(Ii(i,Vi))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Wt(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],l=$i(f,i);if(l){var c=i[l],a=c.as,s=void 0!==a&&a,v=c.single,h=c.name,d=void 0===h?l:h,p=c.clone,y=c.props,m=void 0===y?{}:y;z(p||n.usesShadowDom);var b={};if(Ni(n,b,m,f,u),v)t[d]=Ci(f,f.getAttribute("slot")||"i-amphtml-".concat(d),b,s);else{var w=t[d]||(t[d]=[]);z(!s),w.push(p?Wi(f):Ci(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(Bi()),b))}}}for(var g in i){var j=i[g];z([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)z(n.usesShadowDom),O=[Mn(xi,{loading:"lazy"})];else if(j.passthroughNonEmpty)z(n.usesShadowDom),O=Nt(r).every(Fi)?null:[Mn(xi,{loading:"lazy"})];else if(j.attr){var _=r.getAttribute(j.attr);O=_&&j.parseAttr?j.parseAttr(_):_,j.media&&null!=O&&(z(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(z(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var S="number"==j.type?parseFloat(O):"boolean"==j.type?null==(k=O)?void 0:"false"!==k:O;t[g]=S}}var k}function Wi(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,l=o.value;t[f]=l}return Mn(r,t)}function $i(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&Ft(n,u))return i}return null}var qi={childList:!0},Di={childList:!0,characterData:!0},Gi={childList:!0},Zi={"style":"display: contents; background: inherit;","part":"c"},Ui={"name":"i-amphtml-svc"},Ji={"i-amphtml-rendered":""},Ki=function(){return!0},Qi=function(n){return!!n.media},Xi=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Yi=function(n){kt(r,n);var t=zt(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){z(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new li(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Ii(i,Vi)?qi:null,u=Ii(i,Xi)?Di:null,o=t.usesTemplate?Gi:null;this.observer.observe(this.element,D(D(D({attributes:!0},r),u),o)),this.xn=Ii(i,Qi)?new Gt(this.win,(function(){return n.Ln()})):null;var f=t.staticProps,l=this.init();Object.assign(this.vn,f,l),this.checkPropsPostMutations(),K(this.element,[],(function(){return function(){n.zn=!1,n._n&&Kn(null,n._n)}})),K(this.element,[yi,mi,bi],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var c,a=t.useContexts;return 0!=a.length&&K(this.element,a,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new e,this.Ln(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){vn(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;vn(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return z(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],l=t.attributeName;if(z(l),l==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(l)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,l))return!0}return!1}return"childList"==i&&(nr(t.addedNodes)||nr(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){z(!r);var f=this.element.shadowRoot,l=f&&(t=f,It("c"),Vt(t,"> ".concat("c")));if(l)this.Mn=!0;else{var c,a,s,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(z((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),l=qt(o,"c",Zi),f.appendChild(l);var y=qt(o,"slot",Ui);f.appendChild(y),null===(c=this.getPlaceholder)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot","i-amphtml-svc"),null===(s=this.getFallback)||void 0===s||null===(v=s.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=l,z(f),sn(f,this.element),mn(this.element,"unslotted",Ki,-1),bn(this.element,"unslotted",yi,this,!1)}else if(e){var m=this.element;this._n=m;var b=Ht(m,"i-amphtml-rendered")||qt(o,e,Ji);b.__AMP_RENDERED=!0,i.layoutSizeDefined&&b.classList.add("i-amphtml-fill-content"),this._n.appendChild(b)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;z(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var _=Hi(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(_),this.isReady(_)){for(var S=Mn(i.Component,_),k=0;k<j.length;k++){z(O);var P=j[k].type,A=O[k];A&&(S=Mn(P.Provider,{value:A},S))}var M=Mn(hi,D({},this.hn),S);try{if(this.Mn)this.Mn=!1,Qn(M,g);else{var C=e?Ht(g,"i-amphtml-rendered"):null;C&&(C.__AMP_RENDERED=!0),Kn(M,g,null!=C?C:void 0)}}catch(n){var x;throw null===(x=this.kn)||void 0===x||x.reject(n),n}u||r||this.mutateElement((function(){return Dt(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,h.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new e),this.jn.promise)},i.wn=function(n){for(var t=d(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Dt(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return z(n),n[t]},set:function(n){var r=i.yn;z(r),r[t]=n}})},r}(ui);function nr(n){for(var t=0;t<n.length;t++){var i=n[t];if(M(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function tr(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}function ir(n,t){function i(n){var i=this.props.ref,r=i==n.ref;return!r&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!r:function(n,t){for(var i in n)if("__source"!==i&&!(i in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}(this.props,n)}function r(t){return this.shouldComponentUpdate=i,Mn(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r._forwarded=!0,r}Yi.staticProps=void 0,Yi.useContexts=[],Yi.loadable=!1,Yi.unloadOnPause=!1,Yi.layoutSizeDefined=!1,Yi.lightDomTag="",Yi.usesTemplate=!1,Yi.shadowCss=null,Yi.usesShadowDom=!1,Yi.detached=!1,Yi.delegatesFocus=!1,Yi.props={};var rr,ur=["ref"],er="undefined"!=typeof Symbol&&(null===(rr=Symbol.for)||void 0===rr?void 0:rr.call(Symbol,"react.forward_ref"))||3911,or=Y.__b;Y.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.In&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==or||or(n)};var fr=function(n){function t(t){var i=t.ref,r=tr(t,ur);return n(r,i)}return t.$$typeof=er,t.render=t,t.prototype.isReactComponent=!0,t.In=!0,t},lr={toArray:function(n){return Fn(n)},map:function(n,t){return Fn(n).map(t)},count:function(n){return Fn(n).length}};function cr(n){var t=function(n,t){if("object"!==s(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===s(t)?t:String(t)}var ar=[null,"paint","layout","content","size","size paint","size layout","strict"],sr={"position":"relative","width":"100%","height":"100%"},vr=fr((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,l=n.contentClassName,c=n.contentProps,a=n.contentRef,s=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,y=n.size,m=void 0!==y&&y,b=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=(m?4:0)+(h?2:0)+(p?1:0);return Mn(u,D(D({},tr(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(cr))),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:D(D(D({},b),g),{},{contain:ar[O]})}),Mn(f,D(D({},c),{},{ref:a,class:l,style:D(D({},m&&sr),{},{"overflow":p?"hidden":"visible"},s)}),e))})),hr=fr((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,l=n.wrapperStyle,c=n[i];return Mn(u,D(D({},tr(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(cr))),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:D(D({},o),l)}),e)}));function dr(n){var t=vt(n);return t.current=n,t}function pr(n,t){ht(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}O(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new j(n),o=new g(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,l=f.attachShadow,c=f.createShadowRoot;function a(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return _(t,n.prototype),t}l&&(f.attachShadow=function(n){var t=l.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return l.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),O(i,a),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=a,a.call||(a.apply=n.Function.apply,a.bind=n.Function.bind,a.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
var n,t=Object.defineProperty;function i(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function r(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return i(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var u=0;return function(){return u>=n.length?{done:!0}:{done:!1,value:n[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(){return n||(n=Promise.resolve(void 0))}!function(n,i){for(var r in function(n){t(n,"__esModule",{value:!0})}(n),i)t(n,r,{get:i[r],enumerable:!0})}(exports,{BaseElement:function(){return ui},Children:function(){return lr},ContainWrapper:function(){return vr},Fragment:function(){return _t},PreactBaseElement:function(){return Yi},Slot:function(){return xi},WithAmpContext:function(){return hi},Wrapper:function(){return hr},addGroup:function(){return mn},assignSlot:function(){return cn},cloneElement:function(){return Xn},contextProp:function(){return Z},createContext:function(){return Yn},createElement:function(){return Mn},createRef:function(){return Cn},createSlot:function(){return Ci},defineBentoElement:function(){return si},discover:function(){return vn},forwardRef:function(){return fr},hydrate:function(){return Qn},isValidElement:function(){return tn},memo:function(){return ir},rediscoverChildren:function(){return dn},removeGroupProp:function(){return wn},removeProp:function(){return yn},render:function(){return Kn},setGroupProp:function(){return bn},setIsRoot:function(){return hn},setParent:function(){return sn},setProp:function(){return pn},subscribe:function(){return K},unassignSlot:function(){return an},unsubscribe:function(){return Q},useAmpContext:function(){return di},useCallback:function(){return pt},useContext:function(){return yt},useDOMHandle:function(){return pr},useEffect:function(){return at},useImperativeHandle:function(){return ht},useLayoutEffect:function(){return st},useLoading:function(){return pi},useMemo:function(){return dt},useReducer:function(){return ct},useRef:function(){return vt},useSlotContext:function(){return Ei},useState:function(){return lt},useValueRef:function(){return dr}});var e=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function o(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function f(n){for(var t,i=null,u="",e=r(arguments,!0);!(t=e()).done;){var f=t.value;f instanceof Error&&!i?i=o(f):(u&&(u+=" "),u+=f)}return i?u&&(i.message=u+": "+i.message):i=new Error(u),i}function l(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function c(n){var t=f.apply(null,arguments);setTimeout((function(){throw l(t),t}))}function a(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){c(n)}}function s(n){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var v=Object.prototype,h=v.hasOwnProperty;function d(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function p(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}v.toString;var y=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,m=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],b={"childList":!0,"subtree":!0};function w(n,t){if(!y.test(t)||m.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var g=function(){function n(n,t){this.i=n,this.u=t,this.o=d()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,w(t.SyntaxError,n),this.u.getByName(n))return u();var i=this.o,r=i[n];return r||(r=new e,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),j=function(){function n(n){this.i=n,this.v=d(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var u=this.i,e=u.Error,o=u.SyntaxError;if(i)throw new e("Extending native custom elements is not supported");if(w(o,n),this.getByName(n)||this.getByConstructor(t))throw new e('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var f,l=r(this.g,!0);!(f=l()).done;){var c=f.value;this.upgrade(c,n)}},t.upgrade=function(n,t){for(var i,u=!!t,e=t||this.h,o=r(this.O(n,e),!0);!(i=o()).done;){var f=i.value;u?this._(f):this.upgradeSelf(f)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){c(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){c(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){c(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var u,e=r(this.g,!0);!(u=e()).done;){var o=u.value;i.observe(o,b)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,l=u.prototype,c=e.prototype,a=f.createElement,s=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,y=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:a.apply(this,arguments)},f.importNode=function(){var n=s.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=y.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=l,b=Object.getOwnPropertyDescriptor(m,"innerHTML");if(b||(m=Object.getPrototypeOf(n.HTMLElement.prototype),b=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=b)&&void 0!==i&&i.configurable){var w=b.set;b.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",b)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,b)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=r(n,!0);!(t=i()).done;){var u=t.value;if(u){for(var e,o=u.addedNodes,f=u.removedNodes,l=r(o,!0);!(e=l()).done;){var c=e.value,a=this.O(c,this.h);this._(c);for(var s,v=r(a,!0);!(s=v()).done;){var h=s.value;this._(h)}}for(var d,p=r(f,!0);!(d=p()).done;){var y=d.value,m=this.O(y,this.h);this.k(y);for(var b,w=r(m,!0);!(b=w()).done;){var g=b.value;this.k(g)}}}}},n}();function O(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),_(t,n)}function _(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var u,e=r(Object.getOwnPropertyNames(i),!0);!(u=e()).done;){var o=u.value;if(!Object.hasOwnProperty.call(n,o)){var f=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(n,o,f)}}i=Object.getPrototypeOf(i)}}(n,t)}var S=Array.isArray;function k(n){return S(n)?n:[n]}function P(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function A(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function M(n){return 1==(null==n?void 0:n.nodeType)}function z(n,t,i,r,u,e,o,f,l,c,a){return n}function C(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function x(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(e){var o=t(n,i,u);o&&x(n,t,i,o,!1)}else if(n.children)for(var f,l=r(n.children,!0);!(f=l()).done;){var c=f.value;x(c,t,i,u,!0)}}var E=[],R=function(){},T=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=C(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){z(t),z(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),V(n)&&x(this.A,L,n,!0,!1))},t.remove=function(n,t){z(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){z(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),x(this.A,L,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(P(i.subscribers,t)){var r=i.value;F(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&A(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&x(this.A,B,void 0,E)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){V(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!V(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(R):E,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):E,pingParent:V(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return c("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){c(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,u=n.value,e=i.key,o=this.C;if(u!==t&&n===(null==o?void 0:o.get(e))&&this.L()){n.value=t;for(var f,l=r(n.subscribers,!0);!(f=l()).done;)(0,f.value)(t)}},t.F=function(n,t){var i,r;z(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,l=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(l))||void 0===r?void 0:r.values,a=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||a!=Boolean(n.parentContextNode)){var s=a?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,I,e,!1):null;this.I(n,s)}var v=F(n.parentValue)?n.parentValue:a&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(F)&&(!a||F(v))){var d=this.A.node;c&&!o?h=c[0]:V(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||E,v,u):F(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||E,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,z(r),i&&i.values.unsubscribe(u,r),t&&(z(r),t.values.subscribe(u,r)))},n}();function L(n,t){return n.values.scan(t)}function B(n,t,i){return n.values.scanAll(i)}function I(n,t){return n.values.has(t)}function V(n){return!!n.recursive}function F(n){return void 0!==n}var H=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new T(this),this.N=null,this.W=!1,this.$=C(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(N),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(W)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||M(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,N(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,N(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(W)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(W)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){z(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(W),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),z(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var u=this.parent;if(n!=u){if(this.parent=n,null!=u&&u.children&&(z(u.children),A(u.children,this)),n){var e=n.children||(n.children=[]);P(e,this);for(var o,f=r(e,!0);!(o=f()).done;){var l=o.value;l!=this&&l.isDiscoverable()&&l.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function N(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=H.closest(n,i);if(u)if(u.node==n)t(u);else if(u.children)for(var e,o=r(u.children,!0);!(e=o()).done;){var f=e.value;n.contains(f.node)&&t(f)}}(n,W)}function W(n){n.discover()}function $(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function D(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?q(Object(i),!0).forEach((function(t){$(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var G=[];function Z(n,t){var i=D({key:n,deps:G,recursive:!1},t);return z(0==i.deps.length||i.compute),i}var U=[],J=function(){};function K(n,t,i){t=k(t);var r=i;H.get(n).subscribe(r,fn,i,t)}function Q(n,t){var i=t;H.get(n).unsubscribe(i)}var X,Y,nn,tn,rn,un,en,on,fn=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(J):U,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):U,this.X=!1,this.Y=null,this.K=C(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(ln)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(a(this.Y),this.Y=null)},n}();function ln(n){return void 0!==n}function cn(n,t){H.assignSlot(n,t)}function an(n,t){H.unassignSlot(n,t)}function sn(n,t){H.get(n).setParent(t)}function vn(n){H.get(n).discover()}function hn(n,t){H.get(n).setIsRoot(t)}function dn(n){H.rediscoverChildren(n)}function pn(n,t,i,r){H.get(n).values.set(t,i,r)}function yn(n,t,i){H.get(n).values.remove(t,i)}function mn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;H.get(n).addGroup(t,i,r)}function bn(n,t,i,r,u){var e;null===(e=H.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function wn(n,t,i,r){var u;null===(u=H.get(n).group(t))||void 0===u||u.values.remove(i,r)}var gn,jn,On,_n={},Sn=[],kn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Pn(n,t){for(var i in t)n[i]=t[i];return n}function An(n){var t=n.parentNode;t&&t.removeChild(n)}function Mn(n,t,i){var r,u,e,o={};for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?X.call(arguments,2):i),"function"==typeof n&&null!=n.defaultProps)for(e in n.defaultProps)void 0===o[e]&&(o[e]=n.defaultProps[e]);return zn(n,o,r,u,null)}function zn(n,t,i,r,u){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++nn:u};return null==u&&null!=Y.vnode&&Y.vnode(e),e}function Cn(){return{current:null}}function xn(n){return n.children}function En(n,t){this.props=n,this.context=t}function Rn(n,t){if(null==t)return n.__?Rn(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?Rn(n):null}function Tn(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return Tn(n)}}function Ln(n){(!n.__d&&(n.__d=!0)&&rn.push(n)&&!Bn.__r++||en!==Y.debounceRendering)&&((en=Y.debounceRendering)||un)(Bn)}function Bn(){for(var n;Bn.__r=rn.length;)n=rn.sort((function(n,t){return n.__v.__b-t.__v.__b})),rn=[],n.some((function(n){var t,i,r,u,e,o;n.__d&&(e=(u=(t=n).__v).__e,(o=t.__P)&&(i=[],(r=Pn({},u)).__v=u.__v+1,Dn(o,u,r,t.__n,void 0!==o.ownerSVGElement,null!=u.__h?[e]:null,i,null==e?Rn(u):e,u.__h),Gn(i,u),u.__e!=e&&Tn(u)))}))}function In(n,t,i,r,u,e,o,f,l,c){var a,s,v,h,d,p,y,m=r&&r.__k||Sn,b=m.length;for(i.__k=[],a=0;a<t.length;a++)if(null!=(h=i.__k[a]=null==(h=t[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?zn(null,h,null,null,h):Array.isArray(h)?zn(xn,{children:h},null,null,null):h.__b>0?zn(h.type,h.props,h.key,null,h.__v):h)){if(h.__=i,h.__b=i.__b+1,null===(v=m[a])||v&&h.key==v.key&&h.type===v.type)m[a]=void 0;else for(s=0;s<b;s++){if((v=m[s])&&h.key==v.key&&h.type===v.type){m[s]=void 0;break}v=null}Dn(n,h,v=v||_n,u,e,o,f,l,c),d=h.__e,(s=h.ref)&&v.ref!=s&&(y||(y=[]),v.ref&&y.push(v.ref,null,h),y.push(s,h.__c||d,h)),null!=d?(null==p&&(p=d),"function"==typeof h.type&&h.__k===v.__k?h.__d=l=Vn(h,l,n):l=Hn(n,h,v,m,d,l),"function"==typeof i.type&&(i.__d=l)):l&&v.__e==l&&l.parentNode!=n&&(l=Rn(v))}for(i.__e=p,a=b;a--;)null!=m[a]&&("function"==typeof i.type&&null!=m[a].__e&&m[a].__e==i.__d&&(i.__d=Rn(r,a+1)),Un(m[a],m[a]));if(y)for(a=0;a<y.length;a++)Zn(y[a],y[++a],y[++a])}function Vn(n,t,i){for(var r,u=n.__k,e=0;u&&e<u.length;e++)(r=u[e])&&(r.__=n,t="function"==typeof r.type?Vn(r,t,i):Hn(i,r,r,u,r.__e,t));return t}function Fn(n,t){return t=t||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some((function(n){Fn(n,t)})):t.push(n)),t}function Hn(n,t,i,r,u,e){var o,f,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==i||u!=e||null==u.parentNode)n:if(null==e||e.parentNode!==n)n.appendChild(u),o=null;else{for(f=e,l=0;(f=f.nextSibling)&&l<r.length;l+=2)if(f==u)break n;n.insertBefore(u,e),o=e}return void 0!==o?o:u.nextSibling}function Nn(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||kn.test(t)?i:i+"px"}function Wn(n,t,i,r,u){var e;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||Nn(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||Nn(n.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])e=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+e]=i,i?r||n.addEventListener(t,e?qn:$n,e):n.removeEventListener(t,e?qn:$n,e);else if("dangerouslySetInnerHTML"!==t){if(u)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in n)try{n[t]=null==i?"":i;break n}catch(n){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?n.setAttribute(t,i):n.removeAttribute(t))}}function $n(n){this.l[n.type+!1](Y.event?Y.event(n):n)}function qn(n){this.l[n.type+!0](Y.event?Y.event(n):n)}function Dn(n,t,i,r,u,e,o,f,l){var c,a,s,v,h,d,p,y,m,b,w,g=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(l=i.__h,f=t.__e=i.__e,t.__h=null,e=[f]),(c=Y.__b)&&c(t);try{n:if("function"==typeof g){if(y=t.props,m=(c=g.contextType)&&r[c.__c],b=c?m?m.props.value:c.__:r,i.__c?p=(a=t.__c=i.__c).__=a.__E:("prototype"in g&&g.prototype.render?t.__c=a=new g(y,b):(t.__c=a=new En(y,b),a.constructor=g,a.render=Jn),m&&m.sub(a),a.props=y,a.state||(a.state={}),a.context=b,a.__n=r,s=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=g.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=Pn({},a.__s)),Pn(a.__s,g.getDerivedStateFromProps(y,a.__s))),v=a.props,h=a.state,s)null==g.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==g.getDerivedStateFromProps&&y!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,b)||t.__v===i.__v){a.props=y,a.state=a.__s,t.__v!==i.__v&&(a.__d=!1),a.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(n){n&&(n.__=t)})),a.__h.length&&o.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,h,d)}))}a.context=b,a.props=y,a.state=a.__s,(c=Y.__r)&&c(t),a.__d=!1,a.__v=t,a.__P=n,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=Pn(Pn({},r),a.getChildContext())),s||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(v,h)),w=null!=c&&c.type===xn&&null==c.key?c.props.children:c,In(n,Array.isArray(w)?w:[w],t,i,r,u,e,o,f,l),a.base=t.__e,t.__h=null,a.__h.length&&o.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==e&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=function(n,t,i,r,u,e,o,f){var l,c,a,s=i.props,v=t.props,h=t.type,d=0;if("svg"===h&&(u=!0),null!=e)for(;d<e.length;d++)if((l=e[d])&&(l===n||(h?l.localName==h:3==l.nodeType))){n=l,e[d]=null;break}if(null==n){if(null===h)return document.createTextNode(v);n=u?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),e=null,f=!1}if(null===h)s===v||f&&n.data===v||(n.data=v);else{if(e=e&&X.call(n.childNodes),c=(s=i.props||_n).dangerouslySetInnerHTML,a=v.dangerouslySetInnerHTML,!f){if(null!=e)for(s={},d=0;d<n.attributes.length;d++)s[n.attributes[d].name]=n.attributes[d].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===n.innerHTML)||(n.innerHTML=a&&a.__html||""))}if(function(n,t,i,r,u){var e;for(e in i)"children"===e||"key"===e||e in t||Wn(n,e,null,i[e],r);for(e in t)u&&"function"!=typeof t[e]||"children"===e||"key"===e||"value"===e||"checked"===e||i[e]===t[e]||Wn(n,e,t[e],i[e],r)}(n,v,s,u,f),a)t.__k=[];else if(d=t.props.children,In(n,Array.isArray(d)?d:[d],t,i,r,u&&"foreignObject"!==h,e,o,e?e[0]:i.__k&&Rn(i,0),f),null!=e)for(d=e.length;d--;)null!=e[d]&&An(e[d]);f||("value"in v&&void 0!==(d=v.value)&&(d!==n.value||"progress"===h&&!d)&&Wn(n,"value",d,s.value,!1),"checked"in v&&void 0!==(d=v.checked)&&d!==n.checked&&Wn(n,"checked",d,s.checked,!1))}return n}(i.__e,t,i,r,u,e,o,l);(c=Y.diffed)&&c(t)}catch(n){t.__v=null,(l||null!=e)&&(t.__e=f,t.__h=!!l,e[e.indexOf(f)]=null),Y.__e(n,t,i)}}function Gn(n,t){Y.__c&&Y.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){Y.__e(n,t.__v)}}))}function Zn(n,t,i){try{"function"==typeof n?n(t):n.current=t}catch(n){Y.__e(n,i)}}function Un(n,t,i){var r,u;if(Y.unmount&&Y.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Zn(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){Y.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(u=0;u<r.length;u++)r[u]&&Un(r[u],t,"function"!=typeof n.type);i||null==n.__e||An(n.__e),n.__e=n.__d=void 0}function Jn(n,t,i){return this.constructor(n,i)}function Kn(n,t,i){var r,u,e;Y.__&&Y.__(n,t),u=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],Dn(t,n=(!r&&i||t).__k=Mn(xn,null,[n]),u||_n,_n,void 0!==t.ownerSVGElement,!r&&i?[i]:u?null:t.firstChild?X.call(t.childNodes):null,e,!r&&i?i:u?u.__e:t.firstChild,r),Gn(e,n)}function Qn(n,t){Kn(n,t,Qn)}function Xn(n,t,i){var r,u,e,o=Pn({},n.props);for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];return arguments.length>2&&(o.children=arguments.length>3?X.call(arguments,2):i),zn(n.type,o,r||n.key,u||n.ref,null)}function Yn(n,t){var i={__c:t="__cC"+on++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.some(Ln)},this.sub=function(n){i.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),t&&t.call(n)}}),n.children}};return i.Provider.__=i.Consumer.contextType=i}X=Sn.slice,Y={__e:function(n,t){for(var i,r,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),u=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n),u=i.__d),u)return i.__E=i}catch(t){n=t}throw n}},nn=0,tn=function(n){return null!=n&&void 0===n.constructor},En.prototype.setState=function(n,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Pn({},this.state),"function"==typeof n&&(n=n(Pn({},i),this.props)),n&&Pn(i,n),null!=n&&this.__v&&(t&&this.__h.push(t),Ln(this))},En.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Ln(this))},En.prototype.render=xn,rn=[],un="function"==typeof Promise?Promise.prototype.then.bind(u()):setTimeout,Bn.__r=0,on=0;var nt=0,tt=[],it=Y.__b,rt=Y.__r,ut=Y.diffed,et=Y.__c,ot=Y.unmount;function ft(n,t){Y.__h&&Y.__h(jn,n,nt||t),nt=0;var i=jn.__H||(jn.__H={__:[],__h:[]});return n>=i.__.length&&i.__.push({}),i.__[n]}function lt(n){return nt=1,ct(Ot,n)}function ct(n,t,i){var r=ft(gn++,2);return r.t=n,r.__c||(r.__=[i?i(t):Ot(void 0,t),function(n){var t=r.t(r.__[0],n);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=jn),r.__}function at(n,t){var i=ft(gn++,3);!Y.__s&&jt(i.__H,t)&&(i.__=n,i.__H=t,jn.__H.__h.push(i))}function st(n,t){var i=ft(gn++,4);!Y.__s&&jt(i.__H,t)&&(i.__=n,i.__H=t,jn.__h.push(i))}function vt(n){return nt=5,dt((function(){return{current:n}}),[])}function ht(n,t,i){nt=6,st((function(){"function"==typeof n?n(t()):n&&(n.current=t())}),null==i?i:i.concat(n))}function dt(n,t){var i=ft(gn++,7);return jt(i.__H,t)&&(i.__=n(),i.__H=t,i.__h=n),i.__}function pt(n,t){return nt=8,dt((function(){return n}),t)}function yt(n){var t=jn.context[n.__c],i=ft(gn++,9);return i.c=n,t?(null==i.__&&(i.__=!0,t.sub(jn)),t.props.value):n.__}function mt(){tt.forEach((function(n){if(n.__P)try{n.__H.__h.forEach(wt),n.__H.__h.forEach(gt),n.__H.__h=[]}catch(t){n.__H.__h=[],Y.__e(t,n.__v)}})),tt=[]}Y.__b=function(n){jn=null,it&&it(n)},Y.__r=function(n){rt&&rt(n),gn=0;var t=(jn=n.__c).__H;t&&(t.__h.forEach(wt),t.__h.forEach(gt),t.__h=[])},Y.diffed=function(n){ut&&ut(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==tt.push(t)&&On===Y.requestAnimationFrame||((On=Y.requestAnimationFrame)||function(n){var t,i=function(){clearTimeout(r),bt&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(i,100);bt&&(t=requestAnimationFrame(i))})(mt)),jn=null},Y.__c=function(n,t){t.some((function(n){try{n.__h.forEach(wt),n.__h=n.__h.filter((function(n){return!n.__||gt(n)}))}catch(i){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Y.__e(i,n.__v)}})),et&&et(n,t)},Y.unmount=function(n){ot&&ot(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(wt)}catch(n){Y.__e(n,t.__v)}};var bt="function"==typeof requestAnimationFrame;function wt(n){var t=jn;"function"==typeof n.__c&&n.__c(),jn=t}function gt(n){var t=jn;n.__c=n.__(),jn=t}function jt(n,t){return!n||n.length!==t.length||t.some((function(t,i){return t!==n[i]}))}function Ot(n,t){return"function"==typeof t?t(n):t}function _t(n){return n.children}function St(n,t){return(St=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function kt(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&St(n,t)}function Pt(n){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function At(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Mt(n,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return At(n)}function zt(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Pt(n);if(t){var u=Pt(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return Mt(this,i)}}var Ct,xt,Et=["auto","lazy","eager","unload"],Rt=($(Ct={},"auto",0),$(Ct,"lazy",1),$(Ct,"eager",2),$(Ct,"unload",3),Ct);function Tt(n,t){var i=Rt[null!=n?n:"auto"]||0,r=Rt[null!=t?t:"auto"]||0,u=Math.max(i,r);return Et[u]}function Lt(n){return(n.ownerDocument||n).defaultView}function Bt(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function It(n){z(/^[\w-]+$/.test(n))}function Vt(n,t){if(void 0!==xt?xt:xt=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(Bt(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=Bt(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function Ft(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Ht(n,t){return It(t),Vt(n,"> [".concat(t,"]"))}function Nt(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Wt(r)&&i.push(r);return i}(n)}function Wt(n){return"string"==typeof(t=n)?i=t:M(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var $t={bubbles:!0,cancelable:!0};function qt(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Dt(n,t,i,r){var u=i||{};z(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||$t,f=o.bubbles,l=o.cancelable;e.initEvent(t,f,l),n.dispatchEvent(e)}var Gt=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Zt,"1")},t.resolveListQuery=function(n){return this.on(n,Ut,"")},t.complete=function(){for(var n in this.en)n in this.un||Jt(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Jt(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(z(this.en),r=this.en[n]),r||Jt(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Zt(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Ut(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var l=t.charAt(u);if(!("%"==l||"-"==l||"_"==l||l>="a"&&l<="z"||l>="A"&&l<="Z"||l>="0"&&l<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Jt(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Kt={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Qt=/vertical/,Xt=new WeakMap,Yt=new WeakMap,ni=new WeakMap;function ti(n){var t=Xt.get(n);return t||(t=new n.ResizeObserver(ii),Xt.set(n,t)),t}function ii(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Yt.get(u);if(e){ni.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],l=f.callback;ri(f.type,l,r)}}}}}function ri(n,t,i){if(0==n){var r=i.contentRect,u=r.height;a(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,l,c=i.target,s=Lt(c),v=Qt.test(function(n,t){return n.getComputedStyle(t)||Kt}(s,c).writingMode),h=c,d=h.offsetHeight,p=h.offsetWidth;v?(l=p,f=d):(f=p,l=d),e={inlineSize:f,blockSize:l}}a(t,e)}}var ui,ei,oi,fi,li=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Yt.get(n);if(u||(u=[],Yt.set(n,u),ti(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=ni.get(n);e&&setTimeout((function(){return ri(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Yt.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Yt.delete(n),ni.delete(n);var u=n.ownerDocument.defaultView;u&&ti(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function ci(n){if("object"!==("undefined"==typeof Reflect?"undefined":s(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ai(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ei&&oi===t||(ei=ci((oi=t).HTMLElement)),function(t){kt(r,ei);var i=zt(r);function r(){var t;return(t=i.call(this)).implementation=new n(At(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function si(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ai(t,i))}function vi(){return fi||(fi=Yn({renderable:!0,playable:!0,loading:"auto"}))}function hi(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,l=void 0===f||f,c=di(),a=l&&c.renderable,s=a&&o&&c.playable,v=Tt(a?"auto":"lazy",Tt(r,c.loading)),h=u||c.notify,d=dt((function(){return{renderable:a,playable:s,loading:v,notify:h}}),[a,s,v,h]);return Mn(vi().Provider,{children:t,value:d})}function di(){return yt(vi())}function pi(n){return Tt(n,di().loading)}ui="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Lt(n)}var t=n.prototype;return t.mutateElement=function(n){u().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var yi=Z("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(wi)},compute:function(n,t,i){return i&&t.reduce(wi,!0)||!1}}),mi=Z("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(wi)},deps:[yi],compute:function(n,t,i,r){return r&&i&&t.reduce(wi,!0)||!1}}),bi=Z("Loading",{defaultValue:"auto",recursive:!0,deps:[yi],compute:function(n,t,i,r){return Tt(r?"auto":"lazy",Tt(i||"auto",t.reduce(Tt,"auto")))}}),wi=function(n,t){return n&&t},gi=function(n){return n.ensureLoaded()},ji=function(n){return n.pause()},Oi=function(n){return n.unmount()};function _i(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!1,gi)}function Si(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!0,ji)}function ki(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Pi(n,t,!0,Oi)}function Pi(n,t,i,r){for(var u=k(n),e=0;e<u.length;e++)Ai(u[e],t,i,r)}function Ai(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(a(r,u),!i){var e=u.getPlaceholder();return void(e&&Ai(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,l=0;l<o.length;l++){var c=o[l];if(i)a(r,c);else{f=f||[];for(var s=!1,v=0;v<f.length;v++)if(f[v].contains(c)){s=!0;break}s||(f.push(c),a(r,c))}}}var Mi={},zi=new WeakMap;function Ci(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return Mn(xi,D(D({},i||Mi),{},{name:t}));var u=zi.get(n);if(u&&p(u.oldProps,i))return u.component;function e(n){return Mn(xi,D(D({},i||Mi),{},{name:t},n))}return zi.set(n,{oldProps:i,component:e}),e}function xi(n){var t=vt(null);return Ei(t,n),at((function(){n.postRender&&n.postRender()})),Mn("slot",D(D({},n),{},{ref:t}))}function Ei(n,t){var i=null==t?void 0:t.loading,r=di();st((function(){var t=n.current;return z(M(t)),pn(t,yi,xi,r.renderable),pn(t,mi,xi,r.playable),pn(t,bi,xi,r.loading),r.playable||Ri(t,Si,!0),function(){yn(t,yi,xi),yn(t,mi,xi),yn(t,bi,xi),dn(t)}}),[n,r]),st((function(){var t=n.current;return z(M(t)),"lazy"!=i&&Ri(t,_i,!0),function(){Ri(t,ki,!1)}}),[n,i])}function Ri(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var Ti,Li={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},Bi=(Ti=0,function(){return String(++Ti)});function Ii(n,t){return Object.values(n).some(t)}var Vi=function(n){return"string"==typeof n||!!n.selector},Fi=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Hi(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var l=D(D({},r),{},{ref:i});return o&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=o),e&&(n.usesShadowDom?l.style=Li:l.class="i-amphtml-fill-content"),Ni(n,l,f,t,u),u&&u.complete(),l}function Ni(n,t,i,r,u){if(Ii(i,Vi))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Wt(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],l=$i(f,i);if(l){var c=i[l],a=c.as,s=void 0!==a&&a,v=c.clone,h=c.name,d=void 0===h?l:h,p=c.props,y=void 0===p?{}:p,m=c.single;z(v||n.usesShadowDom);var b={};if(Ni(n,b,y,f,u),m)t[d]=Ci(f,f.getAttribute("slot")||"i-amphtml-".concat(d),b,s);else{var w=t[d]||(t[d]=[]);z(!s),w.push(v?Wi(f):Ci(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(Bi()),b))}}}for(var g in i){var j=i[g];z([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)z(n.usesShadowDom),O=[Mn(xi,{loading:"lazy"})];else if(j.passthroughNonEmpty)z(n.usesShadowDom),O=Nt(r).every(Fi)?null:[Mn(xi,{loading:"lazy"})];else if(j.attr){var _=r.getAttribute(j.attr);O=_&&j.parseAttr?j.parseAttr(_):_,j.media&&null!=O&&(z(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(z(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var S="number"==j.type?parseFloat(O):"boolean"==j.type?null==(k=O)?void 0:"false"!==k:O;t[g]=S}}var k}function Wi(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,l=o.value;t[f]=l}return Mn(r,t)}function $i(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&Ft(n,u))return i}return null}var qi={childList:!0},Di={childList:!0,characterData:!0},Gi={childList:!0},Zi={"style":"display: contents; background: inherit;","part":"c"},Ui={"name":"i-amphtml-svc"},Ji={"i-amphtml-rendered":""},Ki=function(){return!0},Qi=function(n){return!!n.media},Xi=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Yi=function(n){kt(r,n);var t=zt(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){z(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new li(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Ii(i,Vi)?qi:null,u=Ii(i,Xi)?Di:null,o=t.usesTemplate?Gi:null;this.observer.observe(this.element,D(D(D({attributes:!0},r),u),o)),this.xn=Ii(i,Qi)?new Gt(this.win,(function(){return n.Ln()})):null;var f=t.staticProps,l=this.init();Object.assign(this.vn,f,l),this.checkPropsPostMutations(),K(this.element,[],(function(){return function(){n.zn=!1,n._n&&Kn(null,n._n)}})),K(this.element,[yi,mi,bi],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var c,a=t.useContexts;return 0!=a.length&&K(this.element,a,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new e,this.Ln(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){vn(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;vn(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return z(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],l=t.attributeName;if(z(l),l==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(l)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,l))return!0}return!1}return"childList"==i&&(nr(t.addedNodes)||nr(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){z(!r);var f=this.element.shadowRoot,l=f&&(t=f,It("c"),Vt(t,"> ".concat("c")));if(l)this.Mn=!0;else{var c,a,s,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(z((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),l=qt(o,"c",Zi),f.appendChild(l);var y=qt(o,"slot",Ui);f.appendChild(y),null===(c=this.getPlaceholder)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot","i-amphtml-svc"),null===(s=this.getFallback)||void 0===s||null===(v=s.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=l,z(f),sn(f,this.element),mn(this.element,"unslotted",Ki,-1),bn(this.element,"unslotted",yi,this,!1)}else if(e){var m=this.element;this._n=m;var b=Ht(m,"i-amphtml-rendered")||qt(o,e,Ji);b.__AMP_RENDERED=!0,i.layoutSizeDefined&&b.classList.add("i-amphtml-fill-content"),this._n.appendChild(b)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;z(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var _=Hi(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(_),this.isReady(_)){for(var S=Mn(i.Component,_),k=0;k<j.length;k++){z(O);var P=j[k].type,A=O[k];A&&(S=Mn(P.Provider,{value:A},S))}var M=Mn(hi,D({},this.hn),S);try{if(this.Mn)this.Mn=!1,Qn(M,g);else{var C=e?Ht(g,"i-amphtml-rendered"):null;C&&(C.__AMP_RENDERED=!0),Kn(M,g,null!=C?C:void 0)}}catch(n){var x;throw null===(x=this.kn)||void 0===x||x.reject(n),n}u||r||this.mutateElement((function(){return Dt(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,h.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new e),this.jn.promise)},i.wn=function(n){for(var t=d(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Dt(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return z(n),n[t]},set:function(n){var r=i.yn;z(r),r[t]=n}})},r}(ui);function nr(n){for(var t=0;t<n.length;t++){var i=n[t];if(M(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function tr(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}function ir(n,t){function i(n){var i=this.props.ref,r=i==n.ref;return!r&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!r:function(n,t){for(var i in n)if("__source"!==i&&!(i in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}(this.props,n)}function r(t){return this.shouldComponentUpdate=i,Mn(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r._forwarded=!0,r}Yi.staticProps=void 0,Yi.useContexts=[],Yi.loadable=!1,Yi.unloadOnPause=!1,Yi.layoutSizeDefined=!1,Yi.lightDomTag="",Yi.usesTemplate=!1,Yi.shadowCss=null,Yi.usesShadowDom=!1,Yi.detached=!1,Yi.delegatesFocus=!1,Yi.props={};var rr,ur=["ref"],er="undefined"!=typeof Symbol&&(null===(rr=Symbol.for)||void 0===rr?void 0:rr.call(Symbol,"react.forward_ref"))||3911,or=Y.__b;Y.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.In&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==or||or(n)};var fr=function(n){function t(t){var i=t.ref,r=tr(t,ur);return n(r,i)}return t.$$typeof=er,t.render=t,t.prototype.isReactComponent=!0,t.In=!0,t},lr={toArray:function(n){return Fn(n)},map:function(n,t){return Fn(n).map(t)},count:function(n){return Fn(n).length}};function cr(n){var t=function(n,t){if("object"!==s(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===s(t)?t:String(t)}var ar=[null,"paint","layout","content","size","size paint","size layout","strict"],sr={"position":"relative","width":"100%","height":"100%"},vr=fr((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,l=n.contentClassName,c=n.contentProps,a=n.contentRef,s=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,y=n.size,m=void 0!==y&&y,b=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=(m?4:0)+(h?2:0)+(p?1:0);return Mn(u,D(D({},tr(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(cr))),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:D(D(D({},b),g),{},{contain:ar[O]})}),Mn(f,D(D({},c),{},{ref:a,class:l,style:D(D({},m&&sr),{},{"overflow":p?"hidden":"visible"},s)}),e))})),hr=fr((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,l=n.wrapperStyle,c=n[i];return Mn(u,D(D({},tr(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(cr))),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:D(D({},o),l)}),e)}));function dr(n){var t=vt(n);return t.current=n,t}function pr(n,t){ht(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}O(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new j(n),o=new g(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,l=f.attachShadow,c=f.createShadowRoot;function a(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return _(t,n.prototype),t}l&&(f.attachShadow=function(n){var t=l.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return l.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),O(i,a),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=a,a.call||(a.apply=n.Function.apply,a.bind=n.Function.bind,a.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento.core.js.map
;
var t;function n(){return t||(t=Promise.resolve(void 0))}var i=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function e(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,r=new Error(i);for(const n in t)r[n]=t[n];return r.stack=e,r}function r(t){let n=null,i="";for(const t of arguments)t instanceof Error&&!n?n=e(t):(i&&(i+=" "),i+=t);return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function s(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=r.apply(null,arguments);setTimeout((()=>{throw s(n),n}))}function u(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:c}=Object.prototype,{isArray:a}=Array;function f(t){return a(t)?t:[t]}function h(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function d(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function v(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,e,r,s,o,u,l,c,a){return t}function y(t,n){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function m(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&m(t,n,i,r,!1)}else if(t.children)for(const r of t.children)m(r,n,i,e,!0)}var b=[],_=()=>{};function g(t,n){return t.values.scan(n)}function P(t,n,i){return t.values.scanAll(i)}function A(t,n){return t.values.has(n)}function w(t){return!!t.recursive}function k(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||v(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(S)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=y(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:e}=t,r=this.o||(this.o=new Map);let s=r.get(e);s||(s={values:[],setters:[]},r.set(e,s));const o=s.setters.indexOf(n),u=-1==o||s.values[o]!==i;-1==o?(s.setters.push(n),s.values.push(i)):u&&(s.values[o]=i),u&&(this.ping(t,!1),w(t)&&m(this.i,g,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,e=this.o,r=null==e?void 0:e.get(i);if(r){p(e);const s=r.setters.indexOf(n);-1!=s&&(r.setters.splice(s,1),r.values.splice(s,1),0==r.setters.length&&e.delete(i),m(this.i,g,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!h(i.subscribers,n))return;const e=i.value;k(e)&&this.p()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.u)||void 0===i?void 0:i.get(t.key);e&&d(e.subscribers,n)&&this.m(e)}ping(t,n){var i,e;null===(i=this.u)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.p()&&m(this.i,P,void 0,b)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;w(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!w(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.i.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,e=this.u||(this.u=new Map);let r=e.get(i);return r||(r={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(_):b,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):b,pingParent:w(t)?t=>{r.parentValue=t,r.ping()}:null},e.set(i,r),n.forEach(((t,n)=>this.subscribe(t,r.pingDep[n]))),r.ping(!1)),r}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:r,key:s}=e;null===(n=this.u)||void 0===n||n.delete(s),this._(t,null),r.length>0&&r.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:e}=t,{key:r}=i,s=this.u;if(e===n||t!==(null==s?void 0:s.get(r))||!this.p())return;t.value=n;const{subscribers:o}=t;for(const t of o)t(n)}P(t,n){var i,e;p(this.p());const{depValues:r,prop:s}=t,{compute:o,defaultValue:u,key:l}=s,c=null===(i=this.o)||void 0===i||null===(e=i.get(l))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(s,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let r=e?t:t.parent;r;r=r.parent)if(n(r,i))return r;return null}(this.i,A,s,!1):null;this._(t,n)}const f=k(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(r.every(k)&&(!a||k(f))){const{node:t}=this.i;c&&!o?h=c[0]:w(s)?c||r.length>0?h=function(t,n,i,e,r){switch(r.length){case 0:return t(n,i,e);case 1:return t(n,i,e,r[0]);case 2:return t(n,i,e,r[0],r[1]);case 3:return t(n,i,e,r[0],r[1],r[2]);default:return t.apply(null,[n,i,e].concat(r))}}(o,t,c||b,f,r):k(f)&&(h=f):o&&(h=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(o,t,c||b,r))}return h}_(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(e),i&&i.values.unsubscribe(r,e),n&&(p(e),n.values.subscribe(r,e)))}}(this),this.k=null,this.M=!1,this.R=y(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(R),null===(n=M.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(S)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(S)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const e=this.groups||(this.groups=new Map),{children:r,node:s}=this,o=new M(s,t);return e.set(t,{cn:o,match:n,weight:i}),o.setParent(this),null==r||r.forEach(S),o}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:r,weight:s})=>{r(t,this.node)&&s>e&&(i=n,e=s)})),i}subscribe(t,n,i,e){const r=this.k||(this.k=new Map);let s=r.get(t);s||(s=new n(this,i,e),r.set(t,s))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&(p(e.children),d(e.children,this)),t){const n=t.children||(t.children=[]);h(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const e=M.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(const i of e.children)t.contains(i.node)&&n(i)}(t,S)}function S(t){t.discover()}function T(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function E(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?E(Object(i),!0).forEach((function(n){T(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var C=[];function I(t,n){const i=V({key:t,deps:C,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var O=[],j=()=>{};function z(t,n,i){n=f(n);const e=i;M.get(t).subscribe(e,B,i,n)}function x(t,n){const i=n;M.get(t).unsubscribe(i)}var N,$,L,D,U,q,W,F,B=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(j):O,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):O,this.N=!1,this.$=null,this.j=y(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(H)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(u(this.$),this.$=null)}};function H(t){return void 0!==t}function G(t,n){M.assignSlot(t,n)}function Q(t,n){M.unassignSlot(t,n)}function Z(t,n){M.get(t).setParent(n)}function J(t){M.get(t).discover()}function K(t,n){M.get(t).setIsRoot(n)}function X(t){M.rediscoverChildren(t)}function Y(t,n,i,e){M.get(t).values.set(n,i,e)}function tt(t,n,i){M.get(t).values.remove(n,i)}function nt(t,n,i,e=0){M.get(t).addGroup(n,i,e)}function it(t,n,i,e,r){var s;null===(s=M.get(t).group(n))||void 0===s||s.values.set(i,e,r)}function et(t,n,i,e){var r;null===(r=M.get(t).group(n))||void 0===r||r.values.remove(i,e)}var rt,st,ot,ut={},lt=[],ct=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function at(t,n){for(var i in n)t[i]=n[i];return t}function ft(t){var n=t.parentNode;n&&n.removeChild(t)}function ht(t,n,i){var e,r,s,o={};for(s in n)"key"==s?e=n[s]:"ref"==s?r=n[s]:o[s]=n[s];if(arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return dt(t,o,e,r,null)}function dt(t,n,i,e,r){var s={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++L:r};return null==r&&null!=$.vnode&&$.vnode(s),s}function vt(){return{current:null}}function pt(t){return t.children}function yt(t,n){this.props=t,this.context=n}function mt(t,n){if(null==n)return t.__?mt(t.__,t.__.__k.indexOf(t)+1):null;for(var i;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof t.type?mt(t):null}function bt(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return bt(t)}}function _t(t){(!t.__d&&(t.__d=!0)&&U.push(t)&&!gt.__r++||W!==$.debounceRendering)&&((W=$.debounceRendering)||q)(gt)}function gt(){for(var t;gt.__r=U.length;)t=U.sort((function(t,n){return t.__v.__b-n.__v.__b})),U=[],t.some((function(t){var n,i,e,r,s,o;t.__d&&(s=(r=(n=t).__v).__e,(o=n.__P)&&(i=[],(e=at({},r)).__v=r.__v+1,Et(o,r,e,n.__n,void 0!==o.ownerSVGElement,null!=r.__h?[s]:null,i,null==s?mt(r):s,r.__h),Vt(i,r),r.__e!=s&&bt(r)))}))}function Pt(t,n,i,e,r,s,o,u,l,c){var a,f,h,d,v,p,y,m=e&&e.__k||lt,b=m.length;for(i.__k=[],a=0;a<n.length;a++)if(null!=(d=i.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?dt(null,d,null,null,d):Array.isArray(d)?dt(pt,{children:d},null,null,null):d.__b>0?dt(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(h=m[a])||h&&d.key==h.key&&d.type===h.type)m[a]=void 0;else for(f=0;f<b;f++){if((h=m[f])&&d.key==h.key&&d.type===h.type){m[f]=void 0;break}h=null}Et(t,d,h=h||ut,r,s,o,u,l,c),v=d.__e,(f=d.ref)&&h.ref!=f&&(y||(y=[]),h.ref&&y.push(h.ref,null,d),y.push(f,d.__c||v,d)),null!=v?(null==p&&(p=v),"function"==typeof d.type&&d.__k===h.__k?d.__d=l=At(d,l,t):l=kt(t,d,h,m,v,l),"function"==typeof i.type&&(i.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=mt(h))}for(i.__e=p,a=b;a--;)null!=m[a]&&("function"==typeof i.type&&null!=m[a].__e&&m[a].__e==i.__d&&(i.__d=mt(e,a+1)),It(m[a],m[a]));if(y)for(a=0;a<y.length;a++)Ct(y[a],y[++a],y[++a])}function At(t,n,i){for(var e,r=t.__k,s=0;r&&s<r.length;s++)(e=r[s])&&(e.__=t,n="function"==typeof e.type?At(e,n,i):kt(i,e,e,r,e.__e,n));return n}function wt(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){wt(t,n)})):n.push(t)),n}function kt(t,n,i,e,r,s){var o,u,l;if(void 0!==n.__d)o=n.__d,n.__d=void 0;else if(null==i||r!=s||null==r.parentNode)t:if(null==s||s.parentNode!==t)t.appendChild(r),o=null;else{for(u=s,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==r)break t;t.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function Mt(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||ct.test(n)?i:i+"px"}function Rt(t,n,i,e,r){var s;t:if("style"===n)if("string"==typeof i)t.style.cssText=i;else{if("string"==typeof e&&(t.style.cssText=e=""),e)for(n in e)i&&n in i||Mt(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||Mt(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])s=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+s]=i,i?e||t.addEventListener(n,s?Tt:St,s):t.removeEventListener(n,s?Tt:St,s);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==i?"":i;break t}catch(t){}"function"==typeof i||(null!=i&&(!1!==i||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,i):t.removeAttribute(n))}}function St(t){this.l[t.type+!1]($.event?$.event(t):t)}function Tt(t){this.l[t.type+!0]($.event?$.event(t):t)}function Et(t,n,i,e,r,s,o,u,l){var c,a,f,h,d,v,p,y,m,b,_,g=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(l=i.__h,u=n.__e=i.__e,n.__h=null,s=[u]),(c=$.__b)&&c(n);try{t:if("function"==typeof g){if(y=n.props,m=(c=g.contextType)&&e[c.__c],b=c?m?m.props.value:c.__:e,i.__c?p=(a=n.__c=i.__c).__=a.__E:("prototype"in g&&g.prototype.render?n.__c=a=new g(y,b):(n.__c=a=new yt(y,b),a.constructor=g,a.render=Ot),m&&m.sub(a),a.props=y,a.state||(a.state={}),a.context=b,a.__n=e,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=g.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=at({},a.__s)),at(a.__s,g.getDerivedStateFromProps(y,a.__s))),h=a.props,d=a.state,f)null==g.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==g.getDerivedStateFromProps&&y!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,b)||n.__v===i.__v){a.props=y,a.state=a.__s,n.__v!==i.__v&&(a.__d=!1),a.__v=n,n.__e=i.__e,n.__k=i.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&o.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,v)}))}a.context=b,a.props=y,a.state=a.__s,(c=$.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=t,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(e=at(at({},e),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),_=null!=c&&c.type===pt&&null==c.key?c.props.children:c,Pt(t,Array.isArray(_)?_:[_],n,i,e,r,s,o,u,l),a.base=n.__e,n.__h=null,a.__h.length&&o.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==s&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,r,s,o,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(r=!0),null!=s)for(;v<s.length;v++)if((l=s[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,s[v]=null;break}if(null==t){if(null===d)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(s=s&&N.call(t.childNodes),c=(f=i.props||ut).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=s)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(function(t,n,i,e,r){var s;for(s in i)"children"===s||"key"===s||s in n||Rt(t,s,null,i[s],e);for(s in n)r&&"function"!=typeof n[s]||"children"===s||"key"===s||"value"===s||"checked"===s||i[s]===n[s]||Rt(t,s,n[s],i[s],e)}(t,h,f,r,u),a)n.__k=[];else if(v=n.props.children,Pt(t,Array.isArray(v)?v:[v],n,i,e,r&&"foreignObject"!==d,s,o,s?s[0]:i.__k&&mt(i,0),u),null!=s)for(v=s.length;v--;)null!=s[v]&&ft(s[v]);u||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===d&&!v)&&Rt(t,"value",v,f.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&Rt(t,"checked",v,f.checked,!1))}return t}(i.__e,n,i,e,r,s,o,l);(c=$.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),$.__e(t,n,i)}}function Vt(t,n){$.__c&&$.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){$.__e(t,n.__v)}}))}function Ct(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){$.__e(t,i)}}function It(t,n,i){var e,r;if($.unmount&&$.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||Ct(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){$.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&It(e[r],n,"function"!=typeof t.type);i||null==t.__e||ft(t.__e),t.__e=t.__d=void 0}function Ot(t,n,i){return this.constructor(t,i)}function jt(t,n,i){var e,r,s;$.__&&$.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,s=[],Et(n,t=(!e&&i||n).__k=ht(pt,null,[t]),r||ut,ut,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?N.call(n.childNodes):null,s,!e&&i?i:r?r.__e:n.firstChild,e),Vt(s,t)}function zt(t,n){jt(t,n,zt)}function xt(t,n,i){var e,r,s,o=at({},t.props);for(s in n)"key"==s?e=n[s]:"ref"==s?r=n[s]:o[s]=n[s];return arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),dt(t.type,o,e||t.key,r||t.ref,null)}function Nt(t,n){var i={__c:n="__cC"+F++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(_t)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}};return i.Provider.__=i.Consumer.contextType=i}N=lt.slice,$={__e:function(t,n){for(var i,e,r;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),r=i.__d),r)return i.__E=i}catch(n){t=n}throw t}},L=0,D=function(t){return null!=t&&void 0===t.constructor},yt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=at({},this.state),"function"==typeof t&&(t=t(at({},i),this.props)),t&&at(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),_t(this))},yt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_t(this))},yt.prototype.render=pt,U=[],q="function"==typeof Promise?Promise.prototype.then.bind(n()):setTimeout,gt.__r=0,F=0;var $t=0,Lt=[],Dt=$.__b,Ut=$.__r,qt=$.diffed,Wt=$.__c,Ft=$.unmount;function Bt(t,n){$.__h&&$.__h(st,t,$t||n),$t=0;var i=st.__H||(st.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function Ht(t){return $t=1,Gt(un,t)}function Gt(t,n,i){var e=Bt(rt++,2);return e.t=t,e.__c||(e.__=[i?i(n):un(void 0,n),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=st),e.__}function Qt(t,n){var i=Bt(rt++,3);!$.__s&&on(i.__H,n)&&(i.__=t,i.__H=n,st.__H.__h.push(i))}function Zt(t,n){var i=Bt(rt++,4);!$.__s&&on(i.__H,n)&&(i.__=t,i.__H=n,st.__h.push(i))}function Jt(t){return $t=5,Xt((function(){return{current:t}}),[])}function Kt(t,n,i){$t=6,Zt((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==i?i:i.concat(t))}function Xt(t,n){var i=Bt(rt++,7);return on(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function Yt(t,n){return $t=8,Xt((function(){return t}),n)}function tn(t){var n=st.context[t.__c],i=Bt(rt++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub(st)),n.props.value):t.__}function nn(){Lt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(rn),t.__H.__h.forEach(sn),t.__H.__h=[]}catch(n){t.__H.__h=[],$.__e(n,t.__v)}})),Lt=[]}$.__b=function(t){st=null,Dt&&Dt(t)},$.__r=function(t){Ut&&Ut(t),rt=0;var n=(st=t.__c).__H;n&&(n.__h.forEach(rn),n.__h.forEach(sn),n.__h=[])},$.diffed=function(t){qt&&qt(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==Lt.push(n)&&ot===$.requestAnimationFrame||((ot=$.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),en&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);en&&(n=requestAnimationFrame(i))})(nn)),st=null},$.__c=function(t,n){n.some((function(t){try{t.__h.forEach(rn),t.__h=t.__h.filter((function(t){return!t.__||sn(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],$.__e(i,t.__v)}})),Wt&&Wt(t,n)},$.unmount=function(t){Ft&&Ft(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(rn)}catch(t){$.__e(t,n.__v)}};var en="function"==typeof requestAnimationFrame;function rn(t){var n=st;"function"==typeof t.__c&&t.__c(),st=n}function sn(t){var n=st;t.__c=t.__(),st=n}function on(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function un(t,n){return"function"==typeof n?n(t):n}function ln(t){return t.children}var cn=["auto","lazy","eager","unload"],an={auto:0,lazy:1,eager:2,unload:3};function fn(t,n){const i=an[null!=t?t:"auto"]||0,e=an[null!=n?n:"auto"]||0,r=Math.max(i,e);return cn[r]}function hn(t){return(t.ownerDocument||t).defaultView}function dn(t){p(/^[\w-]+$/.test(t))}function vn(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function pn(t,n){return t.matches(n)}function yn(t,n){return dn(n),vn(t,`> [${n}]`)}function mn(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!bn(n)&&i.push(n);return i}(t)}function bn(t){return!!function(t){let n;return"string"==typeof t?n=t:v(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var _n={bubbles:!0,cancelable:!0};function gn(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Pn(t,n,i,e){const r=i||{};p(t.ownerDocument);const s=t.ownerDocument.createEvent("Event");s.data=r;const{bubbles:o,cancelable:u}=e||_n;s.initEvent(n,o,u),t.dispatchEvent(s)}function An(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function wn(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,r;if(")"==n.charAt(n.length-1)){let t=1;for(r=n.length-2;r>=0;r--){const i=n.charAt(r);if("("==i?t--:")"==i&&t++,0==t)break}const i=r-1;if(r>0)for(r--;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(r>=i)return null}else for(r=n.length-2;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return r>=0?(i=n.substring(0,r+1).trim(),e=n.substring(r+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function kn(t,n,i){for(let e=0;e<t.length;e++){const{query:r}=t[e];r&&(void 0!==r.onchange?r.onchange=i?n:null:i?r.addListener(n):r.removeListener(n))}}var Mn,Rn,Sn,Tn,En={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Vn=/vertical/,Cn=new WeakMap,In=new WeakMap,On=new WeakMap;function jn(t){let n=Cn.get(t);return n||(n=new t.ResizeObserver(zn),Cn.set(t,n)),n}function zn(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:r}=e;if(n.has(r))continue;n.add(r);const s=In.get(r);if(s){On.set(r,e);for(let t=0;t<s.length;t++){const{callback:n,type:i}=s[t];xn(i,n,e)}}}}function xn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;u(n,{width:r,height:e})}else if(1==t){const{borderBoxSize:t}=i;let e;if(t)e=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=hn(t),r=Vn.test(function(t,n){return t.getComputedStyle(n)||En}(n,t).writingMode),{offsetHeight:s,offsetWidth:o}=t;let u,l;r?(l=o,u=s):(u=o,l=s),e={inlineSize:u,blockSize:l}}u(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Mn=AMP.BaseElement;else{class t{constructor(t){this.element=t,this.win=hn(t)}mutateElement(t){n().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Mn=t}function Nn(t,n,i=self){i.customElements.define(t,function(t,n=self){return Rn&&Sn===n||(Rn=(Sn=n).HTMLElement),class extends Rn{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function $n(){return Tn||(Tn=Nt({renderable:!0,playable:!0,loading:"auto"}))}function Ln({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const s=Dn(),o=r&&s.renderable,u=o&&e&&s.playable,l=fn(o?"auto":"lazy",fn(n,s.loading)),c=i||s.notify,a=Xt((()=>({renderable:o,playable:u,loading:l,notify:c})),[o,u,l,c]);return ht($n().Provider,{children:t,value:a})}function Dn(){return tn($n())}function Un(t){const{loading:n}=Dn();return fn(t,n)}var qn=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Bn),compute:(t,n,i)=>i&&n.reduce(Bn,!0)||!1}),Wn=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Bn),deps:[qn],compute:(t,n,i,e)=>e&&i&&n.reduce(Bn,!0)||!1}),Fn=I("Loading",{defaultValue:"auto",recursive:!0,deps:[qn],compute:(t,n,i,e)=>fn(e?"auto":"lazy",fn(i||"auto",n.reduce(fn,"auto")))}),Bn=(t,n)=>t&&n,Hn=t=>t.ensureLoaded(),Gn=t=>t.pause(),Qn=t=>t.unmount();function Zn(t,n=!0){Xn(t,n,!1,Hn)}function Jn(t,n=!0){Xn(t,n,!0,Gn)}function Kn(t,n=!0){Xn(t,n,!0,Qn)}function Xn(t,n,i,e){const r=f(t);for(let t=0;t<r.length;t++)Yn(r[t],n,i,e)}function Yn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(u(e,n),!i){const t=n.getPlaceholder();return void(t&&Yn(t,!0,!1,e))}}const r=t.getElementsByClassName("i-amphtml-element");let s=null;for(let t=0;t<r.length;t++){const n=r[t];if(i)u(e,n);else{s=s||[];let t=!1;for(let i=0;i<s.length;i++)if(s[i].contains(n)){t=!0;break}t||(s.push(n),u(e,n))}}}var ti={},ni=new WeakMap;function ii(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return ht(ei,V(V({},i||ti),{},{name:n}));const r=ni.get(t);if(r&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(r.oldProps,i))return r.component;function s(t){return ht(ei,V(V({},i||ti),{},{name:n},t))}return ni.set(t,{oldProps:i,component:s}),s}function ei(t){const n=Jt(null);return ri(n,t),Qt((()=>{t.postRender&&t.postRender()})),ht("slot",V(V({},t),{},{ref:n}))}function ri(t,n){const i=null==n?void 0:n.loading,e=Dn();Zt((()=>{const n=t.current;return p(v(n)),Y(n,qn,ei,e.renderable),Y(n,Wn,ei,e.playable),Y(n,Fn,ei,e.loading),e.playable||si(n,Jn,!0),()=>{tt(n,qn,ei),tt(n,Wn,ei),tt(n,Fn,ei),X(n)}}),[t,e]),Zt((()=>{const n=t.current;return p(v(n)),"lazy"!=i&&si(n,Zn,!0),()=>{si(n,Kn,!1)}}),[t,i])}function si(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const r=t.ownerDocument.defaultView;r&&(r.requestIdleCallback||r.setTimeout)((()=>n(e)))}var oi={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ui=function(){let t=0;return()=>String(++t)}();function li(t,n){return Object.values(t).some(n)}var ci=t=>"string"==typeof t||!!t.selector,ai=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function fi(t,n,i,e,r){const{"layoutSizeDefined":s,"lightDomTag":o,"props":u}=t;r&&r.start();const l=V(V({},e),{},{ref:i});return o&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=o),s&&(t.usesShadowDom?l.style=oi:l.class="i-amphtml-fill-content"),hi(t,l,u,n,r),r&&r.complete(),l}function hi(t,n,i,e,r){if(li(i,ci)){const s=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!bn(n)&&i.push(n);return i}(t)}(e);for(let e=0;e<s.length;e++){const o=s[e],u=vi(o,i);if(!u)continue;const l=i[u],{as:c=!1,single:a,name:f=u,clone:h,props:d={}}=l;p(h||t.usesShadowDom);const v={};if(hi(t,v,d,o,r),a)n[f]=ii(o,o.getAttribute("slot")||`i-amphtml-${f}`,v,c);else{const t=n[f]||(n[f]=[]);p(!c),t.push(h?di(o):ii(o,o.getAttribute("slot")||`i-amphtml-${f}-${ui()}`,v))}}}for(const o in i){const u=i[o];let l;if(p([u.attr,u.attrs,u.attrMatches,u.selector,u.passthrough,u.passthroughNonEmpty].filter(Boolean).length<=1),u.passthrough)p(t.usesShadowDom),l=[ht(ei,{loading:"lazy"})];else if(u.passthroughNonEmpty)p(t.usesShadowDom),l=mn(e).every(ai)?null:[ht(ei,{loading:"lazy"})];else if(u.attr){const t=e.getAttribute(u.attr);l=t&&u.parseAttr?u.parseAttr(t):t,u.media&&null!=l&&(p(r),l=r.resolveListQuery(String(l)))}else u.parseAttrs&&(p(u.attrs||u.attrMatches),l=u.parseAttrs(e));if(null==l)null!=u.default&&(n[o]=u.default);else{const t="number"==u.type?parseFloat(l):"boolean"==u.type?null==(s=l)?void 0:"false"!==s:l;n[o]=t}}var s}function di(t){const n={"key":t},{attributes:i,localName:e}=t,{length:r}=i;for(let t=0;t<r;t++){const{name:e,value:r}=i[t];n[e]=r}return ht(e,n)}function vi(t,n){for(const i in n){const e=n[i],r="string"==typeof e?e:e.selector;if(r&&pn(t,r))return i}return null}var pi={childList:!0},yi={childList:!0,characterData:!0},mi={childList:!0},bi={"style":"display: contents; background: inherit;","part":"c"},_i={"name":"i-amphtml-svc"},gi={"i-amphtml-rendered":""},Pi=()=>!0,Ai=t=>!!t.media,wi=t=>!(!t.passthrough&&!t.passthroughNonEmpty),ki=class extends Mn{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=In.get(t);if(r||(r=[],In.set(t,r),jn(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=On.get(t);n&&setTimeout((()=>xn(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const e=In.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const o=t[n];(s=o).callback===i&&1===s.type?e.push(o):(r<n&&(t[r]=o),r++)}var s;r<t.length&&(t.length=r)}(e),0==e.length)){In.delete(t),On.delete(t);const n=t.ownerDocument.defaultView;n&&jn(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const e=this.ct;i||e.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:n}=t,e=li(n,ci)?pi:null,r=li(n,wi)?yi:null,s=t.usesTemplate?mi:null;this.observer.observe(this.element,V(V(V({attributes:!0},e),r),s)),this.vt=li(n,Ai)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,An,"1")}resolveListQuery(t){return this.At(t,wn,"")}complete(){for(const t in this.Pt)t in this.gt||kn(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)kn(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let e=this.gt[t];return e||(p(this.Pt),e=this.Pt[t]),e||(e=n(this.bt,t),kn(e,this._t,!0)),this.gt[t]=e,function(t){for(let n=0;n<t.length;n++){const{query:i,value:e}=t[n];if(!i||i.matches)return e}return""}(e)}}(this.win,(()=>this.wt())):null;const{staticProps:o}=t,u=this.init();Object.assign(this.W,o,u),this.checkPropsPostMutations(),z(this.element,[],(()=>()=>{this.ut=!1,this.nt&&jt(null,this.nt)})),z(this.element,[qn,Wn,Fn],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:l}=t;var c;return 0!=l.length&&z(this.element,l,((...t)=>{this.tt=t,this.wt()})),this.et=new i,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){J(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;J(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var e,r;const s=i[t],o=n.attributeName;if(p(o),o==s.attr||null!==(e=s.attrs)&&void 0!==e&&e.includes(o)||null!==(r=s.attrMatches)&&void 0!==r&&r.call(s,o))return!0}return!1}return"childList"==i&&(Mi(n.addedNodes)||Mi(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,e=i?null:t.lightDomTag;if(!this.nt){const f=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,e=i&&(a=i,dn("c"),vn(a,"> c"));if(e)this.ot=!0;else{var r,s,o,u,l,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const e=t.ownerDocument,r=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==r.CSSStyleSheet.prototype.replaceSync){const e=r.__AMP_SHADOW_CSS||(r.__AMP_SHADOW_CSS={});let s=e[n];s||(s=new r.CSSStyleSheet,p(s.replaceSync),s.replaceSync(i),e[n]=s),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(s)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(i,this.element.tagName,n),e=gn(f,"c",bi),i.appendChild(e);const a=gn(f,"slot",_i);i.appendChild(a),null===(r=this.getPlaceholder)||void 0===r||null===(s=r.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(o=this.getFallback)||void 0===o||null===(u=o.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(l=this.getOverflowElement)||void 0===l||null===(c=l.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=e,p(i),Z(i,this.element),nt(this.element,"unslotted",Pi,-1),it(this.element,"unslotted",qn,this,!1)}else if(e){const n=this.element;this.nt=n;const i=yn(n,"i-amphtml-rendered")||gn(f,e,gi);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=f.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var a;const f=this.nt;p(f);const{useContexts:h}=t,d=this.tt;if(0!=h.length&&null==d)return;const v=fi(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let y=ht(t.Component,v);for(let t=0;t<h.length;t++){p(d);const n=h[t].type,i=d[t];i&&(y=ht(n.Provider,{value:i},y))}const m=ht(Ln,V({},this.F),y);try{if(this.ot)this.ot=!1,zt(m,f);else{const t=e?yn(f,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),jt(m,f,null!=t?t:void 0)}}catch(t){var b;throw null===(b=this.et)||void 0===b||b.reject(t),t}i||n||this.mutateElement((()=>Pn(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,e=t,l.call(i,e)?this.W[t]:n;var i,e}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new i),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const e=i[t];this.kt(n,e)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Pn(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Mi(t){for(let n=0;n<t.length;n++){const i=t[n];if(v(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function Ri(t,n){if(null==t)return{};var i,e,r={},s=Object.keys(t);for(e=0;e<s.length;e++)i=s[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}function Si(t,n){function i(t){const{ref:i}=this.props,e=i==t.ref;return!e&&i&&(i.call?i(null):i.current=null),n?!n(this.props,t)||!e:function(t,n){for(const i in t)if("__source"!==i&&!(i in n))return!0;for(const i in n)if("__source"!==i&&t[i]!==n[i])return!0;return!1}(this.props,t)}function e(n){return this.shouldComponentUpdate=i,ht(t,n)}return e.displayName="Memo("+(t.displayName||t.name)+")",e.prototype.isReactComponent=!0,e._forwarded=!0,e}ki.staticProps=void 0,ki.useContexts=[],ki.loadable=!1,ki.unloadOnPause=!1,ki.layoutSizeDefined=!1,ki.lightDomTag="",ki.usesTemplate=!1,ki.shadowCss=null,ki.usesShadowDom=!1,ki.detached=!1,ki.delegatesFocus=!1,ki.props={};var Ti,Ei=["ref"],Vi="undefined"!=typeof Symbol&&(null===(Ti=Symbol.for)||void 0===Ti?void 0:Ti.call(Symbol,"react.forward_ref"))||3911,Ci=$.__b;$.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.Mt&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==Ci||Ci(t)};var Ii=function(t){function n(n){const{ref:i}=n,e=Ri(n,Ei);return t(e,i)}return n.$$typeof=Vi,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},Oi={toArray:function(t){return wt(t)},map:function(t,n){return wt(t).map(n)},count:function(t){return wt(t).length}};function ji(t){return(ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zi(t){var n=function(t,n){if("object"!==ji(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==ji(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ji(n)?n:String(n)}var xi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ni={"position":"relative","width":"100%","height":"100%"},$i=Ii((function(t,n){let i="class",{as:e="div",children:r,contentAs:s="div",contentClassName:o,contentProps:u,contentRef:l,contentStyle:c,layout:a=!1,paint:f=!1,size:h=!1,"style":d,wrapperClassName:v,wrapperStyle:p,[i]:y}=t;const m=(h?4:0)+(a?2:0)+(f?1:0);return ht(e,V(V({},Ri(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(zi))),{},{ref:n,class:`${y||""} ${v||""}`.trim()||null,style:V(V(V({},d),p),{},{contain:xi[m]})}),ht(s,V(V({},u),{},{ref:l,class:o,style:V(V({},h&&Ni),{},{"overflow":f?"hidden":"visible"},c)}),r))})),Li=Ii((function(t,n){let i="class",{as:e="div",children:r,"style":s,wrapperClassName:o,wrapperStyle:u,[i]:l}=t;return ht(e,V(V({},Ri(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(zi))),{},{ref:n,class:`${l||""} ${o||""}`.trim()||null,style:V(V({},s),u)}),r)}));function Di(t){const n=Jt(t);return n.current=t,n}function Ui(t,n){Kt(t,(()=>n),[n])}export{Mn as BaseElement,Oi as Children,$i as ContainWrapper,ln as Fragment,ki as PreactBaseElement,ei as Slot,Ln as WithAmpContext,Li as Wrapper,nt as addGroup,G as assignSlot,xt as cloneElement,I as contextProp,Nt as createContext,ht as createElement,vt as createRef,ii as createSlot,Nn as defineBentoElement,J as discover,Ii as forwardRef,zt as hydrate,D as isValidElement,Si as memo,X as rediscoverChildren,et as removeGroupProp,tt as removeProp,jt as render,it as setGroupProp,K as setIsRoot,Z as setParent,Y as setProp,z as subscribe,Q as unassignSlot,x as unsubscribe,Dn as useAmpContext,Yt as useCallback,tn as useContext,Ui as useDOMHandle,Qt as useEffect,Kt as useImperativeHandle,Zt as useLayoutEffect,Un as useLoading,Xt as useMemo,Gt as useReducer,Jt as useRef,ri as useSlotContext,Ht as useState,Di as useValueRef};
var t;function n(){return t||(t=Promise.resolve(void 0))}var i=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function e(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,r=new Error(i);for(const n in t)r[n]=t[n];return r.stack=e,r}function r(t){let n=null,i="";for(const t of arguments)t instanceof Error&&!n?n=e(t):(i&&(i+=" "),i+=t);return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function s(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=r.apply(null,arguments);setTimeout((()=>{throw s(n),n}))}function u(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:c}=Object.prototype,{isArray:a}=Array;function f(t){return a(t)?t:[t]}function h(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function d(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function v(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,e,r,s,o,u,l,c,a){return t}function y(t,n){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function m(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&m(t,n,i,r,!1)}else if(t.children)for(const r of t.children)m(r,n,i,e,!0)}var b=[],_=()=>{};function g(t,n){return t.values.scan(n)}function P(t,n,i){return t.values.scanAll(i)}function A(t,n){return t.values.has(n)}function w(t){return!!t.recursive}function k(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||v(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(S)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=y(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:e}=t,r=this.o||(this.o=new Map);let s=r.get(e);s||(s={values:[],setters:[]},r.set(e,s));const o=s.setters.indexOf(n),u=-1==o||s.values[o]!==i;-1==o?(s.setters.push(n),s.values.push(i)):u&&(s.values[o]=i),u&&(this.ping(t,!1),w(t)&&m(this.i,g,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,e=this.o,r=null==e?void 0:e.get(i);if(r){p(e);const s=r.setters.indexOf(n);-1!=s&&(r.setters.splice(s,1),r.values.splice(s,1),0==r.setters.length&&e.delete(i),m(this.i,g,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!h(i.subscribers,n))return;const e=i.value;k(e)&&this.p()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.u)||void 0===i?void 0:i.get(t.key);e&&d(e.subscribers,n)&&this.m(e)}ping(t,n){var i,e;null===(i=this.u)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.p()&&m(this.i,P,void 0,b)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;w(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!w(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.i.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,e=this.u||(this.u=new Map);let r=e.get(i);return r||(r={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(_):b,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):b,pingParent:w(t)?t=>{r.parentValue=t,r.ping()}:null},e.set(i,r),n.forEach(((t,n)=>this.subscribe(t,r.pingDep[n]))),r.ping(!1)),r}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:r,key:s}=e;null===(n=this.u)||void 0===n||n.delete(s),this._(t,null),r.length>0&&r.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:e}=t,{key:r}=i,s=this.u;if(e===n||t!==(null==s?void 0:s.get(r))||!this.p())return;t.value=n;const{subscribers:o}=t;for(const t of o)t(n)}P(t,n){var i,e;p(this.p());const{depValues:r,prop:s}=t,{compute:o,defaultValue:u,key:l}=s,c=null===(i=this.o)||void 0===i||null===(e=i.get(l))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(s,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let r=e?t:t.parent;r;r=r.parent)if(n(r,i))return r;return null}(this.i,A,s,!1):null;this._(t,n)}const f=k(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(r.every(k)&&(!a||k(f))){const{node:t}=this.i;c&&!o?h=c[0]:w(s)?c||r.length>0?h=function(t,n,i,e,r){switch(r.length){case 0:return t(n,i,e);case 1:return t(n,i,e,r[0]);case 2:return t(n,i,e,r[0],r[1]);case 3:return t(n,i,e,r[0],r[1],r[2]);default:return t.apply(null,[n,i,e].concat(r))}}(o,t,c||b,f,r):k(f)&&(h=f):o&&(h=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(o,t,c||b,r))}return h}_(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(e),i&&i.values.unsubscribe(r,e),n&&(p(e),n.values.subscribe(r,e)))}}(this),this.k=null,this.M=!1,this.R=y(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(R),null===(n=M.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(S)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(S)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const e=this.groups||(this.groups=new Map),{children:r,node:s}=this,o=new M(s,t);return e.set(t,{cn:o,match:n,weight:i}),o.setParent(this),null==r||r.forEach(S),o}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:r,weight:s})=>{r(t,this.node)&&s>e&&(i=n,e=s)})),i}subscribe(t,n,i,e){const r=this.k||(this.k=new Map);let s=r.get(t);s||(s=new n(this,i,e),r.set(t,s))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&(p(e.children),d(e.children,this)),t){const n=t.children||(t.children=[]);h(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const e=M.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(const i of e.children)t.contains(i.node)&&n(i)}(t,S)}function S(t){t.discover()}function T(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function E(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?E(Object(i),!0).forEach((function(n){T(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var C=[];function I(t,n){const i=V({key:t,deps:C,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var O=[],j=()=>{};function z(t,n,i){n=f(n);const e=i;M.get(t).subscribe(e,B,i,n)}function x(t,n){const i=n;M.get(t).unsubscribe(i)}var N,$,L,D,U,q,W,F,B=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(j):O,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):O,this.N=!1,this.$=null,this.j=y(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(H)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(u(this.$),this.$=null)}};function H(t){return void 0!==t}function G(t,n){M.assignSlot(t,n)}function Q(t,n){M.unassignSlot(t,n)}function Z(t,n){M.get(t).setParent(n)}function J(t){M.get(t).discover()}function K(t,n){M.get(t).setIsRoot(n)}function X(t){M.rediscoverChildren(t)}function Y(t,n,i,e){M.get(t).values.set(n,i,e)}function tt(t,n,i){M.get(t).values.remove(n,i)}function nt(t,n,i,e=0){M.get(t).addGroup(n,i,e)}function it(t,n,i,e,r){var s;null===(s=M.get(t).group(n))||void 0===s||s.values.set(i,e,r)}function et(t,n,i,e){var r;null===(r=M.get(t).group(n))||void 0===r||r.values.remove(i,e)}var rt,st,ot,ut={},lt=[],ct=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function at(t,n){for(var i in n)t[i]=n[i];return t}function ft(t){var n=t.parentNode;n&&n.removeChild(t)}function ht(t,n,i){var e,r,s,o={};for(s in n)"key"==s?e=n[s]:"ref"==s?r=n[s]:o[s]=n[s];if(arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return dt(t,o,e,r,null)}function dt(t,n,i,e,r){var s={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++L:r};return null==r&&null!=$.vnode&&$.vnode(s),s}function vt(){return{current:null}}function pt(t){return t.children}function yt(t,n){this.props=t,this.context=n}function mt(t,n){if(null==n)return t.__?mt(t.__,t.__.__k.indexOf(t)+1):null;for(var i;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof t.type?mt(t):null}function bt(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return bt(t)}}function _t(t){(!t.__d&&(t.__d=!0)&&U.push(t)&&!gt.__r++||W!==$.debounceRendering)&&((W=$.debounceRendering)||q)(gt)}function gt(){for(var t;gt.__r=U.length;)t=U.sort((function(t,n){return t.__v.__b-n.__v.__b})),U=[],t.some((function(t){var n,i,e,r,s,o;t.__d&&(s=(r=(n=t).__v).__e,(o=n.__P)&&(i=[],(e=at({},r)).__v=r.__v+1,Et(o,r,e,n.__n,void 0!==o.ownerSVGElement,null!=r.__h?[s]:null,i,null==s?mt(r):s,r.__h),Vt(i,r),r.__e!=s&&bt(r)))}))}function Pt(t,n,i,e,r,s,o,u,l,c){var a,f,h,d,v,p,y,m=e&&e.__k||lt,b=m.length;for(i.__k=[],a=0;a<n.length;a++)if(null!=(d=i.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?dt(null,d,null,null,d):Array.isArray(d)?dt(pt,{children:d},null,null,null):d.__b>0?dt(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(h=m[a])||h&&d.key==h.key&&d.type===h.type)m[a]=void 0;else for(f=0;f<b;f++){if((h=m[f])&&d.key==h.key&&d.type===h.type){m[f]=void 0;break}h=null}Et(t,d,h=h||ut,r,s,o,u,l,c),v=d.__e,(f=d.ref)&&h.ref!=f&&(y||(y=[]),h.ref&&y.push(h.ref,null,d),y.push(f,d.__c||v,d)),null!=v?(null==p&&(p=v),"function"==typeof d.type&&d.__k===h.__k?d.__d=l=At(d,l,t):l=kt(t,d,h,m,v,l),"function"==typeof i.type&&(i.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=mt(h))}for(i.__e=p,a=b;a--;)null!=m[a]&&("function"==typeof i.type&&null!=m[a].__e&&m[a].__e==i.__d&&(i.__d=mt(e,a+1)),It(m[a],m[a]));if(y)for(a=0;a<y.length;a++)Ct(y[a],y[++a],y[++a])}function At(t,n,i){for(var e,r=t.__k,s=0;r&&s<r.length;s++)(e=r[s])&&(e.__=t,n="function"==typeof e.type?At(e,n,i):kt(i,e,e,r,e.__e,n));return n}function wt(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){wt(t,n)})):n.push(t)),n}function kt(t,n,i,e,r,s){var o,u,l;if(void 0!==n.__d)o=n.__d,n.__d=void 0;else if(null==i||r!=s||null==r.parentNode)t:if(null==s||s.parentNode!==t)t.appendChild(r),o=null;else{for(u=s,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==r)break t;t.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function Mt(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||ct.test(n)?i:i+"px"}function Rt(t,n,i,e,r){var s;t:if("style"===n)if("string"==typeof i)t.style.cssText=i;else{if("string"==typeof e&&(t.style.cssText=e=""),e)for(n in e)i&&n in i||Mt(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||Mt(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])s=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+s]=i,i?e||t.addEventListener(n,s?Tt:St,s):t.removeEventListener(n,s?Tt:St,s);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==i?"":i;break t}catch(t){}"function"==typeof i||(null!=i&&(!1!==i||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,i):t.removeAttribute(n))}}function St(t){this.l[t.type+!1]($.event?$.event(t):t)}function Tt(t){this.l[t.type+!0]($.event?$.event(t):t)}function Et(t,n,i,e,r,s,o,u,l){var c,a,f,h,d,v,p,y,m,b,_,g=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(l=i.__h,u=n.__e=i.__e,n.__h=null,s=[u]),(c=$.__b)&&c(n);try{t:if("function"==typeof g){if(y=n.props,m=(c=g.contextType)&&e[c.__c],b=c?m?m.props.value:c.__:e,i.__c?p=(a=n.__c=i.__c).__=a.__E:("prototype"in g&&g.prototype.render?n.__c=a=new g(y,b):(n.__c=a=new yt(y,b),a.constructor=g,a.render=Ot),m&&m.sub(a),a.props=y,a.state||(a.state={}),a.context=b,a.__n=e,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=g.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=at({},a.__s)),at(a.__s,g.getDerivedStateFromProps(y,a.__s))),h=a.props,d=a.state,f)null==g.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==g.getDerivedStateFromProps&&y!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,b)||n.__v===i.__v){a.props=y,a.state=a.__s,n.__v!==i.__v&&(a.__d=!1),a.__v=n,n.__e=i.__e,n.__k=i.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&o.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,v)}))}a.context=b,a.props=y,a.state=a.__s,(c=$.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=t,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(e=at(at({},e),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),_=null!=c&&c.type===pt&&null==c.key?c.props.children:c,Pt(t,Array.isArray(_)?_:[_],n,i,e,r,s,o,u,l),a.base=n.__e,n.__h=null,a.__h.length&&o.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==s&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,r,s,o,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(r=!0),null!=s)for(;v<s.length;v++)if((l=s[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,s[v]=null;break}if(null==t){if(null===d)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(s=s&&N.call(t.childNodes),c=(f=i.props||ut).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=s)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(function(t,n,i,e,r){var s;for(s in i)"children"===s||"key"===s||s in n||Rt(t,s,null,i[s],e);for(s in n)r&&"function"!=typeof n[s]||"children"===s||"key"===s||"value"===s||"checked"===s||i[s]===n[s]||Rt(t,s,n[s],i[s],e)}(t,h,f,r,u),a)n.__k=[];else if(v=n.props.children,Pt(t,Array.isArray(v)?v:[v],n,i,e,r&&"foreignObject"!==d,s,o,s?s[0]:i.__k&&mt(i,0),u),null!=s)for(v=s.length;v--;)null!=s[v]&&ft(s[v]);u||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===d&&!v)&&Rt(t,"value",v,f.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&Rt(t,"checked",v,f.checked,!1))}return t}(i.__e,n,i,e,r,s,o,l);(c=$.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),$.__e(t,n,i)}}function Vt(t,n){$.__c&&$.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){$.__e(t,n.__v)}}))}function Ct(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){$.__e(t,i)}}function It(t,n,i){var e,r;if($.unmount&&$.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||Ct(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){$.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&It(e[r],n,"function"!=typeof t.type);i||null==t.__e||ft(t.__e),t.__e=t.__d=void 0}function Ot(t,n,i){return this.constructor(t,i)}function jt(t,n,i){var e,r,s;$.__&&$.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,s=[],Et(n,t=(!e&&i||n).__k=ht(pt,null,[t]),r||ut,ut,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?N.call(n.childNodes):null,s,!e&&i?i:r?r.__e:n.firstChild,e),Vt(s,t)}function zt(t,n){jt(t,n,zt)}function xt(t,n,i){var e,r,s,o=at({},t.props);for(s in n)"key"==s?e=n[s]:"ref"==s?r=n[s]:o[s]=n[s];return arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),dt(t.type,o,e||t.key,r||t.ref,null)}function Nt(t,n){var i={__c:n="__cC"+F++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(_t)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}};return i.Provider.__=i.Consumer.contextType=i}N=lt.slice,$={__e:function(t,n){for(var i,e,r;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),r=i.__d),r)return i.__E=i}catch(n){t=n}throw t}},L=0,D=function(t){return null!=t&&void 0===t.constructor},yt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=at({},this.state),"function"==typeof t&&(t=t(at({},i),this.props)),t&&at(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),_t(this))},yt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_t(this))},yt.prototype.render=pt,U=[],q="function"==typeof Promise?Promise.prototype.then.bind(n()):setTimeout,gt.__r=0,F=0;var $t=0,Lt=[],Dt=$.__b,Ut=$.__r,qt=$.diffed,Wt=$.__c,Ft=$.unmount;function Bt(t,n){$.__h&&$.__h(st,t,$t||n),$t=0;var i=st.__H||(st.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function Ht(t){return $t=1,Gt(un,t)}function Gt(t,n,i){var e=Bt(rt++,2);return e.t=t,e.__c||(e.__=[i?i(n):un(void 0,n),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=st),e.__}function Qt(t,n){var i=Bt(rt++,3);!$.__s&&on(i.__H,n)&&(i.__=t,i.__H=n,st.__H.__h.push(i))}function Zt(t,n){var i=Bt(rt++,4);!$.__s&&on(i.__H,n)&&(i.__=t,i.__H=n,st.__h.push(i))}function Jt(t){return $t=5,Xt((function(){return{current:t}}),[])}function Kt(t,n,i){$t=6,Zt((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==i?i:i.concat(t))}function Xt(t,n){var i=Bt(rt++,7);return on(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function Yt(t,n){return $t=8,Xt((function(){return t}),n)}function tn(t){var n=st.context[t.__c],i=Bt(rt++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub(st)),n.props.value):t.__}function nn(){Lt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(rn),t.__H.__h.forEach(sn),t.__H.__h=[]}catch(n){t.__H.__h=[],$.__e(n,t.__v)}})),Lt=[]}$.__b=function(t){st=null,Dt&&Dt(t)},$.__r=function(t){Ut&&Ut(t),rt=0;var n=(st=t.__c).__H;n&&(n.__h.forEach(rn),n.__h.forEach(sn),n.__h=[])},$.diffed=function(t){qt&&qt(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==Lt.push(n)&&ot===$.requestAnimationFrame||((ot=$.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),en&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);en&&(n=requestAnimationFrame(i))})(nn)),st=null},$.__c=function(t,n){n.some((function(t){try{t.__h.forEach(rn),t.__h=t.__h.filter((function(t){return!t.__||sn(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],$.__e(i,t.__v)}})),Wt&&Wt(t,n)},$.unmount=function(t){Ft&&Ft(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(rn)}catch(t){$.__e(t,n.__v)}};var en="function"==typeof requestAnimationFrame;function rn(t){var n=st;"function"==typeof t.__c&&t.__c(),st=n}function sn(t){var n=st;t.__c=t.__(),st=n}function on(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function un(t,n){return"function"==typeof n?n(t):n}function ln(t){return t.children}var cn=["auto","lazy","eager","unload"],an={auto:0,lazy:1,eager:2,unload:3};function fn(t,n){const i=an[null!=t?t:"auto"]||0,e=an[null!=n?n:"auto"]||0,r=Math.max(i,e);return cn[r]}function hn(t){return(t.ownerDocument||t).defaultView}function dn(t){p(/^[\w-]+$/.test(t))}function vn(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function pn(t,n){return t.matches(n)}function yn(t,n){return dn(n),vn(t,`> [${n}]`)}function mn(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!bn(n)&&i.push(n);return i}(t)}function bn(t){return!!function(t){let n;return"string"==typeof t?n=t:v(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var _n={bubbles:!0,cancelable:!0};function gn(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Pn(t,n,i,e){const r=i||{};p(t.ownerDocument);const s=t.ownerDocument.createEvent("Event");s.data=r;const{bubbles:o,cancelable:u}=e||_n;s.initEvent(n,o,u),t.dispatchEvent(s)}function An(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function wn(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,r;if(")"==n.charAt(n.length-1)){let t=1;for(r=n.length-2;r>=0;r--){const i=n.charAt(r);if("("==i?t--:")"==i&&t++,0==t)break}const i=r-1;if(r>0)for(r--;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(r>=i)return null}else for(r=n.length-2;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return r>=0?(i=n.substring(0,r+1).trim(),e=n.substring(r+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function kn(t,n,i){for(let e=0;e<t.length;e++){const{query:r}=t[e];r&&(void 0!==r.onchange?r.onchange=i?n:null:i?r.addListener(n):r.removeListener(n))}}var Mn,Rn,Sn,Tn,En={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Vn=/vertical/,Cn=new WeakMap,In=new WeakMap,On=new WeakMap;function jn(t){let n=Cn.get(t);return n||(n=new t.ResizeObserver(zn),Cn.set(t,n)),n}function zn(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:r}=e;if(n.has(r))continue;n.add(r);const s=In.get(r);if(s){On.set(r,e);for(let t=0;t<s.length;t++){const{callback:n,type:i}=s[t];xn(i,n,e)}}}}function xn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;u(n,{width:r,height:e})}else if(1==t){const{borderBoxSize:t}=i;let e;if(t)e=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=hn(t),r=Vn.test(function(t,n){return t.getComputedStyle(n)||En}(n,t).writingMode),{offsetHeight:s,offsetWidth:o}=t;let u,l;r?(l=o,u=s):(u=o,l=s),e={inlineSize:u,blockSize:l}}u(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Mn=AMP.BaseElement;else{class t{constructor(t){this.element=t,this.win=hn(t)}mutateElement(t){n().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Mn=t}function Nn(t,n,i=self){i.customElements.define(t,function(t,n=self){return Rn&&Sn===n||(Rn=(Sn=n).HTMLElement),class extends Rn{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function $n(){return Tn||(Tn=Nt({renderable:!0,playable:!0,loading:"auto"}))}function Ln({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const s=Dn(),o=r&&s.renderable,u=o&&e&&s.playable,l=fn(o?"auto":"lazy",fn(n,s.loading)),c=i||s.notify,a=Xt((()=>({renderable:o,playable:u,loading:l,notify:c})),[o,u,l,c]);return ht($n().Provider,{children:t,value:a})}function Dn(){return tn($n())}function Un(t){const{loading:n}=Dn();return fn(t,n)}var qn=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Bn),compute:(t,n,i)=>i&&n.reduce(Bn,!0)||!1}),Wn=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Bn),deps:[qn],compute:(t,n,i,e)=>e&&i&&n.reduce(Bn,!0)||!1}),Fn=I("Loading",{defaultValue:"auto",recursive:!0,deps:[qn],compute:(t,n,i,e)=>fn(e?"auto":"lazy",fn(i||"auto",n.reduce(fn,"auto")))}),Bn=(t,n)=>t&&n,Hn=t=>t.ensureLoaded(),Gn=t=>t.pause(),Qn=t=>t.unmount();function Zn(t,n=!0){Xn(t,n,!1,Hn)}function Jn(t,n=!0){Xn(t,n,!0,Gn)}function Kn(t,n=!0){Xn(t,n,!0,Qn)}function Xn(t,n,i,e){const r=f(t);for(let t=0;t<r.length;t++)Yn(r[t],n,i,e)}function Yn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(u(e,n),!i){const t=n.getPlaceholder();return void(t&&Yn(t,!0,!1,e))}}const r=t.getElementsByClassName("i-amphtml-element");let s=null;for(let t=0;t<r.length;t++){const n=r[t];if(i)u(e,n);else{s=s||[];let t=!1;for(let i=0;i<s.length;i++)if(s[i].contains(n)){t=!0;break}t||(s.push(n),u(e,n))}}}var ti={},ni=new WeakMap;function ii(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return ht(ei,V(V({},i||ti),{},{name:n}));const r=ni.get(t);if(r&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(r.oldProps,i))return r.component;function s(t){return ht(ei,V(V({},i||ti),{},{name:n},t))}return ni.set(t,{oldProps:i,component:s}),s}function ei(t){const n=Jt(null);return ri(n,t),Qt((()=>{t.postRender&&t.postRender()})),ht("slot",V(V({},t),{},{ref:n}))}function ri(t,n){const i=null==n?void 0:n.loading,e=Dn();Zt((()=>{const n=t.current;return p(v(n)),Y(n,qn,ei,e.renderable),Y(n,Wn,ei,e.playable),Y(n,Fn,ei,e.loading),e.playable||si(n,Jn,!0),()=>{tt(n,qn,ei),tt(n,Wn,ei),tt(n,Fn,ei),X(n)}}),[t,e]),Zt((()=>{const n=t.current;return p(v(n)),"lazy"!=i&&si(n,Zn,!0),()=>{si(n,Kn,!1)}}),[t,i])}function si(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const r=t.ownerDocument.defaultView;r&&(r.requestIdleCallback||r.setTimeout)((()=>n(e)))}var oi={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ui=function(){let t=0;return()=>String(++t)}();function li(t,n){return Object.values(t).some(n)}var ci=t=>"string"==typeof t||!!t.selector,ai=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function fi(t,n,i,e,r){const{"layoutSizeDefined":s,"lightDomTag":o,"props":u}=t;r&&r.start();const l=V(V({},e),{},{ref:i});return o&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=o),s&&(t.usesShadowDom?l.style=oi:l.class="i-amphtml-fill-content"),hi(t,l,u,n,r),r&&r.complete(),l}function hi(t,n,i,e,r){if(li(i,ci)){const s=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!bn(n)&&i.push(n);return i}(t)}(e);for(let e=0;e<s.length;e++){const o=s[e],u=vi(o,i);if(!u)continue;const l=i[u],{as:c=!1,clone:a,name:f=u,props:h={},single:d}=l;p(a||t.usesShadowDom);const v={};if(hi(t,v,h,o,r),d)n[f]=ii(o,o.getAttribute("slot")||`i-amphtml-${f}`,v,c);else{const t=n[f]||(n[f]=[]);p(!c),t.push(a?di(o):ii(o,o.getAttribute("slot")||`i-amphtml-${f}-${ui()}`,v))}}}for(const o in i){const u=i[o];let l;if(p([u.attr,u.attrs,u.attrMatches,u.selector,u.passthrough,u.passthroughNonEmpty].filter(Boolean).length<=1),u.passthrough)p(t.usesShadowDom),l=[ht(ei,{loading:"lazy"})];else if(u.passthroughNonEmpty)p(t.usesShadowDom),l=mn(e).every(ai)?null:[ht(ei,{loading:"lazy"})];else if(u.attr){const t=e.getAttribute(u.attr);l=t&&u.parseAttr?u.parseAttr(t):t,u.media&&null!=l&&(p(r),l=r.resolveListQuery(String(l)))}else u.parseAttrs&&(p(u.attrs||u.attrMatches),l=u.parseAttrs(e));if(null==l)null!=u.default&&(n[o]=u.default);else{const t="number"==u.type?parseFloat(l):"boolean"==u.type?null==(s=l)?void 0:"false"!==s:l;n[o]=t}}var s}function di(t){const n={"key":t},{attributes:i,localName:e}=t,{length:r}=i;for(let t=0;t<r;t++){const{name:e,value:r}=i[t];n[e]=r}return ht(e,n)}function vi(t,n){for(const i in n){const e=n[i],r="string"==typeof e?e:e.selector;if(r&&pn(t,r))return i}return null}var pi={childList:!0},yi={childList:!0,characterData:!0},mi={childList:!0},bi={"style":"display: contents; background: inherit;","part":"c"},_i={"name":"i-amphtml-svc"},gi={"i-amphtml-rendered":""},Pi=()=>!0,Ai=t=>!!t.media,wi=t=>!(!t.passthrough&&!t.passthroughNonEmpty),ki=class extends Mn{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=In.get(t);if(r||(r=[],In.set(t,r),jn(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=On.get(t);n&&setTimeout((()=>xn(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const e=In.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const o=t[n];(s=o).callback===i&&1===s.type?e.push(o):(r<n&&(t[r]=o),r++)}var s;r<t.length&&(t.length=r)}(e),0==e.length)){In.delete(t),On.delete(t);const n=t.ownerDocument.defaultView;n&&jn(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const e=this.ct;i||e.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:n}=t,e=li(n,ci)?pi:null,r=li(n,wi)?yi:null,s=t.usesTemplate?mi:null;this.observer.observe(this.element,V(V(V({attributes:!0},e),r),s)),this.vt=li(n,Ai)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,An,"1")}resolveListQuery(t){return this.At(t,wn,"")}complete(){for(const t in this.Pt)t in this.gt||kn(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)kn(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let e=this.gt[t];return e||(p(this.Pt),e=this.Pt[t]),e||(e=n(this.bt,t),kn(e,this._t,!0)),this.gt[t]=e,function(t){for(let n=0;n<t.length;n++){const{query:i,value:e}=t[n];if(!i||i.matches)return e}return""}(e)}}(this.win,(()=>this.wt())):null;const{staticProps:o}=t,u=this.init();Object.assign(this.W,o,u),this.checkPropsPostMutations(),z(this.element,[],(()=>()=>{this.ut=!1,this.nt&&jt(null,this.nt)})),z(this.element,[qn,Wn,Fn],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:l}=t;var c;return 0!=l.length&&z(this.element,l,((...t)=>{this.tt=t,this.wt()})),this.et=new i,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){J(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;J(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var e,r;const s=i[t],o=n.attributeName;if(p(o),o==s.attr||null!==(e=s.attrs)&&void 0!==e&&e.includes(o)||null!==(r=s.attrMatches)&&void 0!==r&&r.call(s,o))return!0}return!1}return"childList"==i&&(Mi(n.addedNodes)||Mi(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,e=i?null:t.lightDomTag;if(!this.nt){const f=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,e=i&&(a=i,dn("c"),vn(a,"> c"));if(e)this.ot=!0;else{var r,s,o,u,l,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const e=t.ownerDocument,r=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==r.CSSStyleSheet.prototype.replaceSync){const e=r.__AMP_SHADOW_CSS||(r.__AMP_SHADOW_CSS={});let s=e[n];s||(s=new r.CSSStyleSheet,p(s.replaceSync),s.replaceSync(i),e[n]=s),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(s)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(i,this.element.tagName,n),e=gn(f,"c",bi),i.appendChild(e);const a=gn(f,"slot",_i);i.appendChild(a),null===(r=this.getPlaceholder)||void 0===r||null===(s=r.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(o=this.getFallback)||void 0===o||null===(u=o.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(l=this.getOverflowElement)||void 0===l||null===(c=l.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=e,p(i),Z(i,this.element),nt(this.element,"unslotted",Pi,-1),it(this.element,"unslotted",qn,this,!1)}else if(e){const n=this.element;this.nt=n;const i=yn(n,"i-amphtml-rendered")||gn(f,e,gi);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=f.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var a;const f=this.nt;p(f);const{useContexts:h}=t,d=this.tt;if(0!=h.length&&null==d)return;const v=fi(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let y=ht(t.Component,v);for(let t=0;t<h.length;t++){p(d);const n=h[t].type,i=d[t];i&&(y=ht(n.Provider,{value:i},y))}const m=ht(Ln,V({},this.F),y);try{if(this.ot)this.ot=!1,zt(m,f);else{const t=e?yn(f,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),jt(m,f,null!=t?t:void 0)}}catch(t){var b;throw null===(b=this.et)||void 0===b||b.reject(t),t}i||n||this.mutateElement((()=>Pn(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,e=t,l.call(i,e)?this.W[t]:n;var i,e}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new i),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const e=i[t];this.kt(n,e)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Pn(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Mi(t){for(let n=0;n<t.length;n++){const i=t[n];if(v(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function Ri(t,n){if(null==t)return{};var i,e,r={},s=Object.keys(t);for(e=0;e<s.length;e++)i=s[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}function Si(t,n){function i(t){const{ref:i}=this.props,e=i==t.ref;return!e&&i&&(i.call?i(null):i.current=null),n?!n(this.props,t)||!e:function(t,n){for(const i in t)if("__source"!==i&&!(i in n))return!0;for(const i in n)if("__source"!==i&&t[i]!==n[i])return!0;return!1}(this.props,t)}function e(n){return this.shouldComponentUpdate=i,ht(t,n)}return e.displayName="Memo("+(t.displayName||t.name)+")",e.prototype.isReactComponent=!0,e._forwarded=!0,e}ki.staticProps=void 0,ki.useContexts=[],ki.loadable=!1,ki.unloadOnPause=!1,ki.layoutSizeDefined=!1,ki.lightDomTag="",ki.usesTemplate=!1,ki.shadowCss=null,ki.usesShadowDom=!1,ki.detached=!1,ki.delegatesFocus=!1,ki.props={};var Ti,Ei=["ref"],Vi="undefined"!=typeof Symbol&&(null===(Ti=Symbol.for)||void 0===Ti?void 0:Ti.call(Symbol,"react.forward_ref"))||3911,Ci=$.__b;$.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.Mt&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==Ci||Ci(t)};var Ii=function(t){function n(n){const{ref:i}=n,e=Ri(n,Ei);return t(e,i)}return n.$$typeof=Vi,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},Oi={toArray:function(t){return wt(t)},map:function(t,n){return wt(t).map(n)},count:function(t){return wt(t).length}};function ji(t){return(ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zi(t){var n=function(t,n){if("object"!==ji(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==ji(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ji(n)?n:String(n)}var xi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ni={"position":"relative","width":"100%","height":"100%"},$i=Ii((function(t,n){let i="class",{as:e="div",children:r,contentAs:s="div",contentClassName:o,contentProps:u,contentRef:l,contentStyle:c,layout:a=!1,paint:f=!1,size:h=!1,"style":d,wrapperClassName:v,wrapperStyle:p,[i]:y}=t;const m=(h?4:0)+(a?2:0)+(f?1:0);return ht(e,V(V({},Ri(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(zi))),{},{ref:n,class:`${y||""} ${v||""}`.trim()||null,style:V(V(V({},d),p),{},{contain:xi[m]})}),ht(s,V(V({},u),{},{ref:l,class:o,style:V(V({},h&&Ni),{},{"overflow":f?"hidden":"visible"},c)}),r))})),Li=Ii((function(t,n){let i="class",{as:e="div",children:r,"style":s,wrapperClassName:o,wrapperStyle:u,[i]:l}=t;return ht(e,V(V({},Ri(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(zi))),{},{ref:n,class:`${l||""} ${o||""}`.trim()||null,style:V(V({},s),u)}),r)}));function Di(t){const n=Jt(t);return n.current=t,n}function Ui(t,n){Kt(t,(()=>n),[n])}export{Mn as BaseElement,Oi as Children,$i as ContainWrapper,ln as Fragment,ki as PreactBaseElement,ei as Slot,Ln as WithAmpContext,Li as Wrapper,nt as addGroup,G as assignSlot,xt as cloneElement,I as contextProp,Nt as createContext,ht as createElement,vt as createRef,ii as createSlot,Nn as defineBentoElement,J as discover,Ii as forwardRef,zt as hydrate,D as isValidElement,Si as memo,X as rediscoverChildren,et as removeGroupProp,tt as removeProp,jt as render,it as setGroupProp,K as setIsRoot,Z as setParent,Y as setProp,z as subscribe,Q as unassignSlot,x as unsubscribe,Dn as useAmpContext,Yt as useCallback,tn as useContext,Ui as useDOMHandle,Qt as useEffect,Kt as useImperativeHandle,Zt as useLayoutEffect,Un as useLoading,Xt as useMemo,Gt as useReducer,Jt as useRef,ri as useSlotContext,Ht as useState,Di as useValueRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento.core.module.js.map
{
"name": "@bentoproject/core",
"version": "0.2305221508.0",
"version": "0.2305232041.0",
"description": "Core utilities for the Bentojs components",

@@ -5,0 +5,0 @@ "author": "Bento Authors",

;
var n,t=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,e=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,f=function(n){return i(n,"__esModule",{value:!0})},a=function(n){return function(n,t,e){if(t&&"object"==typeof t||"function"==typeof t)for(var f,a=u(t),c=0,s=a.length;c<s;c++)f=a[c],o.call(n,f)||"default"===f||i(n,f,{get:function(n){return t[n]}.bind(null,f),enumerable:!(e=r(t,f))||e.enumerable});return n}(f(i(null!=n?t(e(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function s(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=function(n,t){if(n){if("string"==typeof n)return c(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(){return n||(n=Promise.resolve(void 0))}!function(n,t){for(var r in f(n),t)i(n,r,{get:t[r],enumerable:!0})}(exports,{BaseElement:function(){return rt},Children:function(){return ai},ContainWrapper:function(){return vi},Fragment:function(){return On},PreactBaseElement:function(){return Xt},Slot:function(){return kt},WithAmpContext:function(){return vt},Wrapper:function(){return hi},addGroup:function(){return bn},assignSlot:function(){return an},cloneElement:function(){return gn.cloneElement},contextProp:function(){return nn},createContext:function(){return gn.createContext},createElement:function(){return gn.createElement},createRef:function(){return gn.createRef},createSlot:function(){return Rt},defineBentoElement:function(){return st},discover:function(){return ln},forwardRef:function(){return fi},hydrate:function(){return wn.hydrate},isValidElement:function(){return gn.isValidElement},memo:function(){return ii},rediscoverChildren:function(){return hn},removeGroupProp:function(){return yn},removeProp:function(){return pn},render:function(){return wn.render},setGroupProp:function(){return mn},setIsRoot:function(){return vn},setParent:function(){return sn},setProp:function(){return dn},subscribe:function(){return un},unassignSlot:function(){return cn},unsubscribe:function(){return en},useAmpContext:function(){return ht},useCallback:function(){return jn.useCallback},useContext:function(){return jn.useContext},useDOMHandle:function(){return pi},useEffect:function(){return jn.useEffect},useImperativeHandle:function(){return jn.useImperativeHandle},useLayoutEffect:function(){return jn.useLayoutEffect},useLoading:function(){return dt},useMemo:function(){return jn.useMemo},useReducer:function(){return jn.useReducer},useRef:function(){return jn.useRef},useSlotContext:function(){return Ct},useState:function(){return jn.useState},useValueRef:function(){return di}});var v=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function h(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function d(n){for(var t,i=null,r="",u=s(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=h(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function p(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function b(n){var t=d.apply(null,arguments);setTimeout((function(){throw p(t),t}))}function m(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){b(n)}}function y(n){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var w=Object.prototype,g=w.hasOwnProperty;function j(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function O(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}w.toString;var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,P=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],M={"childList":!0,"subtree":!0};function z(n,t){if(!S.test(t)||P.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var A=function(){function n(n,t){this.i=n,this.u=t,this.o=j()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,z(t.SyntaxError,n),this.u.getByName(n))return l();var i=this.o,r=i[n];return r||(r=new v,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),E=function(){function n(n){this.i=n,this.v=j(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var r=this.i,u=r.Error,e=r.SyntaxError;if(i)throw new u("Extending native custom elements is not supported");if(z(e,n),this.getByName(n)||this.getByConstructor(t))throw new u('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var o,f=s(this.g,!0);!(o=f()).done;){var a=o.value;this.upgrade(a,n)}},t.upgrade=function(n,t){for(var i,r=!!t,u=t||this.h,e=s(this.O(n,u),!0);!(i=e()).done;){var o=i.value;r?this._(o):this.upgradeSelf(o)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){b(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){b(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){b(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var r,u=s(this.g,!0);!(r=u()).done;){var e=r.value;i.observe(e,M)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,a=u.prototype,c=e.prototype,s=f.createElement,l=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,b=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:s.apply(this,arguments)},f.importNode=function(){var n=l.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=b.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=a,y=Object.getOwnPropertyDescriptor(m,"innerHTML");if(y||(m=Object.getPrototypeOf(n.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=y)&&void 0!==i&&i.configurable){var w=y.set;y.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",y)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,M)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=s(n,!0);!(t=i()).done;){var r=t.value;if(r){for(var u,e=r.addedNodes,o=r.removedNodes,f=s(e,!0);!(u=f()).done;){var a=u.value,c=this.O(a,this.h);this._(a);for(var l,v=s(c,!0);!(l=v()).done;){var h=l.value;this._(h)}}for(var d,p=s(o,!0);!(d=p()).done;){var b=d.value,m=this.O(b,this.h);this.k(b);for(var y,w=s(m,!0);!(y=w()).done;){var g=y.value;this.k(g)}}}}},n}();function R(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),k(t,n)}function k(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var r,u=s(Object.getOwnPropertyNames(i),!0);!(r=u()).done;){var e=r.value;if(!Object.hasOwnProperty.call(n,e)){var o=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,o)}}i=Object.getPrototypeOf(i)}}(n,t)}var C=Array.isArray;function x(n){return C(n)?n:[n]}function _(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function T(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function L(n){return 1==(null==n?void 0:n.nodeType)}function B(n,t,i,r,u,e,o,f,a,c,s){return n}function V(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function q(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&q(n,t,i,e,!1)}else if(n.children)for(var o,f=s(n.children,!0);!(o=f()).done;){var a=o.value;q(a,t,i,r,!0)}}var W=[],I=function(){},N=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=V(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){B(t),B(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),$(n)&&q(this.A,H,n,!0,!1))},t.remove=function(n,t){B(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){B(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),q(this.A,H,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(_(i.subscribers,t)){var r=i.value;G(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&T(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&q(this.A,D,void 0,W)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){$(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!$(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(I):W,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):W,pingParent:$(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return b("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){b(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.C;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.L()){n.value=t;for(var o,f=s(n.subscribers,!0);!(o=f()).done;)(0,o.value)(t)}},t.F=function(n,t){var i,r;B(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,a=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(a))||void 0===r?void 0:r.values,s=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||s!=Boolean(n.parentContextNode)){var l=s?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,F,e,!1):null;this.I(n,l)}var v=G(n.parentValue)?n.parentValue:s&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(G)&&(!s||G(v))){var d=this.A.node;c&&!o?h=c[0]:$(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||W,v,u):G(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||W,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,B(r),i&&i.values.unsubscribe(u,r),t&&(B(r),t.values.subscribe(u,r)))},n}();function H(n,t){return n.values.scan(t)}function D(n,t,i){return n.values.scanAll(i)}function F(n,t){return n.values.has(t)}function $(n){return!!n.recursive}function G(n){return void 0!==n}var Z=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new N(this),this.N=null,this.W=!1,this.$=V(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(U),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(J)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||L(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,U(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,U(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(J)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(J)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){B(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(J),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),B(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(B(r.children),T(r.children,this)),n){var u=n.children||(n.children=[]);_(u,this);for(var e,o=s(u,!0);!(e=o()).done;){var f=e.value;f!=this&&f.isDiscoverable()&&f.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function U(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Z.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=s(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,J)}function J(n){n.discover()}function K(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function Q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function X(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach((function(t){K(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var Y=[];function nn(n,t){var i=X({key:n,deps:Y,recursive:!1},t);return B(0==i.deps.length||i.compute),i}var tn=[],rn=function(){};function un(n,t,i){t=x(t);var r=i;Z.get(n).subscribe(r,on,i,t)}function en(n,t){var i=t;Z.get(n).unsubscribe(i)}var on=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(rn):tn,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):tn,this.X=!1,this.Y=null,this.K=V(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(fn)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(m(this.Y),this.Y=null)},n}();function fn(n){return void 0!==n}function an(n,t){Z.assignSlot(n,t)}function cn(n,t){Z.unassignSlot(n,t)}function sn(n,t){Z.get(n).setParent(t)}function ln(n){Z.get(n).discover()}function vn(n,t){Z.get(n).setIsRoot(t)}function hn(n){Z.rediscoverChildren(n)}function dn(n,t,i,r){Z.get(n).values.set(t,i,r)}function pn(n,t,i){Z.get(n).values.remove(t,i)}function bn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Z.get(n).addGroup(t,i,r)}function mn(n,t,i,r,u){var e;null===(e=Z.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function yn(n,t,i,r){var u;null===(u=Z.get(n).group(t))||void 0===u||u.values.remove(i,r)}var wn=a(require("preact")),gn=a(require("preact")),jn=a(require("preact/hooks"));function On(n){return n.children}function Sn(n,t){return(Sn=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Pn(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Sn(n,t)}function Mn(n){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function zn(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function An(n,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zn(n)}function En(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Mn(n);if(t){var u=Mn(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return An(this,i)}}var Rn,kn,Cn=["auto","lazy","eager","unload"],xn=(K(Rn={},"auto",0),K(Rn,"lazy",1),K(Rn,"eager",2),K(Rn,"unload",3),Rn);function _n(n,t){var i=xn[null!=n?n:"auto"]||0,r=xn[null!=t?t:"auto"]||0,u=Math.max(i,r);return Cn[u]}function Tn(n){return(n.ownerDocument||n).defaultView}function Ln(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function Bn(n){B(/^[\w-]+$/.test(n))}function Vn(n,t){if(void 0!==kn?kn:kn=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(Ln(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=Ln(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function qn(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Wn(n,t){return Bn(t),Vn(n,"> [".concat(t,"]"))}function In(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Nn(r)&&i.push(r);return i}(n)}function Nn(n){return"string"==typeof(t=n)?i=t:L(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var Hn={bubbles:!0,cancelable:!0};function Dn(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Fn(n,t,i,r){var u=i||{};B(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||Hn,f=o.bubbles,a=o.cancelable;e.initEvent(t,f,a),n.dispatchEvent(e)}var $n=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Gn,"1")},t.resolveListQuery=function(n){return this.on(n,Zn,"")},t.complete=function(){for(var n in this.en)n in this.un||Un(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Un(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(B(this.en),r=this.en[n]),r||Un(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Gn(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Zn(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"-"==a||"_"==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Un(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Jn={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Kn=/vertical/,Qn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;function nt(n){var t=Qn.get(n);return t||(t=new n.ResizeObserver(tt),Qn.set(n,t)),t}function tt(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Xn.get(u);if(e){Yn.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],a=f.callback;it(f.type,a,r)}}}}}function it(n,t,i){if(0==n){var r=i.contentRect,u=r.height;m(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,a,c=i.target,s=Tn(c),l=Kn.test(function(n,t){return n.getComputedStyle(t)||Jn}(s,c).writingMode),v=c,h=v.offsetHeight,d=v.offsetWidth;l?(a=d,f=h):(f=d,a=h),e={inlineSize:f,blockSize:a}}m(t,e)}}var rt,ut,et,ot,ft=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Xn.get(n);if(u||(u=[],Xn.set(n,u),nt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Yn.get(n);e&&setTimeout((function(){return it(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Xn.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Xn.delete(n),Yn.delete(n);var u=n.ownerDocument.defaultView;u&&nt(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function at(n){if("object"!==("undefined"==typeof Reflect?"undefined":y(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ct(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ut&&et===t||(ut=at((et=t).HTMLElement)),function(t){Pn(r,ut);var i=En(r);function r(){var t;return(t=i.call(this)).implementation=new n(zn(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function st(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ct(t,i))}function lt(){return ot||(ot=(0,gn.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function vt(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,a=void 0===f||f,c=ht(),s=a&&c.renderable,l=s&&o&&c.playable,v=_n(s?"auto":"lazy",_n(r,c.loading)),h=u||c.notify,d=(0,jn.useMemo)((function(){return{renderable:s,playable:l,loading:v,notify:h}}),[s,l,v,h]),p=lt();return gn.createElement(p.Provider,{children:t,value:d})}function ht(){var n=lt();return(0,jn.useContext)(n)}function dt(n){return _n(n,ht().loading)}rt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Tn(n)}var t=n.prototype;return t.mutateElement=function(n){l().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var pt=nn("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},compute:function(n,t,i){return i&&t.reduce(yt,!0)||!1}}),bt=nn("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},deps:[pt],compute:function(n,t,i,r){return r&&i&&t.reduce(yt,!0)||!1}}),mt=nn("Loading",{defaultValue:"auto",recursive:!0,deps:[pt],compute:function(n,t,i,r){return _n(r?"auto":"lazy",_n(i||"auto",t.reduce(_n,"auto")))}}),yt=function(n,t){return n&&t},wt=function(n){return n.ensureLoaded()},gt=function(n){return n.pause()},jt=function(n){return n.unmount()};function Ot(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!1,wt)}function St(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,gt)}function Pt(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,jt)}function Mt(n,t,i,r){for(var u=x(n),e=0;e<u.length;e++)zt(u[e],t,i,r)}function zt(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(m(r,u),!i){var e=u.getPlaceholder();return void(e&&zt(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,a=0;a<o.length;a++){var c=o[a];if(i)m(r,c);else{f=f||[];for(var s=!1,l=0;l<f.length;l++)if(f[l].contains(c)){s=!0;break}s||(f.push(c),m(r,c))}}}var At={},Et=new WeakMap;function Rt(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return gn.createElement(kt,X(X({},i||At),{},{name:t}));var u=Et.get(n);if(u&&O(u.oldProps,i))return u.component;function e(n){return gn.createElement(kt,X(X({},i||At),{},{name:t},n))}return Et.set(n,{oldProps:i,component:e}),e}function kt(n){var t=(0,jn.useRef)(null);return Ct(t,n),(0,jn.useEffect)((function(){n.postRender&&n.postRender()})),gn.createElement("slot",X(X({},n),{},{ref:t}))}function Ct(n,t){var i=null==t?void 0:t.loading,r=ht();(0,jn.useLayoutEffect)((function(){var t=n.current;return B(L(t)),dn(t,pt,kt,r.renderable),dn(t,bt,kt,r.playable),dn(t,mt,kt,r.loading),r.playable||xt(t,St,!0),function(){pn(t,pt,kt),pn(t,bt,kt),pn(t,mt,kt),hn(t)}}),[n,r]),(0,jn.useLayoutEffect)((function(){var t=n.current;return B(L(t)),"lazy"!=i&&xt(t,Ot,!0),function(){xt(t,Pt,!1)}}),[n,i])}function xt(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var _t,Tt={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},Lt=(_t=0,function(){return String(++_t)});function Bt(n,t){return Object.values(n).some(t)}var Vt=function(n){return"string"==typeof n||!!n.selector},qt=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Wt(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var a=X(X({},r),{},{ref:i});return o&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=o),e&&(n.usesShadowDom?a.style=Tt:a.class="i-amphtml-fill-content"),It(n,a,f,t,u),u&&u.complete(),a}function It(n,t,i,r,u){if(Bt(i,Vt))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Nn(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],a=Ht(f,i);if(a){var c=i[a],s=c.as,l=void 0!==s&&s,v=c.single,h=c.name,d=void 0===h?a:h,p=c.clone,b=c.props,m=void 0===b?{}:b;B(p||n.usesShadowDom);var y={};if(It(n,y,m,f,u),v)t[d]=Rt(f,f.getAttribute("slot")||"i-amphtml-".concat(d),y,l);else{var w=t[d]||(t[d]=[]);B(!l),w.push(p?Nt(f):Rt(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(Lt()),y))}}}for(var g in i){var j=i[g];B([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)B(n.usesShadowDom),O=[gn.createElement(kt,{loading:"lazy"})];else if(j.passthroughNonEmpty)B(n.usesShadowDom),O=In(r).every(qt)?null:[gn.createElement(kt,{loading:"lazy"})];else if(j.attr){var S=r.getAttribute(j.attr);O=S&&j.parseAttr?j.parseAttr(S):S,j.media&&null!=O&&(B(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(B(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var P="number"==j.type?parseFloat(O):"boolean"==j.type?null==(M=O)?void 0:"false"!==M:O;t[g]=P}}var M}function Nt(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,a=o.value;t[f]=a}return gn.createElement(r,t)}function Ht(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&qn(n,u))return i}return null}var Dt={childList:!0},Ft={childList:!0,characterData:!0},$t={childList:!0},Gt={"style":"display: contents; background: inherit;","part":"c"},Zt={"name":"i-amphtml-svc"},Ut={"i-amphtml-rendered":""},Jt=function(){return!0},Kt=function(n){return!!n.media},Qt=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Xt=function(n){Pn(r,n);var t=En(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){B(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new ft(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Bt(i,Vt)?Dt:null,u=Bt(i,Qt)?Ft:null,e=t.usesTemplate?$t:null;this.observer.observe(this.element,X(X(X({attributes:!0},r),u),e)),this.xn=Bt(i,Kt)?new $n(this.win,(function(){return n.Ln()})):null;var o=t.staticProps,f=this.init();Object.assign(this.vn,o,f),this.checkPropsPostMutations(),un(this.element,[],(function(){return function(){n.zn=!1,n._n&&(0,wn.render)(null,n._n)}})),un(this.element,[pt,bt,mt],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var a,c=t.useContexts;return 0!=c.length&&un(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new v,this.Ln(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){ln(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;ln(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return B(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],a=t.attributeName;if(B(a),a==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(a)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,a))return!0}return!1}return"childList"==i&&(Yt(t.addedNodes)||Yt(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){B(!r);var f=this.element.shadowRoot,a=f&&(t=f,Bn("c"),Vn(t,"> ".concat("c")));if(a)this.Mn=!0;else{var c,s,l,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(B((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),a=Dn(o,"c",Gt),f.appendChild(a);var b=Dn(o,"slot",Zt);f.appendChild(b),null===(c=this.getPlaceholder)||void 0===c||null===(s=c.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(v=l.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=a,B(f),sn(f,this.element),bn(this.element,"unslotted",Jt,-1),mn(this.element,"unslotted",pt,this,!1)}else if(e){var m=this.element;this._n=m;var y=Wn(m,"i-amphtml-rendered")||Dn(o,e,Ut);y.__AMP_RENDERED=!0,i.layoutSizeDefined&&y.classList.add("i-amphtml-fill-content"),this._n.appendChild(y)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;B(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var S=Wt(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(S),this.isReady(S)){for(var P=gn.createElement(i.Component,S),M=0;M<j.length;M++){B(O);var z=j[M].type,A=O[M];A&&(P=gn.createElement(z.Provider,{value:A},P))}var E=gn.createElement(vt,X({},this.hn),P);try{if(this.Mn)this.Mn=!1,(0,wn.hydrate)(E,g);else{var R=e?Wn(g,"i-amphtml-rendered"):null;R&&(R.__AMP_RENDERED=!0),(0,wn.render)(E,g,null!=R?R:void 0)}}catch(n){var k;throw null===(k=this.kn)||void 0===k||k.reject(n),n}u||r||this.mutateElement((function(){return Fn(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,g.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new v),this.jn.promise)},i.wn=function(n){for(var t=j(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Fn(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return B(n),n[t]},set:function(n){var r=i.yn;B(r),r[t]=n}})},r}(rt);function Yt(n){for(var t=0;t<n.length;t++){var i=n[t];if(L(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function ni(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}Xt.staticProps=void 0,Xt.useContexts=[],Xt.loadable=!1,Xt.unloadOnPause=!1,Xt.layoutSizeDefined=!1,Xt.lightDomTag="",Xt.usesTemplate=!1,Xt.shadowCss=null,Xt.usesShadowDom=!1,Xt.detached=!1,Xt.delegatesFocus=!1,Xt.props={};var ti=a(require("preact"));function ii(n,t){function i(n){var i=this.props.ref,r=i==n.ref;return!r&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!r:function(n,t){for(var i in n)if("__source"!==i&&!(i in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}(this.props,n)}function r(t){return this.shouldComponentUpdate=i,(0,gn.createElement)(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r._forwarded=!0,r}var ri,ui=["ref"],ei="undefined"!=typeof Symbol&&(null===(ri=Symbol.for)||void 0===ri?void 0:ri.call(Symbol,"react.forward_ref"))||3911,oi=ti.options.__b;ti.options.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.In&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==oi||oi(n)};var fi=function(n){function t(t){var i=t.ref,r=ni(t,ui);return n(r,i)}return t.$$typeof=ei,t.render=t,t.prototype.isReactComponent=!0,t.In=!0,t},ai={toArray:function(n){return(0,ti.toChildArray)(n)},map:function(n,t){return(0,ti.toChildArray)(n).map(t)},count:function(n){return(0,ti.toChildArray)(n).length}};function ci(n){var t=function(n,t){if("object"!==y(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===y(t)?t:String(t)}var si=[null,"paint","layout","content","size","size paint","size layout","strict"],li={"position":"relative","width":"100%","height":"100%"},vi=fi((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,a=n.contentClassName,c=n.contentProps,s=n.contentRef,l=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,b=n.size,m=void 0!==b&&b,y=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=ni(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(ci)),S=(m?4:0)+(h?2:0)+(p?1:0);return gn.createElement(u,X(X({},O),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:X(X(X({},y),g),{},{contain:si[S]})}),gn.createElement(f,X(X({},c),{},{ref:s,class:a,style:X(X({},m&&li),{},{"overflow":p?"hidden":"visible"},l)}),e))})),hi=fi((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i],s=ni(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(ci));return gn.createElement(u,X(X({},s),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:X(X({},o),a)}),e)}));function di(n){var t=(0,jn.useRef)(n);return t.current=n,t}function pi(n,t){(0,jn.useImperativeHandle)(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}R(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new E(n),o=new A(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,a=f.attachShadow,c=f.createShadowRoot;function s(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return k(t,n.prototype),t}a&&(f.attachShadow=function(n){var t=a.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return a.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),R(i,s),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=s,s.call||(s.apply=n.Function.apply,s.bind=n.Function.bind,s.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
var n,t=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,e=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,f=function(n){return i(n,"__esModule",{value:!0})},a=function(n){return function(n,t,e){if(t&&"object"==typeof t||"function"==typeof t)for(var f,a=u(t),c=0,s=a.length;c<s;c++)f=a[c],o.call(n,f)||"default"===f||i(n,f,{get:function(n){return t[n]}.bind(null,f),enumerable:!(e=r(t,f))||e.enumerable});return n}(f(i(null!=n?t(e(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function s(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=function(n,t){if(n){if("string"==typeof n)return c(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(){return n||(n=Promise.resolve(void 0))}!function(n,t){for(var r in f(n),t)i(n,r,{get:t[r],enumerable:!0})}(exports,{BaseElement:function(){return rt},Children:function(){return ai},ContainWrapper:function(){return vi},Fragment:function(){return On},PreactBaseElement:function(){return Xt},Slot:function(){return kt},WithAmpContext:function(){return vt},Wrapper:function(){return hi},addGroup:function(){return bn},assignSlot:function(){return an},cloneElement:function(){return gn.cloneElement},contextProp:function(){return nn},createContext:function(){return gn.createContext},createElement:function(){return gn.createElement},createRef:function(){return gn.createRef},createSlot:function(){return Rt},defineBentoElement:function(){return st},discover:function(){return ln},forwardRef:function(){return fi},hydrate:function(){return wn.hydrate},isValidElement:function(){return gn.isValidElement},memo:function(){return ii},rediscoverChildren:function(){return hn},removeGroupProp:function(){return yn},removeProp:function(){return pn},render:function(){return wn.render},setGroupProp:function(){return mn},setIsRoot:function(){return vn},setParent:function(){return sn},setProp:function(){return dn},subscribe:function(){return un},unassignSlot:function(){return cn},unsubscribe:function(){return en},useAmpContext:function(){return ht},useCallback:function(){return jn.useCallback},useContext:function(){return jn.useContext},useDOMHandle:function(){return pi},useEffect:function(){return jn.useEffect},useImperativeHandle:function(){return jn.useImperativeHandle},useLayoutEffect:function(){return jn.useLayoutEffect},useLoading:function(){return dt},useMemo:function(){return jn.useMemo},useReducer:function(){return jn.useReducer},useRef:function(){return jn.useRef},useSlotContext:function(){return Ct},useState:function(){return jn.useState},useValueRef:function(){return di}});var v=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function h(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function d(n){for(var t,i=null,r="",u=s(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=h(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function p(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function b(n){var t=d.apply(null,arguments);setTimeout((function(){throw p(t),t}))}function m(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){b(n)}}function y(n){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var w=Object.prototype,g=w.hasOwnProperty;function j(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function O(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}w.toString;var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,P=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],M={"childList":!0,"subtree":!0};function z(n,t){if(!S.test(t)||P.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var A=function(){function n(n,t){this.i=n,this.u=t,this.o=j()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,z(t.SyntaxError,n),this.u.getByName(n))return l();var i=this.o,r=i[n];return r||(r=new v,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),E=function(){function n(n){this.i=n,this.v=j(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var r=this.i,u=r.Error,e=r.SyntaxError;if(i)throw new u("Extending native custom elements is not supported");if(z(e,n),this.getByName(n)||this.getByConstructor(t))throw new u('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var o,f=s(this.g,!0);!(o=f()).done;){var a=o.value;this.upgrade(a,n)}},t.upgrade=function(n,t){for(var i,r=!!t,u=t||this.h,e=s(this.O(n,u),!0);!(i=e()).done;){var o=i.value;r?this._(o):this.upgradeSelf(o)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){b(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){b(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){b(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var r,u=s(this.g,!0);!(r=u()).done;){var e=r.value;i.observe(e,M)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,a=u.prototype,c=e.prototype,s=f.createElement,l=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,b=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:s.apply(this,arguments)},f.importNode=function(){var n=l.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=b.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=a,y=Object.getOwnPropertyDescriptor(m,"innerHTML");if(y||(m=Object.getPrototypeOf(n.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=y)&&void 0!==i&&i.configurable){var w=y.set;y.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",y)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,M)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=s(n,!0);!(t=i()).done;){var r=t.value;if(r){for(var u,e=r.addedNodes,o=r.removedNodes,f=s(e,!0);!(u=f()).done;){var a=u.value,c=this.O(a,this.h);this._(a);for(var l,v=s(c,!0);!(l=v()).done;){var h=l.value;this._(h)}}for(var d,p=s(o,!0);!(d=p()).done;){var b=d.value,m=this.O(b,this.h);this.k(b);for(var y,w=s(m,!0);!(y=w()).done;){var g=y.value;this.k(g)}}}}},n}();function R(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),k(t,n)}function k(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var r,u=s(Object.getOwnPropertyNames(i),!0);!(r=u()).done;){var e=r.value;if(!Object.hasOwnProperty.call(n,e)){var o=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,o)}}i=Object.getPrototypeOf(i)}}(n,t)}var C=Array.isArray;function x(n){return C(n)?n:[n]}function _(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function T(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function L(n){return 1==(null==n?void 0:n.nodeType)}function B(n,t,i,r,u,e,o,f,a,c,s){return n}function V(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function q(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&q(n,t,i,e,!1)}else if(n.children)for(var o,f=s(n.children,!0);!(o=f()).done;){var a=o.value;q(a,t,i,r,!0)}}var W=[],I=function(){},N=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=V(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){B(t),B(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),$(n)&&q(this.A,H,n,!0,!1))},t.remove=function(n,t){B(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){B(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),q(this.A,H,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(_(i.subscribers,t)){var r=i.value;G(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&T(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&q(this.A,D,void 0,W)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){$(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!$(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(I):W,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):W,pingParent:$(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return b("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){b(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.C;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.L()){n.value=t;for(var o,f=s(n.subscribers,!0);!(o=f()).done;)(0,o.value)(t)}},t.F=function(n,t){var i,r;B(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,a=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(a))||void 0===r?void 0:r.values,s=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||s!=Boolean(n.parentContextNode)){var l=s?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,F,e,!1):null;this.I(n,l)}var v=G(n.parentValue)?n.parentValue:s&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(G)&&(!s||G(v))){var d=this.A.node;c&&!o?h=c[0]:$(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||W,v,u):G(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||W,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,B(r),i&&i.values.unsubscribe(u,r),t&&(B(r),t.values.subscribe(u,r)))},n}();function H(n,t){return n.values.scan(t)}function D(n,t,i){return n.values.scanAll(i)}function F(n,t){return n.values.has(t)}function $(n){return!!n.recursive}function G(n){return void 0!==n}var Z=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new N(this),this.N=null,this.W=!1,this.$=V(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(U),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(J)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||L(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,U(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,U(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(J)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(J)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){B(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(J),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),B(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(B(r.children),T(r.children,this)),n){var u=n.children||(n.children=[]);_(u,this);for(var e,o=s(u,!0);!(e=o()).done;){var f=e.value;f!=this&&f.isDiscoverable()&&f.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function U(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Z.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=s(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,J)}function J(n){n.discover()}function K(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function Q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function X(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach((function(t){K(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var Y=[];function nn(n,t){var i=X({key:n,deps:Y,recursive:!1},t);return B(0==i.deps.length||i.compute),i}var tn=[],rn=function(){};function un(n,t,i){t=x(t);var r=i;Z.get(n).subscribe(r,on,i,t)}function en(n,t){var i=t;Z.get(n).unsubscribe(i)}var on=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(rn):tn,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):tn,this.X=!1,this.Y=null,this.K=V(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(fn)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(m(this.Y),this.Y=null)},n}();function fn(n){return void 0!==n}function an(n,t){Z.assignSlot(n,t)}function cn(n,t){Z.unassignSlot(n,t)}function sn(n,t){Z.get(n).setParent(t)}function ln(n){Z.get(n).discover()}function vn(n,t){Z.get(n).setIsRoot(t)}function hn(n){Z.rediscoverChildren(n)}function dn(n,t,i,r){Z.get(n).values.set(t,i,r)}function pn(n,t,i){Z.get(n).values.remove(t,i)}function bn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Z.get(n).addGroup(t,i,r)}function mn(n,t,i,r,u){var e;null===(e=Z.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function yn(n,t,i,r){var u;null===(u=Z.get(n).group(t))||void 0===u||u.values.remove(i,r)}var wn=a(require("preact")),gn=a(require("preact")),jn=a(require("preact/hooks"));function On(n){return n.children}function Sn(n,t){return(Sn=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Pn(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Sn(n,t)}function Mn(n){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function zn(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function An(n,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zn(n)}function En(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Mn(n);if(t){var u=Mn(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return An(this,i)}}var Rn,kn,Cn=["auto","lazy","eager","unload"],xn=(K(Rn={},"auto",0),K(Rn,"lazy",1),K(Rn,"eager",2),K(Rn,"unload",3),Rn);function _n(n,t){var i=xn[null!=n?n:"auto"]||0,r=xn[null!=t?t:"auto"]||0,u=Math.max(i,r);return Cn[u]}function Tn(n){return(n.ownerDocument||n).defaultView}function Ln(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function Bn(n){B(/^[\w-]+$/.test(n))}function Vn(n,t){if(void 0!==kn?kn:kn=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(Ln(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=Ln(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function qn(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Wn(n,t){return Bn(t),Vn(n,"> [".concat(t,"]"))}function In(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Nn(r)&&i.push(r);return i}(n)}function Nn(n){return"string"==typeof(t=n)?i=t:L(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var Hn={bubbles:!0,cancelable:!0};function Dn(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Fn(n,t,i,r){var u=i||{};B(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||Hn,f=o.bubbles,a=o.cancelable;e.initEvent(t,f,a),n.dispatchEvent(e)}var $n=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Gn,"1")},t.resolveListQuery=function(n){return this.on(n,Zn,"")},t.complete=function(){for(var n in this.en)n in this.un||Un(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Un(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(B(this.en),r=this.en[n]),r||Un(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Gn(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Zn(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"-"==a||"_"==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Un(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Jn={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Kn=/vertical/,Qn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;function nt(n){var t=Qn.get(n);return t||(t=new n.ResizeObserver(tt),Qn.set(n,t)),t}function tt(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Xn.get(u);if(e){Yn.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],a=f.callback;it(f.type,a,r)}}}}}function it(n,t,i){if(0==n){var r=i.contentRect,u=r.height;m(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,a,c=i.target,s=Tn(c),l=Kn.test(function(n,t){return n.getComputedStyle(t)||Jn}(s,c).writingMode),v=c,h=v.offsetHeight,d=v.offsetWidth;l?(a=d,f=h):(f=d,a=h),e={inlineSize:f,blockSize:a}}m(t,e)}}var rt,ut,et,ot,ft=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Xn.get(n);if(u||(u=[],Xn.set(n,u),nt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Yn.get(n);e&&setTimeout((function(){return it(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Xn.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Xn.delete(n),Yn.delete(n);var u=n.ownerDocument.defaultView;u&&nt(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function at(n){if("object"!==("undefined"==typeof Reflect?"undefined":y(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ct(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ut&&et===t||(ut=at((et=t).HTMLElement)),function(t){Pn(r,ut);var i=En(r);function r(){var t;return(t=i.call(this)).implementation=new n(zn(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function st(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ct(t,i))}function lt(){return ot||(ot=(0,gn.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function vt(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,a=void 0===f||f,c=ht(),s=a&&c.renderable,l=s&&o&&c.playable,v=_n(s?"auto":"lazy",_n(r,c.loading)),h=u||c.notify,d=(0,jn.useMemo)((function(){return{renderable:s,playable:l,loading:v,notify:h}}),[s,l,v,h]),p=lt();return gn.createElement(p.Provider,{children:t,value:d})}function ht(){var n=lt();return(0,jn.useContext)(n)}function dt(n){return _n(n,ht().loading)}rt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Tn(n)}var t=n.prototype;return t.mutateElement=function(n){l().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var pt=nn("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},compute:function(n,t,i){return i&&t.reduce(yt,!0)||!1}}),bt=nn("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},deps:[pt],compute:function(n,t,i,r){return r&&i&&t.reduce(yt,!0)||!1}}),mt=nn("Loading",{defaultValue:"auto",recursive:!0,deps:[pt],compute:function(n,t,i,r){return _n(r?"auto":"lazy",_n(i||"auto",t.reduce(_n,"auto")))}}),yt=function(n,t){return n&&t},wt=function(n){return n.ensureLoaded()},gt=function(n){return n.pause()},jt=function(n){return n.unmount()};function Ot(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!1,wt)}function St(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,gt)}function Pt(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,jt)}function Mt(n,t,i,r){for(var u=x(n),e=0;e<u.length;e++)zt(u[e],t,i,r)}function zt(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(m(r,u),!i){var e=u.getPlaceholder();return void(e&&zt(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,a=0;a<o.length;a++){var c=o[a];if(i)m(r,c);else{f=f||[];for(var s=!1,l=0;l<f.length;l++)if(f[l].contains(c)){s=!0;break}s||(f.push(c),m(r,c))}}}var At={},Et=new WeakMap;function Rt(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return gn.createElement(kt,X(X({},i||At),{},{name:t}));var u=Et.get(n);if(u&&O(u.oldProps,i))return u.component;function e(n){return gn.createElement(kt,X(X({},i||At),{},{name:t},n))}return Et.set(n,{oldProps:i,component:e}),e}function kt(n){var t=(0,jn.useRef)(null);return Ct(t,n),(0,jn.useEffect)((function(){n.postRender&&n.postRender()})),gn.createElement("slot",X(X({},n),{},{ref:t}))}function Ct(n,t){var i=null==t?void 0:t.loading,r=ht();(0,jn.useLayoutEffect)((function(){var t=n.current;return B(L(t)),dn(t,pt,kt,r.renderable),dn(t,bt,kt,r.playable),dn(t,mt,kt,r.loading),r.playable||xt(t,St,!0),function(){pn(t,pt,kt),pn(t,bt,kt),pn(t,mt,kt),hn(t)}}),[n,r]),(0,jn.useLayoutEffect)((function(){var t=n.current;return B(L(t)),"lazy"!=i&&xt(t,Ot,!0),function(){xt(t,Pt,!1)}}),[n,i])}function xt(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var _t,Tt={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},Lt=(_t=0,function(){return String(++_t)});function Bt(n,t){return Object.values(n).some(t)}var Vt=function(n){return"string"==typeof n||!!n.selector},qt=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Wt(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var a=X(X({},r),{},{ref:i});return o&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=o),e&&(n.usesShadowDom?a.style=Tt:a.class="i-amphtml-fill-content"),It(n,a,f,t,u),u&&u.complete(),a}function It(n,t,i,r,u){if(Bt(i,Vt))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Nn(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],a=Ht(f,i);if(a){var c=i[a],s=c.as,l=void 0!==s&&s,v=c.clone,h=c.name,d=void 0===h?a:h,p=c.props,b=void 0===p?{}:p,m=c.single;B(v||n.usesShadowDom);var y={};if(It(n,y,b,f,u),m)t[d]=Rt(f,f.getAttribute("slot")||"i-amphtml-".concat(d),y,l);else{var w=t[d]||(t[d]=[]);B(!l),w.push(v?Nt(f):Rt(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(Lt()),y))}}}for(var g in i){var j=i[g];B([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)B(n.usesShadowDom),O=[gn.createElement(kt,{loading:"lazy"})];else if(j.passthroughNonEmpty)B(n.usesShadowDom),O=In(r).every(qt)?null:[gn.createElement(kt,{loading:"lazy"})];else if(j.attr){var S=r.getAttribute(j.attr);O=S&&j.parseAttr?j.parseAttr(S):S,j.media&&null!=O&&(B(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(B(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var P="number"==j.type?parseFloat(O):"boolean"==j.type?null==(M=O)?void 0:"false"!==M:O;t[g]=P}}var M}function Nt(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,a=o.value;t[f]=a}return gn.createElement(r,t)}function Ht(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&qn(n,u))return i}return null}var Dt={childList:!0},Ft={childList:!0,characterData:!0},$t={childList:!0},Gt={"style":"display: contents; background: inherit;","part":"c"},Zt={"name":"i-amphtml-svc"},Ut={"i-amphtml-rendered":""},Jt=function(){return!0},Kt=function(n){return!!n.media},Qt=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Xt=function(n){Pn(r,n);var t=En(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){B(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new ft(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Bt(i,Vt)?Dt:null,u=Bt(i,Qt)?Ft:null,e=t.usesTemplate?$t:null;this.observer.observe(this.element,X(X(X({attributes:!0},r),u),e)),this.xn=Bt(i,Kt)?new $n(this.win,(function(){return n.Ln()})):null;var o=t.staticProps,f=this.init();Object.assign(this.vn,o,f),this.checkPropsPostMutations(),un(this.element,[],(function(){return function(){n.zn=!1,n._n&&(0,wn.render)(null,n._n)}})),un(this.element,[pt,bt,mt],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var a,c=t.useContexts;return 0!=c.length&&un(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new v,this.Ln(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){ln(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;ln(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return B(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],a=t.attributeName;if(B(a),a==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(a)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,a))return!0}return!1}return"childList"==i&&(Yt(t.addedNodes)||Yt(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){B(!r);var f=this.element.shadowRoot,a=f&&(t=f,Bn("c"),Vn(t,"> ".concat("c")));if(a)this.Mn=!0;else{var c,s,l,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(B((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),a=Dn(o,"c",Gt),f.appendChild(a);var b=Dn(o,"slot",Zt);f.appendChild(b),null===(c=this.getPlaceholder)||void 0===c||null===(s=c.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(v=l.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=a,B(f),sn(f,this.element),bn(this.element,"unslotted",Jt,-1),mn(this.element,"unslotted",pt,this,!1)}else if(e){var m=this.element;this._n=m;var y=Wn(m,"i-amphtml-rendered")||Dn(o,e,Ut);y.__AMP_RENDERED=!0,i.layoutSizeDefined&&y.classList.add("i-amphtml-fill-content"),this._n.appendChild(y)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;B(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var S=Wt(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(S),this.isReady(S)){for(var P=gn.createElement(i.Component,S),M=0;M<j.length;M++){B(O);var z=j[M].type,A=O[M];A&&(P=gn.createElement(z.Provider,{value:A},P))}var E=gn.createElement(vt,X({},this.hn),P);try{if(this.Mn)this.Mn=!1,(0,wn.hydrate)(E,g);else{var R=e?Wn(g,"i-amphtml-rendered"):null;R&&(R.__AMP_RENDERED=!0),(0,wn.render)(E,g,null!=R?R:void 0)}}catch(n){var k;throw null===(k=this.kn)||void 0===k||k.reject(n),n}u||r||this.mutateElement((function(){return Fn(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,g.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new v),this.jn.promise)},i.wn=function(n){for(var t=j(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Fn(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return B(n),n[t]},set:function(n){var r=i.yn;B(r),r[t]=n}})},r}(rt);function Yt(n){for(var t=0;t<n.length;t++){var i=n[t];if(L(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function ni(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}Xt.staticProps=void 0,Xt.useContexts=[],Xt.loadable=!1,Xt.unloadOnPause=!1,Xt.layoutSizeDefined=!1,Xt.lightDomTag="",Xt.usesTemplate=!1,Xt.shadowCss=null,Xt.usesShadowDom=!1,Xt.detached=!1,Xt.delegatesFocus=!1,Xt.props={};var ti=a(require("preact"));function ii(n,t){function i(n){var i=this.props.ref,r=i==n.ref;return!r&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!r:function(n,t){for(var i in n)if("__source"!==i&&!(i in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}(this.props,n)}function r(t){return this.shouldComponentUpdate=i,(0,gn.createElement)(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r._forwarded=!0,r}var ri,ui=["ref"],ei="undefined"!=typeof Symbol&&(null===(ri=Symbol.for)||void 0===ri?void 0:ri.call(Symbol,"react.forward_ref"))||3911,oi=ti.options.__b;ti.options.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.In&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==oi||oi(n)};var fi=function(n){function t(t){var i=t.ref,r=ni(t,ui);return n(r,i)}return t.$$typeof=ei,t.render=t,t.prototype.isReactComponent=!0,t.In=!0,t},ai={toArray:function(n){return(0,ti.toChildArray)(n)},map:function(n,t){return(0,ti.toChildArray)(n).map(t)},count:function(n){return(0,ti.toChildArray)(n).length}};function ci(n){var t=function(n,t){if("object"!==y(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===y(t)?t:String(t)}var si=[null,"paint","layout","content","size","size paint","size layout","strict"],li={"position":"relative","width":"100%","height":"100%"},vi=fi((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,a=n.contentClassName,c=n.contentProps,s=n.contentRef,l=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,b=n.size,m=void 0!==b&&b,y=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=ni(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(ci)),S=(m?4:0)+(h?2:0)+(p?1:0);return gn.createElement(u,X(X({},O),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:X(X(X({},y),g),{},{contain:si[S]})}),gn.createElement(f,X(X({},c),{},{ref:s,class:a,style:X(X({},m&&li),{},{"overflow":p?"hidden":"visible"},l)}),e))})),hi=fi((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i],s=ni(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(ci));return gn.createElement(u,X(X({},s),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:X(X({},o),a)}),e)}));function di(n){var t=(0,jn.useRef)(n);return t.current=n,t}function pi(n,t){(0,jn.useImperativeHandle)(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}R(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new E(n),o=new A(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,a=f.attachShadow,c=f.createShadowRoot;function s(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return k(t,n.prototype),t}a&&(f.attachShadow=function(n){var t=a.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return a.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),R(i,s),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=s,s.call||(s.apply=n.Function.apply,s.bind=n.Function.bind,s.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento-preact.core.js.map
;
var t,n=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function i(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:s}=t,e=new Error(i);for(const n in t)e[n]=t[n];return e.stack=s,e}function s(t){let n=null,s="";for(const t of arguments)t instanceof Error&&!n?n=i(t):(s&&(s+=" "),s+=t);return n?s&&(n.message=s+": "+n.message):n=new Error(s),n}function e(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=s.apply(null,arguments);setTimeout((()=>{throw e(n),n}))}function r(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:u}=Object.prototype,{isArray:c}=Array;function h(t){return c(t)?t:[t]}function a(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function f(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function d(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,s,e,o,r,l,u,c,h){return t}function v(t,n){let i=!1;const s=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(s))}}function m(t,n,i,s=!0,e=!0){if(e){const e=n(t,i,s);e&&m(t,n,i,e,!1)}else if(t.children)for(const e of t.children)m(e,n,i,s,!0)}var y=[],b=()=>{};function _(t,n){return t.values.scan(n)}function P(t,n,i){return t.values.scanAll(i)}function g(t,n){return t.values.has(n)}function A(t){return!!t.recursive}function w(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||d(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(k)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=v(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:s}=t,e=this.o||(this.o=new Map);let o=e.get(s);o||(o={values:[],setters:[]},e.set(s,o));const r=o.setters.indexOf(n),l=-1==r||o.values[r]!==i;-1==r?(o.setters.push(n),o.values.push(i)):l&&(o.values[r]=i),l&&(this.ping(t,!1),A(t)&&m(this.i,_,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,s=this.o,e=null==s?void 0:s.get(i);if(e){p(s);const o=e.setters.indexOf(n);-1!=o&&(e.setters.splice(o,1),e.values.splice(o,1),0==e.setters.length&&s.delete(i),m(this.i,_,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!a(i.subscribers,n))return;const s=i.value;w(s)&&this.p()&&n(s)}unsubscribe(t,n){var i;const s=null===(i=this.u)||void 0===i?void 0:i.get(t.key);s&&f(s.subscribers,n)&&this.m(s)}ping(t,n){var i,s;null===(i=this.u)||void 0===i||null===(s=i.get(t.key))||void 0===s||s.ping(n)}parentUpdated(){this.p()&&m(this.i,P,void 0,y)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;A(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!A(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:s}=i,{key:e}=s;-1==(n||t).indexOf(e)&&(this.ping(s,!0),this.i.children&&this.has(s)&&(n||(n=t.slice(0)),n.push(e)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,s=this.u||(this.u=new Map);let e=s.get(i);return e||(e={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(b):y,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;e.pending=Math.max(e.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{e.depValues[n]=t,e.ping()})):y,pingParent:A(t)?t=>{e.parentValue=t,e.ping()}:null},s.set(i,e),n.forEach(((t,n)=>this.subscribe(t,e.pingDep[n]))),e.ping(!1)),e}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:s}=t,{deps:e,key:o}=s;null===(n=this.u)||void 0===n||n.delete(o),this._(t,null),e.length>0&&e.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:s}=t,{key:e}=i,o=this.u;if(s===n||t!==(null==o?void 0:o.get(e))||!this.p())return;t.value=n;const{subscribers:r}=t;for(const t of r)t(n)}P(t,n){var i,s;p(this.p());const{depValues:e,prop:o}=t,{compute:r,defaultValue:l,key:u}=o,c=null===(i=this.o)||void 0===i||null===(s=i.get(u))||void 0===s?void 0:s.values,h=function(t,n){const{compute:i,recursive:s}=t;return"function"==typeof s?!n||s(n):!(s&&n&&!i)&&s}(o,c);if(n||h!=Boolean(t.parentContextNode)){const n=h?function(t,n,i,s=!0){for(let e=s?t:t.parent;e;e=e.parent)if(n(e,i))return e;return null}(this.i,g,o,!1):null;this._(t,n)}const a=w(t.parentValue)?t.parentValue:h&&!t.parentContextNode?l:void 0;let f;if(e.every(w)&&(!h||w(a))){const{node:t}=this.i;c&&!r?f=c[0]:A(o)?c||e.length>0?f=function(t,n,i,s,e){switch(e.length){case 0:return t(n,i,s);case 1:return t(n,i,s,e[0]);case 2:return t(n,i,s,e[0],e[1]);case 3:return t(n,i,s,e[0],e[1],e[2]);default:return t.apply(null,[n,i,s].concat(e))}}(r,t,c||y,a,e):w(a)&&(f=a):r&&(f=function(t,n,i,s){switch(s.length){case 0:return t(n,i);case 1:return t(n,i,s[0]);case 2:return t(n,i,s[0],s[1]);case 3:return t(n,i,s[0],s[1],s[2]);default:return t.apply(null,[n,i].concat(s))}}(r,t,c||y,e))}return f}_(t,n){const{parentContextNode:i,pingParent:s,prop:e}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(s),i&&i.values.unsubscribe(e,s),n&&(p(s),n.values.subscribe(e,s)))}}(this),this.k=null,this.M=!1,this.R=v(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const s=t.target;s.assignedNodes().forEach(R),null===(n=M.closest(s))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(k)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(k)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const s=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(s)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,s;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(s=this.children)||void 0===s||s.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const s=this.groups||(this.groups=new Map),{children:e,node:o}=this,r=new M(o,t);return s.set(t,{cn:r,match:n,weight:i}),r.setParent(this),null==e||e.forEach(k),r}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,s=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:e,weight:o})=>{e(t,this.node)&&o>s&&(i=n,s=o)})),i}subscribe(t,n,i,s){const e=this.k||(this.k=new Map);let o=e.get(t);o||(o=new n(this,i,s),e.set(t,o))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const s=this.parent;if(t!=s){if(this.parent=t,null!=s&&s.children&&(p(s.children),f(s.children,this)),t){const n=t.children||(t.children=[]);a(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const s=M.closest(t,i);if(s)if(s.node==t)n(s);else if(s.children)for(const i of s.children)t.contains(i.node)&&n(i)}(t,k)}function k(t){t.discover()}function S(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function T(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,s)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){S(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var E=[];function I(t,n){const i=V({key:t,deps:E,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var C=[],O=()=>{};function j(t,n,i){n=h(n);const s=i;M.get(t).subscribe(s,N,i,n)}function z(t,n){const i=n;M.get(t).unsubscribe(i)}var N=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(O):C,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):C,this.N=!1,this.$=null,this.j=v(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(x)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(r(this.$),this.$=null)}};function x(t){return void 0!==t}function $(t,n){M.assignSlot(t,n)}function L(t,n){M.unassignSlot(t,n)}function D(t,n){M.get(t).setParent(n)}function U(t){M.get(t).discover()}function W(t,n){M.get(t).setIsRoot(n)}function q(t){M.rediscoverChildren(t)}function B(t,n,i,s){M.get(t).values.set(n,i,s)}function F(t,n,i){M.get(t).values.remove(n,i)}function G(t,n,i,s=0){M.get(t).addGroup(n,i,s)}function Q(t,n,i,s,e){var o;null===(o=M.get(t).group(n))||void 0===o||o.values.set(i,s,e)}function Z(t,n,i,s){var e;null===(e=M.get(t).group(n))||void 0===e||e.values.remove(i,s)}import{hydrate as H,render as J}from"preact";import{createElement as K,cloneElement as X,createRef as Y,createContext as tt,isValidElement as nt}from"preact";import{useState as it,useRef as st,useEffect as et,useLayoutEffect as ot,useContext as rt,useMemo as lt,useCallback as ut,useImperativeHandle as ct,useReducer as ht}from"preact/hooks";function at(t){return t.children}var ft=["auto","lazy","eager","unload"],dt={auto:0,lazy:1,eager:2,unload:3};function pt(t,n){const i=dt[null!=t?t:"auto"]||0,s=dt[null!=n?n:"auto"]||0,e=Math.max(i,s);return ft[e]}function vt(t){return(t.ownerDocument||t).defaultView}function mt(t){p(/^[\w-]+$/.test(t))}function yt(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function bt(t,n){return t.matches(n)}function _t(t,n){return mt(n),yt(t,`> [${n}]`)}function Pt(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!gt(n)&&i.push(n);return i}(t)}function gt(t){return!!function(t){let n;return"string"==typeof t?n=t:d(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var At={bubbles:!0,cancelable:!0};function wt(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Mt(t,n,i,s){const e=i||{};p(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=e;const{bubbles:r,cancelable:l}=s||At;o.initEvent(n,r,l),t.dispatchEvent(o)}function Rt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function kt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,s,e;if(")"==n.charAt(n.length-1)){let t=1;for(e=n.length-2;e>=0;e--){const i=n.charAt(e);if("("==i?t--:")"==i&&t++,0==t)break}const i=e-1;if(e>0)for(e--;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(e>=i)return null}else for(e=n.length-2;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return e>=0?(i=n.substring(0,e+1).trim(),s=n.substring(e+1).trim()):(s=n,i=void 0),s?{query:i?t.matchMedia(i):null,value:s}:null})).filter(Boolean)}function St(t,n,i){for(let s=0;s<t.length;s++){const{query:e}=t[s];e&&(void 0!==e.onchange?e.onchange=i?n:null:i?e.addListener(n):e.removeListener(n))}}var Tt,Vt,Et,It,Ct={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Ot=/vertical/,jt=new WeakMap,zt=new WeakMap,Nt=new WeakMap;function xt(t){let n=jt.get(t);return n||(n=new t.ResizeObserver($t),jt.set(t,n)),n}function $t(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const s=t[i],{target:e}=s;if(n.has(e))continue;n.add(e);const o=zt.get(e);if(o){Nt.set(e,s);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Lt(i,n,s)}}}}function Lt(t,n,i){if(0==t){const{contentRect:t}=i,{height:s,width:e}=t;r(n,{width:e,height:s})}else if(1==t){const{borderBoxSize:t}=i;let s;if(t)s=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=vt(t),e=Ot.test(function(t,n){return t.getComputedStyle(n)||Ct}(n,t).writingMode),{offsetHeight:o,offsetWidth:r}=t;let l,u;e?(u=r,l=o):(l=r,u=o),s={inlineSize:l,blockSize:u}}r(n,s)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Tt=AMP.BaseElement;else{class n{constructor(t){this.element=t,this.win=vt(t)}mutateElement(n){(t||(t=Promise.resolve(void 0))).then(n)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Tt=n}function Dt(t,n,i=self){i.customElements.define(t,function(t,n=self){return Vt&&Et===n||(Vt=(Et=n).HTMLElement),class extends Vt{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function Ut(){return It||(It=tt({renderable:!0,playable:!0,loading:"auto"}))}function Wt({children:t,loading:n="auto",notify:i,playable:s=!0,renderable:e=!0}){const o=qt(),r=e&&o.renderable,l=r&&s&&o.playable,u=pt(r?"auto":"lazy",pt(n,o.loading)),c=i||o.notify,h=lt((()=>({renderable:r,playable:l,loading:u,notify:c})),[r,l,u,c]),a=Ut();return K(a.Provider,{children:t,value:h})}function qt(){const t=Ut();return rt(t)}function Bt(t){const{loading:n}=qt();return pt(t,n)}var Ft=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Zt),compute:(t,n,i)=>i&&n.reduce(Zt,!0)||!1}),Gt=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Zt),deps:[Ft],compute:(t,n,i,s)=>s&&i&&n.reduce(Zt,!0)||!1}),Qt=I("Loading",{defaultValue:"auto",recursive:!0,deps:[Ft],compute:(t,n,i,s)=>pt(s?"auto":"lazy",pt(i||"auto",n.reduce(pt,"auto")))}),Zt=(t,n)=>t&&n,Ht=t=>t.ensureLoaded(),Jt=t=>t.pause(),Kt=t=>t.unmount();function Xt(t,n=!0){nn(t,n,!1,Ht)}function Yt(t,n=!0){nn(t,n,!0,Jt)}function tn(t,n=!0){nn(t,n,!0,Kt)}function nn(t,n,i,s){const e=h(t);for(let t=0;t<e.length;t++)sn(e[t],n,i,s)}function sn(t,n,i,s){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(r(s,n),!i){const t=n.getPlaceholder();return void(t&&sn(t,!0,!1,s))}}const e=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<e.length;t++){const n=e[t];if(i)r(s,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),r(s,n))}}}var en={},on=new WeakMap;function rn(t,n,i,s=!1){if(t.setAttribute("slot",n),!s)return K(ln,V(V({},i||en),{},{name:n}));const e=on.get(t);if(e&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(e.oldProps,i))return e.component;function o(t){return K(ln,V(V({},i||en),{},{name:n},t))}return on.set(t,{oldProps:i,component:o}),o}function ln(t){const n=st(null);return un(n,t),et((()=>{t.postRender&&t.postRender()})),K("slot",V(V({},t),{},{ref:n}))}function un(t,n){const i=null==n?void 0:n.loading,s=qt();ot((()=>{const n=t.current;return p(d(n)),B(n,Ft,ln,s.renderable),B(n,Gt,ln,s.playable),B(n,Qt,ln,s.loading),s.playable||cn(n,Yt,!0),()=>{F(n,Ft,ln),F(n,Gt,ln),F(n,Qt,ln),q(n)}}),[t,s]),ot((()=>{const n=t.current;return p(d(n)),"lazy"!=i&&cn(n,Xt,!0),()=>{cn(n,tn,!1)}}),[t,i])}function cn(t,n,i){const s=t.assignedElements?t.assignedElements():t;if(Array.isArray(s)&&0==s.length)return;if(!i)return void n(s);const e=t.ownerDocument.defaultView;e&&(e.requestIdleCallback||e.setTimeout)((()=>n(s)))}var hn={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},an=function(){let t=0;return()=>String(++t)}();function fn(t,n){return Object.values(t).some(n)}var dn=t=>"string"==typeof t||!!t.selector,pn=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function vn(t,n,i,s,e){const{"layoutSizeDefined":o,"lightDomTag":r,"props":l}=t;e&&e.start();const u=V(V({},s),{},{ref:i});return r&&(u["i-amphtml-rendered"]=!0,u.__AMP_RENDERED=!0,u.as=r),o&&(t.usesShadowDom?u.style=hn:u.class="i-amphtml-fill-content"),mn(t,u,l,n,e),e&&e.complete(),u}function mn(t,n,i,s,e){if(fn(i,dn)){const o=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!gt(n)&&i.push(n);return i}(t)}(s);for(let s=0;s<o.length;s++){const r=o[s],l=bn(r,i);if(!l)continue;const u=i[l],{as:c=!1,single:h,name:a=l,clone:f,props:d={}}=u;p(f||t.usesShadowDom);const v={};if(mn(t,v,d,r,e),h)n[a]=rn(r,r.getAttribute("slot")||`i-amphtml-${a}`,v,c);else{const t=n[a]||(n[a]=[]);p(!c),t.push(f?yn(r):rn(r,r.getAttribute("slot")||`i-amphtml-${a}-${an()}`,v))}}}for(const r in i){const l=i[r];let u;if(p([l.attr,l.attrs,l.attrMatches,l.selector,l.passthrough,l.passthroughNonEmpty].filter(Boolean).length<=1),l.passthrough)p(t.usesShadowDom),u=[K(ln,{loading:"lazy"})];else if(l.passthroughNonEmpty)p(t.usesShadowDom),u=Pt(s).every(pn)?null:[K(ln,{loading:"lazy"})];else if(l.attr){const t=s.getAttribute(l.attr);u=t&&l.parseAttr?l.parseAttr(t):t,l.media&&null!=u&&(p(e),u=e.resolveListQuery(String(u)))}else l.parseAttrs&&(p(l.attrs||l.attrMatches),u=l.parseAttrs(s));if(null==u)null!=l.default&&(n[r]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[r]=t}}var o}function yn(t){const n={"key":t},{attributes:i,localName:s}=t,{length:e}=i;for(let t=0;t<e;t++){const{name:s,value:e}=i[t];n[s]=e}return K(s,n)}function bn(t,n){for(const i in n){const s=n[i],e="string"==typeof s?s:s.selector;if(e&&bt(t,e))return i}return null}var _n={childList:!0},Pn={childList:!0,characterData:!0},gn={childList:!0},An={"style":"display: contents; background: inherit;","part":"c"},wn={"name":"i-amphtml-svc"},Mn={"i-amphtml-rendered":""},Rn=()=>!0,kn=t=>!!t.media,Sn=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Tn=class extends Tt{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const s=t.ownerDocument.defaultView;if(!s)return;let e=zt.get(t);if(e||(e=[],zt.set(t,e),xt(s).observe(t)),!e.some((t=>t.callback===i&&1===t.type))){e.push({type:1,callback:i});const n=Nt.get(t);n&&setTimeout((()=>Lt(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const s=zt.get(t);if(s&&(function(t,n){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];(o=r).callback===i&&1===o.type?s.push(r):(e<n&&(t[e]=r),e++)}var o;e<t.length&&(t.length=e)}(s),0==s.length)){zt.delete(t),Nt.delete(t);const n=t.ownerDocument.defaultView;n&&xt(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const s=this.ct;i||s.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:i}=t,s=fn(i,dn)?_n:null,e=fn(i,Sn)?Pn:null,o=t.usesTemplate?gn:null;this.observer.observe(this.element,V(V(V({attributes:!0},s),e),o)),this.vt=fn(i,kn)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,Rt,"1")}resolveListQuery(t){return this.At(t,kt,"")}complete(){for(const t in this.Pt)t in this.gt||St(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)St(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let s=this.gt[t];return s||(p(this.Pt),s=this.Pt[t]),s||(s=n(this.bt,t),St(s,this._t,!0)),this.gt[t]=s,function(t){for(let n=0;n<t.length;n++){const{query:i,value:s}=t[n];if(!i||i.matches)return s}return""}(s)}}(this.win,(()=>this.wt())):null;const{staticProps:r}=t,l=this.init();Object.assign(this.W,r,l),this.checkPropsPostMutations(),j(this.element,[],(()=>()=>{this.ut=!1,this.nt&&J(null,this.nt)})),j(this.element,[Ft,Gt,Qt],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:u}=t;var c;return 0!=u.length&&j(this.element,u,((...t)=>{this.tt=t,this.wt()})),this.et=new n,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){U(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;U(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var s,e;const o=i[t],r=n.attributeName;if(p(r),r==o.attr||null!==(s=o.attrs)&&void 0!==s&&s.includes(r)||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,r))return!0}return!1}return"childList"==i&&(Vn(n.addedNodes)||Vn(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,s=i?null:t.lightDomTag;if(!this.nt){const a=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,s=i&&(h=i,mt("c"),yt(h,"> c"));if(s)this.ot=!0;else{var e,o,r,l,u,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const s=t.ownerDocument,e=s.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==e.CSSStyleSheet.prototype.replaceSync){const s=e.__AMP_SHADOW_CSS||(e.__AMP_SHADOW_CSS={});let o=s[n];o||(o=new e.CSSStyleSheet,p(o.replaceSync),o.replaceSync(i),s[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const e=s.createElement("style");e.setAttribute("data-name",n),e.textContent=i,t.appendChild(e)}}(i,this.element.tagName,n),s=wt(a,"c",An),i.appendChild(s);const h=wt(a,"slot",wn);i.appendChild(h),null===(e=this.getPlaceholder)||void 0===e||null===(o=e.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(r=this.getFallback)||void 0===r||null===(l=r.call(this))||void 0===l||l.setAttribute("slot","i-amphtml-svc"),null===(u=this.getOverflowElement)||void 0===u||null===(c=u.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=s,p(i),D(i,this.element),G(this.element,"unslotted",Rn,-1),Q(this.element,"unslotted",Ft,this,!1)}else if(s){const n=this.element;this.nt=n;const i=_t(n,"i-amphtml-rendered")||wt(a,s,Mn);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=a.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var h;const a=this.nt;p(a);const{useContexts:f}=t,d=this.tt;if(0!=f.length&&null==d)return;const v=vn(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let m=K(t.Component,v);for(let t=0;t<f.length;t++){p(d);const n=f[t].type,i=d[t];i&&(m=K(n.Provider,{value:i},m))}const y=K(Wt,V({},this.F),m);try{if(this.ot)this.ot=!1,H(y,a);else{const t=s?_t(a,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),J(y,a,null!=t?t:void 0)}}catch(t){var b;throw null===(b=this.et)||void 0===b||b.reject(t),t}i||n||this.mutateElement((()=>Mt(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,s=t,l.call(i,s)?this.W[t]:n;var i,s}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new n),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const s=i[t];this.kt(n,s)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Mt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Vn(t){for(let n=0;n<t.length;n++){const i=t[n];if(d(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function En(t,n){if(null==t)return{};var i,s,e={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],n.indexOf(i)>=0||(e[i]=t[i]);return e}Tn.staticProps=void 0,Tn.useContexts=[],Tn.loadable=!1,Tn.unloadOnPause=!1,Tn.layoutSizeDefined=!1,Tn.lightDomTag="",Tn.usesTemplate=!1,Tn.shadowCss=null,Tn.usesShadowDom=!1,Tn.detached=!1,Tn.delegatesFocus=!1,Tn.props={};import{options as In,toChildArray as Cn}from"preact";function On(t,n){function i(t){const{ref:i}=this.props,s=i==t.ref;return!s&&i&&(i.call?i(null):i.current=null),n?!n(this.props,t)||!s:function(t,n){for(const i in t)if("__source"!==i&&!(i in n))return!0;for(const i in n)if("__source"!==i&&t[i]!==n[i])return!0;return!1}(this.props,t)}function s(n){return this.shouldComponentUpdate=i,K(t,n)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s._forwarded=!0,s}var jn,zn=["ref"],Nn="undefined"!=typeof Symbol&&(null===(jn=Symbol.for)||void 0===jn?void 0:jn.call(Symbol,"react.forward_ref"))||3911,xn=In.__b;In.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.Mt&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==xn||xn(t)};var $n=function(t){function n(n){const{ref:i}=n,s=En(n,zn);return t(s,i)}return n.$$typeof=Nn,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},Ln={toArray:function(t){return Cn(t)},map:function(t,n){return Cn(t).map(n)},count:function(t){return Cn(t).length}};function Dn(t){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Un(t){var n=function(t,n){if("object"!==Dn(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!==Dn(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Dn(n)?n:String(n)}var Wn=[null,"paint","layout","content","size","size paint","size layout","strict"],qn={"position":"relative","width":"100%","height":"100%"},Bn=$n((function(t,n){let i="class",{as:s="div",children:e,contentAs:o="div",contentClassName:r,contentProps:l,contentRef:u,contentStyle:c,layout:h=!1,paint:a=!1,size:f=!1,"style":d,wrapperClassName:p,wrapperStyle:v,[i]:m}=t,y=En(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(Un));const b=(f?4:0)+(h?2:0)+(a?1:0);return K(s,V(V({},y),{},{ref:n,class:`${m||""} ${p||""}`.trim()||null,style:V(V(V({},d),v),{},{contain:Wn[b]})}),K(o,V(V({},l),{},{ref:u,class:r,style:V(V({},f&&qn),{},{"overflow":a?"hidden":"visible"},c)}),e))})),Fn=$n((function(t,n){let i="class",{as:s="div",children:e,"style":o,wrapperClassName:r,wrapperStyle:l,[i]:u}=t,c=En(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(Un));return K(s,V(V({},c),{},{ref:n,class:`${u||""} ${r||""}`.trim()||null,style:V(V({},o),l)}),e)}));function Gn(t){const n=st(t);return n.current=t,n}function Qn(t,n){ct(t,(()=>n),[n])}export{Tt as BaseElement,Ln as Children,Bn as ContainWrapper,at as Fragment,Tn as PreactBaseElement,ln as Slot,Wt as WithAmpContext,Fn as Wrapper,G as addGroup,$ as assignSlot,X as cloneElement,I as contextProp,tt as createContext,K as createElement,Y as createRef,rn as createSlot,Dt as defineBentoElement,U as discover,$n as forwardRef,H as hydrate,nt as isValidElement,On as memo,q as rediscoverChildren,Z as removeGroupProp,F as removeProp,J as render,Q as setGroupProp,W as setIsRoot,D as setParent,B as setProp,j as subscribe,L as unassignSlot,z as unsubscribe,qt as useAmpContext,ut as useCallback,rt as useContext,Qn as useDOMHandle,et as useEffect,ct as useImperativeHandle,ot as useLayoutEffect,Bt as useLoading,lt as useMemo,ht as useReducer,st as useRef,un as useSlotContext,it as useState,Gn as useValueRef};
var t,n=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function i(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:s}=t,e=new Error(i);for(const n in t)e[n]=t[n];return e.stack=s,e}function s(t){let n=null,s="";for(const t of arguments)t instanceof Error&&!n?n=i(t):(s&&(s+=" "),s+=t);return n?s&&(n.message=s+": "+n.message):n=new Error(s),n}function e(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=s.apply(null,arguments);setTimeout((()=>{throw e(n),n}))}function r(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:u}=Object.prototype,{isArray:c}=Array;function h(t){return c(t)?t:[t]}function a(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function f(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function d(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,s,e,o,r,l,u,c,h){return t}function v(t,n){let i=!1;const s=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(s))}}function m(t,n,i,s=!0,e=!0){if(e){const e=n(t,i,s);e&&m(t,n,i,e,!1)}else if(t.children)for(const e of t.children)m(e,n,i,s,!0)}var y=[],b=()=>{};function _(t,n){return t.values.scan(n)}function P(t,n,i){return t.values.scanAll(i)}function g(t,n){return t.values.has(n)}function A(t){return!!t.recursive}function w(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||d(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(k)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=v(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:s}=t,e=this.o||(this.o=new Map);let o=e.get(s);o||(o={values:[],setters:[]},e.set(s,o));const r=o.setters.indexOf(n),l=-1==r||o.values[r]!==i;-1==r?(o.setters.push(n),o.values.push(i)):l&&(o.values[r]=i),l&&(this.ping(t,!1),A(t)&&m(this.i,_,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,s=this.o,e=null==s?void 0:s.get(i);if(e){p(s);const o=e.setters.indexOf(n);-1!=o&&(e.setters.splice(o,1),e.values.splice(o,1),0==e.setters.length&&s.delete(i),m(this.i,_,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!a(i.subscribers,n))return;const s=i.value;w(s)&&this.p()&&n(s)}unsubscribe(t,n){var i;const s=null===(i=this.u)||void 0===i?void 0:i.get(t.key);s&&f(s.subscribers,n)&&this.m(s)}ping(t,n){var i,s;null===(i=this.u)||void 0===i||null===(s=i.get(t.key))||void 0===s||s.ping(n)}parentUpdated(){this.p()&&m(this.i,P,void 0,y)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;A(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!A(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:s}=i,{key:e}=s;-1==(n||t).indexOf(e)&&(this.ping(s,!0),this.i.children&&this.has(s)&&(n||(n=t.slice(0)),n.push(e)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,s=this.u||(this.u=new Map);let e=s.get(i);return e||(e={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(b):y,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;e.pending=Math.max(e.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{e.depValues[n]=t,e.ping()})):y,pingParent:A(t)?t=>{e.parentValue=t,e.ping()}:null},s.set(i,e),n.forEach(((t,n)=>this.subscribe(t,e.pingDep[n]))),e.ping(!1)),e}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:s}=t,{deps:e,key:o}=s;null===(n=this.u)||void 0===n||n.delete(o),this._(t,null),e.length>0&&e.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:s}=t,{key:e}=i,o=this.u;if(s===n||t!==(null==o?void 0:o.get(e))||!this.p())return;t.value=n;const{subscribers:r}=t;for(const t of r)t(n)}P(t,n){var i,s;p(this.p());const{depValues:e,prop:o}=t,{compute:r,defaultValue:l,key:u}=o,c=null===(i=this.o)||void 0===i||null===(s=i.get(u))||void 0===s?void 0:s.values,h=function(t,n){const{compute:i,recursive:s}=t;return"function"==typeof s?!n||s(n):!(s&&n&&!i)&&s}(o,c);if(n||h!=Boolean(t.parentContextNode)){const n=h?function(t,n,i,s=!0){for(let e=s?t:t.parent;e;e=e.parent)if(n(e,i))return e;return null}(this.i,g,o,!1):null;this._(t,n)}const a=w(t.parentValue)?t.parentValue:h&&!t.parentContextNode?l:void 0;let f;if(e.every(w)&&(!h||w(a))){const{node:t}=this.i;c&&!r?f=c[0]:A(o)?c||e.length>0?f=function(t,n,i,s,e){switch(e.length){case 0:return t(n,i,s);case 1:return t(n,i,s,e[0]);case 2:return t(n,i,s,e[0],e[1]);case 3:return t(n,i,s,e[0],e[1],e[2]);default:return t.apply(null,[n,i,s].concat(e))}}(r,t,c||y,a,e):w(a)&&(f=a):r&&(f=function(t,n,i,s){switch(s.length){case 0:return t(n,i);case 1:return t(n,i,s[0]);case 2:return t(n,i,s[0],s[1]);case 3:return t(n,i,s[0],s[1],s[2]);default:return t.apply(null,[n,i].concat(s))}}(r,t,c||y,e))}return f}_(t,n){const{parentContextNode:i,pingParent:s,prop:e}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(s),i&&i.values.unsubscribe(e,s),n&&(p(s),n.values.subscribe(e,s)))}}(this),this.k=null,this.M=!1,this.R=v(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const s=t.target;s.assignedNodes().forEach(R),null===(n=M.closest(s))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(k)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(k)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const s=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(s)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,s;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(s=this.children)||void 0===s||s.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const s=this.groups||(this.groups=new Map),{children:e,node:o}=this,r=new M(o,t);return s.set(t,{cn:r,match:n,weight:i}),r.setParent(this),null==e||e.forEach(k),r}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,s=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:e,weight:o})=>{e(t,this.node)&&o>s&&(i=n,s=o)})),i}subscribe(t,n,i,s){const e=this.k||(this.k=new Map);let o=e.get(t);o||(o=new n(this,i,s),e.set(t,o))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const s=this.parent;if(t!=s){if(this.parent=t,null!=s&&s.children&&(p(s.children),f(s.children,this)),t){const n=t.children||(t.children=[]);a(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const s=M.closest(t,i);if(s)if(s.node==t)n(s);else if(s.children)for(const i of s.children)t.contains(i.node)&&n(i)}(t,k)}function k(t){t.discover()}function S(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function T(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,s)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){S(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var E=[];function I(t,n){const i=V({key:t,deps:E,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var C=[],O=()=>{};function j(t,n,i){n=h(n);const s=i;M.get(t).subscribe(s,N,i,n)}function z(t,n){const i=n;M.get(t).unsubscribe(i)}var N=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(O):C,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):C,this.N=!1,this.$=null,this.j=v(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(x)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(r(this.$),this.$=null)}};function x(t){return void 0!==t}function $(t,n){M.assignSlot(t,n)}function L(t,n){M.unassignSlot(t,n)}function D(t,n){M.get(t).setParent(n)}function U(t){M.get(t).discover()}function W(t,n){M.get(t).setIsRoot(n)}function q(t){M.rediscoverChildren(t)}function B(t,n,i,s){M.get(t).values.set(n,i,s)}function F(t,n,i){M.get(t).values.remove(n,i)}function G(t,n,i,s=0){M.get(t).addGroup(n,i,s)}function Q(t,n,i,s,e){var o;null===(o=M.get(t).group(n))||void 0===o||o.values.set(i,s,e)}function Z(t,n,i,s){var e;null===(e=M.get(t).group(n))||void 0===e||e.values.remove(i,s)}import{hydrate as H,render as J}from"preact";import{createElement as K,cloneElement as X,createRef as Y,createContext as tt,isValidElement as nt}from"preact";import{useState as it,useRef as st,useEffect as et,useLayoutEffect as ot,useContext as rt,useMemo as lt,useCallback as ut,useImperativeHandle as ct,useReducer as ht}from"preact/hooks";function at(t){return t.children}var ft=["auto","lazy","eager","unload"],dt={auto:0,lazy:1,eager:2,unload:3};function pt(t,n){const i=dt[null!=t?t:"auto"]||0,s=dt[null!=n?n:"auto"]||0,e=Math.max(i,s);return ft[e]}function vt(t){return(t.ownerDocument||t).defaultView}function mt(t){p(/^[\w-]+$/.test(t))}function yt(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function bt(t,n){return t.matches(n)}function _t(t,n){return mt(n),yt(t,`> [${n}]`)}function Pt(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!gt(n)&&i.push(n);return i}(t)}function gt(t){return!!function(t){let n;return"string"==typeof t?n=t:d(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var At={bubbles:!0,cancelable:!0};function wt(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Mt(t,n,i,s){const e=i||{};p(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=e;const{bubbles:r,cancelable:l}=s||At;o.initEvent(n,r,l),t.dispatchEvent(o)}function Rt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function kt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,s,e;if(")"==n.charAt(n.length-1)){let t=1;for(e=n.length-2;e>=0;e--){const i=n.charAt(e);if("("==i?t--:")"==i&&t++,0==t)break}const i=e-1;if(e>0)for(e--;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(e>=i)return null}else for(e=n.length-2;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return e>=0?(i=n.substring(0,e+1).trim(),s=n.substring(e+1).trim()):(s=n,i=void 0),s?{query:i?t.matchMedia(i):null,value:s}:null})).filter(Boolean)}function St(t,n,i){for(let s=0;s<t.length;s++){const{query:e}=t[s];e&&(void 0!==e.onchange?e.onchange=i?n:null:i?e.addListener(n):e.removeListener(n))}}var Tt,Vt,Et,It,Ct={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Ot=/vertical/,jt=new WeakMap,zt=new WeakMap,Nt=new WeakMap;function xt(t){let n=jt.get(t);return n||(n=new t.ResizeObserver($t),jt.set(t,n)),n}function $t(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const s=t[i],{target:e}=s;if(n.has(e))continue;n.add(e);const o=zt.get(e);if(o){Nt.set(e,s);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Lt(i,n,s)}}}}function Lt(t,n,i){if(0==t){const{contentRect:t}=i,{height:s,width:e}=t;r(n,{width:e,height:s})}else if(1==t){const{borderBoxSize:t}=i;let s;if(t)s=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=vt(t),e=Ot.test(function(t,n){return t.getComputedStyle(n)||Ct}(n,t).writingMode),{offsetHeight:o,offsetWidth:r}=t;let l,u;e?(u=r,l=o):(l=r,u=o),s={inlineSize:l,blockSize:u}}r(n,s)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Tt=AMP.BaseElement;else{class n{constructor(t){this.element=t,this.win=vt(t)}mutateElement(n){(t||(t=Promise.resolve(void 0))).then(n)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Tt=n}function Dt(t,n,i=self){i.customElements.define(t,function(t,n=self){return Vt&&Et===n||(Vt=(Et=n).HTMLElement),class extends Vt{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function Ut(){return It||(It=tt({renderable:!0,playable:!0,loading:"auto"}))}function Wt({children:t,loading:n="auto",notify:i,playable:s=!0,renderable:e=!0}){const o=qt(),r=e&&o.renderable,l=r&&s&&o.playable,u=pt(r?"auto":"lazy",pt(n,o.loading)),c=i||o.notify,h=lt((()=>({renderable:r,playable:l,loading:u,notify:c})),[r,l,u,c]),a=Ut();return K(a.Provider,{children:t,value:h})}function qt(){const t=Ut();return rt(t)}function Bt(t){const{loading:n}=qt();return pt(t,n)}var Ft=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Zt),compute:(t,n,i)=>i&&n.reduce(Zt,!0)||!1}),Gt=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Zt),deps:[Ft],compute:(t,n,i,s)=>s&&i&&n.reduce(Zt,!0)||!1}),Qt=I("Loading",{defaultValue:"auto",recursive:!0,deps:[Ft],compute:(t,n,i,s)=>pt(s?"auto":"lazy",pt(i||"auto",n.reduce(pt,"auto")))}),Zt=(t,n)=>t&&n,Ht=t=>t.ensureLoaded(),Jt=t=>t.pause(),Kt=t=>t.unmount();function Xt(t,n=!0){nn(t,n,!1,Ht)}function Yt(t,n=!0){nn(t,n,!0,Jt)}function tn(t,n=!0){nn(t,n,!0,Kt)}function nn(t,n,i,s){const e=h(t);for(let t=0;t<e.length;t++)sn(e[t],n,i,s)}function sn(t,n,i,s){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(r(s,n),!i){const t=n.getPlaceholder();return void(t&&sn(t,!0,!1,s))}}const e=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<e.length;t++){const n=e[t];if(i)r(s,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),r(s,n))}}}var en={},on=new WeakMap;function rn(t,n,i,s=!1){if(t.setAttribute("slot",n),!s)return K(ln,V(V({},i||en),{},{name:n}));const e=on.get(t);if(e&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(e.oldProps,i))return e.component;function o(t){return K(ln,V(V({},i||en),{},{name:n},t))}return on.set(t,{oldProps:i,component:o}),o}function ln(t){const n=st(null);return un(n,t),et((()=>{t.postRender&&t.postRender()})),K("slot",V(V({},t),{},{ref:n}))}function un(t,n){const i=null==n?void 0:n.loading,s=qt();ot((()=>{const n=t.current;return p(d(n)),B(n,Ft,ln,s.renderable),B(n,Gt,ln,s.playable),B(n,Qt,ln,s.loading),s.playable||cn(n,Yt,!0),()=>{F(n,Ft,ln),F(n,Gt,ln),F(n,Qt,ln),q(n)}}),[t,s]),ot((()=>{const n=t.current;return p(d(n)),"lazy"!=i&&cn(n,Xt,!0),()=>{cn(n,tn,!1)}}),[t,i])}function cn(t,n,i){const s=t.assignedElements?t.assignedElements():t;if(Array.isArray(s)&&0==s.length)return;if(!i)return void n(s);const e=t.ownerDocument.defaultView;e&&(e.requestIdleCallback||e.setTimeout)((()=>n(s)))}var hn={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},an=function(){let t=0;return()=>String(++t)}();function fn(t,n){return Object.values(t).some(n)}var dn=t=>"string"==typeof t||!!t.selector,pn=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function vn(t,n,i,s,e){const{"layoutSizeDefined":o,"lightDomTag":r,"props":l}=t;e&&e.start();const u=V(V({},s),{},{ref:i});return r&&(u["i-amphtml-rendered"]=!0,u.__AMP_RENDERED=!0,u.as=r),o&&(t.usesShadowDom?u.style=hn:u.class="i-amphtml-fill-content"),mn(t,u,l,n,e),e&&e.complete(),u}function mn(t,n,i,s,e){if(fn(i,dn)){const o=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!gt(n)&&i.push(n);return i}(t)}(s);for(let s=0;s<o.length;s++){const r=o[s],l=bn(r,i);if(!l)continue;const u=i[l],{as:c=!1,clone:h,name:a=l,props:f={},single:d}=u;p(h||t.usesShadowDom);const v={};if(mn(t,v,f,r,e),d)n[a]=rn(r,r.getAttribute("slot")||`i-amphtml-${a}`,v,c);else{const t=n[a]||(n[a]=[]);p(!c),t.push(h?yn(r):rn(r,r.getAttribute("slot")||`i-amphtml-${a}-${an()}`,v))}}}for(const r in i){const l=i[r];let u;if(p([l.attr,l.attrs,l.attrMatches,l.selector,l.passthrough,l.passthroughNonEmpty].filter(Boolean).length<=1),l.passthrough)p(t.usesShadowDom),u=[K(ln,{loading:"lazy"})];else if(l.passthroughNonEmpty)p(t.usesShadowDom),u=Pt(s).every(pn)?null:[K(ln,{loading:"lazy"})];else if(l.attr){const t=s.getAttribute(l.attr);u=t&&l.parseAttr?l.parseAttr(t):t,l.media&&null!=u&&(p(e),u=e.resolveListQuery(String(u)))}else l.parseAttrs&&(p(l.attrs||l.attrMatches),u=l.parseAttrs(s));if(null==u)null!=l.default&&(n[r]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[r]=t}}var o}function yn(t){const n={"key":t},{attributes:i,localName:s}=t,{length:e}=i;for(let t=0;t<e;t++){const{name:s,value:e}=i[t];n[s]=e}return K(s,n)}function bn(t,n){for(const i in n){const s=n[i],e="string"==typeof s?s:s.selector;if(e&&bt(t,e))return i}return null}var _n={childList:!0},Pn={childList:!0,characterData:!0},gn={childList:!0},An={"style":"display: contents; background: inherit;","part":"c"},wn={"name":"i-amphtml-svc"},Mn={"i-amphtml-rendered":""},Rn=()=>!0,kn=t=>!!t.media,Sn=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Tn=class extends Tt{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const s=t.ownerDocument.defaultView;if(!s)return;let e=zt.get(t);if(e||(e=[],zt.set(t,e),xt(s).observe(t)),!e.some((t=>t.callback===i&&1===t.type))){e.push({type:1,callback:i});const n=Nt.get(t);n&&setTimeout((()=>Lt(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const s=zt.get(t);if(s&&(function(t,n){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];(o=r).callback===i&&1===o.type?s.push(r):(e<n&&(t[e]=r),e++)}var o;e<t.length&&(t.length=e)}(s),0==s.length)){zt.delete(t),Nt.delete(t);const n=t.ownerDocument.defaultView;n&&xt(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const s=this.ct;i||s.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:i}=t,s=fn(i,dn)?_n:null,e=fn(i,Sn)?Pn:null,o=t.usesTemplate?gn:null;this.observer.observe(this.element,V(V(V({attributes:!0},s),e),o)),this.vt=fn(i,kn)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,Rt,"1")}resolveListQuery(t){return this.At(t,kt,"")}complete(){for(const t in this.Pt)t in this.gt||St(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)St(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let s=this.gt[t];return s||(p(this.Pt),s=this.Pt[t]),s||(s=n(this.bt,t),St(s,this._t,!0)),this.gt[t]=s,function(t){for(let n=0;n<t.length;n++){const{query:i,value:s}=t[n];if(!i||i.matches)return s}return""}(s)}}(this.win,(()=>this.wt())):null;const{staticProps:r}=t,l=this.init();Object.assign(this.W,r,l),this.checkPropsPostMutations(),j(this.element,[],(()=>()=>{this.ut=!1,this.nt&&J(null,this.nt)})),j(this.element,[Ft,Gt,Qt],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:u}=t;var c;return 0!=u.length&&j(this.element,u,((...t)=>{this.tt=t,this.wt()})),this.et=new n,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){U(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;U(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var s,e;const o=i[t],r=n.attributeName;if(p(r),r==o.attr||null!==(s=o.attrs)&&void 0!==s&&s.includes(r)||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,r))return!0}return!1}return"childList"==i&&(Vn(n.addedNodes)||Vn(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,s=i?null:t.lightDomTag;if(!this.nt){const a=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,s=i&&(h=i,mt("c"),yt(h,"> c"));if(s)this.ot=!0;else{var e,o,r,l,u,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const s=t.ownerDocument,e=s.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==e.CSSStyleSheet.prototype.replaceSync){const s=e.__AMP_SHADOW_CSS||(e.__AMP_SHADOW_CSS={});let o=s[n];o||(o=new e.CSSStyleSheet,p(o.replaceSync),o.replaceSync(i),s[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const e=s.createElement("style");e.setAttribute("data-name",n),e.textContent=i,t.appendChild(e)}}(i,this.element.tagName,n),s=wt(a,"c",An),i.appendChild(s);const h=wt(a,"slot",wn);i.appendChild(h),null===(e=this.getPlaceholder)||void 0===e||null===(o=e.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(r=this.getFallback)||void 0===r||null===(l=r.call(this))||void 0===l||l.setAttribute("slot","i-amphtml-svc"),null===(u=this.getOverflowElement)||void 0===u||null===(c=u.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=s,p(i),D(i,this.element),G(this.element,"unslotted",Rn,-1),Q(this.element,"unslotted",Ft,this,!1)}else if(s){const n=this.element;this.nt=n;const i=_t(n,"i-amphtml-rendered")||wt(a,s,Mn);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=a.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var h;const a=this.nt;p(a);const{useContexts:f}=t,d=this.tt;if(0!=f.length&&null==d)return;const v=vn(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let m=K(t.Component,v);for(let t=0;t<f.length;t++){p(d);const n=f[t].type,i=d[t];i&&(m=K(n.Provider,{value:i},m))}const y=K(Wt,V({},this.F),m);try{if(this.ot)this.ot=!1,H(y,a);else{const t=s?_t(a,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),J(y,a,null!=t?t:void 0)}}catch(t){var b;throw null===(b=this.et)||void 0===b||b.reject(t),t}i||n||this.mutateElement((()=>Mt(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,s=t,l.call(i,s)?this.W[t]:n;var i,s}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new n),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const s=i[t];this.kt(n,s)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Mt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Vn(t){for(let n=0;n<t.length;n++){const i=t[n];if(d(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function En(t,n){if(null==t)return{};var i,s,e={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],n.indexOf(i)>=0||(e[i]=t[i]);return e}Tn.staticProps=void 0,Tn.useContexts=[],Tn.loadable=!1,Tn.unloadOnPause=!1,Tn.layoutSizeDefined=!1,Tn.lightDomTag="",Tn.usesTemplate=!1,Tn.shadowCss=null,Tn.usesShadowDom=!1,Tn.detached=!1,Tn.delegatesFocus=!1,Tn.props={};import{options as In,toChildArray as Cn}from"preact";function On(t,n){function i(t){const{ref:i}=this.props,s=i==t.ref;return!s&&i&&(i.call?i(null):i.current=null),n?!n(this.props,t)||!s:function(t,n){for(const i in t)if("__source"!==i&&!(i in n))return!0;for(const i in n)if("__source"!==i&&t[i]!==n[i])return!0;return!1}(this.props,t)}function s(n){return this.shouldComponentUpdate=i,K(t,n)}return s.displayName="Memo("+(t.displayName||t.name)+")",s.prototype.isReactComponent=!0,s._forwarded=!0,s}var jn,zn=["ref"],Nn="undefined"!=typeof Symbol&&(null===(jn=Symbol.for)||void 0===jn?void 0:jn.call(Symbol,"react.forward_ref"))||3911,xn=In.__b;In.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.Mt&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==xn||xn(t)};var $n=function(t){function n(n){const{ref:i}=n,s=En(n,zn);return t(s,i)}return n.$$typeof=Nn,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},Ln={toArray:function(t){return Cn(t)},map:function(t,n){return Cn(t).map(n)},count:function(t){return Cn(t).length}};function Dn(t){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Un(t){var n=function(t,n){if("object"!==Dn(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!==Dn(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Dn(n)?n:String(n)}var Wn=[null,"paint","layout","content","size","size paint","size layout","strict"],qn={"position":"relative","width":"100%","height":"100%"},Bn=$n((function(t,n){let i="class",{as:s="div",children:e,contentAs:o="div",contentClassName:r,contentProps:l,contentRef:u,contentStyle:c,layout:h=!1,paint:a=!1,size:f=!1,"style":d,wrapperClassName:p,wrapperStyle:v,[i]:m}=t,y=En(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(Un));const b=(f?4:0)+(h?2:0)+(a?1:0);return K(s,V(V({},y),{},{ref:n,class:`${m||""} ${p||""}`.trim()||null,style:V(V(V({},d),v),{},{contain:Wn[b]})}),K(o,V(V({},l),{},{ref:u,class:r,style:V(V({},f&&qn),{},{"overflow":a?"hidden":"visible"},c)}),e))})),Fn=$n((function(t,n){let i="class",{as:s="div",children:e,"style":o,wrapperClassName:r,wrapperStyle:l,[i]:u}=t,c=En(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(Un));return K(s,V(V({},c),{},{ref:n,class:`${u||""} ${r||""}`.trim()||null,style:V(V({},o),l)}),e)}));function Gn(t){const n=st(t);return n.current=t,n}function Qn(t,n){ct(t,(()=>n),[n])}export{Tt as BaseElement,Ln as Children,Bn as ContainWrapper,at as Fragment,Tn as PreactBaseElement,ln as Slot,Wt as WithAmpContext,Fn as Wrapper,G as addGroup,$ as assignSlot,X as cloneElement,I as contextProp,tt as createContext,K as createElement,Y as createRef,rn as createSlot,Dt as defineBentoElement,U as discover,$n as forwardRef,H as hydrate,nt as isValidElement,On as memo,q as rediscoverChildren,Z as removeGroupProp,F as removeProp,J as render,Q as setGroupProp,W as setIsRoot,D as setParent,B as setProp,j as subscribe,L as unassignSlot,z as unsubscribe,qt as useAmpContext,ut as useCallback,rt as useContext,Qn as useDOMHandle,et as useEffect,ct as useImperativeHandle,ot as useLayoutEffect,Bt as useLoading,lt as useMemo,ht as useReducer,st as useRef,un as useSlotContext,it as useState,Gn as useValueRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento-preact.core.module.js.map
;
var n,t=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,e=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,f=function(n){return i(n,"__esModule",{value:!0})},a=function(n){return function(n,t,e){if(t&&"object"==typeof t||"function"==typeof t)for(var f,a=u(t),c=0,s=a.length;c<s;c++)f=a[c],o.call(n,f)||"default"===f||i(n,f,{get:function(n){return t[n]}.bind(null,f),enumerable:!(e=r(t,f))||e.enumerable});return n}(f(i(null!=n?t(e(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function s(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=function(n,t){if(n){if("string"==typeof n)return c(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(){return n||(n=Promise.resolve(void 0))}!function(n,t){for(var r in f(n),t)i(n,r,{get:t[r],enumerable:!0})}(exports,{BaseElement:function(){return rt},Children:function(){return ni.Children},ContainWrapper:function(){return ei},Fragment:function(){return On},PreactBaseElement:function(){return Xt},Slot:function(){return Ct},WithAmpContext:function(){return vt},Wrapper:function(){return oi},addGroup:function(){return bn},assignSlot:function(){return an},cloneElement:function(){return gn.cloneElement},contextProp:function(){return nn},createContext:function(){return gn.createContext},createElement:function(){return gn.createElement},createRef:function(){return gn.createRef},createSlot:function(){return At},defineBentoElement:function(){return st},discover:function(){return ln},forwardRef:function(){return ni.forwardRef},hydrate:function(){return wn.hydrate},isValidElement:function(){return gn.isValidElement},memo:function(){return ni.memo},rediscoverChildren:function(){return hn},removeGroupProp:function(){return yn},removeProp:function(){return pn},render:function(){return wn.render},setGroupProp:function(){return mn},setIsRoot:function(){return vn},setParent:function(){return sn},setProp:function(){return dn},subscribe:function(){return un},unassignSlot:function(){return cn},unsubscribe:function(){return en},useAmpContext:function(){return ht},useCallback:function(){return jn.useCallback},useContext:function(){return jn.useContext},useDOMHandle:function(){return ai},useEffect:function(){return jn.useEffect},useImperativeHandle:function(){return jn.useImperativeHandle},useLayoutEffect:function(){return jn.useLayoutEffect},useLoading:function(){return dt},useMemo:function(){return jn.useMemo},useReducer:function(){return jn.useReducer},useRef:function(){return jn.useRef},useSlotContext:function(){return kt},useState:function(){return jn.useState},useValueRef:function(){return fi}});var v=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function h(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function d(n){for(var t,i=null,r="",u=s(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=h(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function p(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function b(n){var t=d.apply(null,arguments);setTimeout((function(){throw p(t),t}))}function m(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){b(n)}}function y(n){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var w=Object.prototype,g=w.hasOwnProperty;function j(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function O(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}w.toString;var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,P=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],M={"childList":!0,"subtree":!0};function z(n,t){if(!S.test(t)||P.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var E=function(){function n(n,t){this.i=n,this.u=t,this.o=j()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,z(t.SyntaxError,n),this.u.getByName(n))return l();var i=this.o,r=i[n];return r||(r=new v,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),R=function(){function n(n){this.i=n,this.v=j(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var r=this.i,u=r.Error,e=r.SyntaxError;if(i)throw new u("Extending native custom elements is not supported");if(z(e,n),this.getByName(n)||this.getByConstructor(t))throw new u('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var o,f=s(this.g,!0);!(o=f()).done;){var a=o.value;this.upgrade(a,n)}},t.upgrade=function(n,t){for(var i,r=!!t,u=t||this.h,e=s(this.O(n,u),!0);!(i=e()).done;){var o=i.value;r?this._(o):this.upgradeSelf(o)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){b(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){b(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){b(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var r,u=s(this.g,!0);!(r=u()).done;){var e=r.value;i.observe(e,M)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,a=u.prototype,c=e.prototype,s=f.createElement,l=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,b=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:s.apply(this,arguments)},f.importNode=function(){var n=l.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=b.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=a,y=Object.getOwnPropertyDescriptor(m,"innerHTML");if(y||(m=Object.getPrototypeOf(n.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=y)&&void 0!==i&&i.configurable){var w=y.set;y.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",y)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,M)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=s(n,!0);!(t=i()).done;){var r=t.value;if(r){for(var u,e=r.addedNodes,o=r.removedNodes,f=s(e,!0);!(u=f()).done;){var a=u.value,c=this.O(a,this.h);this._(a);for(var l,v=s(c,!0);!(l=v()).done;){var h=l.value;this._(h)}}for(var d,p=s(o,!0);!(d=p()).done;){var b=d.value,m=this.O(b,this.h);this.k(b);for(var y,w=s(m,!0);!(y=w()).done;){var g=y.value;this.k(g)}}}}},n}();function A(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),C(t,n)}function C(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var r,u=s(Object.getOwnPropertyNames(i),!0);!(r=u()).done;){var e=r.value;if(!Object.hasOwnProperty.call(n,e)){var o=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,o)}}i=Object.getPrototypeOf(i)}}(n,t)}var k=Array.isArray;function x(n){return k(n)?n:[n]}function T(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function L(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function _(n){return 1==(null==n?void 0:n.nodeType)}function B(n,t,i,r,u,e,o,f,a,c,s){return n}function V(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function q(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&q(n,t,i,e,!1)}else if(n.children)for(var o,f=s(n.children,!0);!(o=f()).done;){var a=o.value;q(a,t,i,r,!0)}}var W=[],I=function(){},N=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=V(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){B(t),B(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),$(n)&&q(this.A,H,n,!0,!1))},t.remove=function(n,t){B(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){B(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),q(this.A,H,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(T(i.subscribers,t)){var r=i.value;G(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&L(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&q(this.A,D,void 0,W)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){$(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!$(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(I):W,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):W,pingParent:$(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return b("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){b(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.C;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.L()){n.value=t;for(var o,f=s(n.subscribers,!0);!(o=f()).done;)(0,o.value)(t)}},t.F=function(n,t){var i,r;B(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,a=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(a))||void 0===r?void 0:r.values,s=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||s!=Boolean(n.parentContextNode)){var l=s?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,F,e,!1):null;this.I(n,l)}var v=G(n.parentValue)?n.parentValue:s&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(G)&&(!s||G(v))){var d=this.A.node;c&&!o?h=c[0]:$(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||W,v,u):G(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||W,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,B(r),i&&i.values.unsubscribe(u,r),t&&(B(r),t.values.subscribe(u,r)))},n}();function H(n,t){return n.values.scan(t)}function D(n,t,i){return n.values.scanAll(i)}function F(n,t){return n.values.has(t)}function $(n){return!!n.recursive}function G(n){return void 0!==n}var Z=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new N(this),this.N=null,this.W=!1,this.$=V(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(U),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(J)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||_(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,U(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,U(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(J)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(J)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){B(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(J),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),B(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(B(r.children),L(r.children,this)),n){var u=n.children||(n.children=[]);T(u,this);for(var e,o=s(u,!0);!(e=o()).done;){var f=e.value;f!=this&&f.isDiscoverable()&&f.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function U(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Z.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=s(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,J)}function J(n){n.discover()}function K(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function Q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function X(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach((function(t){K(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var Y=[];function nn(n,t){var i=X({key:n,deps:Y,recursive:!1},t);return B(0==i.deps.length||i.compute),i}var tn=[],rn=function(){};function un(n,t,i){t=x(t);var r=i;Z.get(n).subscribe(r,on,i,t)}function en(n,t){var i=t;Z.get(n).unsubscribe(i)}var on=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(rn):tn,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):tn,this.X=!1,this.Y=null,this.K=V(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(fn)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(m(this.Y),this.Y=null)},n}();function fn(n){return void 0!==n}function an(n,t){Z.assignSlot(n,t)}function cn(n,t){Z.unassignSlot(n,t)}function sn(n,t){Z.get(n).setParent(t)}function ln(n){Z.get(n).discover()}function vn(n,t){Z.get(n).setIsRoot(t)}function hn(n){Z.rediscoverChildren(n)}function dn(n,t,i,r){Z.get(n).values.set(t,i,r)}function pn(n,t,i){Z.get(n).values.remove(t,i)}function bn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Z.get(n).addGroup(t,i,r)}function mn(n,t,i,r,u){var e;null===(e=Z.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function yn(n,t,i,r){var u;null===(u=Z.get(n).group(t))||void 0===u||u.values.remove(i,r)}var wn=a(require("react-dom")),gn=a(require("react")),jn=a(require("react"));function On(n){return n.children}function Sn(n,t){return(Sn=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Pn(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Sn(n,t)}function Mn(n){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function zn(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function En(n,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zn(n)}function Rn(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Mn(n);if(t){var u=Mn(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return En(this,i)}}var An,Cn,kn=["auto","lazy","eager","unload"],xn=(K(An={},"auto",0),K(An,"lazy",1),K(An,"eager",2),K(An,"unload",3),An);function Tn(n,t){var i=xn[null!=n?n:"auto"]||0,r=xn[null!=t?t:"auto"]||0,u=Math.max(i,r);return kn[u]}function Ln(n){return(n.ownerDocument||n).defaultView}function _n(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function Bn(n){B(/^[\w-]+$/.test(n))}function Vn(n,t){if(void 0!==Cn?Cn:Cn=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(_n(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=_n(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function qn(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Wn(n,t){return Bn(t),Vn(n,"> [".concat(t,"]"))}function In(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Nn(r)&&i.push(r);return i}(n)}function Nn(n){return"string"==typeof(t=n)?i=t:_(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var Hn={bubbles:!0,cancelable:!0};function Dn(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Fn(n,t,i,r){var u=i||{};B(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||Hn,f=o.bubbles,a=o.cancelable;e.initEvent(t,f,a),n.dispatchEvent(e)}var $n=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Gn,"1")},t.resolveListQuery=function(n){return this.on(n,Zn,"")},t.complete=function(){for(var n in this.en)n in this.un||Un(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Un(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(B(this.en),r=this.en[n]),r||Un(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Gn(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Zn(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"-"==a||"_"==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Un(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Jn={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Kn=/vertical/,Qn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;function nt(n){var t=Qn.get(n);return t||(t=new n.ResizeObserver(tt),Qn.set(n,t)),t}function tt(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Xn.get(u);if(e){Yn.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],a=f.callback;it(f.type,a,r)}}}}}function it(n,t,i){if(0==n){var r=i.contentRect,u=r.height;m(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,a,c=i.target,s=Ln(c),l=Kn.test(function(n,t){return n.getComputedStyle(t)||Jn}(s,c).writingMode),v=c,h=v.offsetHeight,d=v.offsetWidth;l?(a=d,f=h):(f=d,a=h),e={inlineSize:f,blockSize:a}}m(t,e)}}var rt,ut,et,ot,ft=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Xn.get(n);if(u||(u=[],Xn.set(n,u),nt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Yn.get(n);e&&setTimeout((function(){return it(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Xn.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Xn.delete(n),Yn.delete(n);var u=n.ownerDocument.defaultView;u&&nt(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function at(n){if("object"!==("undefined"==typeof Reflect?"undefined":y(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ct(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ut&&et===t||(ut=at((et=t).HTMLElement)),function(t){Pn(r,ut);var i=Rn(r);function r(){var t;return(t=i.call(this)).implementation=new n(zn(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function st(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ct(t,i))}function lt(){return ot||(ot=(0,gn.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function vt(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,a=void 0===f||f,c=ht(),s=a&&c.renderable,l=s&&o&&c.playable,v=Tn(s?"auto":"lazy",Tn(r,c.loading)),h=u||c.notify,d=(0,jn.useMemo)((function(){return{renderable:s,playable:l,loading:v,notify:h}}),[s,l,v,h]),p=lt();return gn.createElement(p.Provider,{children:t,value:d})}function ht(){var n=lt();return(0,jn.useContext)(n)}function dt(n){return Tn(n,ht().loading)}rt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Ln(n)}var t=n.prototype;return t.mutateElement=function(n){l().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var pt=nn("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},compute:function(n,t,i){return i&&t.reduce(yt,!0)||!1}}),bt=nn("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},deps:[pt],compute:function(n,t,i,r){return r&&i&&t.reduce(yt,!0)||!1}}),mt=nn("Loading",{defaultValue:"auto",recursive:!0,deps:[pt],compute:function(n,t,i,r){return Tn(r?"auto":"lazy",Tn(i||"auto",t.reduce(Tn,"auto")))}}),yt=function(n,t){return n&&t},wt=function(n){return n.ensureLoaded()},gt=function(n){return n.pause()},jt=function(n){return n.unmount()};function Ot(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!1,wt)}function St(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,gt)}function Pt(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,jt)}function Mt(n,t,i,r){for(var u=x(n),e=0;e<u.length;e++)zt(u[e],t,i,r)}function zt(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(m(r,u),!i){var e=u.getPlaceholder();return void(e&&zt(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,a=0;a<o.length;a++){var c=o[a];if(i)m(r,c);else{f=f||[];for(var s=!1,l=0;l<f.length;l++)if(f[l].contains(c)){s=!0;break}s||(f.push(c),m(r,c))}}}var Et={},Rt=new WeakMap;function At(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return gn.createElement(Ct,X(X({},i||Et),{},{name:t}));var u=Rt.get(n);if(u&&O(u.oldProps,i))return u.component;function e(n){return gn.createElement(Ct,X(X({},i||Et),{},{name:t},n))}return Rt.set(n,{oldProps:i,component:e}),e}function Ct(n){var t=(0,jn.useRef)(null);return kt(t,n),(0,jn.useEffect)((function(){n.postRender&&n.postRender()})),gn.createElement("slot",X(X({},n),{},{ref:t}))}function kt(n,t){var i=null==t?void 0:t.loading,r=ht();(0,jn.useLayoutEffect)((function(){var t=n.current;return B(_(t)),dn(t,pt,Ct,r.renderable),dn(t,bt,Ct,r.playable),dn(t,mt,Ct,r.loading),r.playable||xt(t,St,!0),function(){pn(t,pt,Ct),pn(t,bt,Ct),pn(t,mt,Ct),hn(t)}}),[n,r]),(0,jn.useLayoutEffect)((function(){var t=n.current;return B(_(t)),"lazy"!=i&&xt(t,Ot,!0),function(){xt(t,Pt,!1)}}),[n,i])}function xt(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var Tt,Lt={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},_t=(Tt=0,function(){return String(++Tt)});function Bt(n,t){return Object.values(n).some(t)}var Vt=function(n){return"string"==typeof n||!!n.selector},qt=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Wt(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var a=X(X({},r),{},{ref:i});return o&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=o),e&&(n.usesShadowDom?a.style=Lt:a.class="i-amphtml-fill-content"),It(n,a,f,t,u),u&&u.complete(),a}function It(n,t,i,r,u){if(Bt(i,Vt))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Nn(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],a=Ht(f,i);if(a){var c=i[a],s=c.as,l=void 0!==s&&s,v=c.single,h=c.name,d=void 0===h?a:h,p=c.clone,b=c.props,m=void 0===b?{}:b;B(p||n.usesShadowDom);var y={};if(It(n,y,m,f,u),v)t[d]=At(f,f.getAttribute("slot")||"i-amphtml-".concat(d),y,l);else{var w=t[d]||(t[d]=[]);B(!l),w.push(p?Nt(f):At(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(_t()),y))}}}for(var g in i){var j=i[g];B([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)B(n.usesShadowDom),O=[gn.createElement(Ct,{loading:"lazy"})];else if(j.passthroughNonEmpty)B(n.usesShadowDom),O=In(r).every(qt)?null:[gn.createElement(Ct,{loading:"lazy"})];else if(j.attr){var S=r.getAttribute(j.attr);O=S&&j.parseAttr?j.parseAttr(S):S,j.media&&null!=O&&(B(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(B(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var P="number"==j.type?parseFloat(O):"boolean"==j.type?null==(M=O)?void 0:"false"!==M:O;t[g]=P}}var M}function Nt(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,a=o.value;t[f]=a}return gn.createElement(r,t)}function Ht(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&qn(n,u))return i}return null}var Dt={childList:!0},Ft={childList:!0,characterData:!0},$t={childList:!0},Gt={"style":"display: contents; background: inherit;","part":"c"},Zt={"name":"i-amphtml-svc"},Ut={"i-amphtml-rendered":""},Jt=function(){return!0},Kt=function(n){return!!n.media},Qt=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Xt=function(n){Pn(r,n);var t=Rn(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){B(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new ft(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Bt(i,Vt)?Dt:null,u=Bt(i,Qt)?Ft:null,e=t.usesTemplate?$t:null;this.observer.observe(this.element,X(X(X({attributes:!0},r),u),e)),this.xn=Bt(i,Kt)?new $n(this.win,(function(){return n.Ln()})):null;var o=t.staticProps,f=this.init();Object.assign(this.vn,o,f),this.checkPropsPostMutations(),un(this.element,[],(function(){return function(){n.zn=!1,n._n&&(0,wn.render)(null,n._n)}})),un(this.element,[pt,bt,mt],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var a,c=t.useContexts;return 0!=c.length&&un(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new v,this.Ln(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){ln(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;ln(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return B(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],a=t.attributeName;if(B(a),a==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(a)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,a))return!0}return!1}return"childList"==i&&(Yt(t.addedNodes)||Yt(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){B(!r);var f=this.element.shadowRoot,a=f&&(t=f,Bn("c"),Vn(t,"> ".concat("c")));if(a)this.Mn=!0;else{var c,s,l,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(B((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),a=Dn(o,"c",Gt),f.appendChild(a);var b=Dn(o,"slot",Zt);f.appendChild(b),null===(c=this.getPlaceholder)||void 0===c||null===(s=c.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(v=l.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=a,B(f),sn(f,this.element),bn(this.element,"unslotted",Jt,-1),mn(this.element,"unslotted",pt,this,!1)}else if(e){var m=this.element;this._n=m;var y=Wn(m,"i-amphtml-rendered")||Dn(o,e,Ut);y.__AMP_RENDERED=!0,i.layoutSizeDefined&&y.classList.add("i-amphtml-fill-content"),this._n.appendChild(y)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;B(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var S=Wt(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(S),this.isReady(S)){for(var P=gn.createElement(i.Component,S),M=0;M<j.length;M++){B(O);var z=j[M].type,E=O[M];E&&(P=gn.createElement(z.Provider,{value:E},P))}var R=gn.createElement(vt,X({},this.hn),P);try{if(this.Mn)this.Mn=!1,(0,wn.hydrate)(R,g);else{var A=e?Wn(g,"i-amphtml-rendered"):null;A&&(A.__AMP_RENDERED=!0),(0,wn.render)(R,g,null!=A?A:void 0)}}catch(n){var C;throw null===(C=this.kn)||void 0===C||C.reject(n),n}u||r||this.mutateElement((function(){return Fn(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,g.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new v),this.jn.promise)},i.wn=function(n){for(var t=j(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Fn(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return B(n),n[t]},set:function(n){var r=i.yn;B(r),r[t]=n}})},r}(rt);function Yt(n){for(var t=0;t<n.length;t++){var i=n[t];if(_(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}Xt.staticProps=void 0,Xt.useContexts=[],Xt.loadable=!1,Xt.unloadOnPause=!1,Xt.layoutSizeDefined=!1,Xt.lightDomTag="",Xt.usesTemplate=!1,Xt.shadowCss=null,Xt.usesShadowDom=!1,Xt.detached=!1,Xt.delegatesFocus=!1,Xt.props={};var ni=a(require("react"));function ti(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}function ii(n){var t=function(n,t){if("object"!==y(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===y(t)?t:String(t)}var ri=[null,"paint","layout","content","size","size paint","size layout","strict"],ui={"position":"relative","width":"100%","height":"100%"},ei=(0,ni.forwardRef)((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,a=n.contentClassName,c=n.contentProps,s=n.contentRef,l=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,b=n.size,m=void 0!==b&&b,y=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=ti(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(ii)),S=(m?4:0)+(h?2:0)+(p?1:0);return gn.createElement(u,X(X({},O),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:X(X(X({},y),g),{},{contain:ri[S]})}),gn.createElement(f,X(X({},c),{},{ref:s,class:a,style:X(X({},m&&ui),{},{"overflow":p?"hidden":"visible"},l)}),e))})),oi=(0,ni.forwardRef)((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i],s=ti(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(ii));return gn.createElement(u,X(X({},s),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:X(X({},o),a)}),e)}));function fi(n){var t=(0,jn.useRef)(n);return t.current=n,t}function ai(n,t){(0,jn.useImperativeHandle)(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}A(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new R(n),o=new E(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,a=f.attachShadow,c=f.createShadowRoot;function s(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return C(t,n.prototype),t}a&&(f.attachShadow=function(n){var t=a.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return a.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),A(i,s),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=s,s.call||(s.apply=n.Function.apply,s.bind=n.Function.bind,s.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
var n,t=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,e=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,f=function(n){return i(n,"__esModule",{value:!0})},a=function(n){return function(n,t,e){if(t&&"object"==typeof t||"function"==typeof t)for(var f,a=u(t),c=0,s=a.length;c<s;c++)f=a[c],o.call(n,f)||"default"===f||i(n,f,{get:function(n){return t[n]}.bind(null,f),enumerable:!(e=r(t,f))||e.enumerable});return n}(f(i(null!=n?t(e(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function s(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=function(n,t){if(n){if("string"==typeof n)return c(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(){return n||(n=Promise.resolve(void 0))}!function(n,t){for(var r in f(n),t)i(n,r,{get:t[r],enumerable:!0})}(exports,{BaseElement:function(){return rt},Children:function(){return ni.Children},ContainWrapper:function(){return ei},Fragment:function(){return On},PreactBaseElement:function(){return Xt},Slot:function(){return Ct},WithAmpContext:function(){return vt},Wrapper:function(){return oi},addGroup:function(){return bn},assignSlot:function(){return an},cloneElement:function(){return gn.cloneElement},contextProp:function(){return nn},createContext:function(){return gn.createContext},createElement:function(){return gn.createElement},createRef:function(){return gn.createRef},createSlot:function(){return At},defineBentoElement:function(){return st},discover:function(){return ln},forwardRef:function(){return ni.forwardRef},hydrate:function(){return wn.hydrate},isValidElement:function(){return gn.isValidElement},memo:function(){return ni.memo},rediscoverChildren:function(){return hn},removeGroupProp:function(){return yn},removeProp:function(){return pn},render:function(){return wn.render},setGroupProp:function(){return mn},setIsRoot:function(){return vn},setParent:function(){return sn},setProp:function(){return dn},subscribe:function(){return un},unassignSlot:function(){return cn},unsubscribe:function(){return en},useAmpContext:function(){return ht},useCallback:function(){return jn.useCallback},useContext:function(){return jn.useContext},useDOMHandle:function(){return ai},useEffect:function(){return jn.useEffect},useImperativeHandle:function(){return jn.useImperativeHandle},useLayoutEffect:function(){return jn.useLayoutEffect},useLoading:function(){return dt},useMemo:function(){return jn.useMemo},useReducer:function(){return jn.useReducer},useRef:function(){return jn.useRef},useSlotContext:function(){return kt},useState:function(){return jn.useState},useValueRef:function(){return fi}});var v=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))};function h(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function d(n){for(var t,i=null,r="",u=s(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=h(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function p(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function b(n){var t=d.apply(null,arguments);setTimeout((function(){throw p(t),t}))}function m(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){b(n)}}function y(n){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var w=Object.prototype,g=w.hasOwnProperty;function j(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function O(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}w.toString;var S=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,P=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],M={"childList":!0,"subtree":!0};function z(n,t){if(!S.test(t)||P.includes(t))throw new n('invalid custom element name "'.concat(t,'"'))}var E=function(){function n(n,t){this.i=n,this.u=t,this.o=j()}var t=n.prototype;return t.define=function(n,t,i){this.u.define(n,t,i);var r=this.o,u=r[n];u&&(u.resolve(),delete r[n])},t.get=function(n){var t=this.u.getByName(n);if(t)return t.ctor},t.whenDefined=function(n){var t=this.i;if(t.Promise,z(t.SyntaxError,n),this.u.getByName(n))return l();var i=this.o,r=i[n];return r||(r=new v,i[n]=r),r.promise},t.upgrade=function(n){this.u.upgrade(n)},n}(),R=function(){function n(n){this.i=n,this.v=j(),this.h="",this.p=null,this.m=null,this.g=[n.document]}var t=n.prototype;return t.current=function(){var n=this.p;return this.p=null,n},t.getByName=function(n){var t=this.v[n];if(t)return t},t.getByConstructor=function(n){var t=this.v;for(var i in t){var r=t[i];if(r.ctor===n)return r}},t.define=function(n,t,i){var r=this.i,u=r.Error,e=r.SyntaxError;if(i)throw new u("Extending native custom elements is not supported");if(z(e,n),this.getByName(n)||this.getByConstructor(t))throw new u('duplicate definition "'.concat(n,'"'));this.v[n]={name:n,ctor:t},this.j(n);for(var o,f=s(this.g,!0);!(o=f()).done;){var a=o.value;this.upgrade(a,n)}},t.upgrade=function(n,t){for(var i,r=!!t,u=t||this.h,e=s(this.O(n,u),!0);!(i=e()).done;){var o=i.value;r?this._(o):this.upgradeSelf(o)}},t.upgradeSelf=function(n){var t=this.getByName(n.localName);t&&this.S(n,t)},t.O=function(n,t){return t&&n.querySelectorAll?n.querySelectorAll(t):[]},t.S=function(n,t){var i=t.ctor;if(!(n instanceof i)){this.p=n;try{if(new i!==n)throw new this.i.Error("Constructor illegally returned a different instance.")}catch(n){b(n)}}},t._=function(n){var t=this.getByName(n.localName);if(t&&(this.S(n,t),n.connectedCallback))try{n.connectedCallback()}catch(n){b(n)}},t.k=function(n){if(n.disconnectedCallback)try{n.disconnectedCallback()}catch(n){b(n)}},t.j=function(n){var t=this;if(this.h)this.h+=",".concat(n);else{this.h=n;var i=new this.i.MutationObserver((function(n){n&&t.P(n)}));this.m=i;for(var r,u=s(this.g,!0);!(r=u()).done;){var e=r.value;i.observe(e,M)}!function(n,t){var i,r=n.Document,u=n.Element,e=n.Node,o=n.document,f=r.prototype,a=u.prototype,c=e.prototype,s=f.createElement,l=f.importNode,v=c.appendChild,h=c.cloneNode,d=c.insertBefore,p=c.removeChild,b=c.replaceChild;f.createElement=function(n){var i=t.getByName(n);return i?new i.ctor:s.apply(this,arguments)},f.importNode=function(){var n=l.apply(this,arguments);return n&&this===o&&(t.upgradeSelf(n),t.upgrade(n)),n},c.appendChild=function(){var n=v.apply(this,arguments);return t.sync(),n},c.insertBefore=function(){var n=d.apply(this,arguments);return t.sync(),n},c.removeChild=function(){var n=p.apply(this,arguments);return t.sync(),n},c.replaceChild=function(){var n=b.apply(this,arguments);return t.sync(),n},c.cloneNode=function(){var n=h.apply(this,arguments);return n.ownerDocument===o&&(t.upgradeSelf(n),t.upgrade(n)),n};var m=a,y=Object.getOwnPropertyDescriptor(m,"innerHTML");if(y||(m=Object.getPrototypeOf(n.HTMLElement.prototype),y=Object.getOwnPropertyDescriptor(m,"innerHTML")),null!==(i=y)&&void 0!==i&&i.configurable){var w=y.set;y.set=function(n){w.call(this,n),t.upgrade(this)},Object.defineProperty(m,"innerHTML",y)}}(this.i,this)}},t.observe=function(n){this.g.push(n),this.m&&this.m.observe(n,M)},t.sync=function(){this.m&&this.P(this.m.takeRecords())},t.P=function(n){for(var t,i=s(n,!0);!(t=i()).done;){var r=t.value;if(r){for(var u,e=r.addedNodes,o=r.removedNodes,f=s(e,!0);!(u=f()).done;){var a=u.value,c=this.O(a,this.h);this._(a);for(var l,v=s(c,!0);!(l=v()).done;){var h=l.value;this._(h)}}for(var d,p=s(o,!0);!(d=p()).done;){var b=d.value,m=this.O(b,this.h);this.k(b);for(var y,w=s(m,!0);!(y=w()).done;){var g=y.value;this.k(g)}}}}},n}();function A(n,t){t.prototype=Object.create(n.prototype,{constructor:{configurable:!0,writable:!0,value:t}}),C(t,n)}function C(n,t){Object.setPrototypeOf?Object.setPrototypeOf(n,t):{__proto__:{"test":!0}}.test?n.__proto__=t:function(n,t){for(var i=t;null!==i&&!Object.isPrototypeOf.call(i,n);){for(var r,u=s(Object.getOwnPropertyNames(i),!0);!(r=u()).done;){var e=r.value;if(!Object.hasOwnProperty.call(n,e)){var o=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,o)}}i=Object.getPrototypeOf(i)}}(n,t)}var k=Array.isArray;function x(n){return k(n)?n:[n]}function T(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function L(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function _(n){return 1==(null==n?void 0:n.nodeType)}function B(n,t,i,r,u,e,o,f,a,c,s){return n}function V(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function q(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&q(n,t,i,e,!1)}else if(n.children)for(var o,f=s(n.children,!0);!(o=f()).done;){var a=o.value;q(a,t,i,r,!0)}}var W=[],I=function(){},N=function(){function n(n){this.A=n,this.M=null,this.C=null,this.R=V(this.R.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){B(t),B(void 0!==i);var r=n.key,u=this.M||(this.M=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),f=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):f&&(e.values[o]=i),f&&(this.ping(n,!1),$(n)&&q(this.A,H,n,!0,!1))},t.remove=function(n,t){B(t);var i=n.key,r=this.M,u=null==r?void 0:r.get(i);if(u){B(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),q(this.A,H,n))}},t.has=function(n){var t;return!(null===(t=this.M)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.T(n);if(T(i.subscribers,t)){var r=i.value;G(r)&&this.L()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.C)||void 0===i?void 0:i.get(n.key);r&&L(r.subscribers,t)&&this.B(r)},t.ping=function(n,t){var i,r;null===(i=this.C)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.L()&&q(this.A,D,void 0,W)},t.rootUpdated=function(){var n=this,t=this.C;t&&(this.L()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){$(t.prop)&&n.I(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!$(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.C;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.A.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.L=function(){return!!this.A.root},t.T=function(n){var t=this,i=n.deps,r=n.key,u=this.C||(this.C=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(I):W,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.L()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.R()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):W,pingParent:$(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.B=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.C)||void 0===t||t.delete(o),this.I(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.R=function(){var n=this;if(this.L()){var t=this.C;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return b("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.V(t)}}))}while(i>0)}}},t.V=function(n){var t,i=2==n.pending;try{t=this.F(n,i)}catch(n){b(n)}n.pending=0,this.H(n,t)},t.H=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.C;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.L()){n.value=t;for(var o,f=s(n.subscribers,!0);!(o=f()).done;)(0,o.value)(t)}},t.F=function(n,t){var i,r;B(this.L());var u=n.depValues,e=n.prop,o=e.compute,f=e.defaultValue,a=e.key,c=null===(i=this.M)||void 0===i||null===(r=i.get(a))||void 0===r?void 0:r.values,s=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,c);if(t||s!=Boolean(n.parentContextNode)){var l=s?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.A,F,e,!1):null;this.I(n,l)}var v=G(n.parentValue)?n.parentValue:s&&!n.parentContextNode?f:void 0,h=void 0;if(u.every(G)&&(!s||G(v))){var d=this.A.node;c&&!o?h=c[0]:$(e)?c||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,c||W,v,u):G(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,c||W,u))}return h},t.I=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,B(r),i&&i.values.unsubscribe(u,r),t&&(B(r),t.values.subscribe(u,r)))},n}();function H(n,t){return n.values.scan(t)}function D(n,t,i){return n.values.scanAll(i)}function F(n,t){return n.values.has(t)}function $(n){return!!n.recursive}function G(n){return void 0!==n}var Z=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new N(this),this.N=null,this.W=!1,this.$=V(this.q.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(U),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(J)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||_(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,U(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,U(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(J)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.$():this.name&&this.children&&this.children.forEach(J)},t.isDiscoverable=function(){return!this.isRoot&&!this.W},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.D(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){B(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.N)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(J),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,f=i.weight;o(n,t.node)&&f>u&&(r=e,u=f)})),r},t.subscribe=function(n,t,i,r){var u=this.N||(this.N=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.N,i=null==t?void 0:t.get(n);i&&(i.dispose(),B(t),t.delete(n))},t.q=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.D(i,!1)}},t.D=function(n,t){var i;this.W=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(B(r.children),L(r.children,this)),n){var u=n.children||(n.children=[]);T(u,this);for(var e,o=s(u,!0);!(e=o()).done;){var f=e.value;f!=this&&f.isDiscoverable()&&f.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function U(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Z.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=s(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,J)}function J(n){n.discover()}function K(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function Q(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function X(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach((function(t){K(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var Y=[];function nn(n,t){var i=X({key:n,deps:Y,recursive:!1},t);return B(0==i.deps.length||i.compute),i}var tn=[],rn=function(){};function un(n,t,i){t=x(t);var r=i;Z.get(n).subscribe(r,on,i,t)}function en(n,t){var i=t;Z.get(n).unsubscribe(i)}var on=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.G=t,this.Z=i,this.U=i.length>0?i.map(rn):tn,this.J=i.length>0?i.map((function(n,t){return function(n){r.U[t]=n,r.K()}})):tn,this.X=!1,this.Y=null,this.K=V(this.K.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.J[t])}))}this.L()&&this.K()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.Z.length>0){var t=this.contextNode.values;this.Z.forEach((function(i,r){return t.unsubscribe(i,n.J[r])}))}this.nn()},t.rootUpdated=function(){var n=this.L();this.nn(),n&&this.K()},t.L=function(){return!!this.contextNode.root},t.K=function(){this.L()&&(this.U.every(fn)?(this.X=!0,this.tn()):this.X&&(this.X=!1,this.nn()))},t.tn=function(){this.nn();var n=this.G;this.Y=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.U)},t.nn=function(){this.Y&&(m(this.Y),this.Y=null)},n}();function fn(n){return void 0!==n}function an(n,t){Z.assignSlot(n,t)}function cn(n,t){Z.unassignSlot(n,t)}function sn(n,t){Z.get(n).setParent(t)}function ln(n){Z.get(n).discover()}function vn(n,t){Z.get(n).setIsRoot(t)}function hn(n){Z.rediscoverChildren(n)}function dn(n,t,i,r){Z.get(n).values.set(t,i,r)}function pn(n,t,i){Z.get(n).values.remove(t,i)}function bn(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Z.get(n).addGroup(t,i,r)}function mn(n,t,i,r,u){var e;null===(e=Z.get(n).group(t))||void 0===e||e.values.set(i,r,u)}function yn(n,t,i,r){var u;null===(u=Z.get(n).group(t))||void 0===u||u.values.remove(i,r)}var wn=a(require("react-dom")),gn=a(require("react")),jn=a(require("react"));function On(n){return n.children}function Sn(n,t){return(Sn=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Pn(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Sn(n,t)}function Mn(n){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function zn(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function En(n,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zn(n)}function Rn(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=Mn(n);if(t){var u=Mn(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return En(this,i)}}var An,Cn,kn=["auto","lazy","eager","unload"],xn=(K(An={},"auto",0),K(An,"lazy",1),K(An,"eager",2),K(An,"unload",3),An);function Tn(n,t){var i=xn[null!=n?n:"auto"]||0,r=xn[null!=t?t:"auto"]||0,u=Math.max(i,r);return kn[u]}function Ln(n){return(n.ownerDocument||n).defaultView}function _n(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function Bn(n){B(/^[\w-]+$/.test(n))}function Vn(n,t){if(void 0!==Cn?Cn:Cn=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n))return n.querySelector(_n(t,":scope"));var i=function(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=_n(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}(n,t)[0];return void 0===i?null:i}function qn(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;return!!i&&i.call(n,t)}function Wn(n,t){return Bn(t),Vn(n,"> [".concat(t,"]"))}function In(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)!Nn(r)&&i.push(r);return i}(n)}function Nn(n){return"string"==typeof(t=n)?i=t:_(t)&&(i=t.tagName),!(!i||!i.toLowerCase().startsWith("i-"))||n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow"));var t,i}var Hn={bubbles:!0,cancelable:!0};function Dn(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function Fn(n,t,i,r){var u=i||{};B(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||Hn,f=o.bubbles,a=o.cancelable;e.initEvent(t,f,a),n.dispatchEvent(e)}var $n=function(){function n(n,t){this.i=n,this.rn=t,this.un={},this.en=null}var t=n.prototype;return t.start=function(){this.en=this.un,this.un={}},t.resolveMatchQuery=function(n){return"1"===this.on(n,Gn,"1")},t.resolveListQuery=function(n){return this.on(n,Zn,"")},t.complete=function(){for(var n in this.en)n in this.un||Un(this.en[n],this.rn,!1);this.en=null},t.dispose=function(){for(var n in this.un)Un(this.un[n],this.rn,!1);this.un={}},t.on=function(n,t,i){if(!n.trim())return i;var r=this.un[n];return r||(B(this.en),r=this.en[n]),r||Un(r=t(this.i,n),this.rn,!0),this.un[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Gn(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Zn(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var f=u-1;if(u>0)for(u--;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"-"==a||"_"==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}if(u>=f)return null}else for(u=t.length-2;u>=0;u--){var c=t.charAt(u);if(!("%"==c||"."==c||c>="a"&&c<="z"||c>="A"&&c<="Z"||c>="0"&&c<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Un(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Jn={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}},Kn=/vertical/,Qn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;function nt(n){var t=Qn.get(n);return t||(t=new n.ResizeObserver(tt),Qn.set(n,t)),t}function tt(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Xn.get(u);if(e){Yn.set(u,r);for(var o=0;o<e.length;o++){var f=e[o],a=f.callback;it(f.type,a,r)}}}}}function it(n,t,i){if(0==n){var r=i.contentRect,u=r.height;m(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var f,a,c=i.target,s=Ln(c),l=Kn.test(function(n,t){return n.getComputedStyle(t)||Jn}(s,c).writingMode),v=c,h=v.offsetHeight,d=v.offsetWidth;l?(a=d,f=h):(f=d,a=h),e={inlineSize:f,blockSize:a}}m(t,e)}}var rt,ut,et,ot,ft=function(){function n(n){this.fn=n,this.ln=!1,this.an=!1,this.sn=this.sn.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.ln&&(this.ln=n,n?(this.an=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Xn.get(n);if(u||(u=[],Xn.set(n,u),nt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Yn.get(n);e&&setTimeout((function(){return it(1,i,e)}))}}}(this.fn,0,this.sn)):function(n,t){!function(n,t,i){var r=Xn.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(f=o).callback===i&&1===f.type?r.push(o):(u<e&&(n[u]=o),u++)}var f;u<n.length&&(n.length=u)}(r),0==r.length)){Xn.delete(n),Yn.delete(n);var u=n.ownerDocument.defaultView;u&&nt(u).unobserve(n)}}(n,0,t)}(this.fn,this.sn))},t.sn=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this.an){this.an=i;var r=this.fn;i||r.pause()}},n}();function at(n){if("object"!==("undefined"==typeof Reflect?"undefined":y(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}function ct(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:self;return ut&&et===t||(ut=at((et=t).HTMLElement)),function(t){Pn(r,ut);var i=Rn(r);function r(){var t;return(t=i.call(this)).implementation=new n(zn(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()}function st(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:self;i.customElements.define(n,ct(t,i))}function lt(){return ot||(ot=(0,gn.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function vt(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,f=n.renderable,a=void 0===f||f,c=ht(),s=a&&c.renderable,l=s&&o&&c.playable,v=Tn(s?"auto":"lazy",Tn(r,c.loading)),h=u||c.notify,d=(0,jn.useMemo)((function(){return{renderable:s,playable:l,loading:v,notify:h}}),[s,l,v,h]),p=lt();return gn.createElement(p.Provider,{children:t,value:d})}function ht(){var n=lt();return(0,jn.useContext)(n)}function dt(n){return Tn(n,ht().loading)}rt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=Ln(n)}var t=n.prototype;return t.mutateElement=function(n){l().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var pt=nn("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},compute:function(n,t,i){return i&&t.reduce(yt,!0)||!1}}),bt=nn("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(yt)},deps:[pt],compute:function(n,t,i,r){return r&&i&&t.reduce(yt,!0)||!1}}),mt=nn("Loading",{defaultValue:"auto",recursive:!0,deps:[pt],compute:function(n,t,i,r){return Tn(r?"auto":"lazy",Tn(i||"auto",t.reduce(Tn,"auto")))}}),yt=function(n,t){return n&&t},wt=function(n){return n.ensureLoaded()},gt=function(n){return n.pause()},jt=function(n){return n.unmount()};function Ot(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!1,wt)}function St(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,gt)}function Pt(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Mt(n,t,!0,jt)}function Mt(n,t,i,r){for(var u=x(n),e=0;e<u.length;e++)zt(u[e],t,i,r)}function zt(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(m(r,u),!i){var e=u.getPlaceholder();return void(e&&zt(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),f=null,a=0;a<o.length;a++){var c=o[a];if(i)m(r,c);else{f=f||[];for(var s=!1,l=0;l<f.length;l++)if(f[l].contains(c)){s=!0;break}s||(f.push(c),m(r,c))}}}var Et={},Rt=new WeakMap;function At(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!r)return gn.createElement(Ct,X(X({},i||Et),{},{name:t}));var u=Rt.get(n);if(u&&O(u.oldProps,i))return u.component;function e(n){return gn.createElement(Ct,X(X({},i||Et),{},{name:t},n))}return Rt.set(n,{oldProps:i,component:e}),e}function Ct(n){var t=(0,jn.useRef)(null);return kt(t,n),(0,jn.useEffect)((function(){n.postRender&&n.postRender()})),gn.createElement("slot",X(X({},n),{},{ref:t}))}function kt(n,t){var i=null==t?void 0:t.loading,r=ht();(0,jn.useLayoutEffect)((function(){var t=n.current;return B(_(t)),dn(t,pt,Ct,r.renderable),dn(t,bt,Ct,r.playable),dn(t,mt,Ct,r.loading),r.playable||xt(t,St,!0),function(){pn(t,pt,Ct),pn(t,bt,Ct),pn(t,mt,Ct),hn(t)}}),[n,r]),(0,jn.useLayoutEffect)((function(){var t=n.current;return B(_(t)),"lazy"!=i&&xt(t,Ot,!0),function(){xt(t,Pt,!1)}}),[n,i])}function xt(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var Tt,Lt={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},_t=(Tt=0,function(){return String(++Tt)});function Bt(n,t){return Object.values(n).some(t)}var Vt=function(n){return"string"==typeof n||!!n.selector},qt=function(n){var t;return 3===n.nodeType&&0===(null===(t=n.nodeValue)||void 0===t?void 0:t.trim().length)};function Wt(n,t,i,r,u){var e=n.layoutSizeDefined,o=n.lightDomTag,f=n.props;u&&u.start();var a=X(X({},r),{},{ref:i});return o&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=o),e&&(n.usesShadowDom?a.style=Lt:a.class="i-amphtml-fill-content"),It(n,a,f,t,u),u&&u.complete(),a}function It(n,t,i,r,u){if(Bt(i,Vt))for(var e=function(n){return function(n,t){for(var i=[],r=n.firstElementChild;r;r=r.nextElementSibling)!Nn(r)&&i.push(r);return i}(n)}(r),o=0;o<e.length;o++){var f=e[o],a=Ht(f,i);if(a){var c=i[a],s=c.as,l=void 0!==s&&s,v=c.clone,h=c.name,d=void 0===h?a:h,p=c.props,b=void 0===p?{}:p,m=c.single;B(v||n.usesShadowDom);var y={};if(It(n,y,b,f,u),m)t[d]=At(f,f.getAttribute("slot")||"i-amphtml-".concat(d),y,l);else{var w=t[d]||(t[d]=[]);B(!l),w.push(v?Nt(f):At(f,f.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(_t()),y))}}}for(var g in i){var j=i[g];B([j.attr,j.attrs,j.attrMatches,j.selector,j.passthrough,j.passthroughNonEmpty].filter(Boolean).length<=1);var O=void 0;if(j.passthrough)B(n.usesShadowDom),O=[gn.createElement(Ct,{loading:"lazy"})];else if(j.passthroughNonEmpty)B(n.usesShadowDom),O=In(r).every(qt)?null:[gn.createElement(Ct,{loading:"lazy"})];else if(j.attr){var S=r.getAttribute(j.attr);O=S&&j.parseAttr?j.parseAttr(S):S,j.media&&null!=O&&(B(u),O=u.resolveListQuery(String(O)))}else j.parseAttrs&&(B(j.attrs||j.attrMatches),O=j.parseAttrs(r));if(null==O)null!=j.default&&(t[g]=j.default);else{var P="number"==j.type?parseFloat(O):"boolean"==j.type?null==(M=O)?void 0:"false"!==M:O;t[g]=P}}var M}function Nt(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],f=o.name,a=o.value;t[f]=a}return gn.createElement(r,t)}function Ht(n,t){for(var i in t){var r=t[i],u="string"==typeof r?r:r.selector;if(u&&qn(n,u))return i}return null}var Dt={childList:!0},Ft={childList:!0,characterData:!0},$t={childList:!0},Gt={"style":"display: contents; background: inherit;","part":"c"},Zt={"name":"i-amphtml-svc"},Ut={"i-amphtml-rendered":""},Jt=function(){return!0},Kt=function(n){return!!n.media},Qt=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Xt=function(n){Pn(r,n);var t=Rn(r);r.R1=function(){return!0},r.requiresShadowDom=function(){return this.usesShadowDom},r.usesLoading=function(){return this.loadable},r.prerenderAllowed=function(){return!this.usesLoading()},r.previewAllowed=function(){return!1},r.Component=function(){B(!1)};var i=r.prototype;function r(n){var i;return(i=t.call(this,n)).vn=i.getDefaultProps(),i.hn={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.dn=!1,i.pn=null,i.yn=null,i.mn=function(n){null!==n&&(i.pn?i.bn(n):i.wn(n)),i.yn=n,i.gn()},i.jn=null,i.On=null,i._n=null,i.Sn=!1,i.kn=null,i.Pn=function(){i.Sn=!1,i.An()},i.Mn=!1,i.zn=!1,i.observer=null,i.Cn=new ft(n),i.xn=null,i}return i.getDefaultProps=function(){var n=this;return{"loading":"auto","onReadyState":function(t,i){n.En(t,i)},"onPlayingState":function(t){n.Rn(t)}}},i.init=function(){},i.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},i.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.Tn(t)}));var i=t.props,r=Bt(i,Vt)?Dt:null,u=Bt(i,Qt)?Ft:null,e=t.usesTemplate?$t:null;this.observer.observe(this.element,X(X(X({attributes:!0},r),u),e)),this.xn=Bt(i,Kt)?new $n(this.win,(function(){return n.Ln()})):null;var o=t.staticProps,f=this.init();Object.assign(this.vn,o,f),this.checkPropsPostMutations(),un(this.element,[],(function(){return function(){n.zn=!1,n._n&&(0,wn.render)(null,n._n)}})),un(this.element,[pt,bt,mt],(function(t,i,r){n.hn.renderable=t,n.hn.playable=i,n.hn.loading=r,n.zn=!0,n.Ln()}));var a,c=t.useContexts;return 0!=c.length&&un(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.On=i,n.Ln()})),this.kn=new v,this.Ln(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.gn(),this.kn.promise},i.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.dn=!0)},i.mountCallback=function(){ln(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.dn=!1)},i.unmountCallback=function(){var n;ln(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Rn(!1),null===(n=this.xn)||void 0===n||n.dispose()},i.mutateProps=function(n){Object.assign(this.vn,n),this.Ln()},i.api=function(){var n=this.yn;return B(n),n},i.mutationObserverCallback=function(n){},i.checkPropsPostMutations=function(){},i.updatePropsForRendering=function(n){},i.isReady=function(n){return!0},i.Tn=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o,f=r[u],a=t.attributeName;if(B(a),a==f.attr||null!==(e=f.attrs)&&void 0!==e&&e.includes(a)||null!==(o=f.attrMatches)&&void 0!==o&&o.call(f,a))return!0}return!1}return"childList"==i&&(Yt(t.addedNodes)||Yt(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Ln())},i.Ln=function(){this.Sn||(this.Sn=!0,this.mutateElement(this.Pn))},i.gn=function(){var n=this.yn,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.En(t)},i.En=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Rn("complete"==n),this.dn&&(this.dn=!1,this.mutateProps({"loading":"auto"}))},i.An=function(){var n=this;if(this.zn){var t,i=this.constructor,r=i.detached,u=i.usesShadowDom,e=u?null:i.lightDomTag;if(!this._n){var o=this.win.document;if(u){B(!r);var f=this.element.shadowRoot,a=f&&(t=f,Bn("c"),Vn(t,"> ".concat("c")));if(a)this.Mn=!0;else{var c,s,l,v,h,d;f=this.element.attachShadow({mode:"open",delegatesFocus:i.delegatesFocus});var p=i.shadowCss;p&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||(B((o=new u.CSSStyleSheet).replaceSync),o.replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var f=r.createElement("style");f.setAttribute("data-name",t),f.textContent=i,n.appendChild(f)}}(f,this.element.tagName,p),a=Dn(o,"c",Gt),f.appendChild(a);var b=Dn(o,"slot",Zt);f.appendChild(b),null===(c=this.getPlaceholder)||void 0===c||null===(s=c.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(v=l.call(this))||void 0===v||v.setAttribute("slot","i-amphtml-svc"),null===(h=this.getOverflowElement)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc")}this._n=a,B(f),sn(f,this.element),bn(this.element,"unslotted",Jt,-1),mn(this.element,"unslotted",pt,this,!1)}else if(e){var m=this.element;this._n=m;var y=Wn(m,"i-amphtml-rendered")||Dn(o,e,Ut);y.__AMP_RENDERED=!0,i.layoutSizeDefined&&y.classList.add("i-amphtml-fill-content"),this._n.appendChild(y)}else{var w=o.createElement("i-amphtml-c");this._n=w,w.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(w)}}var g=this._n;B(g);var j=i.useContexts,O=this.On;if(0==j.length||null!=O){var S=Wt(i,this.element,this.mn,this.vn,this.xn);if(this.updatePropsForRendering(S),this.isReady(S)){for(var P=gn.createElement(i.Component,S),M=0;M<j.length;M++){B(O);var z=j[M].type,E=O[M];E&&(P=gn.createElement(z.Provider,{value:E},P))}var R=gn.createElement(vt,X({},this.hn),P);try{if(this.Mn)this.Mn=!1,(0,wn.hydrate)(R,g);else{var A=e?Wn(g,"i-amphtml-rendered"):null;A&&(A.__AMP_RENDERED=!0),(0,wn.render)(R,g,null!=A?A:void 0)}}catch(n){var C;throw null===(C=this.kn)||void 0===C||C.reject(n),n}u||r||this.mutateElement((function(){return Fn(n.element,"amp:dom-update",void 0)})),this.kn&&(this.kn.resolve(void 0),this.kn=null)}}}},i.getProp=function(n,t){return i=this.vn,r=n,g.call(i,r)?this.vn[n]:t;var i,r},i.getApi=function(){var n=this.pn;return n?Promise.resolve(n):(this.jn||(this.jn=new v),this.jn.promise)},i.wn=function(n){for(var t=j(),i=Object.keys(n),r=0;r<i.length;r++){var u=i[r];this.Bn(t,u)}this.pn=t,this.jn&&(this.jn.resolve(t),this.jn=null)},i.bn=function(n){},i.triggerEvent=function(n,t,i){Fn(n,t,i)},i.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.dn=!0;else{var n,t=this.yn;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},i.Rn=function(n){this.Cn.updatePlaying(n)},i.Bn=function(n,t){var i=this;Object.defineProperty(n,t,{configurable:!0,get:function(){var n=i.yn;return B(n),n[t]},set:function(n){var r=i.yn;B(r),r[t]=n}})},r}(rt);function Yt(n){for(var t=0;t<n.length;t++){var i=n[t];if(_(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}Xt.staticProps=void 0,Xt.useContexts=[],Xt.loadable=!1,Xt.unloadOnPause=!1,Xt.layoutSizeDefined=!1,Xt.lightDomTag="",Xt.usesTemplate=!1,Xt.shadowCss=null,Xt.usesShadowDom=!1,Xt.detached=!1,Xt.delegatesFocus=!1,Xt.props={};var ni=a(require("react"));function ti(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}function ii(n){var t=function(n,t){if("object"!==y(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===y(t)?t:String(t)}var ri=[null,"paint","layout","content","size","size paint","size layout","strict"],ui={"position":"relative","width":"100%","height":"100%"},ei=(0,ni.forwardRef)((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.contentAs,f=void 0===o?"div":o,a=n.contentClassName,c=n.contentProps,s=n.contentRef,l=n.contentStyle,v=n.layout,h=void 0!==v&&v,d=n.paint,p=void 0!==d&&d,b=n.size,m=void 0!==b&&b,y=n.style,w=n.wrapperClassName,g=n.wrapperStyle,j=n[i],O=ti(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(ii)),S=(m?4:0)+(h?2:0)+(p?1:0);return gn.createElement(u,X(X({},O),{},{ref:t,class:"".concat(j||""," ").concat(w||"").trim()||null,style:X(X(X({},y),g),{},{contain:ri[S]})}),gn.createElement(f,X(X({},c),{},{ref:s,class:a,style:X(X({},m&&ui),{},{"overflow":p?"hidden":"visible"},l)}),e))})),oi=(0,ni.forwardRef)((function(n,t){var i="class",r=n.as,u=void 0===r?"div":r,e=n.children,o=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i],s=ti(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(ii));return gn.createElement(u,X(X({},s),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:X(X({},o),a)}),e)}));function fi(n){var t=(0,jn.useRef)(n);return t.current=n,t}function ai(n,t){(0,jn.useImperativeHandle)(n,(function(){return t}),[t])}!function(n,t){var i=n.document,r=function(n){var t=n.customElements;return!!(t&&t.define&&t.get&&t.whenDefined)}(n);if(!(!i||r&&function(n){return-1===n.HTMLElement.toString().indexOf("[native code]")}(n))){var u=!0,e=!1;if(t&&r)try{var o=n.Reflect,f=Object.create(t.prototype);Function.call.call(t,f),e=!(null==o||!o.construct)}catch(n){u=!1}e?function(n){var t=n.HTMLElement,i=n.Reflect;function r(){var n=this.constructor;return i.construct(t,[],n)}A(t,r),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=r}(n):u&&function(n){var t=n.Element,i=n.HTMLElement,r=n.document,u=r.createElement,e=new R(n),o=new E(n,e);Object.defineProperty(n,"customElements",{enumerable:!0,configurable:!0,value:o});var f=t.prototype,a=f.attachShadow,c=f.createShadowRoot;function s(){var n=this.constructor,t=e.current();if(!t){var i=e.getByConstructor(n);t=u.call(r,i.name)}return C(t,n.prototype),t}a&&(f.attachShadow=function(n){var t=a.apply(this,arguments);return e.observe(t),t},f.attachShadow.toString=function(){return a.toString()}),c&&(f.createShadowRoot=function(){var n=c.apply(this,arguments);return e.observe(n),n},f.createShadowRoot.toString=function(){return c.toString()}),A(i,s),n.HTMLElementOrig=n.HTMLElement,n.HTMLElement=s,s.call||(s.apply=n.Function.apply,s.bind=n.Function.bind,s.call=n.Function.call)}(n)}}(self,function(){return function(){}}());
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento-react.core.js.map
;
var t,n=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function i(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:s}=t,e=new Error(i);for(const n in t)e[n]=t[n];return e.stack=s,e}function s(t){let n=null,s="";for(const t of arguments)t instanceof Error&&!n?n=i(t):(s&&(s+=" "),s+=t);return n?s&&(n.message=s+": "+n.message):n=new Error(s),n}function e(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=s.apply(null,arguments);setTimeout((()=>{throw e(n),n}))}function r(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:u}=Object.prototype,{isArray:c}=Array;function h(t){return c(t)?t:[t]}function a(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function f(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function d(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,s,e,o,r,l,u,c,h){return t}function v(t,n){let i=!1;const s=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(s))}}function m(t,n,i,s=!0,e=!0){if(e){const e=n(t,i,s);e&&m(t,n,i,e,!1)}else if(t.children)for(const e of t.children)m(e,n,i,s,!0)}var b=[],y=()=>{};function P(t,n){return t.values.scan(n)}function _(t,n,i){return t.values.scanAll(i)}function g(t,n){return t.values.has(n)}function A(t){return!!t.recursive}function w(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||d(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(k)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=v(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:s}=t,e=this.o||(this.o=new Map);let o=e.get(s);o||(o={values:[],setters:[]},e.set(s,o));const r=o.setters.indexOf(n),l=-1==r||o.values[r]!==i;-1==r?(o.setters.push(n),o.values.push(i)):l&&(o.values[r]=i),l&&(this.ping(t,!1),A(t)&&m(this.i,P,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,s=this.o,e=null==s?void 0:s.get(i);if(e){p(s);const o=e.setters.indexOf(n);-1!=o&&(e.setters.splice(o,1),e.values.splice(o,1),0==e.setters.length&&s.delete(i),m(this.i,P,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!a(i.subscribers,n))return;const s=i.value;w(s)&&this.p()&&n(s)}unsubscribe(t,n){var i;const s=null===(i=this.u)||void 0===i?void 0:i.get(t.key);s&&f(s.subscribers,n)&&this.m(s)}ping(t,n){var i,s;null===(i=this.u)||void 0===i||null===(s=i.get(t.key))||void 0===s||s.ping(n)}parentUpdated(){this.p()&&m(this.i,_,void 0,b)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;A(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!A(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:s}=i,{key:e}=s;-1==(n||t).indexOf(e)&&(this.ping(s,!0),this.i.children&&this.has(s)&&(n||(n=t.slice(0)),n.push(e)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,s=this.u||(this.u=new Map);let e=s.get(i);return e||(e={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(y):b,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;e.pending=Math.max(e.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{e.depValues[n]=t,e.ping()})):b,pingParent:A(t)?t=>{e.parentValue=t,e.ping()}:null},s.set(i,e),n.forEach(((t,n)=>this.subscribe(t,e.pingDep[n]))),e.ping(!1)),e}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:s}=t,{deps:e,key:o}=s;null===(n=this.u)||void 0===n||n.delete(o),this._(t,null),e.length>0&&e.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:s}=t,{key:e}=i,o=this.u;if(s===n||t!==(null==o?void 0:o.get(e))||!this.p())return;t.value=n;const{subscribers:r}=t;for(const t of r)t(n)}P(t,n){var i,s;p(this.p());const{depValues:e,prop:o}=t,{compute:r,defaultValue:l,key:u}=o,c=null===(i=this.o)||void 0===i||null===(s=i.get(u))||void 0===s?void 0:s.values,h=function(t,n){const{compute:i,recursive:s}=t;return"function"==typeof s?!n||s(n):!(s&&n&&!i)&&s}(o,c);if(n||h!=Boolean(t.parentContextNode)){const n=h?function(t,n,i,s=!0){for(let e=s?t:t.parent;e;e=e.parent)if(n(e,i))return e;return null}(this.i,g,o,!1):null;this._(t,n)}const a=w(t.parentValue)?t.parentValue:h&&!t.parentContextNode?l:void 0;let f;if(e.every(w)&&(!h||w(a))){const{node:t}=this.i;c&&!r?f=c[0]:A(o)?c||e.length>0?f=function(t,n,i,s,e){switch(e.length){case 0:return t(n,i,s);case 1:return t(n,i,s,e[0]);case 2:return t(n,i,s,e[0],e[1]);case 3:return t(n,i,s,e[0],e[1],e[2]);default:return t.apply(null,[n,i,s].concat(e))}}(r,t,c||b,a,e):w(a)&&(f=a):r&&(f=function(t,n,i,s){switch(s.length){case 0:return t(n,i);case 1:return t(n,i,s[0]);case 2:return t(n,i,s[0],s[1]);case 3:return t(n,i,s[0],s[1],s[2]);default:return t.apply(null,[n,i].concat(s))}}(r,t,c||b,e))}return f}_(t,n){const{parentContextNode:i,pingParent:s,prop:e}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(s),i&&i.values.unsubscribe(e,s),n&&(p(s),n.values.subscribe(e,s)))}}(this),this.k=null,this.M=!1,this.R=v(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const s=t.target;s.assignedNodes().forEach(R),null===(n=M.closest(s))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(k)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(k)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const s=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(s)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,s;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(s=this.children)||void 0===s||s.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const s=this.groups||(this.groups=new Map),{children:e,node:o}=this,r=new M(o,t);return s.set(t,{cn:r,match:n,weight:i}),r.setParent(this),null==e||e.forEach(k),r}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,s=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:e,weight:o})=>{e(t,this.node)&&o>s&&(i=n,s=o)})),i}subscribe(t,n,i,s){const e=this.k||(this.k=new Map);let o=e.get(t);o||(o=new n(this,i,s),e.set(t,o))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const s=this.parent;if(t!=s){if(this.parent=t,null!=s&&s.children&&(p(s.children),f(s.children,this)),t){const n=t.children||(t.children=[]);a(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const s=M.closest(t,i);if(s)if(s.node==t)n(s);else if(s.children)for(const i of s.children)t.contains(i.node)&&n(i)}(t,k)}function k(t){t.discover()}function S(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function T(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,s)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){S(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var E=[];function I(t,n){const i=V({key:t,deps:E,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var C=[],O=()=>{};function j(t,n,i){n=h(n);const s=i;M.get(t).subscribe(s,N,i,n)}function z(t,n){const i=n;M.get(t).unsubscribe(i)}var N=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(O):C,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):C,this.N=!1,this.$=null,this.j=v(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(x)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(r(this.$),this.$=null)}};function x(t){return void 0!==t}function $(t,n){M.assignSlot(t,n)}function L(t,n){M.unassignSlot(t,n)}function D(t,n){M.get(t).setParent(n)}function U(t){M.get(t).discover()}function W(t,n){M.get(t).setIsRoot(n)}function q(t){M.rediscoverChildren(t)}function B(t,n,i,s){M.get(t).values.set(n,i,s)}function F(t,n,i){M.get(t).values.remove(n,i)}function G(t,n,i,s=0){M.get(t).addGroup(n,i,s)}function Q(t,n,i,s,e){var o;null===(o=M.get(t).group(n))||void 0===o||o.values.set(i,s,e)}function Z(t,n,i,s){var e;null===(e=M.get(t).group(n))||void 0===e||e.values.remove(i,s)}import{hydrate as H,render as J}from"react-dom";import{createElement as K,cloneElement as X,createRef as Y,createContext as tt,isValidElement as nt}from"react";import{useState as it,useRef as st,useEffect as et,useLayoutEffect as ot,useContext as rt,useMemo as lt,useCallback as ut,useImperativeHandle as ct,useReducer as ht}from"react";function at(t){return t.children}var ft=["auto","lazy","eager","unload"],dt={auto:0,lazy:1,eager:2,unload:3};function pt(t,n){const i=dt[null!=t?t:"auto"]||0,s=dt[null!=n?n:"auto"]||0,e=Math.max(i,s);return ft[e]}function vt(t){return(t.ownerDocument||t).defaultView}function mt(t){p(/^[\w-]+$/.test(t))}function bt(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function yt(t,n){return t.matches(n)}function Pt(t,n){return mt(n),bt(t,`> [${n}]`)}function _t(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!gt(n)&&i.push(n);return i}(t)}function gt(t){return!!function(t){let n;return"string"==typeof t?n=t:d(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var At={bubbles:!0,cancelable:!0};function wt(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Mt(t,n,i,s){const e=i||{};p(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=e;const{bubbles:r,cancelable:l}=s||At;o.initEvent(n,r,l),t.dispatchEvent(o)}function Rt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function kt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,s,e;if(")"==n.charAt(n.length-1)){let t=1;for(e=n.length-2;e>=0;e--){const i=n.charAt(e);if("("==i?t--:")"==i&&t++,0==t)break}const i=e-1;if(e>0)for(e--;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(e>=i)return null}else for(e=n.length-2;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return e>=0?(i=n.substring(0,e+1).trim(),s=n.substring(e+1).trim()):(s=n,i=void 0),s?{query:i?t.matchMedia(i):null,value:s}:null})).filter(Boolean)}function St(t,n,i){for(let s=0;s<t.length;s++){const{query:e}=t[s];e&&(void 0!==e.onchange?e.onchange=i?n:null:i?e.addListener(n):e.removeListener(n))}}var Tt,Vt,Et,It,Ct={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Ot=/vertical/,jt=new WeakMap,zt=new WeakMap,Nt=new WeakMap;function xt(t){let n=jt.get(t);return n||(n=new t.ResizeObserver($t),jt.set(t,n)),n}function $t(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const s=t[i],{target:e}=s;if(n.has(e))continue;n.add(e);const o=zt.get(e);if(o){Nt.set(e,s);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Lt(i,n,s)}}}}function Lt(t,n,i){if(0==t){const{contentRect:t}=i,{height:s,width:e}=t;r(n,{width:e,height:s})}else if(1==t){const{borderBoxSize:t}=i;let s;if(t)s=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=vt(t),e=Ot.test(function(t,n){return t.getComputedStyle(n)||Ct}(n,t).writingMode),{offsetHeight:o,offsetWidth:r}=t;let l,u;e?(u=r,l=o):(l=r,u=o),s={inlineSize:l,blockSize:u}}r(n,s)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Tt=AMP.BaseElement;else{class n{constructor(t){this.element=t,this.win=vt(t)}mutateElement(n){(t||(t=Promise.resolve(void 0))).then(n)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Tt=n}function Dt(t,n,i=self){i.customElements.define(t,function(t,n=self){return Vt&&Et===n||(Vt=(Et=n).HTMLElement),class extends Vt{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function Ut(){return It||(It=tt({renderable:!0,playable:!0,loading:"auto"}))}function Wt({children:t,loading:n="auto",notify:i,playable:s=!0,renderable:e=!0}){const o=qt(),r=e&&o.renderable,l=r&&s&&o.playable,u=pt(r?"auto":"lazy",pt(n,o.loading)),c=i||o.notify,h=lt((()=>({renderable:r,playable:l,loading:u,notify:c})),[r,l,u,c]),a=Ut();return K(a.Provider,{children:t,value:h})}function qt(){const t=Ut();return rt(t)}function Bt(t){const{loading:n}=qt();return pt(t,n)}var Ft=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Zt),compute:(t,n,i)=>i&&n.reduce(Zt,!0)||!1}),Gt=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Zt),deps:[Ft],compute:(t,n,i,s)=>s&&i&&n.reduce(Zt,!0)||!1}),Qt=I("Loading",{defaultValue:"auto",recursive:!0,deps:[Ft],compute:(t,n,i,s)=>pt(s?"auto":"lazy",pt(i||"auto",n.reduce(pt,"auto")))}),Zt=(t,n)=>t&&n,Ht=t=>t.ensureLoaded(),Jt=t=>t.pause(),Kt=t=>t.unmount();function Xt(t,n=!0){nn(t,n,!1,Ht)}function Yt(t,n=!0){nn(t,n,!0,Jt)}function tn(t,n=!0){nn(t,n,!0,Kt)}function nn(t,n,i,s){const e=h(t);for(let t=0;t<e.length;t++)sn(e[t],n,i,s)}function sn(t,n,i,s){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(r(s,n),!i){const t=n.getPlaceholder();return void(t&&sn(t,!0,!1,s))}}const e=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<e.length;t++){const n=e[t];if(i)r(s,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),r(s,n))}}}var en={},on=new WeakMap;function rn(t,n,i,s=!1){if(t.setAttribute("slot",n),!s)return K(ln,V(V({},i||en),{},{name:n}));const e=on.get(t);if(e&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(e.oldProps,i))return e.component;function o(t){return K(ln,V(V({},i||en),{},{name:n},t))}return on.set(t,{oldProps:i,component:o}),o}function ln(t){const n=st(null);return un(n,t),et((()=>{t.postRender&&t.postRender()})),K("slot",V(V({},t),{},{ref:n}))}function un(t,n){const i=null==n?void 0:n.loading,s=qt();ot((()=>{const n=t.current;return p(d(n)),B(n,Ft,ln,s.renderable),B(n,Gt,ln,s.playable),B(n,Qt,ln,s.loading),s.playable||cn(n,Yt,!0),()=>{F(n,Ft,ln),F(n,Gt,ln),F(n,Qt,ln),q(n)}}),[t,s]),ot((()=>{const n=t.current;return p(d(n)),"lazy"!=i&&cn(n,Xt,!0),()=>{cn(n,tn,!1)}}),[t,i])}function cn(t,n,i){const s=t.assignedElements?t.assignedElements():t;if(Array.isArray(s)&&0==s.length)return;if(!i)return void n(s);const e=t.ownerDocument.defaultView;e&&(e.requestIdleCallback||e.setTimeout)((()=>n(s)))}var hn={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},an=function(){let t=0;return()=>String(++t)}();function fn(t,n){return Object.values(t).some(n)}var dn=t=>"string"==typeof t||!!t.selector,pn=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function vn(t,n,i,s,e){const{"layoutSizeDefined":o,"lightDomTag":r,"props":l}=t;e&&e.start();const u=V(V({},s),{},{ref:i});return r&&(u["i-amphtml-rendered"]=!0,u.__AMP_RENDERED=!0,u.as=r),o&&(t.usesShadowDom?u.style=hn:u.class="i-amphtml-fill-content"),mn(t,u,l,n,e),e&&e.complete(),u}function mn(t,n,i,s,e){if(fn(i,dn)){const o=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!gt(n)&&i.push(n);return i}(t)}(s);for(let s=0;s<o.length;s++){const r=o[s],l=yn(r,i);if(!l)continue;const u=i[l],{as:c=!1,single:h,name:a=l,clone:f,props:d={}}=u;p(f||t.usesShadowDom);const v={};if(mn(t,v,d,r,e),h)n[a]=rn(r,r.getAttribute("slot")||`i-amphtml-${a}`,v,c);else{const t=n[a]||(n[a]=[]);p(!c),t.push(f?bn(r):rn(r,r.getAttribute("slot")||`i-amphtml-${a}-${an()}`,v))}}}for(const r in i){const l=i[r];let u;if(p([l.attr,l.attrs,l.attrMatches,l.selector,l.passthrough,l.passthroughNonEmpty].filter(Boolean).length<=1),l.passthrough)p(t.usesShadowDom),u=[K(ln,{loading:"lazy"})];else if(l.passthroughNonEmpty)p(t.usesShadowDom),u=_t(s).every(pn)?null:[K(ln,{loading:"lazy"})];else if(l.attr){const t=s.getAttribute(l.attr);u=t&&l.parseAttr?l.parseAttr(t):t,l.media&&null!=u&&(p(e),u=e.resolveListQuery(String(u)))}else l.parseAttrs&&(p(l.attrs||l.attrMatches),u=l.parseAttrs(s));if(null==u)null!=l.default&&(n[r]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[r]=t}}var o}function bn(t){const n={"key":t},{attributes:i,localName:s}=t,{length:e}=i;for(let t=0;t<e;t++){const{name:s,value:e}=i[t];n[s]=e}return K(s,n)}function yn(t,n){for(const i in n){const s=n[i],e="string"==typeof s?s:s.selector;if(e&&yt(t,e))return i}return null}var Pn={childList:!0},_n={childList:!0,characterData:!0},gn={childList:!0},An={"style":"display: contents; background: inherit;","part":"c"},wn={"name":"i-amphtml-svc"},Mn={"i-amphtml-rendered":""},Rn=()=>!0,kn=t=>!!t.media,Sn=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Tn=class extends Tt{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const s=t.ownerDocument.defaultView;if(!s)return;let e=zt.get(t);if(e||(e=[],zt.set(t,e),xt(s).observe(t)),!e.some((t=>t.callback===i&&1===t.type))){e.push({type:1,callback:i});const n=Nt.get(t);n&&setTimeout((()=>Lt(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const s=zt.get(t);if(s&&(function(t,n){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];(o=r).callback===i&&1===o.type?s.push(r):(e<n&&(t[e]=r),e++)}var o;e<t.length&&(t.length=e)}(s),0==s.length)){zt.delete(t),Nt.delete(t);const n=t.ownerDocument.defaultView;n&&xt(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const s=this.ct;i||s.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:i}=t,s=fn(i,dn)?Pn:null,e=fn(i,Sn)?_n:null,o=t.usesTemplate?gn:null;this.observer.observe(this.element,V(V(V({attributes:!0},s),e),o)),this.vt=fn(i,kn)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,Rt,"1")}resolveListQuery(t){return this.At(t,kt,"")}complete(){for(const t in this.Pt)t in this.gt||St(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)St(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let s=this.gt[t];return s||(p(this.Pt),s=this.Pt[t]),s||(s=n(this.bt,t),St(s,this._t,!0)),this.gt[t]=s,function(t){for(let n=0;n<t.length;n++){const{query:i,value:s}=t[n];if(!i||i.matches)return s}return""}(s)}}(this.win,(()=>this.wt())):null;const{staticProps:r}=t,l=this.init();Object.assign(this.W,r,l),this.checkPropsPostMutations(),j(this.element,[],(()=>()=>{this.ut=!1,this.nt&&J(null,this.nt)})),j(this.element,[Ft,Gt,Qt],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:u}=t;var c;return 0!=u.length&&j(this.element,u,((...t)=>{this.tt=t,this.wt()})),this.et=new n,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){U(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;U(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var s,e;const o=i[t],r=n.attributeName;if(p(r),r==o.attr||null!==(s=o.attrs)&&void 0!==s&&s.includes(r)||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,r))return!0}return!1}return"childList"==i&&(Vn(n.addedNodes)||Vn(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,s=i?null:t.lightDomTag;if(!this.nt){const a=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,s=i&&(h=i,mt("c"),bt(h,"> c"));if(s)this.ot=!0;else{var e,o,r,l,u,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const s=t.ownerDocument,e=s.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==e.CSSStyleSheet.prototype.replaceSync){const s=e.__AMP_SHADOW_CSS||(e.__AMP_SHADOW_CSS={});let o=s[n];o||(o=new e.CSSStyleSheet,p(o.replaceSync),o.replaceSync(i),s[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const e=s.createElement("style");e.setAttribute("data-name",n),e.textContent=i,t.appendChild(e)}}(i,this.element.tagName,n),s=wt(a,"c",An),i.appendChild(s);const h=wt(a,"slot",wn);i.appendChild(h),null===(e=this.getPlaceholder)||void 0===e||null===(o=e.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(r=this.getFallback)||void 0===r||null===(l=r.call(this))||void 0===l||l.setAttribute("slot","i-amphtml-svc"),null===(u=this.getOverflowElement)||void 0===u||null===(c=u.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=s,p(i),D(i,this.element),G(this.element,"unslotted",Rn,-1),Q(this.element,"unslotted",Ft,this,!1)}else if(s){const n=this.element;this.nt=n;const i=Pt(n,"i-amphtml-rendered")||wt(a,s,Mn);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=a.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var h;const a=this.nt;p(a);const{useContexts:f}=t,d=this.tt;if(0!=f.length&&null==d)return;const v=vn(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let m=K(t.Component,v);for(let t=0;t<f.length;t++){p(d);const n=f[t].type,i=d[t];i&&(m=K(n.Provider,{value:i},m))}const b=K(Wt,V({},this.F),m);try{if(this.ot)this.ot=!1,H(b,a);else{const t=s?Pt(a,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),J(b,a,null!=t?t:void 0)}}catch(t){var y;throw null===(y=this.et)||void 0===y||y.reject(t),t}i||n||this.mutateElement((()=>Mt(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,s=t,l.call(i,s)?this.W[t]:n;var i,s}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new n),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const s=i[t];this.kt(n,s)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Mt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Vn(t){for(let n=0;n<t.length;n++){const i=t[n];if(d(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}Tn.staticProps=void 0,Tn.useContexts=[],Tn.loadable=!1,Tn.unloadOnPause=!1,Tn.layoutSizeDefined=!1,Tn.lightDomTag="",Tn.usesTemplate=!1,Tn.shadowCss=null,Tn.usesShadowDom=!1,Tn.detached=!1,Tn.delegatesFocus=!1,Tn.props={};import{forwardRef as En,Children as In,memo as Cn}from"react";function On(t,n){if(null==t)return{};var i,s,e={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],n.indexOf(i)>=0||(e[i]=t[i]);return e}function jn(t){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zn(t){var n=function(t,n){if("object"!==jn(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!==jn(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jn(n)?n:String(n)}var Nn=[null,"paint","layout","content","size","size paint","size layout","strict"],xn={"position":"relative","width":"100%","height":"100%"},$n=En((function(t,n){let i="class",{as:s="div",children:e,contentAs:o="div",contentClassName:r,contentProps:l,contentRef:u,contentStyle:c,layout:h=!1,paint:a=!1,size:f=!1,"style":d,wrapperClassName:p,wrapperStyle:v,[i]:m}=t,b=On(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(zn));const y=(f?4:0)+(h?2:0)+(a?1:0);return K(s,V(V({},b),{},{ref:n,class:`${m||""} ${p||""}`.trim()||null,style:V(V(V({},d),v),{},{contain:Nn[y]})}),K(o,V(V({},l),{},{ref:u,class:r,style:V(V({},f&&xn),{},{"overflow":a?"hidden":"visible"},c)}),e))})),Ln=En((function(t,n){let i="class",{as:s="div",children:e,"style":o,wrapperClassName:r,wrapperStyle:l,[i]:u}=t,c=On(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(zn));return K(s,V(V({},c),{},{ref:n,class:`${u||""} ${r||""}`.trim()||null,style:V(V({},o),l)}),e)}));function Dn(t){const n=st(t);return n.current=t,n}function Un(t,n){ct(t,(()=>n),[n])}export{Tt as BaseElement,In as Children,$n as ContainWrapper,at as Fragment,Tn as PreactBaseElement,ln as Slot,Wt as WithAmpContext,Ln as Wrapper,G as addGroup,$ as assignSlot,X as cloneElement,I as contextProp,tt as createContext,K as createElement,Y as createRef,rn as createSlot,Dt as defineBentoElement,U as discover,En as forwardRef,H as hydrate,nt as isValidElement,Cn as memo,q as rediscoverChildren,Z as removeGroupProp,F as removeProp,J as render,Q as setGroupProp,W as setIsRoot,D as setParent,B as setProp,j as subscribe,L as unassignSlot,z as unsubscribe,qt as useAmpContext,ut as useCallback,rt as useContext,Un as useDOMHandle,et as useEffect,ct as useImperativeHandle,ot as useLayoutEffect,Bt as useLoading,lt as useMemo,ht as useReducer,st as useRef,un as useSlotContext,it as useState,Dn as useValueRef};
var t,n=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function i(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:s}=t,e=new Error(i);for(const n in t)e[n]=t[n];return e.stack=s,e}function s(t){let n=null,s="";for(const t of arguments)t instanceof Error&&!n?n=i(t):(s&&(s+=" "),s+=t);return n?s&&(n.message=s+": "+n.message):n=new Error(s),n}function e(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function o(t){const n=s.apply(null,arguments);setTimeout((()=>{throw e(n),n}))}function r(t,...n){try{return t.apply(null,n)}catch(t){o(t)}}var{hasOwnProperty:l,toString:u}=Object.prototype,{isArray:c}=Array;function h(t){return c(t)?t:[t]}function a(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function f(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function d(t){return 1==(null==t?void 0:t.nodeType)}function p(t,n,i,s,e,o,r,l,u,c,h){return t}function v(t,n){let i=!1;const s=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(s))}}function m(t,n,i,s=!0,e=!0){if(e){const e=n(t,i,s);e&&m(t,n,i,e,!1)}else if(t.children)for(const e of t.children)m(e,n,i,s,!0)}var b=[],y=()=>{};function P(t,n){return t.values.scan(n)}function _(t,n,i){return t.values.scanAll(i)}function g(t,n){return t.values.has(n)}function A(t){return!!t.recursive}function w(t){return void 0!==t}var M=class{static get(t){let n=t.__AMP_NODE;return n||(n=new M(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||d(i)&&i.tagName.startsWith("AMP-"))return M.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,R(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,R(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(k)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=v(this.h.bind(this),setTimeout)}set(t,n,i){p(n),p(void 0!==i);const{key:s}=t,e=this.o||(this.o=new Map);let o=e.get(s);o||(o={values:[],setters:[]},e.set(s,o));const r=o.setters.indexOf(n),l=-1==r||o.values[r]!==i;-1==r?(o.setters.push(n),o.values.push(i)):l&&(o.values[r]=i),l&&(this.ping(t,!1),A(t)&&m(this.i,P,t,!0,!1))}remove(t,n){p(n);const{key:i}=t,s=this.o,e=null==s?void 0:s.get(i);if(e){p(s);const o=e.setters.indexOf(n);-1!=o&&(e.setters.splice(o,1),e.values.splice(o,1),0==e.setters.length&&s.delete(i),m(this.i,P,t))}}has(t){var n;return!(null===(n=this.o)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.v(t);if(!a(i.subscribers,n))return;const s=i.value;w(s)&&this.p()&&n(s)}unsubscribe(t,n){var i;const s=null===(i=this.u)||void 0===i?void 0:i.get(t.key);s&&f(s.subscribers,n)&&this.m(s)}ping(t,n){var i,s;null===(i=this.u)||void 0===i||null===(s=i.get(t.key))||void 0===s||s.ping(n)}parentUpdated(){this.p()&&m(this.i,_,void 0,b)}rootUpdated(){const t=this.u;t&&(this.p()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;A(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!A(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.u;return i&&i.forEach((i=>{const{prop:s}=i,{key:e}=s;-1==(n||t).indexOf(e)&&(this.ping(s,!0),this.i.children&&this.has(s)&&(n||(n=t.slice(0)),n.push(e)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,s=this.u||(this.u=new Map);let e=s.get(i);return e||(e={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(y):b,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.p()){const n=t?2:1;e.pending=Math.max(e.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{e.depValues[n]=t,e.ping()})):b,pingParent:A(t)?t=>{e.parentValue=t,e.ping()}:null},s.set(i,e),n.forEach(((t,n)=>this.subscribe(t,e.pingDep[n]))),e.ping(!1)),e}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:s}=t,{deps:e,key:o}=s;null===(n=this.u)||void 0===n||n.delete(o),this._(t,null),e.length>0&&e.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}h(){if(!this.p())return;const t=this.u;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return o(`cyclical prop: ${i}`),void(t.pending=0);n++,this.g(t)}}))}while(n>0)}g(t){const n=2==t.pending;let i;try{i=this.P(t,n)}catch(t){o(t)}t.pending=0,this.A(t,i)}A(t,n){const{prop:i,value:s}=t,{key:e}=i,o=this.u;if(s===n||t!==(null==o?void 0:o.get(e))||!this.p())return;t.value=n;const{subscribers:r}=t;for(const t of r)t(n)}P(t,n){var i,s;p(this.p());const{depValues:e,prop:o}=t,{compute:r,defaultValue:l,key:u}=o,c=null===(i=this.o)||void 0===i||null===(s=i.get(u))||void 0===s?void 0:s.values,h=function(t,n){const{compute:i,recursive:s}=t;return"function"==typeof s?!n||s(n):!(s&&n&&!i)&&s}(o,c);if(n||h!=Boolean(t.parentContextNode)){const n=h?function(t,n,i,s=!0){for(let e=s?t:t.parent;e;e=e.parent)if(n(e,i))return e;return null}(this.i,g,o,!1):null;this._(t,n)}const a=w(t.parentValue)?t.parentValue:h&&!t.parentContextNode?l:void 0;let f;if(e.every(w)&&(!h||w(a))){const{node:t}=this.i;c&&!r?f=c[0]:A(o)?c||e.length>0?f=function(t,n,i,s,e){switch(e.length){case 0:return t(n,i,s);case 1:return t(n,i,s,e[0]);case 2:return t(n,i,s,e[0],e[1]);case 3:return t(n,i,s,e[0],e[1],e[2]);default:return t.apply(null,[n,i,s].concat(e))}}(r,t,c||b,a,e):w(a)&&(f=a):r&&(f=function(t,n,i,s){switch(s.length){case 0:return t(n,i);case 1:return t(n,i,s[0]);case 2:return t(n,i,s[0],s[1]);case 3:return t(n,i,s[0],s[1],s[2]);default:return t.apply(null,[n,i].concat(s))}}(r,t,c||b,e))}return f}_(t,n){const{parentContextNode:i,pingParent:s,prop:e}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(s),i&&i.values.unsubscribe(e,s),n&&(p(s),n.values.subscribe(e,s)))}}(this),this.k=null,this.M=!1,this.R=v(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const s=t.target;s.assignedNodes().forEach(R),null===(n=M.closest(s))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(k)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(k)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?M.get(t):t;this.T(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const s=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(s)}updateRoot(t){p(!t||t.isRoot);const n=this.root;var i,s;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.k)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(s=this.children)||void 0===s||s.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const s=this.groups||(this.groups=new Map),{children:e,node:o}=this,r=new M(o,t);return s.set(t,{cn:r,match:n,weight:i}),r.setParent(this),null==e||e.forEach(k),r}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,s=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:e,weight:o})=>{e(t,this.node)&&o>s&&(i=n,s=o)})),i}subscribe(t,n,i,s){const e=this.k||(this.k=new Map);let o=e.get(t);o||(o=new n(this,i,s),e.set(t,o))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),p(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=M.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,n){var i;this.M=n;const s=this.parent;if(t!=s){if(this.parent=t,null!=s&&s.children&&(p(s.children),f(s.children,this)),t){const n=t.children||(t.children=[]);a(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function R(t){!function(t,n,i=!0){const s=M.closest(t,i);if(s)if(s.node==t)n(s);else if(s.children)for(const i of s.children)t.contains(i.node)&&n(i)}(t,k)}function k(t){t.discover()}function S(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function T(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,s)}return i}function V(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){S(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var E=[];function I(t,n){const i=V({key:t,deps:E,recursive:!1},n);return p(0==i.deps.length||i.compute),i}var C=[],O=()=>{};function j(t,n,i){n=h(n);const s=i;M.get(t).subscribe(s,N,i,n)}function z(t,n){const i=n;M.get(t).unsubscribe(i)}var N=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.C=i,this.I=i.length>0?i.map(O):C,this.O=i.length>0?i.map(((t,n)=>t=>{this.I[n]=t,this.j()})):C,this.N=!1,this.$=null,this.j=v(this.j.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.O[i])))}this.p()&&this.j()}dispose(){if(this.C.length>0){const{values:t}=this.contextNode;this.C.forEach(((n,i)=>t.unsubscribe(n,this.O[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.j()}p(){return!!this.contextNode.root}j(){this.p()&&(this.I.every(x)?(this.N=!0,this.D()):this.N&&(this.N=!1,this.L()))}D(){this.L();const t=this.V;this.$=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.I)}L(){this.$&&(r(this.$),this.$=null)}};function x(t){return void 0!==t}function $(t,n){M.assignSlot(t,n)}function L(t,n){M.unassignSlot(t,n)}function D(t,n){M.get(t).setParent(n)}function U(t){M.get(t).discover()}function W(t,n){M.get(t).setIsRoot(n)}function q(t){M.rediscoverChildren(t)}function B(t,n,i,s){M.get(t).values.set(n,i,s)}function F(t,n,i){M.get(t).values.remove(n,i)}function G(t,n,i,s=0){M.get(t).addGroup(n,i,s)}function Q(t,n,i,s,e){var o;null===(o=M.get(t).group(n))||void 0===o||o.values.set(i,s,e)}function Z(t,n,i,s){var e;null===(e=M.get(t).group(n))||void 0===e||e.values.remove(i,s)}import{hydrate as H,render as J}from"react-dom";import{createElement as K,cloneElement as X,createRef as Y,createContext as tt,isValidElement as nt}from"react";import{useState as it,useRef as st,useEffect as et,useLayoutEffect as ot,useContext as rt,useMemo as lt,useCallback as ut,useImperativeHandle as ct,useReducer as ht}from"react";function at(t){return t.children}var ft=["auto","lazy","eager","unload"],dt={auto:0,lazy:1,eager:2,unload:3};function pt(t,n){const i=dt[null!=t?t:"auto"]||0,s=dt[null!=n?n:"auto"]||0,e=Math.max(i,s);return ft[e]}function vt(t){return(t.ownerDocument||t).defaultView}function mt(t){p(/^[\w-]+$/.test(t))}function bt(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function yt(t,n){return t.matches(n)}function Pt(t,n){return mt(n),bt(t,`> [${n}]`)}function _t(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!gt(n)&&i.push(n);return i}(t)}function gt(t){return!!function(t){let n;return"string"==typeof t?n=t:d(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var At={bubbles:!0,cancelable:!0};function wt(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function Mt(t,n,i,s){const e=i||{};p(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=e;const{bubbles:r,cancelable:l}=s||At;o.initEvent(n,r,l),t.dispatchEvent(o)}function Rt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function kt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,s,e;if(")"==n.charAt(n.length-1)){let t=1;for(e=n.length-2;e>=0;e--){const i=n.charAt(e);if("("==i?t--:")"==i&&t++,0==t)break}const i=e-1;if(e>0)for(e--;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(e>=i)return null}else for(e=n.length-2;e>=0;e--){const t=n.charAt(e);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return e>=0?(i=n.substring(0,e+1).trim(),s=n.substring(e+1).trim()):(s=n,i=void 0),s?{query:i?t.matchMedia(i):null,value:s}:null})).filter(Boolean)}function St(t,n,i){for(let s=0;s<t.length;s++){const{query:e}=t[s];e&&(void 0!==e.onchange?e.onchange=i?n:null:i?e.addListener(n):e.removeListener(n))}}var Tt,Vt,Et,It,Ct={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Ot=/vertical/,jt=new WeakMap,zt=new WeakMap,Nt=new WeakMap;function xt(t){let n=jt.get(t);return n||(n=new t.ResizeObserver($t),jt.set(t,n)),n}function $t(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const s=t[i],{target:e}=s;if(n.has(e))continue;n.add(e);const o=zt.get(e);if(o){Nt.set(e,s);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Lt(i,n,s)}}}}function Lt(t,n,i){if(0==t){const{contentRect:t}=i,{height:s,width:e}=t;r(n,{width:e,height:s})}else if(1==t){const{borderBoxSize:t}=i;let s;if(t)s=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=vt(t),e=Ot.test(function(t,n){return t.getComputedStyle(n)||Ct}(n,t).writingMode),{offsetHeight:o,offsetWidth:r}=t;let l,u;e?(u=r,l=o):(l=r,u=o),s={inlineSize:l,blockSize:u}}r(n,s)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Tt=AMP.BaseElement;else{class n{constructor(t){this.element=t,this.win=vt(t)}mutateElement(n){(t||(t=Promise.resolve(void 0))).then(n)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Tt=n}function Dt(t,n,i=self){i.customElements.define(t,function(t,n=self){return Vt&&Et===n||(Vt=(Et=n).HTMLElement),class extends Vt{constructor(){super(),this.implementation=new t(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}(n,i))}function Ut(){return It||(It=tt({renderable:!0,playable:!0,loading:"auto"}))}function Wt({children:t,loading:n="auto",notify:i,playable:s=!0,renderable:e=!0}){const o=qt(),r=e&&o.renderable,l=r&&s&&o.playable,u=pt(r?"auto":"lazy",pt(n,o.loading)),c=i||o.notify,h=lt((()=>({renderable:r,playable:l,loading:u,notify:c})),[r,l,u,c]),a=Ut();return K(a.Provider,{children:t,value:h})}function qt(){const t=Ut();return rt(t)}function Bt(t){const{loading:n}=qt();return pt(t,n)}var Ft=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Zt),compute:(t,n,i)=>i&&n.reduce(Zt,!0)||!1}),Gt=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Zt),deps:[Ft],compute:(t,n,i,s)=>s&&i&&n.reduce(Zt,!0)||!1}),Qt=I("Loading",{defaultValue:"auto",recursive:!0,deps:[Ft],compute:(t,n,i,s)=>pt(s?"auto":"lazy",pt(i||"auto",n.reduce(pt,"auto")))}),Zt=(t,n)=>t&&n,Ht=t=>t.ensureLoaded(),Jt=t=>t.pause(),Kt=t=>t.unmount();function Xt(t,n=!0){nn(t,n,!1,Ht)}function Yt(t,n=!0){nn(t,n,!0,Jt)}function tn(t,n=!0){nn(t,n,!0,Kt)}function nn(t,n,i,s){const e=h(t);for(let t=0;t<e.length;t++)sn(e[t],n,i,s)}function sn(t,n,i,s){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(r(s,n),!i){const t=n.getPlaceholder();return void(t&&sn(t,!0,!1,s))}}const e=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<e.length;t++){const n=e[t];if(i)r(s,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),r(s,n))}}}var en={},on=new WeakMap;function rn(t,n,i,s=!1){if(t.setAttribute("slot",n),!s)return K(ln,V(V({},i||en),{},{name:n}));const e=on.get(t);if(e&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(e.oldProps,i))return e.component;function o(t){return K(ln,V(V({},i||en),{},{name:n},t))}return on.set(t,{oldProps:i,component:o}),o}function ln(t){const n=st(null);return un(n,t),et((()=>{t.postRender&&t.postRender()})),K("slot",V(V({},t),{},{ref:n}))}function un(t,n){const i=null==n?void 0:n.loading,s=qt();ot((()=>{const n=t.current;return p(d(n)),B(n,Ft,ln,s.renderable),B(n,Gt,ln,s.playable),B(n,Qt,ln,s.loading),s.playable||cn(n,Yt,!0),()=>{F(n,Ft,ln),F(n,Gt,ln),F(n,Qt,ln),q(n)}}),[t,s]),ot((()=>{const n=t.current;return p(d(n)),"lazy"!=i&&cn(n,Xt,!0),()=>{cn(n,tn,!1)}}),[t,i])}function cn(t,n,i){const s=t.assignedElements?t.assignedElements():t;if(Array.isArray(s)&&0==s.length)return;if(!i)return void n(s);const e=t.ownerDocument.defaultView;e&&(e.requestIdleCallback||e.setTimeout)((()=>n(s)))}var hn={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},an=function(){let t=0;return()=>String(++t)}();function fn(t,n){return Object.values(t).some(n)}var dn=t=>"string"==typeof t||!!t.selector,pn=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function vn(t,n,i,s,e){const{"layoutSizeDefined":o,"lightDomTag":r,"props":l}=t;e&&e.start();const u=V(V({},s),{},{ref:i});return r&&(u["i-amphtml-rendered"]=!0,u.__AMP_RENDERED=!0,u.as=r),o&&(t.usesShadowDom?u.style=hn:u.class="i-amphtml-fill-content"),mn(t,u,l,n,e),e&&e.complete(),u}function mn(t,n,i,s,e){if(fn(i,dn)){const o=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!gt(n)&&i.push(n);return i}(t)}(s);for(let s=0;s<o.length;s++){const r=o[s],l=yn(r,i);if(!l)continue;const u=i[l],{as:c=!1,clone:h,name:a=l,props:f={},single:d}=u;p(h||t.usesShadowDom);const v={};if(mn(t,v,f,r,e),d)n[a]=rn(r,r.getAttribute("slot")||`i-amphtml-${a}`,v,c);else{const t=n[a]||(n[a]=[]);p(!c),t.push(h?bn(r):rn(r,r.getAttribute("slot")||`i-amphtml-${a}-${an()}`,v))}}}for(const r in i){const l=i[r];let u;if(p([l.attr,l.attrs,l.attrMatches,l.selector,l.passthrough,l.passthroughNonEmpty].filter(Boolean).length<=1),l.passthrough)p(t.usesShadowDom),u=[K(ln,{loading:"lazy"})];else if(l.passthroughNonEmpty)p(t.usesShadowDom),u=_t(s).every(pn)?null:[K(ln,{loading:"lazy"})];else if(l.attr){const t=s.getAttribute(l.attr);u=t&&l.parseAttr?l.parseAttr(t):t,l.media&&null!=u&&(p(e),u=e.resolveListQuery(String(u)))}else l.parseAttrs&&(p(l.attrs||l.attrMatches),u=l.parseAttrs(s));if(null==u)null!=l.default&&(n[r]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[r]=t}}var o}function bn(t){const n={"key":t},{attributes:i,localName:s}=t,{length:e}=i;for(let t=0;t<e;t++){const{name:s,value:e}=i[t];n[s]=e}return K(s,n)}function yn(t,n){for(const i in n){const s=n[i],e="string"==typeof s?s:s.selector;if(e&&yt(t,e))return i}return null}var Pn={childList:!0},_n={childList:!0,characterData:!0},gn={childList:!0},An={"style":"display: contents; background: inherit;","part":"c"},wn={"name":"i-amphtml-svc"},Mn={"i-amphtml-rendered":""},Rn=()=>!0,kn=t=>!!t.media,Sn=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Tn=class extends Tt{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){p(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.U(t,n)},"onPlayingState":t=>{this.q(t)}}}constructor(t){super(t),this.W=this.getDefaultProps(),this.F={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.H=null,this.G=null,this.Z=t=>{null!==t&&(this.H?this.J(t):this.K(t)),this.G=t,this.X()},this.Y=null,this.tt=null,this.nt=null,this.it=!1,this.et=null,this.rt=()=>{this.it=!1,this.st()},this.ot=!1,this.ut=!1,this.observer=null,this.lt=new class{constructor(t){this.ct=t,this.ft=!1,this.ht=!1,this.dt=this.dt.bind(this)}updatePlaying(t){t!==this.ft&&(this.ft=t,t?(this.ht=!1,function(t,n){!function(t,n,i){const s=t.ownerDocument.defaultView;if(!s)return;let e=zt.get(t);if(e||(e=[],zt.set(t,e),xt(s).observe(t)),!e.some((t=>t.callback===i&&1===t.type))){e.push({type:1,callback:i});const n=Nt.get(t);n&&setTimeout((()=>Lt(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const s=zt.get(t);if(s&&(function(t,n){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];(o=r).callback===i&&1===o.type?s.push(r):(e<n&&(t[e]=r),e++)}var o;e<t.length&&(t.length=e)}(s),0==s.length)){zt.delete(t),Nt.delete(t);const n=t.ownerDocument.defaultView;n&&xt(n).unobserve(t)}}(t,0,n)}(this.ct,this.dt))}dt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.ht)return;this.ht=i;const s=this.ct;i||s.pause()}}(t),this.vt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yt(t)));const{props:i}=t,s=fn(i,dn)?Pn:null,e=fn(i,Sn)?_n:null,o=t.usesTemplate?gn:null;this.observer.observe(this.element,V(V(V({attributes:!0},s),e),o)),this.vt=fn(i,kn)?new class{constructor(t,n){this.bt=t,this._t=n,this.gt={},this.Pt=null}start(){this.Pt=this.gt,this.gt={}}resolveMatchQuery(t){return"1"===this.At(t,Rt,"1")}resolveListQuery(t){return this.At(t,kt,"")}complete(){for(const t in this.Pt)t in this.gt||St(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)St(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let s=this.gt[t];return s||(p(this.Pt),s=this.Pt[t]),s||(s=n(this.bt,t),St(s,this._t,!0)),this.gt[t]=s,function(t){for(let n=0;n<t.length;n++){const{query:i,value:s}=t[n];if(!i||i.matches)return s}return""}(s)}}(this.win,(()=>this.wt())):null;const{staticProps:r}=t,l=this.init();Object.assign(this.W,r,l),this.checkPropsPostMutations(),j(this.element,[],(()=>()=>{this.ut=!1,this.nt&&J(null,this.nt)})),j(this.element,[Ft,Gt,Qt],((t,n,i)=>{this.F.renderable=t,this.F.playable=n,this.F.loading=i,this.ut=!0,this.wt()}));const{useContexts:u}=t;var c;return 0!=u.length&&j(this.element,u,((...t)=>{this.tt=t,this.wt()})),this.et=new n,this.wt(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.X(),this.et.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":"eager"}),this.B=!0)}mountCallback(){U(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;U(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.q(!1),null===(t=this.vt)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.W,t),this.wt()}api(){const t=this.G;return p(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var s,e;const o=i[t],r=n.attributeName;if(p(r),r==o.attr||null!==(s=o.attrs)&&void 0!==s&&s.includes(r)||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,r))return!0}return!1}return"childList"==i&&(Vn(n.addedNodes)||Vn(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.rt))}X(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.U(n)}U(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.q("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}st(){if(!this.ut)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,s=i?null:t.lightDomTag;if(!this.nt){const a=this.win.document;if(i){p(!n);let{shadowRoot:i}=this.element,s=i&&(h=i,mt("c"),bt(h,"> c"));if(s)this.ot=!0;else{var e,o,r,l,u,c;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const s=t.ownerDocument,e=s.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==e.CSSStyleSheet.prototype.replaceSync){const s=e.__AMP_SHADOW_CSS||(e.__AMP_SHADOW_CSS={});let o=s[n];o||(o=new e.CSSStyleSheet,p(o.replaceSync),o.replaceSync(i),s[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const e=s.createElement("style");e.setAttribute("data-name",n),e.textContent=i,t.appendChild(e)}}(i,this.element.tagName,n),s=wt(a,"c",An),i.appendChild(s);const h=wt(a,"slot",wn);i.appendChild(h),null===(e=this.getPlaceholder)||void 0===e||null===(o=e.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(r=this.getFallback)||void 0===r||null===(l=r.call(this))||void 0===l||l.setAttribute("slot","i-amphtml-svc"),null===(u=this.getOverflowElement)||void 0===u||null===(c=u.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.nt=s,p(i),D(i,this.element),G(this.element,"unslotted",Rn,-1),Q(this.element,"unslotted",Ft,this,!1)}else if(s){const n=this.element;this.nt=n;const i=Pt(n,"i-amphtml-rendered")||wt(a,s,Mn);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.nt.appendChild(i)}else{const t=a.createElement("i-amphtml-c");this.nt=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var h;const a=this.nt;p(a);const{useContexts:f}=t,d=this.tt;if(0!=f.length&&null==d)return;const v=vn(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let m=K(t.Component,v);for(let t=0;t<f.length;t++){p(d);const n=f[t].type,i=d[t];i&&(m=K(n.Provider,{value:i},m))}const b=K(Wt,V({},this.F),m);try{if(this.ot)this.ot=!1,H(b,a);else{const t=s?Pt(a,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),J(b,a,null!=t?t:void 0)}}catch(t){var y;throw null===(y=this.et)||void 0===y||y.reject(t),t}i||n||this.mutateElement((()=>Mt(this.element,"amp:dom-update",void 0))),this.et&&(this.et.resolve(void 0),this.et=null)}getProp(t,n){return i=this.W,s=t,l.call(i,s)?this.W[t]:n;var i,s}getApi(){const t=this.H;return t?Promise.resolve(t):(this.Y||(this.Y=new n),this.Y.promise)}K(t){const n=function(t){const n=Object.create(null);return n}(),i=Object.keys(t);for(let t=0;t<i.length;t++){const s=i[t];this.kt(n,s)}this.H=n,this.Y&&(this.Y.resolve(n),this.Y=null)}J(t){}triggerEvent(t,n,i){Mt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps({"loading":"unload"}),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}q(t){this.lt.updatePlaying(t)}kt(t,n){Object.defineProperty(t,n,{configurable:!0,get:()=>{const t=this.G;return p(t),t[n]},set:t=>{const i=this.G;p(i),i[n]=t}})}};function Vn(t){for(let n=0;n<t.length;n++){const i=t[n];if(d(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}Tn.staticProps=void 0,Tn.useContexts=[],Tn.loadable=!1,Tn.unloadOnPause=!1,Tn.layoutSizeDefined=!1,Tn.lightDomTag="",Tn.usesTemplate=!1,Tn.shadowCss=null,Tn.usesShadowDom=!1,Tn.detached=!1,Tn.delegatesFocus=!1,Tn.props={};import{forwardRef as En,Children as In,memo as Cn}from"react";function On(t,n){if(null==t)return{};var i,s,e={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],n.indexOf(i)>=0||(e[i]=t[i]);return e}function jn(t){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zn(t){var n=function(t,n){if("object"!==jn(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!==jn(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jn(n)?n:String(n)}var Nn=[null,"paint","layout","content","size","size paint","size layout","strict"],xn={"position":"relative","width":"100%","height":"100%"},$n=En((function(t,n){let i="class",{as:s="div",children:e,contentAs:o="div",contentClassName:r,contentProps:l,contentRef:u,contentStyle:c,layout:h=!1,paint:a=!1,size:f=!1,"style":d,wrapperClassName:p,wrapperStyle:v,[i]:m}=t,b=On(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(zn));const y=(f?4:0)+(h?2:0)+(a?1:0);return K(s,V(V({},b),{},{ref:n,class:`${m||""} ${p||""}`.trim()||null,style:V(V(V({},d),v),{},{contain:Nn[y]})}),K(o,V(V({},l),{},{ref:u,class:r,style:V(V({},f&&xn),{},{"overflow":a?"hidden":"visible"},c)}),e))})),Ln=En((function(t,n){let i="class",{as:s="div",children:e,"style":o,wrapperClassName:r,wrapperStyle:l,[i]:u}=t,c=On(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(zn));return K(s,V(V({},c),{},{ref:n,class:`${u||""} ${r||""}`.trim()||null,style:V(V({},o),l)}),e)}));function Dn(t){const n=st(t);return n.current=t,n}function Un(t,n){ct(t,(()=>n),[n])}export{Tt as BaseElement,In as Children,$n as ContainWrapper,at as Fragment,Tn as PreactBaseElement,ln as Slot,Wt as WithAmpContext,Ln as Wrapper,G as addGroup,$ as assignSlot,X as cloneElement,I as contextProp,tt as createContext,K as createElement,Y as createRef,rn as createSlot,Dt as defineBentoElement,U as discover,En as forwardRef,H as hydrate,nt as isValidElement,Cn as memo,q as rediscoverChildren,Z as removeGroupProp,F as removeProp,J as render,Q as setGroupProp,W as setIsRoot,D as setParent,B as setProp,j as subscribe,L as unassignSlot,z as unsubscribe,qt as useAmpContext,ut as useCallback,rt as useContext,Un as useDOMHandle,et as useEffect,ct as useImperativeHandle,ot as useLayoutEffect,Bt as useLoading,lt as useMemo,ht as useReducer,st as useRef,un as useSlotContext,it as useState,Dn as useValueRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento-react.core.module.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc