!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.picodom={})}(this,function(e){"use strict";function t(e,t){var n,r=[];for(u=arguments.length;u-- >2;)d.push(arguments[u]);for(;d.length;)if(Array.isArray(n=d.pop()))for(u=n.length;u--;)d.push(n[u]);else null!=n&&!0!==n&&!1!==n&&("number"==typeof n&&(n+=""),r.push(n));return"string"==typeof e?{tag:e,data:t||{},children:r}:e(t,r)}function n(e,t,a,l,u,d){if(null==a)t=e.insertBefore(o(l,u),t);else if(null!=l.tag&&l.tag===a.tag){i(t,a.data,l.data),u=u||"svg"===l.tag;for(var c=l.children.length,s=a.children.length,h={},v=[],p={},g=0;g