X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Fstatic%2Fpacks%2Fflavours%2Fvanilla%2Fembed.js;h=d715c4ce01e8e17215dac7de10467185c1f47be0;hb=2a850abbeb70f988e5e78bcd2c6bec42b1b6282c;hp=38a7e4873b03abe49dc1184d94d7e5f71e4ccf90;hpb=aad057a2d6baaa342f47f55d330f0731277dac06;p=akkoma diff --git a/priv/static/packs/flavours/vanilla/embed.js b/priv/static/packs/flavours/vanilla/embed.js index 38a7e4873..d715c4ce0 100644 --- a/priv/static/packs/flavours/vanilla/embed.js +++ b/priv/static/packs/flavours/vanilla/embed.js @@ -1,40 +1,3 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[94,0,92,97,98],[function(e,t,n){"use strict";var a;function r(e,t,n,r){a||(a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});if(1===i)t.children=r;else if(i>1){for(var f=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(i.a.__addLocaleData(e),f.a.__addLocaleData(e))})}function v(e){var t=e&&e.toLowerCase();return!(!i.a.__localeData__[t]||!f.a.__localeData__[t])}var k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F=(function(){function e(e){this.value=e}function t(t){var n,a;function r(n,a){try{var i=t[n](a),l=i.value;l instanceof e?Promise.resolve(l.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(i.done?"return":"normal",i.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):a=null}this._invoke=function(e,t){return new Promise(function(o,i){var l={key:e,arg:t,resolve:o,reject:i,next:null};a?a=a.next=l:(n=a=l,r(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),x=function(){function e(e,t){for(var n=0;n":">","<":"<",'"':""","'":"'"},Z=/[&><"']/g;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,a){return e.hasOwnProperty(a)?t[a]=e[a]:n.hasOwnProperty(a)&&(t[a]=n[a]),t},{})}function ee(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;h()(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function te(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":k(e))||null===e||"object"!==(void 0===t?"undefined":k(t))||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},f=i.intl,s=void 0===f?{}:f,c=l.intl,u=void 0===c?{}:c;return!te(t,a)||!te(n,r)||!(u===s||te(J(u,X),J(s,X)))}function ae(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function re(e){0}function oe(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.intlPropName,r=void 0===a?"intl":a,o=n.withRef,i=void 0!==o&&o,l=function(t){function n(e,t){F(this,n);var a=C(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return ee(t),a}return S(n,t),x(n,[{key:"getWrappedInstance",value:function(){return h()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return d.a.createElement(e,T({},this.props,E({},r,this.context.intl),{ref:i?function(e){return t._wrappedInstance=e}:null}))}}]),n}(u.Component);return l.displayName="InjectIntl("+((t=e).displayName||t.name||"Component")+")",l.contextTypes={intl:$},l.WrappedComponent=e,m()(l,e)}function ie(e){return e}function le(e){return i.a.prototype._resolveLocale(e)}function fe(e){return i.a.prototype._findPluralRuleFunction(e)}var se=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(this,e);var a="ordinal"===n.style,r=fe(le(t));this.format=function(e){return r(e,a)}},ce=Object.keys(V),ue=Object.keys(Q),de=Object.keys(K),pe=Object.keys(Y),me={second:60,minute:60,hour:24,day:30,month:12};function ge(e){var t=f.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function he(e,t,n,a){var r=e&&e[t]&&e[t][n];if(r)return r;a(ae("No "+t+" format named: "+n))}function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=e.formats,i=e.messages,l=e.defaultLocale,f=e.defaultFormats,s=n.id,c=n.defaultMessage;h()(s,"[React Intl] An `id` must be provided to format a message.");var u=i&&i[s];if(!(Object.keys(a).length>0))return u||c||s;var d=void 0,p=e.onError||re;if(u)try{d=t.getMessageFormat(u,r,o).format(a)}catch(e){p(ae('Error formatting message: "'+s+'" for locale: "'+r+'"'+(c?", using default message as fallback.":""),e))}else(!c||r&&r.toLowerCase()!==l.toLowerCase())&&p(ae('Missing message: "'+s+'" for locale: "'+r+'"'+(c?", using default message as fallback.":"")));if(!d&&c)try{d=t.getMessageFormat(c,l,f).format(a)}catch(e){p(ae('Error formatting the default message for: "'+s+'"',e))}return d||p(ae('Cannot format message: "'+s+'", using message '+(u||c?"source":"id")+" as fallback.")),d||u||c||s}var ye=Object.freeze({formatDate:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=e.formats,i=e.timeZone,l=a.format,f=e.onError||re,s=new Date(n),c=T({},i&&{timeZone:i},l&&he(o,"date",l,f)),u=J(a,ce,c);try{return t.getDateTimeFormat(r,u).format(s)}catch(e){f(ae("Error formatting date.",e))}return String(s)},formatTime:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=e.formats,i=e.timeZone,l=a.format,f=e.onError||re,s=new Date(n),c=T({},i&&{timeZone:i},l&&he(o,"time",l,f)),u=J(a,ce,c);u.hour||u.minute||u.second||(u=T({},u,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(r,u).format(s)}catch(e){f(ae("Error formatting time.",e))}return String(s)},formatRelative:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=e.formats,i=a.format,l=e.onError||re,s=new Date(n),c=new Date(a.now),u=i&&he(o,"relative",i,l),d=J(a,de,u),p=T({},f.a.thresholds);ge(me);try{return t.getRelativeFormat(r,d).format(s,{now:isFinite(c)?c:t.now()})}catch(e){l(ae("Error formatting relative time.",e))}finally{ge(p)}return String(s)},formatNumber:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=e.formats,i=a.format,l=e.onError||re,f=i&&he(o,"number",i,l),s=J(a,ue,f);try{return t.getNumberFormat(r,s).format(n)}catch(e){l(ae("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.locale,o=J(a,pe),i=e.onError||re;try{return t.getPluralFormat(r,o).format(n)}catch(e){i(ae("Error formatting plural.",e))}return"other"},formatMessage:be,formatHTMLMessage:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return be(e,t,n,Object.keys(a).reduce(function(e,t){var n=a[t];return e[t]="string"==typeof n?(""+n).replace(Z,function(e){return G[e]}):n,e},{}))}}),_e=Object.keys(W),we=Object.keys(H),ve={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:re},ke=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(this,t);var a=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));h()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var r=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):r?r.now():Date.now();var l=(r||{}).formatters,s=void 0===l?{getDateTimeFormat:y()(Intl.DateTimeFormat),getNumberFormat:y()(Intl.NumberFormat),getMessageFormat:y()(i.a),getRelativeFormat:y()(f.a),getPluralFormat:y()(se)}:l;return a.state=T({},s,{now:function(){return a._didDisplay?Date.now():o}}),a}return S(t,e),x(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=J(this.props,_e,e);for(var n in ve)void 0===t[n]&&(t[n]=ve[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(v(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var a=t,r=a.locale,o=a.defaultLocale,i=a.defaultFormats;(0,a.onError)(ae('Missing locale data for locale: "'+r+'". Using default locale: "'+o+'" as fallback.')),t=T({},t,{locale:o,formats:i,messages:ve.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return we.reduce(function(n,a){return n[a]=ye[a].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,a=n.now,r=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(n,["now"]);return{intl:T({},e,t,{formatters:r,now:a})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?r-1:0),i=1;i0){var y=Math.floor(1099511627776*Math.random()).toString(16),_=(e=0,function(){return"ELEMENT-"+y+"-"+(e+=1)});g="@__"+y+"__@",h={},b={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(u.isValidElement)(t)){var n=_();h[e]=g+n+g,b[n]=t}else h[e]=t})}var w=a({id:l,description:f,defaultMessage:s},h||c),v=void 0;return v=b&&Object.keys(b).length>0?w.split(g).filter(function(e){return!!e}).map(function(e){return b[e]||e}):[w],"function"==typeof m?m.apply(void 0,j(v)):u.createElement.apply(void 0,[p,null].concat(j(v)))}}]),t}(u.Component);qe.displayName="FormattedMessage",qe.contextTypes={intl:$},qe.defaultProps={values:{}};var Ne=function(e){function t(e,n){F(this,t);var a=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),a}return S(t,e),x(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!te(n,t))return!0;for(var a=T({},e,{values:t}),r=arguments.length,o=Array(r>1?r-1:0),i=1;i1)for(var n=1;n=p))return!1;var r=e.slice(u,p);if(r in t){var o=a.a?t[r].url:t[r].static_url;return m=''+r+'',!0}return!1})()||(p=++u);else if(d>=0){if(!(p=e.indexOf(">;"[d],u+1)+1))return"break";0===d&&(s?"/"===e[u+1]?--s||(i=n):"/"!==e[p-2]&&s++:e.startsWith('