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.2203281422.0 to 0.2204121632.0

2

dist/bento.core.module.js
;
function t(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function n(n,i){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(e)return(e=e.call(n)).next.bind(e);if(Array.isArray(n)||(e=function(n,i){if(n){if("string"==typeof n)return t(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?t(n,i):void 0}}(n))||i&&n&&"number"==typeof n.length){e&&(n=e);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.")}var i;function e(){return i||(i=Promise.resolve(void 0))}var r=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function o(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 s(t){let i=null,e="";for(var r,s=n(arguments,!0);!(r=s()).done;){const t=r.value;t instanceof Error&&!i?i=o(t):(e&&(e+=" "),e+=t)}return i?e&&(i.message=e+": "+i.message):i=new Error(e),i}function u(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function l(t){const n=s.apply(null,arguments);setTimeout((()=>{throw u(n),n}))}function c(t,...n){try{return t.apply(null,n)}catch(t){l(t)}}var{hasOwnProperty:a,toString:f}=Object.prototype,{isArray:h}=Array;function d(t){return h(t)?t:[t]}function v(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function p(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function y(t){return 1==(null==t?void 0:t.nodeType)}function m(t,n,i,e,r,o,s,u,l,c,a){return t}function b(t,n){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function _(t,i,e,r=!0,o=!0){if(o){const n=i(t,e,r);n&&_(t,i,e,n,!1)}else if(t.children)for(var s,u=n(t.children,!0);!(s=u()).done;)_(s.value,i,e,r,!0)}var g=[],P=()=>{};function A(t,n){return t.values.scan(n)}function w(t,n,i){return t.values.scanAll(i)}function k(t,n){return t.values.has(n)}function M(t){return!!t.recursive}function R(t){return void 0!==t}var S=class{static get(t){let n=t.__AMP_NODE;return n||(n=new S(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||y(i)&&i.tagName.startsWith("AMP-"))return S.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,T(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,T(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(E)}constructor(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 class{constructor(t){this.i=t,this.o=null,this.u=null,this.h=b(this.h.bind(this),setTimeout)}set(t,n,i){m(n),m(void 0!==i);const{key:e}=t,r=this.o||(this.o=new Map);let o=r.get(e);o||(o={values:[],setters:[]},r.set(e,o));const s=o.setters.indexOf(n),u=-1==s||o.values[s]!==i;-1==s?(o.setters.push(n),o.values.push(i)):u&&(o.values[s]=i),u&&(this.ping(t,!1),M(t)&&_(this.i,A,t,!0,!1))}remove(t,n){m(n);const{key:i}=t,e=this.o,r=null==e?void 0:e.get(i);if(r){m(e);const o=r.setters.indexOf(n);-1!=o&&(r.setters.splice(o,1),r.values.splice(o,1),0==r.setters.length&&e.delete(i),_(this.i,A,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(!v(i.subscribers,n))return;const e=i.value;R(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&&p(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()&&_(this.i,w,void 0,g)}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;M(n)&&this._(t,null)})))}scan(t){return this.ping(t,!0),!!M(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(P):g,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()})):g,pingParent:M(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:o}=e;null===(n=this.u)||void 0===n||n.delete(o),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 l(`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){l(t)}t.pending=0,this.A(t,i)}A(t,i){const{prop:e,value:r}=t,{key:o}=e,s=this.u;if(r===i||t!==(null==s?void 0:s.get(o))||!this.p())return;t.value=i;const{subscribers:u}=t;for(var l,c=n(u,!0);!(l=c()).done;)(0,l.value)(i)}P(t,n){var i,e;m(this.p());const{depValues:r,prop:o}=t,{compute:s,defaultValue:u,key:l}=o,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}(o,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,k,o,!1):null;this._(t,n)}const f=R(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(r.every(R)&&(!a||R(f))){const{node:t}=this.i;c&&!s?h=c[0]:M(o)?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))}}(s,t,c||g,f,r):R(f)&&(h=f):s&&(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))}}(s,t,c||g,r))}return h}_(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,m(e),i&&i.values.unsubscribe(r,e),n&&(m(e),n.values.subscribe(r,e)))}}(this),this.k=null,this.M=!1,this.R=b(this.S.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(T),null===(n=S.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(E)})),this.discover()}discover(){this.isDiscoverable()?this.R():this.name&&this.children&&this.children.forEach(E)}isDiscoverable(){return!this.isRoot&&!this.M}setParent(t){const n=null!=t&&t.nodeType?S.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){m(!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:o}=this,s=new S(o,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==r||r.forEach(E),s}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:o})=>{r(t,this.node)&&o>e&&(i=n,e=o)})),i}subscribe(t,n,i,e){const r=this.k||(this.k=new Map);let o=r.get(t);o||(o=new n(this,i,e),r.set(t,o))}unsubscribe(t){const n=this.k,i=null==n?void 0:n.get(t);i&&(i.dispose(),m(n),n.delete(t))}S(){if(!this.isDiscoverable())return;const t=S.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.T(n,!1)}T(t,i){var e;this.M=i;const r=this.parent;if(t!=r){if(this.parent=t,null!=r&&r.children&&(m(r.children),p(r.children,this)),t){const i=t.children||(t.children=[]);v(i,this);for(var o,s=n(i,!0);!(o=s()).done;){const t=o.value;t!=this&&t.isDiscoverable()&&t.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(e=null==t?void 0:t.root)&&void 0!==e?e:null)}};function T(t){!function(t,i,e=!0){const r=S.closest(t,e);if(r)if(r.node==t)i(r);else if(r.children)for(var o,s=n(r.children,!0);!(o=s()).done;){const n=o.value;t.contains(n.node)&&i(n)}}(t,E)}function E(t){t.discover()}function I(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function V(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 C(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?V(Object(i),!0).forEach((function(n){I(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):V(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var j=[];function O(t,n){const i=C({key:t,deps:j,recursive:!1},n);return m(0==i.deps.length||i.compute),i}var z=[],x=()=>{};function $(t,n,i){n=d(n);const e=i;S.get(t).subscribe(e,G,i,n)}function N(t,n){const i=n;S.get(t).unsubscribe(i)}var L,U,D,q,W,F,B,H,G=class{constructor(t,n,i){if(this.contextNode=t,this.I=n,this.V=i,this.C=i.length>0?i.map(x):z,this.j=i.length>0?i.map(((t,n)=>t=>{this.C[n]=t,this.O()})):z,this.$=!1,this.N=null,this.O=b(this.O.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.j[i])))}this.p()&&this.O()}dispose(){if(this.V.length>0){const{values:t}=this.contextNode;this.V.forEach(((n,i)=>t.unsubscribe(n,this.j[i])))}this.L()}rootUpdated(){const t=this.p();this.L(),t&&this.O()}p(){return!!this.contextNode.root}O(){this.p()&&(this.C.every(Q)?(this.$=!0,this.U()):this.$&&(this.$=!1,this.L()))}U(){this.L();const t=this.I;this.N=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.C)}L(){this.N&&(c(this.N),this.N=null)}};function Q(t){return void 0!==t}function Z(t,n){S.assignSlot(t,n)}function J(t,n){S.unassignSlot(t,n)}function K(t,n){S.get(t).setParent(n)}function X(t){S.get(t).discover()}function Y(t,n){S.get(t).setIsRoot(n)}function tt(t){S.rediscoverChildren(t)}function nt(t,n,i,e){S.get(t).values.set(n,i,e)}function it(t,n,i){S.get(t).values.remove(n,i)}function et(t,n,i,e=0){S.get(t).addGroup(n,i,e)}function rt(t,n,i,e,r){var o;null===(o=S.get(t).group(n))||void 0===o||o.values.set(i,e,r)}function ot(t,n,i,e){var r;null===(r=S.get(t).group(n))||void 0===r||r.values.remove(i,e)}var st,ut,lt,ct={},at=[],ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ht(t,n){for(var i in n)t[i]=n[i];return t}function dt(t){var n=t.parentNode;n&&n.removeChild(t)}function vt(t,n,i){var e,r,o,s={};for(o in n)"key"==o?e=n[o]:"ref"==o?r=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?L.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return pt(t,s,e,r,null)}function pt(t,n,i,e,r){var o={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?++D:r};return null==r&&null!=U.vnode&&U.vnode(o),o}function yt(){return{current:null}}function mt(t){return t.children}function bt(t,n){this.props=t,this.context=n}function _t(t,n){if(null==n)return t.__?_t(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?_t(t):null}function gt(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 gt(t)}}function Pt(t){(!t.__d&&(t.__d=!0)&&W.push(t)&&!At.__r++||B!==U.debounceRendering)&&((B=U.debounceRendering)||F)(At)}function At(){for(var t;At.__r=W.length;)t=W.sort((function(t,n){return t.__v.__b-n.__v.__b})),W=[],t.some((function(t){var n,i,e,r,o,s;t.__d&&(o=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=ht({},r)).__v=r.__v+1,Vt(s,r,e,n.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,i,null==o?_t(r):o,r.__h),Ct(i,r),r.__e!=o&&gt(r)))}))}function wt(t,n,i,e,r,o,s,u,l,c){var a,f,h,d,v,p,y,m=e&&e.__k||at,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?pt(null,d,null,null,d):Array.isArray(d)?pt(mt,{children:d},null,null,null):d.__b>0?pt(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}Vt(t,d,h=h||ct,r,o,s,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=kt(d,l,t):l=Rt(t,d,h,m,v,l),"function"==typeof i.type&&(i.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=_t(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=_t(e,a+1)),Ot(m[a],m[a]));if(y)for(a=0;a<y.length;a++)jt(y[a],y[++a],y[++a])}function kt(t,n,i){for(var e,r=t.__k,o=0;r&&o<r.length;o++)(e=r[o])&&(e.__=t,n="function"==typeof e.type?kt(e,n,i):Rt(i,e,e,r,e.__e,n));return n}function Mt(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){Mt(t,n)})):n.push(t)),n}function Rt(t,n,i,e,r,o){var s,u,l;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==i||r!=o||null==r.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(r),s=null;else{for(u=o,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==r)break t;t.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function St(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||ft.test(n)?i:i+"px"}function Tt(t,n,i,e,r){var o;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||St(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||St(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=i,i?e||t.addEventListener(n,o?It:Et,o):t.removeEventListener(n,o?It:Et,o);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 Et(t){this.l[t.type+!1](U.event?U.event(t):t)}function It(t){this.l[t.type+!0](U.event?U.event(t):t)}function Vt(t,n,i,e,r,o,s,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,o=[u]),(c=U.__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 bt(y,b),a.constructor=g,a.render=zt),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=ht({},a.__s)),ht(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&&s.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=U.__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=ht(ht({},e),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),_=null!=c&&c.type===mt&&null==c.key?c.props.children:c,wt(t,Array.isArray(_)?_:[_],n,i,e,r,o,s,u,l),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==o&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,r,o,s,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(r=!0),null!=o)for(;v<o.length;v++)if((l=o[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,o[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),o=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(o=o&&L.call(t.childNodes),c=(f=i.props||ct).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=o)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 o;for(o in i)"children"===o||"key"===o||o in n||Tt(t,o,null,i[o],e);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||i[o]===n[o]||Tt(t,o,n[o],i[o],e)}(t,h,f,r,u),a)n.__k=[];else if(v=n.props.children,wt(t,Array.isArray(v)?v:[v],n,i,e,r&&"foreignObject"!==d,o,s,o?o[0]:i.__k&&_t(i,0),u),null!=o)for(v=o.length;v--;)null!=o[v]&&dt(o[v]);u||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===d&&!v)&&Tt(t,"value",v,f.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&Tt(t,"checked",v,f.checked,!1))}return t}(i.__e,n,i,e,r,o,s,l);(c=U.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=o)&&(n.__e=u,n.__h=!!l,o[o.indexOf(u)]=null),U.__e(t,n,i)}}function Ct(t,n){U.__c&&U.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){U.__e(t,n.__v)}}))}function jt(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){U.__e(t,i)}}function Ot(t,n,i){var e,r;if(U.unmount&&U.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||jt(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){U.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&Ot(e[r],n,"function"!=typeof t.type);i||null==t.__e||dt(t.__e),t.__e=t.__d=void 0}function zt(t,n,i){return this.constructor(t,i)}function xt(t,n,i){var e,r,o;U.__&&U.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,o=[],Vt(n,t=(!e&&i||n).__k=vt(mt,null,[t]),r||ct,ct,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?L.call(n.childNodes):null,o,!e&&i?i:r?r.__e:n.firstChild,e),Ct(o,t)}function $t(t,n){xt(t,n,$t)}function Nt(t,n,i){var e,r,o,s=ht({},t.props);for(o in n)"key"==o?e=n[o]:"ref"==o?r=n[o]:s[o]=n[o];return arguments.length>2&&(s.children=arguments.length>3?L.call(arguments,2):i),pt(t.type,s,e||t.key,r||t.ref,null)}function Lt(t,n){var i={__c:n="__cC"+H++,__: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(Pt)},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}L=at.slice,U={__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}},D=0,q=function(t){return null!=t&&void 0===t.constructor},bt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),"function"==typeof t&&(t=t(ht({},i),this.props)),t&&ht(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),Pt(this))},bt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Pt(this))},bt.prototype.render=mt,W=[],F="function"==typeof Promise?Promise.prototype.then.bind(e()):setTimeout,At.__r=0,H=0;var Ut=0,Dt=[],qt=U.__b,Wt=U.__r,Ft=U.diffed,Bt=U.__c,Ht=U.unmount;function Gt(t,n){U.__h&&U.__h(ut,t,Ut||n),Ut=0;var i=ut.__H||(ut.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function Qt(t){return Ut=1,function(t,n,i){var e=Gt(st++,2);return e.t=t,e.__c||(e.__=[ln(void 0,n),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=ut),e.__}(ln,t)}function Zt(t,n){var i=Gt(st++,3);!U.__s&&un(i.__H,n)&&(i.__=t,i.__H=n,ut.__H.__h.push(i))}function Jt(t,n){var i=Gt(st++,4);!U.__s&&un(i.__H,n)&&(i.__=t,i.__H=n,ut.__h.push(i))}function Kt(t){return Ut=5,Yt((function(){return{current:t}}),[])}function Xt(t,n,i){Ut=6,Jt((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==i?i:i.concat(t))}function Yt(t,n){var i=Gt(st++,7);return un(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function tn(t,n){return Ut=8,Yt((function(){return t}),n)}function nn(t){var n=ut.context[t.__c],i=Gt(st++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub(ut)),n.props.value):t.__}function en(){Dt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(on),t.__H.__h.forEach(sn),t.__H.__h=[]}catch(n){t.__H.__h=[],U.__e(n,t.__v)}})),Dt=[]}U.__b=function(t){ut=null,qt&&qt(t)},U.__r=function(t){Wt&&Wt(t),st=0;var n=(ut=t.__c).__H;n&&(n.__h.forEach(on),n.__h.forEach(sn),n.__h=[])},U.diffed=function(t){Ft&&Ft(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==Dt.push(n)&&lt===U.requestAnimationFrame||((lt=U.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),rn&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);rn&&(n=requestAnimationFrame(i))})(en)),ut=null},U.__c=function(t,n){n.some((function(t){try{t.__h.forEach(on),t.__h=t.__h.filter((function(t){return!t.__||sn(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],U.__e(i,t.__v)}})),Bt&&Bt(t,n)},U.unmount=function(t){Ht&&Ht(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(on)}catch(t){U.__e(t,n.__v)}};var rn="function"==typeof requestAnimationFrame;function on(t){var n=ut;"function"==typeof t.__c&&t.__c(),ut=n}function sn(t){var n=ut;t.__c=t.__(),ut=n}function un(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function ln(t,n){return"function"==typeof n?n(t):n}function cn(t){return t.children}var an=["auto","lazy","eager","unload"],fn={auto:0,lazy:1,eager:2,unload:3};function hn(t,n){const i=fn[null!=t?t:"auto"]||0,e=fn[null!=n?n:"auto"]||0,r=Math.max(i,e);return an[r]}function dn(t){return(t.ownerDocument||t).defaultView}function vn(t){m(/^[\w-]+$/.test(t))}function pn(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function yn(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function mn(t,n){return vn(n),pn(t,`> [${n}]`)}function bn(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!_n(n)&&i.push(n);return i}(t)}function _n(t){return!!function(t){let n;return"string"==typeof t?n=t:y(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 gn={bubbles:!0,cancelable:!0};function Pn(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function An(t,n,i,e){const r=i||{};m(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=r;const{bubbles:s,cancelable:u}=e||gn;o.initEvent(n,s,u),t.dispatchEvent(o)}function wn(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function kn(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 Mn(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 Rn,Sn,Tn,En,In={"getPropertyPriority":()=>"","getPropertyValue":()=>""},Vn=/vertical/,Cn=new WeakMap,jn=new WeakMap,On=new WeakMap;function zn(t){let n=Cn.get(t);return n||(n=new t.ResizeObserver(xn),Cn.set(t,n)),n}function xn(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 o=jn.get(r);if(o){On.set(r,e);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];$n(i,n,e)}}}}function $n(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;c(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=dn(t),r=Vn.test(function(t,n){return t.getComputedStyle(n)||In}(n,t).writingMode),{offsetHeight:o,offsetWidth:s}=t;let u,l;r?(l=s,u=o):(u=s,l=o),e={inlineSize:u,blockSize:l}}c(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Rn=AMP.BaseElement;else{class t{constructor(t){this.element=t,this.win=dn(t)}mutateElement(t){e().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Rn=t}function Nn(t,n,i=self){i.customElements.define(t,function(t,n=self){return Sn&&Tn===n||(Sn=(Tn=n).HTMLElement),class extends Sn{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 Ln(){return En||(En=Lt({renderable:!0,playable:!0,loading:"auto"}))}function Un({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const o=Dn(),s=r&&o.renderable,u=s&&e&&o.playable,l=hn(s?"auto":"lazy",hn(n,o.loading)),c=i||o.notify,a=Yt((()=>({renderable:s,playable:u,loading:l,notify:c})),[s,u,l,c]);return vt(Ln().Provider,{children:t,value:a})}function Dn(){return nn(Ln())}function qn(t){const{loading:n}=Dn();return hn(t,n)}var Wn=O("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Hn),compute:(t,n,i)=>i&&n.reduce(Hn,!0)||!1}),Fn=O("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Hn),deps:[Wn],compute:(t,n,i,e)=>e&&i&&n.reduce(Hn,!0)||!1}),Bn=O("Loading",{defaultValue:"auto",recursive:!0,deps:[Wn],compute:(t,n,i,e)=>hn(e?"auto":"lazy",hn(i||"auto",n.reduce(hn,"auto")))}),Hn=(t,n)=>t&&n,Gn=t=>t.ensureLoaded(),Qn=t=>t.pause(),Zn=t=>t.unmount();function Jn(t,n=!0){Yn(t,n,!1,Gn)}function Kn(t,n=!0){Yn(t,n,!0,Qn)}function Xn(t,n=!0){Yn(t,n,!0,Zn)}function Yn(t,n,i,e){const r=d(t);for(let t=0;t<r.length;t++)ti(r[t],n,i,e)}function ti(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(c(e,n),!i){const t=n.getPlaceholder();return void(t&&ti(t,!0,!1,e))}}const r=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<r.length;t++){const n=r[t];if(i)c(e,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),c(e,n))}}}var ni={},ii=new WeakMap;function ei(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return vt(ri,C(C({},i||ni),{},{name:n}));const r=ii.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 o(t){return vt(ri,C(C({},i||ni),{},{name:n},t))}return ii.set(t,{oldProps:i,component:o}),o}function ri(t){const n=Kt(null);return oi(n,t),Zt((()=>{t.postRender&&t.postRender()})),vt("slot",C(C({},t),{},{ref:n}))}function oi(t,n){const i=null==n?void 0:n.loading,e=Dn();Jt((()=>{const n=t.current;return m(y(n)),nt(n,Wn,ri,e.renderable),nt(n,Fn,ri,e.playable),nt(n,Bn,ri,e.loading),e.playable||si(n,Kn,!0),()=>{it(n,Wn,ri),it(n,Fn,ri),it(n,Bn,ri),tt(n)}}),[t,e]),Jt((()=>{const n=t.current;return m(y(n)),"lazy"!=i&&si(n,Jn,!0),()=>{si(n,Xn,!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 ui={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},li=function(){let t=0;return()=>String(++t)}();function ci(t,n){return Object.values(t).some(n)}var ai=t=>"string"==typeof t||!!t.selector,fi=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function hi(t,n,i,e,r){const{"layoutSizeDefined":o,"lightDomTag":s,"props":u}=t;r&&r.start();const l=C(C({},e),{},{ref:i});return s&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=s),o&&(t.usesShadowDom?l.style=ui:l.class="i-amphtml-fill-content"),di(t,l,u,n,r),r&&r.complete(),l}function di(t,n,i,e,r){if(ci(i,ai)){const o=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!_n(n)&&i.push(n);return i}(t)}(e);for(let e=0;e<o.length;e++){const s=o[e],u=pi(s,i);if(!u)continue;const l=i[u],{as:c=!1,single:a,name:f=u,clone:h,props:d={}}=l;m(h||t.usesShadowDom);const v={};if(di(t,v,d,s,r),a)n[f]=ei(s,s.getAttribute("slot")||`i-amphtml-${f}`,v,c);else{const t=n[f]||(n[f]=[]);m(!c),t.push(h?vi(s):ei(s,s.getAttribute("slot")||`i-amphtml-${f}-${li()}`,v))}}}for(const s in i){const u=i[s];let l;if(m([u.attr,u.attrs,u.attrMatches,u.selector,u.passthrough,u.passthroughNonEmpty].filter(Boolean).length<=1),u.passthrough)m(t.usesShadowDom),l=[vt(ri,{loading:"lazy"})];else if(u.passthroughNonEmpty)m(t.usesShadowDom),l=bn(e).every(fi)?null:[vt(ri,{loading:"lazy"})];else if(u.attr){const t=e.getAttribute(u.attr);l=t&&u.parseAttr?u.parseAttr(t):t,u.media&&null!=l&&(m(r),l=r.resolveListQuery(String(l)))}else u.parseAttrs&&(m(u.attrs||u.attrMatches),l=u.parseAttrs(e));if(null==l)null!=u.default&&(n[s]=u.default);else{const t="number"==u.type?parseFloat(l):"boolean"==u.type?null==(o=l)?void 0:"false"!==o:l;n[s]=t}}var o}function vi(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 vt(e,n)}function pi(t,n){for(const i in n){const e=n[i],r="string"==typeof e?e:e.selector;if(r&&yn(t,r))return i}return null}var yi={childList:!0},mi={childList:!0,characterData:!0},bi={childList:!0},_i={"style":"display: contents; background: inherit;","part":"c"},gi={"name":"i-amphtml-svc"},Pi={"i-amphtml-rendered":""},Ai=()=>!0,wi=t=>!!t.media,ki=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Mi=class extends Rn{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(){m(!1)}getDefaultProps(){return{"loading":"auto","onReadyState":(t,n)=>{this.D(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.ot()},this.st=!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=jn.get(t);if(r||(r=[],jn.set(t,r),zn(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((()=>$n(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const e=jn.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const s=t[n];(o=s).callback===i&&1===o.type?e.push(s):(r<n&&(t[r]=s),r++)}var o;r<t.length&&(t.length=r)}(e),0==e.length)){jn.delete(t),On.delete(t);const n=t.ownerDocument.defaultView;n&&zn(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,i=ci(n,ai)?yi:null,e=ci(n,ki)?mi:null,o=t.usesTemplate?bi:null;this.observer.observe(this.element,C(C(C({attributes:!0},i),e),o)),this.vt=ci(n,wi)?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,wn,"1")}resolveListQuery(t){return this.At(t,kn,"")}complete(){for(const t in this.Pt)t in this.gt||Mn(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)Mn(this.gt[t],this._t,!1);this.gt={}}At(t,n,i){if(!t.trim())return i;let e=this.gt[t];return e||(m(this.Pt),e=this.Pt[t]),e||(e=n(this.bt,t),Mn(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:s}=t,u=this.init();Object.assign(this.W,s,u),this.checkPropsPostMutations(),$(this.element,[],(()=>()=>{this.ut=!1,this.nt&&xt(null,this.nt)})),$(this.element,[Wn,Fn,Bn],((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&&$(this.element,l,((...t)=>{this.tt=t,this.wt()})),this.et=new r,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(){X(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;X(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 m(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 o=i[t],s=n.attributeName;if(m(s),s==o.attr||null!==(e=o.attrs)&&void 0!==e&&e.includes(s)||null!==(r=o.attrMatches)&&void 0!==r&&r.call(o,s))return!0}return!1}return"childList"==i&&(Ri(n.addedNodes)||Ri(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.D(n)}D(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"}))}ot(){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){m(!n);let{shadowRoot:i}=this.element,e=i&&(a=i,vn("c"),pn(a,"> c"));if(e)this.st=!0;else{var r,o,s,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 o=e[n];o||(o=new r.CSSStyleSheet,m(o.replaceSync),o.replaceSync(i),e[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(i,this.element.tagName,n),e=Pn(f,"c",_i),i.appendChild(e);const a=Pn(f,"slot",gi);i.appendChild(a),null===(r=this.getPlaceholder)||void 0===r||null===(o=r.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(s=this.getFallback)||void 0===s||null===(u=s.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,m(i),K(i,this.element),et(this.element,"unslotted",Ai,-1),rt(this.element,"unslotted",Wn,this,!1)}else if(e){const n=this.element;this.nt=n;const i=mn(n,"i-amphtml-rendered")||Pn(f,e,Pi);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;m(f);const{useContexts:h}=t,d=this.tt;if(0!=h.length&&null==d)return;const v=hi(t,this.element,this.Z,this.W,this.vt);if(this.updatePropsForRendering(v),!this.isReady(v))return;let p=vt(t.Component,v);for(let t=0;t<h.length;t++){m(d);const n=h[t].type,i=d[t];i&&(p=vt(n.Provider,{value:i},p))}const y=vt(Un,C({},this.F),p);try{if(this.st)this.st=!1,$t(y,f);else{const t=e?mn(f,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),xt(y,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((()=>An(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,a.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 r),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){An(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 m(t),t[n]},set:t=>{const i=this.G;m(i),i[n]=t}})}};function Ri(t){for(let n=0;n<t.length;n++){const i=t[n];if(y(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 Si(t,n){if(null==t)return{};var i,e,r={},o=Object.keys(t);for(e=0;e<o.length;e++)i=o[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}Mi.staticProps=void 0,Mi.useContexts=[],Mi.loadable=!1,Mi.unloadOnPause=!1,Mi.layoutSizeDefined=!1,Mi.lightDomTag="",Mi.usesTemplate=!1,Mi.shadowCss=null,Mi.usesShadowDom=!1,Mi.detached=!1,Mi.delegatesFocus=!1,Mi.props={};var Ti,Ei=["ref"],Ii="undefined"!=typeof Symbol&&(null===(Ti=Symbol.for)||void 0===Ti?void 0:Ti.call(Symbol,"react.forward_ref"))||3911,Vi=U.__b;U.__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==Vi||Vi(t)};var Ci=function(t){function n(n){const{ref:i}=n,e=Si(n,Ei);return t(e,i)}return n.$$typeof=Ii,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},ji={toArray:function(t){return Mt(t)},map:function(t,n){return Mt(t).map(n)},count:function(t){return Mt(t).length}};function Oi(t){return(Oi="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"!==Oi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==Oi(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Oi(n)?n:String(n)}var xi=[null,"paint","layout","content","size","size paint","size layout","strict"],$i={"position":"relative","width":"100%","height":"100%"},Ni=Ci((function(t,n){let i="class",{as:e="div",children:r,contentAs:o="div",contentClassName:s,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 vt(e,C(C({},Si(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:C(C(C({},d),p),{},{contain:xi[m]})}),vt(o,C(C({},u),{},{ref:l,class:s,style:C(C({},h&&$i),{},{"overflow":f?"hidden":"visible"},c)}),r))})),Li=Ci((function(t,n){let i="class",{as:e="div",children:r,"style":o,wrapperClassName:s,wrapperStyle:u,[i]:l}=t;return vt(e,C(C({},Si(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(zi))),{},{ref:n,class:`${l||""} ${s||""}`.trim()||null,style:C(C({},o),u)}),r)}));function Ui(t){const n=Kt(null);return n.current=t,n}function Di(t,n){Xt(t,(()=>n),[n])}export{Rn as BaseElement,ji as Children,Ni as ContainWrapper,cn as Fragment,Mi as PreactBaseElement,ri as Slot,Un as WithAmpContext,Li as Wrapper,et as addGroup,Z as assignSlot,Nt as cloneElement,O as contextProp,Lt as createContext,vt as createElement,yt as createRef,ei as createSlot,Nn as defineBentoElement,X as discover,Ci as forwardRef,$t as hydrate,q as isValidElement,tt as rediscoverChildren,ot as removeGroupProp,it as removeProp,xt as render,rt as setGroupProp,Y as setIsRoot,K as setParent,nt as setProp,$ as subscribe,J as unassignSlot,N as unsubscribe,Dn as useAmpContext,tn as useCallback,nn as useContext,Di as useDOMHandle,Zt as useEffect,Xt as useImperativeHandle,Jt as useLayoutEffect,qn as useLoading,Yt as useMemo,Kt as useRef,oi as useSlotContext,Qt as useState,Ui 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,s=new Error(i);for(const n in t)s[n]=t[n];return s.stack=e,s}function s(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 r(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 r(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,s,r,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,s=!0){if(s){const s=n(t,i,e);s&&m(t,n,i,s,!1)}else if(t.children)for(const s of t.children)m(s,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,s=this.o||(this.o=new Map);let r=s.get(e);r||(r={values:[],setters:[]},s.set(e,r));const o=r.setters.indexOf(n),u=-1==o||r.values[o]!==i;-1==o?(r.setters.push(n),r.values.push(i)):u&&(r.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,s=null==e?void 0:e.get(i);if(s){p(e);const r=s.setters.indexOf(n);-1!=r&&(s.setters.splice(r,1),s.values.splice(r,1),0==s.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:s}=e;-1==(n||t).indexOf(s)&&(this.ping(e,!0),this.i.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(s)))})),n||t}p(){return!!this.i.root}v(t){const{deps:n,key:i}=t,e=this.u||(this.u=new Map);let s=e.get(i);return s||(s={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;s.pending=Math.max(s.pending,n),this.h()}},pingDep:n.length>0?n.map(((t,n)=>t=>{s.depValues[n]=t,s.ping()})):b,pingParent:w(t)?t=>{s.parentValue=t,s.ping()}:null},e.set(i,s),n.forEach(((t,n)=>this.subscribe(t,s.pingDep[n]))),s.ping(!1)),s}m(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:s,key:r}=e;null===(n=this.u)||void 0===n||n.delete(r),this._(t,null),s.length>0&&s.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:s}=i,r=this.u;if(e===n||t!==(null==r?void 0:r.get(s))||!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:s,prop:r}=t,{compute:o,defaultValue:u,key:l}=r,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}(r,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let s=e?t:t.parent;s;s=s.parent)if(n(s,i))return s;return null}(this.i,A,r,!1):null;this._(t,n)}const f=k(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(s.every(k)&&(!a||k(f))){const{node:t}=this.i;c&&!o?h=c[0]:w(r)?c||s.length>0?h=function(t,n,i,e,s){switch(s.length){case 0:return t(n,i,e);case 1:return t(n,i,e,s[0]);case 2:return t(n,i,e,s[0],s[1]);case 3:return t(n,i,e,s[0],s[1],s[2]);default:return t.apply(null,[n,i,e].concat(s))}}(o,t,c||b,f,s):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,s))}return h}_(t,n){const{parentContextNode:i,pingParent:e,prop:s}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,p(e),i&&i.values.unsubscribe(s,e),n&&(p(e),n.values.subscribe(s,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:s,node:r}=this,o=new M(r,t);return e.set(t,{cn:o,match:n,weight:i}),o.setParent(this),null==s||s.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:s,weight:r})=>{s(t,this.node)&&r>e&&(i=n,e=r)})),i}subscribe(t,n,i,e){const s=this.k||(this.k=new Map);let r=s.get(t);r||(r=new n(this,i,e),s.set(t,r))}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,s){var r;null===(r=M.get(t).group(n))||void 0===r||r.values.set(i,e,s)}function et(t,n,i,e){var s;null===(s=M.get(t).group(n))||void 0===s||s.values.remove(i,e)}var st,rt,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,s,r,o={};for(r in n)"key"==r?e=n[r]:"ref"==r?s=n[r]:o[r]=n[r];if(arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(r in t.defaultProps)void 0===o[r]&&(o[r]=t.defaultProps[r]);return dt(t,o,e,s,null)}function dt(t,n,i,e,s){var r={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==s?++L:s};return null==s&&null!=$.vnode&&$.vnode(r),r}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,s,r,o;t.__d&&(r=(s=(n=t).__v).__e,(o=n.__P)&&(i=[],(e=at({},s)).__v=s.__v+1,Et(o,s,e,n.__n,void 0!==o.ownerSVGElement,null!=s.__h?[r]:null,i,null==r?mt(s):r,s.__h),Vt(i,s),s.__e!=r&&bt(s)))}))}function Pt(t,n,i,e,s,r,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,s,r,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,s=t.__k,r=0;s&&r<s.length;r++)(e=s[r])&&(e.__=t,n="function"==typeof e.type?At(e,n,i):kt(i,e,e,s,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,s,r){var o,u,l;if(void 0!==n.__d)o=n.__d,n.__d=void 0;else if(null==i||s!=r||null==s.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(s),o=null;else{for(u=r,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==s)break t;t.insertBefore(s,r),o=r}return void 0!==o?o:s.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,s){var r;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])r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+r]=i,i?e||t.addEventListener(n,r?Tt:St,r):t.removeEventListener(n,r?Tt:St,r);else if("dangerouslySetInnerHTML"!==n){if(s)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,s,r,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,r=[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,s,r,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==r&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,s,r,o,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(s=!0),null!=r)for(;v<r.length;v++)if((l=r[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,r[v]=null;break}if(null==t){if(null===d)return document.createTextNode(h);t=s?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),r=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(r=r&&N.call(t.childNodes),c=(f=i.props||ut).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=r)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,s){var r;for(r in i)"children"===r||"key"===r||r in n||Rt(t,r,null,i[r],e);for(r in n)s&&"function"!=typeof n[r]||"children"===r||"key"===r||"value"===r||"checked"===r||i[r]===n[r]||Rt(t,r,n[r],i[r],e)}(t,h,f,s,u),a)n.__k=[];else if(v=n.props.children,Pt(t,Array.isArray(v)?v:[v],n,i,e,s&&"foreignObject"!==d,r,o,r?r[0]:i.__k&&mt(i,0),u),null!=r)for(v=r.length;v--;)null!=r[v]&&ft(r[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,s,r,o,l);(c=$.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=r)&&(n.__e=u,n.__h=!!l,r[r.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,s;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(s=0;s<e.length;s++)e[s]&&It(e[s],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,s,r;$.__&&$.__(t,n),s=(e="function"==typeof i)?null:i&&i.__k||n.__k,r=[],Et(n,t=(!e&&i||n).__k=ht(pt,null,[t]),s||ut,ut,void 0!==n.ownerSVGElement,!e&&i?[i]:s?null:n.firstChild?N.call(n.childNodes):null,r,!e&&i?i:s?s.__e:n.firstChild,e),Vt(r,t)}function zt(t,n){jt(t,n,zt)}function xt(t,n,i){var e,s,r,o=at({},t.props);for(r in n)"key"==r?e=n[r]:"ref"==r?s=n[r]:o[r]=n[r];return arguments.length>2&&(o.children=arguments.length>3?N.call(arguments,2):i),dt(t.type,o,e||t.key,s||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,s;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),s=i.__d),s)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(rt,t,$t||n),$t=0;var i=rt.__H||(rt.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function Ht(t){return $t=1,function(t,n,i){var e=Bt(st++,2);return e.t=t,e.__c||(e.__=[on(void 0,n),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=rt),e.__}(on,t)}function Gt(t,n){var i=Bt(st++,3);!$.__s&&rn(i.__H,n)&&(i.__=t,i.__H=n,rt.__H.__h.push(i))}function Qt(t,n){var i=Bt(st++,4);!$.__s&&rn(i.__H,n)&&(i.__=t,i.__H=n,rt.__h.push(i))}function Zt(t){return $t=5,Kt((function(){return{current:t}}),[])}function Jt(t,n,i){$t=6,Qt((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==i?i:i.concat(t))}function Kt(t,n){var i=Bt(st++,7);return rn(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function Xt(t,n){return $t=8,Kt((function(){return t}),n)}function Yt(t){var n=rt.context[t.__c],i=Bt(st++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub(rt)),n.props.value):t.__}function tn(){Lt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(en),t.__H.__h.forEach(sn),t.__H.__h=[]}catch(n){t.__H.__h=[],$.__e(n,t.__v)}})),Lt=[]}$.__b=function(t){rt=null,Dt&&Dt(t)},$.__r=function(t){Ut&&Ut(t),st=0;var n=(rt=t.__c).__H;n&&(n.__h.forEach(en),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),nn&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);nn&&(n=requestAnimationFrame(i))})(tn)),rt=null},$.__c=function(t,n){n.some((function(t){try{t.__h.forEach(en),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(en)}catch(t){$.__e(t,n.__v)}};var nn="function"==typeof requestAnimationFrame;function en(t){var n=rt;"function"==typeof t.__c&&t.__c(),rt=n}function sn(t){var n=rt;t.__c=t.__(),rt=n}function rn(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function on(t,n){return"function"==typeof n?n(t):n}function un(t){return t.children}var ln=["auto","lazy","eager","unload"],cn={auto:0,lazy:1,eager:2,unload:3};function an(t,n){const i=cn[null!=t?t:"auto"]||0,e=cn[null!=n?n:"auto"]||0,s=Math.max(i,e);return ln[s]}function fn(t){return(t.ownerDocument||t).defaultView}function hn(t){p(/^[\w-]+$/.test(t))}function dn(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function vn(t,n){return t.matches(n)}function pn(t,n){return hn(n),dn(t,`> [${n}]`)}function yn(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!mn(n)&&i.push(n);return i}(t)}function mn(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 bn={bubbles:!0,cancelable:!0};function _n(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function gn(t,n,i,e){const s=i||{};p(t.ownerDocument);const r=t.ownerDocument.createEvent("Event");r.data=s;const{bubbles:o,cancelable:u}=e||bn;r.initEvent(n,o,u),t.dispatchEvent(r)}function Pn(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function An(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,s;if(")"==n.charAt(n.length-1)){let t=1;for(s=n.length-2;s>=0;s--){const i=n.charAt(s);if("("==i?t--:")"==i&&t++,0==t)break}const i=s-1;if(s>0)for(s--;s>=0;s--){const t=n.charAt(s);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(s>=i)return null}else for(s=n.length-2;s>=0;s--){const t=n.charAt(s);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return s>=0?(i=n.substring(0,s+1).trim(),e=n.substring(s+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function wn(t,n,i){for(let e=0;e<t.length;e++){const{query:s}=t[e];s&&(void 0!==s.onchange?s.onchange=i?n:null:i?s.addListener(n):s.removeListener(n))}}var kn,Mn,Rn,Sn,Tn={"getPropertyPriority":()=>"","getPropertyValue":()=>""},En=/vertical/,Vn=new WeakMap,Cn=new WeakMap,In=new WeakMap;function On(t){let n=Vn.get(t);return n||(n=new t.ResizeObserver(jn),Vn.set(t,n)),n}function jn(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:s}=e;if(n.has(s))continue;n.add(s);const r=Cn.get(s);if(r){In.set(s,e);for(let t=0;t<r.length;t++){const{callback:n,type:i}=r[t];zn(i,n,e)}}}}function zn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:s}=t;u(n,{width:s,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=fn(t),s=En.test(function(t,n){return t.getComputedStyle(n)||Tn}(n,t).writingMode),{offsetHeight:r,offsetWidth:o}=t;let u,l;s?(l=o,u=r):(u=o,l=r),e={inlineSize:u,blockSize:l}}u(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)kn=AMP.BaseElement;else{class t{constructor(t){this.element=t,this.win=fn(t)}mutateElement(t){n().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}kn=t}function xn(t,n,i=self){i.customElements.define(t,function(t,n=self){return Mn&&Rn===n||(Mn=(Rn=n).HTMLElement),class extends Mn{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 Nn(){return Sn||(Sn=Nt({renderable:!0,playable:!0,loading:"auto"}))}function $n({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:s=!0}){const r=Ln(),o=s&&r.renderable,u=o&&e&&r.playable,l=an(o?"auto":"lazy",an(n,r.loading)),c=i||r.notify,a=Kt((()=>({renderable:o,playable:u,loading:l,notify:c})),[o,u,l,c]);return ht(Nn().Provider,{children:t,value:a})}function Ln(){return Yt(Nn())}function Dn(t){const{loading:n}=Ln();return an(t,n)}var Un=I("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Fn),compute:(t,n,i)=>i&&n.reduce(Fn,!0)||!1}),qn=I("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Fn),deps:[Un],compute:(t,n,i,e)=>e&&i&&n.reduce(Fn,!0)||!1}),Wn=I("Loading",{defaultValue:"auto",recursive:!0,deps:[Un],compute:(t,n,i,e)=>an(e?"auto":"lazy",an(i||"auto",n.reduce(an,"auto")))}),Fn=(t,n)=>t&&n,Bn=t=>t.ensureLoaded(),Hn=t=>t.pause(),Gn=t=>t.unmount();function Qn(t,n=!0){Kn(t,n,!1,Bn)}function Zn(t,n=!0){Kn(t,n,!0,Hn)}function Jn(t,n=!0){Kn(t,n,!0,Gn)}function Kn(t,n,i,e){const s=f(t);for(let t=0;t<s.length;t++)Xn(s[t],n,i,e)}function Xn(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&&Xn(t,!0,!1,e))}}const s=t.getElementsByClassName("i-amphtml-element");let r=null;for(let t=0;t<s.length;t++){const n=s[t];if(i)u(e,n);else{r=r||[];let t=!1;for(let i=0;i<r.length;i++)if(r[i].contains(n)){t=!0;break}t||(r.push(n),u(e,n))}}}var Yn={},ti=new WeakMap;function ni(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return ht(ii,V(V({},i||Yn),{},{name:n}));const s=ti.get(t);if(s&&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}(s.oldProps,i))return s.component;function r(t){return ht(ii,V(V({},i||Yn),{},{name:n},t))}return ti.set(t,{oldProps:i,component:r}),r}function ii(t){const n=Zt(null);return ei(n,t),Gt((()=>{t.postRender&&t.postRender()})),ht("slot",V(V({},t),{},{ref:n}))}function ei(t,n){const i=null==n?void 0:n.loading,e=Ln();Qt((()=>{const n=t.current;return p(v(n)),Y(n,Un,ii,e.renderable),Y(n,qn,ii,e.playable),Y(n,Wn,ii,e.loading),e.playable||si(n,Zn,!0),()=>{tt(n,Un,ii),tt(n,qn,ii),tt(n,Wn,ii),X(n)}}),[t,e]),Qt((()=>{const n=t.current;return p(v(n)),"lazy"!=i&&si(n,Qn,!0),()=>{si(n,Jn,!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 s=t.ownerDocument.defaultView;s&&(s.requestIdleCallback||s.setTimeout)((()=>n(e)))}var ri={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},oi=function(){let t=0;return()=>String(++t)}();function ui(t,n){return Object.values(t).some(n)}var li=t=>"string"==typeof t||!!t.selector,ci=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function ai(t,n,i,e,s){const{"layoutSizeDefined":r,"lightDomTag":o,"props":u}=t;s&&s.start();const l=V(V({},e),{},{ref:i});return o&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=o),r&&(t.usesShadowDom?l.style=ri:l.class="i-amphtml-fill-content"),fi(t,l,u,n,s),s&&s.complete(),l}function fi(t,n,i,e,s){if(ui(i,li)){const r=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!mn(n)&&i.push(n);return i}(t)}(e);for(let e=0;e<r.length;e++){const o=r[e],u=di(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(fi(t,v,d,o,s),a)n[f]=ni(o,o.getAttribute("slot")||`i-amphtml-${f}`,v,c);else{const t=n[f]||(n[f]=[]);p(!c),t.push(h?hi(o):ni(o,o.getAttribute("slot")||`i-amphtml-${f}-${oi()}`,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(ii,{loading:"lazy"})];else if(u.passthroughNonEmpty)p(t.usesShadowDom),l=yn(e).every(ci)?null:[ht(ii,{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(s),l=s.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==(r=l)?void 0:"false"!==r:l;n[o]=t}}var r}function hi(t){const n={"key":t},{attributes:i,localName:e}=t,{length:s}=i;for(let t=0;t<s;t++){const{name:e,value:s}=i[t];n[e]=s}return ht(e,n)}function di(t,n){for(const i in n){const e=n[i],s="string"==typeof e?e:e.selector;if(s&&vn(t,s))return i}return null}var vi={childList:!0},pi={childList:!0,characterData:!0},yi={childList:!0},mi={"style":"display: contents; background: inherit;","part":"c"},bi={"name":"i-amphtml-svc"},_i={"i-amphtml-rendered":""},gi=()=>!0,Pi=t=>!!t.media,Ai=t=>!(!t.passthrough&&!t.passthroughNonEmpty),wi=class extends kn{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.st=()=>{this.it=!1,this.rt()},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 s=Cn.get(t);if(s||(s=[],Cn.set(t,s),On(e).observe(t)),!s.some((t=>t.callback===i&&1===t.type))){s.push({type:1,callback:i});const n=In.get(t);n&&setTimeout((()=>zn(1,i,n)))}}(t,0,n)}(this.ct,this.dt)):function(t,n){!function(t,n,i){const e=Cn.get(t);if(e&&(function(t,n){const e=[];let s=0;for(let n=0;n<t.length;n++){const o=t[n];(r=o).callback===i&&1===r.type?e.push(o):(s<n&&(t[s]=o),s++)}var r;s<t.length&&(t.length=s)}(e),0==e.length)){Cn.delete(t),In.delete(t);const n=t.ownerDocument.defaultView;n&&On(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=ui(n,li)?vi:null,s=ui(n,Ai)?pi:null,r=t.usesTemplate?yi:null;this.observer.observe(this.element,V(V(V({attributes:!0},e),s),r)),this.vt=ui(n,Pi)?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,Pn,"1")}resolveListQuery(t){return this.At(t,An,"")}complete(){for(const t in this.Pt)t in this.gt||wn(this.Pt[t],this._t,!1);this.Pt=null}dispose(){for(const t in this.gt)wn(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),wn(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,[Un,qn,Wn],((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,s;const r=i[t],o=n.attributeName;if(p(o),o==r.attr||null!==(e=r.attrs)&&void 0!==e&&e.includes(o)||null!==(s=r.attrMatches)&&void 0!==s&&s.call(r,o))return!0}return!1}return"childList"==i&&(ki(n.addedNodes)||ki(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.wt())}wt(){this.it||(this.it=!0,this.mutateElement(this.st))}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"}))}rt(){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,hn("c"),dn(a,"> c"));if(e)this.ot=!0;else{var s,r,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,s=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==s.CSSStyleSheet.prototype.replaceSync){const e=s.__AMP_SHADOW_CSS||(s.__AMP_SHADOW_CSS={});let r=e[n];r||(r=new s.CSSStyleSheet,p(r.replaceSync),r.replaceSync(i),e[n]=r),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(r)}else{const s=e.createElement("style");s.setAttribute("data-name",n),s.textContent=i,t.appendChild(s)}}(i,this.element.tagName,n),e=_n(f,"c",mi),i.appendChild(e);const a=_n(f,"slot",bi);i.appendChild(a),null===(s=this.getPlaceholder)||void 0===s||null===(r=s.call(this))||void 0===r||r.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",gi,-1),it(this.element,"unslotted",Un,this,!1)}else if(e){const n=this.element;this.nt=n;const i=pn(n,"i-amphtml-rendered")||_n(f,e,_i);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=ai(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($n,V({},this.F),y);try{if(this.ot)this.ot=!1,zt(m,f);else{const t=e?pn(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((()=>gn(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){gn(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 ki(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 Mi(t,n){if(null==t)return{};var i,e,s={},r=Object.keys(t);for(e=0;e<r.length;e++)i=r[e],n.indexOf(i)>=0||(s[i]=t[i]);return s}wi.staticProps=void 0,wi.useContexts=[],wi.loadable=!1,wi.unloadOnPause=!1,wi.layoutSizeDefined=!1,wi.lightDomTag="",wi.usesTemplate=!1,wi.shadowCss=null,wi.usesShadowDom=!1,wi.detached=!1,wi.delegatesFocus=!1,wi.props={};var Ri,Si=["ref"],Ti="undefined"!=typeof Symbol&&(null===(Ri=Symbol.for)||void 0===Ri?void 0:Ri.call(Symbol,"react.forward_ref"))||3911,Ei=$.__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==Ei||Ei(t)};var Vi=function(t){function n(n){const{ref:i}=n,e=Mi(n,Si);return t(e,i)}return n.$$typeof=Ti,n.render=n,n.prototype.isReactComponent=!0,n.Mt=!0,n},Ci={toArray:function(t){return wt(t)},map:function(t,n){return wt(t).map(n)},count:function(t){return wt(t).length}};function Ii(t){return(Ii="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 Oi(t){var n=function(t,n){if("object"!==Ii(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==Ii(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ii(n)?n:String(n)}var ji=[null,"paint","layout","content","size","size paint","size layout","strict"],zi={"position":"relative","width":"100%","height":"100%"},xi=Vi((function(t,n){let i="class",{as:e="div",children:s,contentAs:r="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({},Mi(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(Oi))),{},{ref:n,class:`${y||""} ${v||""}`.trim()||null,style:V(V(V({},d),p),{},{contain:ji[m]})}),ht(r,V(V({},u),{},{ref:l,class:o,style:V(V({},h&&zi),{},{"overflow":f?"hidden":"visible"},c)}),s))})),Ni=Vi((function(t,n){let i="class",{as:e="div",children:s,"style":r,wrapperClassName:o,wrapperStyle:u,[i]:l}=t;return ht(e,V(V({},Mi(t,["as","children","style","wrapperClassName","wrapperStyle",i].map(Oi))),{},{ref:n,class:`${l||""} ${o||""}`.trim()||null,style:V(V({},r),u)}),s)}));function $i(t){const n=Zt(null);return n.current=t,n}function Li(t,n){Jt(t,(()=>n),[n])}export{kn as BaseElement,Ci as Children,xi as ContainWrapper,un as Fragment,wi as PreactBaseElement,ii as Slot,$n as WithAmpContext,Ni as Wrapper,nt as addGroup,G as assignSlot,xt as cloneElement,I as contextProp,Nt as createContext,ht as createElement,vt as createRef,ni as createSlot,xn as defineBentoElement,J as discover,Vi as forwardRef,zt as hydrate,D as isValidElement,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,Ln as useAmpContext,Xt as useCallback,Yt as useContext,Li as useDOMHandle,Gt as useEffect,Jt as useImperativeHandle,Qt as useLayoutEffect,Dn as useLoading,Kt as useMemo,Zt as useRef,ei as useSlotContext,Ht as useState,$i as useValueRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=bento.core.module.js.map
{
"name": "@bentoproject/core",
"version": "0.2203281422.0",
"version": "0.2204121632.0",
"description": "Core utilities for the Bentojs components",

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

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