From 548e5ee7ea98403c8e28020316e207fa886778ea Mon Sep 17 00:00:00 2001 From: Tsutomu Kuroda Date: Tue, 16 Aug 2016 12:36:32 +0900 Subject: [PATCH] Update dist/*.js [ci skip] --- dist/cape.js | 4 ++-- dist/cape.min.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/cape.js b/dist/cape.js index d04e30f..342dc40 100644 --- a/dist/cape.js +++ b/dist/cape.js @@ -1318,8 +1318,8 @@ _extends(Router.prototype, { if (window.addEventListener) window.addEventListener('hashchange', self._.eventListener, false);else if (window.attachEvent) window.attachEvent('onhashchange', self._.eventListener); - this.currentHash = window.location.href.split('#')[1] || ''; - this.navigate(this.currentHash); + this._.currentHash = window.location.href.split('#')[1] || ''; + this.navigate(this._.currentHash); }, stop: function () { var self = this; diff --git a/dist/cape.min.js b/dist/cape.min.js index fd6908b..7481c7f 100644 --- a/dist/cape.min.js +++ b/dist/cape.min.js @@ -1,3 +1,3 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Cape=t()}}(function(){return function t(e,n,i){function r(o,a){if(!n[o]){if(!e[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var h=n[o]={exports:{}};e[o][0].call(h.exports,function(t){var n=e[o][1][t];return r(n?n:t)},h,h.exports,t,e,n,i)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o=0;r--)if("csrf-token"===i[r].getAttribute("name")){this.headers["X-CSRF-Token"]=i[r].getAttribute("content");break}}e.exports=i},{}],3:[function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e=200&&t.status<300)return t;var e=new Error(t.statusText);throw e.response=t,e}e.exports=i},{}],10:[function(t,e,n){"use strict";var i={attach:function(t){for(var e=0,n=this._.components.length;n>e;e++)if(this._.components[e]===t)return;this._.components.push(t)},detach:function(t){for(var e=0,n=this._.components.length;n>e;e++)if(this._.components[e]===t){this._.components.splice(e,1);break}},propagate:function(){for(var t=this._.components.length;t--;)this._.components[t].refresh()}};e.exports=i},{}],11:[function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;ee;e++)if(i=this.routes[e],t.match(i.regexp))return i;throw new Error("No route match. ["+t+"]")},navigateTo:function(t,e,n){var i,r,s,o,a=this;if(void 0!==e&&(t=this._.constructHash(e,t)),this._.currentHash=t,this._.setHash(t),n=n||{},this.flash.notice=n.notice,this.flash.alert=n.alert,this._.beforeNavigationCallbacks.length){for(i=[],r=new Promise(function(e,n){e(t)}),i.push(r),s=0,o=this._.beforeNavigationCallbacks.length;o>s;s++)r=r.then(this._.beforeNavigationCallbacks[s]),i.push(r);Promise.all(i).then(function(t){a._.mountComponent(t.pop())},a._.errorHandler)}else a._.mountComponent(t)},navigate:function(t,e){this.navigateTo(t,{},e)},redirectTo:function(t,e,n){var i=this;"object"==typeof e&&void 0===n&&(e.hasOwnProperty("notice")||e.hasOwnProperty("alert"))&&(n=e,e=void 0),void 0!==e&&(t=this._.constructHash(e,t)),this._.currentHash=t,this._.setHash(t),n=n||{},this.flash.notice=n.notice,this.flash.alert=n.alert,i._.mountComponent(t)},show:function(t,e){var n,i;if(this.query={},void 0!==e)for(n in e)this.query[n]=e[n];i=new t,i.mount(this._.targetElementId),this._.mountedComponentClass=t,this._.mountedComponent=i},attach:function(t){if(void 0===t)throw new Error("Missing listener.");if("function"!=typeof t.refresh)throw new Error('The listener must have the "refresh" function.');for(var e=0,n=this._.notificationListeners.length;n>e;e++)if(this._.notificationListeners[e]===t)return;this._.notificationListeners.push(t)},detach:function(t){for(var e=0,n=this._.notificationListeners.length;n>e;e++)if(this._.notificationListeners[e]===t){this._.notificationListeners.splice(e,1);break}},beforeNavigation:function(t){this._.beforeNavigationCallbacks.push(t)},errorHandler:function(t){this._.errorHandler=t},notify:function(){var t;for(t=this._.notificationListeners.length;t--;)this._.notificationListeners[t].refresh()}});var o=function(t){var e=this;this.main=t,this.eventListener=function(){var t=window.location.href.split("#")[1]||"";t!=e.currentHash&&e.main.navigate(t)},this.beforeNavigationCallbacks=[],this.notificationListeners=[],this.currentHash=null,this.mountedComponent=null,this.targetElementId=null};i(o.prototype,{mountComponent:function(t){var e,n,i;if("string"!=typeof t)throw new Error("The first argument must be a string.");e=this.main.routeFor(t),this.main.namespace=e.namespace,this.main.resource=e.resource,this.main.action=e.action,this.main.container=e.container,this.main.component=e.component,this.setParams(e),this.setQuery(e),n=this.getComponentClassFor(e),n===this.mountedComponentClass?this.main.notify():(this.mountedComponent&&this.mountedComponent.unmount(),this.main.notify(),i=new n,i.mount(this.targetElementId),this.mountedComponentClass=n,this.mountedComponent=i),this.main.flash={}},constructHash:function(t,e){var n,i;n=[];for(i in t)n.push(i+"="+t[i]);return n.length>0?e+"?"+n.join("&"):e},setHash:function(t){window.location.hash=t},setParams:function(t){var e=this.currentHash.match(t.regexp);this.main.params={},t.keys.forEach(function(t,n){this.main.params[t]=e[n+1]}.bind(this))},setQuery:function(t){var e,n;this.main.query={},e=this.currentHash.split("?")[1],void 0!==e&&(n=e.split("&"),n.forEach(function(t){var e=t.split("=");this.main.query[e[0]]=e[1]||""}.bind(this)))},getComponentClassFor:function(t){var e,n,i,s;for(e=[],t.container&&t.container.split(".").forEach(function(t){e.push(r.camelize(t))}),n=this.main.rootContainer,i=0;n&&ie;e++)for(i=t[e],r=i.getAttribute("name")||"",s=this._.tempForms[r]||{},a=i.getElementsByTagName("*"),o=0;o=0?t.split(".",2):["",t]},object2array:function(t){var e,n,i=!0,s=[];e=r.deepExtend({},t);for(n in e)0===n.length||n.match(/\D/)?(i=!1,"object"==typeof t[n]&&(t[n]=this.object2array(e[n]))):"object"==typeof t[n]?s.push(this.object2array(e[n])):s.push(t[n]);return i?s:t}}),e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utilities":15}],17:[function(t,e,n){e.exports=function(t){var e,n=String.prototype.split,i=/()??/.exec("")[1]===t;return e=function(e,r,s){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(e,r,s);var o,a,u,c,h=[],l=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),f=0,r=new RegExp(r.source,l+"g");for(e+="",i||(o=new RegExp("^"+r.source+"$(?!\\s)",l)),s=s===t?-1>>>0:s>>>0;(a=r.exec(e))&&(u=a.index+a[0].length,!(u>f&&(h.push(e.slice(f,a.index)),!i&&a.length>1&&a[0].replace(o,function(){for(var e=1;e1&&a.index=s)));)r.lastIndex===a.index&&r.lastIndex++;return f===e.length?!c&&r.test("")||h.push(""):h.push(e.slice(f)),h.length>s?h.slice(0,s):h}}()},{}],18:[function(t,e,n){"use strict";function i(t){var e=t[o];return e||(e=t[o]={}),e}var r=t("individual/one-version"),s="7";r("ev-store",s);var o="__EV_STORE_KEY@"+s;e.exports=i},{"individual/one-version":21}],19:[function(t,e,n){(function(n){var i="undefined"!=typeof n?n:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var s=i["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":61}],20:[function(t,e,n){(function(t){"use strict";function n(t,e){return t in i?i[t]:(i[t]=e,e)}var i="undefined"!=typeof window?window:"undefined"!=typeof t?t:{};e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(t,e,n){"use strict";function i(t,e,n){var i="__INDIVIDUAL_ONE_VERSION_"+t,s=i+"_ENFORCE_SINGLETON",o=r(s,e);if(o!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+o+" installed.\nThis means you cannot install version "+e);return r(i,n)}var r=t("./index.js");e.exports=i},{"./index.js":20}],22:[function(t,e,n){"use strict";e.exports=t("./lib/Inflector")},{"./lib/Inflector":24}],23:[function(t,e,n){(function(n,i){"use strict";function r(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[],this.acronyms={},this.acronymRegex=/(?=a)b/}var s=t("./hasProp"),o=t("./remove"),a=t("./icPart");r.getInstance=function(t){var e="undefined"!=typeof n?n:i;return e.__Inflector_Inflections=e.__Inflector_Inflections||{},e.__Inflector_Inflections[t]=e.__Inflector_Inflections[t]||new r,e.__Inflector_Inflections[t]},r.prototype.acronym=function(t){this.acronyms[t.toLowerCase()]=t;var e=[];for(var n in this.acronyms)s(this.acronyms,n)&&e.push(this.acronyms[n]);this.acronymRegex=new RegExp(e.join("|"))},r.prototype.plural=function(t,e){"string"==typeof t&&o(this.uncountables,t),o(this.uncountables,e),this.plurals.unshift([t,e])},r.prototype.singular=function(t,e){"string"==typeof t&&o(this.uncountables,t),o(this.uncountables,e),this.singulars.unshift([t,e])},r.prototype.irregular=function(t,e){o(this.uncountables,t),o(this.uncountables,e);var n=t[0],i=t.substr(1),r=e[0],s=e.substr(1);if(n.toUpperCase()===r.toUpperCase())this.plural(new RegExp("("+n+")"+i+"$","i"),"$1"+s),this.plural(new RegExp("("+r+")"+s+"$","i"),"$1"+s),this.singular(new RegExp("("+n+")"+i+"$","i"),"$1"+i),this.singular(new RegExp("("+r+")"+s+"$","i"),"$1"+i);else{var u=a(i),c=a(s);this.plural(new RegExp(n.toUpperCase()+u+"$"),r.toUpperCase()+s),this.plural(new RegExp(n.toLowerCase()+u+"$"),r.toLowerCase()+s),this.plural(new RegExp(r.toUpperCase()+c+"$"),r.toUpperCase()+s),this.plural(new RegExp(r.toLowerCase()+c+"$"),r.toLowerCase()+s),this.singular(new RegExp(n.toUpperCase()+u+"$"),n.toUpperCase()+i),this.singular(new RegExp(n.toLowerCase()+u+"$"),n.toLowerCase()+i),this.singular(new RegExp(r.toUpperCase()+c+"$"),n.toUpperCase()+i),this.singular(new RegExp(r.toLowerCase()+c+"$"),n.toLowerCase()+i)}},r.prototype.uncountable=function(){var t=Array.prototype.slice.call(arguments,0);this.uncountables=this.uncountables.concat(t)},r.prototype.human=function(t,e){this.humans.unshift([t,e])},r.prototype.clear=function(t){t=t||"all","all"===t?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[t]=[]},e.exports=r}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./hasProp":28,"./icPart":29,"./remove":31,_process:62}],24:[function(t,e,n){"use strict";var i=t("./Inflections"),r=t("./Transliterator"),s=t("./Methods"),o=t("./defaults"),a=t("./isFunc"),u=s;u.inflections=function(t,e){return a(t)&&(e=t,t=null),t=t||"en",e?void e(i.getInstance(t)):i.getInstance(t)},u.transliterations=function(t,e){return a(t)&&(e=t,t=null),t=t||"en",e?void e(r.getInstance(t)):r.getInstance(t)};for(var c in o)u.inflections(c,o[c]);e.exports=u},{"./Inflections":23,"./Methods":25,"./Transliterator":26,"./defaults":27,"./isFunc":30}],25:[function(t,e,n){"use strict";var i={pluralize:function(t,e){return e=e||"en",this._applyInflections(t,this.inflections(e).plurals)},singularize:function(t,e){return e=e||"en",this._applyInflections(t,this.inflections(e).singulars)},camelize:function(t,e){null!==e&&void 0!==e||(e=!0);var n=""+t,i=this;return n=e?n.replace(/^[a-z\d]*/,function(t){return i.inflections().acronyms[t]||i.capitalize(t)}):n.replace(new RegExp("^(?:"+this.inflections().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(t){return t.toLowerCase()}),n=n.replace(/(?:_|(\/))([a-z\d]*)/gi,function(t,e,n,r,s){return e||(e=""),""+e+(i.inflections().acronyms[n]||i.capitalize(n))})},underscore:function(t){var e=""+t;return e=e.replace(new RegExp("(?:([A-Za-z\\d])|^)("+this.inflections().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(t,e,n){return""+(e||"")+(e?"_":"")+n.toLowerCase()}),e=e.replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2"),e=e.replace(/([a-z\d])([A-Z])/g,"$1_$2"),e=e.replace(/-/g,"_"),e.toLowerCase()},humanize:function(t,e){var n,i,r,s=""+t,o=this.inflections().humans,a=this;e=e||{},null!==e.capitalize&&void 0!==e.capitalize||(e.capitalize=!0);for(var u=0,c=o.length;c>u;u++)if(n=o[u],i=n[0],r=n[1],i.test&&i.test(s)||s.indexOf(i)>-1){s=s.replace(i,r);break}return s=s.replace(/_id$/,""),s=s.replace(/_/g," "),s=s.replace(/([a-z\d]*)/gi,function(t){return a.inflections().acronyms[t]||t.toLowerCase()}),e.capitalize&&(s=s.replace(/^\w/,function(t){return t.toUpperCase()})),s},capitalize:function(t){var e=null===t||void 0===t?"":String(t);return e.charAt(0).toUpperCase()+e.slice(1)},titleize:function(t){return this.humanize(this.underscore(t)).replace(/(^|[\s¿\/]+)([a-z])/g,function(t,e,n,i,r){return t.replace(n,n.toUpperCase())})},tableize:function(t){return this.pluralize(this.underscore(t))},classify:function(t){return this.camelize(this.singularize(t.replace(/.*\./g,"")))},dasherize:function(t){return t.replace(/_/g,"-")},foreignKey:function(t,e){return null!==e&&void 0!==e||(e=!0),this.underscore(t)+(e?"_id":"id")},ordinal:function(t){var e=Math.abs(Number(t)),n=e%100;if(11===n||12===n||13===n)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},ordinalize:function(t){return""+t+this.ordinal(t)},transliterate:function(t,e){e=e||{};var n=e.locale||"en",i=e.replacement||"?";return this.transliterations(n).transliterate(t,i)},parameterize:function(t,e){e=e||{},void 0===e.separator&&(e.separator="-"),null===e.separator&&(e.separator="");var n=this.transliterate(t,e);if(n=n.replace(/[^a-z0-9\-_]+/gi,e.separator),e.separator.length){var i=new RegExp(e.separator);n=n.replace(new RegExp(i.source+"{2,}"),e.separator),n=n.replace(new RegExp("^"+i.source+"|"+i.source+"$","i"),"")}return n.toLowerCase()},_applyInflections:function(t,e){var n,i,r,s=""+t;if(0===s.length)return s;var o=s.toLowerCase().match(/\b\w+$/);if(o&&this.inflections().uncountables.indexOf(o[0])>-1)return s;for(var a=0,u=e.length;u>a;a++)if(n=e[a],i=n[0],r=n[1],s.match(i)){s=s.replace(i,r);break}return s}};e.exports=i},{}],26:[function(t,e,n){(function(t,n){"use strict";function i(){this.approximations={};for(var t in r)this.approximate(t,r[t])}var r={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","×":"x","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"Th","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"'n","Ŋ":"NG","ŋ":"ng","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z"},s="?";i.getInstance=function(e){var r="undefined"!=typeof t?t:n;return r.__Inflector_Transliterator=r.__Inflector_Transliterator||{},r.__Inflector_Transliterator[e]=r.__Inflector_Transliterator[e]||new i,r.__Inflector_Transliterator[e]},i.prototype.approximate=function(t,e){this.approximations[t]=e},i.prototype.transliterate=function(t,e){var n=this;return t.replace(/[^\u0000-\u007f]/g,function(t){return n.approximations[t]||e||s})},e.exports=i}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:62}],27:[function(t,e,n){"use strict";function i(t){t.plural(/$/,"s"),t.plural(/s$/i,"s"),t.plural(/^(ax|test)is$/i,"$1es"),t.plural(/(octop|vir)us$/i,"$1i"),t.plural(/(octop|vir)i$/i,"$1i"),t.plural(/(alias|status)$/i,"$1es"),t.plural(/(bu)s$/i,"$1ses"),t.plural(/(buffal|tomat)o$/i,"$1oes"),t.plural(/([ti])um$/i,"$1a"),t.plural(/([ti])a$/i,"$1a"),t.plural(/sis$/i,"ses"),t.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),t.plural(/(hive)$/i,"$1s"),t.plural(/([^aeiouy]|qu)y$/i,"$1ies"),t.plural(/(x|ch|ss|sh)$/i,"$1es"),t.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),t.plural(/^(m|l)ouse$/i,"$1ice"),t.plural(/^(m|l)ice$/i,"$1ice"),t.plural(/^(ox)$/i,"$1en"),t.plural(/^(oxen)$/i,"$1"),t.plural(/(quiz)$/i,"$1zes"),t.singular(/s$/i,""),t.singular(/(ss)$/i,"$1"),t.singular(/(n)ews$/i,"$1ews"),t.singular(/([ti])a$/i,"$1um"),t.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"),t.singular(/(^analy)(sis|ses)$/i,"$1sis"),t.singular(/([^f])ves$/i,"$1fe"),t.singular(/(hive)s$/i,"$1"),t.singular(/(tive)s$/i,"$1"),t.singular(/([lr])ves$/i,"$1f"),t.singular(/([^aeiouy]|qu)ies$/i,"$1y"),t.singular(/(s)eries$/i,"$1eries"),t.singular(/(m)ovies$/i,"$1ovie"),t.singular(/(x|ch|ss|sh)es$/i,"$1"),t.singular(/^(m|l)ice$/i,"$1ouse"),t.singular(/(bus)(es)?$/i,"$1"),t.singular(/(o)es$/i,"$1"),t.singular(/(shoe)s$/i,"$1"),t.singular(/(cris|test)(is|es)$/i,"$1is"),t.singular(/^(a)x[ie]s$/i,"$1xis"),t.singular(/(octop|vir)(us|i)$/i,"$1us"),t.singular(/(alias|status)(es)?$/i,"$1"),t.singular(/^(ox)en/i,"$1"),t.singular(/(vert|ind)ices$/i,"$1ex"),t.singular(/(matr)ices$/i,"$1ix"),t.singular(/(quiz)zes$/i,"$1"),t.singular(/(database)s$/i,"$1"),t.irregular("person","people"),t.irregular("man","men"),t.irregular("child","children"),t.irregular("sex","sexes"),t.irregular("move","moves"),t.irregular("zombie","zombies"),t.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}e.exports={en:i}},{}],28:[function(t,e,n){"use strict";function i(t,e){return r.call(t,e)}var r=Object.prototype.hasOwnProperty;e.exports=i},{}],29:[function(t,e,n){"use strict";function i(t){return t.split("").map(function(t){return"(?:"+[t.toUpperCase(),t.toLowerCase()].join("|")+")"}).join("")}e.exports=i},{}],30:[function(t,e,n){"use strict";function i(t){return"[object Function]"===r.call(t)}var r=Object.prototype.toString;e.exports=i},{}],31:[function(t,e,n){"use strict";function i(t,e){for(var n=t.length-1;n>=0;n--)t[n]===e&&r.call(t,n,1)}var r=Array.prototype.splice;e.exports=i},{}],32:[function(t,e,n){"use strict";e.exports=function(t){return"object"==typeof t&&null!==t}},{}],33:[function(t,e,n){var i=t("./vdom/create-element.js");e.exports=i},{"./vdom/create-element.js":39}],34:[function(t,e,n){var i=t("./vtree/diff.js");e.exports=i},{"./vtree/diff.js":59}],35:[function(t,e,n){var i=t("./virtual-hyperscript/index.js");e.exports=i},{"./virtual-hyperscript/index.js":46}],36:[function(t,e,n){var i=t("./diff.js"),r=t("./patch.js"),s=t("./h.js"),o=t("./create-element.js"),a=t("./vnode/vnode.js"),u=t("./vnode/vtext.js");e.exports={diff:i,patch:r,h:s,create:o,VNode:a,VText:u}},{"./create-element.js":33,"./diff.js":34,"./h.js":35,"./patch.js":37,"./vnode/vnode.js":55,"./vnode/vtext.js":57}],37:[function(t,e,n){var i=t("./vdom/patch.js");e.exports=i},{"./vdom/patch.js":42}],38:[function(t,e,n){function i(t,e,n){for(var i in e){var o=e[i];void 0===o?r(t,i,o,n):u(o)?(r(t,i,o,n),o.hook&&o.hook(t,i,n?n[i]:void 0)):a(o)?s(t,e,n,i,o):t[i]=o}}function r(t,e,n,i){if(i){var r=i[e];if(u(r))r.unhook&&r.unhook(t,e,n);else if("attributes"===e)for(var s in r)t.removeAttribute(s);else if("style"===e)for(var o in r)t.style[o]="";else"string"==typeof r?t[e]="":t[e]=null}}function s(t,e,n,i,r){var s=n?n[i]:void 0;if("attributes"!==i){if(s&&a(s)&&o(s)!==o(r))return void(t[i]=r);a(t[i])||(t[i]={});var u="style"===i?"":void 0;for(var c in r){var h=r[c];t[i][c]=void 0===h?u:h}}else for(var l in r){var f=r[l];void 0===f?t.removeAttribute(l):t.setAttribute(l,f)}}function o(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var a=t("is-object"),u=t("../vnode/is-vhook.js");e.exports=i},{"../vnode/is-vhook.js":50,"is-object":32}],39:[function(t,e,n){function i(t,e){var n=e?e.document||r:r,h=e?e.warn:null;if(t=c(t).a,u(t))return t.init();if(a(t))return n.createTextNode(t.text);if(!o(t))return h&&h("Item is not a valid virtual dom node",t),null;var l=null===t.namespace?n.createElement(t.tagName):n.createElementNS(t.namespace,t.tagName),f=t.properties;s(l,f);for(var p=t.children,d=0;d=s;){if(i=(o+s)/2>>0,r=t[i],s===o)return r>=e&&n>=r;if(e>r)s=i+1;else{if(!(r>n))return!0;o=i-1}}return!1}function o(t,e){return t>e?1:-1}var a={};e.exports=i},{}],41:[function(t,e,n){function i(t,e,n){var i=t.type,c=t.vNode,p=t.patch;switch(i){case d.REMOVE:return r(e,c);case d.INSERT:return s(e,p,n);case d.VTEXT:return o(e,c,p,n);case d.WIDGET:return a(e,c,p,n);case d.VNODE:return u(e,c,p,n);case d.ORDER:return h(e,p),e;case d.PROPS:return f(e,p,c.properties),e;case d.THUNK:return l(e,n.patch(e,p,n));default:return e}}function r(t,e){var n=t.parentNode;return n&&n.removeChild(t),c(t,e),null}function s(t,e,n){var i=n.render(e,n);return t&&t.appendChild(i),t}function o(t,e,n,i){var r;if(3===t.nodeType)t.replaceData(0,t.length,n.text),r=t;else{var s=t.parentNode;r=i.render(n,i),s&&r!==t&&s.replaceChild(r,t)}return r}function a(t,e,n,i){var r,s=m(e,n);r=s?n.update(e,t)||t:i.render(n,i);var o=t.parentNode;return o&&r!==t&&o.replaceChild(r,t),s||c(t,e),r}function u(t,e,n,i){var r=t.parentNode,s=i.render(n,i);return r&&s!==t&&r.replaceChild(s,t),s}function c(t,e){"function"==typeof e.destroy&&p(e)&&e.destroy(t)}function h(t,e){for(var n,i,r,s=t.childNodes,o={},a=0;a=u++?null:s[r.to])}function l(t,e){return t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t),e}var f=t("./apply-properties"),p=t("../vnode/is-widget.js"),d=t("../vnode/vpatch.js"),m=t("./update-widget");e.exports=i},{"../vnode/is-widget.js":53,"../vnode/vpatch.js":56,"./apply-properties":38,"./update-widget":43}],42:[function(t,e,n){function i(t,e,n){return n=n||{},n.patch=n.patch&&n.patch!==i?n.patch:r,n.render=n.render||c,n.patch(t,e,n)}function r(t,e,n){var i=o(e);if(0===i.length)return t;var r=h(t,e.a,i),u=t.ownerDocument;n.document||u===a||(n.document=u);for(var c=0;cw;w++){var x=n[w];s(x)?(p+=x.count||0,!d&&x.hasWidgets&&(d=!0),!m&&x.hasThunks&&(m=!0),v||!x.hooks&&!x.descendantHooks||(v=!0)):!d&&o(x)?"function"==typeof x.destroy&&(d=!0):!m&&a(x)&&(m=!0)}this.count=f+p,this.hasWidgets=d,this.hasThunks=m,this.hooks=l,this.descendantHooks=v}var r=t("./version"),s=t("./is-vnode"),o=t("./is-widget"),a=t("./is-thunk"),u=t("./is-vhook");e.exports=i;var c={},h=[];i.prototype.version=r,i.prototype.type="VirtualNode"},{"./is-thunk":49,"./is-vhook":50,"./is-vnode":51,"./is-widget":53,"./version":54}],56:[function(t,e,n){function i(t,e,n){this.type=Number(t),this.vNode=e,this.patch=n}var r=t("./version");i.NONE=0,i.VTEXT=1,i.VNODE=2,i.WIDGET=3,i.PROPS=4,i.ORDER=5,i.INSERT=6,i.REMOVE=7,i.THUNK=8,e.exports=i,i.prototype.version=r,i.prototype.type="VirtualPatch"},{"./version":54}],57:[function(t,e,n){function i(t){this.text=String(t)}var r=t("./version"); +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Cape=t()}}(function(){return function t(e,n,i){function r(o,a){if(!n[o]){if(!e[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var h=n[o]={exports:{}};e[o][0].call(h.exports,function(t){var n=e[o][1][t];return r(n?n:t)},h,h.exports,t,e,n,i)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o=0;r--)if("csrf-token"===i[r].getAttribute("name")){this.headers["X-CSRF-Token"]=i[r].getAttribute("content");break}}e.exports=i},{}],3:[function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e=200&&t.status<300)return t;var e=new Error(t.statusText);throw e.response=t,e}e.exports=i},{}],10:[function(t,e,n){"use strict";var i={attach:function(t){for(var e=0,n=this._.components.length;n>e;e++)if(this._.components[e]===t)return;this._.components.push(t)},detach:function(t){for(var e=0,n=this._.components.length;n>e;e++)if(this._.components[e]===t){this._.components.splice(e,1);break}},propagate:function(){for(var t=this._.components.length;t--;)this._.components[t].refresh()}};e.exports=i},{}],11:[function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;ee;e++)if(i=this.routes[e],t.match(i.regexp))return i;throw new Error("No route match. ["+t+"]")},navigateTo:function(t,e,n){var i,r,s,o,a=this;if(void 0!==e&&(t=this._.constructHash(e,t)),this._.currentHash=t,this._.setHash(t),n=n||{},this.flash.notice=n.notice,this.flash.alert=n.alert,this._.beforeNavigationCallbacks.length){for(i=[],r=new Promise(function(e,n){e(t)}),i.push(r),s=0,o=this._.beforeNavigationCallbacks.length;o>s;s++)r=r.then(this._.beforeNavigationCallbacks[s]),i.push(r);Promise.all(i).then(function(t){a._.mountComponent(t.pop())},a._.errorHandler)}else a._.mountComponent(t)},navigate:function(t,e){this.navigateTo(t,{},e)},redirectTo:function(t,e,n){var i=this;"object"==typeof e&&void 0===n&&(e.hasOwnProperty("notice")||e.hasOwnProperty("alert"))&&(n=e,e=void 0),void 0!==e&&(t=this._.constructHash(e,t)),this._.currentHash=t,this._.setHash(t),n=n||{},this.flash.notice=n.notice,this.flash.alert=n.alert,i._.mountComponent(t)},show:function(t,e){var n,i;if(this.query={},void 0!==e)for(n in e)this.query[n]=e[n];i=new t,i.mount(this._.targetElementId),this._.mountedComponentClass=t,this._.mountedComponent=i},attach:function(t){if(void 0===t)throw new Error("Missing listener.");if("function"!=typeof t.refresh)throw new Error('The listener must have the "refresh" function.');for(var e=0,n=this._.notificationListeners.length;n>e;e++)if(this._.notificationListeners[e]===t)return;this._.notificationListeners.push(t)},detach:function(t){for(var e=0,n=this._.notificationListeners.length;n>e;e++)if(this._.notificationListeners[e]===t){this._.notificationListeners.splice(e,1);break}},beforeNavigation:function(t){this._.beforeNavigationCallbacks.push(t)},errorHandler:function(t){this._.errorHandler=t},notify:function(){var t;for(t=this._.notificationListeners.length;t--;)this._.notificationListeners[t].refresh()}});var o=function(t){var e=this;this.main=t,this.eventListener=function(){var t=window.location.href.split("#")[1]||"";t!=e.currentHash&&e.main.navigate(t)},this.beforeNavigationCallbacks=[],this.notificationListeners=[],this.currentHash=null,this.mountedComponent=null,this.targetElementId=null};i(o.prototype,{mountComponent:function(t){var e,n,i;if("string"!=typeof t)throw new Error("The first argument must be a string.");e=this.main.routeFor(t),this.main.namespace=e.namespace,this.main.resource=e.resource,this.main.action=e.action,this.main.container=e.container,this.main.component=e.component,this.setParams(e),this.setQuery(e),n=this.getComponentClassFor(e),n===this.mountedComponentClass?this.main.notify():(this.mountedComponent&&this.mountedComponent.unmount(),this.main.notify(),i=new n,i.mount(this.targetElementId),this.mountedComponentClass=n,this.mountedComponent=i),this.main.flash={}},constructHash:function(t,e){var n,i;n=[];for(i in t)n.push(i+"="+t[i]);return n.length>0?e+"?"+n.join("&"):e},setHash:function(t){window.location.hash=t},setParams:function(t){var e=this.currentHash.match(t.regexp);this.main.params={},t.keys.forEach(function(t,n){this.main.params[t]=e[n+1]}.bind(this))},setQuery:function(t){var e,n;this.main.query={},e=this.currentHash.split("?")[1],void 0!==e&&(n=e.split("&"),n.forEach(function(t){var e=t.split("=");this.main.query[e[0]]=e[1]||""}.bind(this)))},getComponentClassFor:function(t){var e,n,i,s;for(e=[],t.container&&t.container.split(".").forEach(function(t){e.push(r.camelize(t))}),n=this.main.rootContainer,i=0;n&&ie;e++)for(i=t[e],r=i.getAttribute("name")||"",s=this._.tempForms[r]||{},a=i.getElementsByTagName("*"),o=0;o=0?t.split(".",2):["",t]},object2array:function(t){var e,n,i=!0,s=[];e=r.deepExtend({},t);for(n in e)0===n.length||n.match(/\D/)?(i=!1,"object"==typeof t[n]&&(t[n]=this.object2array(e[n]))):"object"==typeof t[n]?s.push(this.object2array(e[n])):s.push(t[n]);return i?s:t}}),e.exports=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utilities":15}],17:[function(t,e,n){e.exports=function(t){var e,n=String.prototype.split,i=/()??/.exec("")[1]===t;return e=function(e,r,s){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(e,r,s);var o,a,u,c,h=[],l=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),f=0,r=new RegExp(r.source,l+"g");for(e+="",i||(o=new RegExp("^"+r.source+"$(?!\\s)",l)),s=s===t?-1>>>0:s>>>0;(a=r.exec(e))&&(u=a.index+a[0].length,!(u>f&&(h.push(e.slice(f,a.index)),!i&&a.length>1&&a[0].replace(o,function(){for(var e=1;e1&&a.index=s)));)r.lastIndex===a.index&&r.lastIndex++;return f===e.length?!c&&r.test("")||h.push(""):h.push(e.slice(f)),h.length>s?h.slice(0,s):h}}()},{}],18:[function(t,e,n){"use strict";function i(t){var e=t[o];return e||(e=t[o]={}),e}var r=t("individual/one-version"),s="7";r("ev-store",s);var o="__EV_STORE_KEY@"+s;e.exports=i},{"individual/one-version":21}],19:[function(t,e,n){(function(n){var i="undefined"!=typeof n?n:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var s=i["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":61}],20:[function(t,e,n){(function(t){"use strict";function n(t,e){return t in i?i[t]:(i[t]=e,e)}var i="undefined"!=typeof window?window:"undefined"!=typeof t?t:{};e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(t,e,n){"use strict";function i(t,e,n){var i="__INDIVIDUAL_ONE_VERSION_"+t,s=i+"_ENFORCE_SINGLETON",o=r(s,e);if(o!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+o+" installed.\nThis means you cannot install version "+e);return r(i,n)}var r=t("./index.js");e.exports=i},{"./index.js":20}],22:[function(t,e,n){"use strict";e.exports=t("./lib/Inflector")},{"./lib/Inflector":24}],23:[function(t,e,n){(function(n,i){"use strict";function r(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[],this.acronyms={},this.acronymRegex=/(?=a)b/}var s=t("./hasProp"),o=t("./remove"),a=t("./icPart");r.getInstance=function(t){var e="undefined"!=typeof n?n:i;return e.__Inflector_Inflections=e.__Inflector_Inflections||{},e.__Inflector_Inflections[t]=e.__Inflector_Inflections[t]||new r,e.__Inflector_Inflections[t]},r.prototype.acronym=function(t){this.acronyms[t.toLowerCase()]=t;var e=[];for(var n in this.acronyms)s(this.acronyms,n)&&e.push(this.acronyms[n]);this.acronymRegex=new RegExp(e.join("|"))},r.prototype.plural=function(t,e){"string"==typeof t&&o(this.uncountables,t),o(this.uncountables,e),this.plurals.unshift([t,e])},r.prototype.singular=function(t,e){"string"==typeof t&&o(this.uncountables,t),o(this.uncountables,e),this.singulars.unshift([t,e])},r.prototype.irregular=function(t,e){o(this.uncountables,t),o(this.uncountables,e);var n=t[0],i=t.substr(1),r=e[0],s=e.substr(1);if(n.toUpperCase()===r.toUpperCase())this.plural(new RegExp("("+n+")"+i+"$","i"),"$1"+s),this.plural(new RegExp("("+r+")"+s+"$","i"),"$1"+s),this.singular(new RegExp("("+n+")"+i+"$","i"),"$1"+i),this.singular(new RegExp("("+r+")"+s+"$","i"),"$1"+i);else{var u=a(i),c=a(s);this.plural(new RegExp(n.toUpperCase()+u+"$"),r.toUpperCase()+s),this.plural(new RegExp(n.toLowerCase()+u+"$"),r.toLowerCase()+s),this.plural(new RegExp(r.toUpperCase()+c+"$"),r.toUpperCase()+s),this.plural(new RegExp(r.toLowerCase()+c+"$"),r.toLowerCase()+s),this.singular(new RegExp(n.toUpperCase()+u+"$"),n.toUpperCase()+i),this.singular(new RegExp(n.toLowerCase()+u+"$"),n.toLowerCase()+i),this.singular(new RegExp(r.toUpperCase()+c+"$"),n.toUpperCase()+i),this.singular(new RegExp(r.toLowerCase()+c+"$"),n.toLowerCase()+i)}},r.prototype.uncountable=function(){var t=Array.prototype.slice.call(arguments,0);this.uncountables=this.uncountables.concat(t)},r.prototype.human=function(t,e){this.humans.unshift([t,e])},r.prototype.clear=function(t){t=t||"all","all"===t?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[t]=[]},e.exports=r}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./hasProp":28,"./icPart":29,"./remove":31,_process:62}],24:[function(t,e,n){"use strict";var i=t("./Inflections"),r=t("./Transliterator"),s=t("./Methods"),o=t("./defaults"),a=t("./isFunc"),u=s;u.inflections=function(t,e){return a(t)&&(e=t,t=null),t=t||"en",e?void e(i.getInstance(t)):i.getInstance(t)},u.transliterations=function(t,e){return a(t)&&(e=t,t=null),t=t||"en",e?void e(r.getInstance(t)):r.getInstance(t)};for(var c in o)u.inflections(c,o[c]);e.exports=u},{"./Inflections":23,"./Methods":25,"./Transliterator":26,"./defaults":27,"./isFunc":30}],25:[function(t,e,n){"use strict";var i={pluralize:function(t,e){return e=e||"en",this._applyInflections(t,this.inflections(e).plurals)},singularize:function(t,e){return e=e||"en",this._applyInflections(t,this.inflections(e).singulars)},camelize:function(t,e){null!==e&&void 0!==e||(e=!0);var n=""+t,i=this;return n=e?n.replace(/^[a-z\d]*/,function(t){return i.inflections().acronyms[t]||i.capitalize(t)}):n.replace(new RegExp("^(?:"+this.inflections().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(t){return t.toLowerCase()}),n=n.replace(/(?:_|(\/))([a-z\d]*)/gi,function(t,e,n,r,s){return e||(e=""),""+e+(i.inflections().acronyms[n]||i.capitalize(n))})},underscore:function(t){var e=""+t;return e=e.replace(new RegExp("(?:([A-Za-z\\d])|^)("+this.inflections().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(t,e,n){return""+(e||"")+(e?"_":"")+n.toLowerCase()}),e=e.replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2"),e=e.replace(/([a-z\d])([A-Z])/g,"$1_$2"),e=e.replace(/-/g,"_"),e.toLowerCase()},humanize:function(t,e){var n,i,r,s=""+t,o=this.inflections().humans,a=this;e=e||{},null!==e.capitalize&&void 0!==e.capitalize||(e.capitalize=!0);for(var u=0,c=o.length;c>u;u++)if(n=o[u],i=n[0],r=n[1],i.test&&i.test(s)||s.indexOf(i)>-1){s=s.replace(i,r);break}return s=s.replace(/_id$/,""),s=s.replace(/_/g," "),s=s.replace(/([a-z\d]*)/gi,function(t){return a.inflections().acronyms[t]||t.toLowerCase()}),e.capitalize&&(s=s.replace(/^\w/,function(t){return t.toUpperCase()})),s},capitalize:function(t){var e=null===t||void 0===t?"":String(t);return e.charAt(0).toUpperCase()+e.slice(1)},titleize:function(t){return this.humanize(this.underscore(t)).replace(/(^|[\s¿\/]+)([a-z])/g,function(t,e,n,i,r){return t.replace(n,n.toUpperCase())})},tableize:function(t){return this.pluralize(this.underscore(t))},classify:function(t){return this.camelize(this.singularize(t.replace(/.*\./g,"")))},dasherize:function(t){return t.replace(/_/g,"-")},foreignKey:function(t,e){return null!==e&&void 0!==e||(e=!0),this.underscore(t)+(e?"_id":"id")},ordinal:function(t){var e=Math.abs(Number(t)),n=e%100;if(11===n||12===n||13===n)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},ordinalize:function(t){return""+t+this.ordinal(t)},transliterate:function(t,e){e=e||{};var n=e.locale||"en",i=e.replacement||"?";return this.transliterations(n).transliterate(t,i)},parameterize:function(t,e){e=e||{},void 0===e.separator&&(e.separator="-"),null===e.separator&&(e.separator="");var n=this.transliterate(t,e);if(n=n.replace(/[^a-z0-9\-_]+/gi,e.separator),e.separator.length){var i=new RegExp(e.separator);n=n.replace(new RegExp(i.source+"{2,}"),e.separator),n=n.replace(new RegExp("^"+i.source+"|"+i.source+"$","i"),"")}return n.toLowerCase()},_applyInflections:function(t,e){var n,i,r,s=""+t;if(0===s.length)return s;var o=s.toLowerCase().match(/\b\w+$/);if(o&&this.inflections().uncountables.indexOf(o[0])>-1)return s;for(var a=0,u=e.length;u>a;a++)if(n=e[a],i=n[0],r=n[1],s.match(i)){s=s.replace(i,r);break}return s}};e.exports=i},{}],26:[function(t,e,n){(function(t,n){"use strict";function i(){this.approximations={};for(var t in r)this.approximate(t,r[t])}var r={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","×":"x","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"Th","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"'n","Ŋ":"NG","ŋ":"ng","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z"},s="?";i.getInstance=function(e){var r="undefined"!=typeof t?t:n;return r.__Inflector_Transliterator=r.__Inflector_Transliterator||{},r.__Inflector_Transliterator[e]=r.__Inflector_Transliterator[e]||new i,r.__Inflector_Transliterator[e]},i.prototype.approximate=function(t,e){this.approximations[t]=e},i.prototype.transliterate=function(t,e){var n=this;return t.replace(/[^\u0000-\u007f]/g,function(t){return n.approximations[t]||e||s})},e.exports=i}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:62}],27:[function(t,e,n){"use strict";function i(t){t.plural(/$/,"s"),t.plural(/s$/i,"s"),t.plural(/^(ax|test)is$/i,"$1es"),t.plural(/(octop|vir)us$/i,"$1i"),t.plural(/(octop|vir)i$/i,"$1i"),t.plural(/(alias|status)$/i,"$1es"),t.plural(/(bu)s$/i,"$1ses"),t.plural(/(buffal|tomat)o$/i,"$1oes"),t.plural(/([ti])um$/i,"$1a"),t.plural(/([ti])a$/i,"$1a"),t.plural(/sis$/i,"ses"),t.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),t.plural(/(hive)$/i,"$1s"),t.plural(/([^aeiouy]|qu)y$/i,"$1ies"),t.plural(/(x|ch|ss|sh)$/i,"$1es"),t.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),t.plural(/^(m|l)ouse$/i,"$1ice"),t.plural(/^(m|l)ice$/i,"$1ice"),t.plural(/^(ox)$/i,"$1en"),t.plural(/^(oxen)$/i,"$1"),t.plural(/(quiz)$/i,"$1zes"),t.singular(/s$/i,""),t.singular(/(ss)$/i,"$1"),t.singular(/(n)ews$/i,"$1ews"),t.singular(/([ti])a$/i,"$1um"),t.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"),t.singular(/(^analy)(sis|ses)$/i,"$1sis"),t.singular(/([^f])ves$/i,"$1fe"),t.singular(/(hive)s$/i,"$1"),t.singular(/(tive)s$/i,"$1"),t.singular(/([lr])ves$/i,"$1f"),t.singular(/([^aeiouy]|qu)ies$/i,"$1y"),t.singular(/(s)eries$/i,"$1eries"),t.singular(/(m)ovies$/i,"$1ovie"),t.singular(/(x|ch|ss|sh)es$/i,"$1"),t.singular(/^(m|l)ice$/i,"$1ouse"),t.singular(/(bus)(es)?$/i,"$1"),t.singular(/(o)es$/i,"$1"),t.singular(/(shoe)s$/i,"$1"),t.singular(/(cris|test)(is|es)$/i,"$1is"),t.singular(/^(a)x[ie]s$/i,"$1xis"),t.singular(/(octop|vir)(us|i)$/i,"$1us"),t.singular(/(alias|status)(es)?$/i,"$1"),t.singular(/^(ox)en/i,"$1"),t.singular(/(vert|ind)ices$/i,"$1ex"),t.singular(/(matr)ices$/i,"$1ix"),t.singular(/(quiz)zes$/i,"$1"),t.singular(/(database)s$/i,"$1"),t.irregular("person","people"),t.irregular("man","men"),t.irregular("child","children"),t.irregular("sex","sexes"),t.irregular("move","moves"),t.irregular("zombie","zombies"),t.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}e.exports={en:i}},{}],28:[function(t,e,n){"use strict";function i(t,e){return r.call(t,e)}var r=Object.prototype.hasOwnProperty;e.exports=i},{}],29:[function(t,e,n){"use strict";function i(t){return t.split("").map(function(t){return"(?:"+[t.toUpperCase(),t.toLowerCase()].join("|")+")"}).join("")}e.exports=i},{}],30:[function(t,e,n){"use strict";function i(t){return"[object Function]"===r.call(t)}var r=Object.prototype.toString;e.exports=i},{}],31:[function(t,e,n){"use strict";function i(t,e){for(var n=t.length-1;n>=0;n--)t[n]===e&&r.call(t,n,1)}var r=Array.prototype.splice;e.exports=i},{}],32:[function(t,e,n){"use strict";e.exports=function(t){return"object"==typeof t&&null!==t}},{}],33:[function(t,e,n){var i=t("./vdom/create-element.js");e.exports=i},{"./vdom/create-element.js":39}],34:[function(t,e,n){var i=t("./vtree/diff.js");e.exports=i},{"./vtree/diff.js":59}],35:[function(t,e,n){var i=t("./virtual-hyperscript/index.js");e.exports=i},{"./virtual-hyperscript/index.js":46}],36:[function(t,e,n){var i=t("./diff.js"),r=t("./patch.js"),s=t("./h.js"),o=t("./create-element.js"),a=t("./vnode/vnode.js"),u=t("./vnode/vtext.js");e.exports={diff:i,patch:r,h:s,create:o,VNode:a,VText:u}},{"./create-element.js":33,"./diff.js":34,"./h.js":35,"./patch.js":37,"./vnode/vnode.js":55,"./vnode/vtext.js":57}],37:[function(t,e,n){var i=t("./vdom/patch.js");e.exports=i},{"./vdom/patch.js":42}],38:[function(t,e,n){function i(t,e,n){for(var i in e){var o=e[i];void 0===o?r(t,i,o,n):u(o)?(r(t,i,o,n),o.hook&&o.hook(t,i,n?n[i]:void 0)):a(o)?s(t,e,n,i,o):t[i]=o}}function r(t,e,n,i){if(i){var r=i[e];if(u(r))r.unhook&&r.unhook(t,e,n);else if("attributes"===e)for(var s in r)t.removeAttribute(s);else if("style"===e)for(var o in r)t.style[o]="";else"string"==typeof r?t[e]="":t[e]=null}}function s(t,e,n,i,r){var s=n?n[i]:void 0;if("attributes"!==i){if(s&&a(s)&&o(s)!==o(r))return void(t[i]=r);a(t[i])||(t[i]={});var u="style"===i?"":void 0;for(var c in r){var h=r[c];t[i][c]=void 0===h?u:h}}else for(var l in r){var f=r[l];void 0===f?t.removeAttribute(l):t.setAttribute(l,f)}}function o(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var a=t("is-object"),u=t("../vnode/is-vhook.js");e.exports=i},{"../vnode/is-vhook.js":50,"is-object":32}],39:[function(t,e,n){function i(t,e){var n=e?e.document||r:r,h=e?e.warn:null;if(t=c(t).a,u(t))return t.init();if(a(t))return n.createTextNode(t.text);if(!o(t))return h&&h("Item is not a valid virtual dom node",t),null;var l=null===t.namespace?n.createElement(t.tagName):n.createElementNS(t.namespace,t.tagName),f=t.properties;s(l,f);for(var p=t.children,d=0;d=s;){if(i=(o+s)/2>>0,r=t[i],s===o)return r>=e&&n>=r;if(e>r)s=i+1;else{if(!(r>n))return!0;o=i-1}}return!1}function o(t,e){return t>e?1:-1}var a={};e.exports=i},{}],41:[function(t,e,n){function i(t,e,n){var i=t.type,c=t.vNode,p=t.patch;switch(i){case d.REMOVE:return r(e,c);case d.INSERT:return s(e,p,n);case d.VTEXT:return o(e,c,p,n);case d.WIDGET:return a(e,c,p,n);case d.VNODE:return u(e,c,p,n);case d.ORDER:return h(e,p),e;case d.PROPS:return f(e,p,c.properties),e;case d.THUNK:return l(e,n.patch(e,p,n));default:return e}}function r(t,e){var n=t.parentNode;return n&&n.removeChild(t),c(t,e),null}function s(t,e,n){var i=n.render(e,n);return t&&t.appendChild(i),t}function o(t,e,n,i){var r;if(3===t.nodeType)t.replaceData(0,t.length,n.text),r=t;else{var s=t.parentNode;r=i.render(n,i),s&&r!==t&&s.replaceChild(r,t)}return r}function a(t,e,n,i){var r,s=m(e,n);r=s?n.update(e,t)||t:i.render(n,i);var o=t.parentNode;return o&&r!==t&&o.replaceChild(r,t),s||c(t,e),r}function u(t,e,n,i){var r=t.parentNode,s=i.render(n,i);return r&&s!==t&&r.replaceChild(s,t),s}function c(t,e){"function"==typeof e.destroy&&p(e)&&e.destroy(t)}function h(t,e){for(var n,i,r,s=t.childNodes,o={},a=0;a=u++?null:s[r.to])}function l(t,e){return t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t),e}var f=t("./apply-properties"),p=t("../vnode/is-widget.js"),d=t("../vnode/vpatch.js"),m=t("./update-widget");e.exports=i},{"../vnode/is-widget.js":53,"../vnode/vpatch.js":56,"./apply-properties":38,"./update-widget":43}],42:[function(t,e,n){function i(t,e,n){return n=n||{},n.patch=n.patch&&n.patch!==i?n.patch:r,n.render=n.render||c,n.patch(t,e,n)}function r(t,e,n){var i=o(e);if(0===i.length)return t;var r=h(t,e.a,i),u=t.ownerDocument;n.document||u===a||(n.document=u);for(var c=0;cw;w++){var x=n[w];s(x)?(p+=x.count||0,!d&&x.hasWidgets&&(d=!0),!m&&x.hasThunks&&(m=!0),v||!x.hooks&&!x.descendantHooks||(v=!0)):!d&&o(x)?"function"==typeof x.destroy&&(d=!0):!m&&a(x)&&(m=!0)}this.count=f+p,this.hasWidgets=d,this.hasThunks=m,this.hooks=l,this.descendantHooks=v}var r=t("./version"),s=t("./is-vnode"),o=t("./is-widget"),a=t("./is-thunk"),u=t("./is-vhook");e.exports=i;var c={},h=[];i.prototype.version=r,i.prototype.type="VirtualNode"},{"./is-thunk":49,"./is-vhook":50,"./is-vnode":51,"./is-widget":53,"./version":54}],56:[function(t,e,n){function i(t,e,n){this.type=Number(t),this.vNode=e,this.patch=n}var r=t("./version");i.NONE=0,i.VTEXT=1,i.VNODE=2,i.WIDGET=3,i.PROPS=4,i.ORDER=5,i.INSERT=6,i.REMOVE=7,i.THUNK=8,e.exports=i,i.prototype.version=r,i.prototype.type="VirtualPatch"},{"./version":54}],57:[function(t,e,n){function i(t){this.text=String(t)}var r=t("./version"); e.exports=i,i.prototype.version=r,i.prototype.type="VirtualText"},{"./version":54}],58:[function(t,e,n){function i(t,e){var n;for(var a in t){a in e||(n=n||{},n[a]=void 0);var u=t[a],c=e[a];if(u!==c)if(s(u)&&s(c))if(r(c)!==r(u))n=n||{},n[a]=c;else if(o(c))n=n||{},n[a]=c;else{var h=i(u,c);h&&(n=n||{},n[a]=h)}else n=n||{},n[a]=c}for(var l in e)l in t||(n=n||{},n[l]=e[l]);return n}function r(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var s=t("is-object"),o=t("../vnode/is-vhook");e.exports=i},{"../vnode/is-vhook":50,"is-object":32}],59:[function(t,e,n){function i(t,e){var n={a:t};return r(t,e,n,0),n}function r(t,e,n,i){if(t!==e){var r=n[i],a=!1;if(b(t)||b(e))u(t,e,n,i);else if(null==e)x(t)||(o(t,n,i),r=n[i]),r=m(r,new g(g.REMOVE,t,e));else if(y(e))if(y(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var c=N(t.properties,e.properties);c&&(r=m(r,new g(g.PROPS,t,c))),r=s(t,e,n,r,i)}else r=m(r,new g(g.VNODE,t,e)),a=!0;else r=m(r,new g(g.VNODE,t,e)),a=!0;else w(e)?w(t)?t.text!==e.text&&(r=m(r,new g(g.VTEXT,t,e))):(r=m(r,new g(g.VTEXT,t,e)),a=!0):x(e)&&(x(t)||(a=!0),r=m(r,new g(g.WIDGET,t,e)));r&&(n[i]=r),a&&o(t,n,i)}}function s(t,e,n,i,s){for(var o=t.children,a=f(o,e.children),u=a.children,c=o.length,h=u.length,l=c>h?c:h,p=0;l>p;p++){var d=o[p],v=u[p];s+=1,d?r(d,v,n,s):v&&(i=m(i,new g(g.INSERT,null,v))),y(d)&&d.count&&(s+=d.count)}return a.moves&&(i=m(i,new g(g.ORDER,t,a.moves))),i}function o(t,e,n){h(t,e,n),a(t,e,n)}function a(t,e,n){if(x(t))"function"==typeof t.destroy&&(e[n]=m(e[n],new g(g.REMOVE,t,null)));else if(y(t)&&(t.hasWidgets||t.hasThunks))for(var i=t.children,r=i.length,s=0;r>s;s++){var o=i[s];n+=1,a(o,e,n),y(o)&&o.count&&(n+=o.count)}else b(t)&&u(t,null,e,n)}function u(t,e,n,r){var s=_(t,e),o=i(s.a,s.b);c(o)&&(n[r]=new g(g.THUNK,null,o))}function c(t){for(var e in t)if("a"!==e)return!0;return!1}function h(t,e,n){if(y(t)){if(t.hooks&&(e[n]=m(e[n],new g(g.PROPS,t,l(t.hooks)))),t.descendantHooks||t.hasThunks)for(var i=t.children,r=i.length,s=0;r>s;s++){var o=i[s];n+=1,h(o,e,n),y(o)&&o.count&&(n+=o.count)}}else b(t)&&u(t,null,e,n)}function l(t){var e={};for(var n in t)e[n]=void 0;return e}function f(t,e){var n=d(e),i=n.keys,r=n.free;if(r.length===e.length)return{children:e,moves:null};var s=d(t),o=s.keys,a=s.free;if(a.length===t.length)return{children:e,moves:null};for(var u=[],c=0,h=r.length,l=0,f=0;fc?(m=r[c++],u.push(e[m])):(m=f-l++,u.push(null))}for(var g=c>=r.length?e.length:r[c],y=0;y=g&&u.push(w)}for(var x,b=u.slice(),_=0,N=[],P=[],j=0;jr;r++){var s=t[r];s.key?e[s.key]=r:n.push(r)}return{keys:e,free:n}}function m(t,e){return t?(v(t)?t.push(e):t=[t,e],t):e}var v=t("x-is-array"),g=t("../vnode/vpatch"),y=t("../vnode/is-vnode"),w=t("../vnode/is-vtext"),x=t("../vnode/is-widget"),b=t("../vnode/is-thunk"),_=t("../vnode/handle-thunk"),N=t("./diff-props");e.exports=i},{"../vnode/handle-thunk":48,"../vnode/is-thunk":49,"../vnode/is-vnode":51,"../vnode/is-vtext":52,"../vnode/is-widget":53,"../vnode/vpatch":56,"./diff-props":58,"x-is-array":60}],60:[function(t,e,n){function i(t){return"[object Array]"===s.call(t)}var r=Array.isArray,s=Object.prototype.toString;e.exports=r||i},{}],61:[function(t,e,n){},{}],62:[function(t,e,n){function i(){h=!1,a.length?c=a.concat(c):l=-1,c.length&&r()}function r(){if(!h){var t=setTimeout(i);h=!0;for(var e=c.length;e;){for(a=c,c=[];++l1)for(var n=1;n