/*! MIT LICENSE TERMS Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*! Custom code (not part of es6-promise) */ if(!window.Promise){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE * @version 2.3.0 */ (function(){function pt(n){ /*! Custom code (not part of es6-promise) ... fixes cross-window issues in IE 9 */ return typeof $OB=="undefined"?!0:$OB.utils.isFunction(n)||typeof n=="object"&&n!==null; /*! End Custom Code */ }function b(n){ /*! Custom code (not part of es6-promise) ... fixes cross-window issues in IE 9 */ return typeof $OB=="undefined"?!0:$OB.utils.isFunction(n); /*! End Custom Code */ }function wt(n){return typeof n=="object"&&n!==null}function bt(n){k=n}function kt(n){f=n}function ni(){var t=process.nextTick,n=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&n[1]==="0"&&n[2]==="10"&&(t=setImmediate),function(){t(h)}}function ii(){var n=0,i=new et(h),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function ri(){var n=new MessageChannel;return n.port1.onmessage=h,function(){n.port2.postMessage(0)}}function d(){return function(){setTimeout(h,1)}}function h(){for(var t,i,n=0;n