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

react-meta-tags

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-meta-tags - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

4

dist/react-meta-tags.min.js
/*!
* react-meta-tags - 0.4.2
* react-meta-tags - 0.5.0
* Author : Sudhanshu Yadav
* Copyright (c) 2016,2018 to Sudhanshu Yadav - ignitersworld.com , released under the MIT license.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.MetaTags=e(require("react"),require("react-dom")):t.MetaTags=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ReactTitle=e.MetaTagsContext=e.MetaTags=void 0;var o=n(2),u=r(o),i=n(94),c=r(i),f=n(111),a=r(f);e.default=c.default,e.MetaTags=c.default,e.MetaTagsContext=u.default,e.ReactTitle=a.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),u=r(o),i=n(29),c=r(i),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),y=n(89),h=r(y),m=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"getChildContext",value:function(){return{extract:this.props.extract}}},{key:"render",value:function(){return v.Children.only(this.props.children)}}]),e}(v.Component);m.childContextTypes={extract:h.default.func},e.default=m},function(t,e,n){t.exports={default:n(4),__esModule:!0}},function(t,e,n){n(5),t.exports=n(16).Object.getPrototypeOf},function(t,e,n){var r=n(6),o=n(8);n(14)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),o=n(6),u=n(10)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(11)("keys"),o=n(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(12),o="__core-js_shared__",u=r[o]||(r[o]={});t.exports=function(t){return u[t]||(u[t]={})}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(15),o=n(16),u=n(25);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*u(function(){n(1)}),"Object",i)}},function(t,e,n){var r=n(12),o=n(16),u=n(17),i=n(19),c=n(9),f="prototype",a=function(t,e,n){var s,l,p,d=t&a.F,v=t&a.G,y=t&a.S,h=t&a.P,m=t&a.B,_=t&a.W,g=v?o:o[e]||(o[e]={}),b=g[f],x=v?r:y?r[e]:(r[e]||{})[f];v&&(n=e);for(s in n)l=!d&&x&&void 0!==x[s],l&&c(g,s)||(p=l?x[s]:n[s],g[s]=v&&"function"!=typeof x[s]?n[s]:m&&l?u(p,r):_&&x[s]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[f]=t[f],e}(p):h&&"function"==typeof p?u(Function.call,p):p,h&&((g.virtual||(g.virtual={}))[s]=p,t&a.R&&b&&!b[s]&&i(b,s,p)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(20),o=n(28);t.exports=n(24)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(21),o=n(23),u=n(27),i=Object.defineProperty;e.f=n(24)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(24)&&!n(25)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(22),o=n(12).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(31),u=r(o);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,u.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(32),__esModule:!0}},function(t,e,n){n(33);var r=n(16).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(15);r(r.S+r.F*!n(24),"Object",{defineProperty:n(20).f})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(35),u=r(o);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,u.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(36),u=r(o),i=n(65),c=r(i),f="function"==typeof c.default&&"symbol"==typeof u.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===f(u.default)?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,e,n){t.exports={default:n(37),__esModule:!0}},function(t,e,n){n(38),n(60),t.exports=n(64).f("iterator")},function(t,e,n){"use strict";var r=n(39)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(40),o=n(7);t.exports=function(t){return function(e,n){var u,i,c=String(o(e)),f=r(n),a=c.length;return f<0||f>=a?t?"":void 0:(u=c.charCodeAt(f),u<55296||u>56319||f+1===a||(i=c.charCodeAt(f+1))<56320||i>57343?t?c.charAt(f):u:t?c.slice(f,f+2):(u-55296<<10)+(i-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";var r=n(42),o=n(15),u=n(43),i=n(19),c=n(44),f=n(45),a=n(58),s=n(8),l=n(59)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",h=function(){return this};t.exports=function(t,e,n,m,_,g,b){f(n,e,m);var x,O,S,M=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",j=_==y,T=!1,P=t.prototype,C=P[l]||P[d]||_&&P[_],E=C||M(_),k=_?j?M("entries"):E:void 0,A="Array"==e?P.entries||C:C;if(A&&(S=s(A.call(new t)),S!==Object.prototype&&S.next&&(a(S,w,!0),r||"function"==typeof S[l]||i(S,l,h))),j&&C&&C.name!==y&&(T=!0,E=function(){return C.call(this)}),r&&!b||!p&&!T&&P[l]||i(P,l,E),c[e]=E,c[w]=h,_)if(x={values:j?E:M(y),keys:g?E:M(v),entries:k},b)for(O in x)O in P||u(P,O,x[O]);else o(o.P+o.F*(p||T),e,x);return x}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(19)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(46),o=n(28),u=n(58),i={};n(19)(i,n(59)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),u(t,e+" Iterator")}},function(t,e,n){var r=n(21),o=n(47),u=n(56),i=n(10)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,e=n(26)("iframe"),r=u.length,o="<",i=">";for(e.style.display="none",n(57).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+i+"document.F=Object"+o+"/script"+i),t.close(),a=t.F;r--;)delete a[f][u[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[f]=r(t),n=new c,c[f]=null,n[i]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(20),o=n(21),u=n(48);t.exports=n(24)?Object.defineProperties:function(t,e){o(t);for(var n,i=u(e),c=i.length,f=0;c>f;)r.f(t,n=i[f++],e[n]);return t}},function(t,e,n){var r=n(49),o=n(56);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(9),o=n(50),u=n(53)(!1),i=n(10)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e,n){var r=n(51),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(52);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(50),o=n(54),u=n(55);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(40),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(40),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(12).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(20).f,o=n(9),u=n(59)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,u)&&r(t,u,{configurable:!0,value:e})}},function(t,e,n){var r=n(11)("wks"),o=n(13),u=n(12).Symbol,i="function"==typeof u,c=t.exports=function(t){return r[t]||(r[t]=i&&u[t]||(i?u:o)("Symbol."+t))};c.store=r},function(t,e,n){n(61);for(var r=n(12),o=n(19),u=n(44),i=n(59)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[i]&&o(l,i,a),u[a]=u.Array}},function(t,e,n){"use strict";var r=n(62),o=n(63),u=n(44),i=n(50);t.exports=n(41)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),u.Arguments=u.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(59)},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){n(67),n(77),n(78),n(79),t.exports=n(16).Symbol},function(t,e,n){"use strict";var r=n(12),o=n(9),u=n(24),i=n(15),c=n(43),f=n(68).KEY,a=n(25),s=n(11),l=n(58),p=n(13),d=n(59),v=n(64),y=n(69),h=n(70),m=n(73),_=n(21),g=n(22),b=n(50),x=n(27),O=n(28),S=n(46),M=n(74),w=n(76),j=n(20),T=n(48),P=w.f,C=j.f,E=M.f,k=r.Symbol,A=r.JSON,L=A&&A.stringify,R="prototype",D=d("_hidden"),F=d("toPrimitive"),N={}.propertyIsEnumerable,I=s("symbol-registry"),q=s("symbols"),G=s("op-symbols"),H=Object[R],V="function"==typeof k,W=r.QObject,U=!W||!W[R]||!W[R].findChild,B=u&&a(function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(H,e);r&&delete H[e],C(t,e,n),r&&t!==H&&C(H,e,r)}:C,J=function(t){var e=q[t]=S(k[R]);return e._k=t,e},K=V&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},Y=function(t,e,n){return t===H&&Y(G,e,n),_(t),e=x(e,!0),_(n),o(q,e)?(n.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,D)||C(t,D,O(1,{})),t[D][e]=!0),B(t,e,n)):C(t,e,n)},z=function(t,e){_(t);for(var n,r=h(e=b(e)),o=0,u=r.length;u>o;)Y(t,n=r[o++],e[n]);return t},Q=function(t,e){return void 0===e?S(t):z(S(t),e)},X=function(t){var e=N.call(this,t=x(t,!0));return!(this===H&&o(q,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=b(t),e=x(e,!0),t!==H||!o(q,e)||o(G,e)){var n=P(t,e);return!n||!o(q,e)||o(t,D)&&t[D][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=E(b(t)),r=[],u=0;n.length>u;)o(q,e=n[u++])||e==D||e==f||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=E(n?G:b(t)),u=[],i=0;r.length>i;)!o(q,e=r[i++])||n&&!o(H,e)||u.push(q[e]);return u};V||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(G,n),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),B(this,t,O(1,n))};return u&&U&&B(H,t,{configurable:!0,set:e}),J(t)},c(k[R],"toString",function(){return this._k}),w.f=Z,j.f=Y,n(75).f=M.f=$,n(72).f=X,n(71).f=tt,u&&!n(42)&&c(H,"propertyIsEnumerable",X,!0),v.f=function(t){return J(d(t))}),i(i.G+i.W+i.F*!V,{Symbol:k});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=T(d.store),ot=0;rt.length>ot;)y(rt[ot++]);i(i.S+i.F*!V,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!V,"Object",{create:Q,defineProperty:Y,defineProperties:z,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),A&&i(i.S+i.F*(!V||a(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,L.apply(A,r)}}),k[R][F]||n(19)(k[R],F,k[R].valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(13)("meta"),o=n(22),u=n(9),i=n(20).f,c=0,f=Object.isExtensible||function(){return!0},a=!n(25)(function(){return f(Object.preventExtensions({}))}),s=function(t){i(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,r)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!u(t,r)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return a&&v.NEED&&f(t)&&!u(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(12),o=n(16),u=n(42),i=n(64),c=n(20).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=u?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(48),o=n(71),u=n(72);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,c=n(t),f=u.f,a=0;c.length>a;)f.call(t,i=c[a++])&&e.push(i);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(52);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(50),o=n(75).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==u.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(49),o=n(56).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(72),o=n(28),u=n(50),i=n(27),c=n(9),f=n(23),a=Object.getOwnPropertyDescriptor;e.f=n(24)?a:function(t,e){if(t=u(t),e=i(e,!0),f)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(69)("asyncIterator")},function(t,e,n){n(69)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(81),u=r(o),i=n(85),c=r(i),f=n(35),a=r(f);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,a.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(u.default?(0,u.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83),t.exports=n(16).Object.setPrototypeOf},function(t,e,n){var r=n(15);r(r.S,"Object",{setPrototypeOf:n(84).set})},function(t,e,n){var r=n(22),o=n(21),u=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(17)(Function.call,n(76).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return u(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:u}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){n(87);var r=n(16).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(15);r(r.S,"Object",{create:n(46)})},function(e,n){e.exports=t},function(t,e,n){t.exports=n(90)()},function(t,e,n){"use strict";var r=n(91),o=n(92),u=n(93);t.exports=function(){function t(t,e,n,r,i,c){c!==u&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r,u,i,c,f){if(o(e),!t){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,u,i,c,f],l=0;a=new Error(e.replace(/%s/g,function(){return s[l++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var o=function(t){};t.exports=r},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),u=r(o),i=n(29),c=r(i),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),y=r(v),h=n(89),m=r(h),_=n(95),g=r(_),b=n(96),x=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"extractChildren",value:function(){var t=this.context.extract;if(t)return void t(this.props.children)}},{key:"handleChildrens",value:function(){var t=this,e=this.props.children;if(!this.context.extract){var n=y.default.createElement("div",{className:"react-head-temp"},e),r=document.createElement("div");g.default.render(n,r,function(){var e=r.innerHTML;if(t.lastChildStr!==e){t.lastChildStr=e;var n=Array.prototype.slice.call(r.querySelector(".react-head-temp").children),o=document.head,u=o.innerHTML;n=n.filter(function(t){return u.indexOf((0,b.getDomAsString)(t))===-1}),n.forEach(function(t){var e=t.tagName.toLowerCase();if("title"===e){var n=(0,b.getDuplicateTitle)();n&&(0,b.removeChild)(o,n)}else if("meta"===e){var r=(0,b.getDuplicateMeta)(t);r&&(0,b.removeChild)(o,r)}else if("link"===e&&"canonical"===t.rel){var u=(0,b.getDuplicateCanonical)(t);u&&(0,b.removeChild)(o,u)}}),(0,b.appendChild)(document.head,n)}})}}},{key:"componentDidMount",value:function(){this.handleChildrens()}},{key:"componentDidUpdate",value:function(t){t.children!==this.props.children&&this.handleChildrens()}},{key:"render",value:function(){return this.extractChildren(),null}}]),e}(v.Component);x.contextTypes={extract:m.default.func},e.default=x},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e={};if(!t)return e;for(var n=x.exec(t);null!==n;)e[n[1]]=n[3]||n[4]||n[5],n=x.exec(t);return e}function u(t){return t=(0,m.default)(t||[]),t.filter(function(t){return!t.id})}function i(t){var e=void 0,n=void 0,r=[];return t=t.replace(b,function(t){return e=t,""}),t=t.replace(g,function(t){return n=t,""}),t=t.replace(_,function(t){return r.push((0,y.default)({},o(t),{_tagString:t})),""}),{title:e,metas:r,canonicalLink:n,rest:t}}function c(t){for(var e={},n={},r={},o=[],u=t.length-1;u>=0;u--){var i=t[u],c=i.id,f=i.property,a=i.name,s=!1;if(c)s=!r[c];else if(f||a){var l=e[f]||n[a];s=!l||l.id}c&&(r[c]=i),f&&(e[f]=i),a&&(n[a]=i),s&&o.unshift(i)}return o}function f(){return document.head.querySelectorAll("title")}function a(){return document.head.querySelectorAll('link[rel="canonical"]')}function s(t){var e=document.head,n=t.id,r=t.name,o=t.getAttribute("property");return n?n&&e.querySelector("#"+n):r?u(e.querySelectorAll('[name = "'+r+'"]')):o?u(e.querySelectorAll('[property = "'+o+'"]')):null}function l(t,e){void 0===e.length&&(e=[e]);for(var n=document.createDocumentFragment(),r=0,o=e.length;r<o;r++)n.appendChild(e[r]);t.appendChild(n)}function p(t,e){void 0===e.length&&(e=[e]);for(var n=0,r=e.length;n<r;n++)t.removeChild(e[n])}function d(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}Object.defineProperty(e,"__esModule",{value:!0});var v=n(97),y=r(v),h=n(102),m=r(h);e.extractMetaAndTitle=i,e.removeDuplicateMetas=c,e.getDuplicateTitle=f,e.getDuplicateCanonical=a,e.getDuplicateMeta=s,e.appendChild=l,e.removeChild=p,e.getDomAsString=d;var _=/<meta[^<>]*?=(['"].*?['"]|[^<>]*?)*?\/?>/g,g=/<link[^<>]*?rel=['"]canonical['"].*?(\/>|<\/link>)/g,b=/<title[^<>]*?>(.*?)<\/title>/g,x=/(\S*?)=("(.*?)"|'(.*?)'|([^<>\s]*))/g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(98),u=r(o);e.default=u.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(99),__esModule:!0}},function(t,e,n){n(100),t.exports=n(16).Object.assign},function(t,e,n){var r=n(15);r(r.S+r.F,"Object",{assign:n(101)})},function(t,e,n){"use strict";var r=n(48),o=n(71),u=n(72),i=n(6),c=n(51),f=Object.assign;t.exports=!f||n(25)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=i(t),f=arguments.length,a=1,s=o.f,l=u.f;f>a;)for(var p,d=c(arguments[a++]),v=s?r(d).concat(s(d)):r(d),y=v.length,h=0;y>h;)l.call(d,p=v[h++])&&(n[p]=d[p]);return n}:f},function(t,e,n){t.exports={default:n(103),__esModule:!0}},function(t,e,n){n(38),n(104),t.exports=n(16).Array.from},function(t,e,n){"use strict";var r=n(17),o=n(15),u=n(6),i=n(105),c=n(106),f=n(54),a=n(107),s=n(108);o(o.S+o.F*!n(110)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=u(t),d="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,h=void 0!==y,m=0,_=s(p);if(h&&(y=r(y,v>2?arguments[2]:void 0,2)),void 0==_||d==Array&&c(_))for(e=f(p.length),n=new d(e);e>m;m++)a(n,m,h?y(p[m],m):p[m]);else for(l=_.call(p),n=new d;!(o=l.next()).done;m++)a(n,m,h?i(l,y,[o.value,m],!0):o.value);return n.length=m,n}})},function(t,e,n){var r=n(21);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var u=t.return;throw void 0!==u&&r(u.call(t)),e}}},function(t,e,n){var r=n(44),o=n(59)("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||u[o]===t)}},function(t,e,n){"use strict";var r=n(20),o=n(28);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(109),o=n(59)("iterator"),u=n(44);t.exports=n(16).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||u[r(t)]}},function(t,e,n){var r=n(52),o=n(59)("toStringTag"),u="Arguments"==r(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),o))?n:u?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(59)("iterator"),o=!1;try{var u=[7][r]();u.return=function(){o=!0},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var u=[7],i=u[r]();i.next=function(){return{done:n=!0}},u[r]=function(){return i},t(u)}catch(t){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),u=r(o),i=n(29),c=r(i),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),y=r(v),h=n(89),m=r(h),_=n(94),g=r(_),b=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"render",value:function(){return y.default.createElement(g.default,null,y.default.createElement("title",null,this.props.title))}}]),e}(v.Component);b.propTypes={title:m.default.string},e.default=b}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.MetaTags=e(require("react"),require("react-dom")):t.MetaTags=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ReactTitle=e.MetaTagsContext=e.MetaTags=void 0;var o=n(2),i=r(o),u=n(94),c=r(u),f=n(102),a=r(f);e.default=c.default,e.MetaTags=c.default,e.MetaTagsContext=i.default,e.ReactTitle=a.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),u=n(29),c=r(u),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),h=n(89),y=r(h),m=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,i.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"getChildContext",value:function(){return{extract:this.props.extract}}},{key:"render",value:function(){return v.Children.only(this.props.children)}}]),e}(v.Component);m.childContextTypes={extract:y.default.func},e.default=m},function(t,e,n){t.exports={default:n(4),__esModule:!0}},function(t,e,n){n(5),t.exports=n(16).Object.getPrototypeOf},function(t,e,n){var r=n(6),o=n(8);n(14)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(9),o=n(6),i=n(10)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(11)("keys"),o=n(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(12),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(15),o=n(16),i=n(25);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(12),o=n(16),i=n(17),u=n(19),c=n(9),f="prototype",a=function(t,e,n){var s,l,p,d=t&a.F,v=t&a.G,h=t&a.S,y=t&a.P,m=t&a.B,_=t&a.W,b=v?o:o[e]||(o[e]={}),g=b[f],x=v?r:h?r[e]:(r[e]||{})[f];v&&(n=e);for(s in n)l=!d&&x&&void 0!==x[s],l&&c(b,s)||(p=l?x[s]:n[s],b[s]=v&&"function"!=typeof x[s]?n[s]:m&&l?i(p,r):_&&x[s]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[f]=t[f],e}(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((b.virtual||(b.virtual={}))[s]=p,t&a.R&&g&&!g[s]&&u(g,s,p)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(20),o=n(28);t.exports=n(24)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(21),o=n(23),i=n(27),u=Object.defineProperty;e.f=n(24)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(24)&&!n(25)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(22),o=n(12).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(31),i=r(o);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(32),__esModule:!0}},function(t,e,n){n(33);var r=n(16).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(15);r(r.S+r.F*!n(24),"Object",{defineProperty:n(20).f})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(35),i=r(o);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(36),i=r(o),u=n(65),c=r(u),f="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===f(i.default)?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,e,n){t.exports={default:n(37),__esModule:!0}},function(t,e,n){n(38),n(60),t.exports=n(64).f("iterator")},function(t,e,n){"use strict";var r=n(39)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(40),o=n(7);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),f=r(n),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";var r=n(42),o=n(15),i=n(43),u=n(19),c=n(44),f=n(45),a=n(58),s=n(8),l=n(59)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,e,n,m,_,b,g){f(n,e,m);var x,O,S,M=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",w=_==h,T=!1,P=t.prototype,E=P[l]||P[d]||_&&P[_],C=E||M(_),k=_?w?M("entries"):C:void 0,L="Array"==e?P.entries||E:E;if(L&&(S=s(L.call(new t)),S!==Object.prototype&&S.next&&(a(S,j,!0),r||"function"==typeof S[l]||u(S,l,y))),w&&E&&E.name!==h&&(T=!0,C=function(){return E.call(this)}),r&&!g||!p&&!T&&P[l]||u(P,l,C),c[e]=C,c[j]=y,_)if(x={values:w?C:M(h),keys:b?C:M(v),entries:k},g)for(O in x)O in P||i(P,O,x[O]);else o(o.P+o.F*(p||T),e,x);return x}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(19)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(46),o=n(28),i=n(58),u={};n(19)(u,n(59)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(21),o=n(47),i=n(56),u=n(10)("IE_PROTO"),c=function(){},f="prototype",a=function(){var t,e=n(26)("iframe"),r=i.length,o="<",u=">";for(e.style.display="none",n(57).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[f][i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[f]=r(t),n=new c,c[f]=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(20),o=n(21),i=n(48);t.exports=n(24)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,f=0;c>f;)r.f(t,n=u[f++],e[n]);return t}},function(t,e,n){var r=n(49),o=n(56);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(9),o=n(50),i=n(53)(!1),u=n(10)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(51),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(52);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(50),o=n(54),i=n(55);t.exports=function(t){return function(e,n,u){var c,f=r(e),a=o(f.length),s=i(u,a);if(t&&n!=n){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(40),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(40),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(12).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(20).f,o=n(9),i=n(59)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(11)("wks"),o=n(13),i=n(12).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,e,n){n(61);for(var r=n(12),o=n(19),i=n(44),u=n(59)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,e,n){"use strict";var r=n(62),o=n(63),i=n(44),u=n(50);t.exports=n(41)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(59)},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){n(67),n(77),n(78),n(79),t.exports=n(16).Symbol},function(t,e,n){"use strict";var r=n(12),o=n(9),i=n(24),u=n(15),c=n(43),f=n(68).KEY,a=n(25),s=n(11),l=n(58),p=n(13),d=n(59),v=n(64),h=n(69),y=n(70),m=n(73),_=n(21),b=n(22),g=n(50),x=n(27),O=n(28),S=n(46),M=n(74),j=n(76),w=n(20),T=n(48),P=j.f,E=w.f,C=M.f,k=r.Symbol,L=r.JSON,A=L&&L.stringify,R="prototype",D=d("_hidden"),F=d("toPrimitive"),N={}.propertyIsEnumerable,I=s("symbol-registry"),q=s("symbols"),G=s("op-symbols"),H=Object[R],V="function"==typeof k,W=r.QObject,B=!W||!W[R]||!W[R].findChild,J=i&&a(function(){return 7!=S(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(H,e);r&&delete H[e],E(t,e,n),r&&t!==H&&E(H,e,r)}:E,U=function(t){var e=q[t]=S(k[R]);return e._k=t,e},K=V&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},Y=function(t,e,n){return t===H&&Y(G,e,n),_(t),e=x(e,!0),_(n),o(q,e)?(n.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:O(0,!1)})):(o(t,D)||E(t,D,O(1,{})),t[D][e]=!0),J(t,e,n)):E(t,e,n)},z=function(t,e){_(t);for(var n,r=y(e=g(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},Q=function(t,e){return void 0===e?S(t):z(S(t),e)},X=function(t){var e=N.call(this,t=x(t,!0));return!(this===H&&o(q,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,D)&&this[D][t])||e)},Z=function(t,e){if(t=g(t),e=x(e,!0),t!==H||!o(q,e)||o(G,e)){var n=P(t,e);return!n||!o(q,e)||o(t,D)&&t[D][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=C(g(t)),r=[],i=0;n.length>i;)o(q,e=n[i++])||e==D||e==f||r.push(e);return r},tt=function(t){for(var e,n=t===H,r=C(n?G:g(t)),i=[],u=0;r.length>u;)!o(q,e=r[u++])||n&&!o(H,e)||i.push(q[e]);return i};V||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(G,n),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),J(this,t,O(1,n))};return i&&B&&J(H,t,{configurable:!0,set:e}),U(t)},c(k[R],"toString",function(){return this._k}),j.f=Z,w.f=Y,n(75).f=M.f=$,n(72).f=X,n(71).f=tt,i&&!n(42)&&c(H,"propertyIsEnumerable",X,!0),v.f=function(t){return U(d(t))}),u(u.G+u.W+u.F*!V,{Symbol:k});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=T(d.store),ot=0;rt.length>ot;)h(rt[ot++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!V,"Object",{create:Q,defineProperty:Y,defineProperties:z,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),L&&u(u.S+u.F*(!V||a(function(){var t=k();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,A.apply(L,r)}}),k[R][F]||n(19)(k[R],F,k[R].valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(13)("meta"),o=n(22),i=n(9),u=n(20).f,c=0,f=Object.isExtensible||function(){return!0},a=!n(25)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return a&&v.NEED&&f(t)&&!i(t,r)&&s(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(12),o=n(16),i=n(42),u=n(64),c=n(20).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){var r=n(48),o=n(71),i=n(72);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&e.push(u);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(52);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(50),o=n(75).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(49),o=n(56).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(72),o=n(28),i=n(50),u=n(27),c=n(9),f=n(23),a=Object.getOwnPropertyDescriptor;e.f=n(24)?a:function(t,e){if(t=i(t),e=u(e,!0),f)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(69)("asyncIterator")},function(t,e,n){n(69)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(81),i=r(o),u=n(85),c=r(u),f=n(35),a=r(f);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,a.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83),t.exports=n(16).Object.setPrototypeOf},function(t,e,n){var r=n(15);r(r.S,"Object",{setPrototypeOf:n(84).set})},function(t,e,n){var r=n(22),o=n(21),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(17)(Function.call,n(76).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){n(87);var r=n(16).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(15);r(r.S,"Object",{create:n(46)})},function(e,n){e.exports=t},function(t,e,n){t.exports=n(90)()},function(t,e,n){"use strict";var r=n(91),o=n(92),i=n(93);t.exports=function(){function t(t,e,n,r,u,c){c!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r,i,u,c,f){if(o(e),!t){var a;if(void 0===e)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,i,u,c,f],l=0;a=new Error(e.replace(/%s/g,function(){return s[l++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var o=function(t){};t.exports=r},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),u=n(29),c=r(u),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),h=r(v),y=n(89),m=r(y),_=n(95),b=r(_),g=n(96),x=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,i.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"extractChildren",value:function(){var t=this.context.extract;if(t)return void t(this.props.children)}},{key:"handleChildrens",value:function(){var t=this,e=this.props.children;if(!this.context.extract){var n=h.default.createElement("div",{className:"react-head-temp"},e),r=document.createElement("div");b.default.render(n,r,function(){var e=r.innerHTML;if(t.lastChildStr!==e){t.lastChildStr=e;var n=Array.prototype.slice.call(r.querySelector(".react-head-temp").children),o=document.head,i=o.innerHTML;n=n.filter(function(t){return i.indexOf((0,g.getDomAsString)(t))===-1}),n.forEach(function(t){var e=t.tagName.toLowerCase();if("title"===e){var n=(0,g.getDuplicateTitle)();n&&(0,g.removeChild)(o,n)}else if("meta"===e){var r=(0,g.getDuplicateMeta)(t);r&&(0,g.removeChild)(o,r)}else if("link"===e&&"canonical"===t.rel){var i=(0,g.getDuplicateCanonical)(t);i&&(0,g.removeChild)(o,i)}}),(0,g.appendChild)(document.head,n)}})}}},{key:"componentDidMount",value:function(){this.handleChildrens()}},{key:"componentDidUpdate",value:function(t){t.children!==this.props.children&&this.handleChildrens()}},{key:"render",value:function(){return this.extractChildren(),null}}]),e}(v.Component);x.contextTypes={extract:m.default.func},e.default=x},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e={};if(!t)return e;for(var n=b.exec(t);null!==n;)e[n[1].toLowerCase()]=n[3]||n[4]||n[5],n=b.exec(t);return e}function i(t){return t=Array.prototype.slice.call(t||[]),t.filter(function(t){return!t.id})}function u(t){var e=void 0,n=void 0,r=[];return t=t.replace(_,function(t){return e=t,""}),t=t.replace(m,function(t){return n=t,""}),t=t.replace(y,function(t){return r.push((0,h.default)({},o(t),{_tagString:t})),""}),{title:e,metas:r,canonicalLink:n,rest:t}}function c(t){var e={};x.forEach(function(t){e[t]=[]});for(var n=[],r=function(r){var o=t[r],i=o.id,u=!1;u=i?!e.id[i]:0===g.filter(function(t){var n=e[t][o[t]];return n&&!n.id}).length,u&&(n.unshift(o),x.forEach(function(t){var n=o[t];n&&(e[t][n]=o)}))},o=t.length-1;o>=0;o--)r(o);return console.log(e),n}function f(){return document.head.querySelectorAll("title")}function a(){return document.head.querySelectorAll('link[rel="canonical"]')}function s(t){var e=document.head,n=t.id;return n?n&&e.querySelector("#"+n):g.reduce(function(n,r){var o=t.getAttribute(r);return o?n.concat(i(e.querySelectorAll("["+r+' = "'+o+'"]'))):n},[])}function l(t,e){void 0===e.length&&(e=[e]);for(var n=document.createDocumentFragment(),r=0,o=e.length;r<o;r++)n.appendChild(e[r]);t.appendChild(n)}function p(t,e){void 0===e.length&&(e=[e]);for(var n=0,r=e.length;n<r;n++)t.removeChild(e[n])}function d(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}Object.defineProperty(e,"__esModule",{value:!0});var v=n(97),h=r(v);e.extractMetaAndTitle=u,e.removeDuplicateMetas=c,e.getDuplicateTitle=f,e.getDuplicateCanonical=a,e.getDuplicateMeta=s,e.appendChild=l,e.removeChild=p,e.getDomAsString=d;var y=/<meta[^<>]*?=(['"].*?['"]|[^<>]*?)*?\/?>/g,m=/<link[^<>]*?rel=['"]canonical['"].*?(\/>|<\/link>)/g,_=/<title[^<>]*?>(.*?)<\/title>/g,b=/(\S*?)=("(.*?)"|'(.*?)'|([^<>\s]*))/g,g=["property","name","itemprop"],x=g.concat(["id"])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(98),i=r(o);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(99),__esModule:!0}},function(t,e,n){n(100),t.exports=n(16).Object.assign},function(t,e,n){var r=n(15);r(r.S+r.F,"Object",{assign:n(101)})},function(t,e,n){"use strict";var r=n(48),o=n(71),i=n(72),u=n(6),c=n(51),f=Object.assign;t.exports=!f||n(25)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=u(t),f=arguments.length,a=1,s=o.f,l=i.f;f>a;)for(var p,d=c(arguments[a++]),v=s?r(d).concat(s(d)):r(d),h=v.length,y=0;h>y;)l.call(d,p=v[y++])&&(n[p]=d[p]);return n}:f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=r(o),u=n(29),c=r(u),f=n(30),a=r(f),s=n(34),l=r(s),p=n(80),d=r(p),v=n(88),h=r(v),y=n(89),m=r(y),_=n(94),b=r(_),g=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||(0,i.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,a.default)(e,[{key:"render",value:function(){return h.default.createElement(b.default,null,h.default.createElement("title",null,this.props.title))}}]),e}(v.Component);g.propTypes={title:m.default.string},e.default=g}])});

@@ -14,2 +14,3 @@ import React from 'react';

<meta property="og:title" content="MyApp" />
<meta itemProp="test" content="Index page" />
</MetaTags>

@@ -16,0 +17,0 @@ <header className="header">

import React from 'react';
import MetaTags from '../../../src/index';
function PageDummy() {
return (
<MetaTags>
<title>React Meta Tags | Page Dummy</title>
<meta name="description" content="Dummy description" />
</MetaTags>
)
}
class Page1 extends React.Component {

@@ -22,2 +13,3 @@ render() {

<meta property="og:title" content="MyApp-Page1" />
<meta itemProp="test" content="Page1" />
</MetaTags>

@@ -24,0 +16,0 @@ <div>

@@ -13,2 +13,3 @@ import React from 'react';

<meta property="og:title" content="MyApp-page2" />
<meta itemProp="test" content="Page2" />
</MetaTags>

@@ -15,0 +16,0 @@ <div>

@@ -11,6 +11,2 @@ 'use strict';

var _from = require('babel-runtime/core-js/array/from');
var _from2 = _interopRequireDefault(_from);
exports.extractMetaAndTitle = extractMetaAndTitle;

@@ -31,2 +27,4 @@ exports.removeDuplicateMetas = removeDuplicateMetas;

var attributesRegex = /(\S*?)=("(.*?)"|'(.*?)'|([^<>\s]*))/g;
var uniqueIdentifiers = ['property', 'name', 'itemprop'];
var uniqueIdentifiersAll = uniqueIdentifiers.concat(['id']);

@@ -45,3 +43,3 @@ /**

while (match !== null) {
attr[match[1]] = match[3] || match[4] || match[5];
attr[match[1].toLowerCase()] = match[3] || match[4] || match[5];
match = attributesRegex.exec(tagString);

@@ -54,3 +52,3 @@ }

function filterOutMetaWithId(metas) {
metas = (0, _from2.default)(metas || []);
metas = Array.prototype.slice.call(metas || []);
return metas.filter(function (meta) {

@@ -93,35 +91,47 @@ return !meta.id;

function removeDuplicateMetas(metas) {
var metaAddedProperties = {};
var metaAddedNames = {};
var metaAddedIds = {};
var addedMeta = {};
//initialize all the identifiers with empty array
uniqueIdentifiersAll.forEach(function (identifier) {
addedMeta[identifier] = [];
});
var filteredMetas = [];
for (var i = metas.length - 1; i >= 0; i--) {
var _loop = function _loop(i) {
var meta = metas[i];
var id = meta.id,
property = meta.property,
name = meta.name;
var id = meta.id;
var addMeta = false;
//if id is defined dont check any thing else
//if has id and element with id is not present than always add meta
if (id) {
addMeta = !metaAddedIds[id];
addMeta = !addedMeta.id[id];
// if property key or name key is defined and its different add that,
// But they should have different id
} else if (property || name) {
var existing = metaAddedProperties[property] || metaAddedNames[name];
addMeta = !existing || existing.id; //if existing have id and the current doesn't then keep it
//for any other unique identifier check if meta already available with same identifier which doesn't have id
} else {
addMeta = uniqueIdentifiers.filter(function (identifier) {
var existing = addedMeta[identifier][meta[identifier]];
return existing && !existing.id;
}).length === 0;
}
if (id) metaAddedIds[id] = meta;
if (property) metaAddedProperties[property] = meta;
if (name) metaAddedNames[name] = meta;
if (addMeta) {
filteredMetas.unshift(meta);
//add meta as added
uniqueIdentifiersAll.forEach(function (identifier) {
var identifierValue = meta[identifier];
if (identifierValue) addedMeta[identifier][identifierValue] = meta;
});
}
};
for (var i = metas.length - 1; i >= 0; i--) {
_loop(i);
}
console.log(addedMeta);
return filteredMetas;

@@ -140,16 +150,15 @@ }

var head = document.head;
var id = meta.id,
name = meta.name;
var id = meta.id;
var property = meta.getAttribute('property');
//if has id and element with id is not present than return the element
if (id) {
return id && head.querySelector('#' + id);
} else if (name) {
return filterOutMetaWithId(head.querySelectorAll('[name = "' + name + '"]'));
} else if (property) {
return filterOutMetaWithId(head.querySelectorAll('[property = "' + property + '"]'));
}
return null;
//for any other unique identifier check if metas already available with same identifier which doesn't have id
return uniqueIdentifiers.reduce(function (duplicates, identifier) {
var identifierValue = meta.getAttribute(identifier);
return identifierValue ? duplicates.concat(filterOutMetaWithId(head.querySelectorAll('[' + identifier + ' = "' + identifierValue + '"]'))) : duplicates;
}, []);
}

@@ -156,0 +165,0 @@

{
"name": "react-meta-tags",
"description": "Handle document meta/head tags in isomorphic react with ease.",
"version": "0.4.2",
"version": "0.5.0",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "author": "Sudhanshu Yadav",

@@ -23,3 +23,3 @@ # react-meta-tags

return (
<div class="wrapper">
<div className="wrapper">
<MetaTags>

@@ -31,3 +31,3 @@ <title>Page 1</title>

</MetaTags>
<div class="content"> Some Content </div>
<div className="content"> Some Content </div>
</div>

@@ -50,5 +50,5 @@ )

return (
<div class="wrapper">
<div className="wrapper">
<ReactTitle title="Page 2"/>
<div class="content"> Some Content </div>
<div className="content"> Some Content </div>
</div>

@@ -130,4 +130,4 @@ )

## Meta Tag Uniqueness
- The module uniquely identifies meta tag by id / property / name attribute.
- The module uniquely identifies meta tag by id / property / name / itemProp attribute.
- Multiple meta tags with same property / name is valid in html. If you need such case. Define a different id to both so that it can be uniquely differentiate.
- You should give an id if meta key is different then property/name to uniquely identify them.
- You should give an id if meta key is different then property/name/itemProp to uniquely identify them.

@@ -5,2 +5,4 @@ const metaRegex = /<meta[^<>]*?=(['"].*?['"]|[^<>]*?)*?\/?>/g;

const attributesRegex = /(\S*?)=("(.*?)"|'(.*?)'|([^<>\s]*))/g;
const uniqueIdentifiers = ['property', 'name', 'itemprop'];
const uniqueIdentifiersAll = uniqueIdentifiers.concat(['id']);

@@ -19,3 +21,3 @@ /**

while (match !== null) {
attr[match[1]] = match[3] || match[4] || match[5];
attr[match[1].toLowerCase()] = match[3] || match[4] || match[5];
match = attributesRegex.exec(tagString);

@@ -28,3 +30,3 @@ }

function filterOutMetaWithId(metas) {
metas = Array.from(metas || []);
metas = Array.prototype.slice.call(metas || []);
return metas.filter(meta => !meta.id);

@@ -66,5 +68,8 @@ }

export function removeDuplicateMetas(metas) {
const metaAddedProperties = {};
const metaAddedNames = {};
const metaAddedIds = {};
const addedMeta = {};
//initialize all the identifiers with empty array
uniqueIdentifiersAll.forEach((identifier) => {
addedMeta[identifier] = [];
});

@@ -74,26 +79,31 @@ const filteredMetas = [];

const meta = metas[i];
const {id, property, name} = meta;
const { id } = meta;
let addMeta = false;
//if id is defined dont check any thing else
//if has id and element with id is not present than always add meta
if (id) {
addMeta = !metaAddedIds[id];
addMeta = !addedMeta.id[id];
// if property key or name key is defined and its different add that,
// But they should have different id
} else if (property || name) {
const existing = metaAddedProperties[property] || metaAddedNames[name];
addMeta = !existing || existing.id; //if existing have id and the current doesn't then keep it
//for any other unique identifier check if meta already available with same identifier which doesn't have id
} else {
addMeta = uniqueIdentifiers.filter((identifier) => {
const existing = addedMeta[identifier][meta[identifier]];
return existing && !existing.id;
}).length === 0;
}
if (id) metaAddedIds[id] = meta;
if (property) metaAddedProperties[property] = meta;
if (name) metaAddedNames[name] = meta;
if (addMeta) {
filteredMetas.unshift(meta);
//add meta as added
uniqueIdentifiersAll.forEach((identifier) => {
const identifierValue = meta[identifier];
if (identifierValue) addedMeta[identifier][identifierValue] = meta;
});
}
}
console.log(addedMeta);
return filteredMetas;

@@ -112,14 +122,16 @@ }

const head = document.head;
const {id, name} = meta;
const property = meta.getAttribute('property');
const { id } = meta;
//if has id and element with id is not present than return the element
if (id) {
return id && head.querySelector(`#${id}`);
} else if (name) {
return filterOutMetaWithId(head.querySelectorAll(`[name = "${name}"]`));
} else if (property) {
return filterOutMetaWithId(head.querySelectorAll(`[property = "${property}"]`));
}
}
return null;
//for any other unique identifier check if metas already available with same identifier which doesn't have id
return uniqueIdentifiers.reduce((duplicates, identifier) => {
const identifierValue = meta.getAttribute(identifier);
return (identifierValue ?
duplicates.concat(filterOutMetaWithId(head.querySelectorAll(`[${identifier} = "${identifierValue}"]`))) :
duplicates);
}, []);
}

@@ -126,0 +138,0 @@

Sorry, the diff of this file is not supported yet

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

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