!function(e){if(“object”==typeof exports&&“undefined”!=typeof module)module.exports=e();else if(“function”==typeof define&&define.amd)define([],e);else{var t;t=“undefined”!=typeof window?window:“undefined”!=typeof global?global:“undefined”!=typeof self?self:this,t.morphdom=e()}}(function(){function e(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function t(e){!u&&document.createRange&&(u=document.createRange(),u.selectNode(document.body));var t;return u&&u.createContextualFragment?t=u.createContextualFragment(e):(t=document.createElement(“body”),t.innerHTML=e),t.childNodes}function n(){}function r(e,t){var n,r,o,i,d=t.attributes,a={};for(n=d.length-1;n>=0;n–)r=d,r.specified!==!1&&(o=r.name,i=r.value,a=!0,e.getAttribute(o)!==i&&e.setAttribute(o,i));for(d=e.attributes,n=d.length-1;n>=0;n–)r=d,r.specified!==!1&&(o=r.name,a.hasOwnProperty(o)||e.removeAttribute(o))}function o(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}function i(e){return e.id}function d(d,a,l){function u(e,t){var n=m(e);if(n?p=e:t||g(e),1===e.nodeType)for(var r=e.firstChild;r;)u(r,t||n),r=r.nextSibling}function f(e){if(1===e.nodeType)for(var t=e.firstChild;t;)m(t)||(g(t),f(t)),t=t.nextSibling}function c(e,t,n){N(e)!==!1&&(t.removeChild(e),n?m(e)||(g(e),f(e)):u(e))}function h(e,t,n,o){var i=m(t);if(i&&delete p,!o){if(y(e,t)===!1)return;if(r(e,t),b(e,t)===!1)return}if(“TEXTAREA”!=e.tagName){var d,a,l,u,f,g=t.firstChild,N=e.firstChild;e:for(;g;){for(l=g.nextSibling,d=m(g);N;){var C=m(N);if(a=N.nextSibling,!n&&C&&(f=v))f.parentNode.replaceChild(N,f),h(N,f,n),N=a;else{var A=N.nodeType;if(A===g.nodeType){var S=!1;if(1===A?(N.tagName===g.tagName&&(C||d?d===C&&(S=!0):S=!0),S&&h(N,g,n)):3===A&&(S=!0,N.nodeValue=g.nodeValue),S){g=l,N=a;continue e}}c(N,e,n),N=a}}d&&((u=p)?(h(u,g,!0),g=u):v=g),e.appendChild(g),1===g.nodeType&&(d||g.firstChild)&&T.push(g),g=l,N=a}for(;N;)a=N.nextSibling,c(N,e,n),N=a}var x=s;x&&x(e,t)}l||(l={}),“string”==typeof a&&(a=t(a));var p={},v={},m=l.getNodeKey||i,g=l.onNodeDiscarded||n,y=l.onBeforeMorphEl||n,b=l.onBeforeMorphElChildren||n,N=l.onBeforeNodeDiscarded||n,C=l.childrenOnly===!0,T=[],A=d,S=A.nodeType,x=a.nodeType;if(!C)if(1===S)1===x?d.tagName!==a.tagName&&(g(d),A=o(d,document.createElement(a.tagName))):A=a;else if(3===S){if(3===x)return A.nodeValue=a.nodeValue,A;A=a}if(A===a)g(d);else{h(A,a,!1,C);var E=function(t){for(var n=t.firstChild;n;){var r=n.nextSibling,o=m(n);if(o){var i=p;if(i&&n.tagName===i.tagName){if(n.parentNode.replaceChild(i,n),h(i,n,!0),n=r,e(p))return!1;continue}}1===n.nodeType&&E(n),n=r}};if(!e(p))e:for(;T.length;){var w=T;T=[];for(var k=0;ko.id
“’]”))?a.push(i.parentNode.replaceChild(o,i)):a.push(void 0);return a},t=function(e){return e.querySelectorAll(“[data-turbolinks-permanent]”)},e=function(){var e;return null!=(e=document.body.querySelector(“”))?e.focus():void 0}}.call(this);