-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreact.8ab2422822c47580185f.js
1 lines (1 loc) · 8.77 KB
/
preact.8ab2422822c47580185f.js
1
"use strict";(self.webpackChunk_ada_support_embed2=self.webpackChunk_ada_support_embed2||[]).push([[168],{6400:function(e,n,t){t.d(n,{HY:function(){return v},Vf:function(){return h},h:function(){return a},sY:function(){return M},wA:function(){return y}});var _,l,o,r,u,i={},s=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function a(e,n,t){var _,l=arguments,o={};for(_ in n)"key"!==_&&"ref"!==_&&(o[_]=n[_]);if(arguments.length>3)for(t=[t],_=3;_<arguments.length;_++)t.push(l[_]);if(null!=t&&(o.children=t),"function"==typeof e&&null!=e.defaultProps)for(_ in e.defaultProps)void 0===o[_]&&(o[_]=e.defaultProps[_]);return d(e,o,n&&n.key,n&&n.ref,null)}function d(e,n,t,l,o){var r={type:e,props:n,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o};return null==o&&(r.__v=r),_.vnode&&_.vnode(r),r}function h(){return{current:null}}function v(e){return e.children}function y(e,n){this.props=e,this.context=n}function m(e,n){if(null==n)return e.__?m(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?m(e):null}function k(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return k(e)}}function g(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!b.__r++||r!==_.debounceRendering)&&((r=_.debounceRendering)||o)(b)}function b(){for(var e;b.__r=l.length;)e=l.sort((function(e,n){return e.__v.__b-n.__v.__b})),l=[],e.some((function(e){var n,t,_,l,o,r,u;e.__d&&(r=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(_=p({},o)).__v=_,l=D(u,o,_,n.__n,void 0!==u.ownerSVGElement,null,t,null==r?m(o):r),A(t,o),l!=r&&k(o)))}))}function w(e,n,t,_,l,o,r,u,c,p){var a,h,y,k,g,b,w,x=_&&_.__k||s,C=x.length;for(c==i&&(c=null!=r?r[0]:C?m(_,0):null),t.__k=[],a=0;a<n.length;a++)if(null!=(k=t.__k[a]=null==(k=n[a])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k?d(null,k,null,null,k):Array.isArray(k)?d(v,{children:k},null,null,null):null!=k.__e||null!=k.__c?d(k.type,k.props,k.key,null,k.__v):k)){if(k.__=t,k.__b=t.__b+1,null===(y=x[a])||y&&k.key==y.key&&k.type===y.type)x[a]=void 0;else for(h=0;h<C;h++){if((y=x[h])&&k.key==y.key&&k.type===y.type){x[h]=void 0;break}y=null}g=D(e,k,y=y||i,l,o,r,u,c,p),(h=k.ref)&&y.ref!=h&&(w||(w=[]),y.ref&&w.push(y.ref,null,k),w.push(h,k.__c||g,k)),null!=g?(null==b&&(b=g),c=S(e,k,y,x,r,g,c),"option"==t.type?e.value="":"function"==typeof t.type&&(t.__d=c)):c&&y.__e==c&&c.parentNode!=e&&(c=m(y))}if(t.__e=b,null!=r&&"function"!=typeof t.type)for(a=r.length;a--;)null!=r[a]&&f(r[a]);for(a=C;a--;)null!=x[a]&&T(x[a],x[a]);if(w)for(a=0;a<w.length;a++)U(w[a],w[++a],w[++a])}function S(e,n,t,_,l,o,r){var u,i,s;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(l==t||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),u=null;else{for(i=r,s=0;(i=i.nextSibling)&&s<_.length;s+=2)if(i==o)break e;e.insertBefore(o,r),u=r}return void 0!==u?u:o.nextSibling}function x(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]="number"==typeof t&&!1===c.test(n)?t+"px":null==t?"":t}function C(e,n,t,_,l){var o,r,u,i,s;if(l?"className"===n&&(n="class"):"class"===n&&(n="className"),"style"===n)if(o=e.style,"string"==typeof t)o.cssText=t;else{if("string"==typeof _&&(o.cssText="",_=null),_)for(i in _)t&&i in t||x(o,i,"");if(t)for(s in t)_&&t[s]===_[s]||x(o,s,t[s])}else"o"===n[0]&&"n"===n[1]?(r=n!==(n=n.replace(/Capture$/,"")),u=n.toLowerCase(),n=(u in e?u:n).slice(2),t?(_||e.addEventListener(n,P,r),(e.l||(e.l={}))[n]=t):e.removeEventListener(n,P,r)):"list"!==n&&"tagName"!==n&&"form"!==n&&"type"!==n&&"size"!==n&&!l&&n in e?e[n]=null==t?"":t:"function"!=typeof t&&"dangerouslySetInnerHTML"!==n&&(n!==(n=n.replace(/^xlink:?/,""))?null==t||!1===t?e.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),t):null==t||!1===t&&!/^ar/.test(n)?e.removeAttribute(n):e.setAttribute(n,t))}function P(e){this.l[e.type](_.event?_.event(e):e)}function N(e,n,t){var _,l;for(_=0;_<e.__k.length;_++)(l=e.__k[_])&&(l.__=e,l.__e&&("function"==typeof l.type&&l.__k.length>1&&N(l,n,t),n=S(t,l,l,e.__k,null,l.__e,n),"function"==typeof e.type&&(e.__d=n)))}function D(e,n,t,l,o,r,u,i,s){var c,f,a,d,h,m,k,g,b,S,x,C=n.type;if(void 0!==n.constructor)return null;(c=_.__b)&&c(n);try{e:if("function"==typeof C){if(g=n.props,b=(c=C.contextType)&&l[c.__c],S=c?b?b.props.value:c.__:l,t.__c?k=(f=n.__c=t.__c).__=f.__E:("prototype"in C&&C.prototype.render?n.__c=f=new C(g,S):(n.__c=f=new y(g,S),f.constructor=C,f.render=L),b&&b.sub(f),f.props=g,f.state||(f.state={}),f.context=S,f.__n=l,a=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(g,f.__s))),d=f.props,h=f.state,a)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,S)||n.__v===t.__v){f.props=g,f.state=f.__s,n.__v!==t.__v&&(f.__d=!1),f.__v=n,n.__e=t.__e,n.__k=t.__k,f.__h.length&&u.push(f),N(n,i,e);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(d,h,m)}))}f.context=S,f.props=g,f.state=f.__s,(c=_.__r)&&c(n),f.__d=!1,f.__v=n,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(l=p(p({},l),f.getChildContext())),a||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(d,h)),x=null!=c&&c.type==v&&null==c.key?c.props.children:c,w(e,Array.isArray(x)?x:[x],n,t,l,o,r,u,i,s),f.base=n.__e,f.__h.length&&u.push(f),k&&(f.__E=f.__=null),f.__e=!1}else null==r&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=E(t.__e,n,t,l,o,r,u,s);(c=_.diffed)&&c(n)}catch(e){n.__v=null,_.__e(e,n,t)}return n.__e}function A(e,n){_.__c&&_.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){_.__e(e,n.__v)}}))}function E(e,n,t,_,l,o,r,u){var c,p,f,a,d,h=t.props,v=n.props;if(l="svg"===n.type||l,null!=o)for(c=0;c<o.length;c++)if(null!=(p=o[c])&&((null===n.type?3===p.nodeType:p.localName===n.type)||e==p)){e=p,o[c]=null;break}if(null==e){if(null===n.type)return document.createTextNode(v);e=l?document.createElementNS("http://www.w3.org/2000/svg",n.type):document.createElement(n.type,v.is&&{is:v.is}),o=null,u=!1}if(null===n.type)h!==v&&e.data!=v&&(e.data=v);else{if(null!=o&&(o=s.slice.call(e.childNodes)),f=(h=t.props||i).dangerouslySetInnerHTML,a=v.dangerouslySetInnerHTML,!u){if(null!=o)for(h={},d=0;d<e.attributes.length;d++)h[e.attributes[d].name]=e.attributes[d].value;(a||f)&&(a&&f&&a.__html==f.__html||(e.innerHTML=a&&a.__html||""))}(function(e,n,t,_,l){var o;for(o in t)"children"===o||"key"===o||o in n||C(e,o,null,t[o],_);for(o in n)l&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||C(e,o,n[o],t[o],_)})(e,v,h,l,u),a?n.__k=[]:(c=n.props.children,w(e,Array.isArray(c)?c:[c],n,t,_,"foreignObject"!==n.type&&l,o,r,i,u)),u||("value"in v&&void 0!==(c=v.value)&&c!==e.value&&C(e,"value",c,h.value,!1),"checked"in v&&void 0!==(c=v.checked)&&c!==e.checked&&C(e,"checked",c,h.checked,!1))}return e}function U(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){_.__e(e,t)}}function T(e,n,t){var l,o,r;if(_.unmount&&_.unmount(e),(l=e.ref)&&(l.current&&l.current!==e.__e||U(l,null,n)),t||"function"==typeof e.type||(t=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(l=e.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){_.__e(e,n)}l.base=l.__P=null}if(l=e.__k)for(r=0;r<l.length;r++)l[r]&&T(l[r],n,t);null!=o&&f(o)}function L(e,n,t){return this.constructor(e,t)}function M(e,n,t){var l,o,r;_.__&&_.__(e,n),o=(l=t===u)?null:t&&t.__k||n.__k,e=a(v,null,[e]),r=[],D(n,(l?n:t||n).__k=e,o||i,i,void 0!==n.ownerSVGElement,t&&!l?[t]:o?null:n.childNodes.length?s.slice.call(n.childNodes):null,r,t||i,l),A(r,e)}_={__e:function(e,n){for(var t,_;n=n.__;)if((t=n.__c)&&!t.__)try{if(t.constructor&&null!=t.constructor.getDerivedStateFromError&&(_=!0,t.setState(t.constructor.getDerivedStateFromError(e))),null!=t.componentDidCatch&&(_=!0,t.componentDidCatch(e)),_)return g(t.__E=t)}catch(n){e=n}throw e}},y.prototype.setState=function(e,n){var t;t=this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(t,this.props)),e&&p(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),g(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},y.prototype.render=v,l=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b.__r=0,u=i}}]);