text
stringlengths 2
1.05M
|
|---|
import * as actionTypes from "../actions/actionTypes";
const counterReducer = (state = 0, action) => {
let newState;
switch (action.type) {
case actionTypes.INCREASE_COUNTER:
return (newState = state + action.payload);
case actionTypes.DECREASE_COUNTER:
return (newState = state - action.payload);
case actionTypes.INCREASE_BY_TWO_COUNTER:
return (newState = state + action.payload);
default:
return state;
}
};
export default counterReducer;
|
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.5 - 2014-11-14
*
*/!function(a){"use strict";a.i18nDict={"lang-code":"ar","lang-native":"العربية",all:"جميع",tphp:"أعلى الصفحة",load:" تحميل ...",process:"تجهيز ...",srch:"البحث","no-match":"لا نتائج تذكر لل",matches:{mixin:"العثور على [MIXIN] مباريات"},current:"(الحالي)",hide:"إخفاء",err:"خطأ",colon:":",hyphen:" - ","full-stop":".","comma-space":"، ",space:" ",start:"بداية",stop:"توقف",back:"ظهر",cancel:"إلغاء","min-ago":"منذ دقيقة واحدة","coup-mins":"بضع دقائق قبل","mins-ago":{mixin:"منذ [MIXIN] دقيقة"},"hour-ago":"قبل ساعة","hours-ago":{mixin:"منذ [MIXIN] ساعات"},"days-ago":{mixin:"منذ [MIXIN] أيام"},yesterday:"أمس",nxt:"التالي","nxt-r":"مفتاح السهم الأيمن - التالي",prv:"سابق","prv-l":"مفتاح السهم الأيسر - سابق",first:"الأول",last:"آخر","srch-menus":"البحث والقوائم",email:"البريد الإلكتروني","menu-close":"إغلاق القائمة","overlay-close":"إغلاق تراكب","esc-key":"مفتاح الهروب",show:"عرض","tab-rot":{off:"ايقاف الدوران علامة التبويب",on:"بدء دوران التبويب"},"tab-list":"علامة التبويب قائمة","tab-pnl-end1":"نهاية هذا الفريق التبويب.","tab-pnl-end2":"العودة إلى قائمة التبويب","tab-pnl-end3":"أو الاستمرار في بقية الصفحة.",play:"لعب",pause:"وقفة",open:"فتح",close:"أغلق",volume:"جهارة الصوت",mute:{on:"كتم",off:"إلغاء كتمه"},cc:{off:"أغلقت إخفاء السفلية",on:"أغلقت تظهر السفلية"},"cc-err":"خطأ في تحميل تعليق مغلق",adesc:{on:"تمكين الوصف السمعي",off:"تعطيل الوصف السمعي"},pos:"الوظيفة الحالية:",dur:"إجمالي الوقت:","shr-txt":"مشاركة","shr-pg":" هذه الصفحة","shr-vid":" هذا الفيديو","shr-aud":" هذا الملف الصوتي","shr-hnt":" مع {s} ","shr-disc":"وأعرب عن تأييد أي أي منتجات أو خدمات أو ضمنية.","frm-nosubmit":"لا يمكن أن تقدم على شكل ل ","errs-fnd":" تم العثور على أخطاء.","err-fnd":" تم العثور على خطأ.","date-show":"اختيار تاريخ من التقويم لحقل:","date-sel":"مختار",days:["الأحد","يوم الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],mnths:["يناير","فبراير","مسيرة","أبريل","قد","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],cal:"تقويم",currDay:"(اليوم الحالي)","cal-goToLnk":'<span class="wb-inv">انتقل إلى الشهر </span>من العام',"cal-goToTtl":"انتقل إلى الشهر من العام","cal-goToMnth":"الشهر:","cal-goToYr":"العام:","cal-goToBtn":"تذهب",prvMnth:"الشهر الماضي: ",nxtMnth:"الشهر المقبل: ","lb-curr":"البند %curr% من %total%","lb-xhr-err":"فشل هذا المحتوى ليتم تحميلها.","lb-img-err":"فشلت هذه الصورة ليتم تحميلها.","tbl-txt":"جدول","tbl-dtls":"الرسم البياني. التفاصيل في الجدول التالي.","st-to-msg-bgn":"سوف تنتهي جلسة العمل الخاصة بك تلقائيا في على #min# دقيقة #sec# ثانية.","st-to-msg-end":'اختر "متابعة الجلسة" لتمديد جلسة العمل الخاصة بك.',"st-msgbx-ttl":"الدورة مهلة الإنذار","st-alrdy-to-msg":"عذرا انتهت صلاحية جلسة العمل الخاصة بك بالفعل. يرجى تسجيل الدخول مرة أخرى.","st-btn-cont":"تستمر الدورة","st-btn-end":"إنهاء جلسة الآن","td-toggle":"تبديل جميع","td-open":"توسيع الكل","td-close":"طي الكل","td-ttl-open":"توسيع كافة أقسام محتوى","td-ttl-close":"انهيار جميع قطاعات المحتوى",sortAsc:": تفعيل لنوع تصاعدي",sortDesc:": تفعيل لفرز تنازلي",emptyTbl:"لا تتوفر بيانات في الجدول",infoEntr:"عرض _START_ إلى _END_ من _TOTAL_ مقالات",infoEmpty:"عرض 0 إلى 0 من 0 مقالات",infoFilt:"(تمت تصفيتها في الفترة من _MAX_ مجموع المقالات)",info1000:",",lenMenu:"عرض _MENU_ مقالات",filter:"تصفية العناصر","geo-mapctrl":"@geo-mapctrl@","geo-zmin":"تكبير","geo-zmout":"تصغير","geo-zmwrld":"التكبير لتعيين حد","geo-zmfeat":"تكبير إلى العنصر","geo-sclln":"خريطة نطاق","geo-msepos":"خطوط الطول والعرض من مؤشر الماوس","geo-ariamap":"خريطة الكائن. أوصاف الميزات الخريطة هي في الجدول أدناه.","geo-ally":"<strong>مستخدمي لوحة المفاتيح:</strong> عندما الخريطة هي في التركيز، استخدم مفاتيح الأسهم لتحريك الخريطة ومفاتيح زائد وناقص لتكبير. فإن مفاتيح الأسهم لا تحريك الخريطة عند التكبير إلى حد الخريطة.","geo-allyttl":"تعليمات: خريطة الملاحة","geo-tgllyr":"تبديل عرض طبقة","geo-hdnlyr":"حاليا يتم إخفاء هذه الطبقة.","geo-bmapurl":"http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3978/MapServer/WMTS/tile/1.0.0/BaseMaps_CBMT3978/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg","geo-bmapttl":"BaseMaps_CBMT3978","geo-bmapurltxt":"http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3978/MapServer/WMTS/tile/1.0.0/BaseMaps_CBMT3978/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg","geo-attrlnk":"http://geogratis.gc.ca/geogratis/CBM_CBC?lang=en","geo-attrttl":"GeoGratis - كندا قاعدة الخريطة (الإنجليزية أو الفرنسية فقط)","geo-sel":"حدد","geo-lblsel":"تحقق لتحديد عنصر على الخريطة","geo-locurl-geogratis":"http://geogratis.gc.ca/services/geolocation/en/locate","geo-loc-placeholder":"تشير إلى اسم الموقع، والرمز البريدي والعنوان (البريدي)، وعدد من NTS ...","geo-loc-label":"موقع","geo-aoi-north":"شمال","geo-aoi-east":"شرق","geo-aoi-south":"جنوب","geo-aoi-west":"غرب","geo-aoi-instructions":'تحدد مساحة على الخريطة أو أدخل التفاصيل أدناه ثم انقر على زر "رسم".',"geo-aoi-btndraw":"رسم","geo-aoi-btnclear":"نزع","geo-geoloc-btn":"التكبير لموقعك الحالي","geo-geoloc-fail":"فشل الموقع. يرجى التأكد من أن يتم تمكين خدمات الموقع.","geo-geoloc-uncapable":"غير معتمد التعريب بواسطة المتصفح الخاص بك.","wb-disable":"إصدار HTML الأساسي","wb-enable":"الإصدار القياسي","tmpl-signin":"تسجيل الدخول"}}(wb),wb.doc.one("formLanguages.wb",function(){!function(a){a.extend(a.validator.messages,{required:"هذا الحقل إلزامي",remote:"يرجى تصحيح هذا الحقل للمتابعة",email:"رجاء إدخال عنوان بريد إلكتروني صحيح",url:"رجاء إدخال عنوان موقع إلكتروني صحيح",date:"رجاء إدخال تاريخ صحيح",dateISO:"رجاء إدخال تاريخ صحيح (ISO)",number:"رجاء إدخال عدد بطريقة صحيحة",digits:"رجاء إدخال أرقام فقط",creditcard:"رجاء إدخال رقم بطاقة ائتمان صحيح",equalTo:"رجاء إدخال نفس القيمة",accept:"رجاء إدخال ملف بامتداد موافق عليه",maxlength:a.validator.format("الحد الأقصى لعدد الحروف هو {0}"),minlength:a.validator.format("الحد الأدنى لعدد الحروف هو {0}"),rangelength:a.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"),range:a.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"),max:a.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"),min:a.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}")})}(jQuery)});
|
function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function s(e,t,s){return t&&n(e.prototype,t),s&&n(e,s),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(s,arguments,o)}else n=s.apply(this,arguments);return c(this,n)}}function a(e,t,n){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var s=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(s){var o=Object.getOwnPropertyDescriptor(s,t);return o.get?o.get.call(n):o.value}},a(e,t,n||e)}function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function f(t,n){try{if("object"!==e(n)){var s=e(n);throw new TypeError("AccessibleMenu: Elements given to isValidInstance() must be inside of an object. ".concat(s," given."))}for(var o in n)if(!(n[o]instanceof t)){var r=e(n[o]);throw new TypeError("AccessibleMenu: ".concat(o," must be an instance of ").concat(t.name,". ").concat(r," given."))}return!0}catch(e){return console.error(e),!1}}function v(t,n){try{if("object"!==e(n)){var s=e(n);throw new TypeError("AccessibleMenu: Values given to isValidType() must be inside of an object. ".concat(s," given."))}for(var o in n){var r=e(n[o]);if(r!==t)throw new TypeError("AccessibleMenu: ".concat(o," must be a ").concat(t,". ").concat(r," given."))}return!0}catch(e){return console.error(e),!1}}function p(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isCSSSelector() must be inside of an object. ".concat(n," given."))}for(var s in t)try{if(null===t[s])throw new Error;document.querySelector(t[s])}catch(e){throw new TypeError("AccessibleMenu: ".concat(s,' must be a valid CSS selector. "').concat(t[s],'" given.'))}return!0}catch(e){return console.error(e),!1}}function g(t){try{if("object"!==e(t)||Array.isArray(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidClassList() must be inside of an object. ".concat(n," given."))}var s=function(n){var s=e(t[n]);if("string"!==s){if(!Array.isArray(t[n]))throw new TypeError("AccessibleMenu: ".concat(n," must be a string or an array of strings. ").concat(s," given."));t[n].forEach((function(e){if("string"!=typeof e)throw new TypeError("AccessibleMenu: ".concat(n," must be a string or an array of strings. An array containing non-strings given."))}))}else{var o={};o[n]=t[n],p(o)}};for(var o in t)s(o);return!0}catch(e){return console.error(e),!1}}function y(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidHoverType() must be inside of an object. ".concat(n," given."))}var s=["off","on","dynamic"];for(var o in t)if(!s.includes(t[o]))throw new TypeError("AccessibleMenu: ".concat(o," must be one of the following values: ").concat(s.join(", "),'. "').concat(t[o],'" given.'));return!0}catch(e){return console.error(e),!1}}var b=function(){function e(n){var s=n.menuToggleElement,r=n.parentElement,l=n.controlledMenu,i=n.parentMenu,u=void 0===i?null:i;t(this,e),o(this,"_dom",{toggle:null,parent:null}),o(this,"_elements",{controlledMenu:null,parentMenu:null}),o(this,"_open",!1),o(this,"_expandEvent",new CustomEvent("accessibleMenuExpand",{bubbles:!0,detail:{toggle:this}})),o(this,"_collapseEvent",new CustomEvent("accessibleMenuCollapse",{bubbles:!0,detail:{toggle:this}})),this._dom.toggle=s,this._dom.parent=r,this._elements.controlledMenu=l,this._elements.parentMenu=u}return s(e,[{key:"initialize",value:function(){if(this.dom.toggle.setAttribute("aria-haspopup","true"),this.dom.toggle.setAttribute("aria-expanded","false"),function(e,t){if(v("string",{tagName:e})&&f(HTMLElement,t)){var n=e.toLowerCase(),s=!0;for(var o in t)t[o].tagName.toLowerCase()!==n&&(s=!1);return s}return!1}("button",{toggle:this.dom.toggle})||this.dom.toggle.setAttribute("role","button"),""===this.dom.toggle.id||""===this.elements.controlledMenu.dom.menu.id){var e=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,10),t=this.dom.toggle.innerText.replace(/[^a-zA-Z0-9\s]/g,""),n=e;!t.replace(/\s/g,"").length&&this.dom.toggle.getAttribute("aria-label")&&(t=this.dom.toggle.getAttribute("aria-label").replace(/[^a-zA-Z0-9\s]/g,"")),t.replace(/\s/g,"").length>0&&((t=t.toLowerCase().replace(/\s+/g,"-")).startsWith("-")&&(t=t.substring(1)),t.endsWith("-")&&(t=t.slice(0,-1)),n="".concat(t,"-").concat(n)),this.dom.toggle.id=this.dom.toggle.id||"".concat(n,"-menu-button"),this.elements.controlledMenu.dom.menu.id=this.elements.controlledMenu.dom.menu.id||"".concat(n,"-menu")}this.elements.controlledMenu.dom.menu.setAttribute("aria-labelledby",this.dom.toggle.id),this.dom.toggle.setAttribute("aria-controls",this.elements.controlledMenu.dom.menu.id),this._collapse(!1)}},{key:"dom",get:function(){return this._dom}},{key:"elements",get:function(){return this._elements}},{key:"isOpen",get:function(){return this._open},set:function(e){v("boolean",{value:e}),this._open=e}},{key:"_expand",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=this.elements.controlledMenu,o=s.closeClass,r=s.openClass;(this.dom.toggle.setAttribute("aria-expanded","true"),""!==r)&&("string"==typeof r?this.elements.controlledMenu.dom.menu.classList.add(r):(e=this.elements.controlledMenu.dom.menu.classList).add.apply(e,h(r)));""!==o&&("string"==typeof o?this.elements.controlledMenu.dom.menu.classList.remove(o):(t=this.elements.controlledMenu.dom.menu.classList).remove.apply(t,h(o)));n&&this.dom.toggle.dispatchEvent(this._expandEvent)}},{key:"_collapse",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=this.elements.controlledMenu,o=s.closeClass,r=s.openClass;(this.dom.toggle.setAttribute("aria-expanded","false"),""!==o)&&("string"==typeof o?this.elements.controlledMenu.dom.menu.classList.add(o):(e=this.elements.controlledMenu.dom.menu.classList).add.apply(e,h(o)));""!==r&&("string"==typeof r?this.elements.controlledMenu.dom.menu.classList.remove(r):(t=this.elements.controlledMenu.dom.menu.classList).remove.apply(t,h(r)));n&&this.dom.toggle.dispatchEvent(this._collapseEvent)}},{key:"open",value:function(){this.elements.controlledMenu.focusState="self",this._expand(),this.isOpen=!0}},{key:"preview",value:function(){this.elements.parentMenu&&(this.elements.parentMenu.focusState="self"),this._expand(),this.isOpen=!0}},{key:"close",value:function(){this.isOpen&&(this.elements.controlledMenu.currentChild=0,this.elements.controlledMenu.blur(),this.elements.parentMenu&&(this.elements.parentMenu.focusState="self"),this._collapse(),this.isOpen=!1)}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"closeSiblings",value:function(){var e=this;this.elements.parentMenu&&this.elements.parentMenu.elements.submenuToggles.forEach((function(t){t!==e&&t.close()}))}},{key:"closeChildren",value:function(){this.elements.controlledMenu.elements.submenuToggles.forEach((function(e){return e.close()}))}}]),e}(),M=function(){function e(n){var s=n.menuItemElement,r=n.menuLinkElement,l=n.parentMenu,i=n.isSubmenuItem,u=void 0!==i&&i,c=n.childMenu,m=void 0===c?null:c,a=n.toggle,h=void 0===a?null:a;t(this,e),o(this,"_dom",{item:null,link:null}),o(this,"_elements",{parentMenu:null,childMenu:null,toggle:null}),o(this,"_submenu",!1),this._dom.item=s,this._dom.link=r,this._elements.parentMenu=l,this._elements.childMenu=m,this._elements.toggle=h,this._submenu=u}return s(e,[{key:"initialize",value:function(){}},{key:"dom",get:function(){return this._dom}},{key:"elements",get:function(){return this._elements}},{key:"isSubmenuItem",get:function(){return this._submenu}},{key:"focus",value:function(){this.elements.parentMenu.shouldFocus&&this.dom.link.focus()}},{key:"blur",value:function(){this.elements.parentMenu.shouldFocus&&this.dom.link.blur()}}]),e}();function E(e){try{var t=e.key||e.keyCode,n={Enter:"Enter"===t||13===t,Space:" "===t||"Spacebar"===t||32===t,Escape:"Escape"===t||"Esc"===t||27===t,ArrowUp:"ArrowUp"===t||"Up"===t||38===t,ArrowRight:"ArrowRight"===t||"Right"===t||39===t,ArrowDown:"ArrowDown"===t||"Down"===t||40===t,ArrowLeft:"ArrowLeft"===t||"Left"===t||37===t,Home:"Home"===t||36===t,End:"End"===t||35===t,Character:isNaN(t)&&!!t.match(/^[a-zA-Z]{1}$/),Tab:"Tab"===t||9===t,Asterisk:"*"===t||56===t};return Object.keys(n).find((function(e){return!0===n[e]}))||""}catch(e){return""}}function _(e){e.preventDefault(),e.stopPropagation()}var C=function(){function n(e){var s=e.menuElement,r=e.menuItemSelector,l=void 0===r?"li":r,i=e.menuLinkSelector,u=void 0===i?"a":i,c=e.submenuItemSelector,m=void 0===c?"":c,a=e.submenuToggleSelector,h=void 0===a?"a":a,d=e.submenuSelector,f=void 0===d?"ul":d,v=e.controllerElement,p=void 0===v?null:v,g=e.containerElement,y=void 0===g?null:g,E=e.openClass,_=void 0===E?"show":E,C=e.closeClass,T=void 0===C?"hide":C,I=e.isTopLevel,k=void 0===I||I,w=e.parentMenu,S=void 0===w?null:w,L=e.hoverType,A=void 0===L?"off":L,O=e.hoverDelay,D=void 0===O?250:O;t(this,n),o(this,"_MenuType",n),o(this,"_MenuItemType",M),o(this,"_MenuToggleType",b),o(this,"_dom",{menu:null,menuItems:[],submenuItems:[],submenuToggles:[],submenus:[],controller:null,container:null}),o(this,"_selectors",{menuItems:"",menuLinks:"",submenuItems:"",submenuToggles:"",submenus:""}),o(this,"_elements",{menuItems:[],submenuToggles:[],controller:null,parentMenu:null,rootMenu:null}),o(this,"_openClass","show"),o(this,"_closeClass","hide"),o(this,"_root",!0),o(this,"_currentChild",0),o(this,"_focusState","none"),o(this,"_currentEvent","none"),o(this,"_hoverType","off"),o(this,"_hoverDelay",250),this._dom.menu=s,this._dom.controller=p,this._dom.container=y,this._selectors.menuItems=l,this._selectors.menuLinks=u,this._selectors.submenuItems=m,this._selectors.submenuToggles=h,this._selectors.submenus=f,this._elements.menuItems=[],this._elements.submenuToggles=[],this._elements.controller=null,this._elements.parentMenu=S,this._elements.rootMenu=k?this:null,this._openClass=_||"",this._closeClass=T||"",this._root=k,this._hoverType=A,this._hoverDelay=D}return s(n,[{key:"initialize",value:function(){if(!this._validate())throw new Error("AccesibleMenu: cannot initialize menu. See other error messages for more information.");if(null===this.elements.rootMenu&&this._findRootMenu(this),this._setDOMElements(),this.isTopLevel&&this.dom.controller&&this.dom.container){var e=new this._MenuToggleType({menuToggleElement:this.dom.controller,parentElement:this.dom.container,controlledMenu:this});this._elements.controller=e}this._createChildElements()}},{key:"dom",get:function(){return this._dom}},{key:"selectors",get:function(){return this._selectors}},{key:"elements",get:function(){return this._elements}},{key:"isTopLevel",get:function(){return this._root}},{key:"openClass",get:function(){return this.isTopLevel?this._openClass:this.elements.rootMenu.openClass},set:function(e){g({openClass:e}),this._openClass!==e&&(this._openClass=e)}},{key:"closeClass",get:function(){return this.isTopLevel?this._closeClass:this.elements.rootMenu.closeClass},set:function(e){g({closeClass:e}),this._closeClass!==e&&(this._closeClass=e)}},{key:"currentChild",get:function(){return this._currentChild},set:function(e){function t(e){if(["mouse","character"].includes(e.currentEvent)&&e.elements.parentMenu)for(var t=0,n=!1;!n&&t<e.elements.parentMenu.elements.menuItems.length;){var s=e.elements.parentMenu.elements.menuItems[t];s.isSubmenuItem&&s.elements.toggle.elements.controlledMenu===e&&(n=!0,e.elements.parentMenu.currentEvent=e.currentEvent,e.elements.parentMenu.currentChild=t),t++}}v("number",{value:e}),e<-1?(this._currentChild=-1,t(this)):e>=this.elements.menuItems.length?(this._currentChild=this.elements.menuItems.length-1,t(this)):this.focusChild!==e&&(this._currentChild=e,t(this))}},{key:"focusState",get:function(){return this._focusState},set:function(t){!function(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidState() must be inside of an object. ".concat(n," given."))}var s=["none","self","child"];for(var o in t)if(!s.includes(t[o]))throw new TypeError("AccessibleMenu: ".concat(o," must be one of the following values: ").concat(s.join(", "),'. "').concat(t[o],'" given.'))}catch(e){return console.error(e),!1}}({value:t}),this._focusState!==t&&(this._focusState=t),this.elements.submenuToggles.length>0&&("self"===t||"none"===t)&&this.elements.submenuToggles.forEach((function(e){e.elements.controlledMenu.focusState="none"})),!this.elements.parentMenu||"self"!==t&&"child"!==t||(this.elements.parentMenu.focusState="child")}},{key:"currentEvent",get:function(){return this._currentEvent},set:function(t){!function(t){try{if("object"!==e(t)){var n=e(t);throw new TypeError("AccessibleMenu: Values given to isValidEvent() must be inside of an object. ".concat(n," given."))}var s=["none","mouse","keyboard","character"];for(var o in t)if(!s.includes(t[o]))throw new TypeError("AccessibleMenu: ".concat(o," must be one of the following values: ").concat(s.join(", "),'. "').concat(t[o],'" given.'))}catch(e){return console.error(e),!1}}({value:t}),this._currentEvent!==t&&(this._currentEvent=t,this.elements.submenuToggles.length>0&&this.elements.submenuToggles.forEach((function(e){e.elements.controlledMenu.currentEvent=t})))}},{key:"currentMenuItem",get:function(){return this.elements.menuItems[this.currentChild]}},{key:"hoverType",get:function(){return this._root?this._hoverType:this.elements.rootMenu.hoverType},set:function(e){y({value:e}),this._hoverType!==e&&(this._hoverType=e)}},{key:"hoverDelay",get:function(){return this._root?this._hoverDelay:this.elements.rootMenu.hoverDelay},set:function(e){v("number",{value:e}),this._hoverDelay!==e&&(this._hoverDelay=e)}},{key:"shouldFocus",get:function(){var e=!1;return"keyboard"!==this.currentEvent&&"character"!==this.currentEvent||(e=!0),"mouse"===this.currentEvent&&"dynamic"===this.hoverType&&(e=!0),e}},{key:"_validate",value:function(){var e=!0;return null!==this._dom.container||null!==this._dom.controller?f(HTMLElement,{menuElement:this._dom.menu,controllerElement:this._dom.controller,containerElement:this._dom.container})||(e=!1):f(HTMLElement,{menuElement:this._dom.menu})||(e=!1),""!==this._selectors.submenuItems?p({menuItemSelector:this._selectors.menuItems,menuLinkSelector:this._selectors.menuLinks,submenuItemSelector:this._selectors.submenuItems,submenuToggleSelector:this._selectors.submenuToggles,submenuSelector:this._selectors.submenus})||(e=!1):p({menuItemSelector:this._selectors.menuItems,menuLinkSelector:this._selectors.menuLinks})||(e=!1),""===this._openClass||g({openClass:this._openClass})||(e=!1),""===this._closeClass||g({closeClass:this._closeClass})||(e=!1),v("boolean",{isTopLevel:this._root})||(e=!1),null===this._elements.parentMenu||f(n,{parentMenu:this._elements.parentMenu})||(e=!1),y({hoverType:this._hoverType})||(e=!1),v("number",{hoverDelay:this._hoverDelay})||(e=!1),e}},{key:"_setDOMElementType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dom.menu,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("string"!=typeof this.selectors[e])throw new Error('AccessibleMenu: "'.concat(e,'" is not a valid element type within the menu.'));if(!Array.isArray(this.dom[e]))throw new Error('AccessibleMenu: The "'.concat(e,'" element cannot be set through _setDOMElementType.'));t!==this.dom.menu&&f(HTMLElement,{base:t});var s=Array.from(t.querySelectorAll(this.selectors[e])),o=s.filter((function(e){return e.parentElement===t}));this._dom[e]=n?o:[].concat(h(this._dom[e]),h(o))}},{key:"_resetDOMElementType",value:function(e){if(void 0===this.dom[e])throw new Error('AccessibleMenu: "'.concat(e,'" is not a valid element type within the menu.'));if(!Array.isArray(this.dom[e]))throw new Error('AccessibleMenu: The "'.concat(e,'" element cannot be reset through _resetDOMElementType.'));this._dom[e]=[]}},{key:"_setDOMElements",value:function(){var e=this;this._setDOMElementType("menuItems"),""!==this.selectors.submenuItems&&(this._setDOMElementType("submenuItems"),this._resetDOMElementType("submenuToggles"),this._resetDOMElementType("submenus"),this.dom.submenuItems.forEach((function(t){e._setDOMElementType("submenuToggles",t,!1),e._setDOMElementType("submenus",t,!1)})))}},{key:"_findRootMenu",value:function(e){if(e.isTopLevel)this._elements.rootMenu=e;else{if(null===e.elements.parentMenu)throw new Error("Cannot find root menu.");this._findRootMenu(e.elements.parentMenu)}}},{key:"_createChildElements",value:function(){var e=this;this.dom.menuItems.forEach((function(t){var n;if(e.dom.submenuItems.includes(t)){var s=t.querySelector(e.selectors.submenuToggles),o=t.querySelector(e.selectors.submenus),r=new e._MenuType({menuElement:o,menuItemSelector:e.selectors.menuItems,menuLinkSelector:e.selectors.menuLinks,submenuItemSelector:e.selectors.submenuItems,submenuToggleSelector:e.selectors.submenuToggles,submenuSelector:e.selectors.submenus,openClass:e.openClass,closeClass:e.closeClass,isTopLevel:!1,parentMenu:e,hoverType:e.hoverType,hoverDelay:e.hoverDelay}),l=new e._MenuToggleType({menuToggleElement:s,parentElement:t,controlledMenu:r,parentMenu:e});e._elements.submenuToggles.push(l),n=new e._MenuItemType({menuItemElement:t,menuLinkElement:s,parentMenu:e,isSubmenuItem:!0,childMenu:r,toggle:l})}else{var i=t.querySelector(e.selectors.menuLinks);n=new e._MenuItemType({menuItemElement:t,menuLinkElement:i,parentMenu:e})}e._elements.menuItems.push(n)}))}},{key:"_handleFocus",value:function(){var e=this;this.elements.menuItems.forEach((function(t,n){t.dom.link.addEventListener("focus",(function(){e.focusState="self",e.currentChild=n}))}))}},{key:"_handleClick",value:function(){var e=this;function t(e,t,n){_(n),t.toggle(),t.isOpen&&(e.focusState="self",t.elements.controlledMenu.focusState="none")}this.elements.menuItems.forEach((function(n,s){n.dom.link.addEventListener("pointerdown",(function(){e.currentEvent="mouse",e.elements.rootMenu.blurChildren(),e.focusChild(s)}),{passive:!0}),n.isSubmenuItem&&n.elements.toggle.dom.toggle.addEventListener("pointerup",(function(s){e.currentEvent="mouse",t(e,n.elements.toggle,s)}))})),this.isTopLevel&&this.elements.controller&&this.elements.controller.dom.toggle.addEventListener("pointerup",(function(n){e.currentEvent="mouse",t(e,e.elements.controller,n)}))}},{key:"_handleHover",value:function(){var e=this;this.elements.menuItems.forEach((function(t,n){t.dom.link.addEventListener("mouseenter",(function(){if("on"===e.hoverType)e.currentEvent="mouse",e.currentChild=n,t.isSubmenuItem&&t.elements.toggle.preview();else if("dynamic"===e.hoverType){var s=e.elements.submenuToggles.some((function(e){return e.isOpen}));e.currentChild=n,e.isTopLevel&&"none"===e.focusState||(e.currentEvent="mouse",e.focusCurrentChild()),!t.isSubmenuItem||e.isTopLevel&&!s||(e.currentEvent="mouse",t.elements.toggle.preview())}})),t.isSubmenuItem&&t.dom.item.addEventListener("mouseleave",(function(){"on"===e.hoverType?e.hoverDelay>0?setTimeout((function(){e.currentEvent="mouse",t.elements.toggle.close()}),e.hoverDelay):(e.currentEvent="mouse",t.elements.toggle.close()):"dynamic"===e.hoverType&&(e.isTopLevel||(e.hoverDelay>0?setTimeout((function(){e.currentEvent="mouse",t.elements.toggle.close(),e.focusCurrentChild()}),e.hoverDelay):(e.currentEvent="mouse",t.elements.toggle.close(),e.focusCurrentChild())))}))}))}},{key:"_handleKeydown",value:function(){var e=this;this.isTopLevel&&this.elements.controller&&this.elements.controller.dom.toggle.addEventListener("keydown",(function(t){e.currentEvent="keyboard";var n=E(t);"Space"!==n&&"Enter"!==n||_(t)}))}},{key:"_handleKeyup",value:function(){var e=this;this.isTopLevel&&this.elements.controller&&this.elements.controller.dom.toggle.addEventListener("keyup",(function(t){e.currentEvent="keyboard";var n=E(t);"Space"!==n&&"Enter"!==n||(_(t),e.elements.controller.open(),e.focusFirstChild())}))}},{key:"focus",value:function(){this.focusState="self",this.shouldFocus&&this.dom.menu.focus()}},{key:"blur",value:function(){this.focusState="none",this.shouldFocus&&this.dom.menu.blur()}},{key:"focusCurrentChild",value:function(){this.focusState="self",-1!==this.currentChild&&this.currentMenuItem.focus()}},{key:"focusChild",value:function(e){this.blurCurrentChild(),this.currentChild=e,this.focusCurrentChild()}},{key:"focusFirstChild",value:function(){this.focusChild(0)}},{key:"focusLastChild",value:function(){this.focusChild(this.elements.menuItems.length-1)}},{key:"focusNextChild",value:function(){this.currentChild<this.elements.menuItems.length-1?this.focusChild(this.currentChild+1):this.focusCurrentChild()}},{key:"focusPreviousChild",value:function(){this.currentChild>0?this.focusChild(this.currentChild-1):this.focusCurrentChild()}},{key:"blurCurrentChild",value:function(){this.focusState="none",-1!==this.currentChild&&this.currentMenuItem.blur()}},{key:"focusController",value:function(){this.dom.controller&&(this.shouldFocus&&this.dom.controller.focus(),this.focusState="none")}},{key:"focusContainer",value:function(){this.dom.container&&(this.shouldFocus&&this.dom.container.focus(),this.focusState="none")}},{key:"closeChildren",value:function(){this.elements.submenuToggles.forEach((function(e){return e.close()}))}},{key:"blurChildren",value:function(){this.elements.menuItems.forEach((function(e){e.blur(),e.isSubmenuItem&&e.elements.childMenu.blurChildren()}))}}]),n}(),T=function(e){r(o,M);var n=m(o);function o(e){var s,r=e.menuItemElement,l=e.menuLinkElement,i=e.parentMenu,u=e.isSubmenuItem,c=void 0!==u&&u,m=e.childMenu,a=void 0===m?null:m,h=e.toggle,d=void 0===h?null:h,f=e.initialize,v=void 0===f||f;return t(this,o),s=n.call(this,{menuItemElement:r,menuLinkElement:l,parentMenu:i,isSubmenuItem:c,childMenu:a,toggle:d}),v&&s.initialize(),s}return s(o,[{key:"initialize",value:function(){a(l(o.prototype),"initialize",this).call(this),this.dom.item.setAttribute("role","none"),this.dom.link.setAttribute("role","treeitem"),this.dom.link.tabIndex=-1}},{key:"focus",value:function(){a(l(o.prototype),"focus",this).call(this),this.dom.link.tabIndex=0}},{key:"blur",value:function(){a(l(o.prototype),"blur",this).call(this),this.dom.link.tabIndex=-1}}]),o}(),I=function(e){r(s,b);var n=m(s);function s(e){var o,r=e.menuToggleElement,l=e.parentElement,i=e.controlledMenu,u=e.parentMenu,c=void 0===u?null:u,m=e.initialize,a=void 0===m||m;return t(this,s),o=n.call(this,{menuToggleElement:r,parentElement:l,controlledMenu:i,parentMenu:c}),a&&o.initialize(),o}return s}(),k=function(e){r(i,C);var n=m(i);function i(e){var s,r=e.menuElement,l=e.menuItemSelector,c=void 0===l?"li":l,m=e.menuLinkSelector,a=void 0===m?"a":m,h=e.submenuItemSelector,d=void 0===h?"":h,f=e.submenuToggleSelector,v=void 0===f?"a":f,p=e.submenuSelector,g=void 0===p?"ul":p,y=e.controllerElement,b=void 0===y?null:y,M=e.containerElement,E=void 0===M?null:M,_=e.openClass,C=void 0===_?"show":_,k=e.closeClass,w=void 0===k?"hide":k,S=e.isTopLevel,L=void 0===S||S,A=e.parentMenu,O=void 0===A?null:A,D=e.hoverType,j=void 0===D?"off":D,x=e.hoverDelay,N=void 0===x?250:x,z=e.initialize,R=void 0===z||z;return t(this,i),o(u(s=n.call(this,{menuElement:r,menuItemSelector:c,menuLinkSelector:a,submenuItemSelector:d,submenuToggleSelector:v,submenuSelector:g,controllerElement:b,containerElement:E,openClass:C,closeClass:w,isTopLevel:L,parentMenu:O,hoverType:j,hoverDelay:N})),"_MenuType",i),o(u(s),"_MenuItemType",T),o(u(s),"_MenuToggleType",I),R&&s.initialize(),s}return s(i,[{key:"initialize",value:function(){try{a(l(i.prototype),"initialize",this).call(this),this.isTopLevel?(this.dom.menu.setAttribute("role","tree"),this.elements.menuItems[0].dom.link.tabIndex=0):this.dom.menu.setAttribute("role","group"),this._handleFocus(),this._handleClick(),this._handleHover(),this._handleKeydown(),this._handleKeyup()}catch(e){console.error(e)}}},{key:"_handleKeydown",value:function(){var e=this;a(l(i.prototype),"_handleKeydown",this).call(this),this.dom.menu.addEventListener("keydown",(function(t){e.currentEvent="keyboard";var n=E(t);if("Tab"===n&&("none"!==e.elements.rootMenu.focusState?e.elements.rootMenu.blur():e.elements.rootMenu.focus()),"self"===e.focusState){(["Space","ArrowUp","ArrowDown","ArrowLeft","Asterisk","Home","End"].includes(n)||e.currentMenuItem.isSubmenuItem&&["Enter","ArrowRight"].includes(n)||e.elements.controller&&["Escape"].includes(n))&&_(t)}}))}},{key:"_handleKeyup",value:function(){var e=this;a(l(i.prototype),"_handleKeyup",this).call(this),this.dom.menu.addEventListener("keyup",(function(t){e.currentEvent="keyboard";var n=E(t),s=t.altKey,o=t.crtlKey,r=t.metaKey;if("Character"!==n||(s||o||r)){if("self"===e.focusState)if("Enter"===n||"Space"===n)_(t),e.currentMenuItem.isSubmenuItem?e.currentMenuItem.elements.toggle.isOpen?e.currentMenuItem.elements.toggle.close():e.currentMenuItem.elements.toggle.preview():e.currentMenuItem.dom.link.click();else if("Escape"===n)e.isTopLevel&&e.elements.controller&&e.elements.controller.isOpen&&(e.elements.controller.close(),e.focusController());else if("ArrowDown"===n)_(t),e.currentMenuItem.isSubmenuItem&&e.currentMenuItem.elements.toggle.isOpen?(e.blurCurrentChild(),e.currentMenuItem.elements.childMenu.currentEvent=e.currentEvent,e.currentMenuItem.elements.childMenu.focusFirstChild()):e.isTopLevel||e.currentChild!==e.elements.menuItems.length-1?e.focusNextChild():e.focusParentsNextChild();else if("ArrowUp"===n){_(t);var l=e.elements.menuItems[e.currentChild-1];l&&l.isSubmenuItem&&l.elements.toggle.isOpen?(e.blurCurrentChild(),e.currentChild=e.currentChild-1,e.currentMenuItem.elements.childMenu.currentEvent=e.currentEvent,e.focusChildsLastNode()):e.isTopLevel||0!==e.currentChild?e.focusPreviousChild():(e.blurCurrentChild(),e.elements.parentMenu.currentEvent=e.currentEvent,e.elements.parentMenu.focusCurrentChild())}else"ArrowRight"===n?e.currentMenuItem.isSubmenuItem&&(_(t),e.currentMenuItem.elements.toggle.isOpen?(e.blurCurrentChild(),e.currentMenuItem.elements.childMenu.currentEvent=e.currentEvent,e.currentMenuItem.elements.childMenu.focusFirstChild()):e.currentMenuItem.elements.toggle.preview()):"ArrowLeft"===n?(_(t),e.currentMenuItem.isSubmenuItem&&e.currentMenuItem.elements.toggle.isOpen?(e.currentMenuItem.elements.childMenu.blurCurrentChild(),e.currentMenuItem.elements.toggle.close()):e.isTopLevel||(e.blurCurrentChild(),e.elements.parentMenu.currentEvent=e.currentEvent,e.elements.parentMenu.focusCurrentChild())):"Home"===n?(_(t),e.blurCurrentChild(),e.elements.rootMenu.focusFirstChild()):"End"===n?(_(t),e.blurCurrentChild(),e.elements.rootMenu.focusLastNode()):"Asterisk"===n&&(_(t),e.openChildren())}else _(t),e.elements.rootMenu.currentEvent="character",e.focusNextNodeWithCharacter(t.key)}))}},{key:"focusLastNode",value:function(){var e=this.elements.menuItems.length-1,t=this.elements.menuItems[e];t.isSubmenuItem&&t.elements.toggle.isOpen?(this.currentChild=e,t.elements.childMenu.currentEvent=this.currentEvent,t.elements.childMenu.focusLastNode()):this.focusLastChild()}},{key:"openChildren",value:function(){this.elements.submenuToggles.forEach((function(e){return e.preview()}))}},{key:"focusNextNodeWithCharacter",value:function(e){for(var t=e.toLowerCase(),n=function e(t){var n=[];return t.elements.menuItems.forEach((function(t){n.push(t),t.isSubmenuItem&&t.elements.toggle.isOpen&&(n=[].concat(h(n),h(e(t.elements.toggle.elements.controlledMenu))))})),n}(this.elements.rootMenu),s=n.indexOf(this.currentMenuItem)+1,o=[].concat(h(n.slice(s)),h(n.slice(0,s))),r=0,l=!1;!l&&r<o.length;){if((o[r].dom.item.innerText?o[r].dom.item.innerText:o[r].dom.item.textContent).replace(/[\s]/g,"").toLowerCase().charAt(0)===t){l=!0;var i=o[r].elements.parentMenu,u=i.elements.menuItems.indexOf(o[r]);this.elements.rootMenu.blurChildren(),i.focusChild(u)}r++}}},{key:"focusParentsNextChild",value:function(){this.elements.parentMenu&&(this.elements.parentMenu.currentEvent=this.currentEvent,this.elements.parentMenu.currentChild===this.elements.parentMenu.elements.menuItems.length-1?(this.elements.parentMenu.blurCurrentChild(),this.elements.parentMenu.focusParentsNextChild()):(this.blurChildren(),this.elements.parentMenu.focusNextChild()))}},{key:"focusChildsLastNode",value:function(){this.currentMenuItem.elements.childMenu.currentEvent=this.currentEvent,this.currentMenuItem.elements.childMenu.focusLastChild(),this.currentMenuItem.elements.childMenu.currentMenuItem.isSubmenuItem&&this.currentMenuItem.elements.childMenu.currentMenuItem.elements.toggle.isOpen&&(this.currentMenuItem.elements.childMenu.blurCurrentChild(),this.currentMenuItem.elements.childMenu.focusChildsLastNode())}}]),i}();export{k as default};
//# sourceMappingURL=treeview.esm.min.js.map
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{3070:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(10);var l=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(this,arguments)}var i=function(e){return l.default.createElement("svg",o({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},e),l.default.createElement("g",{fill:"none",fillRule:"evenodd"},l.default.createElement("path",{fill:"#119639",d:"M16 0l13.856 8v16L16 32 2.144 24V8z"}),l.default.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M11.17 13.512v8.376a1.607 1.607 0 1 1-3.215 0V9.632c0-1.432 1.731-2.149 2.744-1.136l9.51 9.512V9.632a1.607 1.607 0 0 1 3.215 0v12.256c0 1.432-1.731 2.149-2.744 1.136l-9.51-9.512z"})))},r=i;t.icon=r,i.__docgenInfo={description:"",methods:[],displayName:"EuiIconLogoNginx"}}}]);
//# sourceMappingURL=icon.logo_nginx-js.min.js.map
|
'use strict';
// ----------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired, AuthenticationError, DDoSProtection } = require ('./base/errors');
// ----------------------------------------------------------------------------
module.exports = class coinbase extends Exchange {
describe () {
return this.deepExtend (super.describe (), {
'id': 'coinbase',
'name': 'Coinbase',
'countries': [ 'US' ],
'rateLimit': 400, // 10k calls per hour
'version': 'v2',
'userAgent': this.userAgents['chrome'],
'headers': {
'CB-VERSION': '2018-05-30',
},
'has': {
'CORS': true,
'cancelOrder': false,
'createDepositAddress': false,
'createOrder': false,
'deposit': false,
'fetchBalance': true,
'fetchClosedOrders': false,
'fetchCurrencies': true,
'fetchDepositAddress': false,
'fetchMarkets': false,
'fetchMyTrades': false,
'fetchOHLCV': false,
'fetchOpenOrders': false,
'fetchOrder': false,
'fetchOrderBook': false,
'fetchOrders': false,
'fetchTicker': true,
'fetchTickers': false,
'fetchBidsAsks': false,
'fetchTrades': false,
'withdraw': false,
'fetchTransactions': false,
'fetchDeposits': true,
'fetchWithdrawals': true,
'fetchMySells': true,
'fetchMyBuys': true,
},
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/40811661-b6eceae2-653a-11e8-829e-10bfadb078cf.jpg',
'api': 'https://api.coinbase.com',
'www': 'https://www.coinbase.com',
'doc': 'https://developers.coinbase.com/api/v2',
'fees': 'https://support.coinbase.com/customer/portal/articles/2109597-buy-sell-bank-transfer-fees',
'referral': 'https://www.coinbase.com/join/58cbe25a355148797479dbd2',
},
'requiredCredentials': {
'apiKey': true,
'secret': true,
},
'api': {
'public': {
'get': [
'currencies',
'time',
'exchange-rates',
'users/{user_id}',
'prices/{symbol}/buy',
'prices/{symbol}/sell',
'prices/{symbol}/spot',
],
},
'private': {
'get': [
'accounts',
'accounts/{account_id}',
'accounts/{account_id}/addresses',
'accounts/{account_id}/addresses/{address_id}',
'accounts/{account_id}/addresses/{address_id}/transactions',
'accounts/{account_id}/transactions',
'accounts/{account_id}/transactions/{transaction_id}',
'accounts/{account_id}/buys',
'accounts/{account_id}/buys/{buy_id}',
'accounts/{account_id}/sells',
'accounts/{account_id}/sells/{sell_id}',
'accounts/{account_id}/deposits',
'accounts/{account_id}/deposits/{deposit_id}',
'accounts/{account_id}/withdrawals',
'accounts/{account_id}/withdrawals/{withdrawal_id}',
'payment-methods',
'payment-methods/{payment_method_id}',
'user',
'user/auth',
],
'post': [
'accounts',
'accounts/{account_id}/primary',
'accounts/{account_id}/addresses',
'accounts/{account_id}/transactions',
'accounts/{account_id}/transactions/{transaction_id}/complete',
'accounts/{account_id}/transactions/{transaction_id}/resend',
'accounts/{account_id}/buys',
'accounts/{account_id}/buys/{buy_id}/commit',
'accounts/{account_id}/sells',
'accounts/{account_id}/sells/{sell_id}/commit',
'accounts/{account_id}/deposists',
'accounts/{account_id}/deposists/{deposit_id}/commit',
'accounts/{account_id}/withdrawals',
'accounts/{account_id}/withdrawals/{withdrawal_id}/commit',
],
'put': [
'accounts/{account_id}',
'user',
],
'delete': [
'accounts/{id}',
'accounts/{account_id}/transactions/{transaction_id}',
],
},
},
'exceptions': {
'two_factor_required': AuthenticationError, // 402 When sending money over 2fa limit
'param_required': ExchangeError, // 400 Missing parameter
'validation_error': ExchangeError, // 400 Unable to validate POST/PUT
'invalid_request': ExchangeError, // 400 Invalid request
'personal_details_required': AuthenticationError, // 400 User’s personal detail required to complete this request
'identity_verification_required': AuthenticationError, // 400 Identity verification is required to complete this request
'jumio_verification_required': AuthenticationError, // 400 Document verification is required to complete this request
'jumio_face_match_verification_required': AuthenticationError, // 400 Document verification including face match is required to complete this request
'unverified_email': AuthenticationError, // 400 User has not verified their email
'authentication_error': AuthenticationError, // 401 Invalid auth (generic)
'invalid_token': AuthenticationError, // 401 Invalid Oauth token
'revoked_token': AuthenticationError, // 401 Revoked Oauth token
'expired_token': AuthenticationError, // 401 Expired Oauth token
'invalid_scope': AuthenticationError, // 403 User hasn’t authenticated necessary scope
'not_found': ExchangeError, // 404 Resource not found
'rate_limit_exceeded': DDoSProtection, // 429 Rate limit exceeded
'internal_server_error': ExchangeError, // 500 Internal server error
},
'markets': {
'BTC/USD': { 'id': 'btc-usd', 'symbol': 'BTC/USD', 'base': 'BTC', 'quote': 'USD' },
'LTC/USD': { 'id': 'ltc-usd', 'symbol': 'LTC/USD', 'base': 'LTC', 'quote': 'USD' },
'ETH/USD': { 'id': 'eth-usd', 'symbol': 'ETH/USD', 'base': 'ETH', 'quote': 'USD' },
'BCH/USD': { 'id': 'bch-usd', 'symbol': 'BCH/USD', 'base': 'BCH', 'quote': 'USD' },
},
'options': {
'accounts': [
'wallet',
'fiat',
// 'vault',
],
},
});
}
async fetchTime () {
let response = await this.publicGetTime ();
let data = response['data'];
return this.parse8601 (data['iso']);
}
async loadAccounts (reload = false) {
if (reload) {
this.accounts = await this.fetchAccounts ();
} else {
if (this.accounts) {
return this.accounts;
} else {
this.accounts = await this.fetchAccounts ();
this.accountsById = this.indexBy (this.accounts, 'id');
}
}
return this.accounts;
}
async fetchAccounts () {
await this.loadMarkets ();
let response = await this.privateGetAccounts ();
return response['data'];
}
async fetchMySells (symbol = undefined, since = undefined, limit = undefined, params = {}) {
// they don't have an endpoint for all historical trades
const accountId = this.safeString2 (params, 'account_id', 'accountId');
if (accountId === undefined) {
throw new ArgumentsRequired (this.id + ' fetchMyTrades requires an account_id or accountId extra parameter, use fetchAccounts or loadAccounts to get ids of all your accounts.');
}
await this.loadMarkets ();
const query = this.omit (params, [ 'account_id', 'accountId' ]);
const sells = await this.privateGetAccountsAccountIdSells (this.extend ({
'account_id': accountId,
}, query));
return this.parseTrades (sells['data'], undefined, since, limit);
}
async fetchMyBuys (symbol = undefined, since = undefined, limit = undefined, params = {}) {
// they don't have an endpoint for all historical trades
const accountId = this.safeString2 (params, 'account_id', 'accountId');
if (accountId === undefined) {
throw new ArgumentsRequired (this.id + ' fetchMyTrades requires an account_id or accountId extra parameter, use fetchAccounts or loadAccounts to get ids of all your accounts.');
}
await this.loadMarkets ();
const query = this.omit (params, [ 'account_id', 'accountId' ]);
const buys = await this.privateGetAccountsAccountIdBuys (this.extend ({
'account_id': accountId,
}, query));
return this.parseTrades (buys['data'], undefined, since, limit);
}
async fetchTransactionsWithMethod (method, code = undefined, since = undefined, limit = undefined, params = {}) {
const accountId = this.safeString2 (params, 'account_id', 'accountId');
if (accountId === undefined) {
throw new ArgumentsRequired (this.id + ' fetchTransactionsWithMethod requires an account_id or accountId extra parameter, use fetchAccounts or loadAccounts to get ids of all your accounts.');
}
await this.loadMarkets ();
const query = this.omit (params, [ 'account_id', 'accountId' ]);
const response = await this[method] (this.extend ({
'account_id': accountId,
}, query));
return this.parseTransactions (response['data'], undefined, since, limit);
}
async fetchWithdrawals (code = undefined, since = undefined, limit = undefined, params = {}) {
return await this.fetchTransactionsWithMethod ('privateGetAccountsAccountIdWithdrawals', code, since, limit, params);
}
async fetchDeposits (code = undefined, since = undefined, limit = undefined, params = {}) {
return await this.fetchTransactionsWithMethod ('privateGetAccountsAccountIdDeposits', code, since, limit, params);
}
parseTransactionStatus (status) {
const statuses = {
'created': 'pending',
'completed': 'ok',
'canceled': 'canceled',
};
return this.safeString (statuses, status, status);
}
parseTransaction (transaction, market = undefined) {
//
// DEPOSIT
// id: '406176b1-92cf-598f-ab6e-7d87e4a6cac1',
// status: 'completed',
// payment_method: [Object],
// transaction: [Object],
// user_reference: 'JQKBN85B',
// created_at: '2018-10-01T14:58:21Z',
// updated_at: '2018-10-01T17:57:27Z',
// resource: 'deposit',
// resource_path: '/v2/accounts/7702be4f-de96-5f08-b13b-32377c449ecf/deposits/406176b1-92cf-598f-ab6e-7d87e4a6cac1',
// committed: true,
// payout_at: '2018-10-01T14:58:34Z',
// instant: true,
// fee: [Object],
// amount: [Object],
// subtotal: [Object],
// hold_until: '2018-10-04T07:00:00Z',
// hold_days: 3
//
// WITHDRAWAL
// {
// "id": "67e0eaec-07d7-54c4-a72c-2e92826897df",
// "status": "completed",
// "payment_method": {
// "id": "83562370-3e5c-51db-87da-752af5ab9559",
// "resource": "payment_method",
// "resource_path": "/v2/payment-methods/83562370-3e5c-51db-87da-752af5ab9559"
// },
// "transaction": {
// "id": "441b9494-b3f0-5b98-b9b0-4d82c21c252a",
// "resource": "transaction",
// "resource_path": "/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/transactions/441b9494-b3f0-5b98-b9b0-4d82c21c252a"
// },
// "amount": {
// "amount": "10.00",
// "currency": "USD"
// },
// "subtotal": {
// "amount": "10.00",
// "currency": "USD"
// },
// "created_at": "2015-01-31T20:49:02Z",
// "updated_at": "2015-02-11T16:54:02-08:00",
// "resource": "withdrawal",
// "resource_path": "/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/withdrawals/67e0eaec-07d7-54c4-a72c-2e92826897df",
// "committed": true,
// "fee": {
// "amount": "0.00",
// "currency": "USD"
// },
// "payout_at": "2015-02-18T16:54:00-08:00"
// }
let amountObject = this.safeValue (transaction, 'amount', {});
let feeObject = this.safeValue (transaction, 'fee', {});
let id = this.safeString (transaction, 'id');
let timestamp = this.parse8601 (this.safeValue (transaction, 'created_at'));
let updated = this.parse8601 (this.safeValue (transaction, 'updated_at'));
let orderId = undefined;
let type = this.safeString (transaction, 'resource');
let amount = this.safeFloat (amountObject, 'amount');
let currencyId = this.safeString (amountObject, 'currency');
let currency = this.commonCurrencyCode (currencyId);
let feeCost = this.safeFloat (feeObject, 'amount');
let feeCurrencyId = this.safeString (feeObject, 'currency');
let feeCurrency = this.commonCurrencyCode (feeCurrencyId);
let fee = {
'cost': feeCost,
'currency': feeCurrency,
};
let status = this.parseTransactionStatus (this.safeString (transaction, 'status'));
if (status === undefined) {
let committed = this.safeValue (transaction, 'committed');
status = committed ? 'ok' : 'pending';
}
return {
'info': transaction,
'id': id,
'txid': id,
'order': orderId,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'address': undefined,
'tag': undefined,
'type': type,
'amount': amount,
'currency': currency,
'status': status,
'updated': updated,
'fee': fee,
};
}
parseTrade (trade, market = undefined) {
//
// {
// "id": "67e0eaec-07d7-54c4-a72c-2e92826897df",
// "status": "completed",
// "payment_method": {
// "id": "83562370-3e5c-51db-87da-752af5ab9559",
// "resource": "payment_method",
// "resource_path": "/v2/payment-methods/83562370-3e5c-51db-87da-752af5ab9559"
// },
// "transaction": {
// "id": "441b9494-b3f0-5b98-b9b0-4d82c21c252a",
// "resource": "transaction",
// "resource_path": "/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/transactions/441b9494-b3f0-5b98-b9b0-4d82c21c252a"
// },
// "amount": {
// "amount": "1.00000000",
// "currency": "BTC"
// },
// "total": {
// "amount": "10.25",
// "currency": "USD"
// },
// "subtotal": {
// "amount": "10.10",
// "currency": "USD"
// },
// "created_at": "2015-01-31T20:49:02Z",
// "updated_at": "2015-02-11T16:54:02-08:00",
// "resource": "buy",
// "resource_path": "/v2/accounts/2bbf394c-193b-5b2a-9155-3b4732659ede/buys/67e0eaec-07d7-54c4-a72c-2e92826897df",
// "committed": true,
// "instant": false,
// "fee": {
// "amount": "0.15",
// "currency": "USD"
// },
// "payout_at": "2015-02-18T16:54:00-08:00"
// }
//
let symbol = undefined;
let totalObject = this.safeValue (trade, 'total', {});
let amountObject = this.safeValue (trade, 'amount', {});
let subtotalObject = this.safeValue (trade, 'subtotal', {});
let feeObject = this.safeValue (trade, 'fee', {});
let id = this.safeString (trade, 'id');
let timestamp = this.parse8601 (this.safeValue (trade, 'created_at'));
if (market === undefined) {
let baseId = this.safeString (totalObject, 'currency');
let quoteId = this.safeString (amountObject, 'currency');
if ((baseId !== undefined) && (quoteId !== undefined)) {
let base = this.commonCurrencyCode (baseId);
let quote = this.commonCurrencyCode (quoteId);
symbol = base + '/' + quote;
}
}
let orderId = undefined;
let side = this.safeString (trade, 'resource');
let type = undefined;
let cost = this.safeFloat (subtotalObject, 'amount');
let amount = this.safeFloat (amountObject, 'amount');
let price = undefined;
if (cost !== undefined) {
if (amount !== undefined) {
price = cost / amount;
}
}
let feeCost = this.safeFloat (feeObject, 'amount');
let feeCurrencyId = this.safeString (feeObject, 'currency');
let feeCurrency = this.commonCurrencyCode (feeCurrencyId);
let fee = {
'cost': feeCost,
'currency': feeCurrency,
};
return {
'info': trade,
'id': id,
'order': orderId,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'symbol': symbol,
'type': type,
'side': side,
'price': price,
'amount': amount,
'cost': cost,
'fee': fee,
};
}
async fetchCurrencies (params = {}) {
let response = await this.publicGetCurrencies (params);
let currencies = response['data'];
let result = {};
for (let c = 0; c < currencies.length; c++) {
let currency = currencies[c];
let id = currency['id'];
let name = currency['name'];
let code = this.commonCurrencyCode (id);
let minimum = this.safeFloat (currency, 'min_size');
result[code] = {
'id': id,
'code': code,
'info': currency, // the original payload
'name': name,
'active': true,
'fee': undefined,
'precision': undefined,
'limits': {
'amount': {
'min': minimum,
'max': undefined,
},
'price': {
'min': undefined,
'max': undefined,
},
'cost': {
'min': undefined,
'max': undefined,
},
'withdraw': {
'min': undefined,
'max': undefined,
},
},
};
}
return result;
}
async fetchTicker (symbol, params = {}) {
await this.loadMarkets ();
let timestamp = this.seconds ();
let market = this.market (symbol);
let request = this.extend ({
'symbol': market['id'],
}, params);
let buy = await this.publicGetPricesSymbolBuy (request);
let sell = await this.publicGetPricesSymbolSell (request);
let spot = await this.publicGetPricesSymbolSpot (request);
let ask = this.safeFloat (buy['data'], 'amount');
let bid = this.safeFloat (sell['data'], 'amount');
let last = this.safeFloat (spot['data'], 'amount');
return {
'symbol': symbol,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'bid': bid,
'ask': ask,
'last': last,
'high': undefined,
'low': undefined,
'bidVolume': undefined,
'askVolume': undefined,
'vwap': undefined,
'open': undefined,
'close': undefined,
'previousClose': undefined,
'change': undefined,
'percentage': undefined,
'average': undefined,
'baseVolume': undefined,
'quoteVolume': undefined,
'info': {
'buy': buy,
'sell': sell,
'spot': spot,
},
};
}
async fetchBalance (params = {}) {
let response = await this.privateGetAccounts ();
let balances = response['data'];
let accounts = this.safeValue (params, 'type', this.options['accounts']);
let result = { 'info': response };
for (let b = 0; b < balances.length; b++) {
let balance = balances[b];
if (this.inArray (balance['type'], accounts)) {
let currencyId = balance['balance']['currency'];
let code = currencyId;
if (currencyId in this.currencies_by_id)
code = this.currencies_by_id[currencyId]['code'];
let total = this.safeFloat (balance['balance'], 'amount');
let free = total;
let used = undefined;
if (code in result) {
result[code]['free'] += total;
result[code]['total'] += total;
} else {
let account = {
'free': free,
'used': used,
'total': total,
};
result[code] = account;
}
}
}
return this.parseBalance (result);
}
sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
let request = '/' + this.implodeParams (path, params);
let query = this.omit (params, this.extractParams (path));
if (method === 'GET') {
if (Object.keys (query).length)
request += '?' + this.urlencode (query);
}
let url = this.urls['api'] + '/' + this.version + request;
if (api === 'private') {
this.checkRequiredCredentials ();
let nonce = this.nonce ().toString ();
let payload = '';
if (method !== 'GET') {
if (Object.keys (query).length) {
body = this.json (query);
payload = body;
}
}
let what = nonce + method + '/' + this.version + request + payload;
let signature = this.hmac (this.encode (what), this.encode (this.secret));
headers = {
'CB-ACCESS-KEY': this.apiKey,
'CB-ACCESS-SIGN': signature,
'CB-ACCESS-TIMESTAMP': nonce,
'Content-Type': 'application/json',
};
}
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}
handleErrors (code, reason, url, method, headers, body, response = undefined) {
if (typeof body !== 'string')
return; // fallback to default error handler
if (body.length < 2)
return; // fallback to default error handler
if ((body[0] === '{') || (body[0] === '[')) {
response = JSON.parse (body);
let feedback = this.id + ' ' + body;
//
// {"error": "invalid_request", "error_description": "The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed."}
//
// or
//
// {
// "errors": [
// {
// "id": "not_found",
// "message": "Not found"
// }
// ]
// }
//
let exceptions = this.exceptions;
let errorCode = this.safeString (response, 'error');
if (errorCode !== undefined) {
if (errorCode in exceptions) {
throw new exceptions[errorCode] (feedback);
} else {
throw new ExchangeError (feedback);
}
}
let errors = this.safeValue (response, 'errors');
if (errors !== undefined) {
if (Array.isArray (errors)) {
let numErrors = errors.length;
if (numErrors > 0) {
errorCode = this.safeString (errors[0], 'id');
if (errorCode !== undefined) {
if (errorCode in exceptions) {
throw new exceptions[errorCode] (feedback);
} else {
throw new ExchangeError (feedback);
}
}
}
}
}
let data = this.safeValue (response, 'data');
if (data === undefined)
throw new ExchangeError (this.id + ' failed due to a malformed response ' + this.json (response));
}
}
};
|
const Pet = require("../models/PetModel");
module.exports = {
createOnePet: async (req, res) => {
try {
const pet = await Pet.create(req.body);
res.json(pet);
} catch (error) {
res.status(400).json(error);
}
},
deleteOnePet: async (req, res) => {
try {
const pet = await Pet.findByIdAndRemove(req.params.id);
res.json(pet);
} catch (error) {
res.json(error);
}
},
updateOnePet: async (req, res) => {
try {
const { skills, ...bodyRest } = req.body;
const pet = await Pet.findByIdAndUpdate(
req.params.id,
{ $set: bodyRest, $addToSet: { skills: { $each: skills } } },
{ new: true }
);
if (!pet) {
return res.json({});
}
res.json(pet);
} catch (error) {
res.status(400).json(error);
}
},
likeOnePet: async (req, res) => {
try {
const pet = await Pet.findByIdAndUpdate(
req.params.id,
{
$inc: { likes: 1 },
},
{ new: true }
);
if (!pet) {
return res.json({});
}
res.json(pet);
} catch (error) {
res.json(error);
}
},
getAllPets: async (req, res) => {
try {
const pets = await Pet.find();
res.json({ pets });
} catch (error) {
res.json(error);
}
},
getOnePet: async (req, res) => {
try {
const pet = await Pet.findById(req.params.id);
if (!pet) {
return res.json({});
}
res.json(pet);
} catch (error) {
res.status(400).json(error);
}
},
};
|
/**
* Framework7 5.7.12
* Full featured mobile HTML framework for building iOS & Android apps
* https://framework7.io/
*
* Copyright 2014-2020 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: September 3, 2020
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Framework7=t()}(this,(function(){"use strict";var t7ctx;t7ctx="undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;var Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:function(e){return"function"==typeof e},escape:function(e){return void 0===e&&(e=""),e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},helperToSlices:function(e){var t,a,r,n=Template7Utils.quoteDoubleRexExp,o=Template7Utils.quoteSingleRexExp,i=e.replace(/[{}#}]/g,"").trim().split(" "),s=[];for(a=0;a<i.length;a+=1){var l=i[a],c=void 0,u=void 0;if(0===a)s.push(l);else if(0===l.indexOf('"')||0===l.indexOf("'"))if(c=0===l.indexOf('"')?n:o,u=0===l.indexOf('"')?'"':"'",2===l.match(c).length)s.push(l);else{for(t=0,r=a+1;r<i.length;r+=1)if(l+=" "+i[r],i[r].indexOf(u)>=0){t=r,s.push(l);break}t&&(a=t)}else if(l.indexOf("=")>0){var p=l.split("="),d=p[0],h=p[1];if(c||(c=0===h.indexOf('"')?n:o,u=0===h.indexOf('"')?'"':"'"),2!==h.match(c).length){for(t=0,r=a+1;r<i.length;r+=1)if(h+=" "+i[r],i[r].indexOf(u)>=0){t=r;break}t&&(a=t)}var f=[d,h.replace(c,"")];s.push(f)}else s.push(l)}return s},stringToBlocks:function(e){var t,a,r=[];if(!e)return[];var n=e.split(/({{[^{^}]*}})/);for(t=0;t<n.length;t+=1){var o=n[t];if(""!==o)if(o.indexOf("{{")<0)r.push({type:"plain",content:o});else{if(o.indexOf("{/")>=0)continue;if((o=o.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}")).indexOf("{#")<0&&o.indexOf(" ")<0&&o.indexOf("else")<0){r.push({type:"variable",contextName:o.replace(/[{}]/g,"")});continue}var i=Template7Utils.helperToSlices(o),s=i[0],l=">"===s,c=[],u={};for(a=1;a<i.length;a+=1){var p=i[a];Array.isArray(p)?u[p[0]]="false"!==p[1]&&p[1]:c.push(p)}if(o.indexOf("{#")>=0){var d="",h="",f=0,v=void 0,m=!1,g=!1,b=0;for(a=t+1;a<n.length;a+=1)if(n[a].indexOf("{{#")>=0&&(b+=1),n[a].indexOf("{{/")>=0&&(b-=1),n[a].indexOf("{{#"+s)>=0)d+=n[a],g&&(h+=n[a]),f+=1;else if(n[a].indexOf("{{/"+s)>=0){if(!(f>0)){v=a,m=!0;break}f-=1,d+=n[a],g&&(h+=n[a])}else n[a].indexOf("else")>=0&&0===b?g=!0:(g||(d+=n[a]),g&&(h+=n[a]));m&&(v&&(t=v),"raw"===s?r.push({type:"plain",content:d}):r.push({type:"helper",helperName:s,contextName:c,content:d,inverseContent:h,hash:u}))}else o.indexOf(" ")>0&&(l&&(s="_partial",c[0]&&(0===c[0].indexOf("[")?c[0]=c[0].replace(/[[\]]/g,""):c[0]='"'+c[0].replace(/"|'/g,"")+'"')),r.push({type:"helper",helperName:s,contextName:c,hash:u}))}}return r},parseJsVariable:function(e,t,a){return e.split(/([+ \-*/^()&=|<>!%:?])/g).reduce((function(e,r){if(!r)return e;if(r.indexOf(t)<0)return e.push(r),e;if(!a)return e.push(JSON.stringify("")),e;var n=a;return r.indexOf(t+".")>=0&&r.split(t+".")[1].split(".").forEach((function(e){n=e in n?n[e]:void 0})),("string"==typeof n||Array.isArray(n)||n.constructor&&n.constructor===Object)&&(n=JSON.stringify(n)),void 0===n&&(n="undefined"),e.push(n),e}),[]).join("")},parseJsParents:function(e,t){return e.split(/([+ \-*^()&=|<>!%:?])/g).reduce((function(e,a){if(!a)return e;if(a.indexOf("../")<0)return e.push(a),e;if(!t||0===t.length)return e.push(JSON.stringify("")),e;var r=a.split("../").length-1,n=r>t.length?t[t.length-1]:t[r-1];return a.replace(/..\//g,"").split(".").forEach((function(e){n=void 0!==n[e]?n[e]:"undefined"})),!1===n||!0===n?(e.push(JSON.stringify(n)),e):null===n||"undefined"===n?(e.push(JSON.stringify("")),e):(e.push(JSON.stringify(n)),e)}),[]).join("")},getCompileVar:function(e,t,a){void 0===a&&(a="data_1");var r,n,o=t,i=0;0===e.indexOf("../")?(i=e.split("../").length-1,n=o.split("_")[1]-i,o="ctx_"+(n>=1?n:1),r=e.split("../")[i].split(".")):0===e.indexOf("@global")?(o="Template7.global",r=e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(o="root",r=e.split("@root.")[1].split(".")):r=e.split(".");for(var s=0;s<r.length;s+=1){var l=r[s];if(0===l.indexOf("@")){var c=a.split("_")[1];i>0&&(c=n),s>0?o+="[(data_"+c+" && data_"+c+"."+l.replace("@","")+")]":o="(data_"+c+" && data_"+c+"."+l.replace("@","")+")"}else(Number.isFinite?Number.isFinite(l):Template7Context.isFinite(l))?o+="["+l+"]":"this"===l||l.indexOf("this.")>=0||l.indexOf("this[")>=0||l.indexOf("this(")>=0?o=l.replace("this",t):o+="."+l}return o},getCompiledArguments:function(e,t,a){for(var r=[],n=0;n<e.length;n+=1)/^['"]/.test(e[n])||/^(true|false|\d+)$/.test(e[n])?r.push(e[n]):r.push(Template7Utils.getCompileVar(e[n],t,a));return r.join(", ")}},Template7Helpers={_partial:function(e,t){var a=this,r=Template7Class.partials[e];return!r||r&&!r.template?"":(r.compiled||(r.compiled=new Template7Class(r.template).compile()),Object.keys(t.hash).forEach((function(e){a[e]=t.hash[e]})),r.compiled(a,t.data,t.root))},escape:function(e){if(null==e)return"";if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if:function(e,t){var a=e;return Template7Utils.isFunction(a)&&(a=a.call(this)),a?t.fn(this,t.data):t.inverse(this,t.data)},unless:function(e,t){var a=e;return Template7Utils.isFunction(a)&&(a=a.call(this)),a?t.inverse(this,t.data):t.fn(this,t.data)},each:function(e,t){var a=e,r="",n=0;if(Template7Utils.isFunction(a)&&(a=a.call(this)),Array.isArray(a)){for(t.hash.reverse&&(a=a.reverse()),n=0;n<a.length;n+=1)r+=t.fn(a[n],{first:0===n,last:n===a.length-1,index:n});t.hash.reverse&&(a=a.reverse())}else for(var o in a)n+=1,r+=t.fn(a[o],{key:o});return n>0?r:t.inverse(this)},with:function(e,t){var a=e;return Template7Utils.isFunction(a)&&(a=e.call(this)),t.fn(a)},join:function(e,t){var a=e;return Template7Utils.isFunction(a)&&(a=a.call(this)),a.join(t.hash.delimiter||t.hash.delimeter)},js:function js(expression,options){var data=options.data,func,execute=expression;return"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@"+e,"g"),a=new RegExp("@"+e,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(a,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){"+execute+"})":"(function(){return ("+execute+")})",eval(func).call(this)},js_if:function js_if(expression,options){var data=options.data,func,execute=expression;"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@"+e,"g"),a=new RegExp("@"+e,"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(a,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){"+execute+"})":"(function(){return ("+execute+")})";var condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;var Template7Options={},Template7Partials={},Template7Class=function(e){this.template=e},staticAccessors={options:{configurable:!0},partials:{configurable:!0},helpers:{configurable:!0}};function Template7(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a=e[0],r=e[1];if(2===e.length){var n=new Template7Class(a),o=n.compile()(r);return n=null,o}return new Template7Class(a)}function isObject(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function extend(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(a){void 0===e[a]?e[a]=t[a]:isObject(t[a])&&isObject(e[a])&&Object.keys(t[a]).length>0&&extend(e[a],t[a])}))}Template7Class.prototype.compile=function compile(template,depth){void 0===template&&(template=this.template),void 0===depth&&(depth=1);var t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");var stringToBlocks=Template7Utils.stringToBlocks,getCompileVar=Template7Utils.getCompileVar,getCompiledArguments=Template7Utils.getCompiledArguments,blocks=stringToBlocks(template),ctx="ctx_"+depth,data="data_"+depth;if(0===blocks.length)return function(){return""};function getCompileFn(e,a){return e.content?t.compile(e.content,a):function(){return""}}function getCompileInverse(e,a){return e.inverseContent?t.compile(e.inverseContent,a):function(){return""}}var resultString="",i;for(resultString+=1===depth?"(function ("+ctx+", "+data+", root) {\n":"(function ("+ctx+", "+data+") {\n",1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){var block=blocks[i];if("plain"!==block.type){var variable=void 0,compiledArguments=void 0;if("variable"===block.type&&(variable=getCompileVar(block.contextName,ctx,data),resultString+="r += c("+variable+", "+ctx+");"),"helper"===block.type){var parents=void 0;if("ctx_1"!==ctx){for(var level=ctx.split("_")[1],parentsString="ctx_"+(level-1),j=level-2;j>=1;j-=1)parentsString+=", ctx_"+j;parents="["+parentsString+"]"}else parents="["+ctx+"]";var dynamicHelper=void 0;if(0===block.helperName.indexOf("[")&&(block.helperName=getCompileVar(block.helperName.replace(/[[\]]/g,""),ctx,data),dynamicHelper=!0),dynamicHelper||block.helperName in Template7Helpers)compiledArguments=getCompiledArguments(block.contextName,ctx,data),resultString+="r += (Template7Helpers"+(dynamicHelper?"["+block.helperName+"]":"."+block.helperName)+").call("+ctx+", "+(compiledArguments&&compiledArguments+", ")+"{hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});";else{if(block.contextName.length>0)throw new Error('Template7: Missing helper: "'+block.helperName+'"');variable=getCompileVar(block.helperName,ctx,data),resultString+="if ("+variable+") {",resultString+="if (isArray("+variable+")) {",resultString+="r += (Template7Helpers.each).call("+ctx+", "+variable+", {hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});",resultString+="}else {",resultString+="r += (Template7Helpers.with).call("+ctx+", "+variable+", {hash:"+JSON.stringify(block.hash)+", data: "+data+" || {}, fn: "+getCompileFn(block,depth+1)+", inverse: "+getCompileInverse(block,depth+1)+", root: root, parents: "+parents+"});",resultString+="}}"}}}else resultString+="r +='"+block.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")+"';"}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString},staticAccessors.options.get=function(){return Template7Options},staticAccessors.partials.get=function(){return Template7Partials},staticAccessors.helpers.get=function(){return Template7Helpers},Object.defineProperties(Template7Class,staticAccessors),Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials;var doc="undefined"!=typeof document?document:{},ssrDocument={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};extend(doc,ssrDocument);var win="undefined"!=typeof window?window:{},ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};extend(win,ssrWindow);var Dom7=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function $(e,t){var a=[],r=0;if(e&&!t&&e instanceof Dom7)return e;if(e)if("string"==typeof e){var n,o,i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var s="div";for(0===i.indexOf("<li")&&(s="ul"),0===i.indexOf("<tr")&&(s="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(s="tr"),0===i.indexOf("<tbody")&&(s="table"),0===i.indexOf("<option")&&(s="select"),(o=doc.createElement(s)).innerHTML=i,r=0;r<o.childNodes.length;r+=1)a.push(o.childNodes[r])}else for(n=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||doc).querySelectorAll(e.trim()):[doc.getElementById(e.trim().split("#")[1])],r=0;r<n.length;r+=1)n[r]&&a.push(n[r])}else if(e.nodeType||e===win||e===doc)a.push(e);else if(e.length>0&&e[0].nodeType)for(r=0;r<e.length;r+=1)a.push(e[r]);return new Dom7(a)}function unique(e){for(var t=[],a=0;a<e.length;a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}function toCamelCase(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function requestAnimationFrame(e){return win.requestAnimationFrame?win.requestAnimationFrame(e):win.webkitRequestAnimationFrame?win.webkitRequestAnimationFrame(e):win.setTimeout(e,1e3/60)}function cancelAnimationFrame(e){return win.cancelAnimationFrame?win.cancelAnimationFrame(e):win.webkitCancelAnimationFrame?win.webkitCancelAnimationFrame(e):win.clearTimeout(e)}function addClass(e){if(void 0===e)return this;for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(t[a]);return this}function removeClass(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(t[a]);return this}function hasClass(e){return!!this[0]&&this[0].classList.contains(e)}function toggleClass(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(t[a]);return this}function attr(e,t){var a=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(2===a.length)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function removeAttr(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function prop(e,t){var a=arguments;if(1!==arguments.length||"string"!=typeof e){for(var r=0;r<this.length;r+=1)if(2===a.length)this[r][e]=t;else for(var n in e)this[r][n]=e[n];return this}if(this[0])return this[0][e]}function data(e,t){var a;if(void 0!==t){for(var r=0;r<this.length;r+=1)(a=this[r]).dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[e]=t;return this}if(a=this[0]){if(a.dom7ElementDataStorage&&e in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[e];var n=a.getAttribute("data-"+e);return n||void 0}}function removeData(e){for(var t=0;t<this.length;t+=1){var a=this[t];a.dom7ElementDataStorage&&a.dom7ElementDataStorage[e]&&(a.dom7ElementDataStorage[e]=null,delete a.dom7ElementDataStorage[e])}}function dataset(){var e=this[0];if(e){var t={};if(e.dataset)for(var a in e.dataset)t[a]=e.dataset[a];else for(var r=0;r<e.attributes.length;r+=1){var n=e.attributes[r];n.name.indexOf("data-")>=0&&(t[toCamelCase(n.name.split("data-")[1])]=n.value)}for(var o in t)"false"===t[o]?t[o]=!1:"true"===t[o]?t[o]=!0:parseFloat(t[o])===1*t[o]&&(t[o]*=1);return t}}function val(e){if(void 0!==e){for(var t=0;t<this.length;t+=1){var a=this[t];if(Array.isArray(e)&&a.multiple&&"select"===a.nodeName.toLowerCase())for(var r=0;r<a.options.length;r+=1)a.options[r].selected=e.indexOf(a.options[r].value)>=0;else a.value=e}return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var n=[],o=0;o<this[0].selectedOptions.length;o+=1)n.push(this[0].selectedOptions[o].value);return n}return this[0].value}}function transform(e){for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransform=e,a.transform=e}return this}function transition(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransitionDuration=e,a.transitionDuration=e}return this}function on(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=t[0],n=t[1],o=t[2],i=t[3];function s(e){var t=e.target;if(t){var a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),$(t).is(n))o.apply(t,a);else for(var r=$(t).parents(),i=0;i<r.length;i+=1)$(r[i]).is(n)&&o.apply(r[i],a)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(r=(e=t)[0],o=e[1],i=e[2],n=void 0),i||(i=!1);for(var c,u=r.split(" "),p=0;p<this.length;p+=1){var d=this[p];if(n)for(c=0;c<u.length;c+=1){var h=u[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[h]||(d.dom7LiveListeners[h]=[]),d.dom7LiveListeners[h].push({listener:o,proxyListener:s}),d.addEventListener(h,s,i)}else for(c=0;c<u.length;c+=1){var f=u[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[f]||(d.dom7Listeners[f]=[]),d.dom7Listeners[f].push({listener:o,proxyListener:l}),d.addEventListener(f,l,i)}}return this}function off(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=t[0],n=t[1],o=t[2],i=t[3];"function"==typeof t[1]&&(r=(e=t)[0],o=e[1],i=e[2],n=void 0),i||(i=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var p=this[u],d=void 0;if(!n&&p.dom7Listeners?d=p.dom7Listeners[c]:n&&p.dom7LiveListeners&&(d=p.dom7LiveListeners[c]),d&&d.length)for(var h=d.length-1;h>=0;h-=1){var f=d[h];o&&f.listener===o||o&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===o?(p.removeEventListener(c,f.proxyListener,i),d.splice(h,1)):o||(p.removeEventListener(c,f.proxyListener,i),d.splice(h,1))}}return this}function once(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=this,n=t[0],o=t[1],i=t[2],s=t[3];function l(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];i.apply(this,e),r.off(n,o,l,s),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof t[1]&&(n=(e=t)[0],i=e[1],s=e[2],o=void 0),l.dom7proxy=i,r.on(n,o,l,s)}function trigger(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=e[0].split(" "),r=e[1],n=0;n<a.length;n+=1)for(var o=a[n],i=0;i<this.length;i+=1){var s=this[i],l=void 0;try{l=new win.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(e){(l=doc.createEvent("Event")).initEvent(o,!0,!0),l.detail=r}s.dom7EventData=e.filter((function(e,t){return t>0})),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}return this}function transitionEnd(e){var t,a=["webkitTransitionEnd","transitionend"],r=this;function n(o){if(o.target===this)for(e.call(this,o),t=0;t<a.length;t+=1)r.off(a[t],n)}if(e)for(t=0;t<a.length;t+=1)r.on(a[t],n);return this}function animationEnd(e){var t,a=["webkitAnimationEnd","animationend"],r=this;function n(o){if(o.target===this)for(e.call(this,o),t=0;t<a.length;t+=1)r.off(a[t],n)}if(e)for(t=0;t<a.length;t+=1)r.on(a[t],n);return this}function width(){return this[0]===win?win.innerWidth:this.length>0?parseFloat(this.css("width")):null}function outerWidth(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function height(){return this[0]===win?win.innerHeight:this.length>0?parseFloat(this.css("height")):null}function outerHeight(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function offset(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=doc.body,r=e.clientTop||a.clientTop||0,n=e.clientLeft||a.clientLeft||0,o=e===win?win.scrollY:e.scrollTop,i=e===win?win.scrollX:e.scrollLeft;return{top:t.top+o-r,left:t.left+i-n}}return null}function hide(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function show(){for(var e=0;e<this.length;e+=1){var t=this[e];"none"===t.style.display&&(t.style.display=""),"none"===win.getComputedStyle(t,null).getPropertyValue("display")&&(t.style.display="block")}return this}function styles(){return this[0]?win.getComputedStyle(this[0],null):{}}function css(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(var r in e)this[a].style[r]=e[r];return this}if(this[0])return win.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this}return this}function toArray(){for(var e=[],t=0;t<this.length;t+=1)e.push(this[t]);return e}function each(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function forEach(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],this[t],t))return this;return this}function filter(e){for(var t=[],a=0;a<this.length;a+=1)e.call(this[a],a,this[a])&&t.push(this[a]);return new Dom7(t)}function map(e){for(var t=[],a=0;a<this.length;a+=1)t.push(e.call(this[a],a,this[a]));return new Dom7(t)}function html(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function text(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function is(e){var t,a,r=this[0];if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(t=$(e),a=0;a<t.length;a+=1)if(t[a]===r)return!0;return!1}if(e===doc)return r===doc;if(e===win)return r===win;if(e.nodeType||e instanceof Dom7){for(t=e.nodeType?[e]:e,a=0;a<t.length;a+=1)if(t[a]===r)return!0;return!1}return!1}function indexOf(e){for(var t=0;t<this.length;t+=1)if(this[t]===e)return t;return-1}function index(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function eq(e){if(void 0===e)return this;var t,a=this.length;return new Dom7(e>a-1?[]:e<0?(t=a+e)<0?[]:[this[t]]:[this[e]])}function append(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];for(var r=0;r<t.length;r+=1){e=t[r];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var o=doc.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof Dom7)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function appendTo(e){return $(e).append(this),this}function prepend(e){var t,a;for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=doc.createElement("div");for(r.innerHTML=e,a=r.childNodes.length-1;a>=0;a-=1)this[t].insertBefore(r.childNodes[a],this[t].childNodes[0])}else if(e instanceof Dom7)for(a=0;a<e.length;a+=1)this[t].insertBefore(e[a],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function prependTo(e){return $(e).prepend(this),this}function insertBefore(e){for(var t=$(e),a=0;a<this.length;a+=1)if(1===t.length)t[0].parentNode.insertBefore(this[a],t[0]);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[a].cloneNode(!0),t[r])}function insertAfter(e){for(var t=$(e),a=0;a<this.length;a+=1)if(1===t.length)t[0].parentNode.insertBefore(this[a],t[0].nextSibling);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[a].cloneNode(!0),t[r].nextSibling)}function next(e){return this.length>0?e?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(e)?new Dom7([this[0].nextElementSibling]):new Dom7([]):this[0].nextElementSibling?new Dom7([this[0].nextElementSibling]):new Dom7([]):new Dom7([])}function nextAll(e){var t=[],a=this[0];if(!a)return new Dom7([]);for(;a.nextElementSibling;){var r=a.nextElementSibling;e?$(r).is(e)&&t.push(r):t.push(r),a=r}return new Dom7(t)}function prev(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&$(t.previousElementSibling).is(e)?new Dom7([t.previousElementSibling]):new Dom7([]):t.previousElementSibling?new Dom7([t.previousElementSibling]):new Dom7([])}return new Dom7([])}function prevAll(e){var t=[],a=this[0];if(!a)return new Dom7([]);for(;a.previousElementSibling;){var r=a.previousElementSibling;e?$(r).is(e)&&t.push(r):t.push(r),a=r}return new Dom7(t)}function siblings(e){return this.nextAll(e).add(this.prevAll(e))}function parent(e){for(var t=[],a=0;a<this.length;a+=1)null!==this[a].parentNode&&(e?$(this[a].parentNode).is(e)&&t.push(this[a].parentNode):t.push(this[a].parentNode));return $(unique(t))}function parents(e){for(var t=[],a=0;a<this.length;a+=1)for(var r=this[a].parentNode;r;)e?$(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return $(unique(t))}function closest(e){var t=this;return void 0===e?new Dom7([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function find(e){for(var t=[],a=0;a<this.length;a+=1)for(var r=this[a].querySelectorAll(e),n=0;n<r.length;n+=1)t.push(r[n]);return new Dom7(t)}function children(e){for(var t=[],a=0;a<this.length;a+=1)for(var r=this[a].childNodes,n=0;n<r.length;n+=1)e?1===r[n].nodeType&&$(r[n]).is(e)&&t.push(r[n]):1===r[n].nodeType&&t.push(r[n]);return new Dom7(unique(t))}function remove(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function detach(){return this.remove()}function add(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,r,n=this;for(a=0;a<e.length;a+=1){var o=$(e[a]);for(r=0;r<o.length;r+=1)n[n.length]=o[r],n.length+=1}return n}function empty(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var a=0;a<t.childNodes.length;a+=1)t.childNodes[a].parentNode&&t.childNodes[a].parentNode.removeChild(t.childNodes[a]);t.textContent=""}}return this}$.fn=Dom7.prototype,$.Class=Dom7,$.Dom7=Dom7;var Methods=Object.freeze({addClass:addClass,removeClass:removeClass,hasClass:hasClass,toggleClass:toggleClass,attr:attr,removeAttr:removeAttr,prop:prop,data:data,removeData:removeData,dataset:dataset,val:val,transform:transform,transition:transition,on:on,off:off,once:once,trigger:trigger,transitionEnd:transitionEnd,animationEnd:animationEnd,width:width,outerWidth:outerWidth,height:height,outerHeight:outerHeight,offset:offset,hide:hide,show:show,styles:styles,css:css,toArray:toArray,each:each,forEach:forEach,filter:filter,map:map,html:html,text:text,is:is,indexOf:indexOf,index:index,eq:eq,append:append,appendTo:appendTo,prepend:prepend,prependTo:prependTo,insertBefore:insertBefore,insertAfter:insertAfter,next:next,nextAll:nextAll,prev:prev,prevAll:prevAll,siblings:siblings,parent:parent,parents:parents,closest:closest,find:find,children:children,remove:remove,detach:detach,add:add,empty:empty});function scrollTo(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=t[0],n=t[1],o=t[2],i=t[3],s=t[4];return 4===t.length&&"function"==typeof i&&(s=i,r=(e=t)[0],n=e[1],o=e[2],s=e[3],i=e[4]),void 0===i&&(i="swing"),this.each((function(){var e,t,a,l,c,u,p,d,h=this,f=n>0||0===n,v=r>0||0===r;if(void 0===i&&(i="swing"),f&&(e=h.scrollTop,o||(h.scrollTop=n)),v&&(t=h.scrollLeft,o||(h.scrollLeft=r)),o){f&&(a=h.scrollHeight-h.offsetHeight,c=Math.max(Math.min(n,a),0)),v&&(l=h.scrollWidth-h.offsetWidth,u=Math.max(Math.min(r,l),0));var m=null;f&&c===e&&(f=!1),v&&u===t&&(v=!1),requestAnimationFrame((function a(r){void 0===r&&(r=(new Date).getTime()),null===m&&(m=r);var n,l=Math.max(Math.min((r-m)/o,1),0),g="linear"===i?l:.5-Math.cos(l*Math.PI)/2;f&&(p=e+g*(c-e)),v&&(d=t+g*(u-t)),f&&c>e&&p>=c&&(h.scrollTop=c,n=!0),f&&c<e&&p<=c&&(h.scrollTop=c,n=!0),v&&u>t&&d>=u&&(h.scrollLeft=u,n=!0),v&&u<t&&d<=u&&(h.scrollLeft=u,n=!0),n?s&&s():(f&&(h.scrollTop=p),v&&(h.scrollLeft=d),requestAnimationFrame(a))}))}}))}function scrollTop(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(r=(e=t)[0],n=e[1],i=e[2],o=e[3]);var s=this;return void 0===r?s.length>0?s[0].scrollTop:null:s.scrollTo(void 0,r,n,o,i)}function scrollLeft(){for(var e,t=[],a=arguments.length;a--;)t[a]=arguments[a];var r=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(r=(e=t)[0],n=e[1],i=e[2],o=e[3]);var s=this;return void 0===r?s.length>0?s[0].scrollLeft:null:s.scrollTo(r,void 0,n,o,i)}var Scroll=Object.freeze({scrollTo:scrollTo,scrollTop:scrollTop,scrollLeft:scrollLeft});function animate(e,t){var a,r=this,n={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:r,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){n.frameId&&cancelAnimationFrame(n.frameId),n.animating=!1,n.elements.each((function(e,t){delete t.dom7AnimateInstance})),n.que=[]},done:function(e){if(n.animating=!1,n.elements.each((function(e,t){delete t.dom7AnimateInstance})),e&&e(r),n.que.length>0){var t=n.que.shift();n.animate(t[0],t[1])}},animate:function(e,t){if(n.animating)return n.que.push([e,t]),n;var a=[];n.elements.each((function(t,r){var o,i,s,l,c;r.dom7AnimateInstance||(n.elements[t].dom7AnimateInstance=n),a[t]={container:r},Object.keys(e).forEach((function(n){o=win.getComputedStyle(r,null).getPropertyValue(n).replace(",","."),i=parseFloat(o),s=o.replace(i,""),l=parseFloat(e[n]),c=e[n]+s,a[t][n]={initialFullValue:o,initialValue:i,unit:s,finalValue:l,finalFullValue:c,currentValue:i}}))}));var o,i,s=null,l=0,c=0,u=!1;return n.animating=!0,n.frameId=requestAnimationFrame((function p(){var d,h;o=(new Date).getTime(),u||(u=!0,t.begin&&t.begin(r)),null===s&&(s=o),t.progress&&t.progress(r,Math.max(Math.min((o-s)/t.duration,1),0),s+t.duration-o<0?0:s+t.duration-o,s),a.forEach((function(r){var u=r;i||u.done||Object.keys(e).forEach((function(r){if(!i&&!u.done){d=Math.max(Math.min((o-s)/t.duration,1),0),h=n.easingProgress(t.easing,d);var p=u[r],f=p.initialValue,v=p.finalValue,m=p.unit;u[r].currentValue=f+h*(v-f);var g=u[r].currentValue;(v>f&&g>=v||v<f&&g<=v)&&(u.container.style[r]=v+m,(c+=1)===Object.keys(e).length&&(u.done=!0,l+=1),l===a.length&&(i=!0)),i?n.done(t.complete):u.container.style[r]=g+m}}))})),i||(n.frameId=requestAnimationFrame(p))})),n}};if(0===n.elements.length)return r;for(var o=0;o<n.elements.length;o+=1)n.elements[o].dom7AnimateInstance?a=n.elements[o].dom7AnimateInstance:n.elements[o].dom7AnimateInstance=n;return a||(a=n),"stop"===e?a.stop():a.animate(n.props,n.params),r}function stop(){for(var e=0;e<this.length;e+=1)this[e].dom7AnimateInstance&&this[e].dom7AnimateInstance.stop()}var Animate=Object.freeze({animate:animate,stop:stop}),noTrigger="resize scroll".split(" ");function eventShortcut(e){for(var t,a=[],r=arguments.length-1;r-- >0;)a[r]=arguments[r+1];if(void 0===a[0]){for(var n=0;n<this.length;n+=1)noTrigger.indexOf(e)<0&&(e in this[n]?this[n][e]():$(this[n]).trigger(e));return this}return(t=this).on.apply(t,[e].concat(a))}function click(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["click"].concat(e))}function blur(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["blur"].concat(e))}function focus(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focus"].concat(e))}function focusin(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focusin"].concat(e))}function focusout(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["focusout"].concat(e))}function keyup(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keyup"].concat(e))}function keydown(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keydown"].concat(e))}function keypress(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["keypress"].concat(e))}function submit(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["submit"].concat(e))}function change(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["change"].concat(e))}function mousedown(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mousedown"].concat(e))}function mousemove(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mousemove"].concat(e))}function mouseup(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseup"].concat(e))}function mouseenter(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseenter"].concat(e))}function mouseleave(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseleave"].concat(e))}function mouseout(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseout"].concat(e))}function mouseover(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["mouseover"].concat(e))}function touchstart(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchstart"].concat(e))}function touchend(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchend"].concat(e))}function touchmove(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["touchmove"].concat(e))}function resize(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["resize"].concat(e))}function scroll(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return eventShortcut.bind(this).apply(void 0,["scroll"].concat(e))}var eventShortcuts=Object.freeze({click:click,blur:blur,focus:focus,focusin:focusin,focusout:focusout,keyup:keyup,keydown:keydown,keypress:keypress,submit:submit,change:change,mousedown:mousedown,mousemove:mousemove,mouseup:mouseup,mouseenter:mouseenter,mouseleave:mouseleave,mouseout:mouseout,mouseover:mouseover,touchstart:touchstart,touchend:touchend,touchmove:touchmove,resize:resize,scroll:scroll});[Methods,Scroll,Animate,eventShortcuts].forEach((function(e){Object.keys(e).forEach((function(t){$.fn[t]=e[t]}))}));for(var defaultDiacriticsRemovalap=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],diacriticsMap={},i=0;i<defaultDiacriticsRemovalap.length;i+=1)for(var letters=defaultDiacriticsRemovalap[i].letters,j=0;j<letters.length;j+=1)diacriticsMap[letters[j]]=defaultDiacriticsRemovalap[i].base;var uniqueNumber=1,Utils={uniqueNumber:function(){return uniqueNumber+=1},id:function(e,t){void 0===e&&(e="xxxxxxxxxx"),void 0===t&&(t="0123456789abcdef");var a=t.length;return e.replace(/x/g,(function(){return t[Math.floor(Math.random()*a)]}))},mdPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-gap"></span>\n <span class="preloader-inner-left">\n <span class="preloader-inner-half-circle"></span>\n </span>\n <span class="preloader-inner-right">\n <span class="preloader-inner-half-circle"></span>\n </span>\n </span>\n '.trim(),iosPreloaderContent:('\n <span class="preloader-inner">\n '+[0,1,2,3,4,5,6,7,8,9,10,11].map((function(){return'<span class="preloader-inner-line"></span>'})).join("")+"\n </span>\n ").trim(),auroraPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n ',eventNameToColonCase:function(e){var t;return e.split("").map((function(e,a){return e.match(/[A-Z]/)&&0!==a&&!t?(t=!0,":"+e.toLowerCase()):e.toLowerCase()})).join("")},deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},nextFrame:function(e){return Utils.requestAnimationFrame((function(){Utils.requestAnimationFrame(e)}))},now:function(){return Date.now()},requestAnimationFrame:function(e){return win.requestAnimationFrame(e)},cancelAnimationFrame:function(e){return win.cancelAnimationFrame(e)},removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return diacriticsMap[e]||e}))},parseUrlQuery:function(e){var t,a,r,n,o={},i=e||win.location.href;if("string"==typeof i&&i.length)for(n=(a=(i=i.indexOf("?")>-1?i.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<n;t+=1)r=a[t].replace(/#\S+/g,"").split("="),o[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r.slice(1).join("="))||"";return o},getTranslate:function(e,t){var a,r,n;void 0===t&&(t="x");var o=win.getComputedStyle(e,null);return win.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),n=new win.WebKitCSSMatrix("none"===r?"":r)):a=(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=win.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(r=win.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),r||0},serializeObject:function(e,t){if(void 0===t&&(t=[]),"string"==typeof e)return e;var a,r=[];function n(e){if(t.length>0){for(var a="",r=0;r<t.length;r+=1)a+=0===r?t[r]:"["+encodeURIComponent(t[r])+"]";return a+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function o(e){return encodeURIComponent(e)}return Object.keys(e).forEach((function(i){var s;if(Array.isArray(e[i])){s=[];for(var l=0;l<e[i].length;l+=1)Array.isArray(e[i][l])||"object"!=typeof e[i][l]?s.push(n(i)+"[]="+o(e[i][l])):((a=t.slice()).push(i),a.push(String(l)),s.push(Utils.serializeObject(e[i][l],a)));s.length>0&&r.push(s.join("&"))}else null===e[i]||""===e[i]?r.push(n(i)+"="):"object"==typeof e[i]?((a=t.slice()).push(i),""!==(s=Utils.serializeObject(e[i],a))&&r.push(s)):void 0!==e[i]&&""!==e[i]?r.push(n(i)+"="+o(e[i])):""===e[i]&&r.push(n(i))})),r.join("&")},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},merge:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a=e[0];e.splice(0,1);for(var r=e,n=0;n<r.length;n+=1){var o=e[n];if(null!=o)for(var i=Object.keys(Object(o)),s=0,l=i.length;s<l;s+=1){var c=i[s],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(a[c]=o[c])}}return a},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,r,n=!0;"boolean"==typeof e[0]?(n=e[0],a=e[1],e.splice(0,2),r=e):(a=e[0],e.splice(0,1),r=e);for(var o=0;o<r.length;o+=1){var i=e[o];if(null!=i)for(var s=Object.keys(Object(i)),l=0,c=s.length;l<c;l+=1){var u=s[l],p=Object.getOwnPropertyDescriptor(i,u);void 0!==p&&p.enumerable&&(n?Utils.isObject(a[u])&&Utils.isObject(i[u])?Utils.extend(a[u],i[u]):!Utils.isObject(a[u])&&Utils.isObject(i[u])?(a[u]={},Utils.extend(a[u],i[u])):a[u]=i[u]:a[u]=i[u])}}return a},colorHexToRgb:function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,a,r){return t+t+a+a+r+r})),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?a.slice(1).map((function(e){return parseInt(e,16)})):null},colorRgbToHex:function(e,t,a){return"#"+[e,t,a].map((function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})).join("")},colorRgbToHsl:function(e,t,a){e/=255,t/=255,a/=255;var r,n=Math.max(e,t,a),o=Math.min(e,t,a),i=n-o;0===i?r=0:n===e?r=(t-a)/i%6:n===t?r=(a-e)/i+2:n===a&&(r=(e-t)/i+4);var s=(o+n)/2;return r<0&&(r=6+r),[60*r,0===i?0:i/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(e,t,a){var r,n=(1-Math.abs(2*a-1))*t,o=e/60,i=n*(1-Math.abs(o%2-1));Number.isNaN(e)||void 0===e?r=[0,0,0]:o<=1?r=[n,i,0]:o<=2?r=[i,n,0]:o<=3?r=[0,n,i]:o<=4?r=[0,i,n]:o<=5?r=[i,0,n]:o<=6&&(r=[n,0,i]);var s=a-n/2;return r.map((function(e){return Math.max(0,Math.min(255,Math.round(255*(e+s))))}))},colorHsbToHsl:function(e,t,a){var r={h:e,s:0,l:0},n=t,o=a;return r.l=(2-n)*o/2,r.s=r.l&&r.l<1?n*o/(r.l<.5?2*r.l:2-2*r.l):r.s,[r.h,r.s,r.l]},colorHslToHsb:function(e,t,a){var r={h:e,s:0,b:0},n=a,o=t*(n<.5?n:1-n);return r.b=n+o,r.s=n>0?2*o/r.b:r.s,[r.h,r.s,r.b]},colorThemeCSSProperties:function(){for(var e,t,a=[],r=arguments.length;r--;)a[r]=arguments[r];if(1===a.length?(e=a[0],t=Utils.colorHexToRgb(e)):3===a.length&&(t=a,e=Utils.colorRgbToHex.apply(Utils,t)),!t)return{};var n=Utils.colorRgbToHsl.apply(Utils,t),o=[n[0],n[1],Math.max(0,n[2]-.08)],i=[n[0],n[1],Math.max(0,n[2]+.08)],s=Utils.colorRgbToHex.apply(Utils,Utils.colorHslToRgb.apply(Utils,o)),l=Utils.colorRgbToHex.apply(Utils,Utils.colorHslToRgb.apply(Utils,i));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":s,"--f7-theme-color-tint":l}}},Support={touch:!!("ontouchstart"in win||win.DocumentTouch&&doc instanceof win.DocumentTouch),pointerEvents:!!win.PointerEvent&&"maxTouchPoints"in win.navigator&&win.navigator.maxTouchPoints>=0,observer:"MutationObserver"in win||"WebkitMutationObserver"in win,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});win.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in win,intersectionObserver:"IntersectionObserver"in win},Device=function(){var e=win.navigator.platform,t=win.navigator.userAgent,a={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!win.cordova&&!win.phonegap),phonegap:!(!win.cordova&&!win.phonegap),electron:!1,nwjs:!1},r=win.screen.width,n=win.screen.height,o=t.match(/(Android);?[\s\/]+([\d.]+)?/),i=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),l=!i&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),c=t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0,u=t.indexOf("Edge/")>=0,p=t.indexOf("Gecko/")>=0&&t.indexOf("Firefox/")>=0,d="Win32"===e,h=t.toLowerCase().indexOf("electron")>=0,f="undefined"!=typeof nw&&"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.nw,v="MacIntel"===e;!i&&v&&Support.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768"].indexOf(r+"x"+n)>=0&&((i=t.match(/(Version)\/([\d.]+)/))||(i=[0,1,"13_0_0"]),v=!1),a.ie=c,a.edge=u,a.firefox=p,o&&!d&&(a.os="android",a.osVersion=o[2],a.android=!0,a.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(i||l||s)&&(a.os="ios",a.ios=!0),l&&!s&&(a.osVersion=l[2].replace(/_/g,"."),a.iphone=!0),i&&(a.osVersion=i[2].replace(/_/g,"."),a.ipad=!0),s&&(a.osVersion=s[3]?s[3].replace(/_/g,"."):null,a.ipod=!0),a.ios&&a.osVersion&&t.indexOf("Version/")>=0&&"10"===a.osVersion.split(".")[0]&&(a.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),a.webView=!(!(l||i||s)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!win.navigator.standalone)||win.matchMedia&&win.matchMedia("(display-mode: standalone)").matches,a.webview=a.webView,a.standalone=a.webView,a.desktop=!(a.ios||a.android)||h||f,a.desktop&&(a.electron=h,a.nwjs=f,a.macos=v,a.windows=d,a.macos&&(a.os="macos"),a.windows&&(a.os="windows")),a.pixelRatio=win.devicePixelRatio||1;return a.prefersColorScheme=function(){var e;return win.matchMedia&&win.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),win.matchMedia&&win.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},a}(),EventsClass=function(e){void 0===e&&(e=[]);this.eventsParents=e,this.eventsListeners={}};EventsClass.prototype.on=function(e,t,a){var r=this;if("function"!=typeof t)return r;var n=a?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][n](t)})),r},EventsClass.prototype.once=function(e,t,a){var r=this;if("function"!=typeof t)return r;function n(){for(var a=[],o=arguments.length;o--;)a[o]=arguments[o];r.off(e,n),n.f7proxy&&delete n.f7proxy,t.apply(r,a)}return n.f7proxy=t,r.on(e,n,a)},EventsClass.prototype.off=function(e,t){var a=this;return a.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].forEach((function(r,n){(r===t||r.f7proxy&&r.f7proxy===t)&&a.eventsListeners[e].splice(n,1)}))})),a):a},EventsClass.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,r,n,o,i=this;if(!i.eventsListeners)return i;"string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],r=e.slice(1,e.length),n=i,o=i.eventsParents):(a=e[0].events,r=e[0].data,n=e[0].context||i,o=e[0].local?[]:e[0].parents||i.eventsParents);var s=Array.isArray(a)?a:a.split(" "),l=s.map((function(e){return e.replace("local::","")})),c=s.filter((function(e){return e.indexOf("local::")<0}));return l.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var t=[];i.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(n,r)}))}})),o&&o.length>0&&o.forEach((function(e){e.emit.apply(e,[c].concat(r))})),i};var Framework7Class=function(e){function t(t,a){void 0===t&&(t={}),void 0===a&&(a=[]),e.call(this,a);var r=this;r.params=t,r.params&&r.params.on&&Object.keys(r.params.on).forEach((function(e){r.on(e,r.params.on[e])}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var a={components:{configurable:!0}};return t.prototype.useModuleParams=function(e,t){if(e.params){var a={};Object.keys(e.params).forEach((function(e){void 0!==t[e]&&(a[e]=Utils.extend({},t[e]))})),Utils.extend(t,e.params),Object.keys(a).forEach((function(e){Utils.extend(t[e],a[e])}))}},t.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var r=t.modules[a];r.params&&Utils.extend(e,r.params)}))},t.prototype.useModule=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var a=this;if(a.modules){var r="string"==typeof e?a.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach((function(e){var t=r.instance[e];a[e]="function"==typeof t?t.bind(a):t})),r.on&&a.on&&Object.keys(r.on).forEach((function(e){a.on(e,r.on[e])})),r.vnode&&(a.vnodeHooks||(a.vnodeHooks={}),Object.keys(r.vnode).forEach((function(e){Object.keys(r.vnode[e]).forEach((function(t){var n=r.vnode[e][t];a.vnodeHooks[t]||(a.vnodeHooks[t]={}),a.vnodeHooks[t][e]||(a.vnodeHooks[t][e]=[]),a.vnodeHooks[t][e].push(n.bind(a))}))}))),r.create&&r.create.bind(a)(t))}},t.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(a){var r=e[a]||{};t.useModule(a,r)}))},a.components.set=function(e){this.use&&this.use(e)},t.installModule=function(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var r=this;r.prototype.modules||(r.prototype.modules={});var n=e.name||Object.keys(r.prototype.modules).length+"_"+Utils.now();return r.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(t){r.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){r[t]=e.static[t]})),e.install&&e.install.apply(r,t),r},t.use=function(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var r=this;return Array.isArray(e)?(e.forEach((function(e){return r.installModule(e)})),r):r.installModule.apply(r,[e].concat(t))},Object.defineProperties(t,a),t}(EventsClass);function ConstructorMethods(e){void 0===e&&(e={});var t=e.defaultSelector,a=e.constructor,r=e.domProp,n=e.app,o=e.addMethods,i={create:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n?new(Function.prototype.bind.apply(a,[null].concat([n],e))):new(Function.prototype.bind.apply(a,[null].concat(e)))},get:function(e){if(void 0===e&&(e=t),e instanceof a)return e;var n=$(e);return 0!==n.length?n[0][r]:void 0},destroy:function(e){var t=i.get(e);if(t&&t.destroy)return t.destroy()}};return o&&Array.isArray(o)&&o.forEach((function(e){i[e]=function(a){void 0===a&&(a=t);for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];var o=i.get(a);if(o&&o[e])return o[e].apply(o,r)}})),i}function ModalMethods(e){void 0===e&&(e={});var t=e.defaultSelector,a=e.constructor,r=e.app;return Utils.extend(ConstructorMethods({defaultSelector:t,constructor:a,app:r,domProp:"f7Modal"}),{open:function(e,t,n){var o=$(e);if(o.length>1&&n){var i=$(n).parents(".page");i.length&&o.each((function(e,t){var a=$(t);a.parents(i)[0]===i[0]&&(o=a)}))}if(o.length>1&&(o=o.eq(o.length-1)),o.length){var s=o[0].f7Modal;if(!s){var l=o.dataset();s=new a(r,Object.assign({},{el:o},l))}return s.open(t)}},close:function(e,n,o){void 0===e&&(e=t);var i=$(e);if(i.length){if(i.length>1){var s;if(o){var l=$(o);l.length&&(s=l.parents(i))}i=s&&s.length>0?s:i.eq(i.length-1)}var c=i[0].f7Modal;if(!c){var u=i.dataset();c=new a(r,Object.assign({},{el:i},u))}return c.close(n)}}})}var fetchedModules=[];function loadModule(e){var t=this;return new Promise((function(a,r){var n,o,i,s=t.instance;if(e){if("string"==typeof e){var l=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&l&&l[0].length===e.length){if(!s||s&&!s.params.lazyModulesPath)return void r(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));n=s.params.lazyModulesPath+"/"+e+".js"}else n=e}else"function"==typeof e?i=e:o=e;if(i){var c=i(t,!1);if(!c)return void r(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[c.name])return void a();h(c),a()}if(o){var u=o;if(!u)return void r(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[u.name])return void a();h(u),a()}if(n){if(fetchedModules.indexOf(n)>=0)return void a();fetchedModules.push(n);var p=new Promise((function(e,a){t.request.get(n,(function(r){var o="f7_component_loader_callback_"+Utils.id(),i=doc.createElement("script");i.innerHTML="window."+o+" = function (Framework7, Framework7AutoInstallComponent) {return "+r.trim()+"}",$("head").append(i);var s=win[o];delete win[o],$(i).remove();var l=s(t,!1);l?(t.prototype.modules&&t.prototype.modules[l.name]||h(l),e()):a(new Error("Framework7: Can't find Framework7 component in "+n+" file"))}),(function(e,t){a(e,t)}))})),d=new Promise((function(e){t.request.get(n.replace(".js",s.rtl?".rtl.css":".css"),(function(t){var a=doc.createElement("style");a.innerHTML=t,$("head").append(a),e()}),(function(){e()}))}));Promise.all([p,d]).then((function(){a()})).catch((function(e){r(e)}))}}else r(new Error("Framework7: Lazy module must be specified"));function h(e){t.use(e),s&&(s.useModuleParams(e,s.params),s.useModule(e))}}))}var Framework7=function(e){function t(a){if(e.call(this,a),t.instance)throw new Error("Framework7 is already initialized and can't be initialized more than once");var r=Utils.extend({},a),n=this;t.instance=n;var o={version:"1.0.0",id:"io.framework7.testapp",root:"body",theme:"auto",language:win.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0};n.useModulesParams(o),n.params=Utils.extend(o,a);var i=$(n.params.root);Utils.extend(n,{id:n.params.id,name:n.params.name,version:n.params.version,routes:n.params.routes,language:n.params.language,root:i,rtl:"rtl"===i.css("direction"),theme:"auto"===n.params.theme?Device.ios?"ios":Device.desktop&&Device.electron?"aurora":"md":n.params.theme,passedParams:r,online:win.navigator.onLine}),n.root&&n.root[0]&&(n.root[0].f7=n),n.useModules(),n.initData();var s="(prefers-color-scheme: dark)",l="(prefers-color-scheme: light)";return n.mq={},win.matchMedia&&(n.mq.dark=win.matchMedia(s),n.mq.light=win.matchMedia(l)),n.colorSchemeListener=function(e){var t=e.matches,a=e.media;if(t){var r=doc.querySelector("html");a===s?(r.classList.add("theme-dark"),n.darkTheme=!0,n.emit("darkThemeChange",!0)):a===l&&(r.classList.remove("theme-dark"),n.darkTheme=!1,n.emit("darkThemeChange",!1))}},n.params.init&&(Device.cordova&&n.params.initOnDeviceReady?$(doc).on("deviceready",(function(){n.init()})):n.init()),n}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var a={$:{configurable:!0},t7:{configurable:!0}},r={Dom7:{configurable:!0},$:{configurable:!0},Template7:{configurable:!0},Class:{configurable:!0},Events:{configurable:!0}};return t.prototype.initData=function(){var e=this;e.data={},e.params.data&&"function"==typeof e.params.data?Utils.extend(e.data,e.params.data.bind(e)()):e.params.data&&Utils.extend(e.data,e.params.data),e.methods={},e.params.methods&&Object.keys(e.params.methods).forEach((function(t){"function"==typeof e.params.methods[t]?e.methods[t]=e.params.methods[t].bind(e):e.methods[t]=e.params.methods[t]}))},t.prototype.enableAutoDarkTheme=function(){if(win.matchMedia){var e=this,t=doc.querySelector("html");e.mq.dark&&e.mq.light&&(e.mq.dark.addListener(e.colorSchemeListener),e.mq.light.addListener(e.colorSchemeListener)),e.mq.dark&&e.mq.dark.matches?(t.classList.add("theme-dark"),e.darkTheme=!0,e.emit("darkThemeChange",!0)):e.mq.light&&e.mq.light.matches&&(t.classList.remove("theme-dark"),e.darkTheme=!1,e.emit("darkThemeChange",!1))}},t.prototype.disableAutoDarkTheme=function(){if(win.matchMedia){this.mq.dark&&this.mq.dark.removeListener(this.colorSchemeListener),this.mq.light&&this.mq.light.removeListener(this.colorSchemeListener)}},t.prototype.initAppComponent=function(e){var t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.root[0],root:!0}},(function(a){t.root=$(a),t.root[0].f7=t,t.rootComponent=a.f7Component,e&&e()}),(function(){}))},t.prototype._init=function(){var e=this;return e.initialized||(e.root.addClass("framework7-initializing"),e.rtl&&$("html").attr("dir","rtl"),e.params.autoDarkTheme&&e.enableAutoDarkTheme(),win.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),win.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.root.addClass("framework7-root"),$("html").removeClass("ios md aurora").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&Device.ios&&$("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&Device.ios&&$("html").addClass("ios-translucent-modals"),Utils.nextFrame((function(){e.root.removeClass("framework7-initializing")})),e.initialized=!0,e.emit("init")),e},t.prototype.init=function(){var e=this;e.params.component||e.params.componentUrl?e.initAppComponent((function(){e._init()})):e._init()},t.prototype.loadModule=function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return t.loadModule.apply(t,e)},t.prototype.loadModules=function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return t.loadModules.apply(t,e)},t.prototype.getVnodeHooks=function(e,t){return this.vnodeHooks&&this.vnodeHooks[e]&&this.vnodeHooks[e][t]||[]},a.$.get=function(){return $},a.t7.get=function(){return Template7},r.Dom7.get=function(){return $},r.$.get=function(){return $},r.Template7.get=function(){return Template7},r.Class.get=function(){return e},r.Events.get=function(){return EventsClass},Object.defineProperties(t.prototype,a),Object.defineProperties(t,r),t}(Framework7Class);Framework7.ModalMethods=ModalMethods,Framework7.ConstructorMethods=ConstructorMethods,Framework7.loadModule=loadModule,Framework7.loadModules=function(e){return Promise.all(e.map((function(e){return Framework7.loadModule(e)})))};var DeviceModule={name:"device",proto:{device:Device},static:{device:Device},on:{init:function(){var e=[],t=doc.querySelector("html"),a=doc.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');t&&(Device.standalone&&Device.ios&&a&&"black-translucent"===a.content&&e.push("device-full-viewport"),e.push("device-pixel-ratio-"+Math.floor(Device.pixelRatio)),Device.os&&!Device.desktop?e.push("device-"+Device.os):Device.desktop&&(e.push("device-desktop"),Device.os&&e.push("device-"+Device.os)),(Device.cordova||Device.phonegap)&&e.push("device-cordova"),e.forEach((function(e){t.classList.add(e)})))}}},SupportModule={name:"support",proto:{support:Support},static:{support:Support}},UtilsModule={name:"utils",proto:{utils:Utils},static:{utils:Utils}},ResizeModule={name:"resize",instance:{getSize:function(){if(!this.root[0])return{width:0,height:0,left:0,top:0};var e=this.root.offset(),t=[this.root[0].offsetWidth,this.root[0].offsetHeight,e.left,e.top],a=t[0],r=t[1],n=t[2],o=t[3];return this.width=a,this.height=r,this.left=n,this.top=o,{width:a,height:r,left:n,top:o}}},on:{init:function(){var e=this;e.getSize(),win.addEventListener("resize",(function(){e.emit("resize")}),!1),win.addEventListener("orientationchange",(function(){e.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(doc.body.scrollLeft=0,setTimeout((function(){doc.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}},globals={},jsonpRequests=0;function Request(e){var t=Utils.extend({},globals);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((function(e){delete t[e]}));var a=Utils.extend({url:win.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},t),r=Utils.extend({},a,e);function n(e){for(var t,a,n=[],o=arguments.length-1;o-- >0;)n[o]=arguments[o+1];return globals[e]&&(t=globals[e].apply(globals,n)),r[e]&&(a=r[e].apply(r,n)),"boolean"!=typeof t&&(t=!0),"boolean"!=typeof a&&(a=!0),t&&a}if(!1!==n("beforeCreate",r)){r.type&&(r.method=r.type);var o,i=r.url.indexOf("?")>=0?"&":"?",s=r.method.toUpperCase();if(("GET"===s||"HEAD"===s||"OPTIONS"===s||"DELETE"===s)&&r.data)(o="string"==typeof r.data?r.data.indexOf("?")>=0?r.data.split("?")[1]:r.data:Utils.serializeObject(r.data)).length&&(r.url+=i+o,"?"===i&&(i="&"));if("json"===r.dataType&&r.url.indexOf("callback=")>=0){var l,c="f7jsonp_"+(Date.now()+(jsonpRequests+=1)),u=r.url.split("callback="),p=u[0]+"callback="+c;if(u[1].indexOf("&")>=0){var d=u[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");d.length>0&&(p+="&"+d)}var h=doc.createElement("script");return h.type="text/javascript",h.onerror=function(){clearTimeout(l),n("error",null,"scripterror","scripterror"),n("complete",null,"scripterror")},h.src=p,win[c]=function(e){clearTimeout(l),n("success",e),h.parentNode.removeChild(h),h=null,delete win[c]},doc.querySelector("head").appendChild(h),void(r.timeout>0&&(l=setTimeout((function(){h.parentNode.removeChild(h),h=null,n("error",null,"timeout","timeout")}),r.timeout)))}"GET"!==s&&"HEAD"!==s&&"OPTIONS"!==s&&"DELETE"!==s||!1===r.cache&&(r.url+=i+"_nocache"+Date.now());var f=new XMLHttpRequest;if(f.requestUrl=r.url,f.requestParameters=r,!1===n("beforeOpen",f,r))return f;f.open(s,r.url,r.async,r.user,r.password);var v=null;if(("POST"===s||"PUT"===s||"PATCH"===s)&&r.data)if(r.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(r.data.constructor)>=0)v=r.data;else{var m="---------------------------"+Date.now().toString(16);"multipart/form-data"===r.contentType?f.setRequestHeader("Content-Type","multipart/form-data; boundary="+m):f.setRequestHeader("Content-Type",r.contentType),v="";var g=Utils.serializeObject(r.data);if("multipart/form-data"===r.contentType){g=g.split("&");for(var b=[],y=0;y<g.length;y+=1)b.push('Content-Disposition: form-data; name="'+g[y].split("=")[0]+'"\r\n\r\n'+g[y].split("=")[1]+"\r\n");v="--"+m+"\r\n"+b.join("--"+m+"\r\n")+"--"+m+"--\r\n"}else v="application/json"===r.contentType?JSON.stringify(r.data):g}else v=r.data,f.setRequestHeader("Content-Type",r.contentType);return"json"!==r.dataType||r.headers&&r.headers.Accept||f.setRequestHeader("Accept","application/json"),r.headers&&Object.keys(r.headers).forEach((function(e){void 0!==r.headers[e]&&f.setRequestHeader(e,r.headers[e])})),void 0===r.crossDomain&&(r.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(r.url)&&RegExp.$2!==win.location.host),r.crossDomain||f.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.xhrFields&&Utils.extend(f,r.xhrFields),f.onload=function(){var e;if(f.status>=200&&f.status<300||0===f.status)if("json"===r.dataType){var t;try{e=JSON.parse(f.responseText)}catch(e){t=!0}t?n("error",f,"parseerror","parseerror"):n("success",e,f.status,f)}else n("success",e="text"===f.responseType||""===f.responseType?f.responseText:f.response,f.status,f);else n("error",f,f.status,f.statusText);r.statusCode&&(globals.statusCode&&globals.statusCode[f.status]&&globals.statusCode[f.status](f),r.statusCode[f.status]&&r.statusCode[f.status](f)),n("complete",f,f.status)},f.onerror=function(){n("error",f,f.status,f.status),n("complete",f,"error")},r.timeout>0&&(f.timeout=r.timeout,f.ontimeout=function(){n("error",f,"timeout","timeout"),n("complete",f,"timeout")}),!1===n("beforeSend",f,r)?f:(f.send(v),f)}}function RequestShortcut(e){for(var t,a,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];var o=[],i=o[0],s=o[1],l=o[2],c=o[3],u=o[4];"function"==typeof r[1]?(i=(t=r)[0],l=t[1],c=t[2],u=t[3]):(i=(a=r)[0],s=a[1],l=a[2],c=a[3],u=a[4]),[l,c].forEach((function(e){"string"==typeof e&&(u=e,e===l?l=void 0:c=void 0)}));var p={url:i,method:"post"===e||"postJSON"===e?"POST":"GET",data:s,success:l,error:c,dataType:u=u||("json"===e||"postJSON"===e?"json":void 0)};return"postJSON"===e&&Utils.extend(p,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof s?s:JSON.stringify(s)}),Request(p)}function RequestShortcutPromise(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var r=t[0],n=t[1],o=t[2];return new Promise((function(t,a){RequestShortcut(e,r,n,(function(e,a,r){t({data:e,status:a,xhr:r})}),(function(e,t,r){a({xhr:e,status:t,message:r})}),o)}))}Object.assign(Request,{get:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcut.apply(void 0,["get"].concat(e))},post:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcut.apply(void 0,["post"].concat(e))},json:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcut.apply(void 0,["json"].concat(e))},getJSON:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcut.apply(void 0,["json"].concat(e))},postJSON:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcut.apply(void 0,["postJSON"].concat(e))}}),Request.promise=function(e){return new Promise((function(t,a){Request(Object.assign(e,{success:function(e,a,r){t({data:e,status:a,xhr:r})},error:function(e,t,r){a({xhr:e,status:t,message:r})}}))}))},Object.assign(Request.promise,{get:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcutPromise.apply(void 0,["get"].concat(e))},post:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcutPromise.apply(void 0,["post"].concat(e))},json:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcutPromise.apply(void 0,["json"].concat(e))},getJSON:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcutPromise.apply(void 0,["json"].concat(e))},postJSON:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return RequestShortcutPromise.apply(void 0,["postJSON"].concat(e))}}),Request.setup=function(e){e.type&&!e.method&&Utils.extend(e,{method:e.type}),Utils.extend(globals,e)};var RequestModule={name:"request",proto:{request:Request},static:{request:Request}};function initTouch(){var e,t,a,r,n,o,i,s,l,c,u,p,d=this,h=d.params.touch,f=h[d.theme+"TouchRipple"];function v(e){var t,a=$(e),r=a.parents(h.activeStateElements);if(a.closest(".no-active-state").length)return null;if(a.is(h.activeStateElements)&&(t=a),r.length>0&&(t=t?t.add(r):r),t&&t.length>1){for(var n,o=[],i=0;i<t.length;i+=1)n||(o.push(t[i]),(t.eq(i).hasClass("prevent-active-state-propagation")||t.eq(i).hasClass("no-active-state-propagation"))&&(n=!0));t=$(o)}return t||a}function m(e){return e.parents(".page-content").length>0}function g(){s&&s.addClass("active-state")}function b(){s&&(s.removeClass("active-state"),s=null)}function y(e,t,a){e&&(c=d.touchRipple.create(e,t,a))}function w(){c&&(c.remove(),c=void 0,u=void 0)}function C(a){(u=function(e){var t=h.touchRippleElements,a=$(e);if(a.is(t))return!a.hasClass("no-ripple")&&a;if(a.parents(t).length>0){var r=a.parents(t).eq(0);return!r.hasClass("no-ripple")&&r}return!1}(a))&&0!==u.length?m(u)?(clearTimeout(p),p=setTimeout((function(){w(),y(u,e,t)}),80)):(w(),y(u,e,t)):u=void 0}function x(){clearTimeout(p),w()}function k(){c||!u||r?w():(clearTimeout(p),y(u,e,t),setTimeout(w,0))}function E(){$(".active-state").removeClass("active-state"),f&&k()}function S(e,t){d.emit({events:e,data:[t]})}function T(e){S("touchstart touchstart:active",e)}function O(e){S("touchmove touchmove:active",e)}function P(e){S("touchend touchend:active",e)}function R(e){S("touchstart:passive",e)}function N(e){S("touchmove:passive",e)}function D(e){S("touchend:passive",e)}function L(e){S(e.type+" "+e.type+":active",e)}function M(e){S(e.type+":passive",e)}Device.ios&&Device.webView&&win.addEventListener("touchstart",(function(){}));var A=!!Support.passiveListener&&{passive:!0},U=!Support.passiveListener||{passive:!0,capture:!0},B=!!Support.passiveListener&&{passive:!1},H=!Support.passiveListener||{passive:!1,capture:!0};doc.addEventListener("click",(function(e){S("click",e)}),!0),Support.passiveListener?(doc.addEventListener(d.touchEvents.start,T,H),doc.addEventListener(d.touchEvents.move,O,B),doc.addEventListener(d.touchEvents.end,P,B),doc.addEventListener(d.touchEvents.start,R,U),doc.addEventListener(d.touchEvents.move,N,A),doc.addEventListener(d.touchEvents.end,D,A),Support.touch&&Support.gestures&&(doc.addEventListener("gesturestart",L,B),doc.addEventListener("gesturechange",L,B),doc.addEventListener("gestureend",L,B),doc.addEventListener("gesturestart",M,A),doc.addEventListener("gesturechange",M,A),doc.addEventListener("gestureend",M,A))):(doc.addEventListener(d.touchEvents.start,(function(e){T(e),R(e)}),!0),doc.addEventListener(d.touchEvents.move,(function(e){O(e),N(e)}),!1),doc.addEventListener(d.touchEvents.end,(function(e){P(e),D(e)}),!1),Support.touch&&Support.gestures&&(doc.addEventListener("gesturestart",(function(e){L(e),M(e)}),!1),doc.addEventListener("gesturechange",(function(e){L(e),M(e)}),!1),doc.addEventListener("gestureend",(function(e){L(e),M(e)}),!1))),Support.touch?(d.on("click",(function(e){var t=e&&e.detail&&"f7Overswipe"===e.detail,r=i;return a&&e.target!==a&&(r=!t),h.tapHold&&h.tapHoldPreventClicks&&n&&(r=!0),r&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()),h.tapHold&&(o=setTimeout((function(){n=!1}),Device.ios||Device.androidChrome?100:400)),i=!1,a=null,!r})),d.on("touchstart",(function(c){return r=!1,n=!1,i=!1,c.targetTouches.length>1?(s&&b(),!0):(c.touches.length>1&&s&&b(),h.tapHold&&(o&&clearTimeout(o),o=setTimeout((function(){c&&c.touches&&c.touches.length>1||(n=!0,c.preventDefault(),i=!0,$(c.target).trigger("taphold",c),d.emit("taphold",c))}),h.tapHoldDelay)),a=c.target,e=c.targetTouches[0].pageX,t=c.targetTouches[0].pageY,h.activeState&&((s=v(a))&&!m(s)?g():s&&(l=setTimeout(g,80))),f&&C(a),!0)})),d.on("touchmove",(function(a){var n,s;if("touchmove"===a.type&&(n=a.targetTouches[0],s=h.touchClicksDistanceThreshold),s&&n){var c=n.pageX,u=n.pageY;(Math.abs(c-e)>s||Math.abs(u-t)>s)&&(r=!0)}else r=!0;r&&(i=!0,h.tapHold&&clearTimeout(o),h.activeState&&(clearTimeout(l),b()),f&&x())})),d.on("touchend",(function(e){return clearTimeout(l),clearTimeout(o),doc.activeElement===e.target?(h.activeState&&b(),f&&k(),!0):(h.activeState&&(g(),setTimeout(b,0)),f&&k(),!(h.tapHoldPreventClicks&&n||i)||(e.cancelable&&e.preventDefault(),i=!0,!1))})),doc.addEventListener("touchcancel",(function(){a=null,clearTimeout(l),clearTimeout(o),h.activeState&&b(),f&&k()}),{passive:!0})):h.activeState&&(d.on("touchstart",(function(a){var r=v(a.target);r&&(r.addClass("active-state"),"which"in a&&3===a.which&&setTimeout((function(){$(".active-state").removeClass("active-state")}),0)),f&&(e=a.pageX,t=a.pageY,C(a.target,a.pageX,a.pageY))})),d.on("touchmove",(function(){h.activeStateOnMouseMove||$(".active-state").removeClass("active-state"),f&&x()})),d.on("touchend",E),doc.addEventListener("pointercancel",E,{passive:!0})),doc.addEventListener("contextmenu",(function(e){h.disableContextMenu&&(Device.ios||Device.android||Device.cordova)&&e.preventDefault(),f&&(s&&b(),k())}))}var TouchModule={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle"}},instance:{touchEvents:{start:Support.touch?"touchstart":Support.pointerEvents?"pointerdown":"mousedown",move:Support.touch?"touchmove":Support.pointerEvents?"pointermove":"mousemove",end:Support.touch?"touchend":Support.pointerEvents?"pointerup":"mouseup"}},on:{init:initTouch}};function lexer(e){for(var t=[],a=0;a<e.length;){var r=e[a];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:a,value:e[a++]});else{var n=1,o="";if("?"===e[s=a+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--n){s++;break}}else if("("===e[s]&&(n++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=e[s++]}else o+=e[s++]+e[s++];if(n)throw new TypeError("Unbalanced pattern at "+a);if(!o)throw new TypeError("Missing pattern at "+a);t.push({type:"PATTERN",index:a,value:o}),a=s}else{for(var i="",s=a+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at "+a);t.push({type:"NAME",index:a,value:i}),a=s}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}function parse(e,t){void 0===t&&(t={});for(var a=lexer(e),r=t.prefixes,n=void 0===r?"./":r,o="[^"+escapeString(t.delimiter||"/#?")+"]+?",i=[],s=0,l=0,c="",u=function(e){if(l<a.length&&a[l].type===e)return a[l++].value},p=function(e){var t=u(e);if(void 0!==t)return t;var r=a[l],n=r.type,o=r.index;throw new TypeError("Unexpected "+n+" at "+o+", expected "+e)},d=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<a.length;){var h=u("CHAR"),f=u("NAME"),v=u("PATTERN");if(f||v){var m=h||"";-1===n.indexOf(m)&&(c+=m,m=""),c&&(i.push(c),c=""),i.push({name:f||s++,prefix:m,suffix:"",pattern:v||o,modifier:u("MODIFIER")||""})}else{var g=h||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),u("OPEN")){m=d();var b=u("NAME")||"",y=u("PATTERN")||"",w=d();p("CLOSE"),i.push({name:b||(y?s++:""),pattern:b&&!y?o:y,prefix:m,suffix:w,modifier:u("MODIFIER")||""})}else p("END")}}return i}function compile(e,t){return tokensToFunction(parse(e,t),t)}function tokensToFunction(e,t){void 0===t&&(t={});var a=flags(t),r=t.encode,n=void 0===r?function(e){return e}:r,o=t.validate,i=void 0===o||o,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",a)}));return function(t){for(var a="",r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o){var l=t?t[o.name]:void 0,c="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===l.length){if(c)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var p=0;p<l.length;p++){var d=n(l[p],o);if(i&&!s[r].test(d))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');a+=o.prefix+d+o.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!c){var h=u?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+h)}}else{d=n(String(l),o);if(i&&!s[r].test(d))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');a+=o.prefix+d+o.suffix}}else a+=o}return a}}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(e){return e&&e.sensitive?"":"i"}function regexpToRegexp(e,t){if(!t)return e;var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}function arrayToRegexp(e,t,a){var r=e.map((function(e){return pathToRegexp(e,t,a).source}));return new RegExp("(?:"+r.join("|")+")",flags(a))}function stringToRegexp(e,t,a){return tokensToRegexp(parse(e,a),t,a)}function tokensToRegexp(e,t,a){void 0===a&&(a={});for(var r=a.strict,n=void 0!==r&&r,o=a.start,i=void 0===o||o,s=a.end,l=void 0===s||s,c=a.encode,u=void 0===c?function(e){return e}:c,p="["+escapeString(a.endsWith||"")+"]|$",d="["+escapeString(a.delimiter||"/#?")+"]",h=i?"^":"",f=0,v=e;f<v.length;f++){var m=v[f];if("string"==typeof m)h+=escapeString(u(m));else{var g=escapeString(u(m.prefix)),b=escapeString(u(m.suffix));if(m.pattern)if(t&&t.push(m),g||b)if("+"===m.modifier||"*"===m.modifier){var y="*"===m.modifier?"?":"";h+="(?:"+g+"((?:"+m.pattern+")(?:"+b+g+"(?:"+m.pattern+"))*)"+b+")"+y}else h+="(?:"+g+"("+m.pattern+")"+b+")"+m.modifier;else h+="("+m.pattern+")"+m.modifier;else h+="(?:"+g+b+")"+m.modifier}}if(l)n||(h+=d+"?"),h+=a.endsWith?"(?="+p+")":"$";else{var w=e[e.length-1],C="string"==typeof w?d.indexOf(w[w.length-1])>-1:void 0===w;n||(h+="(?:"+d+"(?="+p+"))?"),C||(h+="(?="+d+"|"+p+")")}return new RegExp(h,flags(a))}function pathToRegexp(e,t,a){return e instanceof RegExp?regexpToRegexp(e,t):Array.isArray(e)?arrayToRegexp(e,t,a):stringToRegexp(e,t,a)}var History={queue:[],clearQueue:function(){0!==History.queue.length&&History.queue.shift()()},routerQueue:[],clearRouterQueue:function(){if(0!==History.routerQueue.length){var e=History.routerQueue.pop(),t=e.router,a=e.stateUrl,r=e.action,n=t.params.animate;!1===t.params.pushStateAnimate&&(n=!1),"back"===r&&t.back({animate:n,pushState:!1}),"load"===r&&t.navigate(a,{animate:n,pushState:!1})}},handle:function(e){if(!History.blockPopstate){var t=e.state;History.previousState=History.state,History.state=t,History.allowChange=!0,History.clearQueue(),(t=History.state)||(t={}),this.views.forEach((function(e){var a=e.router,r=t[e.id];if(!r&&e.params.pushState&&(r={url:e.router.history[0]}),r){var n=r.url||void 0,o=a.params.animate;!1===a.params.pushStateAnimate&&(o=!1),n!==a.url&&(a.history.indexOf(n)>=0?a.allowPageChange?a.back({animate:o,pushState:!1}):History.routerQueue.push({action:"back",router:a}):a.allowPageChange?a.navigate(n,{animate:o,pushState:!1}):History.routerQueue.unshift({action:"load",stateUrl:n,router:a}))}}))}},initViewState:function(e,t){var a,r=Utils.extend({},History.state||{},((a={})[e]=t,a));History.state=r,win.history.replaceState(r,"")},push:function(e,t,a){var r;if(History.allowChange){History.previousState=History.state;var n=Utils.extend({},History.previousState||{},((r={})[e]=t,r));History.state=n,win.history.pushState(n,"",a)}else History.queue.push((function(){History.push(e,t,a)}))},replace:function(e,t,a){var r;if(History.allowChange){History.previousState=History.state;var n=Utils.extend({},History.previousState||{},((r={})[e]=t,r));History.state=n,win.history.replaceState(n,"",a)}else History.queue.push((function(){History.replace(e,t,a)}))},go:function(e){History.allowChange=!1,win.history.go(e)},back:function(){History.allowChange=!1,win.history.back()},allowChange:!0,previousState:{},state:win.history.state,blockPopstate:!0,init:function(e){$(win).on("load",(function(){setTimeout((function(){History.blockPopstate=!1}),0)})),doc.readyState&&"complete"===doc.readyState&&(History.blockPopstate=!1),$(win).on("popstate",History.handle.bind(e))}};function SwipeBack(e){var t,a,r,n,o,i,s,l,c,u=e,p=u.$el,d=u.$navbarsEl,h=u.app,f=u.params,v=!1,m=!1,g={},b=[],y=[],w=!0,C=[],x=[],k=f[h.theme+"SwipeBackAnimateShadow"],E=f[h.theme+"SwipeBackAnimateOpacity"],S=f[h.theme+"SwipeBackActiveArea"],T=f[h.theme+"SwipeBackThreshold"],O=h.rtl?"right center":"left center",P=h.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function R(e){void 0===e&&(e={});for(var t=e.progress,a=e.reset,r=e.transition,n=["overflow","transform","transform-origin","opacity"],o=0;o<l.length;o+=1){var i=l[o];if(i&&i.el){!0===r&&i.el.classList.add("navbar-page-transitioning"),!1===r&&i.el.classList.remove("navbar-page-transitioning"),!i.className||i.classNameSet||a||(i.el.classList.add(i.className),i.classNameSet=!0),i.className&&a&&i.el.classList.remove(i.className);for(var s=0;s<n.length;s+=1){var c=n[s];i[c]&&(a?i.el.style[c]="":"function"==typeof i[c]?i.el.style[c]=i[c](t):i.el.style[c]=i[c])}}}}function N(e){var a=f[h.theme+"SwipeBack"];!w||!a||v||h.swipeout&&h.swipeout.el||!u.allowPageChange||$(e.target).closest(".range-slider, .calendar-months").length>0||$(e.target).closest(".page-master, .page-master-detail").length>0&&f.masterDetailBreakpoint>0&&h.width>=f.masterDetailBreakpoint||(m=!1,v=!0,t=void 0,g.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,g.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,n=Utils.now(),o=u.dynamicNavbar)}function D(e){if(v){var n="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,c="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===t&&(t=!!(t||Math.abs(c-g.y)>Math.abs(n-g.x))||n<g.x&&!h.rtl||n>g.x&&h.rtl),t||e.f7PreventSwipeBack||h.preventSwipeBack)v=!1;else{if(!m){var w=!1,N=$(e.target),D=N.closest(".swipeout");D.length>0&&(!h.rtl&&D.find(".swipeout-actions-left").length>0&&(w=!0),h.rtl&&D.find(".swipeout-actions-right").length>0&&(w=!0)),((b=N.closest(".page")).hasClass("no-swipeback")||N.closest(".no-swipeback, .card-opened").length>0)&&(w=!0),(y=p.find(".page-previous:not(.stacked)")).length>1&&(y=y.eq(y.length-1));g.x,p.offset().left;if(a=p.width(),(h.rtl?g.x<p.offset().left-p[0].scrollLeft+(a-S):g.x-p.offset().left>S)&&(w=!0),0!==y.length&&0!==b.length||(w=!0),w)return void(v=!1);k&&0===(i=b.find(".page-shadow-effect")).length&&(i=$('<div class="page-shadow-effect"></div>'),b.append(i)),E&&0===(s=y.find(".page-opacity-effect")).length&&(s=$('<div class="page-opacity-effect"></div>'),y.append(s)),o&&(C=d.find(".navbar-current:not(.stacked)"),(x=d.find(".navbar-previous:not(.stacked)")).length>1&&(x=x.eq(x.length-1)),l=function(){var e,t,a=[],r=h.rtl?-1:1,n=C.hasClass("navbar-transparent")&&!C.hasClass("navbar-large")&&!C.hasClass("navbar-transparent-visible"),o=C.hasClass("navbar-large"),i=C.hasClass("navbar-large-collapsed"),s=C.hasClass("navbar-large-transparent")||C.hasClass("navbar-large")&&C.hasClass("navbar-transparent"),l=x.hasClass("navbar-transparent")&&!x.hasClass("navbar-large")&&!x.hasClass("navbar-transparent-visible"),c=x.hasClass("navbar-large"),u=x.hasClass("navbar-large-collapsed"),p=x.hasClass("navbar-large-transparent")||x.hasClass("navbar-large")&&x.hasClass("navbar-transparent"),d=o&&!i,v=c&&!u,m=C.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),g=x.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");return f.iosAnimateNavbarBackIcon&&(e=C.hasClass("sliding")||C.find(".navbar-inner.sliding").length?C.find(".left").find(".back .icon + span").eq(0):C.find(".left.sliding").find(".back .icon + span").eq(0),t=x.hasClass("sliding")||x.find(".navbar-inner.sliding").length?x.find(".left").find(".back .icon + span").eq(0):x.find(".left.sliding").find(".back .icon + span").eq(0),e.length&&g.each((function(t,a){$(a).hasClass("title")&&(a.f7NavbarLeftOffset+=e.prev(".icon")[0].offsetWidth)}))),m.each((function(t,l){var c=$(l),u=c.hasClass("subnavbar"),p=c.hasClass("left"),h=c.hasClass("title"),m=c.hasClass("navbar-bg");if((!h&&!m||!n)&&(d||!c.hasClass(".title-large"))){var g={el:l};if(d){if(h)return;if(c.hasClass("title-large"))return a.indexOf(g)<0&&a.push(g),g.overflow="visible",void c.find(".title-large-text").each((function(e,t){a.push({el:t,transform:function(e){return"translateX("+100*e*r+"%)"}})}))}if(v&&(d||c.hasClass("title-large")&&(a.indexOf(g)<0&&a.push(g),g.opacity=0),p))return a.indexOf(g)<0&&a.push(g),g.opacity=function(e){return 1-Math.pow(e,.33)},void c.find(".back span").each((function(e,t){a.push({el:t,"transform-origin":O,transform:function(e){return"translateX(calc("+e+" * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc("+e+" * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale("+(1+1*e)+")"}})}));if(m)return a.indexOf(g)<0&&a.push(g),d||v||(i?(s&&(g.className="ios-swipeback-navbar-bg-large"),g.transform=function(e){return"translateX("+100*e*r+"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))"}):g.transform=function(e){return"translateX("+100*e*r+"%)"}),!d&&v&&(g.className="ios-swipeback-navbar-bg-large",g.transform=function(e){return"translateX("+100*e*r+"%) translateY(calc(-1 * "+(1-e)+" * var(--f7-navbar-large-title-height)))"}),d&&v&&(g.transform=function(e){return"translateX("+100*e*r+"%)"}),void(d&&!v&&(g.transform=function(e){return"translateX("+100*e*r+"%) translateY(calc(-"+e+" * var(--f7-navbar-large-title-height)))"}));if(!c.hasClass("title-large")){var b=c.hasClass("sliding")||c.parents(".navbar-inner.sliding").length;if(a.indexOf(g)<0&&a.push(g),(!u||u&&!b)&&(g.opacity=function(e){return 1-Math.pow(e,.33)}),b){var y=g;if(p&&e.length&&f.iosAnimateNavbarBackIcon){var w={el:e[0]};y=w,a.push(w)}y.transform=function(e){var t=e*y.el.f7NavbarRightOffset;return 1===Device.pixelRatio&&(t=Math.round(t)),u&&o?"translate3d("+t+"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"translate3d("+t+"px,0,0)"}}}}})),g.each((function(e,n){var o=$(n),i=o.hasClass("subnavbar"),s=o.hasClass("left"),h=o.hasClass("title"),m=o.hasClass("navbar-bg");if(!h&&!m||!l){var g={el:n};if(v){if(h)return;if(a.indexOf(g)<0&&a.push(g),o.hasClass("title-large"))return g.opacity=1,g.overflow="visible",void o.find(".title-large-text").each((function(e,t){a.push({el:t,"transform-origin":P,opacity:function(e){return Math.pow(e,3)},transform:function(e){return"translateX(calc("+(1-e)+" * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc("+(e-1)+" * var(--f7-navbar-large-title-height) + "+(1-e)+" * var(--f7-navbar-large-title-padding-vertical))) scale("+(.5+.5*e)+")"}})}))}if(m)return a.indexOf(g)<0&&a.push(g),d||v||(u?(p&&(g.className="ios-swipeback-navbar-bg-large"),g.transform=function(e){return"translateX("+(100*e-100)*r+"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))"}):g.transform=function(e){return"translateX("+(100*e-100)*r+"%)"}),!d&&v&&(g.transform=function(e){return"translateX("+(100*e-100)*r+"%) translateY(calc(-1 * "+(1-e)+" * var(--f7-navbar-large-title-height)))"}),d&&!v&&(g.className="ios-swipeback-navbar-bg-large",g.transform=function(e){return"translateX("+(100*e-100)*r+"%) translateY(calc(-"+e+" * var(--f7-navbar-large-title-height)))"}),void(d&&v&&(g.transform=function(e){return"translateX("+(100*e-100)*r+"%)"}));if(!o.hasClass("title-large")){var b=o.hasClass("sliding")||x.children(".navbar-inner.sliding").length;if(a.indexOf(g)<0&&a.push(g),(!i||i&&!b)&&(g.opacity=function(e){return Math.pow(e,3)}),b){var y=g;if(s&&t.length&&f.iosAnimateNavbarBackIcon){var w={el:t[0]};y=w,a.push(w)}y.transform=function(e){var t=y.el.f7NavbarLeftOffset*(1-e);return 1===Device.pixelRatio&&(t=Math.round(t)),i&&c?"translate3d("+t+"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"translate3d("+t+"px,0,0)"}}}}})),a}()),$(".sheet.modal-in").length>0&&h.sheet&&h.sheet.close($(".sheet.modal-in"))}e.f7PreventSwipePanel=!0,m=!0,h.preventSwipePanelBySwipeBack=!0,e.preventDefault();var L=h.rtl?-1:1;(r=(n-g.x-T)*L)<0&&(r=0);var M=Math.min(Math.max(r/a,0),1),A={percentage:M,progress:M,currentPageEl:b[0],previousPageEl:y[0],currentNavbarEl:C[0],previousNavbarEl:x[0]};p.trigger("swipeback:move",A),u.emit("swipebackMove",A);var U=r*L,B=(r/5-a/5)*L;h.rtl?(U=Math.max(U,-a),B=Math.max(B,0)):(U=Math.min(U,a),B=Math.min(B,0)),1===Device.pixelRatio&&(U=Math.round(U),B=Math.round(B)),u.swipeBackActive=!0,$([b[0],y[0]]).addClass("page-swipeback-active"),b.transform("translate3d("+U+"px,0,0)"),k&&(i[0].style.opacity=1-1*M),"ios"===h.theme&&y.transform("translate3d("+B+"px,0,0)"),E&&(s[0].style.opacity=1-1*M),o&&R({progress:M})}}}function L(){if(h.preventSwipePanelBySwipeBack=!1,!v||!m)return v=!1,void(m=!1);if(v=!1,m=!1,u.swipeBackActive=!1,$([b[0],y[0]]).removeClass("page-swipeback-active"),0===r)return $([b[0],y[0]]).transform(""),i&&i.length>0&&i.remove(),s&&s.length>0&&s.remove(),void(o&&R({reset:!0}));var e=Utils.now()-n,t=!1;(e<300&&r>10||e>=300&&r>a/2)&&(b.removeClass("page-current").addClass("page-next"+("ios"!==h.theme?" page-next-on-right":"")),y.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),i&&(i[0].style.opacity=""),s&&(s[0].style.opacity=""),o&&(u.setNavbarPosition(C,"next"),u.setNavbarPosition(x,"current",!1)),t=!0),$([b[0],y[0]]).addClass("page-transitioning page-transitioning-swipeback").transform(""),o&&R({progress:t?1:0,transition:!0}),w=!1,u.allowPageChange=!1;var l={currentPageEl:b[0],previousPageEl:y[0],currentNavbarEl:C[0],previousNavbarEl:x[0]};t?(u.currentRoute=y[0].f7Page.route,u.currentPage=y[0],u.pageCallback("beforeOut",b,C,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("beforeIn",y,x,"previous","current",{route:y[0].f7Page.route,swipeBack:!0},b[0]),p.trigger("swipeback:beforechange",l),u.emit("swipebackBeforeChange",l)):(p.trigger("swipeback:beforereset",l),u.emit("swipebackBeforeReset",l)),b.transitionEnd((function(){$([b[0],y[0]]).removeClass("page-transitioning page-transitioning-swipeback"),o&&R({reset:!0,transition:!1}),w=!0,u.allowPageChange=!0,t?(1===u.history.length&&u.history.unshift(u.url),u.history.pop(),u.saveHistory(),f.pushState&&History.back(),u.pageCallback("afterOut",b,C,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("afterIn",y,x,"previous","current",{route:y[0].f7Page.route,swipeBack:!0}),f.stackPages&&u.initialPages.indexOf(b[0])>=0?(b.addClass("stacked"),o&&C.addClass("stacked")):(u.pageCallback("beforeRemove",b,C,"next",{swipeBack:!0}),u.removePage(b),o&&u.removeNavbar(C)),p.trigger("swipeback:afterchange",l),u.emit("swipebackAfterChange",l),u.emit("routeChanged",u.currentRoute,u.previousRoute,u),f.preloadPreviousPage&&u.back(u.history[u.history.length-2],{preload:!0})):(p.trigger("swipeback:afterreset",l),u.emit("swipebackAfterReset",l)),i&&i.length>0&&i.remove(),s&&s.length>0&&s.remove()}))}c=!("touchstart"!==h.touchEvents.start||!Support.passiveListener)&&{passive:!0,capture:!1},p.on(h.touchEvents.start,N,c),h.on("touchmove:active",D),h.on("touchend:passive",L),u.on("routerDestroy",(function(){var e=!("touchstart"!==h.touchEvents.start||!Support.passiveListener)&&{passive:!0,capture:!1};p.off(h.touchEvents.start,N,e),h.off("touchmove:active",D),h.off("touchend:passive",L)}))}function redirect(e,t,a){var r=this,n=t.route.redirect;if(a.initial&&r.params.pushState&&(a.replaceState=!0,a.history=!0),"function"==typeof n){r.allowPageChange=!1;var o=n.call(r,t,(function(t,n){void 0===n&&(n={}),r.allowPageChange=!0,r[e](t,Utils.extend({},a,n))}),(function(){r.allowPageChange=!0}));return o&&"string"==typeof o?(r.allowPageChange=!0,r[e](o,a)):r}return r[e](n,a)}function processQueue(e,t,a,r,n,o,i){var s=[];Array.isArray(a)?s.push.apply(s,a):a&&"function"==typeof a&&s.push(a),t&&(Array.isArray(t)?s.push.apply(s,t):s.push(t)),function t(){0!==s.length?s.shift().call(e,r,n,(function(){t()}),(function(){i()})):o()}()}function processRouteQueue(e,t,a,r){var n=this;function o(){e&&e.route&&(n.params.routesBeforeEnter||e.route.beforeEnter)?(n.allowPageChange=!1,processQueue(n,n.params.routesBeforeEnter,e.route.beforeEnter,e,t,(function(){n.allowPageChange=!0,a()}),(function(){r()}))):a()}t&&t.route&&(n.params.routesBeforeLeave||t.route.beforeLeave)?(n.allowPageChange=!1,processQueue(n,n.params.routesBeforeLeave,t.route.beforeLeave,e,t,(function(){n.allowPageChange=!0,o()}),(function(){r()}))):o()}function appRouterCheck(e,t){if(!e.view)throw new Error("Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router."+t+"(...)")}function asyncComponent(e,t,a,r){function n(e){e.then((function(e){a({component:e.default||e._default||e})})).catch((function(e){throw r(),new Error(e)}))}if(t instanceof Promise)n(t);else{var o=t.call(e);o instanceof Promise?n(o):a({component:o})}}function refreshPage(){return appRouterCheck(this,"refreshPage"),this.navigate(this.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})}function forward(e,t){void 0===t&&(t={});var a,r,n,o=this,i=$(e),s=o.app,l=o.view,c=Utils.extend(!1,{animate:o.params.animate,pushState:!0,replaceState:!1,history:!0,reloadCurrent:o.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:o.params.reloadDetail,on:{}},t),u=o.params.masterDetailBreakpoint>0,p=u&&c.route&&c.route.route&&!0===c.route.route.master,d=o.currentRoute.modal;if(d||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){o.currentRoute&&o.currentRoute.route&&o.currentRoute.route[e]&&(d=!0,n=e)})),d){var h=o.currentRoute.modal||o.currentRoute.route.modalInstance||s[n].get(),f=o.history[o.history.length-2],v=o.findMatchingRoute(f);!v&&f&&(v={url:f,path:f.split("?")[0],query:Utils.parseUrlQuery(f),route:{path:f.split("?")[0],url:f}}),o.modalRemove(h)}var m,g,b,y,w=o.dynamicNavbar,C=o.$el,x=i,k=c.reloadPrevious||c.reloadCurrent||c.reloadAll;if(o.allowPageChange=!1,0===x.length)return o.allowPageChange=!0,o;x.length&&o.removeThemeElements(x),w&&(b=x.children(".navbar"),g=o.$navbarsEl,0===b.length&&x[0]&&x[0].f7Page&&(b=x[0].f7Page.$navbarEl)),c.route&&c.route.route&&c.route.route.keepAlive&&!c.route.route.keepAliveData&&(c.route.route.keepAliveData={pageEl:i[0]});var E,S,T,O,P=C.children(".page:not(.stacked)").filter((function(e,t){return t!==x[0]}));if(w&&(E=g.children(".navbar:not(.stacked)").filter((function(e,t){return t!==b[0]}))),c.reloadPrevious&&P.length<2)return o.allowPageChange=!0,o;if(u&&!c.reloadAll){for(var R=0;R<P.length;R+=1)a||!P[R].classList.contains("page-master")||(a=P[R]);if((S=!p&&a)&&a)for(var N=0;N<P.length;N+=1)P[N].classList.contains("page-master-detail")&&(r=P[N]);T=S&&c.reloadDetail&&s.width>=o.params.masterDetailBreakpoint&&a}S&&(O=!r||T||c.reloadAll||c.reloadCurrent);var D="next";if(c.reloadCurrent||c.reloadAll||T?D="current":c.reloadPrevious&&(D="previous"),x.removeClass("page-previous page-current page-next").addClass("page-"+D+(p?" page-master":"")+(S?" page-master-detail":"")+(O?" page-master-detail-root":"")).removeClass("stacked").trigger("page:unstack").trigger("page:position",{position:D}),o.emit("pageUnstack",x[0]),o.emit("pagePosition",x[0],D),(p||S)&&(x.trigger("page:role",{role:p?"master":"detail",root:!!O}),o.emit("pageRole",x[0],{role:p?"master":"detail",detailRoot:!!O})),w&&b.length&&(b.removeClass("navbar-previous navbar-current navbar-next").addClass("navbar-"+D+(p?" navbar-master":"")+(S?" navbar-master-detail":"")+(O?" navbar-master-detail-root":"")).removeClass("stacked"),b.trigger("navbar:position",{position:D}),o.emit("navbarPosition",b[0],D),(p||S)&&o.emit("navbarRole",b[0],{role:p?"master":"detail",detailRoot:!!O})),c.reloadCurrent||T)m=P.eq(P.length-1),w&&(y=$(s.navbar.getElByPage(m)));else if(c.reloadPrevious)m=P.eq(P.length-2),w&&(y=$(s.navbar.getElByPage(m)));else if(c.reloadAll)m=P.filter((function(e,t){return t!==x[0]})),w&&(y=E.filter((function(e,t){return t!==b[0]})));else{var L=[],M=[];if(P.length>1){var A=0;for(A=0;A<P.length-1;A+=1)if(a&&P[A]===a)P.eq(A).addClass("page-master-stacked"),P.eq(A).trigger("page:masterstack"),o.emit("pageMasterStack",P[A]),w&&($(s.navbar.getElByPage(a)).addClass("navbar-master-stacked"),o.emit("navbarMasterStack",s.navbar.getElByPage(a)));else{var U=s.navbar.getElByPage(P.eq(A));o.params.stackPages?(P.eq(A).addClass("stacked"),P.eq(A).trigger("page:stack"),o.emit("pageStack",P[A]),w&&$(U).addClass("stacked")):(L.push(P[A]),o.pageCallback("beforeRemove",P[A],E&&E[A],"previous",void 0,c),o.removePage(P[A]),w&&U&&(M.push(U),o.removeNavbar(U)))}}m=C.children(".page:not(.stacked)").filter((function(e,t){return t!==x[0]&&L.indexOf(t)<0})),w&&(y=g.children(".navbar:not(.stacked)").filter((function(e,t){return t!==b[0]&&M.indexOf(M)<0}))),L=[],M=[]}if(S&&!c.reloadAll&&((m.length>1||T)&&(m=m.filter((function(e,t){return!t.classList.contains("page-master")}))),y&&(y.length>1||T)&&(y=y.filter((function(e,t){return!t.classList.contains("navbar-master")})))),o.params.pushState&&(c.pushState||c.replaceState)&&!c.reloadPrevious){var B=o.params.pushStateRoot||"";History[c.reloadCurrent||T&&r||c.reloadAll||c.replaceState?"replace":"push"](l.id,{url:c.route.url},B+o.params.pushStateSeparator+c.route.url)}c.reloadPrevious||(o.currentPageEl=x[0],w&&b.length?o.currentNavbarEl=b[0]:delete o.currentNavbarEl,o.currentRoute=c.route);var H=c.route.url;c.history&&(((c.reloadCurrent||T&&r)&&o.history.length)>0||c.replaceState?o.history[o.history.length-(c.reloadPrevious?2:1)]=H:c.reloadPrevious?o.history[o.history.length-2]=H:c.reloadAll?o.history=[H]:o.history.push(H)),o.saveHistory();var j=x.parents(doc).length>0,q=x[0].f7Component;if(c.reloadPrevious?(q&&!j?q.$mount((function(e){$(e).insertBefore(m)})):x.insertBefore(m),w&&b.length&&(b.find(".title-large").length&&b.addClass("navbar-large"),y.length?b.insertBefore(y):(o.$navbarsEl.parents(doc).length||o.$el.prepend(o.$navbarsEl),g.append(b)))):(m.next(".page")[0]!==x[0]&&(q&&!j?q.$mount((function(e){C.append(e)})):C.append(x[0])),w&&b.length&&(b.find(".title-large").length&&b.addClass("navbar-large"),o.$navbarsEl.parents(doc).length||o.$el.prepend(o.$navbarsEl),g.append(b[0]))),j?c.route&&c.route.route&&c.route.route.keepAlive&&!x[0].f7PageMounted&&(x[0].f7PageMounted=!0,o.pageCallback("mounted",x,b,D,k?D:"current",c,m)):o.pageCallback("mounted",x,b,D,k?D:"current",c,m),(c.reloadCurrent||T)&&m.length>0?o.params.stackPages&&o.initialPages.indexOf(m[0])>=0?(m.addClass("stacked"),m.trigger("page:stack"),o.emit("pageStack",m[0]),w&&y.addClass("stacked")):(o.pageCallback("beforeOut",m,y,"current",void 0,c),o.pageCallback("afterOut",m,y,"current",void 0,c),o.pageCallback("beforeRemove",m,y,"current",void 0,c),o.removePage(m),w&&y&&y.length&&o.removeNavbar(y)):c.reloadAll?m.each((function(e,t){var a=$(t),r=$(s.navbar.getElByPage(a));o.params.stackPages&&o.initialPages.indexOf(a[0])>=0?(a.addClass("stacked"),a.trigger("page:stack"),o.emit("pageStack",a[0]),w&&r.addClass("stacked")):(a.hasClass("page-current")&&(o.pageCallback("beforeOut",m,y,"current",void 0,c),o.pageCallback("afterOut",m,y,"current",void 0,c)),o.pageCallback("beforeRemove",a,y&&y.eq(e),"previous",void 0,c),o.removePage(a),w&&r.length&&o.removeNavbar(r))})):c.reloadPrevious&&(o.params.stackPages&&o.initialPages.indexOf(m[0])>=0?(m.addClass("stacked"),m.trigger("page:stack"),o.emit("pageStack",m[0]),w&&y.addClass("stacked")):(o.pageCallback("beforeRemove",m,y,"previous",void 0,c),o.removePage(m),w&&y&&y.length&&o.removeNavbar(y))),c.route.route.tab&&o.tabLoad(c.route.route.tab,Utils.extend({},c,{history:!1,pushState:!1})),u&&l.checkMasterDetailBreakpoint(),o.pageCallback("init",x,b,D,k?D:"current",c,m),c.reloadCurrent||c.reloadAll||T)return o.allowPageChange=!0,o.pageCallback("beforeIn",x,b,D,"current",c),x.removeAttr("aria-hidden"),w&&b&&b.removeAttr("aria-hidden"),o.pageCallback("afterIn",x,b,D,"current",c),c.reloadCurrent&&c.clearPreviousHistory&&o.clearPreviousHistory(),T&&(o.setPagePosition($(a),"previous"),a.f7Page&&a.f7Page.navbarEl&&o.setNavbarPosition($(a.f7Page.navbarEl),"previous")),o;if(c.reloadPrevious)return o.allowPageChange=!0,o;function _(){o.setPagePosition(x,"current",!1),o.setPagePosition(m,"previous",!m.hasClass("page-master")),w&&(o.setNavbarPosition(b,"current",!1),o.setNavbarPosition(y,"previous",!y.hasClass("navbar-master"))),o.allowPageChange=!0,o.pageCallback("afterOut",m,y,"current","previous",c),o.pageCallback("afterIn",x,b,"next","current",c);var e=(o.params.preloadPreviousPage||o.params[s.theme+"SwipeBack"])&&!p;e||(x.hasClass("smart-select-page")||x.hasClass("photo-browser-page")||x.hasClass("autocomplete-page")||x.hasClass("color-picker-page"))&&(e=!0),e||(o.params.stackPages?(m.addClass("stacked"),m.trigger("page:stack"),o.emit("pageStack",m[0]),w&&y.addClass("stacked")):x.attr("data-name")&&"smart-select-page"===x.attr("data-name")||(o.pageCallback("beforeRemove",m,y,"previous",void 0,c),o.removePage(m),w&&y.length&&o.removeNavbar(y))),c.clearPreviousHistory&&o.clearPreviousHistory(),o.emit("routeChanged",o.currentRoute,o.previousRoute,o),o.params.pushState&&History.clearRouterQueue()}function F(){o.setPagePosition(m,"current",!1),o.setPagePosition(x,"next",!1),w&&(o.setNavbarPosition(y,"current",!1),o.setNavbarPosition(b,"next",!1))}if(o.pageCallback("beforeOut",m,y,"current","previous",c),o.pageCallback("beforeIn",x,b,"next","current",c),!c.animate||p&&s.width>=o.params.masterDetailBreakpoint)_();else{var V=o.params[o.app.theme+"PageLoadDelay"],I=o.params.transition;c.transition&&(I=c.transition),!I&&o.currentRoute&&o.currentRoute.route&&(I=o.currentRoute.route.transition),!I&&o.currentRoute&&o.currentRoute.route.options&&(I=o.currentRoute.route.options.transition),I&&(x[0].f7PageTransition=I),V?setTimeout((function(){F(),o.animate(m,x,y,b,"forward",I,(function(){_()}))}),V):(F(),o.animate(m,x,y,b,"forward",I,(function(){_()})))}return o}function load(e,t,a){void 0===e&&(e={}),void 0===t&&(t={});var r=this;if(!r.allowPageChange&&!a)return r;var n=e,o=t,i=n.url,s=n.content,l=n.el,c=n.pageName,u=n.template,p=n.templateUrl,d=n.component,h=n.componentUrl;if(!o.reloadCurrent&&o.route&&o.route.route&&o.route.route.parentPath&&r.currentRoute.route&&r.currentRoute.route.parentPath===o.route.route.parentPath){if(o.route.url===r.url)return r.allowPageChange=!0,!1;var f=Object.keys(o.route.params).length===Object.keys(r.currentRoute.params).length;if(f&&Object.keys(o.route.params).forEach((function(e){e in r.currentRoute.params&&r.currentRoute.params[e]===o.route.params[e]||(f=!1)})),f)return!!o.route.route.tab&&r.tabLoad(o.route.route.tab,o);if(!f&&o.route.route.tab&&r.currentRoute.route.tab&&r.currentRoute.parentPath===o.route.parentPath)return r.tabLoad(o.route.route.tab,o)}if(o.route&&o.route.url&&r.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!r.params.allowDuplicateUrls)return r.allowPageChange=!0,!1;function v(e,t){return r.forward(e,Utils.extend(o,t))}function m(){return r.allowPageChange=!0,r}if(!o.route&&i&&(o.route=r.parseRouteUrl(i),Utils.extend(o.route,{route:{url:i,path:i}})),(i||p||h||d)&&(r.allowPageChange=!1),s)r.forward(r.getPageEl(s),o);else if(u||p)try{r.pageTemplateLoader(u,p,o,v,m)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.forward(r.getPageEl(l),o);else if(c)r.forward(r.$el.children('.page[data-name="'+c+'"]').eq(0),o);else if(d||h)try{r.pageComponentLoader(r.el,d,h,o,v,m)}catch(e){throw r.allowPageChange=!0,e}else i&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(i,o).then((function(e){r.forward(r.getPageEl(e),o)})).catch((function(){r.allowPageChange=!0})));return r}function navigate(e,t){void 0===t&&(t={});var a,r,n,o,i,s,l,c=this;if(c.swipeBackActive)return c;if("string"==typeof e?a=e:(a=e.url,r=e.route,n=e.name,o=e.path,i=e.query,s=e.params),n||o)return(a=c.generateUrl({path:o,name:n,params:s,query:i}))?c.navigate(a,t):c;var u=c.app;if(appRouterCheck(c,"navigate"),"#"===a||""===a)return c;var p=a.replace("./","");if("/"!==p[0]&&0!==p.indexOf("#")){var d=c.currentRoute.parentPath||c.currentRoute.path;p=((d?d+"/":"/")+p).replace("///","/").replace("//","/")}if(!(l=r?Utils.extend(c.parseRouteUrl(p),{route:Utils.extend({},r)}):c.findMatchingRoute(p)))return c;if(l.route&&l.route.viewName){var h=l.route.viewName,f=u.views[h];if(!f)throw new Error('Framework7: There is no View with "'+h+'" name that was specified in this route');if(f!==c.view)return f.router.navigate(e,t)}if(l.route.redirect)return redirect.call(c,"navigate",l,t);var v={};function m(){var e=!1;function t(e,t){c.allowPageChange=!1;var a=!1;t&&t.context&&(l.context?l.context=Utils.extend({},l.context,t.context):l.context=t.context,v.route.context=l.context),"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(r){if(e[r]){a=!0;var n=Utils.extend({},l,{route:e});c.allowPageChange=!0,c.modalLoad(r,n,Utils.extend(v,t))}})),a||c.load(e,Utils.extend(v,t),!0)}function a(){c.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(t){l.route[t]&&!e&&(e=!0,c.modalLoad(t,l,v))})),l.route.keepAlive&&l.route.keepAliveData&&(c.load({el:l.route.keepAliveData.pageEl},v,!1),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){var a;l.route[t]&&!e&&(e=!0,c.load(((a={})[t]=l.route[t],a),v,!1))})),e||(l.route.async&&(c.allowPageChange=!1,l.route.async.call(c,v.route,c.currentRoute,t,a)),l.route.asyncComponent&&asyncComponent(c,l.route.asyncComponent,t,a))}function g(){c.allowPageChange=!0}if(l.route.options?Utils.extend(v,l.route.options,t):Utils.extend(v,t),v.route=l,v&&v.context&&(l.context=v.context,v.route.context=v.context),c.params.masterDetailBreakpoint>0&&l.route.masterRoute){var b=!0,y=!1;if(c.currentRoute&&c.currentRoute.route&&(!c.currentRoute.route.master||c.currentRoute.route!==l.route.masterRoute&&c.currentRoute.route.path!==l.route.masterRoute.path||(b=!1),!c.currentRoute.route.masterRoute||c.currentRoute.route.masterRoute!==l.route.masterRoute&&c.currentRoute.route.masterRoute.path!==l.route.masterRoute.path||(b=!1,y=!0)),b||y&&t.reloadAll)return c.navigate({path:l.route.masterRoute.path,params:l.params||{}},{animate:!1,reloadAll:t.reloadAll,reloadCurrent:t.reloadCurrent,reloadPrevious:t.reloadPrevious,pushState:!t.initial,history:!t.initial,once:{pageAfterIn:function(){c.navigate(e,Utils.extend({},t,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!t.initial,pushState:!t.initial}))}}}),c}return processRouteQueue.call(c,l,c.currentRoute,(function(){l.route.modules?u.loadModules(Array.isArray(l.route.modules)?l.route.modules:[l.route.modules]).then((function(){m()})).catch((function(){g()})):m()}),(function(){g()})),c}function tabLoad(e,t){void 0===t&&(t={});var a,r,n=this,o=Utils.extend({animate:n.params.animate,pushState:!0,history:!0,parentPageEl:null,preload:!1,on:{}},t);o.route&&(o.preload||o.route===n.currentRoute||(r=n.previousRoute,n.currentRoute=o.route),o.preload?(a=o.route,r=n.currentRoute):(a=n.currentRoute,r||(r=n.previousRoute)),n.params.pushState&&o.pushState&&!o.reloadPrevious&&History.replace(n.view.id,{url:o.route.url},(n.params.pushStateRoot||"")+n.params.pushStateSeparator+o.route.url),o.history&&(n.history[Math.max(n.history.length-1,0)]=o.route.url,n.saveHistory()));var i,s=$(o.parentPageEl||n.currentPageEl);i=s.length&&s.find("#"+e.id).length?s.find("#"+e.id).eq(0):n.view.selector?n.view.selector+" #"+e.id:"#"+e.id;var l,c=n.app.tab.show({tabEl:i,animate:o.animate,tabRoute:o.route}),u=c.$newTabEl,p=c.$oldTabEl,d=c.animated,h=c.onTabsChanged;if(u&&u.parents(".page").length>0&&o.route){var f=u.parents(".page")[0].f7Page;f&&o.route&&(f.route=o.route)}if(u[0].f7RouterTabLoaded)return p&&p.length?(d?h((function(){n.emit("routeChanged",n.currentRoute,n.previousRoute,n)})):n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n):n;function v(t,a){var r=t.url,o=t.content,i=t.el,s=t.template,l=t.templateUrl,c=t.component,f=t.componentUrl;function v(t){n.allowPageChange=!0,t&&("string"==typeof t?u.html(t):(u.html(""),t.f7Component?t.f7Component.$mount((function(e){u.append(e)})):u.append(t)),u[0].f7RouterTabLoaded=!0,function(t){n.removeThemeElements(u);var a=u;"string"!=typeof t&&(a=$(t)),a.trigger("tab:init tab:mounted",e),n.emit("tabInit tabMounted",u[0],e),p&&p.length&&(d?h((function(){n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(p,u,e)})):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(p,u,e)))}(t))}function m(){return n.allowPageChange=!0,n}if(o)v(o);else if(s||l)try{n.tabTemplateLoader(s,l,a,v,m)}catch(e){throw n.allowPageChange=!0,e}else if(i)v(i);else if(c||f)try{n.tabComponentLoader(u[0],c,f,a,v,m)}catch(e){throw n.allowPageChange=!0,e}else r&&(n.xhr&&(n.xhr.abort(),n.xhr=!1),n.xhrRequest(r,a).then((function(e){v(e)})).catch((function(){n.allowPageChange=!0})))}function m(e,t){v(e,Utils.extend(o,t))}function g(){n.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(t){var a;e[t]&&(l=!0,v(((a={})[t]=e[t],a),o))})),e.async?e.async.call(n,a,r,m,g):e.asyncComponent?asyncComponent(n,e.asyncComponent,m,g):l||(n.allowPageChange=!0),n}function tabRemove(e,t,a){var r;e[0]&&(e[0].f7RouterTabLoaded=!1,delete e[0].f7RouterTabLoaded),e.children().each((function(e,t){t.f7Component&&(r=!0,$(t).trigger("tab:beforeremove",a),t.f7Component.$destroy())})),r||e.trigger("tab:beforeremove",a),this.emit("tabBeforeRemove",e[0],t[0],a),this.removeTabContent(e[0],a)}function modalLoad(e,t,a){void 0===a&&(a={});var r,n=this,o=n.app,i="panel"===e,s=i?"panel":"modal",l=Utils.extend({animate:n.params.animate,pushState:!0,history:!0,on:{}},a),c=Utils.extend({},t.route[e]),u=t.route;function p(){var a=o[e].create(c);u.modalInstance=a;var r=a.el;function p(){a.close()}a.on(s+"Open",(function(){r||(n.removeThemeElements(a.el),a.$el.trigger(e.toLowerCase()+":init "+e.toLowerCase()+":mounted",t,a),n.emit((i?"":"modalInit")+" "+e+"Init "+e+"Mounted",a.el,t,a)),n.once("swipeBackMove",p)})),a.on(s+"Close",(function(){n.off("swipeBackMove",p),a.closeByRouter||n.back()})),a.on(s+"Closed",(function(){a.$el.trigger(e.toLowerCase()+":beforeremove",t,a),a.emit((i?"":"modalBeforeRemove ")+e+"BeforeRemove",a.el,t,a);var r=a.el.f7Component;r&&r.$destroy(),Utils.nextTick((function(){(r||c.component)&&n.removeModal(a.el),a.destroy(),delete a.route,delete u.modalInstance}))})),l.route&&(n.params.pushState&&l.pushState&&History.push(n.view.id,{url:l.route.url,modal:e},(n.params.pushStateRoot||"")+n.params.pushStateSeparator+l.route.url),l.route!==n.currentRoute&&(a.route=Utils.extend(l.route,{modal:a}),n.currentRoute=a.route),l.history&&(n.history.push(l.route.url),n.saveHistory())),r&&(n.removeThemeElements(a.el),a.$el.trigger(e.toLowerCase()+":init "+e.toLowerCase()+":mounted",t,a),n.emit(s+"Init "+e+"Init "+e+"Mounted",a.el,t,a)),a.open()}function d(e,t){var a=e.url,r=e.content,i=e.template,s=e.templateUrl,l=e.component,u=e.componentUrl;function d(e){e&&("string"==typeof e?c.content=e:e.f7Component?e.f7Component.$mount((function(e){c.el=e,o.root.append(e)})):c.el=e,p())}function h(){return n.allowPageChange=!0,n}if(r)d(r);else if(i||s)try{n.modalTemplateLoader(i,s,t,d,h)}catch(e){throw n.allowPageChange=!0,e}else if(l||u)try{n.modalComponentLoader(o.root[0],l,u,t,d,h)}catch(e){throw n.allowPageChange=!0,e}else a?(n.xhr&&(n.xhr.abort(),n.xhr=!1),n.xhrRequest(a,t).then((function(e){c.content=e,p()})).catch((function(){n.allowPageChange=!0}))):p()}function h(e,t){d(e,Utils.extend(l,t))}function f(){n.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(e){var t;c[e]&&!r&&(r=!0,d(((t={})[e]=c[e],t),l))})),r||"actions"!==e||p(),c.async&&c.async.call(n,l.route,n.currentRoute,h,f),c.asyncComponent&&asyncComponent(n,c.asyncComponent,h,f),n}function modalRemove(e){Utils.extend(e,{closeByRouter:!0}),e.close()}function backward(e,t){var a,r,n,o,i,s,l,c,u=this,p=$(e),d=u.app,h=u.view,f=Utils.extend({animate:u.params.animate,pushState:!0,replaceState:!1},t),v=u.params.masterDetailBreakpoint>0,m=v&&f.route&&f.route.route&&!0===f.route.route.master,g=u.dynamicNavbar,b=p,y=u.$el.children(".page-current"),w=v&&y.hasClass("page-master");if(b.length&&u.removeThemeElements(b),g&&(o=b.children(".navbar"),n=u.$navbarsEl,0===o.length&&b[0]&&b[0].f7Page&&(o=b[0].f7Page.$navbarEl),i=n.find(".navbar-current")),u.allowPageChange=!1,0===b.length||0===y.length)return u.allowPageChange=!0,u;if(u.removeThemeElements(b),f.route&&f.route.route&&f.route.route.keepAlive&&!f.route.route.keepAliveData&&(f.route.route.keepAliveData={pageEl:p[0]}),v){for(var C=u.$el.children(".page:not(.stacked)").filter((function(e,t){return t!==b[0]})),x=0;x<C.length;x+=1)a||!C[x].classList.contains("page-master")||(a=C[x]);!(s=!m&&a&&u.history.indexOf(f.route.url)>u.history.indexOf(a.f7Page.route.url))&&!m&&a&&a.f7Page&&f.route.route.masterRoute&&(s=f.route.route.masterRoute.path===a.f7Page.route.route.path)}if(s&&a&&a.f7Page&&(l=u.history.indexOf(f.route.url)-u.history.indexOf(a.f7Page.route.url)==1),b.addClass("page-previous"+(m?" page-master":"")+(s?" page-master-detail":"")+(l?" page-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:"previous"}),u.emit("pageUnstack",b[0]),u.emit("pagePosition",b[0],"previous"),(m||s)&&(b.trigger("page:role",{role:m?"master":"detail",root:!!l}),u.emit("pageRole",b[0],{role:m?"master":"detail",detailRoot:!!l})),g&&o.length>0&&(o.addClass("navbar-previous"+(m?" navbar-master":"")+(s?" navbar-master-detail":"")+(l?" navbar-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden"),o.trigger("navbar:position",{position:"previous"}),u.emit("navbarPosition",o[0],"previous"),(m||l)&&u.emit("navbarRole",o[0],{role:m?"master":"detail",detailRoot:!!l})),f.force&&(y.prev(".page-previous:not(.stacked)").length>0||0===y.prev(".page-previous").length))if(u.history.indexOf(f.route.url)>=0?(c=u.history.length-u.history.indexOf(f.route.url)-1,u.history=u.history.slice(0,u.history.indexOf(f.route.url)+2),h.history=u.history):u.history[[u.history.length-2]]?u.history[u.history.length-2]=f.route.url:u.history.unshift(u.url),c&&u.params.stackPages)y.prevAll(".page-previous").each((function(e,t){var n,o=$(t);g&&(n=$(d.navbar.getElByPage(o))),o[0]!==b[0]&&o.index()>b.index()&&(u.initialPages.indexOf(o[0])>=0?(o.addClass("stacked"),o.trigger("page:stack"),u.emit("pageStack",o[0]),g&&n.addClass("stacked")):(u.pageCallback("beforeRemove",o,n,"previous",void 0,f),o[0]===a&&(r=!0),u.removePage(o),g&&n.length>0&&u.removeNavbar(n)))}));else{var k,E=y.prev(".page-previous:not(.stacked)");g&&(k=$(d.navbar.getElByPage(E))),u.params.stackPages&&u.initialPages.indexOf(E[0])>=0?(E.addClass("stacked"),E.trigger("page:stack"),u.emit("pageStack",E[0]),k.addClass("stacked")):E.length>0&&(u.pageCallback("beforeRemove",E,k,"previous",void 0,f),E[0]===a&&(r=!0),u.removePage(E),g&&k.length&&u.removeNavbar(k))}var S=b.parents(doc).length>0,T=b[0].f7Component;function O(){0===b.next(y).length&&(!S&&T?T.$mount((function(e){$(e).insertBefore(y)})):b.insertBefore(y)),g&&o.length&&(o.find(".title-large").length&&o.addClass("navbar-large"),o.insertBefore(i),i.length>0?o.insertBefore(i):(u.$navbarsEl.parents(doc).length||u.$el.prepend(u.$navbarsEl),n.append(o))),S?f.route&&f.route.route&&f.route.route.keepAlive&&!b[0].f7PageMounted&&(b[0].f7PageMounted=!0,u.pageCallback("mounted",b,o,"previous","current",f,y)):u.pageCallback("mounted",b,o,"previous","current",f,y)}if(f.preload){O(),f.route.route.tab&&u.tabLoad(f.route.route.tab,Utils.extend({},f,{history:!1,pushState:!1,preload:!0})),m&&(b.removeClass("page-master-stacked").trigger("page:masterunstack"),u.emit("pageMasterUnstack",b[0]),g&&($(d.navbar.getElByPage(b)).removeClass("navbar-master-stacked"),u.emit("navbarMasterUnstack",d.navbar.getElByPage(b)))),u.pageCallback("init",b,o,"previous","current",f,y);var P=b.prevAll(".page-previous:not(.stacked):not(.page-master)");return P.length>0&&P.each((function(e,t){var a,r=$(t);g&&(a=$(d.navbar.getElByPage(r))),u.params.stackPages&&u.initialPages.indexOf(t)>=0?(r.addClass("stacked"),r.trigger("page:stack"),u.emit("pageStack",r[0]),g&&a.addClass("stacked")):(u.pageCallback("beforeRemove",r,a,"previous",void 0),u.removePage(r),g&&a.length&&u.removeNavbar(a))})),u.allowPageChange=!0,u}if(!(Device.ie||Device.edge||Device.firefox&&!Device.ios)&&u.params.pushState&&f.pushState)if(f.replaceState){var R=u.params.pushStateRoot||"";History.replace(h.id,{url:f.route.url},R+u.params.pushStateSeparator+f.route.url)}else c?History.go(-c):History.back();if(f.replaceState?u.history[u.history.length-1]=f.route.url:(1===u.history.length&&u.history.unshift(u.url),u.history.pop()),u.saveHistory(),u.currentPageEl=b[0],g&&o.length?u.currentNavbarEl=o[0]:delete u.currentNavbarEl,u.currentRoute=f.route,(Device.ie||Device.edge||Device.firefox&&!Device.ios)&&u.params.pushState&&f.pushState)if(f.replaceState){var N=u.params.pushStateRoot||"";History.replace(h.id,{url:f.route.url},N+u.params.pushStateSeparator+f.route.url)}else c?History.go(-c):History.back();function D(){u.setPagePosition(b,"current",!1),u.setPagePosition(y,"next",!0),g&&(u.setNavbarPosition(o,"current",!1),u.setNavbarPosition(i,"next",!0)),u.pageCallback("afterOut",y,i,"current","next",f),u.pageCallback("afterIn",b,o,"previous","current",f),u.params.stackPages&&u.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),y.trigger("page:stack"),u.emit("pageStack",y[0]),g&&i.addClass("stacked")):(u.pageCallback("beforeRemove",y,i,"next",void 0,f),u.removePage(y),g&&i.length&&u.removeNavbar(i)),u.allowPageChange=!0,u.emit("routeChanged",u.currentRoute,u.previousRoute,u),(u.params.preloadPreviousPage||u.params[d.theme+"SwipeBack"])&&u.history[u.history.length-2]&&!m&&u.back(u.history[u.history.length-2],{preload:!0}),u.params.pushState&&History.clearRouterQueue()}if(O(),f.route.route.tab&&u.tabLoad(f.route.route.tab,Utils.extend({},f,{history:!1,pushState:!1})),v&&(w||r)&&h.checkMasterDetailBreakpoint(!1),u.pageCallback("init",b,o,"previous","current",f,y),u.pageCallback("beforeOut",y,i,"current","next",f),u.pageCallback("beforeIn",b,o,"previous","current",f),!f.animate||w&&d.width>=u.params.masterDetailBreakpoint)D();else{var L=u.params.transition;y[0]&&y[0].f7PageTransition&&(L=y[0].f7PageTransition,delete y[0].f7PageTransition),f.transition&&(L=f.transition),!L&&u.previousRoute&&u.previousRoute.route&&(L=u.previousRoute.route.transition),!L&&u.previousRoute&&u.previousRoute.route&&u.previousRoute.route.options&&(L=u.previousRoute.route.options.transition),u.setPagePosition(y,"current"),u.setPagePosition(b,"previous",!1),g&&(u.setNavbarPosition(i,"current"),u.setNavbarPosition(o,"previous",!1)),u.animate(y,b,i,o,"backward",L,(function(){D()}))}return u}function loadBack(e,t,a){var r=this;if(!r.allowPageChange&&!a)return r;var n=e,o=t,i=n.url,s=n.content,l=n.el,c=n.pageName,u=n.template,p=n.templateUrl,d=n.component,h=n.componentUrl;if(o.route.url&&r.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!r.params.allowDuplicateUrls)return!1;function f(e,t){return r.backward(e,Utils.extend(o,t))}function v(){return r.allowPageChange=!0,r}if(!o.route&&i&&(o.route=r.parseRouteUrl(i)),(i||p||h||d)&&(r.allowPageChange=!1),s)r.backward(r.getPageEl(s),o);else if(u||p)try{r.pageTemplateLoader(u,p,o,f,v)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.backward(r.getPageEl(l),o);else if(c)r.backward(r.$el.children('.page[data-name="'+c+'"]').eq(0),o);else if(d||h)try{r.pageComponentLoader(r.el,d,h,o,f,v)}catch(e){throw r.allowPageChange=!0,e}else i&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(i,o).then((function(e){r.backward(r.getPageEl(e),o)})).catch((function(){r.allowPageChange=!0})));return r}function back(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,r,n,o=this;if(o.swipeBackActive)return o;"object"==typeof e[0]?r=e[0]||{}:(a=e[0],r=e[1]||{});var i=r.name,s=r.params,l=r.query;if(i)return(a=o.generateUrl({name:i,params:s,query:l}))?o.back(a,Utils.extend({},r,{name:null,params:null,query:null})):o;var c=o.app;appRouterCheck(o,"back");var u,p=o.currentRoute.modal;if(p||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){o.currentRoute.route[e]&&(p=!0,u=e)})),p){var d,h=o.currentRoute.modal||o.currentRoute.route.modalInstance||c[u].get(),f=o.history[o.history.length-2];if(h&&h.$el){var v=h.$el.prevAll(".modal-in");if(v.length&&v[0].f7Modal){var m=v[0];o.$el.parents(m).length||(d=m.f7Modal.route)}}if(d||(d=o.findMatchingRoute(f)),!d&&f&&(d={url:f,path:f.split("?")[0],query:Utils.parseUrlQuery(f),route:{path:f.split("?")[0],url:f}}),!(a&&0!==a.replace(/[# ]/g,"").trim().length||d&&h))return o;var g=r.force&&d&&a;if(d&&h){var b=Device.ie||Device.edge||Device.firefox&&!Device.ios,y=o.params.pushState&&!1!==r.pushState,w=o.currentRoute&&o.currentRoute.route&&o.currentRoute.route.options&&!1===o.currentRoute.route.options.pushState;!y||b||w||History.back(),o.currentRoute=d,o.history.pop(),o.saveHistory(),y&&b&&!w&&History.back(),o.modalRemove(h),g&&o.navigate(a,{reloadCurrent:!0})}else h&&(o.modalRemove(h),a&&o.navigate(a,{reloadCurrent:!0}));return o}var C,x=o.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(o.params.masterDetailBreakpoint>0){var k=[];o.$el.children(".page").each((function(e,t){k.push(t.className)}));var E=o.$el.children(".page-current").prevAll(".page-master").eq(0);if(E.length){var $=o.history[o.history.length-2],S=o.findMatchingRoute($);S&&E[0].f7Page&&S.route===E[0].f7Page.route.route&&(x=E,r.preload||(C=c.width>=o.params.masterDetailBreakpoint))}}if(!r.force&&x.length&&!C){if(o.params.pushState&&x[0].f7Page&&o.history[o.history.length-2]!==x[0].f7Page.route.url)return o.back(o.history[o.history.length-2],Utils.extend(r,{force:!0})),o;var T=x[0].f7Page.route;return processRouteQueue.call(o,T,o.currentRoute,(function(){o.loadBack({el:x},Utils.extend(r,{route:T}))}),(function(){})),o}if("#"===a&&(a=void 0),a&&"/"!==a[0]&&0!==a.indexOf("#")&&(a=((o.path||"/")+a).replace("//","/")),!a&&o.history.length>1&&(a=o.history[o.history.length-2]),C&&!r.force&&o.history[o.history.length-3])return o.back(o.history[o.history.length-3],Utils.extend({},r||{},{force:!0,animate:!1}));if(C&&!r.force)return o;if((n=o.findMatchingRoute(a))||a&&(n={url:a,path:a.split("?")[0],query:Utils.parseUrlQuery(a),route:{path:a.split("?")[0],url:a}}),!n)return o;if(n.route.redirect)return redirect.call(o,"back",n,r);var O,P={};if(n.route.options?Utils.extend(P,n.route.options,r):Utils.extend(P,r),P.route=n,P&&P.context&&(n.context=P.context,P.route.context=P.context),P.force&&o.params.stackPages&&(o.$el.children(".page-previous.stacked").each((function(e,t){t.f7Page&&t.f7Page.route&&t.f7Page.route.url===n.url&&(O=!0,o.loadBack({el:t},P))})),O))return o;function R(){var e=!1;function t(e,t){o.allowPageChange=!1,t&&t.context&&(n.context?n.context=Utils.extend({},n.context,t.context):n.context=t.context,P.route.context=n.context),o.loadBack(e,Utils.extend(P,t),!0)}function a(){o.allowPageChange=!0}n.route.keepAlive&&n.route.keepAliveData&&(o.loadBack({el:n.route.keepAliveData.pageEl},P),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){var a;n.route[t]&&!e&&(e=!0,o.loadBack(((a={})[t]=n.route[t],a),P))})),e||(n.route.async&&(o.allowPageChange=!1,n.route.async.call(o,n,o.currentRoute,t,a)),n.route.asyncComponent&&asyncComponent(o,n.route.asyncComponent,t,a))}function N(){o.allowPageChange=!0}return P.preload?R():processRouteQueue.call(o,n,o.currentRoute,(function(){n.route.modules?c.loadModules(Array.isArray(n.route.modules)?n.route.modules:[n.route.modules]).then((function(){R()})).catch((function(){N()})):R()}),(function(){N()})),o}function clearPreviousPages(e){appRouterCheck(e,"clearPreviousPages");var t=e.app,a=e.dynamicNavbar;e.$el.children(".page").filter((function(t,a){return!(!e.currentRoute||!e.currentRoute.modal&&!e.currentRoute.panel)||a!==e.currentPageEl})).each((function(r,n){var o=$(n),i=$(t.navbar.getElByPage(o));e.params.stackPages&&e.initialPages.indexOf(o[0])>=0?(o.addClass("stacked"),a&&i.addClass("stacked")):(e.pageCallback("beforeRemove",o,i,"previous",void 0,{}),e.removePage(o),a&&i.length&&e.removeNavbar(i))}))}function clearPreviousHistory(){appRouterCheck(this,"clearPreviousHistory");var e=this.history[this.history.length-1];clearPreviousPages(this),this.history=[e],this.view.history=[e],this.saveHistory()}var Router=function(e){function t(t,a){e.call(this,{},[void 0===a?t:a]);var r=this;r.isAppRouter=void 0===a,r.isAppRouter?Utils.extend(!1,r,{app:t,params:t.params.view,routes:t.routes||[],cache:t.cache}):Utils.extend(!1,r,{app:t,view:a,viewId:a.id,params:a.params,routes:a.routes,$el:a.$el,el:a.el,$navbarsEl:a.$navbarsEl,navbarsEl:a.navbarsEl,history:a.history,scrollHistory:a.scrollHistory,cache:t.cache,dynamicNavbar:"ios"===t.theme&&a.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),r.useModules(),r.tempDom=doc.createElement("div"),r.allowPageChange=!0;var n={},o={};return Object.defineProperty(r,"currentRoute",{enumerable:!0,configurable:!0,set:function(e){void 0===e&&(e={}),o=Utils.extend({},n),(n=e)&&(r.url=n.url,r.emit("routeChange",e,o,r))},get:function(){return n}}),Object.defineProperty(r,"previousRoute",{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}}),r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.animatableNavElements=function(e,t,a,r,n){var o,i,s=this.dynamicNavbar,l=this.params.iosAnimateNavbarBackIcon;function c(e,t){var a,r=e.hasClass("sliding")||t.hasClass("sliding"),n=e.hasClass("subnavbar"),o=!r||!n,i=e.find(".back .icon");return r&&l&&e.hasClass("left")&&i.length>0&&i.next("span").length&&(e=i.next("span"),a=!0),{$el:e,isIconLabel:a,leftOffset:e[0].f7NavbarLeftOffset,rightOffset:e[0].f7NavbarRightOffset,isSliding:r,isSubnavbar:n,needsOpacityTransition:o}}return s&&(o=[],i=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(t,i){var s=$(i);s.hasClass("left")&&r&&"forward"===n||s.hasClass("title")&&a||o.push(c(s,e.children(".navbar-inner")))})),t.hasClass("navbar-master")&&this.params.masterDetailBreakpoint>0&&this.app.width>=this.params.masterDetailBreakpoint||t.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(e,o){var s=$(o);s.hasClass("left")&&a&&!r&&"forward"===n||s.hasClass("left")&&a&&"backward"===n||s.hasClass("title")&&r||i.push(c(s,t.children(".navbar-inner")))})),[i,o].forEach((function(e){e.forEach((function(t){var a=t,r=t.isSliding,n=t.$el,s=e===i?o:i;r&&n.hasClass("title")&&s&&s.forEach((function(e){if(e.isIconLabel){var t=e.$el[0];a.leftOffset+=t&&t.offsetLeft||0}}))}))}))),{newNavEls:o,oldNavEls:i}},t.prototype.animate=function(e,t,a,r,n,o,i){var s=this;if(s.params.animateCustom)s.params.animateCustom.apply(s,[e,t,a,r,n,i]);else{var l=s.dynamicNavbar,c="ios"===s.app.theme;if(o){var u="router-transition-custom router-transition-"+o+"-"+n;return("forward"===n?t:e).animationEnd((function(){s.$el.removeClass(u),l&&s.$navbarsEl.length&&(r&&s.$navbarsEl.prepend(r),a&&s.$navbarsEl.prepend(a)),i&&i()})),l&&(r&&t&&(s.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),t.prepend(r)),a&&e&&(s.setNavbarPosition(a,""),a.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(a))),void s.$el.addClass(u)}var p,d,h,f,v,m,g="router-transition-"+n+" router-transition";if(c&&l){s.params.masterDetailBreakpoint>0&&s.app.width>=s.params.masterDetailBreakpoint&&(a.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||a.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(v=a&&a.hasClass("navbar-large"),m=r&&r.hasClass("navbar-large"),h=v&&!a.hasClass("navbar-large-collapsed"),f=m&&!r.hasClass("navbar-large-collapsed"));var b=s.animatableNavElements(r,a,f,h,n);p=b.newNavEls,d=b.oldNavEls}("forward"===n?t:e).animationEnd((function(){s.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),Utils.nextFrame((function(){r.removeClass("navbar-no-title-large-transition")}))),a&&a.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")||r.children(".navbar-inner.sliding").length?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),a.hasClass("sliding")||a.children(".navbar-inner.sliding").length?a.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):a.find(".sliding").transform("")),s.$el.removeClass(g),i&&i()})),l?(y(0),Utils.nextFrame((function(){y(1),s.$el.addClass(g)}))):s.$el.addClass(g)}function y(e){c&&l&&(1===e&&(f&&(r.addClass("router-navbar-transition-to-large"),a.addClass("router-navbar-transition-to-large")),h&&(r.addClass("router-navbar-transition-from-large"),a.addClass("router-navbar-transition-from-large"))),p.forEach((function(t){var a=t.$el,r="forward"===n?t.rightOffset:t.leftOffset;t.isSliding&&(t.isSubnavbar&&m?a[0].style.setProperty("transform","translate3d("+r*(1-e)+"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)","important"):a.transform("translate3d("+r*(1-e)+"px,0,0)"))})),d.forEach((function(t){var a=t.$el,r="forward"===n?t.leftOffset:t.rightOffset;t.isSliding&&(t.isSubnavbar&&v?a.transform("translate3d("+r*e+"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)"):a.transform("translate3d("+r*e+"px,0,0)"))})))}},t.prototype.removeModal=function(e){this.removeEl(e)},t.prototype.removeTabContent=function(e){$(e).html("")},t.prototype.removeNavbar=function(e){this.removeEl(e)},t.prototype.removePage=function(e){var t=$(e),a=t&&t[0]&&t[0].f7Page;a&&a.route&&a.route.route&&a.route.route.keepAlive?t.remove():this.removeEl(e)},t.prototype.removeEl=function(e){if(e){var t=$(e);0!==t.length&&(t.find(".tab").each((function(e,t){$(t).children().each((function(e,t){t.f7Component&&($(t).trigger("tab:beforeremove"),t.f7Component.$destroy())}))})),t[0].f7Component&&t[0].f7Component.$destroy&&t[0].f7Component.$destroy(),this.params.removeElements&&(this.params.removeElementsWithTimeout?setTimeout((function(){t.remove()}),this.params.removeElementsTimeout):t.remove()))}},t.prototype.getPageEl=function(e){if("string"==typeof e)this.tempDom.innerHTML=e;else{if($(e).hasClass("page"))return e;this.tempDom.innerHTML="",$(this.tempDom).append(e)}return this.findElement(".page",this.tempDom)},t.prototype.findElement=function(e,t,a){var r=this.view,n=this.app,o=$(t),i=e;a&&(i+=":not(.stacked)");var s=o.find(i).filter((function(e,t){return 0===$(t).parents(".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page").length}));return s.length>1&&("string"==typeof r.selector&&(s=o.find(r.selector+" "+i)),s.length>1&&(s=o.find("."+n.params.viewMainClass+" "+i))),1===s.length?s:(a||(s=this.findElement(i,o,!0)),s&&1===s.length?s:s&&s.length>1?$(s[0]):void 0)},t.prototype.flattenRoutes=function(e){void 0===e&&(e=this.routes);var t=this,a=[];return e.forEach((function(e){var r=!1;if("tabs"in e&&e.tabs){var n=e.tabs.map((function(t){var a=Utils.extend({},e,{path:(e.path+"/"+t.path).replace("///","/").replace("//","/"),parentPath:e.path,tab:t});return delete a.tabs,delete a.routes,a}));r=!0,a=a.concat(t.flattenRoutes(n))}if("detailRoutes"in e){var o=e.detailRoutes.map((function(t){var a=Utils.extend({},t);return a.masterRoute=e,a.masterRoutePath=e.path,a}));a=a.concat(e,t.flattenRoutes(o))}if("routes"in e){var i=e.routes.map((function(t){var a=Utils.extend({},t);return a.path=(e.path+"/"+a.path).replace("///","/").replace("//","/"),a}));a=r?a.concat(t.flattenRoutes(i)):a.concat(e,t.flattenRoutes(i))}"routes"in e||"tabs"in e&&e.tabs||"detailRoutes"in e||a.push(e)})),a},t.prototype.parseRouteUrl=function(e){if(!e)return{};var t=Utils.parseUrlQuery(e),a=e.split("#")[1],r=e.split("#")[0].split("?")[0];return{query:t,hash:a,params:{},url:e,path:r}},t.prototype.generateUrl=function(e){if(void 0===e&&(e={}),"string"==typeof e)return e;var t=e.name,a=e.path,r=e.params,n=e.query;if(!t&&!a)throw new Error('Framework7: "name" or "path" parameter is required');var o=t?this.findRouteByKey("name",t):this.findRouteByKey("path",a);if(!o)throw t?new Error('Framework7: route with name "'+t+'" not found'):new Error('Framework7: route with path "'+a+'" not found');var i=this.constructRouteUrl(o,{params:r,query:n});if(!i)throw new Error("Framework7: can't construct URL for route with name \""+t+'"');return i},t.prototype.constructRouteUrl=function(e,t){void 0===t&&(t={});var a,r=t.params,n=t.query,o=e.path,i=compile(o);try{a=i(r||{})}catch(e){throw new Error("Framework7: error constructing route URL from passed params:\nRoute: "+o+"\n"+e.toString())}return n&&(a+="string"==typeof n?"?"+n:"?"+Utils.serializeObject(n)),a},t.prototype.findTabRoute=function(e){var t,a=$(e),r=this.currentRoute.route.parentPath,n=a.attr("id");return this.flattenRoutes(this.routes).forEach((function(e){e.parentPath===r&&e.tab&&e.tab.id===n&&(t=e)})),t},t.prototype.findRouteByKey=function(e,t){var a,r=this.routes;return this.flattenRoutes(r).forEach((function(r){a||r[e]===t&&(a=r)})),a},t.prototype.findMatchingRoute=function(e){if(e){var t,a=this.routes,r=this.flattenRoutes(a),n=this.parseRouteUrl(e),o=n.path,i=n.query,s=n.hash,l=n.params;return r.forEach((function(a){if(!t){var r,n,c=[],u=[a.path];if(a.alias&&("string"==typeof a.alias?u.push(a.alias):Array.isArray(a.alias)&&a.alias.forEach((function(e){u.push(e)}))),u.forEach((function(e){r||(r=pathToRegexp(e,c).exec(o))})),r)c.forEach((function(e,t){if("number"!=typeof e.name){var a=r[t+1];l[e.name]=null==a?a:decodeURIComponent(a)}})),a.parentPath&&(n=o.split("/").slice(0,a.parentPath.split("/").length-1).join("/")),t={query:i,hash:s,params:l,url:e,path:o,parentPath:n,route:a,name:a.name}}})),t}},t.prototype.replaceRequestUrlParams=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var a=e;return"string"==typeof a&&a.indexOf("{{")>=0&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&Object.keys(t.route.params).forEach((function(e){var r=new RegExp("{{"+e+"}}","g");a=a.replace(r,t.route.params[e]||"")})),a},t.prototype.removeFromXhrCache=function(e){for(var t=this.cache.xhr,a=!1,r=0;r<t.length;r+=1)t[r].url===e&&(a=r);!1!==a&&t.splice(a,1)},t.prototype.xhrRequest=function(e,t){var a=this,r=a.params,n=t.ignoreCache,o=e,i=o.indexOf("?")>=0;return r.passRouteQueryToRequest&&t&&t.route&&t.route.query&&Object.keys(t.route.query).length&&(o+=(i?"&":"?")+Utils.serializeObject(t.route.query),i=!0),r.passRouteParamsToRequest&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&(o+=(i?"&":"?")+Utils.serializeObject(t.route.params),i=!0),o.indexOf("{{")>=0&&(o=a.replaceRequestUrlParams(o,t)),r.xhrCacheIgnoreGetParameters&&o.indexOf("?")>=0&&(o=o.split("?")[0]),new Promise((function(e,i){if(r.xhrCache&&!n&&o.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(o)<0)for(var s=0;s<a.cache.xhr.length;s+=1){var l=a.cache.xhr[s];if(l.url===o&&Utils.now()-l.time<r.xhrCacheDuration)return void e(l.content)}a.xhr=a.app.request({url:o,method:"GET",beforeSend:function(e){a.emit("routerAjaxStart",e,t)},complete:function(n,s){a.emit("routerAjaxComplete",n),"error"!==s&&"timeout"!==s&&n.status>=200&&n.status<300||0===n.status?(r.xhrCache&&""!==n.responseText&&(a.removeFromXhrCache(o),a.cache.xhr.push({url:o,time:Utils.now(),content:n.responseText})),a.emit("routerAjaxSuccess",n,t),e(n.responseText)):(a.emit("routerAjaxError",n,t),i(n))},error:function(e){a.emit("routerAjaxError",e,t),i(e)}})}))},t.prototype.setNavbarPosition=function(e,t,a){e.removeClass("navbar-previous navbar-current navbar-next"),t&&e.addClass("navbar-"+t),!1===a?e.removeAttr("aria-hidden"):!0===a&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:t}),this.emit("navbarPosition",e[0],t)},t.prototype.setPagePosition=function(e,t,a){e.removeClass("page-previous page-current page-next"),e.addClass("page-"+t),!1===a?e.removeAttr("aria-hidden"):!0===a&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:t}),this.emit("pagePosition",e[0],t)},t.prototype.removeThemeElements=function(e){var t,a=this.app.theme;"ios"===a?t=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===a?t=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===a&&(t=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),$(e).find(t).remove()},t.prototype.getPageData=function(e,t,a,r,n,o){void 0===n&&(n={});var i,s,l=$(e).eq(0),c=$(t).eq(0),u=l[0].f7Page||{};if(("next"===a&&"current"===r||"current"===a&&"previous"===r)&&(i="forward"),("current"===a&&"next"===r||"previous"===a&&"current"===r)&&(i="backward"),u&&!u.fromPage){var p=$(o);p.length&&(s=p[0].f7Page)}(s=u.pageFrom||s)&&s.pageFrom&&(s.pageFrom=null);var d={app:this.app,view:this.view,router:this,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:c,navbarEl:c[0],name:l.attr("data-name"),position:a,from:a,to:r,direction:i,route:u.route?u.route:n,pageFrom:s};return l[0].f7Page=d,d},t.prototype.pageCallback=function(e,t,a,r,n,o,i){if(void 0===o&&(o={}),t){var s=this,l=$(t);if(l.length){var c=$(a),u=o.route,p=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),d=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===e&&d&&(e="beforeUnmount");var h="page"+(e[0].toUpperCase()+e.slice(1,e.length)),f="page:"+e.toLowerCase(),v={};(v="beforeRemove"===e&&l[0].f7Page?Utils.extend(l[0].f7Page,{from:r,to:n,position:r}):s.getPageData(l[0],c[0],r,n,u,i)).swipeBack=!!o.swipeBack;var m=o.route?o.route.route:{},g=m.on;void 0===g&&(g={});var b=m.once;if(void 0===b&&(b={}),o.on&&Utils.extend(g,o.on),o.once&&Utils.extend(b,o.once),"mounted"===e&&C(),"init"===e){if(p&&("previous"===r||!r)&&"current"===n&&s.scrollHistory[v.route.url]&&!l.hasClass("no-restore-scroll")){var y=l.find(".page-content");y.length>0&&(y=y.filter((function(e,t){return 0===$(t).parents(".tab:not(.tab-active)").length&&!$(t).is(".tab:not(.tab-active)")}))),y.scrollTop(s.scrollHistory[v.route.url])}if(C(),l[0].f7PageInitialized)return l.trigger("page:reinit",v),void s.emit("pageReinit",v);l[0].f7PageInitialized=!0}if(p&&"beforeOut"===e&&"current"===r&&"previous"===n){var w=l.find(".page-content");w.length>0&&(w=w.filter((function(e,t){return 0===$(t).parents(".tab:not(.tab-active)").length&&!$(t).is(".tab:not(.tab-active)")}))),s.scrollHistory[v.route.url]=w.scrollTop()}p&&"beforeOut"===e&&"current"===r&&"next"===n&&delete s.scrollHistory[v.route.url],l.trigger(f,v),s.emit(h,v),"beforeRemove"!==e&&"beforeUnmount"!==e||(l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach((function(e){l.off(Utils.eventNameToColonCase(e),l[0].f7RouteEventsOn[e])})),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach((function(e){l.off(Utils.eventNameToColonCase(e),l[0].f7RouteEventsOnce[e])})),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce),d||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}}function C(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,g&&Object.keys(g).length>0&&(l[0].f7RouteEventsOn=g,Object.keys(g).forEach((function(e){g[e]=g[e].bind(s),l.on(Utils.eventNameToColonCase(e),g[e])}))),b&&Object.keys(b).length>0&&(l[0].f7RouteEventsOnce=b,Object.keys(b).forEach((function(e){b[e]=b[e].bind(s),l.once(Utils.eventNameToColonCase(e),b[e])}))))}},t.prototype.saveHistory=function(){this.view.history=this.history,this.params.pushState&&(win.localStorage["f7router-"+this.view.id+"-history"]=JSON.stringify(this.history))},t.prototype.restoreHistory=function(){this.params.pushState&&win.localStorage["f7router-"+this.view.id+"-history"]&&(this.history=JSON.parse(win.localStorage["f7router-"+this.view.id+"-history"]),this.view.history=this.history)},t.prototype.clearHistory=function(){this.history=[],this.view&&(this.view.history=[]),this.saveHistory()},t.prototype.updateCurrentUrl=function(e){appRouterCheck(this,"updateCurrentUrl"),this.history.length?this.history[this.history.length-1]=e:this.history.push(e);var t=this.parseRouteUrl(e),a=t.query,r=t.hash,n=t.params,o=t.url,i=t.path;if(this.currentRoute&&Utils.extend(this.currentRoute,{query:a,hash:r,params:n,url:o,path:i}),this.params.pushState){var s=this.params.pushStateRoot||"";History.replace(this.view.id,{url:e},s+this.params.pushStateSeparator+e)}this.saveHistory(),this.emit("routeUrlUpdate",this.currentRoute,this)},t.prototype.init=function(){var e=this,t=e.app,a=e.view;(a&&e.params.iosSwipeBack&&"ios"===t.theme||a&&e.params.mdSwipeBack&&"md"===t.theme||a&&e.params.auroraSwipeBack&&"aurora"===t.theme)&&SwipeBack(e);var r,n,o=e.params.url,i=doc.location.href.split(doc.location.origin)[1],s=e.params,l=s.pushState,c=s.pushStateOnLoad,u=s.pushStateSeparator,p=s.pushStateAnimateOnLoad,d=e.params.pushStateRoot;if(win.cordova&&l&&!u&&!d&&doc.location.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete pushState configuration, trying to guess pushStateRoot"),d=doc.location.pathname.split("index.html")[0]),l&&c?(d&&i.indexOf(d)>=0&&""===(i=i.split(d)[1])&&(i="/"),o=u.length>0&&i.indexOf(u)>=0?i.split(u)[1]:i,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:History.state&&History.state[a.id]&&History.state[a.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[i.split(u)[0]||"/",o],e.history.length>1?r=!0:e.history=[],e.saveHistory()):(o||(o=i),doc.location.search&&o.indexOf("?")<0&&(o+=doc.location.search),doc.location.hash&&o.indexOf("#")<0&&(o+=doc.location.hash)),e.history.length>1?(n=e.findMatchingRoute(e.history[0]))||(n=Utils.extend(e.parseRouteUrl(e.history[0]),{route:{url:e.history[0],path:e.history[0].split("?")[0]}})):(n=e.findMatchingRoute(o))||(n=Utils.extend(e.parseRouteUrl(o),{route:{url:o,path:o.split("?")[0]}})),e.params.stackPages&&e.$el.children(".page").each((function(t,a){var r=$(a);e.initialPages.push(r[0]),e.dynamicNavbar&&r.children(".navbar").length>0&&e.initialNavbars.push(r.children(".navbar")[0])})),0===e.$el.children(".page:not(.stacked)").length&&o&&e.params.loadInitialPage)e.navigate(o,{initial:!0,reloadCurrent:!0,pushState:!1});else if(e.$el.children(".page:not(.stacked)").length){var h;e.currentRoute=n,e.$el.children(".page:not(.stacked)").each((function(t,r){var n,o=$(r);e.setPagePosition(o,"current"),e.dynamicNavbar&&((n=o.children(".navbar")).length>0?(e.$navbarsEl.parents(doc).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(n,"current"),e.$navbarsEl.append(n),n.children(".title-large").length&&n.addClass("navbar-large"),o.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),n.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.master&&e.params.masterDetailBreakpoint>0&&(o.addClass("page-master"),o.trigger("page:role",{role:"master"}),n&&n.length&&n.addClass("navbar-master"),a.checkMasterDetailBreakpoint());var i={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&Utils.extend(i,e.currentRoute.route.options),e.currentPageEl=o[0],e.dynamicNavbar&&n.length&&(e.currentNavbarEl=n[0]),e.removeThemeElements(o),e.dynamicNavbar&&n.length&&e.removeThemeElements(n),i.route.route.tab&&(h=!0,e.tabLoad(i.route.route.tab,Utils.extend({},i))),e.pageCallback("init",o,n,"current",void 0,i)})),r&&e.navigate(o,{initial:!0,pushState:!1,history:!1,animate:p,once:{pageAfterIn:function(){(e.params.preloadPreviousPage||e.params[t.theme+"SwipeBack"])&&e.history.length>2&&e.back({preload:!0})}}}),r||h||(e.history.push(o),e.saveHistory())}!(o&&l&&c)||History.state&&History.state[a.id]||History.initViewState(a.id,{url:o}),e.emit("local::init routerInit",e)},t.prototype.destroy=function(){var e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null},t}(Framework7Class);Router.prototype.forward=forward,Router.prototype.load=load,Router.prototype.navigate=navigate,Router.prototype.refreshPage=refreshPage,Router.prototype.tabLoad=tabLoad,Router.prototype.tabRemove=tabRemove,Router.prototype.modalLoad=modalLoad,Router.prototype.modalRemove=modalRemove,Router.prototype.backward=backward,Router.prototype.loadBack=loadBack,Router.prototype.back=back,Router.prototype.clearPreviousHistory=clearPreviousHistory;var RouterModule={name:"router",static:{Router:Router},instance:{cache:{xhr:[],templates:[],components:[]}},create:function(){this.app?this.params.router&&(this.router=new Router(this.app,this)):this.router=new Router(this)}};function resizableView(e){var t=e.app;if(!e.resizableInitialized){Utils.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var a=$("html"),r=e.$el;if(r){var n,o,i,s,l,c,u,p={};(n=e.$el.children(".view-resize-handler")).length||(e.$el.append('<div class="view-resize-handler"></div>'),n=e.$el.children(".view-resize-handler")),e.$resizeHandlerEl=n,r.addClass("view-resizable");var d=!!Support.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".view-resize-handler",f,d),t.on("touchmove:active",v),t.on("touchend:passive",m),t.on("resize",g),e.on("beforeOpen",g),e.once("viewDestroy",(function(){r.removeClass("view-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".view-resize-handler",f,d),t.off("touchmove:active",v),t.off("touchend:passive",m),t.off("resize",g),e.off("beforeOpen",g)}))}}function h(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var a=parseInt(e,10);return Number.isNaN(a)?null:a}function f(t){if(e.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")){p.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,p.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,i=!1,o=!0;var a=r.children(".page-master");c=h(a.css("min-width")),u=h(a.css("max-width"))}}function v(d){if(o){d.f7PreventSwipePanel=!0;var h="touchmove"===d.type?d.targetTouches[0].pageX:d.pageX;i||(l=n[0].offsetLeft+n[0].offsetWidth,r.addClass("view-resizing"),a.css("cursor","col-resize")),i=!0,d.preventDefault(),s=h-p.x;var f=l+s;c&&!Number.isNaN(c)&&(f=Math.max(f,c)),u&&!Number.isNaN(u)&&(f=Math.min(f,u)),f=Math.min(Math.max(f,0),t.width),e.resizableWidth=f,a[0].style.setProperty("--f7-page-master-width",f+"px"),r.trigger("view:resize",f),e.emit("local::resize viewResize",e,f)}}function m(){if($("html").css("cursor",""),!o||!i)return o=!1,void(i=!1);o=!1,i=!1,a[0].style.setProperty("--f7-page-master-width",e.resizableWidth+"px"),r.removeClass("view-resizing")}function g(){e.resizableWidth&&(c=h(n.css("min-width")),u=h(n.css("max-width")),c&&!Number.isNaN(c)&&e.resizableWidth<c&&(e.resizableWidth=Math.max(e.resizableWidth,c)),u&&!Number.isNaN(u)&&e.resizableWidth>u&&(e.resizableWidth=Math.min(e.resizableWidth,u)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),a[0].style.setProperty("--f7-page-master-width",e.resizableWidth+"px"))}}var View=function(e){function t(t,a,r){void 0===r&&(r={}),e.call(this,r,[t]);var n,o,i,s=t,l=$(a),c=this;if(0===l.length){var u="Framework7: can't create a View instance because ";throw new Error(u+="string"==typeof a?'the selector "'+a+"\" didn't match any element":"el must be an HTMLElement or Dom7 object")}return c.params=Utils.extend({routes:[],routesAdd:[]},s.params.view,r),c.params.routes.length>0?c.routes=c.params.routes:c.routes=[].concat(s.routes,c.params.routesAdd),n="string"==typeof a?a:(l.attr("id")?"#"+l.attr("id"):"")+(l.attr("class")?"."+l.attr("class").replace(/ /g,".").replace(".active",""):""),"ios"===s.theme&&c.params.iosDynamicNavbar&&0===(o=l.children(".navbars").eq(0)).length&&(o=$('<div class="navbars"></div>')),Utils.extend(!1,c,{app:s,$el:l,el:l[0],name:c.params.name,main:c.params.main||l.hasClass("view-main"),$navbarsEl:o,navbarsEl:o?o[0]:void 0,selector:n,history:[],scrollHistory:{}}),l[0].f7View=c,c.useModules(),s.views.push(c),c.main&&(s.views.main=c),c.name&&(s.views[c.name]=c),c.index=s.views.indexOf(c),i=c.name?"view_"+c.name:c.main?"view_main":"view_"+c.index,c.id=i,s.initialized?c.init():s.on("init",(function(){c.init()})),c}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.destroy=function(){var e=this,t=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),t.off("resize",e.checkMasterDetailBreakpoint),e.main?(t.views.main=null,delete t.views.main):e.name&&(t.views[e.name]=null,delete t.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,t.views.splice(t.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null},t.prototype.checkMasterDetailBreakpoint=function(e){var t=this.app,a=this.$el.hasClass("view-master-detail"),r=t.width>=this.params.masterDetailBreakpoint&&this.$el.children(".page-master").length;void 0===e&&r||!0===e?(this.$el.addClass("view-master-detail"),a||(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint"))):(this.$el.removeClass("view-master-detail"),a&&(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint")))},t.prototype.initMasterDetail=function(){var e=this.app;this.checkMasterDetailBreakpoint=this.checkMasterDetailBreakpoint.bind(this),this.checkMasterDetailBreakpoint(),this.params.masterDetailResizable&&resizableView(this),e.on("resize",this.checkMasterDetailBreakpoint)},t.prototype.init=function(){this.params.router&&(this.params.masterDetailBreakpoint>0&&this.initMasterDetail(),this.router.init(),this.$el.trigger("view:init"),this.emit("local::init viewInit",this))},t}(Framework7Class);function initClicks(e){e.on("click",(function(t){var a=$(t.target),r=a.closest("a"),n=r.length>0,o=n&&r.attr("href");if(n&&(r.is(e.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){var i=r.attr("target");o&&win.cordova&&win.cordova.InAppBrowser&&("_system"===i||"_blank"===i)&&(t.preventDefault(),win.cordova.InAppBrowser.open(o,i))}else{Object.keys(e.modules).forEach((function(r){var n=e.modules[r].clicks;n&&(t.preventF7Router||Object.keys(n).forEach((function(r){var o=a.closest(r).eq(0);o.length>0&&n[r].call(e,o,o.dataset(),t)})))}));var s={};if(n&&(t.preventDefault(),s=r.dataset()),!t.preventF7Router)if(!r.hasClass("prevent-router")&&!r.hasClass("router-prevent"))if(o&&o.length>0&&"#"!==o[0]||r.hasClass("back")){var l;if(s.view&&"current"===s.view?l=e.views.current:s.view?l=$(s.view)[0].f7View:(l=a.parents(".view")[0]&&a.parents(".view")[0].f7View,!r.hasClass("back")&&l&&l.params.linksView&&("string"==typeof l.params.linksView?l=$(l.params.linksView)[0].f7View:l.params.linksView instanceof View&&(l=l.params.linksView))),l||e.views.main&&(l=e.views.main),!l||!l.router)return;if(s.context&&"string"==typeof s.context)try{s.context=JSON.parse(s.context)}catch(e){}r[0].f7RouteProps&&(s.props=r[0].f7RouteProps),r.hasClass("back")?l.router.back(o,s):l.router.navigate(o,s)}}}))}View.use(RouterModule);var ClicksModule={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init:function(){initClicks(this)}}},RouterTemplateLoaderModule={name:"routerTemplateLoader",proto:{templateLoader:function(e,t,a,r,n){var o=this;function i(e){var t,i;try{if("function"==typeof(i=a.context||{}))i=i.call(o);else if("string"==typeof i)try{i=JSON.parse(i)}catch(e){throw n(),e}t="function"==typeof e?e(i):Template7.compile(e)(Utils.extend({},i||{},{$app:o.app,$root:Utils.extend({},o.app.data,o.app.methods),$route:a.route,$f7route:a.route,$router:o,$f7router:o,$theme:{ios:"ios"===o.app.theme,md:"md"===o.app.theme,aurora:"aurora"===o.app.theme}}))}catch(e){throw n(),e}r(t,{context:i})}t?(o.xhr&&(o.xhr.abort(),o.xhr=!1),o.xhrRequest(t,a).then((function(e){i(e)})).catch((function(){n()}))):i(e)},modalTemplateLoader:function(e,t,a,r,n){return this.templateLoader(e,t,a,(function(e){r(e)}),n)},tabTemplateLoader:function(e,t,a,r,n){return this.templateLoader(e,t,a,(function(e){r(e)}),n)},pageTemplateLoader:function(e,t,a,r,n){var o=this;return o.templateLoader(e,t,a,(function(e,t){void 0===t&&(t={}),r(o.getPageEl(e),t)}),n)}}},RouterComponentLoaderModule={name:"routerComponentLoader",proto:{componentLoader:function(e,t,a,r,n){void 0===a&&(a={});var o,i=this,s=i.app,l="string"==typeof e?e:t,c=i.replaceRequestUrlParams(l,a);function u(e){var t=a.context||{};if("function"==typeof t)t=t.call(i);else if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw n(e),e}var o=Utils.merge({},t,{$route:a.route,$f7route:a.route,$router:i,$f7router:i,$theme:{ios:"ios"===s.theme,md:"md"===s.theme,aurora:"aurora"===s.theme}});a.componentOptions&&a.componentOptions.el&&(e.el=a.componentOptions.el),a.componentOptions&&a.componentOptions.root&&(e.root=a.componentOptions.root),s.component.create(e,o).then((function(e){r(e.el)})).catch((function(e){throw n(e),new Error(e)}))}c&&i.params.componentCache&&i.cache.components.forEach((function(e){e.url===c&&(o=e.component)})),c&&o?u(o):c&&!o?(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(l,a).then((function(e){var t=s.component.parse(e);i.params.componentCache&&i.cache.components.push({url:c,component:t}),u(t)})).catch((function(e){throw n(),e}))):u(e)},modalComponentLoader:function(e,t,a,r,n,o){this.componentLoader(t,a,r,(function(e){n(e)}),o)},tabComponentLoader:function(e,t,a,r,n,o){this.componentLoader(t,a,r,(function(e){n(e)}),o)},pageComponentLoader:function(e,t,a,r,n,o){this.componentLoader(t,a,r,(function(e,t){void 0===t&&(t={}),n(e,t)}),o)}}};function vnode(e,t,a,r,n){return{sel:e,data:t,children:a,text:r,elm:n,key:void 0===t?void 0:t.key}}var array=Array.isArray;function primitive(e){return"string"==typeof e||"number"==typeof e}function addNS(e,t,a){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==a&&void 0!==t)for(var r=0;r<t.length;++r){var n=t[r].data;void 0!==n&&addNS(n,t[r].children,t[r].sel)}}function h(e,t,a){var r,n,o,i={};if(void 0!==a?(i=t,array(a)?r=a:primitive(a)?n=a:a&&a.sel&&(r=[a])):void 0!==t&&(array(t)?r=t:primitive(t)?n=t:t&&t.sel?r=[t]:i=t),array(r))for(o=0;o<r.length;++o)primitive(r[o])&&(r[o]=vnode(void 0,void 0,void 0,r[o],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||addNS(i,r,e),vnode(e,i,r,n,void 0)}var customComponents={},selfClosing="area base br col command embed hr img input keygen link menuitem meta param source track wbr".split(" "),propsAttrs="hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate".split(" "),booleanProps="hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate".split(" "),tempDomDIV=doc.createElement("div"),tempDomTBODY,tempDomTROW;function toCamelCase$1(e){return e.split("-").map((function(e,t){return 0===t?e.toLowerCase():e[0].toUpperCase()+e.substr(1)})).join("")}function contextFromAttrs(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a={};return e.forEach((function(e){void 0===e&&(e={}),Object.keys(e).forEach((function(t){a[toCamelCase$1(t)]=e[t]}))})),a}function createCustomComponent(e){var t=e.app,a=e.vnode,r=e.tagName,n=e.data;t.component.create(Object.assign({el:a.elm},customComponents[r]),{$props:contextFromAttrs(n.attrs||{},n.props||{})},a.children).then((function(e){a.data&&a.data.on&&e&&e.$el&&Object.keys(a.data.on).forEach((function(t){e.$el.on(t,a.data.on[t])})),a.elm.__component__=e}))}function updateCustomComponent(e){var t=e&&e.elm&&e.elm.__component__;if(t){var a=contextFromAttrs(e.data.attrs||{},e.data.props||{});t.$children=e.children,Object.assign(t.$props,a),t.$update()}}function destroyCustomComponent(e){var t=e&&e.elm&&e.elm.__component__;if(t){var a=t.el,r=t.$el;e.data&&e.data.on&&r&&Object.keys(e.data.on).forEach((function(t){r.off(t,e.data.on[t])})),t.$destroy&&t.$destroy(),a&&a.parentNode&&a.parentNode.removeChild(a),delete e.elm.__component__}}function getHooks(e,t,a,r,n){var o={},i=[],s=[],l=[],c=[],u=!1;e&&e.attrs&&e.attrs.component&&(n=e.attrs.component,delete e.attrs.component,u=!0);var p=n&&n.indexOf("-")>0&&customComponents[n];if(p&&(i.push((function(a){(a.sel===n||u)&&createCustomComponent({app:t,vnode:a,tagName:n,data:e})})),s.push((function(e){destroyCustomComponent(e)})),l.push((function(e,t){updateCustomComponent(t)}))),!p){if(!e||!e.attrs||!e.attrs.class)return o;e.attrs.class.split(" ").forEach((function(e){a||i.push.apply(i,t.getVnodeHooks("insert",e)),s.push.apply(s,t.getVnodeHooks("destroy",e)),l.push.apply(l,t.getVnodeHooks("update",e)),c.push.apply(c,t.getVnodeHooks("postpatch",e))}))}return r&&!a&&c.push((function(e,t){var a=t||e;a&&a.data&&a.data.context&&a.data.context.$options.updated&&a.data.context.$hook("updated")})),0===i.length&&0===s.length&&0===l.length&&0===c.length||(i.length&&(o.insert=function(e){i.forEach((function(t){return t(e)}))}),s.length&&(o.destroy=function(e){s.forEach((function(t){return t(e)}))}),l.length&&(o.update=function(e,t){l.forEach((function(a){return a(e,t)}))}),c.length&&(o.postpatch=function(e,t){c.forEach((function(a){return a(e,t)}))})),o}function getEventHandler(e,t,a){void 0===a&&(a={});var r,n,o=a.stop,i=a.prevent,s=a.once,l=!1,c=!0;if((r=e.indexOf("(")<0?e:e.split("(")[0]).indexOf(".")>=0)r.split(".").forEach((function(e,a){if(0!==a||"this"!==e){if(0===a&&"window"===e)return n=win,void(c=!1);if(n||(n=t),!n[e])throw new Error("Framework7: Component doesn't have method \""+r.split(".").slice(0,a+1).join(".")+'"');n=n[e]}}));else{if(!t[r])throw new Error("Framework7: Component doesn't have method \""+r+'"');n=t[r]}return c&&(n=n.bind(t)),function(){for(var a=[],r=arguments.length;r--;)a[r]=arguments[r];var c=a[0],u=[];if(!s||!l){if(o&&c.stopPropagation(),i&&c.preventDefault(),l=!0,e.indexOf("(")<0)u=a;else{var p=e.split("(")[1].split(")")[0].replace(/'[^']*'|"[^"]*"/g,(function(e){return e.replace(/,/g,"<_comma_>")})).split(",").map((function(e){return e.replace(/<_comma_>/g,",")}));p.forEach((function(e){var a=e.trim();if(isNaN(a))if("true"===a)a=!0;else if("false"===a)a=!1;else if("null"===a)a=null;else if("undefined"===a)a=void 0;else if('"'===a[0])a=a.replace(/"/g,"");else if("'"===a[0])a=a.replace(/'/g,"");else if(a.indexOf(".")>0){var r;a.split(".").forEach((function(e){r||(r=t),r=r[e]})),a=r}else a=t[a];else a=parseFloat(a);u.push(a)}))}n.apply(void 0,u)}}}function getData(e,t,a,r,n,o){var i={context:t},s=e.attributes;Array.prototype.forEach.call(s,(function(e){var a=e.name,r=e.value;if(propsAttrs.indexOf(a)>=0)i.props||(i.props={}),"readonly"===a&&(a="readOnly"),"option"===o&&"value"===a&&(i.attrs||(i.attrs={}),i.attrs.value=r),booleanProps.indexOf(a)>=0?i.props[a]=!1!==r:i.props[a]=r;else if("key"===a)i.key=r;else if(0===a.indexOf("@")){i.on||(i.on={});var s=a.substr(1),l=!1,c=!1,u=!1;s.indexOf(".")>=0&&s.split(".").forEach((function(e,t){0===t?s=e:("stop"===e&&(l=!0),"prevent"===e&&(c=!0),"once"===e&&(u=!0))})),i.on[s]=getEventHandler(r,t,{stop:l,prevent:c,once:u})}else if("style"===a)if(r.indexOf("{")>=0&&r.indexOf("}")>=0)try{i.style=JSON.parse(r)}catch(e){i.attrs||(i.attrs={}),i.attrs.style=r}else i.attrs||(i.attrs={}),i.attrs.style=r;else i.attrs||(i.attrs={}),i.attrs[a]=r,"id"!==a||i.key||n||(i.key=r)})),n&&t&&t.$id&&t.$style&&t.$styleScoped&&(i.attrs||(i.attrs={}),i.attrs["data-f7-"+t.$id]="");var l=getHooks(i,a,r,n,o);return l.prepatch=function(e,t){e&&t&&e&&e.data&&e.data.props&&Object.keys(e.data.props).forEach((function(a){booleanProps.indexOf(a)<0||(t.data||(t.data={}),t.data.props||(t.data.props={}),!0!==e.data.props[a]||a in t.data.props||(t.data.props[a]=!1))}))},l&&(i.hook=l),i}function getChildren(e,t,a,r){for(var n=[],o=e.childNodes,i=0;i<o.length;i+=1){var s=elementToVNode(o[i],t,a,r);Array.isArray(s)?n.push.apply(n,s):s&&n.push(s)}return n}function getSlots(e,t,a,r){var n=e.getAttribute("name")||"default",o=(t.$children||[]).filter((function(e){var t="default";return e.data&&(t=e.data.attrs&&e.data.attrs.slot||"default"),t===n}));return 0===o.length?getChildren(e,t,a,r):o}function elementToVNode(e,t,a,r,n){if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;var o=e instanceof win.SVGElement?e.nodeName:e.nodeName.toLowerCase();return"slot"===o?getSlots(e,t,a,r):h(o,getData(e,t,a,r,n,o),selfClosing.indexOf(o)>=0?[]:getChildren(e,t,a,r))}function vdom(e,t,a){void 0===e&&(e="");var r,n=e.trim(),o=tempDomDIV;0===n.indexOf("<tr")&&(tempDomTBODY||(tempDomTBODY=doc.createElement("tbody")),o=tempDomTBODY),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(tempDomTROW||(tempDomTROW=doc.createElement("tr")),o=tempDomTROW),o.innerHTML=n;for(var i=0;i<o.childNodes.length;i+=1)r||1!==o.childNodes[i].nodeType||(r=o.childNodes[i]);var s=elementToVNode(r,t,t.$app,a,!0);return o.innerHTML="",s}function createElement(e){return document.createElement(e)}function createElementNS(e,t){return document.createElementNS(e,t)}function createTextNode(e){return document.createTextNode(e)}function createComment(e){return document.createComment(e)}function insertBefore$1(e,t,a){a&&a.parentNode!==e&&a.__component__&&(a=a.__component__.el),e.insertBefore(t,a)}function removeChild(e,t){e&&e.removeChild(t)}function appendChild(e,t){e.appendChild(t)}function parentNode(e){return e.parentNode}function nextSibling(e){return e.nextSibling}function tagName(e){return e.tagName}function setTextContent(e,t){e.textContent=t}function getTextContent(e){return e.textContent}function isElement(e){return 1===e.nodeType}function isText(e){return 3===e.nodeType}function isComment(e){return 8===e.nodeType}var htmlDomApi={createElement:createElement,createElementNS:createElementNS,createTextNode:createTextNode,createComment:createComment,insertBefore:insertBefore$1,removeChild:removeChild,appendChild:appendChild,parentNode:parentNode,nextSibling:nextSibling,tagName:tagName,setTextContent:setTextContent,getTextContent:getTextContent,isElement:isElement,isText:isText,isComment:isComment};function isUndef(e){return void 0===e}function isDef(e){return void 0!==e}var emptyNode=vnode("",{},[],void 0,void 0);function sameVnode(e,t){return e.key===t.key&&e.sel===t.sel}function isVnode(e){return void 0!==e.sel}function createKeyToOldIdx(e,t,a){var r,n,o,i={};for(r=t;r<=a;++r)null!=(o=e[r])&&void 0!==(n=o.key)&&(i[n]=r);return i}var hooks=["create","update","remove","destroy","pre","post"];function init(e,t){var a,r,n={},o=void 0!==t?t:htmlDomApi;for(a=0;a<hooks.length;++a)for(n[hooks[a]]=[],r=0;r<e.length;++r){var i=e[r][hooks[a]];void 0!==i&&n[hooks[a]].push(i)}function s(e){var t=e.id?"#"+e.id:"",a=e.className?"."+e.className.split(" ").join("."):"";return vnode(o.tagName(e).toLowerCase()+t+a,{},[],void 0,e)}function l(e,t){return function(){if(0==--t){var a=o.parentNode(e);o.removeChild(a,e)}}}function c(e,t){var a,r=e.data;void 0!==r&&isDef(a=r.hook)&&isDef(a=a.init)&&(a(e),r=e.data);var i=e.children,s=e.sel;if("!"===s)isUndef(e.text)&&(e.text=""),e.elm=o.createComment(e.text);else if(void 0!==s){var l=s.indexOf("#"),u=s.indexOf(".",l),p=l>0?l:s.length,d=u>0?u:s.length,h=-1!==l||-1!==u?s.slice(0,Math.min(p,d)):s,f=e.elm=isDef(r)&&isDef(a=r.ns)?o.createElementNS(a,h):o.createElement(h);for(p<d&&f.setAttribute("id",s.slice(p+1,d)),u>0&&f.setAttribute("class",s.slice(d+1).replace(/\./g," ")),a=0;a<n.create.length;++a)n.create[a](emptyNode,e);if(array(i))for(a=0;a<i.length;++a){var v=i[a];null!=v&&o.appendChild(f,c(v,t))}else primitive(e.text)&&o.appendChild(f,o.createTextNode(e.text));isDef(a=e.data.hook)&&(a.create&&a.create(emptyNode,e),a.insert&&t.push(e))}else e.elm=o.createTextNode(e.text);return e.elm}function u(e,t,a,r,n,i){for(;r<=n;++r){var s=a[r];null!=s&&o.insertBefore(e,c(s,i),t)}}function p(e){var t,a,r=e.data;if(void 0!==r){for(isDef(t=r.hook)&&isDef(t=t.destroy)&&t(e),t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(a=0;a<e.children.length;++a)null!=(t=e.children[a])&&"string"!=typeof t&&p(t)}}function d(e,t,a,r){for(;a<=r;++a){var i=void 0,s=void 0,c=void 0,u=t[a];if(null!=u)if(isDef(u.sel)){for(p(u),s=n.remove.length+1,c=l(u.elm,s),i=0;i<n.remove.length;++i)n.remove[i](u,c);isDef(i=u.data)&&isDef(i=i.hook)&&isDef(i=i.remove)?i(u,c):c()}else o.removeChild(e,u.elm)}}function h(e,t,a){var r,i;isDef(r=t.data)&&isDef(i=r.hook)&&isDef(r=i.prepatch)&&r(e,t);var s=t.elm=e.elm,l=e.children,p=t.children;if(e!==t){if(void 0!==t.data){for(r=0;r<n.update.length;++r)n.update[r](e,t);isDef(r=t.data.hook)&&isDef(r=r.update)&&r(e,t)}isUndef(t.text)?isDef(l)&&isDef(p)?l!==p&&function(e,t,a,r){for(var n,i,s,l=0,p=0,f=t.length-1,v=t[0],m=t[f],g=a.length-1,b=a[0],y=a[g];l<=f&&p<=g;)null==v?v=t[++l]:null==m?m=t[--f]:null==b?b=a[++p]:null==y?y=a[--g]:sameVnode(v,b)?(h(v,b,r),v=t[++l],b=a[++p]):sameVnode(m,y)?(h(m,y,r),m=t[--f],y=a[--g]):sameVnode(v,y)?(h(v,y,r),o.insertBefore(e,v.elm,o.nextSibling(m.elm)),v=t[++l],y=a[--g]):sameVnode(m,b)?(h(m,b,r),o.insertBefore(e,m.elm,v.elm),m=t[--f],b=a[++p]):(void 0===n&&(n=createKeyToOldIdx(t,l,f)),isUndef(i=n[b.key])?(o.insertBefore(e,c(b,r),v.elm),b=a[++p]):((s=t[i]).sel!==b.sel?o.insertBefore(e,c(b,r),v.elm):(h(s,b,r),t[i]=void 0,o.insertBefore(e,s.elm,v.elm)),b=a[++p]));(l<=f||p<=g)&&(l>f?u(e,null==a[g+1]?null:a[g+1].elm,a,p,g,r):d(e,t,l,f))}(s,l,p,a):isDef(p)?(isDef(e.text)&&o.setTextContent(s,""),u(s,null,p,0,p.length-1,a)):isDef(l)?d(s,l,0,l.length-1):isDef(e.text)&&o.setTextContent(s,""):e.text!==t.text&&o.setTextContent(s,t.text),isDef(i)&&isDef(r=i.postpatch)&&r(e,t)}}return function(e,t){var a,r,i,l=[];for(a=0;a<n.pre.length;++a)n.pre[a]();for(isVnode(e)||(e=s(e)),sameVnode(e,t)?h(e,t,l):(r=e.elm,i=o.parentNode(r),c(t,l),null!==i&&(o.insertBefore(i,t.elm,o.nextSibling(r)),d(i,[e],0,0))),a=0;a<l.length;++a)l[a].data.hook.insert(l[a]);for(a=0;a<n.post.length;++a)n.post[a]();return t}}var xlinkNS="http://www.w3.org/1999/xlink",xmlNS="http://www.w3.org/XML/1998/namespace",colonChar=58,xChar=120;function updateAttrs(e,t){var a,r=t.elm,n=e.data.attrs,o=t.data.attrs;if((n||o)&&n!==o){for(a in n=n||{},o=o||{}){var i=o[a];n[a]!==i&&(!0===i?r.setAttribute(a,""):!1===i?r.removeAttribute(a):a.charCodeAt(0)!==xChar?r.setAttribute(a,i):a.charCodeAt(3)===colonChar?r.setAttributeNS(xmlNS,a,i):a.charCodeAt(5)===colonChar?r.setAttributeNS(xlinkNS,a,i):r.setAttribute(a,i))}for(a in n)a in o||r.removeAttribute(a)}}var attributesModule={create:updateAttrs,update:updateAttrs};function updateProps(e,t){var a,r,n=t.elm,o=e.data.props,i=t.data.props;if((o||i)&&o!==i){for(a in i=i||{},o=o||{})i[a]||delete n[a];for(a in i)r=i[a],o[a]===r||"value"===a&&n[a]===r||(n[a]=r)}}var propsModule={create:updateProps,update:updateProps},raf="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout,nextFrame=function(e){raf((function(){raf(e)}))};function setNextFrame(e,t,a){nextFrame((function(){e[t]=a}))}function updateStyle(e,t){var a,r,n=t.elm,o=e.data.style,i=t.data.style;if((o||i)&&o!==i){i=i||{};var s="delayed"in(o=o||{});for(r in o)i[r]||("-"===r[0]&&"-"===r[1]?n.style.removeProperty(r):n.style[r]="");for(r in i)if(a=i[r],"delayed"===r&&i.delayed)for(var l in i.delayed)a=i.delayed[l],s&&a===o.delayed[l]||setNextFrame(n.style,l,a);else"remove"!==r&&a!==o[r]&&("-"===r[0]&&"-"===r[1]?n.style.setProperty(r,a):n.style[r]=a)}}function applyDestroyStyle(e){var t,a,r=e.elm,n=e.data.style;if(n&&(t=n.destroy))for(a in t)r.style[a]=t[a]}function applyRemoveStyle(e,t){var a=e.data.style;if(a&&a.remove){var r,n=e.elm,o=0,i=a.remove,s=0,l=[];for(r in i)l.push(r),n.style[r]=i[r];for(var c=getComputedStyle(n)["transition-property"].split(", ");o<c.length;++o)-1!==l.indexOf(c[o])&&s++;n.addEventListener("transitionend",(function(e){e.target===n&&--s,0===s&&t()}))}else t()}var styleModule={create:updateStyle,update:updateStyle,destroy:applyDestroyStyle,remove:applyRemoveStyle};function invokeHandler(e,t,a){"function"==typeof e&&e.apply(void 0,[t].concat(a))}function handleEvent(e,t,a){var r=e.type,n=a.data.on;n&&n[r]&&invokeHandler(n[r],e,t)}function createListener(){return function e(t){for(var a=[],r=arguments.length-1;r-- >0;)a[r]=arguments[r+1];handleEvent(t,a,e.vnode)}}function updateEvents(e,t){var a=e.data.on,r=e.listener,n=e.elm,o=t&&t.data.on,i=t&&t.elm;if(a!==o&&(a&&r&&(o?Object.keys(a).forEach((function(e){o[e]||$(n).off(e,r)})):Object.keys(a).forEach((function(e){$(n).off(e,r)}))),o)){var s=e.listener||createListener();t.listener=s,s.vnode=t,a?Object.keys(o).forEach((function(e){a[e]||$(i).on(e,s)})):Object.keys(o).forEach((function(e){$(i).on(e,s)}))}}var eventListenersModule={create:updateEvents,update:updateEvents,destroy:updateEvents},patch=init([attributesModule,propsModule,styleModule,eventListenersModule]),componentMixins={},Component=function(e,t,a,r){void 0===t&&(t={}),void 0===a&&(a={});var n=Utils.id(),o=this;Utils.merge(o,{$props:{}},a,{$:$,$$:$,$dom7:$,$app:e,$f7:e,$options:Utils.extend({id:n},t),$id:t.isClassComponent?o.constructor.id:t.id||n,$mixins:t.isClassComponent?o.constructor.mixins:t.mixins,$children:r||[],$isRootComponent:!!t.root});var i=o.$options;if(o.$mixins&&o.$mixins.length)for(var s=o.$mixins.length-1;s>=0;s-=1){var l=o.$mixins[s];"string"==typeof l&&(componentMixins[l]?o.$mixins[s]=componentMixins[l]:o.$mixins.splice(s,1))}Object.defineProperty(o,"$slots",{enumerable:!0,configurable:!0,get:function(){var e={};return o.$children.forEach((function(t){var a="default";t.data&&(a=t.data.attrs&&t.data.attrs.slot||"default"),e[a]||(e[a]=[]),e[a].push(t)})),e}}),Object.defineProperty(o,"$root",{enumerable:!0,configurable:!0,get:function(){if(o.$isRootComponent)return o;if(e.rootComponent)return o.$onRootUpdated||(o.$onRootUpdated=function(){return o.$update()},e.on("rootComponentUpdated",o.$onRootUpdated)),e.rootComponent;var t=Utils.merge({},e.data,e.methods);return win&&win.Proxy&&(t=new win.Proxy(t,{set:function(t,a,r){e.data[a]=r},deleteProperty:function(t,a){delete e.data[a],delete e.methods[a]},has:function(t,a){return a in e.data||a in e.methods}})),t},set:function(){}}),i.render&&(i.render=i.render.bind(o));var c={};return o.$mixins&&o.$mixins.length&&o.$mixins.forEach((function(e){e.methods&&Object.assign(c,e.methods)})),i.methods&&Object.assign(c,i.methods),Object.keys(c).forEach((function(e){o[e]=c[e].bind(o)})),i.on&&Object.keys(i.on).forEach((function(e){i.on[e]=i.on[e].bind(o)})),i.once&&Object.keys(i.once).forEach((function(e){i.once[e]=i.once[e].bind(o)})),o.$style=i.isClassComponent?o.constructor.style:i.style,o.$styleScoped=i.isClassComponent?o.constructor.styleScoped:i.styleScoped,o.__updateQueue=[],new Promise((function(e,t){o.$hook("data",!0).then((function(t){var a={};t.forEach((function(e){Object.assign(a,e||{})})),Utils.extend(o,a),o.$hook("beforeCreate");var r=o.$render();if(o.$options.el)return r=r.trim(),o.$vnode=vdom(r,o,!0),o.$style&&(o.$styleEl=doc.createElement("style"),o.$styleEl.innerHTML=o.$style),o.el=o.$options.el,patch(o.el,o.$vnode),o.el=o.$vnode.elm,o.$el=$(o.el),o.$attachEvents(),o.el.f7Component=o,o.$hook("created"),o.$mount(),void e(o);r&&"string"==typeof r?(r=r.trim(),o.$vnode=vdom(r,o,!0),o.el=doc.createElement(o.$vnode.sel||"div"),patch(o.el,o.$vnode),o.$el=$(o.el)):r&&(o.el=r,o.$el=$(o.el)),o.$style&&(o.$styleEl=doc.createElement("style"),o.$styleEl.innerHTML=o.$style),o.$attachEvents(),o.el&&(o.el.f7Component=o),o.$hook("created"),e(o)})).catch((function(e){t(e)}))}))};function parseComponent(e){var t,a=Utils.id(),r="f7_component_create_callback_"+a,n="f7_component_render_callback_"+a,o=e.match(/<template([ ]?)([a-z0-9-]*)>/),i=o[2]||"t7";o&&(t=e.split(/<template[ ]?[a-z0-9-]*>/).filter((function(e,t){return t>0})).join("<template>").split("</template>").filter((function(e,t,a){return t<a.length-1})).join("</template>").replace(/{{#raw}}([ \n]*)<template/g,"{{#raw}}<template").replace(/\/template>([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])<template/g,"$1{{#raw}}<template").replace(/\/template>([ \n])/g,"/template>{{/raw}}$1"));var s,l,c=null,u=!1;if(e.indexOf("<style>")>=0?c=e.split("<style>")[1].split("</style>")[0]:e.indexOf("<style scoped>")>=0&&(u=!0,c=(c=e.split("<style scoped>")[1].split("</style>")[0]).replace(/{{this}}/g,"[data-f7-"+a+"]").replace(/[\n]?([^{^}]*){/gi,(function(e,t){return t.indexOf('"')>=0||t.indexOf("'")>=0?e:"\n"+(t=t.split(",").map((function(e){return e.indexOf("@")>=0||e.indexOf("[data-f7-"+a+"]")>=0?e:"[data-f7-"+a+"] "+e.trim()})).join(", "))+" {"}))),e.indexOf("<script>")>=0){var p=e.split("<script>");s=p[p.length-1].split("<\/script>")[0].trim()}else s="return {}";s&&s.trim()||(s="return {}"),s="window."+r+" = function () {"+s+"}",(l=doc.createElement("script")).innerHTML=s,$("head").append(l);var d=win[r](),h="function"==typeof d;if($(l).remove(),win[r]=null,delete win[r],d.template||d.render||(d.template=t,d.templateType=i),d.template){if("t7"===d.templateType)if(h){var f=Template7.compile(d.template);d.prototype.render=function(){return f(this)}}else d.template=Template7.compile(d.template);if("es"===d.templateType){var v="window."+n+" = function () {\n return function render() {\n return `"+d.template+"`;\n }\n }";(l=doc.createElement("script")).innerHTML=v,$("head").append(l),h?d.prototype.render=d.template:d.render=win[n](),$(l).remove(),win[n]=null,delete win[n]}}return h&&(delete d.template,delete d.templateType),c&&(d.style=c,d.styleScoped=u),d.id=a,d}function registerComponentMixin(e,t){componentMixins[e]=t}function registerComponent(e,t){customComponents[e]=t}Component.prototype.$attachEvents=function(){var e=this,t=e.$options,a=e.$el;e.$mixins&&e.$mixins.length&&(e.$detachEventsHandlers={},e.$mixins.forEach((function(t){t.on&&Object.keys(t.on).forEach((function(r){var n=t.on[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(n),a.on(Utils.eventNameToColonCase(r),n)})),t.once&&Object.keys(t.once).forEach((function(r){var n=t.once[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(n),a.once(Utils.eventNameToColonCase(r),n)}))}))),t.on&&Object.keys(t.on).forEach((function(e){a.on(Utils.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){a.once(Utils.eventNameToColonCase(e),t.once[e])}))},Component.prototype.$detachEvents=function(){var e=this,t=e.$options,a=e.$el;t.on&&Object.keys(t.on).forEach((function(e){a.off(Utils.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){a.off(Utils.eventNameToColonCase(e),t.once[e])})),e.$detachEventsHandlers&&(Object.keys(e.$detachEventsHandlers).forEach((function(t){e.$detachEventsHandlers[t].forEach((function(e){a.off(Utils.eventNameToColonCase(t),e)})),e.$detachEventsHandlers[t]=[],delete e.$detachEventsHandlers[t]})),e.$detachEventsHandlers=null,delete e.$detachEventsHandlers)},Component.prototype.$render=function(){var e=this.$options,t="";return e.render?t=e.render():this.render?t=this.render.call(this):e.template&&(t="string"==typeof e.template?Template7.compile(e.template)(this):e.template(this)),t},Component.prototype.$startUpdateQueue=function(){var e=this;e.__requestAnimationFrameId||(e.__requestAnimationFrameId=win.requestAnimationFrame((function(){e.__updateIsPending&&function(){var t=e.$render();if(t&&"string"==typeof t){var a=vdom(t=t.trim(),e,!1);e.$vnode=patch(e.$vnode,a)}}();var t=[].concat(e.__updateQueue);e.__updateQueue=[],e.__updateIsPending=!1,win.cancelAnimationFrame(e.__requestAnimationFrameId),delete e.__requestAnimationFrameId,delete e.__updateIsPending,t.forEach((function(e){return e()})),t=[]})))},Component.prototype.$tick=function(e){var t=this;return new Promise((function(a){t.__updateQueue.push((function(){a(),e&&e()})),t.$startUpdateQueue()}))},Component.prototype.$update=function(e){var t=this;return new Promise((function(a){t.__updateIsPending=!0,t.__updateQueue.push((function(){a(),e&&e(),t.$isRootComponent&&t.$f7.emit("rootComponentUpdated")})),t.$startUpdateQueue()}))},Component.prototype.$setState=function(e,t){void 0===e&&(e={});return Utils.merge(this,e),this.$update(t)},Component.prototype.$f7ready=function(e){var t=this;this.$f7.initialized?e(this.$f7):this.$f7.once("init",(function(){e(t.$f7)}))},Component.prototype.$mount=function(e){this.$hook("beforeMount"),this.$styleEl&&$("head").append(this.$styleEl),e&&e(this.el),this.$hook("mounted")},Component.prototype.$destroy=function(){this.$hook("beforeDestroy"),this.$styleEl&&$(this.$styleEl).remove(),this.$onRootUpdated&&(this.$f7.off("rootComponentUpdated",this.$onRootUpdated),delete this.$onRootUpdated),this.$detachEvents(),this.$hook("destroyed"),this.el&&this.el.f7Component&&(this.el.f7Component=null,delete this.el.f7Component),this.$vnode&&(this.$vnode=patch(this.$vnode,{sel:this.$vnode.sel,data:{}})),win.cancelAnimationFrame(this.__requestAnimationFrameId),Utils.deleteProps(this)},Component.prototype.$hook=function(e,t){var a=this;if(t){var r=[];return a.$mixins&&a.$mixins.length&&a.$mixins.forEach((function(t){t[e]&&r.push(t[e].call(a))})),a[e]&&"function"==typeof a[e]&&r.push(a[e].call(a)),a.$options[e]&&r.push(a.$options[e].call(a)),Promise.all(r)}return a.$mixins&&a.$mixins.length&&a.$mixins.forEach((function(t){t[e]&&"function"==typeof t[e]&&t[e].call(a)})),a.$options[e]?a.$options[e].call(a):a[e]?a[e].call(a):void 0};var ComponentModule={name:"component",static:{Component:Component,registerComponentMixin:registerComponentMixin,registerComponent:registerComponent},create:function(){var e=this;e.component={registerComponentMixin:registerComponentMixin,registerComponent:registerComponent,parse:function(e){return parseComponent(e)},create:function(t,a,r){if("function"==typeof t){var n=t.root,o=t.el;return new t(e,{isClassComponent:!0,root:n,el:o},a,r)}return new Component(e,t,a,r)}}}},HistoryModule={name:"history",static:{history:History},on:{init:function(){History.init(this)}}},SW={registrations:[],register:function(e,t){var a=this;return"serviceWorker"in win.navigator&&a.serviceWorker.container?new Promise((function(r,n){a.serviceWorker.container.register(e,t?{scope:t}:{}).then((function(e){SW.registrations.push(e),a.emit("serviceWorkerRegisterSuccess",e),r(e)})).catch((function(e){a.emit("serviceWorkerRegisterError",e),n(e)}))})):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))},unregister:function(e){var t,a=this;return"serviceWorker"in win.navigator&&a.serviceWorker.container?(t=e?Array.isArray(e)?e:[e]:SW.registrations,Promise.all(t.map((function(e){return new Promise((function(t,r){e.unregister().then((function(){SW.registrations.indexOf(e)>=0&&SW.registrations.splice(SW.registrations.indexOf(e),1),a.emit("serviceWorkerUnregisterSuccess",e),t()})).catch((function(t){a.emit("serviceWorkerUnregisterError",e,t),r(t)}))}))})))):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))}},ServiceWorkerModule={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){Utils.extend(this,{serviceWorker:{container:"serviceWorker"in win.navigator?win.navigator.serviceWorker:void 0,registrations:SW.registrations,register:SW.register.bind(this),unregister:SW.unregister.bind(this)}})},on:{init:function(){if("serviceWorker"in win.navigator){var e=this;if(e.serviceWorker.container){var t=e.params.serviceWorker.path,a=e.params.serviceWorker.scope;if(t&&(!Array.isArray(t)||t.length))(Array.isArray(t)?t:[t]).forEach((function(t){e.serviceWorker.register(t,a)}))}}}}},Statusbar={hide:function(){Device.cordova&&win.StatusBar&&win.StatusBar.hide()},show:function(){Device.cordova&&win.StatusBar&&win.StatusBar.show()},onClick:function(){var e;(e=$(".popup.modal-in").length>0?$(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):$(".panel.panel-in").length>0?$(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):$(".views > .view.tab-active").length>0?$(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):$(".views").length>0?$(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):this.root.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"))&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor:function(e){Device.cordova&&win.StatusBar&&("white"===e?win.StatusBar.styleLightContent():win.StatusBar.styleDefault())},setBackgroundColor:function(e){Device.cordova&&win.StatusBar&&win.StatusBar.backgroundColorByHexString(e)},isVisible:function(){return!(!Device.cordova||!win.StatusBar)&&win.StatusBar.isVisible},overlaysWebView:function(e){void 0===e&&(e=!0),Device.cordova&&win.StatusBar&&win.StatusBar.overlaysWebView(e)},init:function(){var e=this.params.statusbar;e.enabled&&(Device.cordova&&win.StatusBar&&(e.scrollTopOnClick&&$(win).on("statusTap",Statusbar.onClick.bind(this)),Device.ios&&(e.iosOverlaysWebView?win.StatusBar.overlaysWebView(!0):win.StatusBar.overlaysWebView(!1),"white"===e.iosTextColor?win.StatusBar.styleLightContent():win.StatusBar.styleDefault()),Device.android&&(e.androidOverlaysWebView?win.StatusBar.overlaysWebView(!0):win.StatusBar.overlaysWebView(!1),"white"===e.androidTextColor?win.StatusBar.styleLightContent():win.StatusBar.styleDefault())),e.iosBackgroundColor&&Device.ios&&Statusbar.setBackgroundColor(e.iosBackgroundColor),e.androidBackgroundColor&&Device.android&&Statusbar.setBackgroundColor(e.androidBackgroundColor))}},Statusbar$1={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create:function(){Utils.extend(this,{statusbar:{hide:Statusbar.hide,show:Statusbar.show,overlaysWebView:Statusbar.overlaysWebView,setTextColor:Statusbar.setTextColor,setBackgroundColor:Statusbar.setBackgroundColor,isVisible:Statusbar.isVisible,init:Statusbar.init.bind(this)}})},on:{init:function(){Statusbar.init.call(this)}}};function getCurrentView(e){var t=$(".popover.modal-in .view"),a=$(".popup.modal-in .view"),r=$(".panel.panel-in .view"),n=$(".views");0===n.length&&(n=e.root);var o=n.children(".view");if(0===o.length&&(o=n.children(".tabs").children(".view")),o.length>1&&o.hasClass("tab")&&0===(o=n.children(".view.tab-active")).length&&(o=n.children(".tabs").children(".view.tab-active")),t.length>0&&t[0].f7View)return t[0].f7View;if(a.length>0&&a[0].f7View)return a[0].f7View;if(r.length>0&&r[0].f7View)return r[0].f7View;if(o.length>0){if(1===o.length&&o[0].f7View)return o[0].f7View;if(o.length>1)return e.views.main}}var View$1={name:"view",params:{view:{name:void 0,main:!1,router:!0,linksView:null,stackPages:!1,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:6e5,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,auroraSwipeBack:!1,auroraSwipeBackAnimateShadow:!1,auroraSwipeBackAnimateOpacity:!0,auroraSwipeBackActiveArea:30,auroraSwipeBackThreshold:0,pushState:!1,pushStateRoot:void 0,pushStateAnimate:!0,pushStateAnimateOnLoad:!1,pushStateSeparator:"#!",pushStateOnLoad:!0,animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,auroraPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:View},create:function(){var e=this;Utils.extend(e,{views:Utils.extend([],{create:function(t,a){return new View(e,t,a)},get:function(e){var t=$(e);if(t.length&&t[0].f7View)return t[0].f7View}})}),Object.defineProperty(e.views,"current",{enumerable:!0,configurable:!0,get:function(){return getCurrentView(e)}}),e.view=e.views},on:{init:function(){var e=this;$(".view-init").each((function(t,a){if(!a.f7View){var r=$(a).dataset();e.views.create(a,r)}}))},"modalOpen panelOpen":function(e){var t=this;e.$el.find(".view-init").each((function(e,a){if(!a.f7View){var r=$(a).dataset();t.views.create(a,r)}}))},"modalBeforeDestroy panelBeforeDestroy":function(e){e&&e.$el&&e.$el.find(".view-init").each((function(e,t){var a=t.f7View;a&&a.destroy()}))}},vnode:{"view-init":{insert:function(e){var t=e.elm;if(!t.f7View){var a=$(t).dataset();this.views.create(t,a)}},destroy:function(e){var t=e.elm.f7View;t&&t.destroy()}}}},Navbar={size:function(e){var t=this,a=$(e);if(a.hasClass("navbars"))a=a.children(".navbar").each((function(e,a){t.navbar.size(a)}));else{var r=a.children(".navbar-inner");if(r.length){var n=r.hasClass("navbar-inner-centered-title")||t.params.navbar[t.theme+"CenterTitle"],o="ios"===t.theme&&!t.params.navbar[t.theme+"CenterTitle"];if((n||o)&&!(a.hasClass("stacked")||a.parents(".stacked").length>0||a.parents(".tab:not(.tab-active)").length>0||a.parents(".popup:not(.modal-in)").length>0)){"ios"!==t.theme&&t.params.navbar[t.theme+"CenterTitle"]&&r.addClass("navbar-inner-centered-title"),"ios"!==t.theme||t.params.navbar.iosCenterTitle||r.addClass("navbar-inner-left-title");var i,s,l,c,u=a.parents(".view").eq(0),p=t.rtl?r.children(".right"):r.children(".left"),d=t.rtl?r.children(".left"):r.children(".right"),h=r.children(".title"),f=r.children(".subnavbar"),v=0===p.length,m=0===d.length,g=v?0:p.outerWidth(!0),b=m?0:d.outerWidth(!0),y=h.outerWidth(!0),w=r.styles(),C=r[0].offsetWidth-parseInt(w.paddingLeft,10)-parseInt(w.paddingRight,10),x=a.hasClass("navbar-previous"),k=r.hasClass("sliding");u.length>0&&u[0].f7View&&(s=(i=u[0].f7View.router)&&i.dynamicNavbar),m&&(l=C-y),v&&(l=0),v||m||(l=(C-b-y+g)/2);var E=(C-y)/2;C-g-b>y?(E<g&&(E=g),E+y>C-b&&(E=C-b-y),c=E-l):c=0;var S=t.rtl?-1:1;if(s&&"ios"===t.theme){if(h.hasClass("sliding")||h.length>0&&k){var T=-(l+c)*S,O=(C-l-c-y)*S;if(x&&i&&i.params.iosAnimateNavbarBackIcon){var P=a.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");P.length>0&&(T+=P[0].offsetLeft)}h[0].f7NavbarLeftOffset=T,h[0].f7NavbarRightOffset=O}if(!v&&(p.hasClass("sliding")||k))if(t.rtl)p[0].f7NavbarLeftOffset=-(C-p[0].offsetWidth)/2*S,p[0].f7NavbarRightOffset=g*S;else if(p[0].f7NavbarLeftOffset=-g,p[0].f7NavbarRightOffset=(C-p[0].offsetWidth)/2,i&&i.params.iosAnimateNavbarBackIcon&&p.find(".back .icon").length>0&&p.find(".back .icon ~ span").length){var R=p[0].f7NavbarLeftOffset,N=p[0].f7NavbarRightOffset;p[0].f7NavbarLeftOffset=0,p[0].f7NavbarRightOffset=0,p.find(".back .icon ~ span")[0].f7NavbarLeftOffset=R,p.find(".back .icon ~ span")[0].f7NavbarRightOffset=N-p.find(".back .icon")[0].offsetWidth}m||!d.hasClass("sliding")&&!k||(t.rtl?(d[0].f7NavbarLeftOffset=-b*S,d[0].f7NavbarRightOffset=(C-d[0].offsetWidth)/2*S):(d[0].f7NavbarLeftOffset=-(C-d[0].offsetWidth)/2,d[0].f7NavbarRightOffset=b)),f.length&&(f.hasClass("sliding")||k)&&(f[0].f7NavbarLeftOffset=t.rtl?f[0].offsetWidth:-f[0].offsetWidth,f[0].f7NavbarRightOffset=-f[0].f7NavbarLeftOffset)}if(n){var D=c;t.rtl&&v&&m&&h.length>0&&(D=-D),h.css({left:D+"px"})}}}}},hide:function(e,t,a){void 0===t&&(t=!0),void 0===a&&(a=!1);var r=this,n=$(e),o=n.hasClass("navbar")&&n.parent(".navbars").length;if(o&&(n=n.parents(".navbars")),n.length&&!n.hasClass("navbar-hidden")){var i="navbar-hidden"+(t?" navbar-transitioning":"");(o?n.find(".navbar-current .title-large").length:n.find(".title-large").length)&&(i+=" navbar-large-hidden"),a&&(i+=" navbar-hidden-statusbar"),n.transitionEnd((function(){n.removeClass("navbar-transitioning")})),n.addClass(i),o?n.children(".navbar").each((function(e,t){$(t).trigger("navbar:hide"),r.emit("navbarHide",t)})):(n.trigger("navbar:hide"),r.emit("navbarHide",n[0]))}},show:function(e,t){void 0===e&&(e=".navbar-hidden"),void 0===t&&(t=!0);var a=this,r=$(e),n=r.hasClass("navbar")&&r.parent(".navbars").length;n&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(t&&(r.addClass("navbar-transitioning"),r.transitionEnd((function(){r.removeClass("navbar-transitioning")}))),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),n?r.children(".navbar").each((function(e,t){$(t).trigger("navbar:show"),a.emit("navbarShow",t)})):(r.trigger("navbar:show"),a.emit("navbarShow",r[0])))},getElByPage:function(e){var t,a,r;if(e.$navbarEl||e.$el?(r=e,t=e.$el):(t=$(e)).length>0&&(r=t[0].f7Page),r&&r.$navbarEl&&r.$navbarEl.length>0?a=r.$navbarEl:t&&(a=t.children(".navbar")),a&&(!a||0!==a.length))return a[0]},getPageByEl:function(e){var t,a=$(e);return a.parents(".page").length?a.parents(".page")[0]:(a.parents(".view").find(".page").each((function(e,r){r&&r.f7Page&&r.f7Page.navbarEl&&a[0]===r.f7Page.navbarEl&&(t=r)})),t)},collapseLargeTitle:function(e){var t=$(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar")).length>1&&(t=$(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var a=$(this.navbar.getPageByEl(t));t.addClass("navbar-large-collapsed"),a.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),this.emit("pageNavbarLargeCollapsed",a[0]),t.trigger("navbar:collapse"),this.emit("navbarCollapse",t[0])}},expandLargeTitle:function(e){var t=$(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=$(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var a=$(this.navbar.getPageByEl(t));t.removeClass("navbar-large-collapsed"),a.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),this.emit("pageNavbarLargeExpanded",a[0]),t.trigger("navbar:expand"),this.emit("navbarExpand",t[0])}},toggleLargeTitle:function(e){var t=$(e);t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=$(e).find(".navbar-large.navbar-current")),t.length>1||!t.length)||(t.hasClass("navbar-large-collapsed")?this.navbar.expandLargeTitle(t):this.navbar.collapseLargeTitle(t))},initNavbarOnScroll:function(e,t,a,r,n){var o,i,s,l,c,u,p,d,h,f,v,m,g,b,y=this,w=$(e),C=$(t),x=C.find(".title-large"),k=x.length||C.hasClass(".navbar-large"),E=44,S=y.params.navbar.snapPageScrollToLargeTitle,T=y.params.navbar.snapPageScrollToTransparentNavbar;(r||a&&k)&&((h=C.css("--f7-navbar-large-title-height"))&&h.indexOf("px")>=0?(h=parseInt(h,10),Number.isNaN(h)&&x.length?h=x[0].offsetHeight:Number.isNaN(h)&&("ios"===y.theme?h=52:"md"===y.theme?h=48:"aurora"===y.theme&&(h=38))):x.length?h=x[0].offsetHeight:"ios"===y.theme?h=52:"md"===y.theme?h=48:"aurora"===y.theme&&(h=38)),a&&k&&(E+=h);function O(){C.hasClass("with-searchbar-expandable-enabled")||!m||i<0||(i>=h/2&&i<h?$(m).scrollTop(h,100):i<h&&$(m).scrollTop(0,200))}function P(){C.hasClass("with-searchbar-expandable-enabled")||!m||i<0||(i>=f/2&&i<f?$(m).scrollTop(f,100):i<f&&$(m).scrollTop(0,200))}var R=null,N=null;function D(e){m=this,e&&e.target&&e.target!==m||(i=m.scrollTop,v=i,r?function(){if(!(C.hasClass("navbar-hidden")||C.parent(".navbars").hasClass("navbar-hidden"))){var e=C.hasClass("navbar-large-transparent")||C.hasClass("navbar-large")&&C.hasClass("navbar-transparent");R=N,N=Math.min(Math.max(i/h,0),1);var t=R>0&&R<1;C.hasClass("with-searchbar-expandable-enabled")||(d=C.hasClass("navbar-large-collapsed"),0===N&&d?y.navbar.expandLargeTitle(C[0]):1!==N||d||y.navbar.collapseLargeTitle(C[0]),0===N&&d||0===N&&t||1===N&&!d||1===N&&t?("md"===y.theme&&C.find(".navbar-inner").css("overflow",""),C.find(".title").css("opacity",""),C.find(".title-large-text, .subnavbar").css("transform",""),e?C.find(".navbar-bg").css("opacity",""):C.find(".navbar-bg").css("transform","")):N>0&&N<1&&("md"===y.theme&&C.find(".navbar-inner").css("overflow","visible"),C.find(".title").css("opacity",N),C.find(".title-large-text, .subnavbar").css("transform","translate3d(0px, "+-1*N*h+"px, 0)"),e?C.find(".navbar-bg").css("opacity",N):C.find(".navbar-bg").css("transform","translate3d(0px, "+-1*N*h+"px, 0)")),S&&(Support.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){O(),clearTimeout(b),b=null}),70)):(clearTimeout(g),g=setTimeout((function(){O()}),300))))}}():n&&function(){var e=C.hasClass("navbar-hidden")||C.parent(".navbars").hasClass("navbar-hidden");if(!C.hasClass("with-searchbar-expandable-enabled")&&!e){f||(f=t.offsetHeight);var a=i/f,r=C.hasClass("navbar-transparent-visible");if(a=Math.max(Math.min(a,1),0),r&&1===a||!r&&0===a)C.find(".navbar-bg, .title").css("opacity","");else{if(r&&0===a)return C.trigger("navbar:transparenthide"),y.emit("navbarTransparentHide",C[0]),C.removeClass("navbar-transparent-visible"),void C.find(".navbar-bg, .title").css("opacity","");if(!r&&1===a)return C.trigger("navbar:transparentshow"),y.emit("navbarTransparentShow",C[0]),C.addClass("navbar-transparent-visible"),void C.find(".navbar-bg, .title").css("opacity","");C.find(".navbar-bg, .title").css("opacity",a),T&&(Support.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){P(),clearTimeout(b),b=null}),70)):(clearTimeout(g),g=setTimeout((function(){P()}),300)))}}}(),w.hasClass("page-previous")||a&&(w.hasClass("page-with-card-opened")||(s=m.scrollHeight,l=m.offsetHeight,c=i+l>=s,p=C.hasClass("navbar-hidden")||C.parent(".navbars").hasClass("navbar-hidden"),c?y.params.navbar.showOnPageScrollEnd&&(u="show"):u=o>i?y.params.navbar.showOnPageScrollTop||i<=E?"show":"hide":i>E?"hide":"show","show"===u&&p?(y.navbar.show(C),p=!1):"hide"!==u||p||(y.navbar.hide(C),p=!0),o=i)))}function L(){v=!1}function M(){clearTimeout(b),b=null,b=setTimeout((function(){!1!==v&&(n&&!r?P():O(),clearTimeout(b),b=null)}),70)}w.on("scroll",".page-content",D,!0),Support.touch&&(r&&S||n&&T)&&(y.on("touchstart:passive",L),y.on("touchend:passive",M)),(r||n)&&w.find(".page-content").each((function(e,t){t.scrollTop>0&&D.call(t)})),w[0].f7DetachNavbarScrollHandlers=function(){delete w[0].f7DetachNavbarScrollHandlers,w.off("scroll",".page-content",D,!0),Support.touch&&(r&&S||n&&T)&&(y.off("touchstart:passive",L),y.off("touchend:passive",M))}}},Navbar$1={name:"navbar",create:function(){var e=this;Utils.extend(e,{navbar:{size:Navbar.size.bind(e),hide:Navbar.hide.bind(e),show:Navbar.show.bind(e),getElByPage:Navbar.getElByPage.bind(e),getPageByEl:Navbar.getPageByEl.bind(e),collapseLargeTitle:Navbar.collapseLargeTitle.bind(e),expandLargeTitle:Navbar.expandLargeTitle.bind(e),toggleLargeTitle:Navbar.toggleLargeTitle.bind(e),initNavbarOnScroll:Navbar.initNavbarOnScroll.bind(e)}})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,auroraCenterTitle:!0,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){var e=this;$(".navbar").each((function(t,a){e.navbar.size(a)}))},pageBeforeRemove:function(e){e.$el[0].f7DetachNavbarScrollHandlers&&e.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn:function(e){if("ios"===this.theme){var t,a=e.$el.parents(".view")[0].f7View,r=this.navbar.getElByPage(e);if(t=r?$(r).parents(".navbars"):e.$el.parents(".view").children(".navbars"),e.$el.hasClass("no-navbar")||a.router.dynamicNavbar&&!r){var n=!!(e.pageFrom&&e.router.history.length>0);this.navbar.hide(t,n)}else this.navbar.show(t)}},pageReinit:function(e){var t=$(this.navbar.getElByPage(e));t&&0!==t.length&&this.navbar.size(t)},pageInit:function(e){var t,a,r,n=$(this.navbar.getElByPage(e));n&&0!==n.length&&(this.navbar.size(n),n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(this.params.navbar.collapseLargeTitleOnScroll&&(t=!0),e.$el.addClass("page-with-navbar-large")),!t&&n.hasClass("navbar-transparent")&&(a=!0),(this.params.navbar.hideOnPageScroll||e.$el.find(".hide-navbar-on-scroll").length||e.$el.hasClass("hide-navbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll"))&&(r=!(e.$el.find(".keep-navbar-on-scroll").length||e.$el.hasClass("keep-navbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))),(t||r||a)&&this.navbar.initNavbarOnScroll(e.el,n[0],r,t,a))},"panelOpen panelSwipeOpen modalOpen":function(e){var t=this;e.$el.find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,a){t.navbar.size(a)}))},tabShow:function(e){var t=this;$(e).find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,a){t.navbar.size(a)}))}},clicks:{".navbar .title":function(e){if(this.params.navbar.scrollTopOnTitleClick&&!(e.closest("a").length>0)){var t,a=e.parents(".navbar"),r=a.parents(".navbars");0===(t=a.parents(".page-content")).length&&(a.parents(".page").length>0&&(t=a.parents(".page").find(".page-content")),0===t.length&&r.length&&r.nextAll(".page-current:not(.stacked)").length>0&&(t=r.nextAll(".page-current:not(.stacked)").find(".page-content")),0===t.length&&a.nextAll(".page-current:not(.stacked)").length>0&&(t=a.nextAll(".page-current:not(.stacked)").find(".page-content"))),t&&t.length>0&&(t.hasClass("tab")&&(t=t.parent(".tabs").children(".page-content.tab-active")),t.length>0&&t.scrollTop(0,300))}}},vnode:{navbar:{postpatch:function(e){this.navbar.size(e.elm)}}}},Toolbar={setHighlight:function(e){if("md"===this.theme){var t=$(e);if(0!==t.length&&(t.hasClass("tabbar")||t.hasClass("tabbar-labels"))){var a=t.find(".tab-link-highlight"),r=t.find(".tab-link").length;if(0!==r){0===a.length?(t.children(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),a=t.find(".tab-link-highlight")):a.next().length&&t.children(".toolbar-inner").append(a);var n,o,i=t.find(".tab-link-active");if(t.hasClass("tabbar-scrollable")&&i&&i[0])n=i[0].offsetWidth+"px",o=i[0].offsetLeft+"px";else{var s=i.index();n=100/r+"%",o=100*(this.rtl?-s:s)+"%"}Utils.nextFrame((function(){a.css("width",n).transform("translate3d("+o+",0,0)")}))}else a.remove()}}},init:function(e){this.toolbar.setHighlight(e)},hide:function(e,t){void 0===t&&(t=!0);var a=$(e);if(!a.hasClass("toolbar-hidden")){var r="toolbar-hidden"+(t?" toolbar-transitioning":"");a.transitionEnd((function(){a.removeClass("toolbar-transitioning")})),a.addClass(r),a.trigger("toolbar:hide"),this.emit("toolbarHide",a[0])}},show:function(e,t){void 0===t&&(t=!0);var a=$(e);a.hasClass("toolbar-hidden")&&(t&&(a.addClass("toolbar-transitioning"),a.transitionEnd((function(){a.removeClass("toolbar-transitioning")}))),a.removeClass("toolbar-hidden"),a.trigger("toolbar:show"),this.emit("toolbarShow",a[0]))},initToolbarOnScroll:function(e){var t,a,r,n,o,i,s,l=this,c=$(e),u=c.parents(".view").children(".toolbar");(0===u.length&&(u=c.find(".toolbar")),0===u.length&&(u=c.parents(".views").children(".tabbar, .tabbar-labels")),0!==u.length)&&(c.on("scroll",".page-content",p,!0),c[0].f7ScrollToolbarHandler=p);function p(e){if(!c.hasClass("page-with-card-opened")&&!c.hasClass("page-previous")){e&&e.target&&e.target!==this||(a=this.scrollTop,r=this.scrollHeight,n=this.offsetHeight,o=a+n>=r,s=u.hasClass("toolbar-hidden"),o?l.params.toolbar.showOnPageScrollEnd&&(i="show"):i=t>a?l.params.toolbar.showOnPageScrollTop||a<=44?"show":"hide":a>44?"hide":"show","show"===i&&s?(l.toolbar.show(u),s=!1):"hide"!==i||s||(l.toolbar.hide(u),s=!0),t=a)}}}},Toolbar$1={name:"toolbar",create:function(){Utils.extend(this,{toolbar:{hide:Toolbar.hide.bind(this),show:Toolbar.show.bind(this),setHighlight:Toolbar.setHighlight.bind(this),initToolbarOnScroll:Toolbar.initToolbarOnScroll.bind(this),init:Toolbar.init.bind(this)}})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove:function(e){e.$el[0].f7ScrollToolbarHandler&&e.$el.off("scroll",".page-content",e.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn:function(e){var t=e.$el.parents(".view").children(".toolbar");0===t.length&&(t=e.$el.parents(".views").children(".tabbar, .tabbar-labels")),0===t.length&&(t=e.$el.find(".toolbar")),0!==t.length&&(e.$el.hasClass("no-toolbar")?this.toolbar.hide(t):this.toolbar.show(t))},pageInit:function(e){var t=this;if(e.$el.find(".tabbar, .tabbar-labels").each((function(e,a){t.toolbar.init(a)})),t.params.toolbar.hideOnPageScroll||e.$el.find(".hide-toolbar-on-scroll").length||e.$el.hasClass("hide-toolbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll")){if(e.$el.find(".keep-toolbar-on-scroll").length||e.$el.hasClass("keep-toolbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))return;t.toolbar.initToolbarOnScroll(e.el)}},init:function(){var e=this;e.root.find(".tabbar, .tabbar-labels").each((function(t,a){e.toolbar.init(a)}))}},vnode:{tabbar:{insert:function(e){this.toolbar.init(e.elm)}}}},Subnavbar={name:"subnavbar",on:{pageInit:function(e){e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar"),e.$el.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar")}}},TouchRipple=function(e,t,a){var r=this;if(e){var n=e[0].getBoundingClientRect(),o=t-n.left,i=a-n.top,s=n.width,l=n.height,c=Math.max(Math.pow(Math.pow(l,2)+Math.pow(s,2),.5),48);return r.$rippleWaveEl=$('<div class="ripple-wave" style="width: '+c+"px; height: "+c+"px; margin-top:-"+c/2+"px; margin-left:-"+c/2+"px; left:"+o+"px; top:"+i+'px;"></div>'),e.prepend(r.$rippleWaveEl),r.rippleTransform="translate3d("+(s/2-o)+"px, "+(l/2-i)+"px, 0) scale(1)",Utils.nextFrame((function(){r&&r.$rippleWaveEl&&r.$rippleWaveEl.transform(r.rippleTransform)})),r}};TouchRipple.prototype.destroy=function(){var e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null},TouchRipple.prototype.remove=function(){var e=this;if(!e.removing){var t=this.$rippleWaveEl,a=this.rippleTransform,r=Utils.nextTick((function(){e.destroy()}),400);e.removing=!0,t.addClass("ripple-wave-fill").transform(a.replace("scale(1)","scale(1.01)")).transitionEnd((function(){clearTimeout(r),Utils.nextFrame((function(){t.addClass("ripple-wave-out").transform(a.replace("scale(1)","scale(1.01)")),r=Utils.nextTick((function(){e.destroy()}),700),t.transitionEnd((function(){clearTimeout(r),e.destroy()}))}))}))}};var TouchRipple$1={name:"touch-ripple",static:{TouchRipple:TouchRipple},create:function(){this.touchRipple={create:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(TouchRipple,[null].concat(e)))}}}},openedModals=[],dialogsQueue=[];function clearDialogsQueue(){0!==dialogsQueue.length&&dialogsQueue.shift().open()}var Modal=function(e){function t(t,a){e.call(this,a,[t]);var r={};return this.useModulesParams(r),this.params=Utils.extend(r,a),this.opened=!1,this.useModules(),this}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.onOpen=function(){this.opened=!0,openedModals.push(this),$("html").addClass("with-modal-"+this.type.toLowerCase()),this.$el.trigger("modal:open "+this.type.toLowerCase()+":open"),this.emit("local::open modalOpen "+this.type+"Open",this)},t.prototype.onOpened=function(){this.$el.trigger("modal:opened "+this.type.toLowerCase()+":opened"),this.emit("local::opened modalOpened "+this.type+"Opened",this)},t.prototype.onClose=function(){this.opened=!1,this.type&&this.$el&&(openedModals.splice(openedModals.indexOf(this),1),$("html").removeClass("with-modal-"+this.type.toLowerCase()),this.$el.trigger("modal:close "+this.type.toLowerCase()+":close"),this.emit("local::close modalClose "+this.type+"Close",this))},t.prototype.onClosed=function(){this.type&&this.$el&&(this.$el.removeClass("modal-out"),this.$el.hide(),this.$el.trigger("modal:closed "+this.type.toLowerCase()+":closed"),this.emit("local::closed modalClosed "+this.type+"Closed",this))},t.prototype.open=function(e){var t,a=this,r=a.app,n=a.$el,o=a.$backdropEl,i=a.type,s=!0;if(void 0!==e?s=e:void 0!==a.params.animate&&(s=a.params.animate),!n||n.hasClass("modal-in"))return a;if("dialog"===i&&r.params.modal.queueDialogs&&($(".dialog.modal-in").length>0?t=!0:openedModals.length>0&&openedModals.forEach((function(e){"dialog"===e.type&&(t=!0)})),t))return dialogsQueue.push(a),a;var l=n.parent(),c=n.parents(doc).length>0;function u(){n.hasClass("modal-out")?a.onClosed():n.hasClass("modal-in")&&a.onOpened()}return r.params.modal.moveToRoot&&!l.is(r.root)&&(r.root.append(n),a.once(i+"Closed",(function(){c?l.append(n):n.remove()}))),n.show(),a._clientLeft=n[0].clientLeft,s?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),n.animationEnd((function(){u()})),n.transitionEnd((function(){u()})),n.removeClass("modal-out not-animated").addClass("modal-in"),a.onOpen()):(o&&o.addClass("backdrop-in not-animated"),n.removeClass("modal-out").addClass("modal-in not-animated"),a.onOpen(),a.onOpened()),a},t.prototype.close=function(e){var t=this,a=t.$el,r=t.$backdropEl,n=!0;if(void 0!==e?n=e:void 0!==t.params.animate&&(n=t.params.animate),!a||!a.hasClass("modal-in"))return dialogsQueue.indexOf(t)>=0&&dialogsQueue.splice(dialogsQueue.indexOf(t),1),t;if(r){var o=!0;"popup"===t.type&&t.$el.prevAll(".popup.modal-in").each((function(e,a){var r=a.f7Modal;r&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl===t.backdropEl&&(o=!1)})),o&&(r[n?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}function i(){a.hasClass("modal-out")?t.onClosed():a.hasClass("modal-in")&&t.onOpened()}return a[n?"removeClass":"addClass"]("not-animated"),n?(a.animationEnd((function(){i()})),a.transitionEnd((function(){i()})),a.removeClass("modal-in").addClass("modal-out"),t.onClose()):(a.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),t.onClose(),t.onClosed()),"dialog"===t.type&&clearDialogsQueue(),t},t.prototype.destroy=function(){this.destroyed||(this.emit("local::beforeDestroy modalBeforeDestroy "+this.type+"BeforeDestroy",this),this.$el&&(this.$el.trigger("modal:beforedestroy "+this.type.toLowerCase()+":beforedestroy"),this.$el.length&&this.$el[0].f7Modal&&delete this.$el[0].f7Modal),Utils.deleteProps(this),this.destroyed=!0)},t}(Framework7Class),CustomModal=function(e){function t(t,a){var r=Utils.extend({backdrop:!0,closeByBackdropClick:!0,on:{}},a);e.call(this,t,r);var n,o,i=this;if(i.params=r,(n=i.params.el?$(i.params.el):$(i.params.content))&&n.length>0&&n[0].f7Modal)return n[0].f7Modal;if(0===n.length)return i.destroy();function s(e){i&&!i.destroyed&&o&&e.target===o[0]&&i.close()}return i.params.backdrop&&0===(o=t.root.children(".custom-modal-backdrop")).length&&(o=$('<div class="custom-modal-backdrop"></div>'),t.root.append(o)),i.on("customModalOpened",(function(){i.params.closeByBackdropClick&&i.params.backdrop&&t.on("click",s)})),i.on("customModalClose",(function(){i.params.closeByBackdropClick&&i.params.backdrop&&t.off("click",s)})),Utils.extend(i,{app:t,$el:n,el:n[0],$backdropEl:o,backdropEl:o&&o[0],type:"customModal"}),n[0].f7Modal=i,i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Modal),Modal$1={name:"modal",static:{Modal:Modal,CustomModal:CustomModal},create:function(){var e=this;e.customModal={create:function(t){return new CustomModal(e,t)}}},params:{modal:{moveToRoot:!0,queueDialogs:!0}}};return"undefined"!=typeof window&&(window.Template7||(window.Template7=Template7),window.Dom7||(window.Dom7=$)),Router.use([RouterTemplateLoaderModule,RouterComponentLoaderModule]),Framework7.use([DeviceModule,SupportModule,UtilsModule,ResizeModule,RequestModule,TouchModule,ClicksModule,RouterModule,HistoryModule,ComponentModule,ServiceWorkerModule,Statusbar$1,View$1,Navbar$1,Toolbar$1,Subnavbar,TouchRipple$1,Modal$1]),Framework7}));
//# sourceMappingURL=framework7.min.js.map
|
!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"c1e5ba07"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/React-Portfolio/",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpreact-portfolio"]=this["webpackJsonpreact-portfolio"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
//# sourceMappingURL=runtime-main.9f45a1f1.js.map
|
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
body: {
display: 'flex',
alignContent: 'center',
alignItems: 'center'
},
exposure: {
height: 200
}
})
export default styles;
|
'use strict';
// gallery
(function () {
function toggleLogo() {
logos[lastLogoIdx].classList.toggle('selected');
}
var logos = document.querySelectorAll('.logos img'),
lastLogoIdx = 0;
// init
toggleLogo();
// loop
setInterval(function () {
toggleLogo();
lastLogoIdx = (lastLogoIdx + 1) % logos.length;
toggleLogo();
}, 1000);
})();
|
import fetchWrap from '@/utils/fetch';
import queryString from 'query-string';
// GET /projects/{projectId}/study-areas http://bit.ly/2DIvx4f
const getProjectStudyAreas = async id => {
const res = await fetchWrap({
url: `/api/v1/projects/${id}/study-areas`,
method: 'GET',
});
return res;
};
// POST /projects/{projectId}/study-areas http://bit.ly/2IVnbu7
const postProjectStudyAreas = async (id, body) => {
const res = await fetchWrap({
url: `/api/v1/projects/${id}/study-areas`,
method: 'POST',
body,
});
return res;
};
// PUT /projects/{projectId}/study-areas/
const putProjectStudyAreas = async (id, body, areaId) => {
const res = await fetchWrap({
url: `/api/v1/projects/${id}/study-areas/${areaId}`,
method: 'PUT',
body,
});
return res;
};
// GET /projects/{projectId}/study-areas/{studyAreaId}/camera-locations http://bit.ly/2V8eUK0
const getProjectCameraLocations = async (projectId, StudyAreaId) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/study-areas/${StudyAreaId}/camera-locations`,
method: 'GET',
});
return res;
};
const getAllProjectCameraLocations = async (
projectId,
studyAreaId,
query,
items = [],
) => {
/*
Fetch all camera locations.
@param projectId {String}
@param studyAreaId {String}
@param query {Object}
index {Number} Please pass 0 or not for the first call.
size {Number}
sort {String}
@param items {Array<CameraLocation>} For recursive
@returns {Promise<Object>}
*/
const result = await fetchWrap({
method: 'GET',
url: `/api/v1/projects/${projectId}/study-areas/${studyAreaId}/camera-locations?${queryString.stringify(
query,
)}`,
});
result.items.forEach(x => items.push(x));
const hasNext = (result.index + 1) * result.size < result.total;
if (hasNext) {
await getAllProjectCameraLocations(
projectId,
studyAreaId,
{ ...query, index: result.index + 1 },
items,
);
}
return { ...result, items };
};
// POST /projects/{projectId}/study-areas/{studyAreaId}/camera-locations http://bit.ly/2UXxQGA
const postProjectCameraLocations = async (projectId, StudyAreaId, body) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/study-areas/${StudyAreaId}/camera-locations`,
method: 'POST',
body,
});
return res;
};
// PUT /projects/{projectId}/camera-locations/{cameraLocationId} http://bit.ly/2HoimaO
const putProjectCameraLocations = async (projectId, cameraLocationId, body) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/camera-locations/${cameraLocationId}`,
method: 'PUT',
body,
});
return res;
};
// DELETE /projects/{projectId}/camera-locations/{camera-locationId} http://bit.ly/2vt6MEK
const deleteProjectCameraLocations = async (projectId, cameraLocationId) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/camera-locations/${cameraLocationId}`,
method: 'DELETE',
});
return res;
};
const getProjectCameraLocationsByName = async (
projectId,
cameraLocationName,
) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/camera-locations?name=${cameraLocationName}`,
method: 'GET',
});
return res;
};
const lockProjectCameraLocations = async (projectId, cameraLocationId) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/camera-locations/${cameraLocationId}/_lock`,
method: 'POST',
});
return res;
};
const unlockProjectCameraLocations = async (projectId, cameraLocationId) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/camera-locations/${cameraLocationId}/_unlock`,
method: 'POST',
});
return res;
};
const getSpeciesGroupByStudyArea = async projectId => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/species-time-series`,
method: 'GET',
});
return res;
};
const getSpeciesGroupByCameraLocation = async ({ projectId, studyAreaId }) => {
const res = await fetchWrap({
url: `/api/v1/projects/${projectId}/study-areas/${studyAreaId}/species-time-series`,
method: 'GET',
});
return res;
};
export {
getProjectStudyAreas,
getAllProjectCameraLocations,
postProjectStudyAreas,
putProjectStudyAreas,
getProjectCameraLocations,
postProjectCameraLocations,
putProjectCameraLocations,
deleteProjectCameraLocations,
getProjectCameraLocationsByName,
lockProjectCameraLocations,
unlockProjectCameraLocations,
getSpeciesGroupByStudyArea,
getSpeciesGroupByCameraLocation,
};
|
import chai from 'chai';
import chaiHttp from 'chai-http';
import server from '../../../index';
import mockData from './mockData';
chai.use(chaiHttp);
const expect = chai.expect;
let usertoken;
let userAdmintoken;
describe('After Authentifications',() =>{
before((done) => {
// signin and get an access token
chai.request(server)
.post('/api/v1/auth/signin')
.set('Accept', 'application/json')
.set('Content-type', 'application/x-www-form-urlencoded')
.send(mockData.signin[0])
.then(res => {
userAdmintoken = res.body.data.token;
done();
});
});
before((done) => {
// signup and get an access token
chai.request(server)
.post('/api/v1/auth/signup')
.set('Accept', 'application/json')
.set('Content-type', 'application/x-www-form-urlencoded')
.send(mockData.signup[2])
.then(res => {
usertoken = res.body.data.token;
done()
});
});
before((done) => {
// mentor users
chai.request(server)
.patch(`/api/v1/user/${3}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.then(res => {
done()
});
});
describe('Change user to Mentor',() =>{
it('Should return an error with a 401 status when the user is not authenticated',(done) =>{
chai.request(server)
.patch(`/api/v1/user/${1}`)
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(401)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an object with a message and 200 status when admin change user to mentor',(done) =>{
chai.request(server)
.patch(`/api/v1/user/${1}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('message');
done();
});
});
it('Should return an object message with status 200 to set admin', (done) => {
chai.request(server)
.patch(`/api/v1/auth/${2}/setadmin`)
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('message');
done();
})
});
it('Should return an object with a error and 403 status when a no admin change user to mentor',(done) =>{
chai.request(server)
.patch(`/api/v1/user/${1}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(403)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an object with a error and 404 status when admin change user to mentor but user is not found',(done) =>{
chai.request(server)
.patch(`/api/v1/user/${10}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(404)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
});
describe('Remove Mentor',() =>{
it('Should return an error with a 401 status when the user is not authenticated',(done) =>{
chai.request(server)
.patch(`/api/v1/mentor/${1}`)
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(401)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an object with a message and 200 status when admin remove a mentor', (done) =>{
chai.request(server)
.patch(`/api/v1/mentor/${1}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('message');
done();
});
});
it('Should return an object with a message and 403 status when a no admin remove a mentor', (done) =>{
chai.request(server)
.patch(`/api/v1/mentor/${1}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(403)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an object with a message and 404 status when a admin remove a mentor but mentor is not found', (done) =>{
chai.request(server)
.patch(`/api/v1/mentor/${10}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(404)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
});
describe('Get all mentors',() => {
it('Should return an error with a 401 status when the user is not authenticated',(done) =>{
chai.request(server)
.get('/api/v1/mentors')
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(401)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an object with a message and 200 to get all mentors',(done) =>{
chai.request(server)
.get('/api/v1/mentors')
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('data');
// needed for next test
chai.request(server)
.patch(`/api/v1/mentor/${3}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.then(res => {});
done();
});
});
it('Should return an object with a error and 404 to get all mentors but no one found ',(done) =>{
chai.request(server)
.get('/api/v1/mentors')
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(404)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
// usefull for next test
chai.request(server)
.patch(`/api/v1/user/${3}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.then(res => {});
done();
});
});
});
describe('Get specific mentor',() =>{
it('Should return an error with a 401 status when the user is not authenticated',(done) =>{
chai.request(server)
.get(`/api/v1/mentors/${3}`)
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(401)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an message with a 200 status to get a specific mentor',(done) =>{
chai.request(server)
.get(`/api/v1/mentors/${3}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('data');
done();
});
});
it('Should return an error with a 404 status to get a specific mentor but the user found is not a mentor',(done) =>{
chai.request(server)
.get(`/api/v1/mentors/${2}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(404)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return an error with a 404 status to get a specific mentor but the mentor is not found',(done) =>{
chai.request(server)
.get(`/api/v1/mentors/${20}`)
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(404)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
});
describe('Get all admin',() =>{
it('Should return an error with a 401 status when the user is not authenticated',(done) =>{
chai.request(server)
.get('/api/v1/admins/')
.set('Accept', 'application/json')
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(401)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
it('Should return a message with a 200 status when a admin need to get all other admins ',(done) =>{
chai.request(server)
.get('/api/v1/admins/')
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${userAdmintoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(200)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('data');
done();
});
});
it('Should return an error with a 404 status when a no admin need to get all admins ',(done) =>{
chai.request(server)
.get('/api/v1/admins/')
.set('Accept', 'application/json')
.set('Authorization', `Bearer ${usertoken}`)
.end((err, res) => {
if (err) done(err);
expect(res).to.have.status(403)
expect(res.body).to.be.an('object')
expect(res.body).to.have.property('error');
done();
});
});
});
});
|
import React from 'react';
import * as PropTypes from 'prop-types';
import { Button, Dropdown } from 'antd';
const ButtonDropdown = ({
overlay,
...buttonProps
}) => <Dropdown overlay={overlay} placement="bottomLeft" trigger={['click']}>
<Button {...buttonProps} />
</Dropdown>;
ButtonDropdown.propTypes = {
overlay: PropTypes.object.isRequired
};
export default ButtonDropdown;
|
/**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
suite('Abstract Fields', function() {
suite('Is Serializable', function() {
// Both EDITABLE and SERIALIZABLE are default.
function FieldDefault() {
this.name = 'NAME';
}
FieldDefault.prototype = Object.create(Blockly.Field.prototype);
// EDITABLE is false and SERIALIZABLE is default.
function FieldFalseDefault() {
this.name = 'NAME';
}
FieldFalseDefault.prototype = Object.create(Blockly.Field.prototype);
FieldFalseDefault.prototype.EDITABLE = false;
// EDITABLE is default and SERIALIZABLE is true.
function FieldDefaultTrue() {
this.name = 'NAME';
}
FieldDefaultTrue.prototype = Object.create(Blockly.Field.prototype);
FieldDefaultTrue.prototype.SERIALIZABLE = true;
// EDITABLE is false and SERIALIZABLE is true.
function FieldFalseTrue() {
this.name = 'NAME';
}
FieldFalseTrue.prototype = Object.create(Blockly.Field.prototype);
FieldFalseTrue.prototype.EDITABLE = false;
FieldFalseTrue.prototype.SERIALIZABLE = true;
/* Test Backwards Compatibility */
test('Editable Default(true), Serializable Default(false)', function() {
// An old default field should be serialized.
var field = new FieldDefault();
var stub = sinon.stub(console, 'warn');
assertEquals(true, field.isSerializable());
chai.assert(stub.calledOnce);
stub.restore();
});
test('Editable False, Serializable Default(false)', function() {
// An old non-editable field should not be serialized.
var field = new FieldFalseDefault();
assertEquals(false, field.isSerializable());
});
/* Test Other Cases */
test('Editable Default(true), Serializable True', function() {
// A field that is both editable and serializable should be serialized.
var field = new FieldDefaultTrue();
assertEquals(true, field.isSerializable());
});
test('Editable False, Serializable True', function() {
// A field that is not editable, but overrides serializable to true
// should be serialized (e.g. field_label_serializable)
var field = new FieldFalseTrue();
assertEquals(true, field.isSerializable());
});
});
suite('setValue', function() {
function addSpies(field) {
if (!this.isSpying) {
sinon.spy(field, 'doValueInvalid_');
sinon.spy(field, 'doValueUpdate_');
sinon.spy(field, 'forceRerender');
this.isSpying = true;
}
}
function removeSpies(field) {
if (this.isSpying) {
field.doValueInvalid_.restore();
field.doValueUpdate_.restore();
field.forceRerender.restore();
this.isSpying = false;
}
}
setup(function() {
this.field = new Blockly.Field();
this.field.isDirty_ = false;
this.cachedDoClassValidation = this.field.doClassValidation_;
this.cachedDoValueUpdate = this.field.doValueUpdate_;
this.cachedDoValueInvalid = this.field.doValueInvalid_;
});
teardown(function() {
removeSpies(this.field);
this.field.doClassValidation_ = this.cachedDoClassValidation;
this.field.doValueUpdate_ = this.cachedDoValueUpdate;
this.field.doValueInvalid_ = this.cachedDoValueInvalid;
this.field.setValidator(null);
});
test('Null', function() {
addSpies(this.field);
this.field.setValue(null);
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('No Validators, Dirty (Default)', function() {
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.calledOnce);
});
test('No Validators, Not Dirty', function() {
this.field.doValueUpdate_ = function(newValue) {
this.value_ = newValue;
this.isDirty_ = false;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.notCalled);
});
test('Class Validator Returns Invalid, Not Dirty (Default)', function() {
this.field.doClassValidation_ = function() {
return null;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('Class Validator Returns Invalid, Dirty', function() {
this.field.doClassValidation_ = function() {
return null;
};
this.field.doValueInvalid_ = function() {
this.isDirty_ = true;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.calledOnce);
});
test('Class Validator Returns Valid, Not Dirty', function() {
this.field.doClassValidation_ = function(newValue) {
return newValue;
};
this.field.doValueUpdate_ = function() {
this.isDirty_ = false;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.notCalled);
});
test('Class Validator Returns Valid, Dirty (Default)', function() {
this.field.doClassValidation_ = function(newValue) {
return newValue;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.calledOnce);
});
test('Local Validator Returns Invalid, Not Dirty (Default)', function() {
this.field.setValidator(function() {
return null;
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('Local Validator Returns Invalid, Dirty', function() {
this.field.setValidator(function() {
return null;
});
this.field.doValueInvalid_ = function() {
this.isDirty_ = true;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.calledOnce);
});
test('Local Validator Returns Valid, Not Dirty', function() {
this.field.setValidator(function(newValue) {
return newValue;
});
this.field.doValueUpdate_ = function() {
this.isDirty_ = false;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.notCalled);
});
test('Local Validator Returns Valid, Dirty (Default)', function() {
this.field.setValidator(function(newValue) {
return newValue;
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
chai.assert(this.field.forceRerender.calledOnce);
});
test('New Value Matches Old Value', function() {
this.field.setValue('value');
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('New Value (Class)Validates to Old Value', function() {
this.field.setValue('value');
this.field.doClassValidation_ = function() {
return 'value';
};
addSpies(this.field);
this.field.setValue('notValue');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('New Value (Local)Validates to Old Value', function() {
this.field.setValue('value');
this.field.setValidator(function() {
return 'value';
});
addSpies(this.field);
this.field.setValue('notValue');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.notCalled);
chai.assert(this.field.forceRerender.notCalled);
});
test('New Value (Class)Validates to not Old Value', function() {
this.field.setValue('value');
this.field.doClassValidation_ = function() {
return 'notValue';
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('New Value (Local)Validates to not Old Value', function() {
this.field.setValue('value');
this.field.setValidator(function() {
return 'notValue';
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Class Validator Returns Null', function() {
this.field.doClassValidation_ = function() {
return null;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
});
test('Class Validator Returns Same', function() {
this.field.doClassValidation_ = function(newValue) {
return newValue;
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Class Validator Returns Different', function() {
this.field.doClassValidation_ = function() {
return 'differentValue';
};
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Class Validator Returns Undefined', function() {
this.field.doClassValidation_ = function() {};
addSpies(this.field);
this.field.setValue('value');
chai.assert.equal(this.field.getValue(), 'value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Local Validator Returns Null', function() {
this.field.setValidator(function() {
return null;
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.calledOnce);
chai.assert(this.field.doValueUpdate_.notCalled);
});
test('Local Validator Returns Same', function() {
this.field.setValidator(function(newValue) {
return newValue;
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Local Validator Returns Different', function() {
this.field.setValidator(function() {
return 'differentValue';
});
addSpies(this.field);
this.field.setValue('value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
test('Local Validator Returns Undefined', function() {
this.field.setValidator(function() {});
addSpies(this.field);
this.field.setValue('value');
chai.assert.equal(this.field.getValue(), 'value');
chai.assert(this.field.doValueInvalid_.notCalled);
chai.assert(this.field.doValueUpdate_.calledOnce);
});
});
suite('Customization', function() {
// All this field does is wrap the abstract field.
function CustomField(opt_config) {
CustomField.superClass_.constructor.call(
this, 'value', null, opt_config);
}
Blockly.utils.object.inherits(CustomField, Blockly.Field);
CustomField.fromJson = function(options) {
return new CustomField(options);
};
suite('Tooltip', function() {
test('JS Constructor', function() {
var field = new Blockly.Field('value', null, {
tooltip: 'test tooltip',
});
chai.assert.equal(field.tooltip_, 'test tooltip');
});
test('JS Constructor - Dynamic', function() {
var returnTooltip = function() {
return 'dynamic tooltip text';
};
var field = new Blockly.Field('value', null, {
tooltip: returnTooltip
});
chai.assert.equal(field.tooltip_, returnTooltip);
});
test('JSON Definition', function() {
var field = CustomField.fromJson({
tooltip: "test tooltip"
});
chai.assert.equal(field.tooltip_, 'test tooltip');
});
suite('W/ Msg References', function() {
setup(function() {
Blockly.Msg['TOOLTIP'] = 'test tooltip';
});
teardown(function() {
delete Blockly.Msg['TOOLTIP'];
});
test('JS Constructor', function() {
var field = new Blockly.Field('value', null, {
tooltip: '%{BKY_TOOLTIP}',
});
chai.assert.equal(field.tooltip_, 'test tooltip');
});
test('JSON Definition', function() {
var field = CustomField.fromJson({
tooltip: "%{BKY_TOOLTIP}"
});
chai.assert.equal(field.tooltip_, 'test tooltip');
});
});
suite('setTooltip', function() {
setup(function() {
this.workspace = new Blockly.WorkspaceSvg({});
this.workspace.createDom();
});
teardown(function() {
this.workspace = null;
});
test('Before Append', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
field.setTooltip('tooltip');
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, 'tooltip');
delete Blockly.Blocks['tooltip'];
});
test('After Append', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
field.setTooltip('tooltip');
},
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, 'tooltip');
delete Blockly.Blocks['tooltip'];
});
test('After Block Creation', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
field.setTooltip('tooltip');
chai.assert.equal(field.getClickTarget_().tooltip, 'tooltip');
delete Blockly.Blocks['tooltip'];
});
test('Dynamic Function', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
field.setTooltip(this.tooltipFunc);
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
tooltipFunc: function() {
return this.getFieldValue('TOOLTIP');
}
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, block.tooltipFunc);
delete Blockly.Blocks['tooltip'];
});
test('Element', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
field.setTooltip(this.element);
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
element: {
tooltip: 'tooltip'
}
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, block.element);
delete Blockly.Blocks['tooltip'];
});
test('Null', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
field.setTooltip(null);
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, block);
delete Blockly.Blocks['tooltip'];
});
test('Undefined', function() {
Blockly.Blocks['tooltip'] = {
init: function() {
var field = new Blockly.FieldTextInput('default');
this.appendDummyInput()
.appendField(field, 'TOOLTIP');
},
};
var block = Blockly.Xml.domToBlock(Blockly.Xml.textToDom(
'<xml xmlns="https://developers.google.com/blockly/xml">' +
' <block type="tooltip"></block>' +
'</xml>'
).children[0], this.workspace);
var field = block.getField('TOOLTIP');
chai.assert.equal(field.getClickTarget_().tooltip, block);
delete Blockly.Blocks['tooltip'];
});
});
});
});
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{144:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return a})),r.d(t,"metadata",(function(){return s})),r.d(t,"rightToc",(function(){return c})),r.d(t,"default",(function(){return p}));var n=r(2),o=r(9),i=(r(0),r(326)),a={id:"index",title:"Overview"},s={id:"version-v0.1/self-service/flows/index",title:"Overview",description:"ORY Kratos allows end-users to sign up, log in, log out, update profile",source:"@site/versioned_docs/version-v0.1/self-service/flows/index.md",permalink:"/kratos/docs/v0.1/self-service/flows/index",editUrl:"https://github.com/ory/kratos/edit/master/docs/versioned_docs/version-v0.1/self-service/flows/index.md",version:"v0.1",lastUpdatedBy:"hackerman",lastUpdatedAt:1588432565,sidebar:"version-v0.1/docs",previous:{title:"Threat Models and Security Profiles",permalink:"/kratos/docs/v0.1/concepts/security"},next:{title:"User Login and User Registration",permalink:"/kratos/docs/v0.1/self-service/flows/user-login-user-registration"}},c=[{value:"Network Flows for Browsers",id:"network-flows-for-browsers",children:[]}],l={rightToc:c};function p(e){var t=e.components,r=Object(o.a)(e,["components"]);return Object(i.b)("wrapper",Object(n.a)({},l,r,{components:t,mdxType:"MDXLayout"}),Object(i.b)("p",null,'ORY Kratos allows end-users to sign up, log in, log out, update profile\ninformation, recover accounts, and perform other important account management\ntasks without third party involvement ("self-service").'),Object(i.b)("p",null,"The opposite to self-service management is someone using administrative\nprivileges to create, update, or delete accounts."),Object(i.b)("h2",{id:"network-flows-for-browsers"},"Network Flows for Browsers"),Object(i.b)("p",null,"All Self-Service Flows such as ",Object(i.b)("a",Object(n.a)({parentName:"p"},{href:"./user-login.md"}),"User Login"),",\n",Object(i.b)("a",Object(n.a)({parentName:"p"},{href:"./user-login-user-registration.mdx"}),"User Registration"),",\n",Object(i.b)("a",Object(n.a)({parentName:"p"},{href:"/kratos/docs/v0.1/self-service/flows/user-profile-management"}),"Profile Management")," use the same template:"),Object(i.b)("ol",null,Object(i.b)("li",{parentName:"ol"},"The Browser makes an HTTP request to the flow's initialization endpoint (e.g.\n",Object(i.b)("inlineCode",{parentName:"li"},"/auth/browser/login"),");"),Object(i.b)("li",{parentName:"ol"},"The initialization endpoint processes data and associates it with a request\nID and redirects the browser to the flow's configured UI URL (e.g.\n",Object(i.b)("inlineCode",{parentName:"li"},"urls.login_ui"),"), appending the request ID as the ",Object(i.b)("inlineCode",{parentName:"li"},"request")," URL Query\nParameter;"),Object(i.b)("li",{parentName:"ol"},"The endpoint responsible for the UI URL uses the ",Object(i.b)("inlineCode",{parentName:"li"},"request")," URL Query\nParameter (e.g. ",Object(i.b)("inlineCode",{parentName:"li"},"http://my-app/auth/login?request=abcde"),") to fetch the data\npreviously associated with the Request ID from either ORY Kratos's Public or\nAdmin API."),Object(i.b)("li",{parentName:"ol"},"The UI endpoint renders the fetched data in any way it sees it fit. The flow\nis typically completed by the browser making another request to one of ORY\nKratos' endpoints, which is usually described in the fetched request data.")))}p.isMDXComponent=!0},326:function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return b}));var n=r(0),o=r.n(n);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=o.a.createContext({}),p=function(e){var t=o.a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):s(s({},t),e)),r},u=function(e){var t=p(e.components);return o.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},f=o.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,i=e.originalType,a=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),u=p(r),f=n,b=u["".concat(a,".").concat(f)]||u[f]||d[f]||i;return r?o.a.createElement(b,s(s({ref:t},l),{},{components:r})):o.a.createElement(b,s({ref:t},l))}));function b(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=r.length,a=new Array(i);a[0]=f;var s={};for(var c in t)hasOwnProperty.call(t,c)&&(s[c]=t[c]);s.originalType=e,s.mdxType="string"==typeof e?e:n,a[1]=s;for(var l=2;l<i;l++)a[l]=r[l];return o.a.createElement.apply(null,a)}return o.a.createElement.apply(null,r)}f.displayName="MDXCreateElement"}}]);
|
$(document).ready(function(e){
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
Inputmask({"mask":"9999-9999","clearIncomplete":true}).mask(".telefono");
Inputmask({"mask":"99999999-9","clearIncomplete":true}).mask(".dui");
Inputmask({"mask":"9999-999999-999-9","clearIncomplete":true}).mask(".nit");
$(".chosen-select").chosen({'width': "100%"});
$('.fecha').datepicker({
format: 'dd/mm/yyyy',
minDate: "-60Y",
maxDate: "-18Y",
language:'es',
autoclose:true
});
/* $(".form-control").on("keypress", function () {
$input=$(this);
setTimeout(function () {
$input.val($input.val().toUpperCase());
},50);
})
*/
//reporte de iva por pagar
$(document).on("click",".ivapagar",function(e){
e.preventDefault();
$("#modal_reporte_iva").modal("show");
});
//reporte de trabajos a vehiculos
$(document).on("click",".reportevehiculo",function(e){
e.preventDefault();
$("#modal_reporte_carro").modal("show");
});
//busqueda de documento
$(document).on("click",".busqueda_modal",function(e){
e.preventDefault();
let type=$(this).attr('data-type');
let text=$(this).attr('data-text');
$("#eltype").val(type);
$("#exampleModalLabel2").text(text);
$("#modal_buscar").modal("show");
});
//buscar tipo documento
$(document).on("submit","#form_buscadoc",function(e){
e.preventDefault();
var numero=$("#numerodoc").val();
var dominio = window.location.host;
let formulario=$("#form_buscadoc").serialize();
if(numero!=''){
$.ajax({
url:'/busqueda',
type:'get',
dataType:'json',
data:formulario,
success: function(json){
if(json[0]==1){
if(json[1]!=null){
toastr.success("Documento encontrado");
location.href=json[2];
}else{
toastr.error("Documento no encontrado");
}
}
}
});
}else{
toastr.error("Digite el número para buscar");
}
});
//buscar la placa
$(document).on("submit","#form_buscaplaca",function(e){
e.preventDefault();
var placa=$("#laplaquita").val();
var dominio = window.location.host;
var url='/vehiculos/porplaca';
if(placa!=''){
$.ajax({
url:url,
type:'get',
dataType:'json',
data:{placa},
success: function(json){
if(json[0]==1){
if(json[1]!=null){
//location.href='vehiculos/historial/'+placa;
var dominio2 = window.location.host;
/*window.open(
'http://'+dominio2+'/'+carpeta()+'/public/vehiculos/historial/'+json[1].id,
'_blank' // <- This is what makes it open in a new window.
);*/
$("#modal_reporte_carro").modal("hide");
var url = '/vehiculos/historial/'+json[1].id;
$('#verpdf').attr('src', url);
//$('#verpdf').reload();
$("#modal_pdf").modal("show");
}else{
toastr.error("Vehículo no encontrado");
}
}
}
});
}else{
toastr.info("Digite una placa para buscar");
}
});
//submit para reporte de iva por fecha
$(document).on("submit","#form_buscaiva",function(e){
e.preventDefault();
var fecha1=$("#fecha1").val();
var fecha2=$("#fecha2").val();
if(fecha1!='' && fecha2!=''){
var dominio = window.location.host;
/*window.open(
'http://'+dominio+'/'+carpeta()+'/public/ivaporventas?fecha1='+fecha1+'&fecha2='+fecha2,
'_blank' // <- This is what makes it open in a new window.
);*/
$("#modal_reporte_iva").modal("hide");
var url = '/ivaporventas?fecha1='+fecha1+'&fecha2='+fecha2;
$('#verpdf').attr('src', url);
//$('#verpdf').reload();
$("#modal_pdf").modal("show");
}
});
});
function modal_cargando(){
swal.fire({
title: 'Cargando!',
text: 'Este diálogo se cerrará al completar la operación.',
allowOutsideClick: false,
allowEscapeKey: false,
showConfirmButton: false,
onOpen: function () {
swal.showLoading()
}
});
}
function carpeta(){
var carpeta = window.location.href;
var nombre = carpeta.split("/");
return nombre[3];
}
|
(function(e){function c(c){for(var u,t,a=c[0],f=c[1],h=c[2],o=0,b=[];o<a.length;o++)t=a[o],Object.prototype.hasOwnProperty.call(d,t)&&d[t]&&b.push(d[t][0]),d[t]=0;for(u in f)Object.prototype.hasOwnProperty.call(f,u)&&(e[u]=f[u]);k&&k(c);while(b.length)b.shift()();return r.push.apply(r,h||[]),n()}function n(){for(var e,c=0;c<r.length;c++){for(var n=r[c],u=!0,t=1;t<n.length;t++){var a=n[t];0!==d[a]&&(u=!1)}u&&(r.splice(c--,1),e=f(f.s=n[0]))}return e}var u={},t={video:0},d={video:0},r=[];function a(e){return f.p+"js/"+({}[e]||e)+"."+{"chunk-1b4b33fe":"4e40c2e1","chunk-276396be":"0b02eb28","chunk-2a87004e":"ff541dd2","chunk-01d6fdf1":"ce3ef5a0","chunk-39b29c2e":"ea02cc84","chunk-3df0a26d":"d3eeed3f","chunk-2d0a47e0":"835389d5","chunk-2d0ac057":"cbcbfad4","chunk-2d0aecad":"441532af","chunk-2d0af0d9":"c4c69935","chunk-2d0b212c":"42480b26","chunk-2d0b3a0b":"add4d9bd","chunk-2d0b60e8":"8e570d8c","chunk-2d0be2f8":"c697cedc","chunk-2d20f719":"d1f3b9aa","chunk-2d22d768":"9861fb31","chunk-2d22dcfb":"1709be2c","chunk-397cbd7a":"4ec166d4","chunk-19cb06d7":"94b42215","chunk-cc62548a":"f8c50e9c","chunk-eba14f74":"115f0510","chunk-3a2dc82a":"c2357372","chunk-44599792":"ecd017a4","chunk-6f95ed28":"c53d0c85","chunk-716be4aa":"60c648cd","chunk-73394011":"789a3796","chunk-734d7fc7":"bf515f6f","chunk-b2e5ed0c":"0731f655","chunk-b3128e68":"eb5245cc","chunk-97846336":"d550c90e","chunk-74917cdf":"d2c7c81a","chunk-7722135a":"abd96246"}[e]+".js"}function f(c){if(u[c])return u[c].exports;var n=u[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,f),n.l=!0,n.exports}f.e=function(e){var c=[],n={"chunk-1b4b33fe":1,"chunk-2a87004e":1,"chunk-01d6fdf1":1,"chunk-39b29c2e":1,"chunk-3df0a26d":1,"chunk-397cbd7a":1,"chunk-19cb06d7":1,"chunk-cc62548a":1,"chunk-eba14f74":1,"chunk-3a2dc82a":1,"chunk-44599792":1,"chunk-6f95ed28":1,"chunk-716be4aa":1,"chunk-73394011":1,"chunk-734d7fc7":1,"chunk-b2e5ed0c":1,"chunk-b3128e68":1,"chunk-97846336":1,"chunk-74917cdf":1,"chunk-7722135a":1};t[e]?c.push(t[e]):0!==t[e]&&n[e]&&c.push(t[e]=new Promise((function(c,n){for(var u="css/"+({}[e]||e)+"."+{"chunk-1b4b33fe":"1b107b52","chunk-276396be":"31d6cfe0","chunk-2a87004e":"0b94f07b","chunk-01d6fdf1":"de4c909d","chunk-39b29c2e":"3099ce9c","chunk-3df0a26d":"fc5a88d6","chunk-2d0a47e0":"31d6cfe0","chunk-2d0ac057":"31d6cfe0","chunk-2d0aecad":"31d6cfe0","chunk-2d0af0d9":"31d6cfe0","chunk-2d0b212c":"31d6cfe0","chunk-2d0b3a0b":"31d6cfe0","chunk-2d0b60e8":"31d6cfe0","chunk-2d0be2f8":"31d6cfe0","chunk-2d20f719":"31d6cfe0","chunk-2d22d768":"31d6cfe0","chunk-2d22dcfb":"31d6cfe0","chunk-397cbd7a":"03bace51","chunk-19cb06d7":"4393e8f7","chunk-cc62548a":"17e0e9a2","chunk-eba14f74":"ff56286f","chunk-3a2dc82a":"68d0bcbc","chunk-44599792":"1b107b52","chunk-6f95ed28":"d6b580cb","chunk-716be4aa":"2a6b9c4e","chunk-73394011":"eb34518f","chunk-734d7fc7":"1ec36a86","chunk-b2e5ed0c":"fba5bb1e","chunk-b3128e68":"f726a2f7","chunk-97846336":"cf6e75e1","chunk-74917cdf":"daaf72bc","chunk-7722135a":"e074a31f"}[e]+".css",d=f.p+u,r=document.getElementsByTagName("link"),a=0;a<r.length;a++){var h=r[a],o=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(o===u||o===d))return c()}var b=document.getElementsByTagName("style");for(a=0;a<b.length;a++){h=b[a],o=h.getAttribute("data-href");if(o===u||o===d)return c()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=c,k.onerror=function(c){var u=c&&c.target&&c.target.src||d,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=u,delete t[e],k.parentNode.removeChild(k),n(r)},k.href=d;var i=document.getElementsByTagName("head")[0];i.appendChild(k)})).then((function(){t[e]=0})));var u=d[e];if(0!==u)if(u)c.push(u[2]);else{var r=new Promise((function(c,n){u=d[e]=[c,n]}));c.push(u[2]=r);var h,o=document.createElement("script");o.charset="utf-8",o.timeout=120,f.nc&&o.setAttribute("nonce",f.nc),o.src=a(e);var b=new Error;h=function(c){o.onerror=o.onload=null,clearTimeout(k);var n=d[e];if(0!==n){if(n){var u=c&&("load"===c.type?"missing":c.type),t=c&&c.target&&c.target.src;b.message="Loading chunk "+e+" failed.\n("+u+": "+t+")",b.name="ChunkLoadError",b.type=u,b.request=t,n[1](b)}d[e]=void 0}};var k=setTimeout((function(){h({type:"timeout",target:o})}),12e4);o.onerror=o.onload=h,document.head.appendChild(o)}return Promise.all(c)},f.m=e,f.c=u,f.d=function(e,c,n){f.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,c){if(1&c&&(e=f(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var u in e)f.d(n,u,function(c){return e[c]}.bind(null,u));return n},f.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="/",f.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],o=h.push.bind(h);h.push=c,h=h.slice();for(var b=0;b<h.length;b++)c(h[b]);var k=o;r.push([1,"chunk-vendors","chunk-common"]),n()})([]);
//# sourceMappingURL=video.dddec76c.js.map
|
/**
* Combine all reducers in this file and export the combined reducers.
*/
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import history from 'utils/history';
import globalReducer from 'containers/App/reducer';
import languageProviderReducer from 'containers/LanguageProvider/reducer';
import pingReducer from './store/features/reducer';
/**
* Merges the main reducer with the router state and dynamically injected reducers
*/
export default function createReducer(injectedReducers = {}) {
const rootReducer = combineReducers({
main: pingReducer,
global: globalReducer,
language: languageProviderReducer,
router: connectRouter(history),
...injectedReducers,
});
return rootReducer;
}
|
var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){var aa=function(a,b,c){return a.call.apply(a.bind,arguments)},ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},ca=function(a,b,c){ca=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return ca.apply(null,arguments)};var n=window,p=document,r=n.location,da=function(){},ea=/\[native code\]/,v=function(a,b,c){return a[b]=a[b]||c},fa=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1},ga=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},ha=/&/g,ia=/</g,ja=/>/g,ka=/"/g,la=/'/g,ma=function(a){return String(a).replace(ha,"&").replace(ia,"<").replace(ja,">").replace(ka,""").replace(la,"'")},w=function(){var a;if((a=Object.create)&&
ea.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},y=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},z=function(a){if(ea.test(Object.keys))return Object.keys(a);var b=[],c;for(c in a)y(a,c)&&b.push(c);return b},A=function(a,b){a=a||{};for(var c in a)y(a,c)&&(b[c]=a[c])},na=function(a){return function(){n.setTimeout(a,0)}},B=function(a,b){if(!a)throw Error(b||"");},C=v(n,"gapi",{});var D=function(a,b,c){var d=new RegExp("([#].*&|[#])"+b+"=([^&#]*)","g");b=new RegExp("([?#].*&|[?#])"+b+"=([^&#]*)","g");if(a=a&&(d.exec(a)||b.exec(a)))try{c=decodeURIComponent(a[2])}catch(e){}return c},oa=/^([^?#]*)(\?([^#]*))?(\#(.*))?$/,qa=function(a){a=a.match(oa);var b=w();b.J=a[1];b.query=a[3]?[a[3]]:[];b.o=a[5]?[a[5]]:[];return b},ra=function(a){return a.J+(0<a.query.length?"?"+a.query.join("&"):"")+(0<a.o.length?"#"+a.o.join("&"):"")},sa=function(a,b){var c=[];if(a)for(var d in a)if(y(a,
d)&&null!=a[d]){var e=b?b(a[d]):a[d];c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}return c},ta=function(a,b,c,d){a=qa(a);a.query.push.apply(a.query,sa(b,d));a.o.push.apply(a.o,sa(c,d));return ra(a)},ua=function(a,b){var c="";2E3<b.length&&(c=b.substring(2E3),b=b.substring(0,2E3));var d=a.createElement("div"),e=a.createElement("a");e.href=b;d.appendChild(e);d.innerHTML=d.innerHTML;b=String(d.firstChild.href);d.parentNode&&d.parentNode.removeChild(d);return b+c},va=/^https?:\/\/[^\/%\\?#\s]+\/[^\s]*$/i;var E=function(a,b,c,d){if(n[c+"EventListener"])n[c+"EventListener"](a,b,!1);else if(n[d+"tachEvent"])n[d+"tachEvent"]("on"+a,b)},wa=function(){var a=p.readyState;return"complete"===a||"interactive"===a&&-1==navigator.userAgent.indexOf("MSIE")},za=function(a){var b=xa;if(!wa())try{b()}catch(c){}ya(a)},ya=function(a){if(wa())a();else{var b=!1,c=function(){if(!b)return b=!0,a.apply(this,arguments)};n.addEventListener?(n.addEventListener("load",c,!1),n.addEventListener("DOMContentLoaded",c,!1)):n.attachEvent&&
(n.attachEvent("onreadystatechange",function(){wa()&&c.apply(this,arguments)}),n.attachEvent("onload",c))}},Aa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},Ba={button:!0,div:!0,span:!0};var H;H=v(n,"___jsl",w());v(H,"I",0);v(H,"hel",10);var I=function(a){return H.dpo?H.h:D(a,"jsh",H.h)},Ca=function(a){var b=v(H,"sws",[]);b.push.apply(b,a)},Da=function(a){return v(H,"watt",w())[a]},Ea=function(a){var b=v(H,"PQ",[]);H.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)},Fa=function(a){return v(v(H,"H",w()),a,w())};var J=v(H,"perf",w()),Ga=v(J,"g",w()),Ha=v(J,"i",w());v(J,"r",[]);w();w();var Ia=function(a,b,c){var d=J.r;"function"===typeof d?d(a,b,c):d.push([a,b,c])},K=function(a,b,c){Ga[a]=!b&&Ga[a]||c||(new Date).getTime();Ia(a)},L=function(a,b,c){b&&0<b.length&&(b=Ja(b),c&&0<c.length&&(b+="___"+Ja(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=v(Ha,"_p",w()),v(b,c,w())[a]=(new Date).getTime(),Ia(a,"_p",c))},Ja=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};var Ka=w(),M=[],N=function(a){throw Error("Bad hint"+(a?": "+a:""));};M.push(["jsl",function(a){for(var b in a)if(y(a,b)){var c=a[b];"object"==typeof c?H[b]=v(H,b,[]).concat(c):v(H,b,c)}if(b=a.u)a=v(H,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var La=/^(\/[a-zA-Z0-9_\-]+)+$/,Ma=/^[a-zA-Z0-9\-_\.,!]+$/,Na=/^gapi\.loaded_[0-9]+$/,Oa=/^[a-zA-Z0-9,._-]+$/,Sa=function(a,b,c,d){var e=a.split(";"),f=e.shift(),g=Ka[f],k=null;g?k=g(e,b,c,d):N("no hint processor for: "+f);k||N("failed to generate load url");b=k;c=b.match(Pa);(d=b.match(Qa))&&1===d.length&&Ra.test(b)&&c&&1===c.length||N("failed sanity: "+a);return k},Va=function(a,b,c,d){a=Ta(a);Na.test(c)||N("invalid_callback");b=Ua(b);d=d&&d.length?Ua(d):null;var e=function(a){return encodeURIComponent(a).replace(/%2C/g,
",")};return[encodeURIComponent(a.Z).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.H?"/am="+e(a.H):"",a.S?"/rs="+e(a.S):"",a.U?"/t="+e(a.U):"","/cb=",e(c)].join("")},Ta=function(a){"/"!==a.charAt(0)&&N("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))N("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=
b[d].split("="),g=decodeURIComponent(f[0]),k=decodeURIComponent(f[1]);2==f.length&&g&&k&&(a[g]=a[g]||k)}b="/"+c.join("/");La.test(b)||N("invalid_prefix");c=O(a,"k",!0);d=O(a,"am");e=O(a,"rs");a=O(a,"t");return{Z:b,version:c,H:d,S:e,U:a}},Ua=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");Oa.test(e)&&b.push(e)}return b.join(",")},O=function(a,b,c){a=a[b];!a&&c&&N("missing: "+b);if(a){if(Ma.test(a))return a;N("invalid: "+b)}return null},Ra=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,
Qa=/\/cb=/g,Pa=/\/\//g,Wa=function(){var a=I(r.href);if(!a)throw Error("Bad hint");return a};Ka.m=function(a,b,c,d){(a=a[0])||N("missing_hint");return"https://apis.google.com"+Va(a,b,c,d)};var Xa=decodeURI("%73cript"),Ya=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>fa.call(b,e)&&c.push(e)}return c},$a=function(a){"loading"!=p.readyState?Za(a):p.write("<"+Xa+' src="'+encodeURI(a)+'"></'+Xa+">")},Za=function(a){var b=p.createElement(Xa);b.setAttribute("src",a);b.async="true";(a=p.getElementsByTagName(Xa)[0])?a.parentNode.insertBefore(b,a):(p.head||p.body||p.documentElement).appendChild(b)},ab=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<M.length;d++){var e=M[d][0],
f=M[d][1];f&&y(c,e)&&f(c[e],a,b)}},cb=function(a,b,c){bb(function(){var c;c=b===I(r.href)?v(C,"_",w()):w();c=v(Fa(b),"_",c);a(c)},c)},P=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);ab(a,c);var d=a?a.split(":"):[],e=c.h||Wa(),f=v(H,"ah",w());if(f["::"]&&d.length){for(var g=[],k=null;k=d.shift();){var h=k.split("."),h=f[k]||f[h[1]&&"ns:"+h[0]||""]||e,l=g.length&&g[g.length-1]||null,m=l;l&&l.hint==h||(m={hint:h,M:[]},g.push(m));m.M.push(k)}var q=g.length;if(1<q){var u=c.callback;
u&&(c.callback=function(){0==--q&&u()})}for(;d=g.shift();)db(d.M,c,d.hint)}else db(d||[],c,e)},db=function(a,b,c){a=ga(a)||[];var d=b.callback,e=b.config,f=b.timeout,g=b.ontimeout,k=b.onerror,h=void 0;"function"==typeof k&&(h=k);var l=null,m=!1;if(f&&!g||!f&&g)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var k=v(Fa(c),"r",[]).sort(),q=v(Fa(c),"L",[]).sort(),u=[].concat(k),t=function(a,b){if(m)return 0;n.clearTimeout(l);q.push.apply(q,x);var d=((C||{}).config||
{}).update;d?d(e):e&&v(H,"cu",[]).push(e);if(b){L("me0",a,u);try{cb(b,c,h)}finally{L("me1",a,u)}}return 1};0<f&&(l=n.setTimeout(function(){m=!0;g()},f));var x=Ya(a,q);if(x.length){var x=Ya(a,k),F=v(H,"CP",[]),G=F.length;F[G]=function(a){if(!a)return 0;L("ml1",x,u);var b=function(b){F[G]=null;t(x,a)&&Ea(function(){d&&d();b()})},c=function(){var a=F[G+1];a&&a()};0<G&&F[G-1]?F[G]=function(){b(c)}:b(c)};if(x.length){var pa="loaded_"+H.I++;C[pa]=function(a){F[G](a);C[pa]=null};a=Sa(c,x,"gapi."+pa,k);k.push.apply(k,
x);L("ml0",x,u);b.sync||n.___gapisync?$a(a):Za(a)}else F[G](da)}else t(x)&&d&&d()};var bb=function(a,b){if(H.hee&&0<H.hel)try{return a()}catch(c){b&&b(c),H.hel--,P("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;}};C.load=function(a,b){return bb(function(){return P(a,b)})};var Q=function(a){var b=window.___jsl=window.___jsl||{};b[a]=b[a]||[];return b[a]},R=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=!a&&b.cfg||{};return b.cfg},eb=function(a){return"object"===typeof a&&/\[native code\]/.test(a.push)},S=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]&&b[c]&&"object"===typeof a[c]&&"object"===typeof b[c]&&!eb(a[c])&&!eb(b[c])?S(a[c],b[c]):b[c]&&"object"===typeof b[c]?(a[c]=eb(b[c])?[]:{},S(a[c],b[c])):a[c]=b[c])},fb=function(a){if(a&&!/^\s+$/.test(a)){for(;0==
a.charCodeAt(a.length-1);)a=a.substring(0,a.length-1);var b;try{b=window.JSON.parse(a)}catch(c){}if("object"===typeof b)return b;try{b=(new Function("return ("+a+"\n)"))()}catch(c){}if("object"===typeof b)return b;try{b=(new Function("return ({"+a+"\n})"))()}catch(c){}return"object"===typeof b?b:{}}},gb=function(a){R(!0);var b=window.___gcfg,c=Q("cu");if(b&&b!==window.___gu){var d={};S(d,b);c.push(d);window.___gu=b}var b=Q("cu"),e=document.scripts||document.getElementsByTagName("script")||[],d=[],
f=[];f.push.apply(f,Q("us"));for(var g=0;g<e.length;++g)for(var k=e[g],h=0;h<f.length;++h)k.src&&0==k.src.indexOf(f[h])&&d.push(k);0==d.length&&0<e.length&&e[e.length-1].src&&d.push(e[e.length-1]);for(e=0;e<d.length;++e)d[e].getAttribute("gapi_processed")||(d[e].setAttribute("gapi_processed",!0),(f=d[e])?(g=f.nodeType,f=3==g||4==g?f.nodeValue:f.textContent||f.innerText||f.innerHTML||""):f=void 0,(f=fb(f))&&b.push(f));a&&(d={},S(d,a),c.push(d));d=Q("cd");a=0;for(b=d.length;a<b;++a)S(R(),d[a]);d=Q("ci");
a=0;for(b=d.length;a<b;++a)S(R(),d[a]);a=0;for(b=c.length;a<b;++a)S(R(),c[a])},T=function(a){if(!a)return R();a=a.split("/");for(var b=R(),c=0,d=a.length;b&&"object"===typeof b&&c<d;++c)b=b[a[c]];return c===a.length&&void 0!==b?b:void 0},hb=function(a,b){var c=a;if("string"===typeof a){for(var d=c={},e=a.split("/"),f=0,g=e.length;f<g-1;++f)var k={},d=d[e[f]]=k;d[e[f]]=b}gb(c)};var ib=function(){var a=window.__GOOGLEAPIS;a&&(a.googleapis&&!a["googleapis.config"]&&(a["googleapis.config"]=a.googleapis),v(H,"ci",[]).push(a),window.__GOOGLEAPIS=void 0)};var jb={apppackagename:1,callback:1,clientid:1,cookiepolicy:1,openidrealm:-1,includegrantedscopes:-1,requestvisibleactions:1,scope:1},kb=!1,lb=w(),mb=function(){if(!kb){for(var a=document.getElementsByTagName("meta"),b=0;b<a.length;++b){var c=a[b].name.toLowerCase();if(0==c.lastIndexOf("google-signin-",0)){var c=c.substring(14),d=a[b].content;jb[c]&&d&&(lb[c]=d)}}if(window.self!==window.top){var a=document.location.toString(),e;for(e in jb)0<jb[e]&&(b=D(a,e,""))&&(lb[e]=b)}kb=!0}e=w();A(lb,e);return e},
nb=function(a){return!!(a.clientid&&a.scope&&a.callback)};var ob=window.console,pb=function(a){ob&&ob.log&&ob.log(a)};var qb=function(){return!!H.oa},rb=function(){};var U=v(H,"rw",w()),sb=function(a){for(var b in U)a(U[b])},tb=function(a,b){var c=U[a];c&&c.state<b&&(c.state=b)};var ub;var vb=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?\#]*)?\/u\/(\d)\//,wb=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?\#]*)?\/b\/(\d{10,})\//,xb=function(a){var b=T("googleapis.config/sessionIndex");null==b&&(b=window.__X_GOOG_AUTHUSER);if(null==b){var c=window.google;c&&(b=c.authuser)}null==b&&(a=a||window.location.href,b=D(a,"authuser")||null,null==b&&(b=(b=a.match(vb))?b[1]:null));return null==b?null:String(b)},yb=function(a){var b=T("googleapis.config/sessionDelegate");
null==b&&(b=(a=(a||window.location.href).match(wb))?a[1]:null);return null==b?null:String(b)};var zb=function(){this.g=-1};var V=function(){this.g=64;this.b=[];this.B=[];this.V=[];this.v=[];this.v[0]=128;for(var a=1;a<this.g;++a)this.v[a]=0;this.w=this.j=0;this.reset()};(function(){function a(){}a.prototype=zb.prototype;V.fa=zb.prototype;V.prototype=new a;V.J=function(a,c,d){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return zb.prototype[c].apply(a,e)}})();
V.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.b[4]=3285377520;this.w=this.j=0};
var Ab=function(a,b,c){c||(c=0);var d=a.V;if("string"==typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.b[0];c=a.b[1];for(var g=a.b[2],k=a.b[3],h=a.b[4],l,e=0;80>e;e++)40>e?20>e?(f=k^c&(g^k),l=1518500249):(f=c^g^k,l=1859775393):60>e?(f=c&g|k&(c|g),l=2400959708):(f=c^g^k,
l=3395469782),f=(b<<5|b>>>27)+f+h+l+d[e]&4294967295,h=k,k=g,g=(c<<30|c>>>2)&4294967295,c=b,b=f;a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+c&4294967295;a.b[2]=a.b[2]+g&4294967295;a.b[3]=a.b[3]+k&4294967295;a.b[4]=a.b[4]+h&4294967295};
V.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.g,d=0,e=this.B,f=this.j;d<b;){if(0==f)for(;d<=c;)Ab(this,a,d),d+=this.g;if("string"==typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.g){Ab(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.g){Ab(this,e);f=0;break}}this.j=f;this.w+=b}};
V.prototype.digest=function(){var a=[],b=8*this.w;56>this.j?this.update(this.v,56-this.j):this.update(this.v,this.g-(this.j-56));for(var c=this.g-1;56<=c;c--)this.B[c]=b&255,b/=256;Ab(this,this.B);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.b[c]>>d&255,++b;return a};var Bb=function(){this.F=new V};Bb.prototype.reset=function(){this.F.reset()};var Cb=n.crypto,Db=!1,Eb=0,Fb=0,Gb=1,Hb=0,Ib="",Jb=function(a){a=a||n.event;var b=a.screenX+a.clientX<<16,b=b+(a.screenY+a.clientY),b=(new Date).getTime()%1E6*b;Gb=Gb*b%Hb;0<Eb&&++Fb==Eb&&E("mousemove",Jb,"remove","de")},Kb=function(a){var b=new Bb;a=unescape(encodeURIComponent(a));for(var c=[],d=0,e=a.length;d<e;++d)c.push(a.charCodeAt(d));b.F.update(c);b=b.F.digest();a="";for(c=0;c<b.length;c++)a+="0123456789ABCDEF".charAt(Math.floor(b[c]/16))+"0123456789ABCDEF".charAt(b[c]%16);return a},Db=!!Cb&&
"function"==typeof Cb.getRandomValues;Db||(Hb=1E6*(screen.width*screen.width+screen.height),Ib=Kb(p.cookie+"|"+p.location+"|"+(new Date).getTime()+"|"+Math.random()),Eb=T("random/maxObserveMousemove")||0,0!=Eb&&E("mousemove",Jb,"add","at"));var Lb=function(){var a=Gb,a=a+parseInt(Ib.substr(0,20),16);Ib=Kb(Ib);return a/(Hb+Math.pow(16,20))},Mb=function(){var a=new n.Uint32Array(1);Cb.getRandomValues(a);return Number("0."+a[0])};var Nb=function(){var a=H.onl;if(!a){a=w();H.onl=a;var b=w();a.e=function(a){var d=b[a];d&&(delete b[a],d())};a.a=function(a,d){b[a]=d};a.r=function(a){delete b[a]}}return a},Ob=function(a,b){var c=b.onload;return"function"===typeof c?(Nb().a(a,c),c):null},Pb=function(a){B(/^\w+$/.test(a),"Unsupported id - "+a);Nb();return'onload="window.___jsl.onl.e("'+a+'")"'},Qb=function(a){Nb().r(a)};var Rb={allowtransparency:"true",frameborder:"0",hspace:"0",marginheight:"0",marginwidth:"0",scrolling:"no",style:"",tabindex:"0",vspace:"0",width:"100%"},Sb={allowtransparency:!0,onload:!0},Tb=0,Ub=function(a){B(!a||va.test(a),"Illegal url for new iframe - "+a)},Vb=function(a,b,c,d,e){Ub(c.src);var f,g=Ob(d,c),k=g?Pb(d):"";try{document.all&&(f=a.createElement('<iframe frameborder="'+ma(String(c.frameborder))+'" scrolling="'+ma(String(c.scrolling))+'" '+k+' name="'+ma(String(c.name))+'"/>'))}catch(l){}finally{f||
(f=a.createElement("iframe"),g&&(f.onload=function(){f.onload=null;g.call(this)},Qb(d)))}for(var h in c)a=c[h],"style"===h&&"object"===typeof a?A(a,f.style):Sb[h]||f.setAttribute(h,String(a));(h=e&&e.beforeNode||null)||e&&e.dontclear||Aa(b);b.insertBefore(f,h);f=h?h.previousSibling:b.lastChild;c.allowtransparency&&(f.allowTransparency=!0);return f};var Wb=/^:[\w]+$/,Xb=/:([a-zA-Z_]+):/g,Yb=function(){var a=xb()||"0",b=yb(),c;c=xb(void 0)||a;var d=yb(void 0),e="";c&&(e+="u/"+c+"/");d&&(e+="b/"+d+"/");c=e||null;(e=(d=!1===T("isLoggedIn"))?"_/im/":"")&&(c="");var f=T("iframes/:socialhost:"),g=T("iframes/:im_socialhost:");return ub={socialhost:f,ctx_socialhost:d?g:f,session_index:a,session_delegate:b,session_prefix:c,im_prefix:e}},Zb=function(a,b){return Yb()[b]||""},$b=function(a){return function(b,c){return a?Yb()[c]||a[c]||"":Yb()[c]||""}};var ac={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},bc=function(a){var b,c,d;b=/[\"\\\x00-\x1f\x7f-\x9f]/g;if(void 0!==a){switch(typeof a){case "string":return b.test(a)?'"'+a.replace(b,function(a){var b=ac[a];if(b)return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"':'"'+a+'"';case "number":return isFinite(a)?String(a):"null";case "boolean":case "null":return String(a);case "object":if(!a)return"null";b=[];if("number"===
typeof a.length&&!a.propertyIsEnumerable("length")){d=a.length;for(c=0;c<d;c+=1)b.push(bc(a[c])||"null");return"["+b.join(",")+"]"}for(c in a)!/___$/.test(c)&&y(a,c)&&"string"===typeof c&&(d=bc(a[c]))&&b.push(bc(c)+":"+d);return"{"+b.join(",")+"}"}return""}},cc=function(a){if(!a)return!1;if(/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/b-u]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}return!1},
dc=!1;try{dc=!!window.JSON&&'["a"]'===window.JSON.stringify(["a"])&&"a"===window.JSON.parse('["a"]')[0]}catch(a){}var ec=function(a){try{return window.JSON.parse(a)}catch(b){return!1}},fc=dc?window.JSON.stringify:bc,gc=dc?ec:cc;var hc=function(a){var b;a.match(/^https?%3A/i)&&(b=decodeURIComponent(a));return ua(document,b?b:a)},ic=function(a){a=a||"canonical";for(var b=document.getElementsByTagName("link"),c=0,d=b.length;c<d;c++){var e=b[c],f=e.getAttribute("rel");if(f&&f.toLowerCase()==a&&(e=e.getAttribute("href"))&&(e=hc(e))&&null!=e.match(/^https?:\/\/[\w\-\_\.]+/i))return e}return window.location.href};var jc={se:"0"},kc={post:!0},lc={style:"position:absolute;top:-10000px;width:450px;margin:0px;border-style:none"},mc="onPlusOne _ready _close _open _resizeMe _renderstart oncircled drefresh erefresh".split(" "),nc=v(H,"WI",w()),oc=function(a,b,c){var d,e;d={};var f=e=a;"plus"==a&&b.action&&(e=a+"_"+b.action,f=a+"/"+b.action);(e=T("iframes/"+e+"/url"))||(e=":im_socialhost:/:session_prefix::im_prefix:_/widget/render/"+f+"?usegapi=1");for(var g in jc)d[g]=g+"/"+(b[g]||jc[g])+"/";d=ua(p,e.replace(Xb,
$b(d)));g="iframes/"+a+"/params/";f={};A(b,f);(e=T("lang")||T("gwidget/lang"))&&(f.hl=e);kc[a]||(f.origin=window.location.origin||window.location.protocol+"//"+window.location.host);f.exp=T(g+"exp");if(g=T(g+"location"))for(e=0;e<g.length;e++){var k=g[e];f[k]=n.location[k]}switch(a){case "plus":case "follow":g=f.href;e=b.action?void 0:"publisher";g=(g="string"==typeof g?g:void 0)?hc(g):ic(e);f.url=g;delete f.href;break;case "plusone":g=(g=b.href)?hc(g):ic();f.url=g;g=b.db;e=T();null==g&&e&&(g=e.db,
null==g&&(g=e.gwidget&&e.gwidget.db));f.db=g||void 0;g=b.ecp;e=T();null==g&&e&&(g=e.ecp,null==g&&(g=e.gwidget&&e.gwidget.ecp));f.ecp=g||void 0;delete f.href;break;case "signin":f.url=ic()}H.ILI&&(f.iloader="1");delete f["data-onload"];delete f.rd;for(var h in jc)f[h]&&delete f[h];f.gsrc=T("iframes/:source:");h=T("inline/css");"undefined"!==typeof h&&0<c&&h>=c&&(f.ic="1");h=/^#|^fr-/;c={};for(var l in f)y(f,l)&&h.test(l)&&(c[l.replace(h,"")]=f[l],delete f[l]);l="q"==T("iframes/"+a+"/params/si")?f:
c;h=mb();for(var m in h)!y(h,m)||y(f,m)||y(c,m)||(l[m]=h[m]);m=[].concat(mc);(l=T("iframes/"+a+"/methods"))&&"object"===typeof l&&ea.test(l.push)&&(m=m.concat(l));for(var q in b)y(b,q)&&/^on/.test(q)&&("plus"!=a||"onconnect"!=q)&&(m.push(q),delete f[q]);delete f.callback;c._methods=m.join(",");return ta(d,f,c)},pc=["style","data-gapiscan"],rc=function(a){for(var b=w(),c=0!=a.nodeName.toLowerCase().indexOf("g:"),d=0,e=a.attributes.length;d<e;d++){var f=a.attributes[d],g=f.name,k=f.value;0<=fa.call(pc,
g)||c&&0!=g.indexOf("data-")||"null"===k||"specified"in f&&!f.specified||(c&&(g=g.substr(5)),b[g.toLowerCase()]=k)}a=a.style;(c=qc(a&&a.height))&&(b.height=String(c));(a=qc(a&&a.width))&&(b.width=String(a));return b},qc=function(a){var b=void 0;"number"===typeof a?b=a:"string"===typeof a&&(b=parseInt(a,10));return b},tc=function(){var a=H.drw;sb(function(b){if(a!==b.id&&4!=b.state&&"share"!=b.type){var c=b.id,d=b.type,e=b.url;b=b.userParams;var f=p.getElementById(c);if(f){var g=oc(d,b,0);g?(f=f.parentNode,
e.replace(/\#.*/,"").replace(/(\?|&)ic=1/,"")!==g.replace(/\#.*/,"").replace(/(\?|&)ic=1/,"")&&(b.dontclear=!0,b.rd=!0,b.ri=!0,b.type=d,sc(f,b),(d=U[f.lastChild.id])&&(d.oid=c),tb(c,4))):delete U[c]}else delete U[c]}})};var W,X,Y,uc,vc,wc=/(?:^|\s)g-((\S)*)(?:$|\s)/,xc={plusone:!0,autocomplete:!0,profile:!0,signin:!0,signin2:!0};W=v(H,"SW",w());X=v(H,"SA",w());Y=v(H,"SM",w());uc=v(H,"FW",[]);vc=null;
var zc=function(a,b){yc(void 0,!1,a,b)},yc=function(a,b,c,d){K("ps0",!0);c=("string"===typeof c?document.getElementById(c):c)||p;var e;e=p.documentMode;if(c.querySelectorAll&&(!e||8<e)){e=d?[d]:z(W).concat(z(X)).concat(z(Y));for(var f=[],g=0;g<e.length;g++){var k=e[g];f.push(".g-"+k,"g\\:"+k)}e=c.querySelectorAll(f.join(","))}else e=c.getElementsByTagName("*");c=w();for(f=0;f<e.length;f++){g=e[f];var h=g,k=d,l=h.nodeName.toLowerCase(),m=void 0;h.getAttribute("data-gapiscan")?k=null:(0==l.indexOf("g:")?
m=l.substr(2):(h=(h=String(h.className||h.getAttribute("class")))&&wc.exec(h))&&(m=h[1]),k=!m||!(W[m]||X[m]||Y[m])||k&&m!==k?null:m);k&&(xc[k]||0==g.nodeName.toLowerCase().indexOf("g:")||0!=z(rc(g)).length)&&(g.setAttribute("data-gapiscan",!0),v(c,k,[]).push(g))}if(b)for(var q in c)for(b=c[q],d=0;d<b.length;d++)b[d].setAttribute("data-onload",!0);for(var u in c)uc.push(u);K("ps1",!0);if((q=uc.join(":"))||a)try{C.load(q,a)}catch(x){pb(x);return}if(Ac(vc||{}))for(var t in c){a=c[t];u=0;for(b=a.length;u<
b;u++)a[u].removeAttribute("data-gapiscan");Bc(t)}else{d=[];for(t in c)for(a=c[t],u=0,b=a.length;u<b;u++)e=a[u],Cc(t,e,rc(e),d,b);Dc(q,d)}},Ec=function(a){var b=v(C,a,{});b.go||(b.go=function(b){return zc(b,a)},b.render=function(b,d){var e=d||{};e.type=a;return sc(b,e)})},Fc=function(a){W[a]=!0},Gc=function(a){X[a]=!0},Hc=function(a){Y[a]=!0};var Bc=function(a,b){var c=Da(a);b&&c?(c(b),(c=b.iframeNode)&&c.setAttribute("data-gapiattached",!0)):C.load(a,function(){var c=Da(a),e=b&&b.iframeNode,f=b&&b.userParams;e&&c?(c(b),e.setAttribute("data-gapiattached",!0)):(c=C[a].go,"signin2"==a?c(e,f):c(e&&e.parentNode,f))})},Ac=function(){return!1},Dc=function(){},Cc=function(a,b,c,d,e,f,g){switch(Ic(b,a,f)){case 0:a=Y[a]?a+"_annotation":a;d={};d.iframeNode=b;d.userParams=c;Bc(a,d);break;case 1:var k;if(b.parentNode){for(var h in c){if(f=y(c,h))f=
c[h],f=!!f&&"object"===typeof f&&(!f.toString||f.toString===Object.prototype.toString||f.toString===Array.prototype.toString);if(f)try{c[h]=fc(c[h])}catch(F){delete c[h]}}f=!0;c.dontclear&&(f=!1);delete c.dontclear;rb();h=oc(a,c,e);e=g||{};e.allowPost=1;e.attributes=lc;e.dontclear=!f;g={};g.userParams=c;g.url=h;g.type=a;var l;c.rd?l=b:(l=document.createElement("div"),b.setAttribute("data-gapistub",!0),l.style.cssText="position:absolute;width:450px;left:-10000px;",b.parentNode.insertBefore(l,b));g.siteElement=
l;l.id||(b=l,v(nc,a,0),f="___"+a+"_"+nc[a]++,b.id=f);b=w();b[">type"]=a;A(c,b);f=h;c=l;h=e||{};b=h.attributes||{};B(!h.allowPost||!b.onload,"onload is not supported by post iframe");e=b=f;Wb.test(b)&&(e=T("iframes/"+e.substring(1)+"/url"),B(!!e,"Unknown iframe url config for - "+b));f=ua(p,e.replace(Xb,Zb));b=c.ownerDocument||p;l=0;do e=h.id||["I",Tb++,"_",(new Date).getTime()].join("");while(b.getElementById(e)&&5>++l);B(5>l,"Error creating iframe id");l={};var m={};b.documentMode&&9>b.documentMode&&
(l.hostiemode=b.documentMode);A(h.queryParams||{},l);A(h.fragmentParams||{},m);var q=h.connectWithQueryParams?l:m,u=h.pfname,t=w();t.id=e;t.parent=b.location.protocol+"//"+b.location.host;var x=D(b.location.href,"parent"),u=u||"";!u&&x&&(x=D(b.location.href,"id",""),u=D(b.location.href,"pfname",""),u=x?u+"/"+x:"");t.pfname=u;A(t,q);(t=D(f,"rpctoken")||l.rpctoken||m.rpctoken)||(t=q.rpctoken=h.rpctoken||String(Math.round(1E8*(Db?Mb():Lb()))));h.rpctoken=t;t=b.location.href;q=w();(x=D(t,"_bsh",H.bsh))&&
(q._bsh=x);(t=I(t))&&(q.jsh=t);h.hintInFragment?A(q,m):A(q,l);f=ta(f,l,m,h.paramsSerializer);m=w();A(Rb,m);A(h.attributes,m);m.name=m.id=e;m.src=f;h.eurl=f;if((h||{}).allowPost&&2E3<f.length){l=qa(f);m.src="";m["data-postorigin"]=f;f=Vb(b,c,m,e);-1!=navigator.userAgent.indexOf("WebKit")&&(k=f.contentWindow.document,k.open(),m=k.createElement("div"),q={},t=e+"_inner",q.name=t,q.src="",q.style="display:none",Vb(b,m,q,t,h));m=(h=l.query[0])?h.split("&"):[];h=[];for(q=0;q<m.length;q++)t=m[q].split("=",
2),h.push([decodeURIComponent(t[0]),decodeURIComponent(t[1])]);l.query=[];m=ra(l);B(va.test(m),"Invalid URL: "+m);l=b.createElement("form");l.action=m;l.method="POST";l.target=e;l.style.display="none";for(e=0;e<h.length;e++)m=b.createElement("input"),m.type="hidden",m.name=h[e][0],m.value=h[e][1],l.appendChild(m);c.appendChild(l);l.submit();l.parentNode.removeChild(l);k&&k.close();k=f}else k=Vb(b,c,m,e,h);g.iframeNode=k;g.id=k.getAttribute("id");k=g.id;c=w();c.id=k;c.userParams=g.userParams;c.url=
g.url;c.type=g.type;c.state=1;U[k]=c;k=g}else k=null;k&&((g=k.id)&&d.push(g),Bc(a,k))}},Ic=function(a,b,c){if(a&&1===a.nodeType&&b){if(c)return 1;if(Y[b]){if(Ba[a.nodeName.toLowerCase()])return(a=a.innerHTML)&&a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")?0:1}else{if(X[b])return 0;if(W[b])return 1}}return null},sc=function(a,b){var c=b.type;delete b.type;var d=("string"===typeof a?document.getElementById(a):a)||void 0;if(d){var e={},f;for(f in b)y(b,f)&&(e[f.toLowerCase()]=b[f]);e.rd=1;(f=!!e.ri)&&delete e.ri;
var g=[];Cc(c,d,e,g,0,f,void 0);Dc(c,g)}else pb("string"==="gapi."+c+".render: missing element "+typeof a?a:"")};v(C,"platform",{}).go=zc;var Ac=function(a){for(var b=["_c","jsl","h"],c=0;c<b.length&&a;c++)a=a[b[c]];b=I(r.href);return!a||0!=a.indexOf("n;")&&0!=b.indexOf("n;")&&a!==b},Dc=function(a,b){Jc(a,b)},xa=function(a){yc(a,!0)},Kc=function(a,b){for(var c=b||[],d=0;d<c.length;++d)a(c[d]);for(d=0;d<c.length;d++)Ec(c[d])};
M.push(["platform",function(a,b,c){vc=c;b&&uc.push(b);Kc(Fc,a);Kc(Gc,c._c.annotation);Kc(Hc,c._c.bimodal);ib();gb();if("explicit"!=T("parsetags")){Ca(a);nb(mb())&&!T("disableRealtimeCallback")&&rb();var d;c&&(a=c.callback)&&(d=na(a),delete c.callback);za(function(){xa(d)})}}]);C._pl=!0;var Lc=function(a){a=(a=U[a])?a.oid:void 0;if(a){var b=p.getElementById(a);b&&b.parentNode.removeChild(b);delete U[a];Lc(a)}};var Mc=/^\{h\:'/,Nc=/^!_/,Oc="",Jc=function(a,b){function c(){E("message",d,"remove","de")}function d(d){var g=d.data,k=d.origin;if(Pc(g,b)){var h=e;e=!1;h&&K("rqe");Qc(a,function(){h&&K("rqd");c();for(var a=v(H,"RPMQ",[]),b=0;b<a.length;b++)a[b]({data:g,origin:k})})}}if(0!==b.length){Oc=D(r.href,"pfname","");var e=!0;E("message",d,"add","at");P(a,c)}},Pc=function(a,b){a=String(a);if(Mc.test(a))return!0;var c=!1;Nc.test(a)&&(c=!0,a=a.substr(2));if(!/^\{/.test(a))return!1;var d=gc(a);if(!d)return!1;
var e=d.f;if(d.s&&e&&-1!=fa.call(b,e)){if("_renderstart"===d.s||d.s===Oc+"/"+e+"::_renderstart"){var f=d.a&&d.a[c?0:1],c=p.getElementById(e);tb(e,2);if(f&&c&&f.width&&f.height){a:{d=c.parentNode;e=f||{};if(qb()){var g=c.id;if(g){f=(f=U[g])?f.state:void 0;if(1===f||4===f)break a;Lc(g)}}(f=d.nextSibling)&&f.getAttribute&&f.getAttribute("data-gapistub")&&(d.parentNode.removeChild(f),d.style.cssText="");var f=e.width,k=e.height,h=d.style;h.textIndent="0";h.margin="0";h.padding="0";h.background="transparent";
h.borderStyle="none";h.cssFloat="none";h.styleFloat="none";h.lineHeight="normal";h.fontSize="1px";h.verticalAlign="baseline";d=d.style;d.display="inline-block";h=c.style;h.position="static";h.left="0";h.top="0";h.visibility="visible";f&&(d.width=h.width=f+"px");k&&(d.height=h.height=k+"px");e.verticalAlign&&(d.verticalAlign=e.verticalAlign);g&&tb(g,3)}c["data-csi-wdt"]=(new Date).getTime()}}return!0}return!1},Qc=function(a,b){P(a,b)};var Rc=function(a,b){this.O=a;var c=b||{};this.Y=Number(c.maxAge)||0;this.L=c.domain;this.P=c.path;this.$=!!c.secure},Sc=/^[-+/_=.:|%&a-zA-Z0-9@]*$/,Tc=/^[A-Z_][A-Z0-9_]{0,63}$/;
Rc.prototype.write=function(a,b){if(!Tc.test(this.O))throw"Invalid cookie name";if(!Sc.test(a))throw"Invalid cookie value";var c=this.O+"="+a;this.L&&(c+=";domain="+this.L);this.P&&(c+=";path="+this.P);var d="number"===typeof b?b:this.Y;if(0<=d){var e=new Date;e.setSeconds(e.getSeconds()+d);c+=";expires="+e.toUTCString()}this.$&&(c+=";secure");document.cookie=c;return!0};Rc.iterate=function(a){for(var b=document.cookie.split(/;\s*/),c=0;c<b.length;++c){var d=b[c].split("="),e=d.shift();a(e,d.join("="))}};var Uc=function(a){this.X=a},Vc={};Uc.prototype.write=function(a){Vc[this.X]=a;return!0};Uc.iterate=function(a){for(var b in Vc)Vc.hasOwnProperty(b)&&a(b,Vc[b])};var Wc="https:"===window.location.protocol,Xc=Wc||"http:"===window.location.protocol?Rc:Uc,Yc=function(a){var b=a.substr(1),c="",d=window.location.hostname;if(""!==b){c=parseInt(b,10);if(isNaN(c))return null;b=d.split(".");if(b.length<c-1)return null;b.length==c-1&&(d="."+d)}else d="";return{c:"S"==a.charAt(0),domain:d,i:c}},Zc=function(){var a,b=null;Xc.iterate(function(c,d){if(0===c.indexOf("G_AUTHUSER_")){var e=Yc(c.substring(11));if(!a||e.c&&!a.c||e.c==a.c&&e.i>a.i)a=e,b=d}});return{W:a,A:b}};var $c=function(a){if(0!==a.indexOf("GCSC"))return null;var b={N:!1};a=a.substr(4);if(!a)return b;var c=a.charAt(0);a=a.substr(1);var d=a.lastIndexOf("_");if(-1==d)return b;var e=Yc(a.substr(d+1));if(null==e)return b;a=a.substring(0,d);if("_"!==a.charAt(0))return b;d="E"===c&&e.c;return!d&&("U"!==c||e.c)||d&&!Wc?b:{N:!0,c:d,ca:a.substr(1),domain:e.domain,i:e.i}},ad=function(a){if(!a)return[];a=a.split("=");return a[1]?a[1].split("|"):[]},bd=function(a){a=a.split(":");return{C:a[0].split("=")[1],ba:ad(a[1]),
ea:ad(a[2]),da:ad(a[3])}},cd=function(){var a=Zc(),b=a.W,a=a.A;if(null!==a){var c;Xc.iterate(function(a,d){var e=$c(a);e&&e.N&&e.c==b.c&&e.i==b.i&&(c=d)});if(c){var d=bd(c),e=d&&d.ba[Number(a)],d=d&&d.C;if(e)return{A:a,aa:e,C:d}}}return null};var Z=function(a){this.K=a};Z.prototype.l=0;Z.prototype.G=2;Z.prototype.K=null;Z.prototype.D=!1;Z.prototype.T=function(){this.D||(this.l=0,this.D=!0,this.R())};Z.prototype.R=function(){this.D&&(this.K()?this.l=this.G:this.l=Math.min(2*(this.l||this.G),120),window.setTimeout(ca(this.R,this),1E3*this.l))};for(var dd=0;64>dd;++dd);var ed=null,qb=function(){return H.oa=!0},rb=function(){H.oa=!0;var a=cd();(a=a&&a.A)&&hb("googleapis.config/sessionIndex",a);ed||(ed=v(H,"ss",new Z(fd)));a=ed;a.T&&a.T()},fd=function(){var a=cd(),b=a&&a.aa||null,c=a&&a.C;P("auth",{callback:function(){var a=n.gapi.auth,e={client_id:c,session_state:b};a.checkSessionState(e,function(b){var c=e.session_state,k=T("isLoggedIn");b=T("debug/forceIm")?!1:c&&b||!c&&!b;if(k=k!=b)hb("isLoggedIn",b),rb(),tc(),b||((b=a.signOut)?b():(b=a.setToken)&&b(null));b=
mb();var h=T("savedUserState"),c=a._guss(b.cookiepolicy),h=h!=c&&"undefined"!=typeof h;hb("savedUserState",c);(k||h)&&nb(b)&&!T("disableRealtimeCallback")&&a._pimf(b,!0)})}});return!0};K("bs0",!0,window.gapi._bs);K("bs1",!0);delete window.gapi._bs;})();
gapi.load("",{callback:window["gapi_onload"],_c:{"jsl":{"ci":{"deviceType":"desktop","oauth-flow":{"authUrl":"https://accounts.google.com/o/oauth2/auth","proxyUrl":"https://accounts.google.com/o/oauth2/postmessageRelay","disableOpt":true,"idpIframeUrl":"https://accounts.google.com/o/oauth2/iframe","usegapi":false},"debug":{"reportExceptionRate":0.05,"forceIm":false,"rethrowException":false,"host":"https://apis.google.com"},"lexps":[81,97,100,122,124,30,79,127],"enableMultilogin":true,"googleapis.config":{"auth":{"useFirstPartyAuthV2":false}},"isPlusUser":false,"inline":{"css":1},"disableRealtimeCallback":false,"drive_share":{"skipInitCommand":true},"csi":{"rate":0.01},"report":{"apiRate":{"gapi\\.signin\\..*":0.05,"gapi\\.signin2\\..*":0.05},"apis":["iframes\\..*","gadgets\\..*","gapi\\.appcirclepicker\\..*","gapi\\.auth\\..*","gapi\\.client\\..*"],"rate":0.001,"host":"https://apis.google.com"},"client":{"headers":{"request":["Accept","Accept-Language","Authorization","Cache-Control","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-MD5","Content-Range","Content-Type","Date","GData-Version","Host","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Origin","OriginToken","Pragma","Range","Slug","Transfer-Encoding","Want-Digest","X-ClientDetails","X-GData-Client","X-GData-Key","X-Goog-AuthUser","X-Goog-PageId","X-Goog-Encode-Response-If-Executable","X-Goog-Correlation-Id","X-Goog-Request-Info","X-Goog-Experiments","x-goog-iam-authority-selector","x-goog-iam-authorization-token","X-Goog-Spatula","X-Goog-Upload-Command","X-Goog-Upload-Content-Disposition","X-Goog-Upload-Content-Length","X-Goog-Upload-Content-Type","X-Goog-Upload-File-Name","X-Goog-Upload-Offset","X-Goog-Upload-Protocol","X-Goog-Visitor-Id","X-HTTP-Method-Override","X-JavaScript-User-Agent","X-Pan-Versionid","X-Origin","X-Referer","X-Upload-Content-Length","X-Upload-Content-Type","X-Use-HTTP-Status-Code-Override","X-Ios-Bundle-Identifier","X-Android-Package","X-YouTube-VVT","X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],"response":["Digest","Cache-Control","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-MD5","Content-Range","Content-Type","Date","ETag","Expires","Last-Modified","Location","Pragma","Range","Server","Transfer-Encoding","WWW-Authenticate","Vary","Unzipped-Content-MD5","X-Goog-Generation","X-Goog-Metageneration","X-Goog-Safety-Content-Type","X-Goog-Safety-Encoding","X-Google-Trace","X-Goog-Upload-Chunk-Granularity","X-Goog-Upload-Control-URL","X-Goog-Upload-Size-Received","X-Goog-Upload-Status","X-Goog-Upload-URL","X-Goog-Diff-Download-Range","X-Goog-Hash","X-Goog-Updated-Authorization","X-Server-Object-Version","X-Guploader-Customer","X-Guploader-Upload-Result","X-Guploader-Uploadid","X-Google-Gfe-Backend-Request-Cost"]},"rms":"migrated","cors":false},"isLoggedIn":false,"signInDeprecation":{"rate":0.0},"include_granted_scopes":true,"llang":"es","plus_layer":{"isEnabled":false},"iframes":{"youtube":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/youtube?usegapi\u003d1","methods":["scroll","openwindow"]},"ytsubscribe":{"url":"https://www.youtube.com/subscribe_embed?usegapi\u003d1"},"plus_circle":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi\u003d1"},"plus_share":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare\u003dtrue\u0026usegapi\u003d1"},"rbr_s":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},"udc_webconsentflow":{"params":{"url":""},"url":"https://www.google.com/settings/webconsent?usegapi\u003d1"},":source:":"3p","blogger":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/blogger?usegapi\u003d1","methods":["scroll","openwindow"]},"evwidget":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/events/widget?usegapi\u003d1"},"partnersbadge":{"url":"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi\u003d1"},":socialhost:":"https://apis.google.com","shortlists":{"url":""},"hangout":{"url":"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},"plus_followers":{"params":{"url":""},"url":":socialhost:/_/im/_/widget/render/plus/followers?usegapi\u003d1"},"post":{"params":{"url":""},"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi\u003d1"},":gplus_url:":"https://plus.google.com","signin":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/signin?usegapi\u003d1","methods":["onauth"]},"rbr_i":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},"share":{"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi\u003d1"},"plusone":{"params":{"count":"","size":"","url":""},"url":":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi\u003d1"},"comments":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/comments?usegapi\u003d1","methods":["scroll","openwindow"]},":im_socialhost:":"https://plus.googleapis.com","backdrop":{"url":"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi\u003d1"},"visibility":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/visibility?usegapi\u003d1"},"autocomplete":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/autocomplete"},"additnow":{"url":"https://apis.google.com/additnow/additnow.html?usegapi\u003d1","methods":["launchurl"]},":signuphost:":"https://plus.google.com","appcirclepicker":{"url":":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},"follow":{"url":":socialhost:/:session_prefix:_/widget/render/follow?usegapi\u003d1"},"community":{"url":":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi\u003d1"},"sharetoclassroom":{"url":"https://www.gstatic.com/classroom/sharewidget/widget_stable.html?usegapi\u003d1"},"ytshare":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi\u003d1"},"plus":{"url":":socialhost:/:session_prefix:_/widget/render/badge?usegapi\u003d1"},"family_creation":{"params":{"url":""},"url":"https://families.google.com/webcreation?usegapi\u003d1\u0026usegapi\u003d1"},"reportabuse":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/reportabuse?usegapi\u003d1"},"commentcount":{"url":":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi\u003d1"},"configurator":{"url":":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi\u003d1"},"zoomableimage":{"url":"https://ssl.gstatic.com/microscope/embed/"},"savetowallet":{"url":"https://clients5.google.com/s2w/o/savetowallet"},"person":{"url":":socialhost:/:session_prefix:_/widget/render/person?usegapi\u003d1"},"savetodrive":{"url":"https://drive.google.com/savetodrivebutton?usegapi\u003d1","methods":["save"]},"page":{"url":":socialhost:/:session_prefix:_/widget/render/page?usegapi\u003d1"},"card":{"url":":socialhost:/:session_prefix:_/hovercard/card"}}},"h":"m;/_/scs/apps-static/_/js/k\u003doz.gapi.es_419.a0D18-jJ4GM.O/m\u003d__features__/am\u003dEQ/rt\u003dj/d\u003d1/rs\u003dAGLTcCO4RYiwbCqqX4eZZlcCjaGhJBqv-g","u":"https://apis.google.com/js/platform.js","hee":true,"fp":"d0714e44060a6138f4972b7da213ae663e6c37b6","dpo":false},"platform":["additnow","backdrop","blogger","comments","commentcount","community","family_creation","follow","page","partnersbadge","person","playreview","plus","plusone","post","reportabuse","savetodrive","savetowallet","shortlists","signin2","udc_webconsentflow","visibility","youtube","ytsubscribe","zoomableimage","hangout","sharetoclassroom"],"fp":"d0714e44060a6138f4972b7da213ae663e6c37b6","annotation":["interactivepost","recobar","signin2","autocomplete","profile"],"bimodal":["signin","share"]}});
|
// Copyright (c) 2020 Anastasiia Birillo
const mongoose = require('mongoose');
const ATI = mongoose.model('ActivityTrackerItem');
const createAti = async (atiData) => {
const ati = new ATI(atiData);
return await ati.save();
};
const getAtiByExternalId = async (externalId) => {
return await ATI.findOne({
externalAtiId: externalId
})
};
const getAllAti = async () => {
return await ATI.find();
};
module.exports = {
createAti,
getAtiByExternalId,
getAllAti,
};
|
import * as columnService from '../column/column.service';
import { build as buildExpression } from '../expression/expression.build';
import { PredicateVisitor } from '../expression/predicate.visitor';
import { yes } from '../utility/kit';
import { get as getValue } from '../services/value';
export function match(context) {
const { model } = context;
const expression = buildExpression(model.filter().by);
if (expression !== null) {
const { labelFactory } = context;
const { assertFactory } = model.filter();
const columnMap = columnService.map(model.columnList().line);
const valueColumnFactory = (key) => {
const column = columnMap[key];
if (column.type === 'array') {
return (row) => getValue(row, column);
} else {
return labelFactory(columnMap[key]);
}
};
const assertColumnFactory = key => assertFactory(columnMap[key]);
const getType = key => {
const column = columnMap[key];
return (column && column.type) || 'text';
};
const visitor =
new PredicateVisitor(
valueColumnFactory,
assertColumnFactory,
getType
);
return visitor.visit(expression);
}
return yes;
}
|
var searchData=
[
['get_5fhistory_22',['get_history',['../classrth_1_1virtual__building_1_1ants_1_1_ant.html#a614b78a20c7ddf3be78ce1251f601e14',1,'rth::virtual_building::ants::Ant']]],
['get_5fip_5fof_5frouter_5fon_5fsubnetwork_23',['get_ip_of_router_on_subnetwork',['../classrth_1_1virtual__building_1_1network__creator_1_1_network_creator.html#a5eef860ccc2ed24f64c62209216fe8a7',1,'rth::virtual_building::network_creator::NetworkCreator']]],
['get_5frouting_5ftable_24',['get_routing_table',['../classrth_1_1virtual__building_1_1routing__tables__generator_1_1_routing_tables_generator.html#a67069fda0797999b7a8f4259aab43a62',1,'rth::virtual_building::routing_tables_generator::RoutingTablesGenerator']]]
];
|
var __extends=this&&this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},Spriter;!function(t){var e=function(){function t(){this._items=[],this._itemNames=[]}return t.prototype.add=function(t,e,i){void 0===e&&(e=this._items.length),(void 0===i||null===i)&&(i="item_"+e),this._items[e]=t,this._itemNames[i]=e},t.prototype.getById=function(t){return this._items[t]},t.prototype.getByName=function(t){var e=this._itemNames[t];return"number"==typeof e?this._items[e]:null},Object.defineProperty(t.prototype,"length",{get:function(){return this._items.length},enumerable:!0,configurable:!0}),t}();t.IdNameMap=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(){this.reset()}return Object.defineProperty(t.prototype,"current",{get:function(){return this._line.at(this._currentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this._currentIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"next",{get:function(){return this._line.at(this._nextIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextIndex",{get:function(){return this._nextIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastTime",{set:function(t){this._lastTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this._lastTime=-1,this._currentIndex=-1,this._nextIndex=0},t.prototype.step=function(t){var e=this._nextIndex,i=this._line.keys[e],n=i.time,r=t<this._lastTime;return!r&&n>this._lastTime&&t>=n||r&&(n>this._lastTime||t>=n)?(this._lastTime=n,this._currentIndex=e,++e>=this._line.keys.length&&(e=0),this._nextIndex=e,i):null},t}();t.LineStepper=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e){this._file=t,this._nodeList=e}return t.prototype.length=function(){return this._nodeList.length},t.prototype.processed=function(){this._file.processed()},t.prototype.getChildNodes=function(t,e){return this._file.getNodesForElement(this._nodeList[t],e)},t.prototype.getFolder=function(t){return this._file.getFolder(this._nodeList[t])},t.prototype.getFile=function(t){return this._file.getFile(this._nodeList[t])},t.prototype.getTag=function(t){return this._file.getTag(this._nodeList[t])},t.prototype.getEntity=function(t){return this._file.getEntity(this._nodeList[t])},t.prototype.getObjectInfo=function(t){return this._file.getObjectInfo(this._nodeList[t],t)},t.prototype.getCharMap=function(t){return this._file.getCharMap(this._nodeList[t])},t.prototype.getCharMapEntry=function(t,e,i){this._file.getCharMapEntry(this._nodeList[t],e,i)},t.prototype.getVariable=function(t){return this._file.getVariable(this._nodeList[t])},t.prototype.getAnimation=function(t){return this._file.getAnimation(this._nodeList[t])},t.prototype.getMainline=function(t){return this._file.getBaseline(this._nodeList[t])},t.prototype.getMainlineKey=function(t){return this._file.getMainlineKey(this._nodeList[t])},t.prototype.getRef=function(t){return this._file.getRef(this._nodeList[t])},t.prototype.getTimeline=function(t){return this._file.getTimeline(this._nodeList[t])},t.prototype.getSoundline=function(t){return this._file.getBaseline(this._nodeList[t])},t.prototype.getEventline=function(t){return this._file.getBaseline(this._nodeList[t])},t.prototype.getTagline=function(t){return this._file.getBaseline(this._nodeList[t])},t.prototype.getVarline=function(t){return this._file.getVarline(this._nodeList[t])},t.prototype.getKey=function(t){return this._file.getKey(this._nodeList[t])},t.prototype.getTagKey=function(t){return this._file.getTagKey(this._nodeList[t])},t.prototype.getVariableKey=function(t,e){return this._file.getVariableKey(this._nodeList[t],e)},t.prototype.getTimelineKey=function(t,e){return this._file.getTimelineKey(this._nodeList[t],t,e)},t.prototype.getTagChanges=function(t){for(var e=0,i=0;i<this.length();i++){var n=this._file.getTagChange(this._nodeList[i]);e|=1<<n}return e},t}();t.NodeListBin=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e){this._file=t,this._nodeList=e,Array.isArray(e)||(e.length=1)}return t.prototype.length=function(){return this._nodeList.length},t.prototype.processed=function(){this._file.processed()},t.prototype.getNode=function(t){return Array.isArray(this._nodeList)?this._nodeList[t]:this._nodeList},t.prototype.getChildNodes=function(t,e){return this._file.getNodesForElement(this.getNode(t),e)},t.prototype.getFolder=function(t){return this._file.getFolder(this.getNode(t))},t.prototype.getFile=function(t){return this._file.getFile(this.getNode(t))},t.prototype.getTag=function(t){return this._file.getTag(this.getNode(t))},t.prototype.getEntity=function(t){return this._file.getEntity(this.getNode(t))},t.prototype.getObjectInfo=function(t){return this._file.getObjectInfo(this.getNode(t),t)},t.prototype.getCharMap=function(t){return this._file.getCharMap(this.getNode(t))},t.prototype.getCharMapEntry=function(t,e,i){this._file.getCharMapEntry(this.getNode(t),e,i)},t.prototype.getVariable=function(t){return this._file.getVariable(this.getNode(t))},t.prototype.getAnimation=function(t){return this._file.getAnimation(this.getNode(t))},t.prototype.getMainline=function(t){return this._file.getBaseline(this.getNode(t))},t.prototype.getMainlineKey=function(t){return this._file.getMainlineKey(this.getNode(t))},t.prototype.getRef=function(t){return this._file.getRef(this.getNode(t))},t.prototype.getTimeline=function(t){return this._file.getTimeline(this.getNode(t))},t.prototype.getSoundline=function(t){return this._file.getBaseline(this.getNode(t))},t.prototype.getEventline=function(t){return this._file.getBaseline(this.getNode(t))},t.prototype.getTagline=function(t){return this._file.getBaseline(this.getNode(t))},t.prototype.getVarline=function(t){return this._file.getVarline(this.getNode(t))},t.prototype.getKey=function(t){return this._file.getKey(this.getNode(t))},t.prototype.getTagKey=function(t){return this._file.getTagKey(this.getNode(t))},t.prototype.getVariableKey=function(t,e){return this._file.getVariableKey(this.getNode(t),e)},t.prototype.getTimelineKey=function(t,e){return this._file.getTimelineKey(this.getNode(t),t,e)},t.prototype.getTagChanges=function(t){for(var e=0,i=0;i<this.length();i++){var n=this._file.getTagChange(this.getNode(i));e|=1<<n}return e},t}();t.NodeListJSON=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e){this._file=t,this._nodeList=e}return t.prototype.length=function(){return this._nodeList.length},t.prototype.processed=function(){this._file.processed()},t.prototype.getChildNodes=function(t,e){return this._file.getNodesForElement(this._nodeList.item(t),e)},t.prototype.getFolder=function(t){return this._file.getFolder(this._nodeList.item(t))},t.prototype.getFile=function(t){return this._file.getFile(this._nodeList.item(t))},t.prototype.getTag=function(t){return this._file.getTag(this._nodeList.item(t))},t.prototype.getEntity=function(t){return this._file.getEntity(this._nodeList.item(t))},t.prototype.getObjectInfo=function(t){return this._file.getObjectInfo(this._nodeList.item(t),t)},t.prototype.getCharMap=function(t){return this._file.getCharMap(this._nodeList.item(t))},t.prototype.getCharMapEntry=function(t,e,i){this._file.getCharMapEntry(this._nodeList.item(t),e,i)},t.prototype.getVariable=function(t){return this._file.getVariable(this._nodeList.item(t))},t.prototype.getAnimation=function(t){return this._file.getAnimation(this._nodeList.item(t))},t.prototype.getMainline=function(t){return this._file.getBaseline(this._nodeList.item(t))},t.prototype.getMainlineKey=function(t){return this._file.getMainlineKey(this._nodeList.item(t))},t.prototype.getRef=function(t){return this._file.getRef(this._nodeList.item(t))},t.prototype.getTimeline=function(t){return this._file.getTimeline(this._nodeList.item(t))},t.prototype.getSoundline=function(t){return this._file.getBaseline(this._nodeList.item(t))},t.prototype.getEventline=function(t){return this._file.getBaseline(this._nodeList.item(t))},t.prototype.getTagline=function(t){return this._file.getBaseline(this._nodeList.item(t))},t.prototype.getVarline=function(t){return this._file.getVarline(this._nodeList.item(t))},t.prototype.getKey=function(t){return this._file.getKey(this._nodeList.item(t))},t.prototype.getTagKey=function(t){return this._file.getTagKey(this._nodeList.item(t))},t.prototype.getVariableKey=function(t,e){return this._file.getVariableKey(this._nodeList.item(t),e)},t.prototype.getTimelineKey=function(t,e){return this._file.getTimelineKey(this._nodeList.item(t),t,e)},t.prototype.getTagChanges=function(t){for(var e=0,i=0;i<this.length();i++){var n=this._file.getTagChange(this._nodeList.item(i));e|=1<<n}return e},t}();t.NodeListXml=e}(Spriter||(Spriter={}));var Spriter;!function(t){!function(t){t[t.XML=0]="XML",t[t.JSON=1]="JSON",t[t.BIN=2]="BIN"}(t.eFileType||(t.eFileType={}));t.eFileType;!function(t){t[t.ORIGINAL=0]="ORIGINAL",t[t.NAME_ONLY=1]="NAME_ONLY",t[t.NAME_AND_EXTENSION=2]="NAME_AND_EXTENSION",t[t.FULL_PATH_NO_EXTENSION=3]="FULL_PATH_NO_EXTENSION"}(t.eImageNameType||(t.eImageNameType={}));var e=t.eImageNameType,i=function(){function t(t){var i="undefined"!=typeof t&&null!==t;this._imageNameType=i&&"undefined"!=typeof t.imageNameType?t.imageNameType:e.NAME_ONLY,this._minDefs=i&&"undefined"!=typeof t.minDefs?t.minDefs:null}return t.prototype.processed=function(){this.popMinDefsStack()},t.prototype.setMinimized=function(t){this._minimized=t,t&&(this._minDefsStack=[],null===this._minDefs)},t.prototype.getFileName=function(t){var i;switch(this._imageNameType){case e.NAME_ONLY:i=t.split("\\").pop().split("/").pop().split(".")[0];break;case e.NAME_AND_EXTENSION:i=t.split("\\").pop().split("/").pop();break;case e.FULL_PATH_NO_EXTENSION:i=t.split(".")[0];break;case e.ORIGINAL:i=t}return i},t.prototype.translateElementName=function(t){if(this._minimized){if(this._minDefs.name!==t)return t;null!==this._minDefs.minName&&(t=this._minDefs.minName)}return t},t.prototype.translateChildElementName=function(t){if(this._minimized&&null!==this._minDefs){var e=this._minDefs.childElements;null!==e&&(t=null===e[t]?t:e[t].minName)}return t},t.prototype.translateAttributeName=function(t){if(this._minimized&&null!==this._minDefs){var e=this._minDefs.attributes;null!==e&&(t=null===e[t]?t:e[t])}return t},t.prototype.setMinDefsToElementName=function(t){if(this._minimized){this._minDefsStack.push(this._minDefs);var e=this._minDefs.childElements[t];this._minDefs=e}},t.prototype.popMinDefsStack=function(){this._minimized&&(this._minDefs=this._minDefsStack.pop())},t}();t.SpriterFile=i}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(t){e.call(this,null),this._elements={spriter_data:1,folder:2,file:3,entity:4,obj_info:5,frames:6,i:7,animation:8,mainline:9,key:10,bone_ref:11,object_ref:12,timeline:13,bone:14,object:15},this._smallOffset=!1,this._bin=new DataView(t),this._smallOffset=1===this._bin.getUint8(0)}return __extends(i,e),i.prototype.getType=function(){return t.eFileType.BIN},i.prototype.readUint8=function(){return this._bin.getUint8(this._tmpPosition++)},i.prototype.readInt8=function(){return this._bin.getInt8(this._tmpPosition++)},i.prototype.readUint16=function(){var t=this._bin.getUint16(this._tmpPosition,!0);return this._tmpPosition+=2,t},i.prototype.readInt16=function(){var t=this._bin.getInt16(this._tmpPosition,!0);return this._tmpPosition+=2,t},i.prototype.readUint32=function(){var t=this._bin.getUint32(this._tmpPosition,!0);return this._tmpPosition+=4,t},i.prototype.readInt32=function(){var t=this._bin.getInt32(this._tmpPosition,!0);return this._tmpPosition+=4,t},i.prototype.readFixed16_16=function(){var t=this._bin.getInt32(this._tmpPosition,!0);return this._tmpPosition+=4,t/65536},i.prototype.readFixed1_7=function(){var t=255&this._bin.getInt8(this._tmpPosition++);return t/128},i.prototype.readString=function(){for(var t=[],e=this._bin.getUint8(this._tmpPosition++)-1;e>=0;e--)t.push(this._bin.getUint8(this._tmpPosition++));return String.fromCharCode.apply(null,t)},i.prototype.getNodes=function(e){return new t.NodeListBin(this,this.getSubNodesOfElementType(1,this._elements[e]))},i.prototype.getNodesForElement=function(e,i){return new t.NodeListBin(this,this.getSubNodesOfElementType(e,this._elements[i]))},i.prototype.getSubNodesOfElementType=function(t,e){var i=[],n=this._bin.getUint8(t+1);t+=2;for(var r=0;n>r;r++){var o=this._smallOffset?this._bin.getUint16(t+2*r,!0):this._bin.getUint32(t+4*r,!0),s=this._bin.getUint8(t+o);s===e&&i.push(t+o)}return i},i.prototype.getAttribsPosition=function(t){var e=this._bin.getUint8(t+1);return t+2+e*(this._smallOffset?2:4)},i.prototype.getFolder=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r="",o=this._bin.getUint8(this._tmpPosition++)-1;o>=0;o--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_FOLDER_ID:n=this.readUint8();break;case i.ATTR_FOLDER_NAME:r=this.readString()}return new t.Folder(n,r)},i.prototype.getFile=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r="",o=0,s=0,a=this._bin.getUint8(this._tmpPosition++)-1;a>=0;a--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_FILE_ID:n=this.readUint8();break;case i.ATTR_FILE_NAME:r=this.readString();break;case i.ATTR_FILE_PIVOT_X:o=this.readFixed16_16();break;case i.ATTR_FILE_PIVOT_Y:s=this.readFixed16_16();break;case i.ATTR_FILE_WIDTH:case i.ATTR_FILE_HEIGHT:this._tmpPosition+=2}return new t.File(n,this.getFileName(r),o,1-s)},i.prototype.getTag=function(t){return null},i.prototype.getEntity=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r="",o=this._bin.getUint8(this._tmpPosition++)-1;o>=0;o--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_ENTITY_ID:n=this.readUint8();break;case i.ATTR_ENTITY_NAME:r=this.readString()}return new t.Entity(n,r)},i.prototype.getObjectInfo=function(e,n){this._tmpPosition=this.getAttribsPosition(e);for(var r="",o=0,s=0,a=0,p=this._bin.getUint8(this._tmpPosition++)-1;p>=0;p--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_OBJ_INFO_NAME:r=this.readString();break;case i.ATTR_OBJ_INFO_TYPE:1===this.readUint8()&&(o=1);break;case i.ATTR_OBJ_INFO_WIDTH:s=this.readFixed16_16();break;case i.ATTR_OBJ_INFO_HEIGHT:a=this.readFixed16_16()}return new t.ObjectInfo(n,r,o,s,a,0,0)},i.prototype.getCharMap=function(t){return null},i.prototype.getCharMapEntry=function(t,e,i){return null},i.prototype.getVariable=function(t){return null},i.prototype.getAnimation=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r="",o=0,s=t.eAnimationLooping.LOOPING,a=this._bin.getUint8(this._tmpPosition++)-1;a>=0;a--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_ANIMATION_ID:n=this.readUint8();break;case i.ATTR_ANIMATION_NAME:r=this.readString();break;case i.ATTR_ANIMATION_LENGTH:o=this.readUint32();break;case i.ATTR_ANIMATION_INTERVAL:this._tmpPosition+=2;break;case i.ATTR_ANIMATION_LOOPING:s=1===this.readUint8()?t.eAnimationLooping.LOOPING:t.eAnimationLooping.NO_LOOPING}return new t.Animation(n,r,o,s)},i.prototype.getMainlineKey=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r=0,o=this._bin.getUint8(this._tmpPosition++)-1;o>=0;o--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_MAINLINE_KEY_ID:n=this.readUint8();break;case i.ATTR_MAINLINE_KEY_TIME:r=this.readUint32()}return new t.KeyMainline(n,r)},i.prototype.getRef=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r=-1,o=0,s=0,a=0,p=this._bin.getUint8(this._tmpPosition++)-1;p>=0;p--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_BONE_REF_ID:case i.ATTR_OBJ_REF_ID:n=this.readUint8();break;case i.ATTR_BONE_REF_PARENT:case i.ATTR_OBJ_REF_PARENT:r=this.readUint8();break;case i.ATTR_BONE_REF_TIMELINE:case i.ATTR_OBJ_REF_TIMELINE:o=this.readUint8();break;case i.ATTR_BONE_REF_KEY:case i.ATTR_OBJ_REF_KEY:s=this.readUint8();break;case i.ATTR_OBJ_REF_Z:a=this.readUint8();break;case i.ATTR_OBJ_REF_NAME:this.readString();break;case i.ATTR_OBJ_REF_FOLDER:case i.ATTR_OBJ_REF_FILE:++this._tmpPosition;break;case i.ATTR_OBJ_REF_ABS_X:case i.ATTR_OBJ_REF_ABS_Y:case i.ATTR_OBJ_REF_ABS_PIVOT_X:case i.ATTR_OBJ_REF_ABS_PIVOT_Y:case i.ATTR_OBJ_REF_ABS_SCALE_X:case i.ATTR_OBJ_REF_ABS_SCALE_Y:case i.ATTR_OBJ_REF_ANGLE:this._tmpPosition+=4;break;case i.ATTR_OBJ_REF_ALPHA:++this._tmpPosition}return new t.Ref(n,r,o,s,a)},i.prototype.getTimeline=function(e){this._tmpPosition=this.getAttribsPosition(e);for(var n=0,r="",o=0,s=0,a=this._bin.getUint8(this._tmpPosition++)-1;a>=0;a--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_TIMELINE_ID:n=this.readUint8();break;case i.ATTR_TIMELINE_NAME:r=this.readString();break;case i.ATTR_TIMELINE_OBJ:o=this.readUint8();break;case i.ATTR_TIMELINE_OBJ_TYPE:1===this.readUint8()&&(s=1)}return new t.Timeline(n,r,s,o)},i.prototype.getBaseline=function(t){return null},i.prototype.getVarline=function(t){return null},i.prototype.getKey=function(t){return null},i.prototype.getTagKey=function(t){return null},i.prototype.getVariableKey=function(t,e){return null},i.prototype.getTimelineKey=function(e,n,r){this._tmpPosition=this.getAttribsPosition(e);for(var o=0,s=1,a=0,p=0,h=0,l=0,_=0,u=this._bin.getUint8(this._tmpPosition++)-1;u>=0;u--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_TIMELINE_KEY_ID:++this._tmpPosition;break;case i.ATTR_TIMELINE_KEY_TIME:o=this.readUint32();break;case i.ATTR_TIMELINE_KEY_SPIN:s=this.readInt8();break;case i.ATTR_TIMELINE_KEY_CURVE:a=this.readUint8();break;case i.ATTR_TIMELINE_KEY_C1:p=this.readFixed1_7();break;case i.ATTR_TIMELINE_KEY_C2:h=this.readFixed1_7()}e+=2;var f=e+(this._smallOffset?this._bin.getUint16(e,!0):this._bin.getUint32(e,!0)),c=this._bin.getUint8(f),d=null,y=!1;14===c?d=new t.KeyBone(n,o,s):15===c&&(d=new t.KeyObject(n,o,s),y=!0),0!==a&&d.setCurve(a,p,h,l,_),this._tmpPosition=this.getAttribsPosition(f);var g=d.info;g.x=0,g.y=0,g.scaleX=1,g.scaleY=1,g.angle=0,g.alpha=1;for(var m=0,T=!1,b=0,I=!1,v=0,N=0,u=this._bin.getUint8(this._tmpPosition++)-1;u>=0;u--)switch(this._bin.getUint8(this._tmpPosition++)){case i.ATTR_BONE_X:case i.ATTR_OBJ_X:g.x=this.readFixed16_16();break;case i.ATTR_BONE_Y:case i.ATTR_OBJ_Y:g.y=-this.readFixed16_16();break;case i.ATTR_BONE_ANGLE:case i.ATTR_OBJ_ANGLE:g.angle=360-this.readFixed16_16();break;case i.ATTR_BONE_SCALE_X:case i.ATTR_OBJ_SCALE_X:g.scaleX=this.readFixed16_16();break;case i.ATTR_BONE_SCALE_Y:case i.ATTR_OBJ_SCALE_Y:g.scaleY=this.readFixed16_16();break;case i.ATTR_OBJ_FOLDER:v=this.readUint8();break;case i.ATTR_OBJ_FILE:N=this.readUint8();break;case i.ATTR_OBJ_PIVOT_X:m=this.readFixed16_16(),T=!0;break;case i.ATTR_OBJ_PIVOT_Y:b=this.readFixed16_16(),I=!0;break;case i.ATTR_OBJ_ALPHA:g.alpha=this.readFixed1_7()}if(y){d.setFolderAndFile(v,N);var E=r.getFolderById(v).getFileById(N);g.pivotX=T?m:E.pivotX,g.pivotY=1-(I?b:1-E.pivotY)}return d},i.prototype.getTagChange=function(t){return null},i.ATTR_VERSION=0,i.ATTR_GENERATOR=1,i.ATTR_GENERATOR_VERSION=2,i.ATTR_FOLDER_ID=0,i.ATTR_FOLDER_NAME=1,i.ATTR_FILE_ID=0,i.ATTR_FILE_NAME=1,i.ATTR_FILE_WIDTH=2,i.ATTR_FILE_HEIGHT=3,i.ATTR_FILE_PIVOT_X=4,i.ATTR_FILE_PIVOT_Y=5,i.ATTR_ENTITY_ID=0,i.ATTR_ENTITY_NAME=1,i.ATTR_OBJ_INFO_NAME=0,i.ATTR_OBJ_INFO_TYPE=1,i.ATTR_OBJ_INFO_WIDTH=2,i.ATTR_OBJ_INFO_HEIGHT=3,i.ATTR_FRAMES_I_FOLDER=0,i.ATTR_FRAMES_I_FILE=1,i.ATTR_ANIMATION_ID=0,i.ATTR_ANIMATION_NAME=1,i.ATTR_ANIMATION_LENGTH=2,i.ATTR_ANIMATION_INTERVAL=3,i.ATTR_ANIMATION_LOOPING=4,i.ATTR_MAINLINE_KEY_ID=0,i.ATTR_MAINLINE_KEY_TIME=1,i.ATTR_BONE_REF_ID=0,i.ATTR_BONE_REF_PARENT=1,i.ATTR_BONE_REF_TIMELINE=2,i.ATTR_BONE_REF_KEY=3,i.ATTR_OBJ_REF_ID=4,i.ATTR_OBJ_REF_PARENT=5,i.ATTR_OBJ_REF_TIMELINE=6,i.ATTR_OBJ_REF_KEY=7,i.ATTR_OBJ_REF_NAME=8,i.ATTR_OBJ_REF_Z=9,i.ATTR_OBJ_REF_FOLDER=10,i.ATTR_OBJ_REF_FILE=11,i.ATTR_OBJ_REF_ABS_X=12,i.ATTR_OBJ_REF_ABS_Y=13,i.ATTR_OBJ_REF_ABS_PIVOT_X=14,i.ATTR_OBJ_REF_ABS_PIVOT_Y=15,i.ATTR_OBJ_REF_ABS_SCALE_X=16,i.ATTR_OBJ_REF_ABS_SCALE_Y=17,i.ATTR_OBJ_REF_ANGLE=18,i.ATTR_OBJ_REF_ALPHA=19,i.ATTR_TIMELINE_ID=0,i.ATTR_TIMELINE_NAME=1,i.ATTR_TIMELINE_OBJ=2,i.ATTR_TIMELINE_OBJ_TYPE=3,i.ATTR_TIMELINE_KEY_ID=0,i.ATTR_TIMELINE_KEY_TIME=1,i.ATTR_TIMELINE_KEY_SPIN=2,i.ATTR_TIMELINE_KEY_CURVE=3,i.ATTR_TIMELINE_KEY_C1=4,i.ATTR_TIMELINE_KEY_C2=5,i.ATTR_BONE_X=0,i.ATTR_BONE_Y=1,i.ATTR_BONE_ANGLE=2,i.ATTR_BONE_SCALE_X=3,i.ATTR_BONE_SCALE_Y=4,i.ATTR_OBJ_FOLDER=5,i.ATTR_OBJ_FILE=6,i.ATTR_OBJ_X=7,i.ATTR_OBJ_Y=8,i.ATTR_OBJ_SCALE_X=9,i.ATTR_OBJ_SCALE_Y=10,i.ATTR_OBJ_PIVOT_X=11,i.ATTR_OBJ_PIVOT_Y=12,i.ATTR_OBJ_ANGLE=13,i.ATTR_OBJ_ALPHA=14,i}(t.SpriterFile);t.SpriterBin=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(t,i){e.call(this,i),this._json=t;var n=void 0!==t.min;this.setMinimized(n)}return __extends(i,e),i.prototype.getType=function(){return t.eFileType.JSON},i.prototype.parseInt=function(t,e,i){void 0===i&&(i=0);var n=t[this.translateAttributeName(e)];return void 0===n?i:"number"==typeof n?n:parseInt(n)},i.prototype.parseFloat=function(t,e,i){void 0===i&&(i=0);var n=t[this.translateAttributeName(e)];return void 0===n?i:"number"==typeof n?n:parseFloat(n)},i.prototype.parseBoolean=function(t,e,i){void 0===i&&(i=!1);var n=t[this.translateAttributeName(e)];return void 0===n?i:"boolean"==typeof n?n:"true"===n},i.prototype.parseString=function(t,e,i){void 0===i&&(i="");var n=t[this.translateAttributeName(e)];return void 0===n?i:n},i.prototype.getNodes=function(e){this.setMinDefsToElementName(e);var i=this.translateElementName(e);return new t.NodeListJSON(this,void 0!==this._json[i]?this._json[i]:[])},i.prototype.getNodesForElement=function(e,i){this.setMinDefsToElementName(i);var n=this.translateElementName(i);return new t.NodeListJSON(this,void 0!==e[n]?e[n]:[])},i.prototype.getFolder=function(e){return new t.Folder(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getFile=function(e){return void 0!==e.type&&"sound"===e.type?null:new t.File(this.parseInt(e,"id"),this.getFileName(this.parseString(e,"name")),this.parseFloat(e,"pivot_x"),1-this.parseFloat(e,"pivot_y"))},i.prototype.getTag=function(e){return new t.Item(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getEntity=function(e){return new t.Entity(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getObjectInfo=function(e,i){return new t.ObjectInfo(i,this.parseString(e,"name"),t.Types.getObjectTypeForName(this.parseString(e,"type")),this.parseFloat(e,"w"),this.parseFloat(e,"h"),this.parseFloat(e,"pivot_x"),this.parseFloat(e,"pivot_y"))},i.prototype.getCharMap=function(e){return new t.CharMap(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getCharMapEntry=function(t,e,i){var n=i.getFolderById(this.parseInt(t,"folder")).getFileById(this.parseInt(t,"file")).name,r=null;void 0!==t.target_folder&&void 0!==t.target_file&&(r=i.getFolderById(this.parseInt(t,"target_folder")).getFileById(this.parseInt(t,"target_file"))),e.put(n,r)},i.prototype.getVariable=function(e){var i=t.Types.getVariableTypeForName(this.parseString(e,"type"));return new t.Variable(this.parseInt(e,"id"),this.parseString(e,"name"),i,2===i?this.parseString(e,"default"):this.parseFloat(e,"default",0))},i.prototype.getAnimation=function(e){return new t.Animation(this.parseInt(e,"id"),this.parseString(e,"name"),this.parseFloat(e,"length"),this.parseBoolean(e,"looping",!0)===!0?t.eAnimationLooping.LOOPING:t.eAnimationLooping.NO_LOOPING)},i.prototype.getMainlineKey=function(e){return new t.KeyMainline(this.parseInt(e,"id"),this.parseFloat(e,"time"))},i.prototype.getRef=function(e){return new t.Ref(this.parseInt(e,"id"),this.parseInt(e,"parent",-1),this.parseInt(e,"timeline"),this.parseInt(e,"key"),this.parseInt(e,"z_index"))},i.prototype.getTimeline=function(e){return new t.Timeline(this.parseInt(e,"id"),this.parseString(e,"name"),t.Types.getObjectTypeForName(this.parseString(e,"object_type","sprite")),this.parseInt(e,"obj",-1))},i.prototype.getBaseline=function(e){return new t.Baseline(this.parseInt(e,"id"),this.parseString(e,"name",null))},i.prototype.getVarline=function(e){return new t.Varline(this.parseInt(e,"id"),this.parseInt(e,"def"))},i.prototype.getKey=function(e){return new t.Key(this.parseInt(e,"id"),this.parseInt(e,"time"))},i.prototype.getTagKey=function(e){return new t.KeyTag(this.parseInt(e,"id"),this.parseInt(e,"time"))},i.prototype.getVariableKey=function(e,i){return new t.KeyVariable(this.parseInt(e,"id"),this.parseInt(e,"time"),2===i?this.parseString(e,"val"):this.parseFloat(e,"val"))},i.prototype.getTimelineKey=function(e,i,n){var r=this.parseInt(e,"time"),o=this.parseInt(e,"spin",1),s=this.parseString(e,"curve_type","linear"),a=this.parseFloat(e,"c1",0),p=this.parseFloat(e,"c2",0),h=this.parseFloat(e,"c3",0),l=this.parseFloat(e,"c4",0),_=this.translateChildElementName("bone"),u=this.translateChildElementName("object"),f=null,c=null,d=!1;void 0!==e[_]?(c=e[_],f=new t.KeyBone(i,r,o),this.setMinDefsToElementName("bone")):void 0!==e[u]&&(c=e[u],f=new t.KeyObject(i,r,o),this.setMinDefsToElementName("object"),d=!0),"linear"!==s&&f.setCurve(t.Types.getCurveTypeForName(s),a,p,h,l);var y=f.info;if(y.x=this.parseFloat(c,"x"),y.y=-this.parseFloat(c,"y"),y.scaleX=this.parseFloat(c,"scale_x",1),y.scaleY=this.parseFloat(c,"scale_y",1),y.angle=360-this.parseFloat(c,"angle"),y.alpha=this.parseFloat(c,"a",1),d){var g=this.parseInt(c,"folder"),m=this.parseInt(c,"file");f.setFolderAndFile(g,m);var T=n.getFolderById(g).getFileById(m);y.pivotX=this.parseFloat(c,"pivot_x",T.pivotX),y.pivotY=1-this.parseFloat(c,"pivot_y",1-T.pivotY)}return this.popMinDefsStack(),f},i.prototype.getTagChange=function(t){return this.parseInt(t,"t")},i}(t.SpriterFile);t.SpriterJSON=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(t,i){e.call(this,i),this._xml=t;var n=t.documentElement.hasAttribute("min");this.setMinimized(n)}return __extends(i,e),i.prototype.getType=function(){return t.eFileType.XML},i.prototype.parseInt=function(t,e,i){void 0===i&&(i=0);var n=t.getAttribute(this.translateAttributeName(e));return null!==n?parseInt(n):i},i.prototype.parseFloat=function(t,e,i){void 0===i&&(i=0);var n=t.getAttribute(this.translateAttributeName(e));return null!==n?parseFloat(n):i},i.prototype.parseString=function(t,e,i){void 0===i&&(i="");var n=t.getAttribute(this.translateAttributeName(e));return null!==n?n:i},i.prototype.getNodes=function(e){this.setMinDefsToElementName(e);var i=this.translateElementName(e);return new t.NodeListXml(this,this._xml.documentElement.getElementsByTagName(i))},i.prototype.getNodesForElement=function(e,i){this.setMinDefsToElementName(i);var n=this.translateElementName(i);return new t.NodeListXml(this,e.getElementsByTagName(n))},i.prototype.getFolder=function(e){return new t.Folder(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getFile=function(e){return e.hasAttribute("type")&&"sound"===e.getAttribute("type")?null:new t.File(this.parseInt(e,"id"),this.getFileName(this.parseString(e,"name")),this.parseFloat(e,"pivot_x"),1-this.parseFloat(e,"pivot_y"))},i.prototype.getTag=function(e){return new t.Item(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getEntity=function(e){return new t.Entity(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getObjectInfo=function(e,i){return new t.ObjectInfo(i,this.parseString(e,"name"),t.Types.getObjectTypeForName(this.parseString(e,"type")),this.parseFloat(e,"w"),this.parseFloat(e,"h"),this.parseFloat(e,"pivot_x"),this.parseFloat(e,"pivot_y"))},i.prototype.getCharMap=function(e){return new t.CharMap(this.parseInt(e,"id"),this.parseString(e,"name"))},i.prototype.getCharMapEntry=function(t,e,i){var n=i.getFolderById(this.parseInt(t,"folder")).getFileById(this.parseInt(t,"file")).name,r=null;t.hasAttribute("target_folder")&&t.hasAttribute("target_file")&&(r=i.getFolderById(this.parseInt(t,"target_folder")).getFileById(this.parseInt(t,"target_file"))),e.put(n,r)},i.prototype.getVariable=function(e){var i=t.Types.getVariableTypeForName(this.parseString(e,"type"));return new t.Variable(this.parseInt(e,"id"),this.parseString(e,"name"),i,2===i?this.parseString(e,"default"):this.parseFloat(e,"default",0))},i.prototype.getAnimation=function(e){return new t.Animation(this.parseInt(e,"id"),this.parseString(e,"name"),this.parseFloat(e,"length"),"true"===this.parseString(e,"looping","true")?t.eAnimationLooping.LOOPING:t.eAnimationLooping.NO_LOOPING)},i.prototype.getMainlineKey=function(e){return new t.KeyMainline(this.parseInt(e,"id"),this.parseFloat(e,"time"))},i.prototype.getRef=function(e){return new t.Ref(this.parseInt(e,"id"),this.parseInt(e,"parent",-1),this.parseInt(e,"timeline"),this.parseInt(e,"key"),this.parseInt(e,"z_index"))},i.prototype.getTimeline=function(e){return new t.Timeline(this.parseInt(e,"id"),this.parseString(e,"name"),t.Types.getObjectTypeForName(this.parseString(e,"object_type","sprite")),this.parseInt(e,"obj",-1))},i.prototype.getBaseline=function(e){return new t.Baseline(this.parseInt(e,"id"),this.parseString(e,"name",null))},i.prototype.getVarline=function(e){return new t.Varline(this.parseInt(e,"id"),this.parseInt(e,"def"))},i.prototype.getKey=function(e){return new t.Key(this.parseInt(e,"id"),this.parseInt(e,"time"))},i.prototype.getTagKey=function(e){return new t.KeyTag(this.parseInt(e,"id"),this.parseInt(e,"time"))},i.prototype.getVariableKey=function(e,i){return new t.KeyVariable(this.parseInt(e,"id"),this.parseInt(e,"time"),2===i?this.parseString(e,"val"):this.parseFloat(e,"val"))},i.prototype.getTimelineKey=function(e,i,n){var r=this.parseInt(e,"time"),o=this.parseInt(e,"spin",1),s=this.parseString(e,"curve_type","linear"),a=this.parseFloat(e,"c1",0),p=this.parseFloat(e,"c2",0),h=this.parseFloat(e,"c3",0),l=this.parseFloat(e,"c4",0),_=this.translateChildElementName("bone"),u=this.translateChildElementName("object"),f=null,c=e.firstElementChild,d=!1;c.tagName===_?(f=new t.KeyBone(i,r,o),this.setMinDefsToElementName("bone")):c.tagName===u&&(this.setMinDefsToElementName("object"),f=new t.KeyObject(i,r,o),d=!0),"linear"!==s&&f.setCurve(t.Types.getCurveTypeForName(s),a,p,h,l);var y=f.info;if(y.x=this.parseFloat(c,"x"),y.y=-this.parseFloat(c,"y"),y.scaleX=this.parseFloat(c,"scale_x",1),y.scaleY=this.parseFloat(c,"scale_y",1),y.angle=360-this.parseFloat(c,"angle"),y.alpha=this.parseFloat(c,"a",1),d){var g=this.parseInt(c,"folder"),m=this.parseInt(c,"file");f.setFolderAndFile(g,m);var T=n.getFolderById(g).getFileById(m);y.pivotX=this.parseFloat(c,"pivot_x",T.pivotX),y.pivotY=1-this.parseFloat(c,"pivot_y",1-T.pivotY)}return this.popMinDefsStack(),f},i.prototype.getTagChange=function(t){return this.parseInt(t,"t")},i}(t.SpriterFile);t.SpriterXml=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e){this._id=t,this._name=e}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t}();t.Item=e}(Spriter||(Spriter={}));var Spriter;!function(t){!function(t){t[t.NO_LOOPING=0]="NO_LOOPING",t[t.LOOPING=1]="LOOPING"}(t.eAnimationLooping||(t.eAnimationLooping={}));var e=(t.eAnimationLooping,function(e){function i(i,n,r,o){e.call(this,i,n),this._length=r,this._loopType=o,this._timelines=new t.IdNameMap,this._lines=new t.IdNameMap}return __extends(i,e),Object.defineProperty(i.prototype,"mainline",{get:function(){return this._mainline},set:function(t){this._mainline=t},enumerable:!0,configurable:!0}),i.prototype.addTimeline=function(t){this._timelines.add(t,t.id,t.name)},i.prototype.getTimelineById=function(t){return this._timelines.getById(t);
},i.prototype.getTimelineByName=function(t){return this._timelines.getByName(t)},i.prototype.addLine=function(t){this._lines.add(t,this._lines.length,t.name)},i.prototype.getLineById=function(t){return this._lines.getById(t)},i.prototype.getLineByName=function(t){return this._lines.getByName(t)},Object.defineProperty(i.prototype,"linesLength",{get:function(){return this._lines.length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loopType",{get:function(){return this._loopType},enumerable:!0,configurable:!0}),i}(t.Item));t.Animation=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n){e.call(this,i,n),this._objectInfos=new t.IdNameMap,this._charMaps=new t.IdNameMap,this._variables=new t.IdNameMap,this._animations=new t.IdNameMap}return __extends(i,e),i.prototype.addObjectInfo=function(t){this._objectInfos.add(t,t.id,t.name)},i.prototype.getObjectInfoById=function(t){return this._objectInfos.getById(t)},i.prototype.getObjectInfoByName=function(t){return this._objectInfos.getByName(t)},i.prototype.addCharMap=function(t){this._charMaps.add(t,t.id,t.name)},i.prototype.getCharMapById=function(t){return this._charMaps.getById(t)},i.prototype.getCharMapByName=function(t){return this._charMaps.getByName(t)},Object.defineProperty(i.prototype,"charMapsLength",{get:function(){return this._charMaps.length},enumerable:!0,configurable:!0}),i.prototype.addVariable=function(t){this._variables.add(t,t.id,t.name)},i.prototype.getVariableById=function(t){return this._variables.getById(t)},i.prototype.getVariableByName=function(t){return this._variables.getByName(t)},Object.defineProperty(i.prototype,"variablesLength",{get:function(){return this._variables.length},enumerable:!0,configurable:!0}),i.prototype.addAnimation=function(t){this._animations.add(t,t.id,t.name)},i.prototype.getAnimationById=function(t){return this._animations.getById(t)},i.prototype.getAnimationByName=function(t){return this._animations.getByName(t)},Object.defineProperty(i.prototype,"animationsLength",{get:function(){return this._animations.length},enumerable:!0,configurable:!0}),i}(t.Item);t.Entity=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(e,i,n,r){t.call(this,e,i),this._pivotX=n,this._pivotY=r}return __extends(e,t),Object.defineProperty(e.prototype,"pivotX",{get:function(){return this._pivotX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivotY",{get:function(){return this._pivotY},enumerable:!0,configurable:!0}),e}(t.Item);t.File=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n){e.call(this,i,n),this._files=new t.IdNameMap}return __extends(i,e),i.prototype.addFile=function(t){this._files.add(t,t.id,t.name)},i.prototype.getFileById=function(t){return this._files.getById(t)},i.prototype.getFileByName=function(t){return this._files.getByName(t)},i}(t.Item);t.Folder=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(){t.apply(this,arguments)}return __extends(e,t),e.prototype.put=function(t,e){void 0===this._map&&(this._map={}),void 0!==this._map[t],this._map[t]=e},e.prototype.value=function(t){return this._map[t]},e}(t.Item);t.CharMap=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t){this._stack=[],this._length=0,this._entity=t}return t.prototype.reset=function(){this._length=0},t.prototype.push=function(t){var e=this.getCharMap(t);this._stack[this._length++]=e},t.prototype.remove=function(t){var e=this.getCharMap(t),i=this.findCharMap(e);if(-1!==i){for(var n=i;n<this._length-2;n++)this._stack[n]=this._stack[n+1];this._stack[--this._length]=null}},t.prototype.getFile=function(t){for(var e=this._length-1;e>=0;e--){var i=this._stack[e].value(t.name);if(void 0!==i)return i}return t},t.prototype.getCharMap=function(t){var e=this._entity.getCharMapByName(t);return e},t.prototype.findCharMap=function(t){for(var e=0;e<this._length;e++)if(this._stack[e]===t)return e;return-1},t}();t.CharMapStack=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e){this._id=t,this._time=e}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},enumerable:!0,configurable:!0}),t}();t.Key=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(){t.apply(this,arguments),this._boneRefs=[],this._objectRefs=[]}return __extends(e,t),Object.defineProperty(e.prototype,"boneRefs",{get:function(){return this._boneRefs},enumerable:!0,configurable:!0}),e.prototype.addBoneRef=function(t){this._boneRefs.push(t)},Object.defineProperty(e.prototype,"objectRefs",{get:function(){return this._objectRefs},enumerable:!0,configurable:!0}),e.prototype.addObjectRef=function(t){this._objectRefs.push(t)},e}(t.Key);t.KeyMainline=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(){t.apply(this,arguments)}return __extends(e,t),Object.defineProperty(e.prototype,"tagsOn",{get:function(){return this._tagsOn},set:function(t){this._tagsOn=t},enumerable:!0,configurable:!0}),e}(t.Key);t.KeyTag=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(e,i,n){t.call(this,e,i),this._value=n}return __extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}(t.Key);t.KeyVariable=e}(Spriter||(Spriter={}));var Spriter;!function(t){!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.MAIN_LINE=1]="MAIN_LINE",t[t.TIME_LINE=2]="TIME_LINE",t[t.SOUND_LINE=3]="SOUND_LINE",t[t.EVENT_LINE=4]="EVENT_LINE",t[t.TAG_LINE=5]="TAG_LINE",t[t.VAR_LINE=6]="VAR_LINE"}(t.eTimelineType||(t.eTimelineType={}));var e=t.eTimelineType,i=function(t){function i(i,n){void 0===n&&(n=null),t.call(this,i,n),this._type=e.UNKNOWN}return __extends(i,t),Object.defineProperty(i.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keys",{get:function(){return this._keys},enumerable:!0,configurable:!0}),i.prototype.add=function(t){(null===this._keys||void 0===this._keys)&&(this._keys=[]),this._keys.push(t)},i.prototype.at=function(t,e){if(void 0===e&&(e=!0),0>t)return null;var i=this._keys.length;return t>=i&&(e?t%=i:t=i-1),this._keys[t]},i}(t.Item);t.Baseline=i}(Spriter||(Spriter={}));var Spriter;!function(t){function e(t,e,i){return(e-t)*i+t}function i(t,i,n,r){return e(e(t,i,r),e(i,n,r),r)}function n(t,n,r,o,s){return e(i(t,n,r,s),i(n,r,o,s),s)}function r(t,i,r,o,s,a){return e(n(t,i,r,o,a),n(i,r,o,s,a),a)}function o(t,i,n,o,s,a,p){return e(r(t,i,n,o,s,p),r(i,n,o,s,a,p),p)}function s(t,e,i){var n=1,r=1-i,o=i*i,s=r*r,a=o*i;return 0+3*s*i*t+3*r*o*e+a*n}function a(t,e,i,n,r){for(var o=.001,a=10,p=0,h=1,l=(h+p)/2,_=s(t,i,l),u=0;Math.abs(r-_)>o&&a>u;)r>_?p=l:h=l,l=(h+p)/2,_=s(t,i,l),++u;return s(e,n,l)}function p(t,e,i,n){return 0===i?t:(i>0?e>t&&(e-=360):t>e&&(e+=360),this.linear(t,e,n))}t.linear=e,t.quadratic=i,t.cubic=n,t.quartic=r,t.quintic=o,t.bezier=a,t.angleLinear=p}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(e,i,n,r){t.call(this,e,i),this._type=n,this._default=r,this.reset()}return __extends(e,t),e.prototype.clone=function(){return new e(this.id,this.name,this.type,this._default)},e.prototype.reset=function(){this.value=this._default},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){0===this._type?this._value=Math.floor(t):this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"int",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"float",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"string",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}(t.Item);t.Variable=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n){e.call(this,i,null),this._varDefId=n,this.type=t.eTimelineType.VAR_LINE}return __extends(i,e),Object.defineProperty(i.prototype,"varDefId",{get:function(){return this._varDefId},enumerable:!0,configurable:!0}),i}(t.Baseline);t.Varline=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(e,i,n,r,o,s,a){t.call(this,e,i),this._type=n,this._width=r,this._height=o,this._pivotX=s,this._pivotY=a}return __extends(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivotX",{get:function(){return this._pivotX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivotY",{get:function(){return this._pivotY},enumerable:!0,configurable:!0}),e}(t.Item);t.ObjectInfo=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(){}return t.getObjectTypeForName=function(e){var i=t.nameToObjectType[e];return i},t.getCurveTypeForName=function(e){var i=t.nameToCurveType[e];return i},t.getVariableTypeForName=function(e){var i=t.nameToVariableType[e];return i},t.nameToObjectType={sprite:0,bone:1,box:2,point:3,sound:4},t.nameToCurveType={instant:1,linear:0,quadratic:2,cubic:3,quartic:4,quintic:5,bezier:6},t.nameToVariableType={"int":0,"float":1,string:2},t}();t.Types=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(t,e,i,n,r){void 0===r&&(r=0),this.id=t,this.parent=e,this.timeline=i,this.key=n,this.z=r}return t}();t.Ref=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n,r,o){void 0===r&&(r=0),void 0===o&&(o=-1),e.call(this,i,n),this.type=t.eTimelineType.TIME_LINE,this._objectType=r,this._objectRef=o}return __extends(i,e),Object.defineProperty(i.prototype,"objectType",{get:function(){return this._objectType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"objectRef",{get:function(){return this._objectRef},enumerable:!0,configurable:!0}),i}(t.Baseline);t.Timeline=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n,r){e.call(this,i,n),this._info=new t.SpatialInfo,this._spin=r,this.setCurve(0)}return __extends(i,e),i.prototype.setCurve=function(t,e,i,n,r){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),this._curveType=t,this._c1=e,this._c2=i,this._c3=n,this._c4=r},Object.defineProperty(i.prototype,"spin",{get:function(){return this._spin},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"curveType",{get:function(){return this._curveType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"c1",{get:function(){return this._c1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"c2",{get:function(){return this._c2},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"c3",{get:function(){return this._c3},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"c4",{get:function(){return this._c4},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"info",{get:function(){return this._info},enumerable:!0,configurable:!0}),i}(t.Key);t.KeyTimeline=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function t(){this.x=0,this.y=0,this.scaleX=1,this.scaleY=1,this.pivotX=0,this.pivotY=0,this.alpha=1,this.angle=0}return t}();t.SpatialInfo=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(){t.apply(this,arguments)}return __extends(e,t),e.prototype.setFolderAndFile=function(t,e){this._folder=t,this._file=e},Object.defineProperty(e.prototype,"folder",{get:function(){return this._folder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"file",{get:function(){return this._file},enumerable:!0,configurable:!0}),e}(t.KeyTimeline);t.KeyObject=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(){t.apply(this,arguments)}return __extends(e,t),e}(t.KeyTimeline);t.KeyBone=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function e(){}return e.prototype.load=function(e){this._spriter=new t.Spriter,this._fileType=e.getType();var i=e.getNodes("folder");this.loadFolders(this._spriter,i),i.processed();var n=e.getNodes("tag_list");this.loadTags(this._spriter,n),n.processed();var r=e.getNodes("entity");return this.loadEntities(this._spriter,r),r.processed(),this._spriter},e.prototype.loadFolders=function(t,e){for(var i=0;i<e.length();i++){var n=e.getFolder(i),r=e.getChildNodes(i,"file");this.loadFiles(n,r),r.processed(),t.addFolder(n)}},e.prototype.loadFiles=function(t,e){for(var i=0;i<e.length();i++){var n=e.getFile(i);null!==n&&t.addFile(n)}},e.prototype.loadTags=function(e,i){if(0!==i.length()){var n;n=this._fileType!==t.eFileType.JSON?i.getChildNodes(0,"i"):i;for(var r=0;r<n.length();r++){var o=n.getTag(r);e.addTag(o)}this._fileType!==t.eFileType.JSON&&n.processed()}},e.prototype.loadEntities=function(t,e){for(var i=0;i<e.length();i++){var n=e.getEntity(i),r=e.getChildNodes(i,"obj_info");this.loadObjInfo(n,r),r.processed();var o=e.getChildNodes(i,"character_map");this.loadCharMaps(n,o),o.processed();var s=e.getChildNodes(i,"var_defs");this.loadVariables(n,s),s.processed();var a=e.getChildNodes(i,"animation");this.loadAnimations(n,a),a.processed(),t.addEntity(n)}},e.prototype.loadObjInfo=function(t,e){for(var i=0;i<e.length();i++){var n=e.getObjectInfo(i);t.addObjectInfo(n)}},e.prototype.loadCharMaps=function(t,e){for(var i=0;i<e.length();i++){var n=e.getCharMap(i),r=e.getChildNodes(i,"map");this.loadCharMapEntries(n,r),r.processed(),t.addCharMap(n)}},e.prototype.loadCharMapEntries=function(t,e){for(var i=0;i<e.length();i++)e.getCharMapEntry(i,t,this._spriter)},e.prototype.loadVariables=function(e,i){if(0!==i.length()){var n;n=this._fileType!==t.eFileType.JSON?i.getChildNodes(0,"i"):i;for(var r=0;r<n.length();r++){var o=n.getVariable(r);e.addVariable(o)}this._fileType!==t.eFileType.JSON&&n.processed()}},e.prototype.loadAnimations=function(e,i){for(var n=0;n<i.length();n++){var r=i.getAnimation(n),o=i.getChildNodes(n,"mainline");this.loadMainline(r,o),o.processed();var s=i.getChildNodes(n,"timeline");this.loadTimelines(r,s),s.processed();var a=i.getChildNodes(n,"soundline");this.loadSoundlines(r,a),a.processed();var p=i.getChildNodes(n,"eventline");this.loadEventlines(r,p),p.processed();var h=i.getChildNodes(n,"meta");if(h.length()>0){var l=h.getChildNodes(0,this._fileType!==t.eFileType.JSON?"varline":"valline");this.loadVarlines(e,r,l),l.processed();var _=h.getChildNodes(0,"tagline");this.loadTaglines(r,_),_.processed()}h.processed(),e.addAnimation(r)}},e.prototype.loadMainline=function(e,i){var n=i.getMainline(0);n.type=t.eTimelineType.MAIN_LINE;var r=i.getChildNodes(0,"key");this.loadMainlineKeys(n,r),r.processed(),e.mainline=n},e.prototype.loadMainlineKeys=function(t,e){for(var i=0;i<e.length();i++){for(var n=e.getMainlineKey(i),r=e.getChildNodes(i,"bone_ref"),o=0;o<r.length();o++)n.addBoneRef(r.getRef(o));r.processed();for(var s=e.getChildNodes(i,"object_ref"),a=0;a<s.length();a++)n.addObjectRef(s.getRef(a));s.processed(),t.add(n)}},e.prototype.loadTimelines=function(t,e){for(var i=0;i<e.length();i++){var n=e.getTimeline(i),r=e.getChildNodes(i,"key");this.loadTimelineKeys(n,r),r.processed(),t.addTimeline(n)}},e.prototype.loadTimelineKeys=function(t,e){for(var i=0;i<e.length();i++){var n=e.getTimelineKey(i,this._spriter);t.add(n)}},e.prototype.loadSoundlines=function(e,i){for(var n=0;n<i.length();n++){var r=i.getSoundline(n);r.type=t.eTimelineType.SOUND_LINE;var o=i.getChildNodes(n,"key");this.loadKeys(r,o),o.processed(),e.addLine(r)}},e.prototype.loadKeys=function(t,e){for(var i=0;i<e.length();i++){var n=e.getKey(i);t.add(n)}},e.prototype.loadEventlines=function(e,i){for(var n=0;n<i.length();n++){var r=i.getEventline(n);r.type=t.eTimelineType.EVENT_LINE;var o=i.getChildNodes(n,"key");this.loadKeys(r,o),o.processed(),e.addLine(r)}},e.prototype.loadTaglines=function(e,i){for(var n=0;n<i.length();n++){var r=i.getTagline(n);r.type=t.eTimelineType.TAG_LINE;var o=i.getChildNodes(n,"key");this.loadTagKeys(r,o),o.processed(),e.addLine(r)}},e.prototype.loadTagKeys=function(t,e){for(var i=0;i<e.length();i++){var n=e.getTagKey(i),r=e.getChildNodes(i,"tag"),o=r.getTagChanges(this._spriter);r.processed(),n.tagsOn=o,t.add(n)}},e.prototype.loadVarlines=function(t,e,i){for(var n=0;n<i.length();n++){var r=i.getVarline(n),o=t.getVariableById(r.varDefId).type,s=i.getChildNodes(n,"key");this.loadVariableKeys(r,s,o),s.processed(),e.addLine(r)}},e.prototype.loadVariableKeys=function(t,e,i){for(var n=0;n<e.length();n++){var r=e.getVariableKey(n,i);t.add(r)}},e}();t.Loader=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function e(){this._folders=new t.IdNameMap,this._tags=new t.IdNameMap,this._entities=new t.IdNameMap}return e.prototype.addFolder=function(t){this._folders.add(t,t.id,t.name)},e.prototype.getFolderById=function(t){return this._folders.getById(t)},e.prototype.getFolderByName=function(t){return this._folders.getByName(t)},e.prototype.addEntity=function(t){this._entities.add(t,t.id,t.name)},e.prototype.getEntityById=function(t){return this._entities.getById(t)},e.prototype.getEntityByName=function(t){return this._entities.getByName(t)},e.prototype.addTag=function(t){this._tags.add(t,t.id,t.name)},e.prototype.getTagById=function(t){return this._tags.getById(t)},e.prototype.getTagByName=function(t){return this._tags.getByName(t)},Object.defineProperty(e.prototype,"tagsLength",{get:function(){return this._tags.length},enumerable:!0,configurable:!0}),e}();t.Spriter=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(){function e(){this.timeline=-1,this.timelineKey=-1,this.transformed=new t.SpatialInfo}return e.prototype.setOn=function(t){this._on=t},Object.defineProperty(e.prototype,"on",{get:function(){return this._on},enumerable:!0,configurable:!0}),e.prototype.setKey=function(i,n,r,o){this.timeline=r,this.timelineKey=o;var s=n.getTimelineById(r);this.name=s.name,this.objectInfo=-1===s.objectRef?null:i.getObjectInfoById(s.objectRef);var a=s.at(o),p=s.at(o+1,n.loopType!==t.eAnimationLooping.NO_LOOPING);this.key=a,this.timeFrom=a.time,this.timeTo=p.time,this.timeTo<this.timeFrom&&(this.timeTo=n.length),this.from=a.info,this.to=p.info,this.updateMask=0,Math.abs(this.from.x-this.to.x)>.001&&(this.updateMask+=e.UPDATE_X),Math.abs(this.from.y-this.to.y)>.001&&(this.updateMask+=e.UPDATE_Y),Math.abs(this.from.scaleX-this.to.scaleX)>.001&&(this.updateMask+=e.UPDATE_SCALE_X),Math.abs(this.from.scaleY-this.to.scaleY)>.001&&(this.updateMask+=e.UPDATE_SCALE_Y),Math.abs(this.from.pivotX-this.to.pivotX)>.001&&(this.updateMask+=e.UPDATE_PIVOT_X),Math.abs(this.from.pivotY-this.to.pivotY)>.001&&(this.updateMask+=e.UPDATE_PIVOT_Y),Math.abs(this.from.alpha-this.to.alpha)>.001&&(this.updateMask+=e.UPDATE_ALPHA),Math.abs(this.from.angle-this.to.angle)>.001&&(this.updateMask+=e.UPDATE_ANGLE),this.transformed.x=this.from.x,this.transformed.y=this.from.y,this.transformed.scaleX=this.from.scaleX,this.transformed.scaleY=this.from.scaleY,this.transformed.pivotX=this.from.pivotX,this.transformed.pivotY=this.from.pivotY,this.transformed.angle=this.from.angle,this.transformed.alpha=this.from.alpha},e.prototype.tween=function(i){var n=this.updateMask>0?this.getTweenTime(i):0;this.transformed.x=(this.updateMask&e.UPDATE_X)>0?t.linear(this.from.x,this.to.x,n):this.from.x,this.transformed.y=(this.updateMask&e.UPDATE_Y)>0?t.linear(this.from.y,this.to.y,n):this.from.y,this.transformed.scaleX=(this.updateMask&e.UPDATE_SCALE_X)>0?t.linear(this.from.scaleX,this.to.scaleX,n):this.from.scaleX,this.transformed.scaleY=(this.updateMask&e.UPDATE_SCALE_Y)>0?t.linear(this.from.scaleY,this.to.scaleY,n):this.from.scaleY,this.transformed.pivotX=(this.updateMask&e.UPDATE_PIVOT_X)>0?t.linear(this.from.pivotX,this.to.pivotX,n):this.from.pivotX,this.transformed.pivotY=(this.updateMask&e.UPDATE_PIVOT_Y)>0?t.linear(this.from.pivotY,this.to.pivotY,n):this.from.pivotY,this.transformed.alpha=(this.updateMask&e.UPDATE_ALPHA)>0?t.linear(this.from.alpha,this.to.alpha,n):this.from.alpha,this.transformed.angle=(this.updateMask&e.UPDATE_ANGLE)>0?t.angleLinear(this.from.angle,this.to.angle,this.key.spin,n):this.from.angle},e.prototype.update=function(t){this.transformed.angle*=Phaser.Math.sign(t.scaleX)*Phaser.Math.sign(t.scaleY),this.transformed.angle+=t.angle,this.transformed.scaleX*=t.scaleX,this.transformed.scaleY*=t.scaleY,this.scalePosition(t.scaleX,t.scaleY),this.rotatePosition(t.angle),this.translatePosition(t.x,t.y),this.transformed.alpha*=t.alpha},e.prototype.scalePosition=function(t,e){this.transformed.x*=t,this.transformed.y*=e},e.prototype.rotatePosition=function(t){var e=this.transformed.x,i=this.transformed.y;if(0!==e||0!==i){var n=t*(Math.PI/180),r=Math.cos(n),o=Math.sin(n);this.transformed.x=e*r-i*o,this.transformed.y=e*o+i*r}},e.prototype.translatePosition=function(t,e){this.transformed.x+=t,this.transformed.y+=e},e.prototype.getTweenTime=function(e){if(1===this.key.curveType)return 0;var i=Phaser.Math.clamp((e-this.timeFrom)/(this.timeTo-this.timeFrom),0,1);switch(this.key.curveType){case 0:return i;case 2:return t.quadratic(0,this.key.c1,1,i);case 3:return t.cubic(0,this.key.c1,this.key.c2,1,i);case 4:return t.quartic(0,this.key.c1,this.key.c2,this.key.c3,1,i);case 5:return t.quintic(0,this.key.c1,this.key.c2,this.key.c3,this.key.c4,1,i);case 6:return t.bezier(this.key.c1,this.key.c2,this.key.c3,this.key.c4,i)}return 0},e.UPDATE_X=1,e.UPDATE_Y=2,e.UPDATE_SCALE_X=4,e.UPDATE_SCALE_Y=8,e.UPDATE_PIVOT_X=16,e.UPDATE_PIVOT_Y=32,e.UPDATE_ANGLE=64,e.UPDATE_ALPHA=128,e}();t.SpriterBone=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(e){function i(i,n,r,o,s,a){e.call(this,i,null),this.onLoop=new Phaser.Signal,this.onFinish=new Phaser.Signal,this.onSound=new Phaser.Signal,this.onEvent=new Phaser.Signal,this.onTagChange=new Phaser.Signal,this.onVariableSet=new Phaser.Signal,this.onBoxUpdated=new Phaser.Signal,this.onPointUpdated=new Phaser.Signal,this._mainlineStepper=new t.LineStepper,this._lineSteppers=[],this._lineSteppersCount=0,this._bones=[],this._objects=[],this._tags=0,this._vars=[],this._paused=!1,this._spriter=n,this._entityName=o,this._entity=n.getEntityByName(o),this._textureKey=r,this._root=new t.SpatialInfo;for(var p=0;p<this._entity.variablesLength;p++)this._vars[p]=this._entity.getVariableById(p).clone();this._charMapStack=new t.CharMapStack(this._entity),void 0===a&&(a=100),this.setAnimationSpeedPercent(a),void 0===s||null===s?this.playAnimationById(0):"number"==typeof s?this.playAnimationById(s):this.playAnimationByName(s)}return __extends(i,e),Object.defineProperty(i.prototype,"spriter",{get:function(){return this._spriter},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"entity",{get:function(){return this._entity},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"charMapStack",{get:function(){return this._charMapStack},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paused",{get:function(){return this._paused},set:function(t){this._paused=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationsCount",{get:function(){return this._entity.animationsLength},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentAnimationName",{get:function(){return this._animationName},enumerable:!0,configurable:!0}),i.prototype.pushCharMap=function(t){this._charMapStack.push(t),this.resetSprites()},i.prototype.removeCharMap=function(t){this._charMapStack.remove(t),this.resetSprites()},i.prototype.clearCharMaps=function(){this._charMapStack.reset(),this.resetSprites()},i.prototype.resetSprites=function(){for(var t=0;t<this._objects.length;t++)this._objects[t].resetFile()},i.prototype.isTagOn=function(t){return this.isTagOnById(this._spriter.getTagByName(t).id)},i.prototype.isTagOnById=function(t){return(this._tags&1<<t)>0},i.prototype.getVariable=function(t){return this.getVariableById(this._entity.getVariableByName(t).id)},i.prototype.getVariableById=function(t){return this._vars[t]},i.prototype.getObject=function(t){for(var e=0;e<this._objects.length;e++){var i=this._objects[e];if(i.name===t)return i}return null},i.prototype.setAnimationSpeedPercent=function(t){void 0===t&&(t=100),this._animationSpeed=t/100},i.prototype.playAnimationById=function(t){var e=this._entity.getAnimationById(t);void 0!==e&&null!==e&&this.playAnimation(e)},i.prototype.playAnimationByName=function(t){var e=this._entity.getAnimationByName(t);void 0!==e&&null!==e&&this.playAnimation(e)},i.prototype.playAnimation=function(t){this._animationName=t.name,this._animation=t,this._finished=!1,this._mainlineStepper.reset(),this._mainlineStepper.line=this._animation.mainline,this._time=0,this.resetLines(),this._tags=0;for(var e=0;e<this._vars.length;e++)this._vars[e].reset();this.loadKeys(this._animation.mainline.at(0),!0),this.updateCharacter()},i.prototype.resetLines=function(){this._lineSteppersCount=0;for(var e=0;e<this._animation.linesLength;e++){var i=this._animation.getLineById(e);this._lineSteppersCount>=this._lineSteppers.length&&(this._lineSteppers[this._lineSteppersCount]=new t.LineStepper);var n=this._lineSteppers[this._lineSteppersCount++];n.reset(),n.line=i}},i.prototype.setBones=function(e,i){void 0===i&&(i=!1);for(var n=0;n<this._bones.length;n++)void 0!==this._bones[n]&&this._bones[n].setOn(!1);for(var n=0;n<e.length;n++){var r=e[n];if(void 0===this._bones[r.id]){var o=new t.SpriterBone;o.type=1,this._bones[r.id]=o}var s=this._bones[r.id];s.setOn(!0),s.parent=r.parent,(s.timelineKey!==r.key||s.timeline!==r.timeline||i)&&s.setKey(this._entity,this._animation,r.timeline,r.key)}},i.prototype.setObjects=function(e,i){void 0===i&&(i=!1);for(var n=0;n<this._objects.length;n++)void 0!==this._objects[n]&&this._objects[n].setOn(!1);for(var r=!1,n=0;n<e.length;n++){var o=e[n],s=null,a=null;void 0===this._objects[o.id]?(a=new Phaser.Sprite(this.game,0,0,this._textureKey),s=new t.SpriterObject(this,a),this._objects[o.id]=s,this.add(a)):(s=this._objects[o.id],a=s.sprite),s.parent=o.parent,s.type=this._animation.getTimelineById(o.timeline).objectType,0===s.type?(s.setOn(!0),s.sprite.z!==o.z&&(s.sprite.z=o.z,r=!0)):s.setOn(!0,!0),(s.timelineKey!==o.key||s.timeline!==o.timeline||i)&&s.setKey(this._entity,this._animation,o.timeline,o.key)}r&&this.sort()},i.prototype.loadKeys=function(t,e){void 0===e&&(e=!1),this.setBones(t.boneRefs,e),this.setObjects(t.objectRefs,e)},i.prototype.updateAnimation=function(){if(!this._paused&&!this._finished){var e=this._mainlineStepper;this._time>this._animation.length&&(this._animation.loopType===t.eAnimationLooping.NO_LOOPING?(this._time=this._animation.length,this._finished=!0):(this._time-=this._animation.length,this.onLoop.dispatch(this)));for(var i;null!==(i=e.step(this._time));)this.loadKeys(i),e.lastTime=i.time;this.updateCharacter(),this.updateLines(),this._finished&&this.onFinish.dispatch(this),this._time+=this.game.time.physicsElapsedMS*this._animationSpeed}},i.prototype.updateCharacter=function(){for(var t=0;t<this._bones.length;t++){var e=this._bones[t];if(e.on){var i=-1===e.parent?this._root:this._bones[e.parent].transformed;e.tween(this._time),e.update(i)}}for(var t=0;t<this._objects.length;t++){var n=this._objects[t];if(n.on){var i=-1===n.parent?this._root:this._bones[n.parent].transformed;n.tween(this._time),n.update(i),0===n.type?n.updateSprite():2===n.type?this.onBoxUpdated.dispatch(this,n):3===n.type&&this.onPointUpdated.dispatch(this,n)}}},i.prototype.updateLines=function(){for(var e=this._lineSteppersCount-1;e>=0;e--)for(var i,n=this._lineSteppers[e],r=n.line;null!==(i=n.step(this._time));){switch(r.type){case t.eTimelineType.SOUND_LINE:this.onSound.dispatch(this,r.name);break;case t.eTimelineType.EVENT_LINE:this.onEvent.dispatch(this,r.name);break;case t.eTimelineType.TAG_LINE:var o=i.tagsOn,s=this._tags^o;this._tags=o;for(var a=0;a<this._spriter.tagsLength;a++){var p=1<<a;s&p&&this.onTagChange.dispatch(this,this._spriter.getTagById(a).name,(o&p)>0)}break;case t.eTimelineType.VAR_LINE:var h=i.value,l=this._vars[r.varDefId];l.value=h,this.onVariableSet.dispatch(this,l)}n.lastTime=i.time}},i}(Phaser.Group);t.SpriterGroup=e}(Spriter||(Spriter={}));var Spriter;!function(t){var e=function(t){function e(e,i){t.call(this),this._spriter=e.spriter,this._charMapStack=e.charMapStack,this._sprite=i}return __extends(e,t),Object.defineProperty(e.prototype,"sprite",{get:function(){return this._sprite},enumerable:!0,configurable:!0}),e.prototype.setOn=function(e,i){void 0===i&&(i=!1),t.prototype.setOn.call(this,e),this._sprite.exists=e&&!i,this._sprite.visible=e&&!this._hide&&!i},e.prototype.setKey=function(e,i,n,r){if(t.prototype.setKey.call(this,e,i,n,r),0===this.type){var o=this.key,s=this._spriter.getFolderById(o.folder).getFileById(o.file);this._file=s,this.setFile(s)}else this._file=null},e.prototype.resetFile=function(){0===this.type&&this.setFile(this._file)},e.prototype.setFile=function(t){t=this._charMapStack.getFile(t),null!==t?(this._hide=!1,this._sprite.frameName=t.name):(this._hide=!0,this._sprite.visible=!1)},e.prototype.updateSprite=function(){var t=this.transformed,e=this.sprite;e.position.set(t.x,t.y),e.scale.set(t.scaleX,t.scaleY),e.anchor.set(t.pivotX,t.pivotY),e.alpha=t.alpha,e.angle=t.angle},e}(t.SpriterBone);t.SpriterObject=e}(Spriter||(Spriter={}));
|
/*!
* nodeclub - rss controller test
* Copyright(c) 2012 fengmk2 <fengmk2@gmail.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var request = require('supertest');
var app = require('../../app');
var config = require('../../config');
describe('test/controllers/rss.test.js', function () {
describe('/rss', function () {
it('should return `application/xml` Content-Type', function (done) {
request(app).get('/rss').end(function (err, res) {
res.status.should.equal(200);
res.headers.should.property('content-type', 'application/xml');
var body = res.text;
body.indexOf('<?xml version="1.0" encoding="utf-8"?>').should.equal(0);
body.should.containEql('<rss version="2.0">');
body.should.containEql('<channel><title>' + config.rss.title + '</title>');
done(err);
});
});
describe('mock `config.rss` not set', function () {
var rss = config.rss;
before(function () {
config.rss = null;
});
after(function () {
config.rss = rss;
});
it('should return waring message', function (done) {
request(app).get('/rss').end(function (err, res) {
res.status.should.equal(404);
res.text.should.equal('Please set `rss` in config.js');
done(err);
});
});
});
describe('mock `topic.getTopicsByQuery()` error', function () {
var topic = require('../../proxy').Topic;
var getTopicsByQuery = topic.getTopicsByQuery;
before(function () {
topic.getTopicsByQuery = function () {
var callback = arguments[arguments.length - 1];
process.nextTick(function () {
callback(new Error('mock getTopicsByQuery() error'));
});
};
});
after(function () {
topic.getTopicsByQuery = getTopicsByQuery;
});
it('should return error', function (done) {
request(app).get('/rss').end(function (err, res) {
res.status.should.equal(500);
res.text.should.containEql('mock getTopicsByQuery() error');
done(err);
});
});
});
});
});
|
const fs = require('fs');
const path = require('path');
const logger = require('log4js').getLogger('loader');
const loadModules = (moduleDir, filePredicate, afterLoadingModule) => {
const files = fs.readdirSync(path.join(__dirname, moduleDir));
for (const file of files) {
if (typeof filePredicate === 'function' && !filePredicate(file)) {
continue;
}
const filePath = path.join(__dirname, moduleDir, file);
logger.debug('Load module', filePath);
const stat = fs.lstatSync(filePath)
if (stat.isFile()) {
const moduleName = file.replace('.js', '');
const mod = require(`./${moduleDir}/${moduleName}`);
if (typeof afterLoadingModule === 'function') {
afterLoadingModule(mod);
}
}
}
}
const loadControllers = (controllerDir) => {
loadModules(controllerDir, (fileName) => fileName.endsWith('controller.js'));
}
const loadRestApi = (restApiDir) => {
loadModules(restApiDir, (fileName) => fileName.endsWith('resource.js'));
}
module.exports = {
loadModules,
loadControllers,
loadRestApi
}
|
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const mongoosePaginate = require('mongoose-paginate');
const timestamps = require('mongoose-timestamp');
const utils = require('../main/common/utils');
const Roles = require('../../src/shared/roles');
// Define the User model schema
const UserSchema = new mongoose.Schema({
name: {
type: String,
required: true
},
email: {
type: String,
index: { unique: true }
},
role: {
type: String,
default: Roles.user,
enum: [Roles.user, Roles.siteAdmin] // Accept only these roles
},
company: {
type: Schema.ObjectId,
default: null,
ref: 'Company'
},
password: String
});
UserSchema.plugin(mongoosePaginate);
UserSchema.plugin(timestamps);
/**
* Override default toJSON, remove password field and __v version
*/
UserSchema.methods.toJSON = function() {
var obj = this.toObject();
delete obj.password;
delete obj.__v;
obj.id = obj._id;
delete obj._id;
return obj;
};
/**
* Compare the passed password with the value in the database. A model method.
*
* @param {string} password
* @returns {object} callback
*/
UserSchema.methods.comparePassword = function comparePassword(password, callback) {
utils.compareHash(password, this.password, callback);
};
/**
* The pre-save hook method.
*
* NOTE: pre & post hooks are not executed on update() and findeOneAndUpdate()
* http://mongoosejs.com/docs/middleware.html
*/
UserSchema.pre('save', function saveHook(next) {
const user = this;
// Proceed further only if the password is modified or the user is new
if (!user.isModified('password')) return next();
return utils.hash(user.password, (err, hash) => {
if (err) { return next (err); }
// Replace the password string with hash value
user.password = hash;
return next();
});
});
module.exports = mongoose.model('User', UserSchema);
|
class Person {
constructor(first_name, last_name) {
this.first_name = first_name;
this.last_name = last_name;
}
full_name() {
return this.first_name + " " + this.last_name;
}
}
class Staff extends Person {
constructor(first_name, last_name, persno) {
super(first_name, last_name);
this.persno = persno;
}
info() {
return this.persno + " " + this.full_name();
}
}
const staff = new Staff('Jane', 'Fuller', '0643256');
const message = (person) => `For more information, please contact Ms. ${person.last_name.toUpperCase()}, ${person.first_name}.`
console.log(staff.info());
console.log(message(staff));
|
// Cronicle Admin Page -- Categories
Class.add( Page.Admin, {
gosub_categories: function(args) {
// show category list
this.div.removeClass('loading');
app.setWindowTitle( "Categories" );
var size = get_inner_window_size();
var col_width = Math.floor( ((size.width * 0.9) + 200) / 5 );
var html = '';
html += this.getSidebarTabs( 'categories',
[
['activity', "Activity Log"],
['api_keys', "API Keys"],
['categories', "Categories"],
['plugins', "Plugins"],
['servers', "Servers"],
['users', "Users"]
]
);
var cols = ['Title', 'Description', 'Assigned Events', 'Max Concurrent', 'Actions'];
html += '<div style="padding:20px 20px 30px 20px">';
html += '<div class="subtitle">';
html += 'Event Categories';
// html += '<div class="clear"></div>';
html += '</div>';
// sort by title ascending
this.categories = app.categories.sort( function(a, b) {
// return (b.title < a.title) ? 1 : -1;
return a.title.toLowerCase().localeCompare( b.title.toLowerCase() );
} );
// render table
var self = this;
html += this.getBasicTable( this.categories, cols, 'category', function(cat, idx) {
var actions = [
'<span class="link" onMouseUp="$P().edit_category('+idx+')"><b>Edit</b></span>',
'<span class="link" onMouseUp="$P().delete_category('+idx+')"><b>Delete</b></span>'
];
var cat_events = find_objects( app.schedule, { category: cat.id } );
var num_events = cat_events.length;
var tds = [
'<div class="td_big"><span class="link" onMouseUp="$P().edit_category('+idx+')">' + self.getNiceCategory(cat, col_width) + '</span></div>',
'<div class="ellip" style="max-width:'+col_width+'px;">' + (cat.description || '(No description)') + '</div>',
num_events ? commify( num_events ) : '(None)',
cat.max_children ? commify(cat.max_children) : '(No limit)',
actions.join(' | ')
];
if (cat && cat.color) {
if (tds.className) tds.className += ' '; else tds.className = '';
tds.className += cat.color;
}
if (!cat.enabled) {
if (tds.className) tds.className += ' '; else tds.className = '';
tds.className += 'disabled';
}
return tds;
} );
html += '<div style="height:30px;"></div>';
html += '<center><table><tr>';
html += '<td><div class="button" style="width:130px;" onMouseUp="$P().edit_category(-1)"><i class="fa fa-plus-circle"> </i>Add Category...</div></td>';
html += '</tr></table></center>';
html += '</div>'; // padding
html += '</div>'; // sidebar tabs
this.div.html( html );
},
edit_category: function(idx) {
// jump to edit sub
if (idx > -1) Nav.go( '#Admin?sub=edit_category&id=' + this.categories[idx].id );
else Nav.go( '#Admin?sub=new_category' );
},
delete_category: function(idx) {
// delete key from search results
this.category = this.categories[idx];
this.show_delete_category_dialog();
},
gosub_new_category: function(args) {
// create new Category
var html = '';
app.setWindowTitle( "New Category" );
this.div.removeClass('loading');
html += this.getSidebarTabs( 'new_category',
[
['activity', "Activity Log"],
['api_keys', "API Keys"],
['categories', "Categories"],
['new_category', "New Category"],
['plugins', "Plugins"],
['servers', "Servers"],
['users', "Users"]
]
);
html += '<div style="padding:20px;"><div class="subtitle">Add New Category</div></div>';
html += '<div style="padding:0px 20px 50px 20px">';
html += '<center><table style="margin:0;">';
this.category = {
title: "",
description: "",
max_children: 0,
enabled: 1
};
html += this.get_category_edit_html();
// buttons at bottom
html += '<tr><td colspan="2" align="center">';
html += '<div style="height:30px;"></div>';
html += '<table><tr>';
html += '<td><div class="button" style="width:120px; font-weight:normal;" onMouseUp="$P().cancel_category_edit()">Cancel</div></td>';
html += '<td width="50"> </td>';
html += '<td><div class="button" style="width:120px;" onMouseUp="$P().do_new_category()"><i class="fa fa-plus-circle"> </i>Add Category</div></td>';
html += '</tr></table>';
html += '</td></tr>';
html += '</table></center>';
html += '</div>'; // table wrapper div
html += '</div>'; // sidebar tabs
this.div.html( html );
setTimeout( function() {
$('#fe_ec_title').focus();
}, 1 );
},
cancel_category_edit: function() {
// cancel editing category and return to list
Nav.go( 'Admin?sub=categories' );
},
do_new_category: function(force) {
// create new category
app.clearError();
var category = this.get_category_form_json();
if (!category) return; // error
// pro-tip: embed id in title as bracketed prefix
if (category.title.match(/^\[(\w+)\]\s*(.+)$/)) {
category.id = RegExp.$1;
category.title = RegExp.$2;
}
this.category = category;
app.showProgress( 1.0, "Creating category..." );
app.api.post( 'app/create_category', category, this.new_category_finish.bind(this) );
},
new_category_finish: function(resp) {
// new Category created successfully
app.hideProgress();
// Can't nav to edit_category yet, websocket may not have received update yet
// Nav.go('Admin?sub=edit_category&id=' + resp.id);
Nav.go('Admin?sub=categories');
setTimeout( function() {
app.showMessage('success', "The new category was created successfully.");
}, 150 );
},
gosub_edit_category: function(args) {
// edit existing Category
var html = '';
this.category = find_object( app.categories, { id: args.id } );
app.setWindowTitle( "Editing Category \"" + (this.category.title) + "\"" );
this.div.removeClass('loading');
html += this.getSidebarTabs( 'edit_category',
[
['activity', "Activity Log"],
['api_keys', "API Keys"],
['categories', "Categories"],
['edit_category', "Edit Category"],
['plugins', "Plugins"],
['servers', "Servers"],
['users', "Users"]
]
);
html += '<div style="padding:20px;"><div class="subtitle">Editing Category “' + (this.category.title) + '”</div></div>';
html += '<div style="padding:0px 20px 50px 20px">';
html += '<center>';
html += '<table style="margin:0;">';
html += this.get_category_edit_html();
html += '<tr><td colspan="2" align="center">';
html += '<div style="height:30px;"></div>';
html += '<table><tr>';
html += '<td><div class="button" style="width:130px; font-weight:normal;" onMouseUp="$P().cancel_category_edit()">Cancel</div></td>';
html += '<td width="50"> </td>';
html += '<td><div class="button" style="width:130px; font-weight:normal;" onMouseUp="$P().show_delete_category_dialog()">Delete Category...</div></td>';
html += '<td width="50"> </td>';
html += '<td><div class="button" style="width:130px;" onMouseUp="$P().do_save_category()"><i class="fa fa-floppy-o"> </i>Save Changes</div></td>';
html += '</tr></table>';
html += '</td></tr>';
html += '</table>';
html += '</center>';
html += '</div>'; // table wrapper div
html += '</div>'; // sidebar tabs
this.div.html( html );
},
do_save_category: function() {
// save changes to category
app.clearError();
var category = this.get_category_form_json();
if (!category) return; // error
this.category = category;
app.showProgress( 1.0, "Saving category..." );
app.api.post( 'app/update_category', category, this.save_category_finish.bind(this) );
},
save_category_finish: function(resp, tx) {
// new category saved successfully
var self = this;
var category = this.category;
app.hideProgress();
app.showMessage('success', "The category was saved successfully.");
window.scrollTo( 0, 0 );
// copy active jobs to array
var jobs = [];
for (var id in app.activeJobs) {
var job = app.activeJobs[id];
if ((job.category == category.id) && !job.detached) jobs.push( job );
}
// if the cat was disabled and there are running jobs, ask user to abort them
if (!category.enabled && jobs.length) {
app.confirm( '<span style="color:red">Abort Jobs</span>', "There " + ((jobs.length != 1) ? 'are' : 'is') + " currently still " + jobs.length + " active " + pluralize('job', jobs.length) + " using the disabled category <b>"+category.title+"</b>. Do you want to abort " + ((jobs.length != 1) ? 'these' : 'it') + " now?", "Abort", function(result) {
if (result) {
app.showProgress( 1.0, "Aborting " + pluralize('Job', jobs.length) + "..." );
app.api.post( 'app/abort_jobs', { category: category.id }, function(resp) {
app.hideProgress();
if (resp.count > 0) {
app.showMessage('success', "The " + pluralize('job', resp.count) + " " + ((resp.count != 1) ? 'were' : 'was') + " aborted successfully.");
}
else {
app.showMessage('warning', "No jobs were aborted. It is likely they completed while the dialog was up.");
}
} );
} // clicked Abort
} ); // app.confirm
} // disabled + jobs
},
show_delete_category_dialog: function() {
// show dialog confirming category delete action
var self = this;
var category = this.category;
var cat = this.category;
// check for events first
var cat_events = find_objects( app.schedule, { category: cat.id } );
var num_events = cat_events.length;
if (num_events) return app.doError("Sorry, you cannot delete a category that has events assigned to it.");
// proceed with delete
var self = this;
app.confirm( '<span style="color:red">Delete Category</span>', "Are you sure you want to delete the category <b>"+cat.title+"</b>? There is no way to undo this action.", "Delete", function(result) {
if (result) {
app.showProgress( 1.0, "Deleting Category..." );
app.api.post( 'app/delete_category', cat, self.delete_category_finish.bind(self) );
}
} );
},
delete_category_finish: function(resp, tx) {
// finished deleting category
var self = this;
app.hideProgress();
Nav.go('Admin?sub=categories', 'force');
setTimeout( function() {
app.showMessage('success', "The category '"+self.category.title+"' was deleted successfully.");
}, 150 );
},
get_category_edit_html: function() {
// get html for editing a category (or creating a new one)
var html = '';
var category = this.category;
var cat = this.category;
// Internal ID
if (cat.id && this.isAdmin()) {
html += get_form_table_row( 'Category ID', '<div style="font-size:14px;">' + cat.id + '</div>' );
html += get_form_table_caption( "The internal Category ID used for API calls. This cannot be changed." );
html += get_form_table_spacer();
}
// title
html += get_form_table_row('Category Title:', '<input type="text" id="fe_ec_title" size="25" value="'+escape_text_field_value(cat.title)+'"/>') +
get_form_table_caption("Enter a title for the category, short and sweet.") +
get_form_table_spacer();
// cat enabled
html += get_form_table_row( 'Active', '<input type="checkbox" id="fe_ec_enabled" value="1" ' + (cat.enabled ? 'checked="checked"' : '') + '/><label for="fe_ec_enabled">Category Enabled</label>' );
html += get_form_table_caption( "Select whether events in this category should be enabled or disabled in the schedule." );
html += get_form_table_spacer();
// description
html += get_form_table_row('Description:', '<textarea id="fe_ec_desc" style="width:500px; height:50px; resize:vertical;">'+escape_text_field_value(cat.description)+'</textarea>') +
get_form_table_caption("Optionally enter a description for the category.") +
get_form_table_spacer();
// max concurrent
html += get_form_table_row('Max Concurrent:', '<select id="fe_ec_max_children">' + render_menu_options([ [0,'No Limit'], 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 ], cat.max_children, true) + '</select>') +
get_form_table_caption("Select the maximum number of jobs allowed to run concurrently in this category.");
html += get_form_table_spacer();
// color
var current_color = cat.color || 'plain';
var swatch_html = '';
var colors = ['plain', 'red', 'green', 'blue', 'skyblue', 'yellow', 'purple', 'orange'];
for (var idx = 0, len = colors.length; idx < len; idx++) {
var color = colors[idx];
swatch_html += '<div class="swatch ' + color + ' ' + ((current_color == color) ? 'active' : '') + '" onMouseUp="$P().select_color(\''+color+'\')"></div>';
}
swatch_html += '<div class="clear"></div>';
html += get_form_table_row( 'Highlight Color', swatch_html );
html += get_form_table_caption( "Optionally select a highlight color for the category, which will show on the schedule." );
html += get_form_table_spacer();
// default notification options
var notif_expanded = !!(cat.notify_success || cat.notify_fail || cat.web_hook);
html += get_form_table_row( 'Notification',
'<div style="font-size:13px;'+(notif_expanded ? 'display:none;' : '')+'"><span class="link addme" onMouseUp="$P().expand_fieldset($(this))"><i class="fa fa-plus-square-o"> </i>Default Notification Options</span></div>' +
'<fieldset style="padding:10px 10px 0 10px; margin-bottom:5px;'+(notif_expanded ? '' : 'display:none;')+'"><legend class="link addme" onMouseUp="$P().collapse_fieldset($(this))"><i class="fa fa-minus-square-o"> </i>Default Notification Options</legend>' +
'<div class="plugin_params_label">Default Email on Success:</div>' +
'<div class="plugin_params_content"><input type="text" id="fe_ec_notify_success" size="50" value="'+escape_text_field_value(cat.notify_success)+'" placeholder="email@sample.com" spellcheck="false" onChange="$P().update_add_remove_me($(this))"/><span class="link addme" onMouseUp="$P().add_remove_me($(this).prev())"></span></div>' +
'<div class="plugin_params_label">Default Email on Failure:</div>' +
'<div class="plugin_params_content"><input type="text" id="fe_ec_notify_fail" size="50" value="'+escape_text_field_value(cat.notify_fail)+'" placeholder="email@sample.com" spellcheck="false" onChange="$P().update_add_remove_me($(this))"/><span class="link addme" onMouseUp="$P().add_remove_me($(this).prev())"></span></div>' +
'<div class="plugin_params_label">Default Web Hook URL:</div>' +
'<div class="plugin_params_content"><input type="text" id="fe_ec_web_hook" size="60" value="'+escape_text_field_value(cat.web_hook)+'" placeholder="http://" spellcheck="false"/></div>' +
'</fieldset>'
);
html += get_form_table_caption( "Optionally enter default e-mail addresses for notification, and/or a web hook URL.<br/>Note that events can override any of these notification settings." );
html += get_form_table_spacer();
// default resource limits
var res_expanded = !!(cat.memory_limit || cat.memory_sustain || cat.cpu_limit || cat.cpu_sustain || cat.log_max_size);
html += get_form_table_row( 'Limits',
'<div style="font-size:13px;'+(res_expanded ? 'display:none;' : '')+'"><span class="link addme" onMouseUp="$P().expand_fieldset($(this))"><i class="fa fa-plus-square-o"> </i>Default Resource Limits</span></div>' +
'<fieldset style="padding:10px 10px 0 10px; margin-bottom:5px;'+(res_expanded ? '' : 'display:none;')+'"><legend class="link addme" onMouseUp="$P().collapse_fieldset($(this))"><i class="fa fa-minus-square-o"> </i>Default Resource Limits</legend>' +
'<div class="plugin_params_label">Default CPU Limit:</div>' +
'<div class="plugin_params_content"><table cellspacing="0" cellpadding="0" class="fieldset_params_table"><tr>' +
'<td style="padding-right:2px"><input type="checkbox" id="fe_ec_cpu_enabled" value="1" '+(cat.cpu_limit ? 'checked="checked"' : '')+' /></td>' +
'<td><label for="fe_ec_cpu_enabled">Abort job if CPU exceeds</label></td>' +
'<td><input type="text" id="fe_ec_cpu_limit" style="width:30px;" value="'+(cat.cpu_limit || 0)+'"/>%</td>' +
'<td>for</td>' +
'<td>' + this.get_relative_time_combo_box( 'fe_ec_cpu_sustain', cat.cpu_sustain, 'fieldset_params_table' ) + '</td>' +
'</tr></table></div>' +
'<div class="plugin_params_label">Default Memory Limit:</div>' +
'<div class="plugin_params_content"><table cellspacing="0" cellpadding="0" class="fieldset_params_table"><tr>' +
'<td style="padding-right:2px"><input type="checkbox" id="fe_ec_memory_enabled" value="1" '+(cat.memory_limit ? 'checked="checked"' : '')+' /></td>' +
'<td><label for="fe_ec_memory_enabled">Abort job if memory exceeds</label></td>' +
'<td>' + this.get_relative_size_combo_box( 'fe_ec_memory_limit', cat.memory_limit, 'fieldset_params_table' ) + '</td>' +
'<td>for</td>' +
'<td>' + this.get_relative_time_combo_box( 'fe_ec_memory_sustain', cat.memory_sustain, 'fieldset_params_table' ) + '</td>' +
'</tr></table></div>' +
'<div class="plugin_params_label">Default Log Size Limit:</div>' +
'<div class="plugin_params_content"><table cellspacing="0" cellpadding="0" class="fieldset_params_table"><tr>' +
'<td style="padding-right:2px"><input type="checkbox" id="fe_ec_log_enabled" value="1" '+(cat.log_max_size ? 'checked="checked"' : '')+' /></td>' +
'<td><label for="fe_ec_log_enabled">Abort job if log file exceeds</label></td>' +
'<td>' + this.get_relative_size_combo_box( 'fe_ec_log_limit', cat.log_max_size, 'fieldset_params_table' ) + '</td>' +
'</tr></table></div>' +
'</fieldset>'
);
html += get_form_table_caption(
"Optionally set default CPU load, memory usage and log size limits for the category.<br/>Note that events can override any of these limits."
);
html += get_form_table_spacer();
setTimeout( function() {
$P().update_add_remove_me( $('#fe_ec_notify_success, #fe_ec_notify_fail') );
}, 1 );
return html;
},
select_color: function(color) {
// click on a color swatch
this.category.color = (color == 'plain') ? '' : color;
$('.swatch').removeClass('active');
$('.swatch.'+color).addClass('active');
},
get_category_form_json: function() {
// get category elements from form, used for new or edit
var category = this.category;
category.title = $('#fe_ec_title').val();
if (!category.title.length) {
return app.badField('#fe_ec_title', "Please enter a title for the category.");
}
category.enabled = $('#fe_ec_enabled').is(':checked') ? 1 : 0;
category.description = $('#fe_ec_desc').val();
category.max_children = parseInt( $('#fe_ec_max_children').val() );
category.notify_success = $('#fe_ec_notify_success').val();
category.notify_fail = $('#fe_ec_notify_fail').val();
category.web_hook = $('#fe_ec_web_hook').val();
// cpu limit
if ($('#fe_ec_cpu_enabled').is(':checked')) {
category.cpu_limit = parseInt( $('#fe_ec_cpu_limit').val() );
if (isNaN(category.cpu_limit)) return app.badField('fe_ec_cpu_limit', "Please enter an integer value for the CPU limit.");
if (category.cpu_limit < 0) return app.badField('fe_ec_cpu_limit', "Please enter a positive integer for the CPU limit.");
category.cpu_sustain = parseInt( $('#fe_ec_cpu_sustain').val() ) * parseInt( $('#fe_ec_cpu_sustain_units').val() );
if (isNaN(category.cpu_sustain)) return app.badField('fe_ec_cpu_sustain', "Please enter an integer value for the CPU sustain period.");
if (category.cpu_sustain < 0) return app.badField('fe_ec_cpu_sustain', "Please enter a positive integer for the CPU sustain period.");
}
else {
category.cpu_limit = 0;
category.cpu_sustain = 0;
}
// mem limit
if ($('#fe_ec_memory_enabled').is(':checked')) {
category.memory_limit = parseInt( $('#fe_ec_memory_limit').val() ) * parseInt( $('#fe_ec_memory_limit_units').val() );
if (isNaN(category.memory_limit)) return app.badField('fe_ec_memory_limit', "Please enter an integer value for the memory limit.");
if (category.memory_limit < 0) return app.badField('fe_ec_memory_limit', "Please enter a positive integer for the memory limit.");
category.memory_sustain = parseInt( $('#fe_ec_memory_sustain').val() ) * parseInt( $('#fe_ec_memory_sustain_units').val() );
if (isNaN(category.memory_sustain)) return app.badField('fe_ec_memory_sustain', "Please enter an integer value for the memory sustain period.");
if (category.memory_sustain < 0) return app.badField('fe_ec_memory_sustain', "Please enter a positive integer for the memory sustain period.");
}
else {
category.memory_limit = 0;
category.memory_sustain = 0;
}
// job log file size limit
if ($('#fe_ec_log_enabled').is(':checked')) {
category.log_max_size = parseInt( $('#fe_ec_log_limit').val() ) * parseInt( $('#fe_ec_log_limit_units').val() );
if (isNaN(category.log_max_size)) return app.badField('fe_ec_log_limit', "Please enter an integer value for the log size limit.");
if (category.log_max_size < 0) return app.badField('fe_ec_log_limit', "Please enter a positive integer for the log size limit.");
}
else {
category.log_max_size = 0;
}
return category;
}
});
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var Icon = require('../Icon-399ca71f.js');
var React = require('react');
require('@carbon/icon-helpers');
require('prop-types');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var _path;
var ScalesTipped16 = /*#__PURE__*/React__default['default'].forwardRef(function ScalesTipped16(_ref, ref) {
var children = _ref.children,
rest = Icon._objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React__default['default'].createElement(Icon.Icon, Icon._extends({
width: 16,
height: 16,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _path || (_path = /*#__PURE__*/React__default['default'].createElement("path", {
d: "M20,13a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473l-4-8a1,1,0,0,0-1.2109-.5014l-6.3308,2.11A3.0322,3.0322,0,0,0,17,5.1841V2H15V5.1841a2.9949,2.9949,0,0,0-1.9956,2.76l-6.3208,2.107a1,1,0,0,0-.5781.5014l-4,8A1,1,0,0,0,2,19a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473L8.41,11.584l5.237-1.7456A3.0285,3.0285,0,0,0,15,10.8154V28H6v2H26V28H17V10.8159a2.9951,2.9951,0,0,0,1.9956-2.76l4.03-1.3438-2.92,5.8408A1,1,0,0,0,20,13ZM7,22a2.9956,2.9956,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,7,22Zm2.3821-4H4.6179L7,13.2363ZM16,9a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,16,9Zm9,7a2.9958,2.9958,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,25,16Zm0-8.7637L27.3821,12H22.6179Z"
})), children);
});
module.exports = ScalesTipped16;
|
var slider = document.getElementById("range-price");
var output = document.getElementById("price");
output.innerHTML = slider.value;
slider.oninput = function() {
output.innerHTML = this.value;
}
|
import React from "react"
import Img from "gatsby-image"
import { rhythm } from "../utils/typography"
export default props => {
const assets = props.data.allContentfulAsset.edges
return (
<div>
<h1>Image API examples</h1>
<p>
Gatsby offers rich integration with{` `}
<a href="https://www.contentful.com/developers/docs/references/images-api/">
Contentful's Image API
</a>
</p>
<p>
Open Graph<em>i</em>QL on your own site to experiment with the following
options
</p>
<h2>Resize</h2>
{assets.map(({ node: { title, resize } }) => (
<img
key={resize.src}
alt={title}
src={resize.src}
width={resize.width}
height={resize.height}
style={{
marginRight: rhythm(1 / 2),
marginBottom: rhythm(1 / 2),
border: `1px solid tomato`,
}}
/>
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
dangerouslySetInnerHTML={{
__html: `{
allContentfulAsset {
edges {
node {
title
resize(width: 100) {
src
width
height
}
}
}
}
}`,
}}
/>
</pre>
<h2>Responsive Resolution</h2>
<p>
If you make queries with <code>resolutions</code> then Gatsby
automatically generates images with 1x, 1.5x, 2x, and 3x versions so
your images look great on whatever screen resolution of device they're
on.
</p>
<p>
If you're on a retina class screen, notice how much sharper these images
are than the above "resized" images.
</p>
<p>
You should prefer this operator over <code>resize</code>.
</p>
{assets.map(({ node: { title, resolutions } }) => (
<Img
key={resolutions.src}
alt={title}
resolutions={resolutions}
backgroundColor
style={{
marginRight: rhythm(1 / 2),
marginBottom: rhythm(1 / 2),
border: `1px solid tomato`,
}}
/>
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
dangerouslySetInnerHTML={{
__html: `{
allContentfulAsset {
edges {
node {
title
resolutions(width: 100) {
width
height
src
srcSet
}
}
}
}
}`,
}}
/>
</pre>
<h2>Resizing</h2>
<p>
On both resize and resolutions you can also add a{` `}
<code>height</code>
{` `}
argument to the GraphQL argument to crop the image to a certain size.
</p>
<p>
You can also set the{` `}
<a href="https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/change-the-resizing-behavior">
resizing behavior
</a>
{` `}
and{` `}
<a href="https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/specify-focus-area-for-resizing">
resizing focus area
</a>
</p>
{assets.map(({ node: { title, resizing } }) => (
<Img
key={resizing.src}
alt={title}
resolutions={resizing}
style={{
marginRight: rhythm(1 / 2),
marginBottom: rhythm(1 / 2),
border: `1px solid tomato`,
}}
/>
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
dangerouslySetInnerHTML={{
__html: `{
allContentfulAsset {
edges {
node {
title
resolutions(width: 100, height: 100) {
width
height
src
srcSet
}
}
}
}
}`,
}}
/>
</pre>
<h2>Responsive Sizes</h2>
<p>
This GraphQL option allows you to generate responsive images that
automatically respond to different device screen resolution and widths.
E.g. a smartphone browser will download a much smaller image than a
desktop device.
</p>
<p>
Instead of specifying a width and height, with sizes you specify a{` `}
<code>maxWidth</code>, the max width the container of the images
reaches.
</p>
{assets.map(({ node: { title, sizes } }) => (
<Img
key={sizes.src}
alt={title}
sizes={sizes}
style={{
marginRight: rhythm(1 / 2),
marginBottom: rhythm(1 / 2),
border: `1px solid tomato`,
}}
/>
))}
<h4>GraphQL query</h4>
<pre style={{ background: `#efeded`, padding: rhythm(3 / 4) }}>
<code
dangerouslySetInnerHTML={{
__html: `{
allContentfulAsset {
edges {
node {
title
sizes(maxWidth: 613) {
sizes
src
srcSet
}
}
}
}
}`,
}}
/>
</pre>
</div>
)
}
export const pageQuery = graphql`
query ImageAPIExamples {
allContentfulAsset(filter: { node_locale: { eq: "en-US" } }) {
edges {
node {
title
resize(width: 100) {
src
width
height
}
}
}
}
}
`
|
"use strict";(self.webpackChunkion_holla_messenger=self.webpackChunkion_holla_messenger||[]).push([[8991],{8991:(V,v,m)=>{m.r(v),m.d(v,{startTapClick:()=>I});var u=m(2377);const I=n=>{let i,s,E,d,o=10*-h,r=0;const P=n.getBoolean("animated",!0)&&n.getBoolean("rippleEffect",!0),p=new WeakMap,A=e=>{o=(0,u.o)(e),R(e)},D=()=>{clearTimeout(d),d=void 0,s&&(_(!1),s=void 0)},g=e=>{s||void 0!==i&&null!==i.parentElement||(i=void 0,S(M(e),e))},R=e=>{S(void 0,e)},S=(e,t)=>{if(e&&e===s)return;clearTimeout(d),d=void 0;const{x:l,y:a}=(0,u.p)(t);if(s){if(p.has(s))throw new Error("internal error");s.classList.contains(f)||w(s,l,a),_(!0)}if(e){const b=p.get(e);b&&(clearTimeout(b),p.delete(e));const F=T(e)?0:y;e.classList.remove(f),d=setTimeout(()=>{w(e,l,a),d=void 0},F)}s=e},w=(e,t,l)=>{r=Date.now(),e.classList.add(f);const a=P&&k(e);a&&a.addRipple&&(C(),E=a.addRipple(t,l))},C=()=>{void 0!==E&&(E.then(e=>e()),E=void 0)},_=e=>{C();const t=s;if(!t)return;const l=L-Date.now()+r;if(e&&l>0&&!T(t)){const a=setTimeout(()=>{t.classList.remove(f),p.delete(t)},L);p.set(t,a)}else t.classList.remove(f)},c=document;c.addEventListener("ionScrollStart",e=>{i=e.target,D()}),c.addEventListener("ionScrollEnd",()=>{i=void 0}),c.addEventListener("ionGestureCaptured",D),c.addEventListener("touchstart",e=>{o=(0,u.o)(e),g(e)},!0),c.addEventListener("touchcancel",A,!0),c.addEventListener("touchend",A,!0),c.addEventListener("mousedown",e=>{const t=(0,u.o)(e)-h;o<t&&g(e)},!0),c.addEventListener("mouseup",e=>{const t=(0,u.o)(e)-h;o<t&&R(e)},!0)},M=n=>{if(!n.composedPath)return n.target.closest(".ion-activatable");{const o=n.composedPath();for(let r=0;r<o.length-2;r++){const i=o[r];if(i.classList&&i.classList.contains("ion-activatable"))return i}}},T=n=>n.classList.contains("ion-activatable-instant"),k=n=>{if(n.shadowRoot){const o=n.shadowRoot.querySelector("ion-ripple-effect");if(o)return o}return n.querySelector("ion-ripple-effect")},f="ion-activated",y=200,L=200,h=2500}}]);
|
//@flow
// eslint-disable-next-line import/no-extraneous-dependencies
import i18n from 'external-i18n';
import type {I18nFunction} from '../common/types';
export const ScheduledTaskMessages: {[string]: string, transitionOption: *, runNowConfirm: I18nFunction, runNowConfirm: I18nFunction, jqlLimitDescription: I18nFunction} = {
noTasks: i18n.scheduled.noTasks,
addTask: i18n.scheduled.addTask,
editTask: i18n.scheduled.editTask,
deleteTask: i18n.scheduled.deleteTask,
runAs: i18n.scheduled.runAs,
runNow: i18n.scheduled.runNow,
runNowConfirm: i18n.scheduled.runNowConfirm,
lastRun: i18n.scheduled.lastRun,
nextRun: i18n.scheduled.nextRun,
jqlLimitDescription: i18n.scheduled.jqlLimitDescription,
jqlScriptDescription: i18n.scheduled.jqlScriptDescription,
scheduleDescription: i18n.scheduled.scheduleDescription,
transitionOption: {
skipConditions: i18n.scheduled.transitionOption.skipConditions,
skipValidators: i18n.scheduled.transitionOption.skipValidators,
skipPermissions: i18n.scheduled.transitionOption.skipPermissions,
},
transitionOptions: i18n.scheduled.transitionOptions,
};
|
export const footerBarList = [
{title: '首页', icon: 'home'},
{title: '视频', icon: 'video'},
{title: '微头条', icon: 'comment'},
{title: '未登录', icon: 'account'}
]
export const newsList = [
{title: '推荐', id: 1},
{title: '视频', id: 2},
{title: '热点', id: 3},
{title: '社会', id: 4},
{title: '娱乐', id: 5},
{title: '军事', id: 6},
{title: '科技', id: 7},
{title: '汽车', id: 8},
{title: '体育', id: 9},
{title: '财经', id: 10},
{title: '国际', id: 11},
{title: '时尚', id: 12},
{title: '游戏', id: 13},
{title: '旅游', id: 14},
{title: '历史', id: 15},
{title: '探索', id: 16},
{title: '美食', id: 17},
{title: '育儿', id: 18},
{title: '养生', id: 19},
{title: '故事', id: 20},
{title: '美文', id: 21}
]
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
define(function(require) {
'use strict';
var Backbone = require('backbone');
var XAEnums = require('utils/XAEnums');
var XALinks = require('modules/XALinks');
var XAGlobals = require('utils/XAGlobals');
var localization = require('utils/XALangSupport');
var XAUtils = require('utils/XAUtils');
var AuditAccessLogDetailTmpl = require('hbs!tmpl/reports/AuditAccessLogDetail_tmpl');
var AuditAccessLogDetailView = Backbone.Marionette.Layout.extend({
_viewName: 'AuditAccessLogDetailView',
template: AuditAccessLogDetailTmpl,
templateHelpers: function() {
var that = this;
return {
auditaccessDetail : this.auditaccessDetail,
eventTime : Globalize.format(new Date(this.auditaccessDetail.eventTime), "MM/dd/yyyy hh:mm:ss tt"),
result : this.auditaccessDetail.accessResult == 1 ? 'Allowed' : 'Denied',
hiveQuery : ((this.auditaccessDetail.serviceType === XAEnums.ServiceType.Service_HIVE.label || this.auditaccessDetail.serviceType === XAEnums.ServiceType.Service_HBASE.label) &&
this.auditaccessDetail.aclEnforcer === "ranger-acl" && this.auditaccessDetail.requestData) ? true : false,
tag : this.tags ? this.tags.join() : undefined,
}
},
ui: {
copyQuery : '[data-name="copyQuery"]',
},
/** ui events hash */
events : function() {
var events = {};
events['click ' + this.ui.copyQuery] = 'copyQuery';
return events
},
/**
* Initialize a new AuditAccessLogDetailsView Layout
* @constructs
*/
initialize: function(options) {
console.log("Initialized a Ranger Audit Access Log Details");
_.extend(this, _.pick(options, 'auditaccessDetail'));
if (this.auditaccessDetail.tags) {
var tag = JSON.parse(this.auditaccessDetail.tags);
this.tags = _.map(tag, function(m) {
return m.type
});
}
},
copyQuery: function(e) {
XAUtils.copyToClipboard(e , this.auditaccessDetail.requestData);
},
/** on close */
onClose: function() {}
});
return AuditAccessLogDetailView;
});
|
module.exports = function createDreamTeam(members) {
if (members!= undefined &&typeof members === "object" && members.length > 0) {
return members.filter(x => typeof x === "string").map(x => x.trim().split('')[0].toUpperCase()).sort().join('');
}
return false;
};
|
function words(str) {
var obj = {}, words = str.split(" ");
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var keywords = words(
"absolute and array asm begin case const constructor destructor div do " +
"downto else end file for function goto if implementation in inherited " +
"inline interface label mod nil not object of operator or packed procedure " +
"program record reintroduce repeat self set shl shr string then to type " +
"unit until uses var while with xor as class dispinterface except exports " +
"finalization finally initialization inline is library on out packed " +
"property raise resourcestring threadvar try absolute abstract alias " +
"assembler bitpacked break cdecl continue cppdecl cvar default deprecated " +
"dynamic enumerator experimental export external far far16 forward generic " +
"helper implements index interrupt iocheck local message name near " +
"nodefault noreturn nostackframe oldfpccall otherwise overload override " +
"pascal platform private protected public published read register " +
"reintroduce result safecall saveregisters softfloat specialize static " +
"stdcall stored strict unaligned unimplemented varargs virtual write");
var atoms = {"null": true};
var isOperatorChar = /[+\-*&%=<>!?|\/]/;
function tokenBase(stream, state) {
var ch = stream.next();
if (ch == "#" && state.startOfLine) {
stream.skipToEnd();
return "meta";
}
if (ch == '"' || ch == "'") {
state.tokenize = tokenString(ch);
return state.tokenize(stream, state);
}
if (ch == "(" && stream.eat("*")) {
state.tokenize = tokenComment;
return tokenComment(stream, state);
}
if (ch == "{") {
state.tokenize = tokenCommentBraces;
return tokenCommentBraces(stream, state);
}
if (/[\[\]\(\),;\:\.]/.test(ch)) {
return null;
}
if (/\d/.test(ch)) {
stream.eatWhile(/[\w\.]/);
return "number";
}
if (ch == "/") {
if (stream.eat("/")) {
stream.skipToEnd();
return "comment";
}
}
if (isOperatorChar.test(ch)) {
stream.eatWhile(isOperatorChar);
return "operator";
}
stream.eatWhile(/[\w\$_]/);
var cur = stream.current();
if (keywords.propertyIsEnumerable(cur)) return "keyword";
if (atoms.propertyIsEnumerable(cur)) return "atom";
return "variable";
}
function tokenString(quote) {
return function(stream, state) {
var escaped = false, next, end = false;
while ((next = stream.next()) != null) {
if (next == quote && !escaped) {end = true; break;}
escaped = !escaped && next == "\\";
}
if (end || !escaped) state.tokenize = null;
return "string";
};
}
function tokenComment(stream, state) {
var maybeEnd = false, ch;
while (ch = stream.next()) {
if (ch == ")" && maybeEnd) {
state.tokenize = null;
break;
}
maybeEnd = (ch == "*");
}
return "comment";
}
function tokenCommentBraces(stream, state) {
var ch;
while (ch = stream.next()) {
if (ch == "}") {
state.tokenize = null;
break;
}
}
return "comment";
}
// Interface
export const pascal = {
startState: function() {
return {tokenize: null};
},
token: function(stream, state) {
if (stream.eatSpace()) return null;
var style = (state.tokenize || tokenBase)(stream, state);
if (style == "comment" || style == "meta") return style;
return style;
},
languageData: {
indentOnInput: /^\s*[{}]/,
commentTokens: {block: {open: "(*", close: "*)"}}
}
};
|
const fs = require('fs')
const path = require('path')
const glob = require('glob')
const semver = require('semver')
const getVersion = require('../getVersion')
let [, , cwd, versionChange, prereleaseId] = process.argv
if (cwd === undefined || !cwd.startsWith('/')) {
;[cwd, versionChange, prereleaseId] = [process.cwd(), cwd, versionChange]
}
const depFields = ['dependencies', 'peerDependencies', 'devDependencies', 'optionalDependencies']
let currentVersion
const previousVersion = getVersion(cwd)
if (versionChange) {
if (/^(major|minor|patch|premajor|preminor|prepatch|prerelease)$/.test(versionChange)) {
currentVersion = semver.inc(previousVersion, versionChange, prereleaseId)
} else {
currentVersion = semver.clean(versionChange)
if (currentVersion === null) {
throw Error(`Invalid version change "${previousVersion}" -> "${versionChange}"`)
}
}
const versionTable = []
for (const file of [
'package.json',
...glob.sync('packages/{@interactjs/*,interactjs}/package.json', { cwd }),
]) {
const pkg = require(path.resolve(file))
versionTable.push({ package: pkg.name, old: pkg.version, new: currentVersion })
pkg.version = currentVersion
for (const deps of depFields.map((f) => pkg[f]).filter(Boolean)) {
for (const name of Object.keys(deps).filter((n) => /@?interactjs\//.test(n))) {
if (deps[name] === previousVersion) {
deps[name] = currentVersion
} else {
console.warn(`${file}: not updating "${name}" from "${deps[name]}"`)
}
}
}
fs.writeFileSync(file, `${JSON.stringify(pkg, null, 2)}\n`)
}
console.table(versionTable)
}
// if this was run with no arguments, get the current version
else {
currentVersion = previousVersion
console.log(currentVersion)
}
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[208],{113:function(e,t,n){"use strict";n.r(t);var a=n(88),i=n(70),o=n(96);document.addEventListener("DOMContentLoaded",(function(){Object(o.a)(document,gon),new a.a,new i.a}))},1159:function(e,t,n){"use strict";n(42);var a=n(0),i=n.n(a),o=n(1);function r(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.initDropdown()}var t,n,a;return t=e,(n=[{key:"initDropdown",value:function(){var e=this.options.onSelect;this.options.$dropdown.glDropdown({data:this.options.data,selectable:!0,inputId:this.options.$dropdown.data("inputId"),fieldName:this.options.$dropdown.data("fieldName"),toggleLabel:function(e,t){return t.is(".is-active")?e.text:Object(o.a)("Select")},clicked:function(t){t.e.preventDefault(),e()}})}}])&&r(t.prototype,n),a&&r(t,a),e}(),l=n(522);function c(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$form=i()(".js-new-protected-tag"),this.buildDropdowns()}var t,n,a;return t=e,a=[{key:"getProtectedTags",value:function(e,t){t(gon.open_tags)}}],(n=[{key:"buildDropdowns",value:function(){var t=this.$form.find(".js-allowed-to-create");this.onSelectCallback=this.onSelect.bind(this),this.protectedTagAccessDropdown=new s({$dropdown:t,data:gon.create_access_levels,onSelect:this.onSelectCallback}),t.data("glDropdown").selectRowAtIndex(0),this.createItemDropdown=new l.a({$dropdown:this.$form.find(".js-protected-tag-select"),defaultToggleLabel:Object(o.a)("Protected Tag"),fieldName:"protected_tag[name]",onSelect:this.onSelectCallback,getData:e.getProtectedTags})}},{key:"onSelect",value:function(){var e=this.$form.find('input[name="protected_tag[name]"]'),t=this.$form.find("#create_access_levels_attributes");this.$form.find('input[type="submit"]').prop("disabled",!(e.val()&&t.length))}}])&&c(t.prototype,n),a&&c(t,a),e}(),u=n(14),h=n(11);function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$wrap=t.$wrap,this.$allowedToCreateDropdownButton=this.$wrap.find(".js-allowed-to-create"),this.onSelectCallback=this.onSelect.bind(this),this.buildDropdowns()}var t,n,a;return t=e,(n=[{key:"buildDropdowns",value:function(){this.protectedTagAccessDropdown=new s({$dropdown:this.$allowedToCreateDropdownButton,data:gon.create_access_levels,onSelect:this.onSelectCallback})}},{key:"onSelect",value:function(){var e=this,t=this.$wrap.find('input[name="'.concat(this.$allowedToCreateDropdownButton.data("fieldName"),'"]'));t.length&&(this.$allowedToCreateDropdownButton.disable(),h.a.patch(this.$wrap.data("url"),{protected_tag:{create_access_levels_attributes:[{id:this.$allowedToCreateDropdownButton.data("accessLevelId"),access_level:t.val()}]}}).then((function(){e.$allowedToCreateDropdownButton.enable()})).catch((function(){e.$allowedToCreateDropdownButton.enable(),Object(u.a)(Object(o.a)("Failed to update tag!"),"alert",document.querySelector(".js-protected-tags-list"))})))}}])&&f(t.prototype,n),a&&f(t,a),e}();function g(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$wrap=i()(".protected-tags-list"),this.initEditForm()}var t,n,a;return t=e,(n=[{key:"initEditForm",value:function(){this.$wrap.find(".js-protected-tag-edit-form").each((function(e,t){new p({$wrap:i()(t)})}))}}])&&g(t.prototype,n),a&&g(t,a),e}(),v=n(255);function b(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.initDropdown()}var t,n,a;return t=e,(n=[{key:"initDropdown",value:function(){var e=this.options,t=e.$dropdown,n=e.data,a=e.onSelect;t.glDropdown({data:n,selectable:!0,inputId:t.data("inputId"),fieldName:t.data("fieldName"),toggleLabel:function(e,t){return t.is(".is-active")?e.text:Object(o.a)("Select")},clicked:function(e){e.e.preventDefault(),a()}})}}])&&b(t.prototype,n),a&&b(t,a),e}(),y=n(71);function D(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$form=i()(".js-new-protected-branch"),this.isLocalStorageAvailable=y.a.isLocalStorageAccessSafe(),this.currentProjectUserDefaults={},this.buildDropdowns()}var t,n,a;return t=e,a=[{key:"getProtectedBranches",value:function(e,t){t(gon.open_branches)}}],(n=[{key:"buildDropdowns",value:function(){var t=this.$form.find(".js-allowed-to-merge"),n=this.$form.find(".js-allowed-to-push"),a=this.$form.find(".js-protected-branch-select");this.onSelectCallback=this.onSelect.bind(this),this.protectedBranchMergeAccessDropdown=new w({$dropdown:t,data:gon.merge_access_levels,onSelect:this.onSelectCallback}),this.protectedBranchPushAccessDropdown=new w({$dropdown:n,data:gon.push_access_levels,onSelect:this.onSelectCallback}),this.createItemDropdown=new l.a({$dropdown:a,defaultToggleLabel:Object(o.a)("Protected Branch"),fieldName:"protected_branch[name]",onSelect:this.onSelectCallback,getData:e.getProtectedBranches})}},{key:"onSelect",value:function(){var e=this.$form.find('input[name="protected_branch[name]"]'),t=this.$form.find('input[name="protected_branch[merge_access_levels_attributes][0][access_level]"]'),n=this.$form.find('input[name="protected_branch[push_access_levels_attributes][0][access_level]"]'),a=!(e.val()&&t.length&&n.length);this.$form.find('input[type="submit"]').prop("disabled",a)}}])&&D(t.prototype,n),a&&D(t,a),e}();function j(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var _=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$wrap=t.$wrap,this.$allowedToMergeDropdown=this.$wrap.find(".js-allowed-to-merge"),this.$allowedToPushDropdown=this.$wrap.find(".js-allowed-to-push"),this.onSelectCallback=this.onSelect.bind(this),this.buildDropdowns()}var t,n,a;return t=e,(n=[{key:"buildDropdowns",value:function(){this.protectedBranchAccessDropdown=new w({$dropdown:this.$allowedToMergeDropdown,data:gon.merge_access_levels,onSelect:this.onSelectCallback}),this.protectedBranchAccessDropdown=new w({$dropdown:this.$allowedToPushDropdown,data:gon.push_access_levels,onSelect:this.onSelectCallback})}},{key:"onSelect",value:function(){var e=this,t=this.$wrap.find('input[name="'.concat(this.$allowedToMergeDropdown.data("fieldName"),'"]')),n=this.$wrap.find('input[name="'.concat(this.$allowedToPushDropdown.data("fieldName"),'"]'));t.length&&n.length&&(this.$allowedToMergeDropdown.disable(),this.$allowedToPushDropdown.disable(),h.a.patch(this.$wrap.data("url"),{protected_branch:{merge_access_levels_attributes:[{id:this.$allowedToMergeDropdown.data("accessLevelId"),access_level:t.val()}],push_access_levels_attributes:[{id:this.$allowedToPushDropdown.data("accessLevelId"),access_level:n.val()}]}}).then((function(){e.$allowedToMergeDropdown.enable(),e.$allowedToPushDropdown.enable()})).catch((function(){e.$allowedToMergeDropdown.enable(),e.$allowedToPushDropdown.enable(),Object(u.a)(Object(o.a)("Failed to update branch!"),"alert",document.querySelector(".js-protected-branches-list"))})))}}])&&j(t.prototype,n),a&&j(t,a),e}();function $(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$wrap=i()(".protected-branches-list"),this.initEditForm()}var t,n,a;return t=e,(n=[{key:"initEditForm",value:function(){this.$wrap.find(".js-protected-branch-edit-form").each((function(e,t){new _({$wrap:i()(t)})}))}}])&&$(t.prototype,n),a&&$(t,a),e}(),C=n(275);n(55),n(91),t.a=function(){new d,new m,Object(v.a)(),new k,new S,new C.a,function(e,t){var n=document.querySelector(e),a=document.querySelector(t);if(n&&a){var i=n.closest("form");n.addEventListener("click",(function(){a.click()})),a.addEventListener("change",(function(){i.querySelector(".js-filename").textContent=a.value.replace(/^.*[\\\/]/,"")}))}}(".js-choose-file",".js-object-map-input")}},188:function(e,t,n){
/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/
!function(t,a){"use strict";var i;try{i=n(!function(){var e=new Error("Cannot find module 'moment'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,a=window.document,i=window.setTimeout,o=function(e,t,a,i){n?e.addEventListener(t,a,!!i):e.attachEvent("on"+t,a)},r=function(e,t,a,i){n?e.removeEventListener(t,a,!!i):e.detachEvent("on"+t,a)},s=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},c=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},u=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},p=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){u(e)&&e.setHours(0,0,0,0)},m=function(e,t){return e.getTime()===t.getTime()},v=function(e,t,n){var a,i;for(a in t)(i=void 0!==e[a])&&"object"==typeof t[a]&&null!==t[a]&&void 0===t[a].nodeName?u(t[a])?n&&(e[a]=new Date(t[a].getTime())):d(t[a])?n&&(e[a]=t[a].slice(0)):e[a]=v({},t[a],n):!n&&i||(e[a]=t[a]);return e},b=function(e,t,n){var i;a.createEvent?((i=a.createEvent("HTMLEvents")).initEvent(t,!0,!1),i=v(i,n),e.dispatchEvent(i)):a.createEventObject&&(i=a.createEventObject(),i=v(i,n),e.fireEvent("on"+t,i))},w=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},y={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},D=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},k=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},j=function(e,t,n,a){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(a?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},_=function(e,t,n,a,i,o){var r,s,l,c,u,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],r=0;r<12;r++)l.push('<option value="'+(n===i?r-t:12+r-t)+'"'+(r===a?' selected="selected"':"")+(f&&r<h.minMonth||p&&r>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[r]+"</option>");for(c='<div class="pika-label">'+h.i18n.months[a]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(r=h.yearRange[0],s=h.yearRange[1]+1):(r=n-h.yearRange,s=1+n+h.yearRange),l=[];r<s&&r<=h.maxYear;r++)r>=h.minYear&&l.push('<option value="'+r+'"'+(r===n?' selected="selected"':"")+">"+r+"</option>");return u='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?g+=u+c:g+=c+u,f&&(0===a||h.minMonth>=a)&&(m=!1),p&&(11===a||h.maxMonth<=a)&&(v=!1),0===t&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+"</div>"},$=function(r){var l=this,c=l.config(r);l._onMouseDown=function(e){if(l._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(s(t,"is-disabled")||(!s(t,"pika-button")||s(t,"is-empty")||s(t.parentNode,"is-disabled")?s(t,"pika-prev")?l.prevMonth():s(t,"pika-next")&&l.nextMonth():(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),c.bound&&i((function(){l.hide(),c.blurFieldOnSelect&&c.field&&c.field.blur()}),100))),s(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?l.gotoMonth(t.value):s(t,"pika-select-year")&&l.gotoYear(t.value))},l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:c.field&&c.field.blur();break;case 37:e.preventDefault(),l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7)}},l._onInputChange=function(n){var a;n.firedBy!==l&&(a=c.parse?c.parse(c.field.value,c.format):t?(a=e(c.field.value,c.format,c.formatStrict))&&a.isValid()?a.toDate():null:new Date(Date.parse(c.field.value)),u(a)&&l.setDate(a),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var e=a.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);l._c||(l._b=i((function(){l.hide()}),50)),l._c=!1},l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,a=t;if(t){!n&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",l._onChange)));do{if(s(a,"pika-single")||a===c.trigger)return}while(a=a.parentNode);l._v&&t!==c.trigger&&a!==c.trigger&&l.hide()}},l.el=a.createElement("div"),l.el.className="pika-single"+(c.isRTL?" is-rtl":"")+(c.theme?" "+c.theme:""),o(l.el,"mousedown",l._onMouseDown,!0),o(l.el,"touchend",l._onMouseDown,!0),o(l.el,"change",l._onChange),c.keyboardInput&&o(a,"keydown",l._onKeyChange),c.field&&(c.container?c.container.appendChild(l.el):c.bound?a.body.appendChild(l.el):c.field.parentNode.insertBefore(l.el,c.field.nextSibling),o(c.field,"change",l._onInputChange),c.defaultDate||(t&&c.field.value?c.defaultDate=e(c.field.value,c.format).toDate():c.defaultDate=new Date(Date.parse(c.field.value)),c.setDefaultDate=!0));var d=c.defaultDate;u(d)?c.setDefaultDate?l.setDate(d,!0):l.gotoDate(d):l.gotoDate(new Date),c.bound?(this.hide(),l.el.className+=" is-bound",o(c.trigger,"click",l._onInputClick),o(c.trigger,"focus",l._onInputFocus),o(c.trigger,"blur",l._onInputBlur)):this.show()};return $.prototype={config:function(e){this._o||(this._o=v({},y,!0));var t=v(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,u(t.minDate)||(t.minDate=!1),u(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var a=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||a,t.yearRange[1]=parseInt(t.yearRange[1],10)||a}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||y.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,u(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,a){t&&e.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return u(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),u(e)){var n=this._o.minDate,a=this._o.maxDate;u(n)&&e<n?e=n:u(a)&&e>a&&(e=a),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(u(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),t=i<n.getTime()||a.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,a=this.getDate()||new Date,i=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(a.valueOf()+i):"subtract"===e&&(n=new Date(a.valueOf()-i)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=w({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=y.minDate,this._o.minYear=y.minYear,this._o.minMonth=y.minMonth,this._o.startRange=y.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=y.maxDate,this._o.maxYear=y.maxYear,this._o.maxMonth=y.maxMonth,this._o.endRange=y.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,a=n.minYear,o=n.maxYear,r=n.minMonth,s=n.maxMonth,l="";this._y<=a&&(this._y=a,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var c=0;c<n.numberOfMonths;c++)l+='<div class="pika-lendar">'+_(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,t)+this.render(this.calendars[c].year,this.calendars[c].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&i((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,i,o,r,s,d,u,h,f,p;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||a.documentElement.clientWidth,r=window.innerHeight||a.documentElement.clientHeight,s=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop,f=!0,p=!0,"function"==typeof e.getBoundingClientRect)d=(h=e.getBoundingClientRect()).left+window.pageXOffset,u=h.bottom+window.pageYOffset;else for(d=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)d+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&d+n>o||this._o.position.indexOf("right")>-1&&d-n+e.offsetWidth>0)&&(d=d-n+e.offsetWidth,f=!1),(this._o.reposition&&u+i>r+s||this._o.position.indexOf("top")>-1&&u-i-e.offsetHeight>0)&&(u=u-i-e.offsetHeight,p=!1),this.el.style.left=d+"px",this.el.style.top=u+"px",l(this.el,f?"left-aligned":"right-aligned"),l(this.el,p?"bottom-aligned":"top-aligned"),c(this.el,f?"right-aligned":"left-aligned"),c(this.el,p?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var a=this._o,i=new Date,o=p(e,t),r=new Date(e,t,1).getDay(),s=[],l=[];g(i),a.firstDay>0&&(r-=a.firstDay)<0&&(r+=7);for(var c=0===t?11:t-1,d=11===t?0:t+1,f=0===t?e-1:e,v=11===t?e+1:e,b=p(f,c),w=o+r,y=w;y>7;)y-=7;w+=7-y;for(var _,$,S,C,I=!1,O=0,T=0;O<w;O++){var x=new Date(e,t,O-r+1),M=!!u(this._d)&&m(x,this._d),P=m(x,i),N=-1!==a.events.indexOf(x.toDateString()),R=O<r||O>=o+r,E=O-r+1,A=t,B=e,L=a.startRange&&m(a.startRange,x),H=a.endRange&&m(a.endRange,x),F=a.startRange&&a.endRange&&a.startRange<x&&x<a.endRange;R&&(O<r?(E=b+E,A=c,B=f):(E-=o,A=d,B=v));var U={day:E,month:A,year:B,hasEvent:N,isSelected:M,isToday:P,isDisabled:a.minDate&&x<a.minDate||a.maxDate&&x>a.maxDate||a.disableWeekends&&h(x)||a.disableDayFn&&a.disableDayFn(x),isEmpty:R,isStartRange:L,isEndRange:H,isInRange:F,showDaysInNextAndPreviousMonths:a.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:a.enableSelectionDaysInNextAndPreviousMonths};a.pickWholeWeek&&M&&(I=!0),l.push(k(U)),7==++T&&(a.showWeekNumber&&l.unshift((_=O-r,$=t,S=e,C=void 0,void 0,C=new Date(S,0,1),'<td class="pika-week">'+Math.ceil(((new Date(S,$,_)-C)/864e5+C.getDay()+1)/7)+"</td>")),s.push(j(l,a.isRTL,a.pickWholeWeek,I)),l=[],T=0,I=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+D(e,t)+'">'+D(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+(a=t,"<tbody>"+a.join("")+"</tbody>")+"</table>";var a}(a,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&r(a,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),r(this.el,"mousedown",this._onMouseDown,!0),r(this.el,"touchend",this._onMouseDown,!0),r(this.el,"change",this._onChange),e.keyboardInput&&r(a,"keydown",this._onKeyChange),e.field&&(r(e.field,"change",this._onInputChange),e.bound&&(r(e.trigger,"click",this._onInputClick),r(e.trigger,"focus",this._onInputFocus),r(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},$}(i)}()},2423:function(e,t,n){n(105),n(113),e.exports=n(2489)},2489:function(e,t,n){"use strict";n.r(t);var a=n(1159),i=(n(55),n(91),n(237)),o=n.n(i),r=n(0),s=n.n(r),l=n(1),c=n(14),d=n(11),u=(n(30),n(42),n(26),n(67),n(27),n(93)),h=n.n(u),f=n(16),p="password",g="ssh_public_key";function m(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.backOffRequestCounter=0,this.$form=s()(t),this.$repositoryUrl=this.$form.find(".js-repo-url"),this.$knownHosts=this.$form.find(".js-known-hosts"),this.$sectionSSHHostKeys=this.$form.find(".js-ssh-host-keys-section"),this.$hostKeysInformation=this.$form.find(".js-fingerprint-ssh-info"),this.$btnDetectHostKeys=this.$form.find(".js-detect-host-keys"),this.$btnSSHHostsShowAdvanced=this.$form.find(".btn-show-advanced"),this.$dropdownAuthType=this.$form.find(".js-mirror-auth-type"),this.$hiddenAuthType=this.$form.find(".js-hidden-mirror-auth-type"),this.$wellAuthTypeChanging=this.$form.find(".js-well-changing-auth"),this.$wellPasswordAuth=this.$form.find(".js-well-password-auth")}var t,n,a;return t=e,(n=[{key:"init",value:function(){var e=this;this.handleRepositoryUrlInput(!0),this.$repositoryUrl.on("keyup",(function(){return e.handleRepositoryUrlInput()})),this.$knownHosts.on("keyup",(function(t){return e.handleSSHKnownHostsInput(t)})),this.$dropdownAuthType.on("change",(function(t){return e.handleAuthTypeChange(t)})),this.$btnDetectHostKeys.on("click",(function(t){return e.handleDetectHostKeys(t)})),this.$btnSSHHostsShowAdvanced.on("click",(function(t){return e.handleSSHHostsAdvanced(t)}))}},{key:"handleRepositoryUrlInput",value:function(e){var t=this.$repositoryUrl.val().split("://")[0];if(e||this.$form.get(0).checkValidity()){var n="ssh"===t;this.$sectionSSHHostKeys.collapse(n?"show":"hide"),this.$btnDetectHostKeys.enable();var a=/http|git/.test(t);this.$dropdownAuthType.attr("disabled",a),e&&n?(this.$dropdownAuthType.val(g),this.toggleAuthWell(g)):(this.$dropdownAuthType.val(p),this.toggleAuthWell(p))}}},{key:"handleDetectHostKeys",value:function(){var e=this,t=this.$form.data("project-mirror-ssh-endpoint"),n=this.$repositoryUrl.val(),a=this.$knownHosts.val(),i=this.$btnDetectHostKeys.find(".js-spinner");this.$btnDetectHostKeys.disable(),i.removeClass("d-none"),Object(f.e)((function(i,o){d.a.get("".concat(t,"?ssh_url=").concat(n,"&compare_host_keys=").concat(encodeURIComponent(a))).then((function(t){var n=t.data;204===t.status?(e.backOffRequestCounter+=1,e.backOffRequestCounter<3?i():o(n)):o(n)})).catch(o)})).then((function(t){i.addClass("d-none"),e.$hostKeysInformation.find(".js-fingerprint-verification").collapse(t.host_keys_changed?"hide":"show"),t.known_hosts&&t.fingerprints&&e.showSSHInformation(t)})).catch((function(t){var n=t.response,a=n.data?n.data.message:Object(l.a)("An error occurred while detecting host keys");Object(c.a)(a),i.addClass("hidden"),e.$btnDetectHostKeys.enable()}))}},{key:"handleSSHKnownHostsInput",value:function(){this.$hostKeysInformation.find(".js-fingerprints-list").addClass("invalidate"),this.$hostKeysInformation.find(".js-fingerprint-verification").collapse("hide")}},{key:"handleSSHHostsAdvanced",value:function(){var e=this.$sectionSSHHostKeys.find(".js-ssh-known-hosts"),t=e.hasClass("show");e.collapse("toggle"),this.$btnSSHHostsShowAdvanced.toggleClass("show-advanced",t)}},{key:"handleAuthTypeChange",value:function(){var e=this.$dropdownAuthType.val();this.$wellPasswordAuth.collapse("hide"),this.updateHiddenAuthType(e),this.toggleAuthWell(e)}},{key:"showSSHInformation",value:function(e){var t=this.$hostKeysInformation.find(".js-fingerprints-list"),n="";e.fingerprints.forEach((function(e){var t=h()(e.fingerprint);n+="<code>".concat(t,"</code>")})),this.$hostKeysInformation.collapse("show"),t.removeClass("invalidate"),t.html(n),this.$sectionSSHHostKeys.find(".js-known-hosts").val(e.known_hosts)}},{key:"toggleAuthWell",value:function(e){this.$wellPasswordAuth.collapse(e===p?"show":"hide"),this.updateHiddenAuthType(e)}},{key:"updateHiddenAuthType",value:function(e){this.$hiddenAuthType.val(e),this.$hiddenAuthType.prop("disabled",e===g)}},{key:"destroy",value:function(){this.$repositoryUrl.off("keyup"),this.$form.find(".js-known-hosts").off("keyup"),this.$dropdownAuthType.off("change"),this.$btnDetectHostKeys.off("click"),this.$btnSSHHostsShowAdvanced.off("click")}}])&&m(t.prototype,n),a&&m(t,a),e}();function b(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$container=s()(t),this.$password=null,this.$form=s()(".js-mirror-form",this.$container),this.$urlInput=s()(".js-mirror-url",this.$form),this.$protectedBranchesInput=s()(".js-mirror-protected",this.$form),this.$table=s()(".js-mirrors-table-body",this.$container),this.mirrorEndpoint=this.$form.data("projectMirrorEndpoint")}var t,n,a;return t=e,(n=[{key:"init",value:function(){this.initMirrorPush(),this.registerUpdateListeners()}},{key:"initMirrorPush",value:function(){var e=this;this.$passwordGroup=s()(".js-password-group",this.$container),this.$password=s()(".js-password",this.$passwordGroup),this.$authMethod=s()(".js-auth-method",this.$form),this.$authMethod.on("change",(function(){return e.togglePassword()})),this.$password.on("input.updateUrl",(function(){return e.debouncedUpdateUrl()})),this.initMirrorSSH(),this.updateProtectedBranches()}},{key:"initMirrorSSH",value:function(){this.$password&&this.$password.off("input.updateUrl"),this.$password=void 0,this.sshMirror=new v(".js-mirror-form"),this.sshMirror.init()}},{key:"updateUrl",value:function(){var e=this.$urlInput.val();if(this.$password){var t=this.$password.val();t&&(e=e.replace("@",":".concat(t,"@")))}s()(".js-mirror-url-hidden",this.$form).val(e)}},{key:"updateProtectedBranches",value:function(){var e=this.$protectedBranchesInput.get(0).checked?this.$protectedBranchesInput.val():"0";s()(".js-mirror-protected-hidden",this.$form).val(e)}},{key:"registerUpdateListeners",value:function(){var e=this;this.debouncedUpdateUrl=o()((function(){return e.updateUrl()}),200),this.$urlInput.on("input",(function(){return e.debouncedUpdateUrl()})),this.$protectedBranchesInput.on("change",(function(){return e.updateProtectedBranches()})),this.$table.on("click",".js-delete-mirror",(function(t){return e.deleteMirror(t)}))}},{key:"togglePassword",value:function(){var e="password"===this.$authMethod.val();e||(this.$password.val(""),this.updateUrl()),this.$passwordGroup.collapse(e?"show":"hide")}},{key:"deleteMirror",value:function(e,t){var n=this,a=s()(e.currentTarget),i=t;return i||(i={project:{remote_mirrors_attributes:{id:a.data("mirrorId"),_destroy:1}}}),d.a.put(this.mirrorEndpoint,i).then((function(){return n.removeRow(a)})).catch((function(){return Object(c.a)(Object(l.a)("Failed to remove mirror."))}))}},{key:"removeRow",value:function(e){var t=e.closest("tr");s()(".js-delete-mirror",t).tooltip("hide"),t.remove()}}])&&b(t.prototype,n),a&&b(t,a),e}();document.addEventListener("DOMContentLoaded",(function(){Object(a.a)();var e=document.querySelector(".js-mirror-settings");e&&new w(e).init()}))},255:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(42);var a=n(0),i=n.n(a),o=n(1);function r(e){e.find(".js-settings-toggle:not(.js-settings-toggle-trigger-only)").text(Object(o.a)("Collapse")),e.find(".settings-content").off("scroll.expandSection").scrollTop(0),e.addClass("expanded"),e.hasClass("no-animate")||e.addClass("animating").one("animationend.animateSection",(function(){return e.removeClass("animating")}))}function s(e){e.removeClass("no-animate"),e.hasClass("expanded")?function(e){e.find(".js-settings-toggle:not(.js-settings-toggle-trigger-only)").text(Object(o.a)("Expand")),e.find(".settings-content").on("scroll.expandSection",(function(){return r(e)})),e.removeClass("expanded"),e.hasClass("no-animate")||e.addClass("animating").one("animationend.animateSection",(function(){return e.removeClass("animating")}))}(e):r(e)}function l(){if(i()(".settings").each((function(e,t){var n=i()(t);n.on("click.toggleSection",".js-settings-toggle",(function(){return s(n)})),n.hasClass("expanded")||n.find(".settings-content").on("scroll.expandSection",(function(){n.removeClass("no-animate"),r(n)}))})),window.location.hash){var e=i()(window.location.hash);e.length&&e.hasClass("settings")&&r(e)}}},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));n(30),n(42),n(46),n(18),n(55),n(68),n(67);var a=n(0),i=n.n(a),o=n(188),r=n.n(o),s=n(210),l=n.n(s),c=n(1),d=n(11),u=n(62),h=n(52);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}var m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.$dropdown,a=t.$loading;f(this,e);var o=n.closest(".dropdown"),r=n.closest(".block");this.$loading=a,this.$dropdown=n,this.$dropdownParent=o,this.$datePicker=o.find(".js-due-date-calendar"),this.$block=r,this.$sidebarCollapsedValue=r.find(".sidebar-collapsed-icon"),this.$selectbox=n.closest(".selectbox"),this.$value=r.find(".value"),this.$valueContent=r.find(".value-content"),this.$sidebarValue=i()(".js-due-date-sidebar-value",r),this.fieldName=n.data("fieldName"),this.abilityName=n.data("abilityName"),this.issueUpdateURL=n.data("issueUpdate"),this.rawSelectedDate=null,this.displayedDate=null,this.datePayload=null,this.initGlDropdown(),this.initRemoveDueDate(),this.initDatePicker()}return g(e,[{key:"initGlDropdown",value:function(){var e=this;this.$dropdown.glDropdown({opened:function(){e.$datePicker.data("pikaday").show()},hidden:function(){e.$selectbox.hide(),e.$value.css("display","")},shouldPropagate:!1})}},{key:"initDatePicker",value:function(){var e=this,t=i()("input[name='".concat(this.fieldName,"']")),n=new r.a({field:t.get(0),theme:"gitlab-theme",format:"yyyy-mm-dd",parse:function(e){return Object(u.n)(e)},toString:function(e){return Object(u.p)(e)},onSelect:function(a){t.val(n.toString(a)),e.$dropdown.hasClass("js-issue-boards-due-date")?(h.c.detail.issue.dueDate=t.val(),e.updateIssueBoardIssue()):e.saveDueDate(!0)},firstDay:gon.first_day_of_week});n.setDate(Object(u.n)(t.val())),this.$datePicker.append(n.el),this.$datePicker.data("pikaday",n)}},{key:"initRemoveDueDate",value:function(){var e=this;this.$block.on("click",".js-remove-due-date",(function(t){var n=e.$datePicker.data("pikaday");t.preventDefault(),n.setDate(null),e.$dropdown.hasClass("js-issue-boards-due-date")?(h.c.detail.issue.dueDate="",e.updateIssueBoardIssue()):(i()("input[name='".concat(e.fieldName,"']")).val(""),e.saveDueDate(!1))}))}},{key:"saveDueDate",value:function(e){this.parseSelectedDate(),this.prepSelectedDate(),this.submitSelectedDate(e)}},{key:"parseSelectedDate",value:function(){if(this.rawSelectedDate=i()("input[name='".concat(this.fieldName,"']")).val(),this.rawSelectedDate.length){var e=this.rawSelectedDate.split("-").map((function(e){return parseInt(e,10)})),t=new Date(e[0],e[1]-1,e[2]);this.displayedDate=l()(t,"mmm d, yyyy")}else this.displayedDate=Object(c.a)("None")}},{key:"prepSelectedDate",value:function(){var e={};e[this.abilityName]={},e[this.abilityName].due_date=this.rawSelectedDate,this.datePayload=e}},{key:"updateIssueBoardIssue",value:function(){var e=this;this.$loading.fadeIn(),this.$dropdown.trigger("loading.gl.dropdown"),this.$selectbox.hide(),this.$value.css("display","");var t=function(){e.$loading.fadeOut()};h.c.detail.issue.update(this.$dropdown.attr("data-issue-update")).then(t).catch(t)}},{key:"submitSelectedDate",value:function(e){var t=this,n=this.datePayload[this.abilityName].due_date,a=this.displayedDate!==Object(c.a)("None"),o=a?"bold":"no-value";return this.$loading.removeClass("hidden").fadeIn(),e&&(this.$dropdown.trigger("loading.gl.dropdown"),this.$selectbox.hide()),this.$value.css("display",""),this.$valueContent.html("<span class='".concat(o,"'>").concat(this.displayedDate,"</span>")),this.$sidebarValue.html(this.displayedDate),i()(".js-remove-due-date-holder").toggleClass("hidden",n.length),d.a.put(this.issueUpdateURL,this.datePayload).then((function(){var i=a?"".concat(Object(c.a)("Due date"),"<br />").concat(n," (").concat(Object(u.s)(n),")"):Object(c.a)("Due date");return e&&(t.$dropdown.trigger("loaded.gl.dropdown"),t.$dropdown.dropdown("toggle")),t.$sidebarCollapsedValue.attr("data-original-title",i),t.$loading.fadeOut()}))}}]),e}(),v=function(){function e(){f(this,e),this.initMilestoneDatePicker(),this.initIssuableSelect()}return g(e,[{key:"initMilestoneDatePicker",value:function(){i()(".datepicker").each((function(){var e=i()(this),t=e.val(),n=new r.a({field:e.get(0),theme:"gitlab-theme animate-picker",format:"yyyy-mm-dd",container:e.parent().get(0),parse:function(e){return Object(u.n)(e)},toString:function(e){return Object(u.p)(e)},onSelect:function(t){e.val(n.toString(t))},firstDay:gon.first_day_of_week});n.setDate(Object(u.n)(t)),e.data("pikaday",n)})),i()(".js-clear-due-date,.js-clear-start-date").on("click",(function(e){e.preventDefault(),i()(e.target).siblings(".datepicker").data("pikaday").setDate(null)}))}},{key:"initIssuableSelect",value:function(){var e=i()(".js-issuable-update .due_date").find(".block-loading").hide();i()(".js-due-date-select").each((function(t,n){var a=i()(n);new m({$dropdown:a,$loading:e})}))}}]),e}()},522:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(30),n(42),n(258);var a=n(20),i=n.n(a);n(321);function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultToggleLabel=t.defaultToggleLabel,this.fieldName=t.fieldName,this.onSelect=t.onSelect||function(){},this.getDataOption=t.getData,this.getDataRemote=Boolean(t.filterRemote),this.createNewItemFromValueOption=t.createNewItemFromValue,this.$dropdown=t.$dropdown,this.$dropdownContainer=this.$dropdown.parent(),this.$dropdownFooter=this.$dropdownContainer.find(".dropdown-footer"),this.$createButton=this.$dropdownContainer.find(".js-dropdown-create-new-item"),this.buildDropdown(),this.bindEvents(),this.toggleFooter(!0)}var t,n,a;return t=e,(n=[{key:"buildDropdown",value:function(){var e=this;this.$dropdown.glDropdown({data:this.getData.bind(this),filterable:!0,filterRemote:this.getDataRemote,search:{fields:["text"]},selectable:!0,toggleLabel:function(e){return e&&"id"in e?i.a.escape(e.title):this.defaultToggleLabel},fieldName:this.fieldName,text:function(e){return i.a.escape(e.text)},id:function(e){return i.a.escape(e.id)},onFilter:this.toggleCreateNewButton.bind(this),clicked:function(t){t.e.preventDefault(),e.onSelect()}})}},{key:"clearDropdown",value:function(){this.$dropdownContainer.find(".dropdown-content").html(""),this.$dropdownContainer.find(".dropdown-input-field").val("")}},{key:"bindEvents",value:function(){this.$createButton.on("click",this.onClickCreateWildcard.bind(this))}},{key:"onClickCreateWildcard",value:function(e){e.preventDefault(),this.refreshData(),this.$dropdown.data("glDropdown").selectRowAtIndex()}},{key:"refreshData",value:function(){this.$dropdown.data("glDropdown").remote.execute()}},{key:"getData",value:function(e,t){var n=this;this.getDataOption(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=n.selectedItem&&e.some((function(e){return e.id===n.selectedItem.id})),i=e;a||(i=e.concat(n.selectedItem||[])),t(i)}))}},{key:"createNewItemFromValue",value:function(e){return this.createNewItemFromValueOption?this.createNewItemFromValueOption(e):{title:e,id:e,text:e}}},{key:"toggleCreateNewButton",value:function(e){e&&(this.selectedItem=this.createNewItemFromValue(e),this.$dropdownContainer.find(".js-dropdown-create-new-item code").text(e)),this.toggleFooter(!e)}},{key:"toggleFooter",value:function(e){this.$dropdownFooter.toggleClass("hidden",e)}}])&&o(t.prototype,n),a&&o(t,a),e}()},70:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n(24),n(49),n(56),n(40),n(90),n(18),n(36),n(41);var a=n(8),i=n.n(a),o=n(9);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=s(this,l(t).call(this)),i.a.bind("g p",(function(){return Object(o.a)(".shortcuts-project")})),i.a.bind("g v",(function(){return Object(o.a)(".shortcuts-project-activity")})),i.a.bind("g r",(function(){return Object(o.a)(".shortcuts-project-releases")})),i.a.bind("g f",(function(){return Object(o.a)(".shortcuts-tree")})),i.a.bind("g c",(function(){return Object(o.a)(".shortcuts-commits")})),i.a.bind("g j",(function(){return Object(o.a)(".shortcuts-builds")})),i.a.bind("g n",(function(){return Object(o.a)(".shortcuts-network")})),i.a.bind("g d",(function(){return Object(o.a)(".shortcuts-repository-charts")})),i.a.bind("g i",(function(){return Object(o.a)(".shortcuts-issues")})),i.a.bind("g b",(function(){return Object(o.a)(".shortcuts-issue-boards")})),i.a.bind("g m",(function(){return Object(o.a)(".shortcuts-merge_requests")})),i.a.bind("g w",(function(){return Object(o.a)(".shortcuts-wiki")})),i.a.bind("g s",(function(){return Object(o.a)(".shortcuts-snippets")})),i.a.bind("g k",(function(){return Object(o.a)(".shortcuts-kubernetes")})),i.a.bind("g e",(function(){return Object(o.a)(".shortcuts-environments")})),i.a.bind("g l",(function(){return Object(o.a)(".shortcuts-metrics")})),i.a.bind("i",(function(){return Object(o.a)(".shortcuts-new-issue")})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),t}(n(107).a)},73:function(e,t,n){"use strict";n(30),n(35),n(18),n(64);var a=n(0),i=n.n(a),o=n(32),r=(n(65),n(69),n(55),n(67),n(71));function s(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.projectSelectInput=i()(t),this.newItemBtn=i()(".new-project-item-link"),this.resourceType=this.newItemBtn.data("type"),this.resourceLabel=this.newItemBtn.data("label"),this.formattedText=this.deriveTextVariants(),this.groupId=this.projectSelectInput.data("groupId"),this.bindEvents(),this.initLocalStorage()}var t,a,o;return t=e,(a=[{key:"bindEvents",value:function(){var e=this;this.projectSelectInput.siblings(".new-project-item-select-button").on("click",(function(t){return e.openDropdown(t)})),this.newItemBtn.on("click",(function(t){e.getProjectFromLocalStorage()||(t.preventDefault(),e.openDropdown(t))})),this.projectSelectInput.on("change",(function(){return e.selectProject()}))}},{key:"initLocalStorage",value:function(){r.a.isLocalStorageAccessSafe()&&(this.localStorageKey=["group",this.groupId,this.formattedText.localStorageItemType,"recent-project"].join("-"),this.setBtnTextFromLocalStorage())}},{key:"openDropdown",value:function(e){n.e(239).then(n.t.bind(null,428,7)).then((function(){i()(e.currentTarget).siblings(".project-item-select").select2("open")})).catch((function(){}))}},{key:"selectProject",value:function(){var e=JSON.parse(this.projectSelectInput.val()),t={url:"".concat(e.url,"/").concat(this.projectSelectInput.data("relativePath")),name:e.name};this.setNewItemBtnAttributes(t),this.setProjectInLocalStorage(t)}},{key:"setBtnTextFromLocalStorage",value:function(){var e=this.getProjectFromLocalStorage();this.setNewItemBtnAttributes(e)}},{key:"setNewItemBtnAttributes",value:function(e){e?(this.newItemBtn.attr("href",e.url),this.newItemBtn.text("".concat(this.formattedText.defaultTextPrefix," in ").concat(e.name))):this.newItemBtn.text("Select project to create ".concat(this.formattedText.presetTextSuffix))}},{key:"getProjectFromLocalStorage",value:function(){var e=localStorage.getItem(this.localStorageKey);return JSON.parse(e)}},{key:"setProjectInLocalStorage",value:function(e){var t=JSON.stringify(e);localStorage.setItem(this.localStorageKey,t)}},{key:"deriveTextVariants",value:function(){var e=this.resourceLabel;return{localStorageItemType:"new-".concat(this.resourceType.split("_").join("-").slice(0,-1)),defaultTextPrefix:e,presetTextSuffix:this.resourceType.split("_").join(" ").slice(0,-1)}}}])&&s(t.prototype,a),o&&s(t,o),e}(),c=n(1),d=function(){i()(".ajax-project-select").each((function(e,t){var n,a=this,r=i()(t).data("simpleFilter")||!1,s=i()(t).data("select2");return this.groupId=i()(t).data("groupId"),this.userId=i()(t).data("userId"),this.includeGroups=i()(t).data("includeGroups"),this.allProjects=i()(t).data("allProjects")||!1,this.orderBy=i()(t).data("orderBy")||"id",this.withIssuesEnabled=i()(t).data("withIssuesEnabled"),this.withMergeRequestsEnabled=i()(t).data("withMergeRequestsEnabled"),this.withShared=void 0===i()(t).data("withShared")||i()(t).data("withShared"),this.includeProjectsInSubgroups=i()(t).data("includeProjectsInSubgroups")||!1,this.allowClear=i()(t).data("allowClear")||!1,n=Object(c.d)("ProjectSelect|Search for project"),this.includeGroups&&(n+=Object(c.d)("ProjectSelect| or group")),i()(t).select2({placeholder:n,minimumInputLength:0,query:function(e){var t,n=function(t){var n={results:t};return e.callback(n)};return t=a.includeGroups?function(t){return o.a.groups(e.term,{},(function(e){var a=e.concat(t);return n(a)}))}:n,a.groupId?o.a.groupProjects(a.groupId,e.term,{with_issues_enabled:a.withIssuesEnabled,with_merge_requests_enabled:a.withMergeRequestsEnabled,with_shared:a.withShared,include_subgroups:a.includeProjectsInSubgroups},t):a.userId?o.a.userProjects(a.userId,e.term,{with_issues_enabled:a.withIssuesEnabled,with_merge_requests_enabled:a.withMergeRequestsEnabled,with_shared:a.withShared,include_subgroups:a.includeProjectsInSubgroups},t):o.a.projects(e.term,{order_by:a.orderBy,with_issues_enabled:a.withIssuesEnabled,with_merge_requests_enabled:a.withMergeRequestsEnabled,membership:!a.allProjects},t)},id:function(e){return r?e.id:JSON.stringify({name:e.name,url:e.web_url})},text:function(e){return e.name_with_namespace||e.name},initSelection:function(e,t){return o.a.project(e.val()).then((function(e){var n=e.data;return t(n)}))},allowClear:this.allowClear,dropdownCssClass:"ajax-project-dropdown"}),s||r?t:new l(t)}))};t.a=function(){return n.e(239).then(n.t.bind(null,428,7)).then(d).catch((function(){}))}},88:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));n(42),n(89);var a=n(0),i=n.n(a),o=n(51),r=n.n(o),s=n(1),l=n(33);n(28),n(78),n(40),n(46),n(129),n(35),n(77),n(18),n(36),n(41);var c=function(e){return e.reduce((function(e,t){var n=t.name,a=t.value;return Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,a))}),{})},d=n(11),u=n(14),h=n(73);function f(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=i()("ul.clone-options-dropdown"),n=i()("#project_clone"),a=i()(".js-git-clone-holder .js-clone-dropdown-label"),o=document.querySelector(".js-mobile-git-clone .js-clone-dropdown-label"),s=a.text().trim();s.length>0&&i()("a:contains('".concat(s,"')"),t).addClass("is-active"),i()("a",t).on("click",(function(e){e.preventDefault();var a=i()(e.currentTarget),r=a.attr("href"),s=a.data("cloneType");i()(".is-active",t).removeClass("is-active"),i()('a[data-clone-type="'.concat(s,'"]')).each((function(){var e=i()(this),t=e.find(".dropdown-menu-inner-title").text(),n=e.closest(".project-clone-holder").find(".js-clone-dropdown-label");e.toggleClass("is-active"),n.text(t)})),o?o.dataset.clipboardText=r:n.val(r),i()(".js-git-empty .js-clone").text(r)})),e.initRefSwitcher(),i()(".project-refs-select").on("change",(function(){return i()(this).parents("form").submit()})),i()(".hide-no-ssh-message").on("click",(function(e){return r.a.set("hide_no_ssh_message","false"),i()(this).parents(".no-ssh-key-message").remove(),e.preventDefault()})),i()(".hide-no-password-message").on("click",(function(e){return r.a.set("hide_no_password_message","false"),i()(this).parents(".no-password-message").remove(),e.preventDefault()})),i()(".hide-auto-devops-implicitly-enabled-banner").on("click",(function(e){var t=i()(this).data("project-id"),n="hide_auto_devops_implicitly_enabled_banner_".concat(t);return r.a.set(n,"false"),i()(this).parents(".auto-devops-implicitly-enabled-banner").remove(),e.preventDefault()})),e.projectSelectDropdown()}var t,n,a;return t=e,a=[{key:"projectSelectDropdown",value:function(){Object(h.a)(),i()(".project-item-select").on("click",(function(t){return e.changeProject(i()(t.currentTarget).val())}))}},{key:"changeProject",value:function(e){return window.location=e}},{key:"initRefSwitcher",value:function(){var e=document.createElement("li"),t=document.createElement("a");return t.href="#",i()(".js-project-refs-dropdown").each((function(){var n,a,o,r=i()(this),h=r.data("selected"),f=r.data("fieldName"),p=Boolean(r.data("visit")),g=r.closest("form"),m=g.attr("action"),v=Object(l.h)((n=g[0],a=new FormData(n),o=Array.from(a.keys()).map((function(e){var t=a.getAll(e);return{name:e,value:1===(t=t.filter((function(e){return e}))).length?t[0]:t}})),c(o)),m);return r.glDropdown({data:function(e,t){d.a.get(r.data("refsUrl"),{params:{ref:r.data("ref"),search:e}}).then((function(e){var n=e.data;return t(n)})).catch((function(){return Object(u.a)(Object(s.a)("An error occurred while getting projects"))}))},selectable:!0,filterable:!0,filterRemote:!0,filterByText:!0,inputFieldName:r.data("inputFieldName"),fieldName:f,renderRow:function(n){var a,i,o,r=e.cloneNode(!1),s=t.cloneNode(!1);return n===h&&(s.className="is-active"),s.textContent=n,s.dataset.ref=n,n.length>0&&p&&(s.href=Object(l.h)((o=n,(i=f)in(a={})?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a),v)),r.appendChild(s),r},id:function(e,t){return t.attr("data-ref")},toggleLabel:function(e,t){return t.text().trim()},clicked:function(e){var t=e.e;p||t.preventDefault()}})}))}}],(n=null)&&f(t.prototype,n),a&&f(t,a),e}()}},[[2423,1,0,2,6]]]);
//# sourceMappingURL=pages.projects.settings.repository.show.61c617bc.chunk.js.map
|
/* code stolen from http://www.switchonthecode.com/tutorials/javascript-draggable-elements */
function hookEvent(element, eventName, callback)
{
if(typeof(element) == "string")
element = document.getElementById(element);
if(element == null)
return;
if(element.addEventListener)
{
element.addEventListener(eventName, callback, false);
}
else if(element.attachEvent)
element.attachEvent("on" + eventName, callback);
}
function unhookEvent(element, eventName, callback)
{
if(typeof(element) == "string")
element = document.getElementById(element);
if(element == null)
return;
if(element.removeEventListener)
element.removeEventListener(eventName, callback, false);
else if(element.detachEvent)
element.detachEvent("on" + eventName, callback);
}
function cancelEvent(e)
{
e = e ? e : window.event;
if(e.stopPropagation)
e.stopPropagation();
if(e.preventDefault)
e.preventDefault();
e.cancelBubble = true;
e.cancel = true;
e.returnValue = false;
return false;
}
function Position(x, y)
{
this.X = x;
this.Y = y;
this.Add = function(val)
{
var newPos = new Position(this.X, this.Y);
if(val != null)
{
if(!isNaN(val.X))
newPos.X += val.X;
if(!isNaN(val.Y))
newPos.Y += val.Y
}
return newPos;
}
this.Subtract = function(val)
{
var newPos = new Position(this.X, this.Y);
if(val != null)
{
if(!isNaN(val.X))
newPos.X -= val.X;
if(!isNaN(val.Y))
newPos.Y -= val.Y
}
return newPos;
}
this.Min = function(val)
{
var newPos = new Position(this.X, this.Y)
if(val == null)
return newPos;
if(!isNaN(val.X) && this.X > val.X)
newPos.X = val.X;
if(!isNaN(val.Y) && this.Y > val.Y)
newPos.Y = val.Y;
return newPos;
}
this.Max = function(val)
{
var newPos = new Position(this.X, this.Y)
if(val == null)
return newPos;
if(!isNaN(val.X) && this.X < val.X)
newPos.X = val.X;
if(!isNaN(val.Y) && this.Y < val.Y)
newPos.Y = val.Y;
return newPos;
}
this.Bound = function(lower, upper)
{
var newPos = this.Max(lower);
return newPos.Min(upper);
}
this.Check = function()
{
var newPos = new Position(this.X, this.Y);
if(isNaN(newPos.X))
newPos.X = 0;
if(isNaN(newPos.Y))
newPos.Y = 0;
return newPos;
}
this.Apply = function(element)
{
if(typeof(element) == "string")
element = document.getElementById(element);
if(element == null)
return;
if(!isNaN(this.X))
element.style.left = this.X + 'px';
if(!isNaN(this.Y))
element.style.top = this.Y + 'px';
}
}
function absoluteCursorPostion(eventObj)
{
eventObj = eventObj ? eventObj : window.event;
if(isNaN(window.scrollX))
return new Position(eventObj.clientX + document.documentElement.scrollLeft + document.body.scrollLeft,
eventObj.clientY + document.documentElement.scrollTop + document.body.scrollTop);
else
return new Position(eventObj.clientX + window.scrollX, eventObj.clientY + window.scrollY);
}
function dragObject(element, attachElement, lowerBound, upperBound, startCallback, moveCallback, endCallback, attachLater)
{
if(typeof(element) == "string")
element = document.getElementById(element);
if(element == null)
return;
if(lowerBound != null && upperBound != null)
{
var temp = lowerBound.Min(upperBound);
upperBound = lowerBound.Max(upperBound);
lowerBound = temp;
}
var cursorStartPos = null;
var elementStartPos = null;
var dragging = false;
var listening = false;
var disposed = false;
function dragStart(eventObj)
{
if(dragging || !listening || disposed) return;
dragging = true;
if(startCallback != null)
startCallback(eventObj, element);
cursorStartPos = absoluteCursorPostion(eventObj);
elementStartPos = new Position(parseInt(element.style.left), parseInt(element.style.top));
elementStartPos = elementStartPos.Check();
hookEvent(document, "mousemove", dragGo);
hookEvent(document, "mouseup", dragStopHook);
return cancelEvent(eventObj);
}
function dragGo(eventObj)
{
if(!dragging || disposed) return;
var newPos = absoluteCursorPostion(eventObj);
newPos = newPos.Add(elementStartPos).Subtract(cursorStartPos);
newPos = newPos.Bound(lowerBound, upperBound)
newPos.Apply(element);
if(moveCallback != null)
moveCallback(newPos, element);
return cancelEvent(eventObj);
}
function dragStopHook(eventObj)
{
dragStop();
return cancelEvent(eventObj);
}
function dragStop()
{
if(!dragging || disposed) return;
unhookEvent(document, "mousemove", dragGo);
unhookEvent(document, "mouseup", dragStopHook);
cursorStartPos = null;
elementStartPos = null;
if(endCallback != null)
endCallback(element);
dragging = false;
}
this.Dispose = function()
{
if(disposed) return;
this.StopListening(true);
element = null;
attachElement = null
lowerBound = null;
upperBound = null;
startCallback = null;
moveCallback = null
endCallback = null;
disposed = true;
}
this.StartListening = function()
{
if(listening || disposed) return;
listening = true;
hookEvent(attachElement, "mousedown", dragStart);
}
this.StopListening = function(stopCurrentDragging)
{
if(!listening || disposed) return;
unhookEvent(attachElement, "mousedown", dragStart);
listening = false;
if(stopCurrentDragging && dragging)
dragStop();
}
this.IsDragging = function(){ return dragging; }
this.IsListening = function() { return listening; }
this.IsDisposed = function() { return disposed; }
if(typeof(attachElement) == "string")
attachElement = document.getElementById(attachElement);
if(attachElement == null)
attachElement = element;
if(!attachLater)
this.StartListening();
}
|
const express = require("express");
const helmet = require("helmet");
const cors = require("cors");
require("dotenv").config();
const middleware = require("./middleware");
const api = require("./api");
const app = express();
app.use(express.json());
app.use(helmet());
app.use(cors());
app.get('/', (req, res) => {
res.send("Hello World! 🌎🌎🌎🌏🌍");
});
app.use('/api/v1',api);
app.use(middleware.notFound);
app.use(middleware.errorHandler);
module.exports = app;
|
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _BorderlessButton=_interopRequireDefault(require("./BorderlessButton"));var _jsxFileName="/Users/satya/Workspace/Callstack/react-navigation-stack/src/vendor/views/TouchableItem.tsx";var ANDROID_VERSION_LOLLIPOP=21;var TouchableItem=function(_React$Component){(0,_inherits2.default)(TouchableItem,_React$Component);function TouchableItem(){(0,_classCallCheck2.default)(this,TouchableItem);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(TouchableItem).apply(this,arguments));}(0,_createClass2.default)(TouchableItem,[{key:"render",value:function render(){if(_reactNative.Platform.OS==='android'&&_reactNative.Platform.Version>=ANDROID_VERSION_LOLLIPOP){var _this$props=this.props,style=_this$props.style,pressColor=_this$props.pressColor,borderless=_this$props.borderless,children=_this$props.children,rest=(0,_objectWithoutProperties2.default)(_this$props,["style","pressColor","borderless","children"]);return React.createElement(_reactNative.TouchableNativeFeedback,(0,_extends2.default)({},rest,{useForeground:_reactNative.TouchableNativeFeedback.canUseNativeForeground(),background:_reactNative.TouchableNativeFeedback.Ripple(pressColor,borderless),__source:{fileName:_jsxFileName,lineNumber:53}}),React.createElement(_reactNative.View,{style:style,__source:{fileName:_jsxFileName,lineNumber:58}},React.Children.only(children)));}else if(_reactNative.Platform.OS==='ios'){return React.createElement(_BorderlessButton.default,(0,_extends2.default)({hitSlop:{top:10,bottom:10,right:10,left:10},disallowInterruption:true,enabled:!this.props.disabled},this.props,{__source:{fileName:_jsxFileName,lineNumber:63}}),this.props.children);}else{return React.createElement(_reactNative.TouchableOpacity,(0,_extends2.default)({},this.props,{__source:{fileName:_jsxFileName,lineNumber:74}}),this.props.children);}}}]);return TouchableItem;}(React.Component);exports.default=TouchableItem;TouchableItem.defaultProps={borderless:false,pressColor:'rgba(0, 0, 0, .32)'};
//# sourceMappingURL=TouchableItem.js.map
|
/* globals Importer */
Importer.CSV = class ImporterCSV extends Importer.Base {
constructor(name, descriptionI18N, mimeType) {
super(name, descriptionI18N, mimeType);
this.logger.debug('Constructed a new CSV Importer.');
this.csvParser = Npm.require('csv-parse/lib/sync');
this.messages = new Map();
}
prepare(dataURI, sentContentType, fileName) {
super.prepare(dataURI, sentContentType, fileName);
const uriResult = RocketChatFile.dataURIParse(dataURI);
const zip = new this.AdmZip(new Buffer(uriResult.image, 'base64'));
const zipEntries = zip.getEntries();
let tempChannels = [];
let tempUsers = [];
const tempMessages = new Map();
for (const entry of zipEntries) {
this.logger.debug(`Entry: ${ entry.entryName }`);
//Ignore anything that has `__MACOSX` in it's name, as sadly these things seem to mess everything up
if (entry.entryName.indexOf('__MACOSX') > -1) {
this.logger.debug(`Ignoring the file: ${ entry.entryName }`);
continue;
}
//Directories are ignored, since they are "virtual" in a zip file
if (entry.isDirectory) {
this.logger.debug(`Ignoring the directory entry: ${ entry.entryName }`);
continue;
}
//Parse the channels
if (entry.entryName.toLowerCase() === 'channels.csv') {
super.updateProgress(Importer.ProgressStep.PREPARING_CHANNELS);
const parsedChannels = this.csvParser(entry.getData().toString());
tempChannels = parsedChannels.map((c) => {
return {
id: c[0].trim().replace('.', '_'),
name: c[0].trim(),
creator: c[1].trim(),
isPrivate: c[2].trim().toLowerCase() === 'private' ? true : false,
members: c[3].trim().split(';').map((m) => m.trim())
};
});
continue;
}
//Parse the users
if (entry.entryName.toLowerCase() === 'users.csv') {
super.updateProgress(Importer.ProgressStep.PREPARING_USERS);
const parsedUsers = this.csvParser(entry.getData().toString());
tempUsers = parsedUsers.map((u) => { return { id: u[0].trim().replace('.', '_'), username: u[0].trim(), email: u[1].trim(), name: u[2].trim() }; });
continue;
}
//Parse the messages
if (entry.entryName.indexOf('/') > -1) {
const item = entry.entryName.split('/'); //random/messages.csv
const channelName = item[0]; //random
const msgGroupData = item[1].split('.')[0]; //2015-10-04
if (!tempMessages.get(channelName)) {
tempMessages.set(channelName, new Map());
}
let msgs = [];
try {
msgs = this.csvParser(entry.getData().toString());
} catch (e) {
this.logger.warn(`The file ${ entry.entryName } contains invalid syntax`, e);
continue;
}
tempMessages.get(channelName).set(msgGroupData, msgs.map((m) => { return { username: m[0], ts: m[1], text: m[2] }; }));
continue;
}
}
// Insert the users record, eventually this might have to be split into several ones as well
// if someone tries to import a several thousands users instance
const usersId = this.collection.insert({ 'import': this.importRecord._id, 'importer': this.name, 'type': 'users', 'users': tempUsers });
this.users = this.collection.findOne(usersId);
super.updateRecord({ 'count.users': tempUsers.length });
super.addCountToTotal(tempUsers.length);
// Insert the channels records.
const channelsId = this.collection.insert({ 'import': this.importRecord._id, 'importer': this.name, 'type': 'channels', 'channels': tempChannels });
this.channels = this.collection.findOne(channelsId);
super.updateRecord({ 'count.channels': tempChannels.length });
super.addCountToTotal(tempChannels.length);
// Save the messages records to the import record for `startImport` usage
super.updateProgress(Importer.ProgressStep.PREPARING_MESSAGES);
let messagesCount = 0;
for (const [channel, messagesMap] of tempMessages.entries()) {
if (!this.messages.get(channel)) {
this.messages.set(channel, new Map());
}
for (const [msgGroupData, msgs] of messagesMap.entries()) {
messagesCount += msgs.length;
super.updateRecord({ 'messagesstatus': `${ channel }/${ msgGroupData }` });
if (Importer.Base.getBSONSize(msgs) > Importer.Base.MaxBSONSize) {
Importer.Base.getBSONSafeArraysFromAnArray(msgs).forEach((splitMsg, i) => {
const messagesId = this.collection.insert({ 'import': this.importRecord._id, 'importer': this.name, 'type': 'messages', 'name': `${ channel }/${ msgGroupData }.${ i }`, 'messages': splitMsg });
this.messages.get(channel).set(`${ msgGroupData }.${ i }`, this.collection.findOne(messagesId));
});
} else {
const messagesId = this.collection.insert({ 'import': this.importRecord._id, 'importer': this.name, 'type': 'messages', 'name': `${ channel }/${ msgGroupData }`, 'messages': msgs });
this.messages.get(channel).set(msgGroupData, this.collection.findOne(messagesId));
}
}
}
super.updateRecord({ 'count.messages': messagesCount, 'messagesstatus': null });
super.addCountToTotal(messagesCount);
//Ensure we have at least a single user, channel, or message
if (tempUsers.length === 0 && tempChannels.length === 0 && messagesCount === 0) {
this.logger.error('No users, channels, or messages found in the import file.');
super.updateProgress(Importer.ProgressStep.ERROR);
return super.getProgress();
}
const selectionUsers = tempUsers.map((u) => new Importer.SelectionUser(u.id, u.username, u.email, false, false, true));
const selectionChannels = tempChannels.map((c) => new Importer.SelectionChannel(c.id, c.name, false, true, c.isPrivate));
super.updateProgress(Importer.ProgressStep.USER_SELECTION);
return new Importer.Selection(this.name, selectionUsers, selectionChannels);
}
startImport(importSelection) {
super.startImport(importSelection);
const started = Date.now();
//Ensure we're only going to import the users that the user has selected
for (const user of importSelection.users) {
for (const u of this.users.users) {
if (u.id === user.user_id) {
u.do_import = user.do_import;
}
}
}
this.collection.update({ _id: this.users._id }, { $set: { 'users': this.users.users }});
//Ensure we're only importing the channels the user has selected.
for (const channel of importSelection.channels) {
for (const c of this.channels.channels) {
if (c.id === channel.channel_id) {
c.do_import = channel.do_import;
}
}
}
this.collection.update({ _id: this.channels._id }, { $set: { 'channels': this.channels.channels }});
const startedByUserId = Meteor.userId();
Meteor.defer(() => {
super.updateProgress(Importer.ProgressStep.IMPORTING_USERS);
//Import the users
for (const u of this.users.users) {
if (!u.do_import) {
continue;
}
Meteor.runAsUser(startedByUserId, () => {
let existantUser = RocketChat.models.Users.findOneByEmailAddress(u.email);
//If we couldn't find one by their email address, try to find an existing user by their username
if (!existantUser) {
existantUser = RocketChat.models.Users.findOneByUsername(u.username);
}
if (existantUser) {
//since we have an existing user, let's try a few things
u.rocketId = existantUser._id;
RocketChat.models.Users.update({ _id: u.rocketId }, { $addToSet: { importIds: u.id } });
} else {
const userId = Accounts.createUser({ email: u.email, password: Date.now() + u.name + u.email.toUpperCase() });
Meteor.runAsUser(userId, () => {
Meteor.call('setUsername', u.username, {joinDefaultChannelsSilenced: true});
RocketChat.models.Users.setName(userId, u.name);
RocketChat.models.Users.update({ _id: userId }, { $addToSet: { importIds: u.id } });
u.rocketId = userId;
});
}
super.addCountCompleted(1);
});
}
this.collection.update({ _id: this.users._id }, { $set: { 'users': this.users.users }});
//Import the channels
super.updateProgress(Importer.ProgressStep.IMPORTING_CHANNELS);
for (const c of this.channels.channels) {
if (!c.do_import) {
continue;
}
Meteor.runAsUser(startedByUserId, () => {
const existantRoom = RocketChat.models.Rooms.findOneByName(c.name);
//If the room exists or the name of it is 'general', then we don't need to create it again
if (existantRoom || c.name.toUpperCase() === 'GENERAL') {
c.rocketId = c.name.toUpperCase() === 'GENERAL' ? 'GENERAL' : existantRoom._id;
RocketChat.models.Rooms.update({ _id: c.rocketId }, { $addToSet: { importIds: c.id } });
} else {
//Find the rocketchatId of the user who created this channel
let creatorId = startedByUserId;
for (const u of this.users.users) {
if (u.username === c.creator && u.do_import) {
creatorId = u.rocketId;
}
}
//Create the channel
Meteor.runAsUser(creatorId, () => {
const roomInfo = Meteor.call(c.isPrivate ? 'createPrivateGroup' : 'createChannel', c.name, c.members);
c.rocketId = roomInfo.rid;
});
RocketChat.models.Rooms.update({ _id: c.rocketId }, { $addToSet: { importIds: c.id } });
}
super.addCountCompleted(1);
});
}
this.collection.update({ _id: this.channels._id }, { $set: { 'channels': this.channels.channels }});
//Import the Messages
super.updateProgress(Importer.ProgressStep.IMPORTING_MESSAGES);
for (const [ch, messagesMap] of this.messages.entries()) {
const csvChannel = this.getChannelFromName(ch);
if (!csvChannel.do_import) {
continue;
}
const room = RocketChat.models.Rooms.findOneById(csvChannel.rocketId, { fields: { usernames: 1, t: 1, name: 1 } });
Meteor.runAsUser(startedByUserId, () => {
for (const [msgGroupData, msgs] of messagesMap.entries()) {
super.updateRecord({ 'messagesstatus': `${ ch }/${ msgGroupData }.${ msgs.messages.length }` });
for (const msg of msgs.messages) {
if (isNaN(new Date(parseInt(msg.ts)))) {
this.logger.warn(`Timestamp on a message in ${ ch }/${ msgGroupData } is invalid`);
super.addCountCompleted(1);
continue;
}
const creator = this.getUserFromUsername(msg.username);
if (creator) {
const msgObj = {
_id: `csv-${ csvChannel.id }-${ msg.ts }`,
ts: new Date(parseInt(msg.ts)),
msg: msg.text,
rid: room._id,
u: {
_id: creator._id,
username: creator.username
}
};
RocketChat.sendMessage(creator, msgObj, room, true);
}
super.addCountCompleted(1);
}
}
});
}
super.updateProgress(Importer.ProgressStep.FINISHING);
super.updateProgress(Importer.ProgressStep.DONE);
const timeTook = Date.now() - started;
this.logger.log(`CSV Import took ${ timeTook } milliseconds.`);
});
return super.getProgress();
}
getSelection() {
const selectionUsers = this.users.users.map((u) => new Importer.SelectionUser(u.id, u.username, u.email, false, false, true));
const selectionChannels = this.channels.channels.map((c) => new Importer.SelectionChannel(c.id, c.name, false, true, c.isPrivate));
return new Importer.Selection(this.name, selectionUsers, selectionChannels);
}
getChannelFromName(channelName) {
for (const ch of this.channels.channels) {
if (ch.name === channelName) {
return ch;
}
}
}
getUserFromUsername(username) {
for (const u of this.users.users) {
if (u.username === username) {
return RocketChat.models.Users.findOneById(u.rocketId, { fields: { username: 1 }});
}
}
}
};
|
var searchIndex = JSON.parse('{\
"anneml":{"doc":"Anneml is a composite machine learning library designed …","t":[0,0,0,0,0,0,0,0,0,0,0,0,4,3,4,13,13,13,13,13,13,13,13,13,13,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,13,4,4,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,11,11,11,13,3,4,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["node","attribute","domain","edges","layer","mesh","network","node","processor","scope","tensor","utils","Activation","Attribute","CellType","Const","Mlp","None","RandN","RandU","Range","RangeN","RangeU","Sigmoid","TanH","TensorDescriptor","activation","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","cell_type","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","default","default","default","default","description","deserialize","deserialize","deserialize","deserialize","from","from","from","from","into","into","into","into","new","scope","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","0","0","0","0","All","InputsFromParent","InputsFromPeerOutputs","LinkType","NodeRange","OutputsToParent","Selective","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","from","from","into","into","serialize","serialize","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","0","0","Network","borrow","borrow_mut","deserialize","from","into","load","new","node","save","serialize","try_from","try_into","type_id","Leaf","Node","NodeType","Vertex","add_child_to_parent","borrow","borrow","borrow_mut","borrow_mut","children","deserialize","from","from","index_into_node","into","into","is_leaf_node","new","output","serialize","try_from","try_from","try_into","try_into","type_id","type_id","0","0","1","1","2","Scope","borrow","borrow_mut","clone","clone_into","default","deserialize","from","into","new","serialize","to_owned","try_from","try_into","type_id"],"q":["anneml","anneml::node","","","","","","","","","","","anneml::node::attribute","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","anneml::node::attribute::TensorDescriptor","","","","anneml::node::edges","","","","","","","","","","","","","","","","","","","","","","","","","","","","anneml::node::edges::LinkType","anneml::node::edges::NodeRange","anneml::node::network","","","","","","","","","","","","","","anneml::node::node","","","","","","","","","","","","","","","","","","","","","","","","","","anneml::node::node::NodeType","","","","","anneml::node::scope","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","Acquire an Activation reference associated with the …","","","","","","","","","Acquire an CellType reference associated with the …","","","","","","","","","","","","","Gets a TensorDescriptor reference associated with the …","","","","","","","","","","","","","Create an Attribute that is the blueprint to Node …","Acquire an Scope reference associated with the Attribute.","","","","","","","","","","","","","","","","","","","","","","","","","","","","LinkType flag used in Edges link function.","Establishes if all values from a Node are to be linked if …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Loads a serialized .annml file.","Create a Network that contains Node(s).","Acquire a Networks wrapped node reference.","Saves a serialized .annml file.","","","","","","","Defines the values associated with Leaf and Vertex Nodes.","","Assign a child Node to a parent Vertex node.","","","","","Acquire reference to Node Children Vector.","","","","Recursively Indexes into Nodes.","","","Returns whether a Node is a Leaf.","A Node is a wrapper for a Mesh.","Grabs the output values from children nodes and join them …","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,1,1,1,1,1,3,3,0,4,4,3,2,1,4,3,2,1,4,4,3,2,1,4,3,2,1,4,3,2,1,4,4,3,2,1,4,3,2,1,4,3,2,1,4,4,4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1,5,6,7,8,9,10,10,0,0,10,9,10,9,10,9,9,9,10,9,10,9,10,9,10,9,9,10,9,10,9,10,9,11,12,0,13,13,13,13,13,13,13,13,13,13,13,13,13,14,0,0,14,15,14,15,14,15,15,15,14,15,15,14,15,15,15,15,15,14,15,14,15,14,15,16,17,16,17,17,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18],"f":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[],["activation",4]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["celltype",4]],[[],["attribute",3]],[[],["activation",4]],[[],["celltype",4]],[[],["tensordescriptor",4]],[[]],[[]],[[]],[[]],[[],["attribute",3]],[[]],[[]],[[]],[[["str",15]],["tensordescriptor",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["activation",4],["celltype",4],["vec",3],["scope",3]],["attribute",3]],[[],["scope",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[],["noderange",4]],[[]],[[],["result",4]],[[],["result",4]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,null,null,[[]],[[]],[[],["result",4]],[[]],[[]],[[["str",15]],["result",6,[["network",3]]]],[[["node",3]]],[[],["arc",3,[["rwlock",3,[["node",3]]]]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],null,null,null,null,[[["node",3],["option",4,[["usize",15]]]],["result",4,[["str",15]]]],[[]],[[]],[[]],[[]],[[],["vec",3]],[[],["result",4]],[[]],[[]],[[],["result",4,[["arc",3,[["mutex",3,[["node",3]]]]],["str",15]]]],[[]],[[]],[[],["bool",15]],[[["uuid",3],["nodetype",4]]],[[],["array",3,[["f64",15]]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,null,null,null,null,null,[[]],[[]],[[],["scope",3]],[[]],[[],["scope",3]],[[],["result",4]],[[]],[[]],[[["usize",15],["usize",15]]],[[],["result",4]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]]],"p":[[4,"TensorDescriptor"],[4,"CellType"],[4,"Activation"],[3,"Attribute"],[13,"RangeN"],[13,"RangeU"],[13,"Range"],[13,"Const"],[4,"NodeRange"],[4,"LinkType"],[13,"InputsFromPeerOutputs"],[13,"Selective"],[3,"Network"],[4,"NodeType"],[3,"Node"],[13,"Leaf"],[13,"Vertex"],[3,"Scope"]]}\
}');
if (window.initSearch) {window.initSearch(searchIndex)};
|
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/theming/Parameters'],function(q,P){"use strict";var R={};R.render=function(r,c){var f=c._roundValueToVisualMode(c.getValue()),s=c.getMaxValue(),I=c._iPxIconSize,a=c._iPxPaddingSize,b='px',S=f*I+(Math.round(f)-1)*a,w=s*(I+a)-a,o,d,e,i=0,t=c.getTooltip_AsString(),u=sap.ui.Device.browser.chrome||sap.ui.Device.browser.safari,l;if(S<0){S=0;}r.write("<div");r.writeControlData(c);r.writeAttribute("style","width: "+w+b);if(!c.getEnabled()){r.writeAttribute("tabindex","-1");}else{r.writeAttribute("tabindex","0");}r.addClass("sapMRI");if(c.getEnabled()){r.addClass("sapMPointer");}else{r.addClass("sapMRIDisabled");}r.writeClasses();if(t){r.writeAttributeEscaped("title",t);}l=c.getId()+"-ariaLabel";r.writeAccessibilityState(c,{"role":"slider","orientation":"horizontal","live":"assertive","valuemin":0,"disabled":!c.getEnabled(),"labelledby":{value:l,append:true}});r.write(">");r.write("<label id='"+l+"' style='display:none;' aria-hidden='true'>"+c._oResourceBundle.getText("RATING_ARIA_NAME")+"</label>");r.write("<div class='sapMRISel");if(u){r.write(" sapMRIGrd");}r.write("'");r.writeAttribute("id",c.getId()+"-sel");r.writeAttribute("style","width: "+S+b);r.write(">");for(i=0;i<s;i++){o=c._getIcon(0);if(o instanceof sap.ui.core.Icon){o.setSize(I+b);}o.setWidth(I+b);o.setHeight(I+b);o.addStyleClass("sapMRIIconSel");r.renderControl(o);}r.write("</div>");r.write("<div class='sapMRIUnselWrapper'");r.writeAttribute("id",c.getId()+"-unsel-wrapper");r.writeAttribute("style","width: "+(w-S)+b);r.write(">");r.write("<div class='sapMRIUnsel");if(u&&c.getEnabled()){r.write(" sapMRIGrd");}r.write("' id='"+c.getId()+"-unsel'>");for(i=0;i<s;i++){d=c._getIcon(1);if(d instanceof sap.ui.core.Icon){d.setSize(I+b);}d.setWidth(I+b);d.setHeight(I+b);d.addStyleClass("sapMRIIconUnsel");if(I<=1){d.addStyleClass("sapMRIIconUnselSmall");}r.renderControl(d);}r.write("</div>");r.write("</div>");if(c.getEnabled()){r.write("<div class='sapMRIHov' id='"+c.getId()+"-hov'>");for(i=0;i<s;i++){e=c._getIcon(2);if(e instanceof sap.ui.core.Icon){e.setSize(I+b);}e.setWidth(I+b);e.setHeight(I+b);e.addStyleClass("sapMRIIconHov");r.renderControl(e);}r.write("</div>");r.write("<div class='sapMRISelector' id='"+c.getId()+"-selector'>");r.write("</div>");}r.write("</div>");};return R;},true);
|
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore',
'knockout',
'contrail-model',
'config/networking/routingpolicy/ui/js/views/routingPolicyFormatter',
'config/networking/routingpolicy/ui/js/models/routingPolicyTermFromModel',
'config/networking/routingpolicy/ui/js/models/routingPolicyTermThenModel'
], function (_, Knockout, ContrailModel, RoutingPolicyFormatter, routingPolicyTermFromModel, routingPolicyTermThenModel) {
var routingPolicyFormatter = new RoutingPolicyFormatter();
var RoutingPolicyTermModel = ContrailModel.extend({
defaultConfig: {
"term_match_condition":{
"community_list":[],
"prefix":[]
},
"term_action_list":{
"update": {
"community":{},
"local_pref" : "",
},
"action": ""
},
"action":"Default",
"from_terms": "",
"then_terms": "",
"disabled_from_names": {}
},
constructor: function (parentModel, modelData) {
this.parentModel = parentModel;
ContrailModel.prototype.constructor.call(this, modelData);
return this;
},
formatModelConfig: function (config) {
var self = this,
modelConfig = $.extend({}, true, config),
routingPolicyTermFromModels = [], routingPolicyTermThenModels = [],
routingPolicyTermFromCollectionModel, routingPolicyTermThenCollectionModel;
var termMatchArray = routingPolicyFormatter.buildTermMatchObject (modelConfig.term_match_condition);
var termMatchArrayLen = termMatchArray.length;
for (var i = 0; i < termMatchArrayLen; i++) {
var termMatch = new routingPolicyTermFromModel(modelConfig, termMatchArray[i]);
routingPolicyTermFromModels.push(termMatch);
}
var termActionArray = routingPolicyFormatter.buildTermActionObject (modelConfig.term_action_list);
var termActionArrayLen = termActionArray.length;
for (var i = 0; i < termActionArrayLen; i++) {
var termAction = new routingPolicyTermThenModel(modelConfig, termActionArray[i]);
routingPolicyTermThenModels.push(termAction);
}
//This need to be fixed
if (termMatchArrayLen == 0) {
routingPolicyTermFromModels.push(new routingPolicyTermFromModel(modelConfig, {name: 'community', value: '', isDisable: true}));
routingPolicyTermFromModels.push(new routingPolicyTermFromModel(modelConfig, {name: 'protocol', value: '', isDisable: true}));
routingPolicyTermFromModels.push(new routingPolicyTermFromModel(modelConfig, {name: 'prefix', value: '', isDisable: true}));
}
if (termActionArrayLen == 0) {
routingPolicyTermThenModels.push(new routingPolicyTermThenModel(modelConfig, {name: 'add community'}));
}
routingPolicyTermFromCollectionModel = new Backbone.Collection(routingPolicyTermFromModels);
routingPolicyTermThenCollectionModel = new Backbone.Collection(routingPolicyTermThenModels);
modelConfig['from_terms'] = routingPolicyTermFromCollectionModel;
modelConfig['then_terms'] = routingPolicyTermThenCollectionModel;
return modelConfig;
},
validateAttr: function (attributePath, validation, data) {
var model = data.model().attributes.model(),
attr = cowu.getAttributeFromPath(attributePath),
errors = model.get(cowc.KEY_MODEL_ERRORS),
attrErrorObj = {}, isValid;
isValid = model.isValid(attributePath, validation);
attrErrorObj[attr + cowc.ERROR_SUFFIX_ID] = (isValid == true) ? false : isValid;
errors.set(attrErrorObj);
},
getOrClauseText: function (data) {
var fromTerms = data.from_terms()(),
thenTerms = data.then_terms()(),
fromTermArray = [], thenTermArray = [], termsText = '';
$.each(fromTerms, function (fromTermKey, fromTermValue) {
var name = fromTermValue.name(),
value = fromTermValue.value(),
additionalValue = fromTermValue.additionalValue(),
fromTermStr = '';
name = contrail.checkIfFunction(name) ? name() : name;
value = contrail.checkIfFunction(value) ? value() : value;
additionalValue = contrail.checkIfFunction(additionalValue) ? additionalValue() : additionalValue;
if (name == 'protocol') {
fromTermStr += name + ' ' + value;
fromTermArray.push(fromTermStr);
}
if (value != '' && name != 'protocol') {
fromTermStr = name + ' ' + value;
if (name == 'prefix') {
fromTermStr += ' ' + additionalValue;
}
fromTermArray.push(fromTermStr)
}
});
$.each(thenTerms, function (thenTermKey, thenTermValue) {
var name = thenTermValue.name(),
value = thenTermValue.value(),
actionCondition = thenTermValue.action_condition(),
thenTermStr = '';
name = contrail.checkIfFunction(name) ? name() : name;
value = contrail.checkIfFunction(value) ? value() : value;
actionCondition = contrail.checkIfFunction(actionCondition) ? actionCondition() : actionCondition;
if (value != '') {
thenTermStr = name + ' ' + value;
thenTermArray.push(thenTermStr);
} else if (name == 'action') {
thenTermStr = 'action ' + actionCondition;
thenTermArray.push(thenTermStr);
}
});
termsText += 'from: { ' + fromTermArray.join(', ') + ' } ';
termsText += 'then: { ' + thenTermArray.join(', ') + ' } ';
return (termsText !== '') ? termsText : '...';
},
addTermAtIndex: function (data, event) {
var self = this,
orClauses = this.model().collection,
orClause = this.model(),
orClauseIndex = _.indexOf(orClauses.models, orClause),
newOrClause = new RoutingPolicyTermModel(self.parentModel(), {});
orClauses.add(newOrClause, {at: orClauseIndex + 1});
$(event.target).parents('.collection').accordion('refresh');
$(event.target).parents('.collection').accordion("option", "active", orClauseIndex + 1);
event.stopImmediatePropagation();
},
deleteTerm: function () {
var orClauses = this.model().collection,
orClause = this.model();
if (orClauses.length > 1) {
orClauses.remove(orClause);
}
},
validations: {
termValidation: {
'then_terms': function (value, attr, finalObj) {
var thenModelObj = getValueByJsonPath(finalObj, "then_terms;models", []);
var thenModelObjLen = thenModelObj.length;
var elements = {'add community':0,'set community':0,
'remove community':0, 'local-preference':0, 'action':0};
for (var i = 0; i < thenModelObjLen; i++) {
var name = getValueByJsonPath(thenModelObj[i], "attributes;name")();
elements[name] += 1;
if (name == "local-preference") {
var value = getValueByJsonPath(thenModelObj[i], "attributes;value")();
if (!isNumber(String(value).trim())){
return "Local preference has to be a number.";
}
if (elements["local-preference"] > 1) {
return "cannot have more than one local preference";
}
}
if (name == "med") {
var value = getValueByJsonPath(thenModelObj[i], "attributes;value")();
if (!isNumber(String(value).trim())){
return "Med has to be a number.";
}
if (elements["med"] > 1) {
return "cannot have more than one Med";
}
}
if (elements["action"] > 1) {
return "cannot have more than one action";
}
}
}
}
}
});
return RoutingPolicyTermModel;
});
|
'use strict';
const styles = require('../../utilities/views/constants/styles');
module.exports = {
'containers': {
'/modal/included-columns': {
layout: {
component: 'Hero',
props: {
style: {
margin: 0,
},
},
children: [{
component: 'p',
props: {
style: {
'marginBottom': 0,
}
},
children: 'This column indicates whether the field will be included in the model training process. Novopay suggests excluding certain fields for the following reasons:',
}, {
component: 'ul',
children: [{
component: 'li',
children: 'Fields with low Correlations should be excluded.',
}, {
component: 'li',
props: {
style: {
'listStyleType': 'none',
}
},
children: 'Novopay automatically suggests excluding fields with less than 0.1% correlation.',
}, {
component: 'li',
children: 'Fields with String data type and too many unique values should be excluded.',
}, {
component: 'li',
props: {
style: {
'listStyleType': 'none',
}
},
children: 'Novopay automatically suggests excluding fields where (# Unique times 100) > (Observations)',
}],
}, {
component: 'p',
children: 'You can adjust which fields are included and excluded by clicking the buttons.',
}, {
component: 'div',
props: {
className: 'modal-footer-btns',
},
children: [{
component: 'ResponsiveButton',
props: {
buttonProps: {
color: 'isPrimary',
},
onClick: 'func:this.props.hideModal',
onclickProps: 'last',
},
children: 'Close Window',
}, ],
}, ],
},
'resources': {},
'onFinish': 'render',
},
},
};
|
var classrtf_1_1_formatting =
[
[ "Formatting", "classrtf_1_1_formatting.html#a5f64baac7436e5c1e75a5525aa5c588a", null ],
[ "operator!=", "classrtf_1_1_formatting.html#a871dd52e729506f0390d665ab3f5dd1e", null ],
[ "operator=", "classrtf_1_1_formatting.html#a41d6638afe3d7c3ae6e057f03a44ac17", null ],
[ "operator==", "classrtf_1_1_formatting.html#ab7e2d766a41c6f008d7417e74ca13068", null ],
[ "m_backgroundColor", "classrtf_1_1_formatting.html#a72fba585e402349dc22f903602932111", null ],
[ "m_font", "classrtf_1_1_formatting.html#a84ea5c5641c3b7e46cd2084fe46cd1f4", null ],
[ "m_fontColor", "classrtf_1_1_formatting.html#ad59c5977351d9240b2f52297e09fd7f8", null ],
[ "m_fontSize", "classrtf_1_1_formatting.html#a263ecd6be00cd636bbfffdc523d0bad1", null ],
[ "m_horizontalAlign", "classrtf_1_1_formatting.html#a35e2c51c16999c9a2f1d678c28baf9bf", null ],
[ "m_isBold", "classrtf_1_1_formatting.html#a7ed672340072a8e5af6073e4c8226bfc", null ],
[ "m_isItalic", "classrtf_1_1_formatting.html#a23850526d7093669cbecd9c607301339", null ],
[ "m_isOutlined", "classrtf_1_1_formatting.html#af406bbbef45d0082172968a7145c4252", null ],
[ "m_isStruckOut", "classrtf_1_1_formatting.html#aab925f1e4b6688d682fbeb5609375bd1", null ],
[ "m_isSub", "classrtf_1_1_formatting.html#ad2b5266e49fa3205ef8e4d1da64e58bd", null ],
[ "m_isSup", "classrtf_1_1_formatting.html#aa30dc62479fefcb95d9ae11add42cd00", null ],
[ "m_isUnderlined", "classrtf_1_1_formatting.html#a46f4f02c323e85f2092825c8b32aec27", null ],
[ "m_listLevel", "classrtf_1_1_formatting.html#ad08cba9978340e3de246ac6a04d071a9", null ],
[ "m_parInTable", "classrtf_1_1_formatting.html#a12dcb7ce7d64761d03782ab2e6a22017", null ],
[ "m_verticalAlign", "classrtf_1_1_formatting.html#a17a5883a2d8486353dfa7683d29c27a9", null ]
];
|
var NAVTREEINDEX3 =
{
"classproton_1_1value.html#a035d5cba647aad8df637622977f71c9a":[6,0,0,54,1],
"classproton_1_1value.html#a051c12c4c7efc82a5f268d4f64e15b54":[6,0,0,54,8],
"classproton_1_1value.html#a2dd4c0151b171f03f2c36d907832522b":[6,0,0,54,9],
"classproton_1_1value.html#a486dfed974ca6f79e75039b3eee6c44c":[6,0,0,54,6],
"classproton_1_1value.html#a4896ec87beab7d691e1985c221c36e49":[6,0,0,54,7],
"classproton_1_1value.html#a7e5a61eb2bd8cc8566cb4f231c020a23":[6,0,0,54,10],
"classproton_1_1value.html#a9090beb5d7788f060fb0614b81c300ea":[6,0,0,54,11],
"classproton_1_1value.html#ac8bb3912a3ce86b15842e79d0b421204":[6,0,0,54,3],
"classproton_1_1value.html#ad139f5042c366b09078f123f5621c156":[6,0,0,54,5],
"classproton_1_1value.html#ae7acdea6863a3b5100b7ac9e0b4c73e1":[6,0,0,54,2],
"classproton_1_1value.html#aefbfa229f1c9e1fc967bff724a010f9e":[6,0,0,54,0],
"classproton_1_1value.html#af5045852a07a6387ae38bdf56845afe3":[6,0,0,54,4],
"classproton_1_1value.html#afdde986e34571c6544abfdea9afdb658":[6,0,0,54,12],
"client_8cpp-example.html":[8,2],
"comparable_8hpp_source.html":[7,0,0,1,0],
"config_8hpp_source.html":[7,0,0,1,1],
"connection_8hpp_source.html":[7,0,0,6],
"connection__engine_8hpp_source.html":[7,0,0,2,0],
"connection__options_8hpp_source.html":[7,0,0,7],
"container_8hpp_source.html":[7,0,0,8],
"container__impl__base_8hpp_source.html":[7,0,0,2,1],
"data_8hpp_source.html":[7,0,0,0,1],
"decimal_8hpp_source.html":[7,0,0,9],
"decoder_8hpp_source.html":[7,0,0,0,2],
"default__container_8hpp_source.html":[7,0,0,10],
"delivery_8hpp_source.html":[7,0,0,11],
"delivery__mode_8hpp_source.html":[7,0,0,12],
"deque_8hpp_source.html":[7,0,0,0,3],
"dir_25143d27009f52d175c1d192441a738a.html":[7,0,0],
"dir_2fd3e5516989aa9776e558b58aa1c5c4.html":[7,0,0,2],
"dir_91df95ff942f5f87aa24429174a5d190.html":[7,0,0,1],
"dir_d4a17a437089f6e4c823599b6b44ea54.html":[7,0,0,0],
"direct_recv_8cpp-example.html":[8,3],
"direct_send_8cpp-example.html":[8,4],
"duration_8hpp_source.html":[7,0,0,13],
"encoder_8hpp_source.html":[7,0,0,0,4],
"endpoint_8hpp_source.html":[7,0,0,14],
"error_8hpp_source.html":[7,0,0,15],
"error__condition_8hpp_source.html":[7,0,0,16],
"event__loop_8hpp_source.html":[7,0,0,17],
"examples.html":[8],
"export_8hpp_source.html":[7,0,0,1,2],
"files.html":[7,0],
"forward__list_8hpp_source.html":[7,0,0,0,5],
"functions.html":[6,2,0],
"functions.html":[6,2,0,0],
"functions_b.html":[6,2,0,1],
"functions_c.html":[6,2,0,2],
"functions_d.html":[6,2,0,3],
"functions_e.html":[6,2,0,4],
"functions_enum.html":[6,2,4],
"functions_eval.html":[6,2,5],
"functions_f.html":[6,2,0,5],
"functions_func.html":[6,2,1,0],
"functions_func.html":[6,2,1],
"functions_func_b.html":[6,2,1,1],
"functions_func_c.html":[6,2,1,2],
"functions_func_d.html":[6,2,1,3],
"functions_func_e.html":[6,2,1,4],
"functions_func_f.html":[6,2,1,5],
"functions_func_g.html":[6,2,1,6],
"functions_func_h.html":[6,2,1,7],
"functions_func_i.html":[6,2,1,8],
"functions_func_l.html":[6,2,1,9],
"functions_func_m.html":[6,2,1,10],
"functions_func_n.html":[6,2,1,11],
"functions_func_o.html":[6,2,1,12],
"functions_func_p.html":[6,2,1,13],
"functions_func_r.html":[6,2,1,14],
"functions_func_s.html":[6,2,1,15],
"functions_func_t.html":[6,2,1,16],
"functions_func_u.html":[6,2,1,17],
"functions_func_v.html":[6,2,1,18],
"functions_func_w.html":[6,2,1,19],
"functions_g.html":[6,2,0,6],
"functions_h.html":[6,2,0,7],
"functions_i.html":[6,2,0,8],
"functions_l.html":[6,2,0,9],
"functions_m.html":[6,2,0,10],
"functions_n.html":[6,2,0,11],
"functions_o.html":[6,2,0,12],
"functions_p.html":[6,2,0,13],
"functions_r.html":[6,2,0,14],
"functions_rela.html":[6,2,6],
"functions_s.html":[6,2,0,15],
"functions_t.html":[6,2,0,16],
"functions_type.html":[6,2,3],
"functions_u.html":[6,2,0,17],
"functions_v.html":[6,2,0,18],
"functions_vars.html":[6,2,2],
"functions_w.html":[6,2,0,19],
"helloworld_8cpp-example.html":[8,5],
"helloworld_direct_8cpp-example.html":[8,6],
"hierarchy.html":[6,1],
"index.html":[],
"index.html":[0],
"io_page.html":[1],
"link_8hpp_source.html":[7,0,0,18],
"link__namer_8hpp_source.html":[7,0,0,2,2],
"list_8hpp_source.html":[7,0,0,0,6],
"listen__handler_8hpp_source.html":[7,0,0,19],
"listener_8hpp_source.html":[7,0,0,20],
"map_8hpp_source.html":[7,0,0,0,7],
"message_8hpp_source.html":[7,0,0,21],
"message__id_8hpp_source.html":[7,0,0,22],
"messaging__handler_8hpp_source.html":[7,0,0,23],
"mt_2broker_8cpp-example.html":[8,7],
"mt_2epoll_container_8cpp-example.html":[8,8],
"mt_page.html":[2],
"namespacemembers.html":[5,1,0],
"namespacemembers_enum.html":[5,1,2],
"namespacemembers_eval.html":[5,1,3],
"namespacemembers_func.html":[5,1,1],
"namespaceproton.html":[5,0,0],
"namespaceproton.html":[6,0,0],
"namespaceproton_1_1codec.html":[5,0,0,0],
"namespaceproton_1_1codec.html":[6,0,0,0],
"namespaceproton_1_1io.html":[5,0,0,1],
"namespaceproton_1_1io.html":[6,0,0,1],
"namespaces.html":[5,0],
"namespaces_8hpp_source.html":[7,0,0,24],
"object_8hpp_source.html":[7,0,0,1,3],
"pages.html":[],
"pn__unique__ptr_8hpp_source.html":[7,0,0,1,4],
"receiver_8hpp_source.html":[7,0,0,25],
"receiver__options_8hpp_source.html":[7,0,0,26],
"reconnect__timer_8hpp_source.html":[7,0,0,27],
"sasl_8hpp_source.html":[7,0,0,28],
"scalar_8hpp_source.html":[7,0,0,29],
"scalar__base_8hpp_source.html":[7,0,0,1,5],
"sender_8hpp_source.html":[7,0,0,30],
"sender__options_8hpp_source.html":[7,0,0,31],
"server_8cpp-example.html":[8,9],
"server_direct_8cpp-example.html":[8,10],
"session_8hpp_source.html":[7,0,0,32],
"session__options_8hpp_source.html":[7,0,0,33],
"simple_recv_8cpp-example.html":[8,11],
"simple_send_8cpp-example.html":[8,12],
"source_8hpp_source.html":[7,0,0,34],
"source__options_8hpp_source.html":[7,0,0,35],
"ssl_8hpp_source.html":[7,0,0,36],
"structproton_1_1codec_1_1state__guard.html":[6,0,0,0,4],
"structproton_1_1codec_1_1state__guard.html#a02d5fa6b14e221f3012a794b905be166":[6,0,0,0,4,1],
"structproton_1_1codec_1_1state__guard.html#abef5a9d074cf2465c76040c16fde17e1":[6,0,0,0,4,0],
"structproton_1_1conversion__error.html":[6,0,0,8],
"structproton_1_1conversion__error.html#a34e1a24b99f9580dc7af4e9252d95ea2":[6,0,0,8,0],
"structproton_1_1delivery__mode.html":[6,0,0,14],
"structproton_1_1delivery__mode.html#a811fe196a5d9d37857c2f8adeeaac3c6":[6,0,0,14,0],
"structproton_1_1delivery__mode.html#a811fe196a5d9d37857c2f8adeeaac3c6a3cf51e9f762513a58768bb63e8ba14c1":[6,0,0,14,0,2],
"structproton_1_1delivery__mode.html#a811fe196a5d9d37857c2f8adeeaac3c6ac157bdf0b85a40d2619cbc8bc1ae5fe2":[6,0,0,14,0,0],
"structproton_1_1delivery__mode.html#a811fe196a5d9d37857c2f8adeeaac3c6adc975babe0d2bc27916397e614eb6624":[6,0,0,14,0,1],
"structproton_1_1error.html":[6,0,0,17],
"structproton_1_1error.html#a78012ecea1670fd9d2a63478468d48c8":[6,0,0,17,0],
"structproton_1_1io_1_1const__buffer.html":[6,0,0,1,1],
"structproton_1_1io_1_1const__buffer.html#a854352f53b148adc24983a58a1866d66":[6,0,0,1,1,2],
"structproton_1_1io_1_1const__buffer.html#a8f64897c7ccc5c13f276d1d07c4e7095":[6,0,0,1,1,1],
"structproton_1_1io_1_1const__buffer.html#a91a09264a182ec89354136e9b2c51fe4":[6,0,0,1,1,0],
"structproton_1_1io_1_1mutable__buffer.html":[6,0,0,1,4],
"structproton_1_1io_1_1mutable__buffer.html#a854352f53b148adc24983a58a1866d66":[6,0,0,1,4,2],
"structproton_1_1io_1_1mutable__buffer.html#a91a70b77df95bd8b0830b49a094c2acb":[6,0,0,1,4,1],
"structproton_1_1io_1_1mutable__buffer.html#ae164359bc44e1b29a68ebc40555972c2":[6,0,0,1,4,0],
"structproton_1_1timeout__error.html":[6,0,0,46],
"structproton_1_1timeout__error.html#a62ed6422b084746ba8f6779997e047f8":[6,0,0,46,0],
"structproton_1_1url__error.html":[6,0,0,52],
"symbol_8hpp_source.html":[7,0,0,37],
"target_8hpp_source.html":[7,0,0,38],
"target__options_8hpp_source.html":[7,0,0,39],
"task_8hpp_source.html":[7,0,0,40],
"terminus_8hpp_source.html":[7,0,0,41],
"thread__safe_8hpp_source.html":[7,0,0,42],
"timestamp_8hpp_source.html":[7,0,0,43],
"tracker_8hpp_source.html":[7,0,0,44],
"transfer_8hpp_source.html":[7,0,0,45],
"transport_8hpp_source.html":[7,0,0,46],
"tutorial.html":[4],
"type__id_8hpp.html":[7,0,0,47],
"type__id_8hpp.html#a1aa7e03ffe4296ae2308ceea397e6fb6":[7,0,0,47,12],
"type__id_8hpp.html#a4fa5da15b5f9ede62f8167c50c7dc656":[7,0,0,47,8],
"type__id_8hpp.html#a68019584ba84acd90424a306dac56184":[7,0,0,47,4],
"type__id_8hpp.html#a777b2887e8ee3a66e56ca9468007b586":[7,0,0,47,13],
"type__id_8hpp.html#a7c5a62fde33feb4887fea1935be0a518":[7,0,0,47,7],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9":[7,0,0,47,0],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a1e029fbf0c881b85d80fc8e89b753688":[7,0,0,47,0,22],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a25688e799536738ea469158ef15fd1c0":[7,0,0,47,0,23],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a29dfb12306aac24cadeaa1f6bac455be":[7,0,0,47,0,2],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a33465d1d419b1074fb259ef444609e92":[7,0,0,47,0,13],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a3f2dbbd8fe9ad35caa594416336ceeda":[7,0,0,47,0,11],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a4618cf21306b3c647741afa7ebefcab8":[7,0,0,47,0,8],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a4756f5bbd9f28d6b8905f32024b57398":[7,0,0,47,0,6],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a4cafa5feda04184537b4d7d346e1e89b":[7,0,0,47,0,24],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a574bf5ec73e28138b997d24464adb70c":[7,0,0,47,0,9],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a69c9d854e6a5430635ad44693470612d":[7,0,0,47,0,21],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a74cf8825b522b9721ea02973803d76b4":[7,0,0,47,0,0],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a7a1fe3ba88f0c16cb494922948a9597d":[7,0,0,47,0,5],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a8a583f16e8d237a423c8c1d9087a4c72":[7,0,0,47,0,1],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a8df764f32f4aeba9ac8c7baccfd73388":[7,0,0,47,0,14],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a9a82428c8d08720e3134f1243496f7d6":[7,0,0,47,0,15],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a9ae509995ac75484348487a7477900ca":[7,0,0,47,0,4],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9a9cf4a0866224b0bb4a7a895da27c9c4c":[7,0,0,47,0,12],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9aa7f492d725033c06576ac4ba21007297":[7,0,0,47,0,3],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9aaee055c4a5aba7d55774e4f1c01dacea":[7,0,0,47,0,10],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9aaf1ea4a849fa4bcb9d351a6bde6d7600":[7,0,0,47,0,17],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9ac68fb86fda41e4314b0ee0d00e3d5170":[7,0,0,47,0,16],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9ae3d30ffaffa3c06ed917e565dda1fbc5":[7,0,0,47,0,20],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9aecafbc1299672a8c1521cc0d5f1ae986":[7,0,0,47,0,18],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9aee847e634a4297b274316de8a8ca9921":[7,0,0,47,0,19],
"type__id_8hpp.html#a83c2656d467d69eb49725c18f5aa13a9afd5a5f51ce25953f3db2c7e93eb7864a":[7,0,0,47,0,7],
"type__id_8hpp.html#a87afe800bd34d635628b34cce437d0aa":[7,0,0,47,5],
"type__id_8hpp.html#a8a83051cc916ba5b67144b2e4d78ecb1":[7,0,0,47,11],
"type__id_8hpp.html#a97cb3b1f640cf8d0036998ecb61dbb3a":[7,0,0,47,9],
"type__id_8hpp.html#aa41d60af81c2ea764268965cc7b126fa":[7,0,0,47,10],
"type__id_8hpp.html#aa77887032372174b09ee779f5df12056":[7,0,0,47,1],
"type__id_8hpp.html#ada44820890dab1d51fb1efd5d5d5bc95":[7,0,0,47,2],
"type__id_8hpp.html#aef7d66407548e1722486a5acd94cf01c":[7,0,0,47,3],
"type__id_8hpp.html#af97c80a0a1b477e0b5128dc7d8ed6c00":[7,0,0,47,6],
"type__id_8hpp_source.html":[7,0,0,47],
"type__traits_8hpp_source.html":[7,0,0,1,6],
"types_8hpp.html":[7,0,0,48],
"types_8hpp_source.html":[7,0,0,48],
"types__fwd_8hpp.html":[7,0,0,49],
"types__fwd_8hpp_source.html":[7,0,0,49],
"types_page.html":[3],
"unordered__map_8hpp_source.html":[7,0,0,0,8],
"url_8hpp_source.html":[7,0,0,50],
"uuid_8hpp_source.html":[7,0,0,51],
"value_8hpp_source.html":[7,0,0,52],
"vector_8hpp_source.html":[7,0,0,0,9]
};
|
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
$(document).ready(function() {
$(".click-title").mouseenter( function( e){
e.preventDefault();
this.style.cursor="pointer";
});
$(".click-title").mousedown( function(event){
event.preventDefault();
});
// Ugly code while this script is shared among several pages
try{
refreshHitsPerSecond(true);
} catch(e){}
try{
refreshResponseTimeOverTime(true);
} catch(e){}
try{
refreshResponseTimePercentiles();
} catch(e){}
});
var responseTimePercentilesInfos = {
data: {"result": {"minY": 1.0, "minX": 0.0, "maxY": 26647.0, "series": [{"data": [[0.0, 1.0], [0.1, 1.0], [0.2, 1.0], [0.3, 1.0], [0.4, 1.0], [0.5, 1.0], [0.6, 2.0], [0.7, 2.0], [0.8, 2.0], [0.9, 2.0], [1.0, 2.0], [1.1, 2.0], [1.2, 2.0], [1.3, 2.0], [1.4, 2.0], [1.5, 2.0], [1.6, 2.0], [1.7, 2.0], [1.8, 2.0], [1.9, 2.0], [2.0, 2.0], [2.1, 2.0], [2.2, 2.0], [2.3, 2.0], [2.4, 2.0], [2.5, 2.0], [2.6, 2.0], [2.7, 2.0], [2.8, 2.0], [2.9, 2.0], [3.0, 2.0], [3.1, 2.0], [3.2, 2.0], [3.3, 2.0], [3.4, 2.0], [3.5, 2.0], [3.6, 2.0], [3.7, 2.0], [3.8, 2.0], [3.9, 2.0], [4.0, 2.0], [4.1, 2.0], [4.2, 2.0], [4.3, 2.0], [4.4, 2.0], [4.5, 2.0], [4.6, 2.0], [4.7, 2.0], [4.8, 3.0], [4.9, 3.0], [5.0, 3.0], [5.1, 3.0], [5.2, 3.0], [5.3, 3.0], [5.4, 3.0], [5.5, 3.0], [5.6, 3.0], [5.7, 3.0], [5.8, 3.0], [5.9, 3.0], [6.0, 3.0], [6.1, 3.0], [6.2, 3.0], [6.3, 3.0], [6.4, 3.0], [6.5, 3.0], [6.6, 3.0], [6.7, 3.0], [6.8, 3.0], [6.9, 3.0], [7.0, 3.0], [7.1, 3.0], [7.2, 3.0], [7.3, 3.0], [7.4, 3.0], [7.5, 3.0], [7.6, 3.0], [7.7, 3.0], [7.8, 3.0], [7.9, 3.0], [8.0, 3.0], [8.1, 3.0], [8.2, 3.0], [8.3, 3.0], [8.4, 3.0], [8.5, 3.0], [8.6, 3.0], [8.7, 3.0], [8.8, 3.0], [8.9, 3.0], [9.0, 3.0], [9.1, 3.0], [9.2, 3.0], [9.3, 3.0], [9.4, 3.0], [9.5, 3.0], [9.6, 3.0], [9.7, 3.0], [9.8, 3.0], [9.9, 3.0], [10.0, 3.0], [10.1, 3.0], [10.2, 3.0], [10.3, 3.0], [10.4, 3.0], [10.5, 3.0], [10.6, 3.0], [10.7, 3.0], [10.8, 3.0], [10.9, 3.0], [11.0, 3.0], [11.1, 3.0], [11.2, 4.0], [11.3, 4.0], [11.4, 4.0], [11.5, 4.0], [11.6, 4.0], [11.7, 4.0], [11.8, 4.0], [11.9, 4.0], [12.0, 4.0], [12.1, 4.0], [12.2, 4.0], [12.3, 4.0], [12.4, 4.0], [12.5, 4.0], [12.6, 4.0], [12.7, 4.0], [12.8, 4.0], [12.9, 4.0], [13.0, 4.0], [13.1, 4.0], [13.2, 4.0], [13.3, 4.0], [13.4, 4.0], [13.5, 4.0], [13.6, 4.0], [13.7, 4.0], [13.8, 4.0], [13.9, 4.0], [14.0, 4.0], [14.1, 4.0], [14.2, 4.0], [14.3, 4.0], [14.4, 4.0], [14.5, 4.0], [14.6, 4.0], [14.7, 4.0], [14.8, 4.0], [14.9, 4.0], [15.0, 4.0], [15.1, 4.0], [15.2, 4.0], [15.3, 4.0], [15.4, 4.0], [15.5, 4.0], [15.6, 4.0], [15.7, 4.0], [15.8, 4.0], [15.9, 4.0], [16.0, 5.0], [16.1, 5.0], [16.2, 5.0], [16.3, 5.0], [16.4, 5.0], [16.5, 5.0], [16.6, 5.0], [16.7, 5.0], [16.8, 5.0], [16.9, 5.0], [17.0, 5.0], [17.1, 5.0], [17.2, 5.0], [17.3, 5.0], [17.4, 5.0], [17.5, 5.0], [17.6, 5.0], [17.7, 5.0], [17.8, 6.0], [17.9, 6.0], [18.0, 6.0], [18.1, 6.0], [18.2, 6.0], [18.3, 6.0], [18.4, 6.0], [18.5, 6.0], [18.6, 6.0], [18.7, 6.0], [18.8, 6.0], [18.9, 6.0], [19.0, 6.0], [19.1, 6.0], [19.2, 6.0], [19.3, 6.0], [19.4, 6.0], [19.5, 7.0], [19.6, 7.0], [19.7, 7.0], [19.8, 7.0], [19.9, 7.0], [20.0, 7.0], [20.1, 7.0], [20.2, 7.0], [20.3, 7.0], [20.4, 7.0], [20.5, 7.0], [20.6, 7.0], [20.7, 7.0], [20.8, 7.0], [20.9, 8.0], [21.0, 8.0], [21.1, 8.0], [21.2, 8.0], [21.3, 8.0], [21.4, 8.0], [21.5, 8.0], [21.6, 8.0], [21.7, 9.0], [21.8, 9.0], [21.9, 9.0], [22.0, 9.0], [22.1, 9.0], [22.2, 9.0], [22.3, 9.0], [22.4, 9.0], [22.5, 9.0], [22.6, 9.0], [22.7, 9.0], [22.8, 9.0], [22.9, 9.0], [23.0, 9.0], [23.1, 10.0], [23.2, 10.0], [23.3, 10.0], [23.4, 10.0], [23.5, 10.0], [23.6, 10.0], [23.7, 10.0], [23.8, 10.0], [23.9, 10.0], [24.0, 11.0], [24.1, 11.0], [24.2, 11.0], [24.3, 11.0], [24.4, 11.0], [24.5, 12.0], [24.6, 12.0], [24.7, 12.0], [24.8, 12.0], [24.9, 13.0], [25.0, 13.0], [25.1, 13.0], [25.2, 13.0], [25.3, 13.0], [25.4, 14.0], [25.5, 14.0], [25.6, 14.0], [25.7, 14.0], [25.8, 14.0], [25.9, 14.0], [26.0, 14.0], [26.1, 14.0], [26.2, 15.0], [26.3, 15.0], [26.4, 15.0], [26.5, 15.0], [26.6, 15.0], [26.7, 15.0], [26.8, 15.0], [26.9, 15.0], [27.0, 16.0], [27.1, 16.0], [27.2, 16.0], [27.3, 17.0], [27.4, 17.0], [27.5, 17.0], [27.6, 17.0], [27.7, 17.0], [27.8, 18.0], [27.9, 18.0], [28.0, 18.0], [28.1, 18.0], [28.2, 18.0], [28.3, 19.0], [28.4, 19.0], [28.5, 20.0], [28.6, 20.0], [28.7, 20.0], [28.8, 21.0], [28.9, 21.0], [29.0, 23.0], [29.1, 23.0], [29.2, 23.0], [29.3, 24.0], [29.4, 24.0], [29.5, 25.0], [29.6, 25.0], [29.7, 25.0], [29.8, 27.0], [29.9, 29.0], [30.0, 30.0], [30.1, 31.0], [30.2, 33.0], [30.3, 33.0], [30.4, 37.0], [30.5, 37.0], [30.6, 39.0], [30.7, 43.0], [30.8, 44.0], [30.9, 44.0], [31.0, 46.0], [31.1, 49.0], [31.2, 50.0], [31.3, 51.0], [31.4, 59.0], [31.5, 59.0], [31.6, 65.0], [31.7, 67.0], [31.8, 69.0], [31.9, 70.0], [32.0, 71.0], [32.1, 72.0], [32.2, 74.0], [32.3, 74.0], [32.4, 76.0], [32.5, 77.0], [32.6, 78.0], [32.7, 79.0], [32.8, 81.0], [32.9, 84.0], [33.0, 84.0], [33.1, 87.0], [33.2, 89.0], [33.3, 89.0], [33.4, 90.0], [33.5, 90.0], [33.6, 93.0], [33.7, 96.0], [33.8, 97.0], [33.9, 98.0], [34.0, 99.0], [34.1, 100.0], [34.2, 101.0], [34.3, 102.0], [34.4, 102.0], [34.5, 102.0], [34.6, 104.0], [34.7, 105.0], [34.8, 106.0], [34.9, 107.0], [35.0, 108.0], [35.1, 108.0], [35.2, 110.0], [35.3, 110.0], [35.4, 111.0], [35.5, 112.0], [35.6, 112.0], [35.7, 113.0], [35.8, 113.0], [35.9, 114.0], [36.0, 115.0], [36.1, 116.0], [36.2, 116.0], [36.3, 116.0], [36.4, 117.0], [36.5, 118.0], [36.6, 119.0], [36.7, 119.0], [36.8, 121.0], [36.9, 122.0], [37.0, 123.0], [37.1, 124.0], [37.2, 126.0], [37.3, 127.0], [37.4, 128.0], [37.5, 128.0], [37.6, 129.0], [37.7, 133.0], [37.8, 134.0], [37.9, 135.0], [38.0, 137.0], [38.1, 138.0], [38.2, 140.0], [38.3, 140.0], [38.4, 140.0], [38.5, 144.0], [38.6, 146.0], [38.7, 154.0], [38.8, 158.0], [38.9, 162.0], [39.0, 163.0], [39.1, 167.0], [39.2, 169.0], [39.3, 170.0], [39.4, 172.0], [39.5, 173.0], [39.6, 174.0], [39.7, 174.0], [39.8, 176.0], [39.9, 178.0], [40.0, 179.0], [40.1, 179.0], [40.2, 181.0], [40.3, 181.0], [40.4, 182.0], [40.5, 182.0], [40.6, 184.0], [40.7, 186.0], [40.8, 186.0], [40.9, 188.0], [41.0, 189.0], [41.1, 190.0], [41.2, 191.0], [41.3, 191.0], [41.4, 192.0], [41.5, 192.0], [41.6, 193.0], [41.7, 194.0], [41.8, 195.0], [41.9, 195.0], [42.0, 195.0], [42.1, 196.0], [42.2, 197.0], [42.3, 197.0], [42.4, 198.0], [42.5, 198.0], [42.6, 199.0], [42.7, 199.0], [42.8, 200.0], [42.9, 200.0], [43.0, 201.0], [43.1, 202.0], [43.2, 203.0], [43.3, 205.0], [43.4, 206.0], [43.5, 206.0], [43.6, 208.0], [43.7, 209.0], [43.8, 210.0], [43.9, 212.0], [44.0, 213.0], [44.1, 214.0], [44.2, 217.0], [44.3, 220.0], [44.4, 224.0], [44.5, 226.0], [44.6, 234.0], [44.7, 237.0], [44.8, 246.0], [44.9, 260.0], [45.0, 262.0], [45.1, 267.0], [45.2, 271.0], [45.3, 272.0], [45.4, 276.0], [45.5, 276.0], [45.6, 287.0], [45.7, 288.0], [45.8, 289.0], [45.9, 291.0], [46.0, 292.0], [46.1, 294.0], [46.2, 295.0], [46.3, 296.0], [46.4, 297.0], [46.5, 298.0], [46.6, 301.0], [46.7, 302.0], [46.8, 304.0], [46.9, 305.0], [47.0, 305.0], [47.1, 307.0], [47.2, 312.0], [47.3, 312.0], [47.4, 315.0], [47.5, 316.0], [47.6, 319.0], [47.7, 319.0], [47.8, 321.0], [47.9, 322.0], [48.0, 323.0], [48.1, 323.0], [48.2, 325.0], [48.3, 325.0], [48.4, 328.0], [48.5, 328.0], [48.6, 332.0], [48.7, 335.0], [48.8, 356.0], [48.9, 357.0], [49.0, 361.0], [49.1, 364.0], [49.2, 369.0], [49.3, 372.0], [49.4, 372.0], [49.5, 372.0], [49.6, 374.0], [49.7, 376.0], [49.8, 377.0], [49.9, 379.0], [50.0, 379.0], [50.1, 380.0], [50.2, 380.0], [50.3, 381.0], [50.4, 383.0], [50.5, 384.0], [50.6, 384.0], [50.7, 385.0], [50.8, 385.0], [50.9, 387.0], [51.0, 387.0], [51.1, 387.0], [51.2, 387.0], [51.3, 388.0], [51.4, 389.0], [51.5, 389.0], [51.6, 389.0], [51.7, 393.0], [51.8, 395.0], [51.9, 395.0], [52.0, 396.0], [52.1, 396.0], [52.2, 396.0], [52.3, 397.0], [52.4, 398.0], [52.5, 398.0], [52.6, 399.0], [52.7, 400.0], [52.8, 400.0], [52.9, 401.0], [53.0, 401.0], [53.1, 401.0], [53.2, 403.0], [53.3, 404.0], [53.4, 405.0], [53.5, 406.0], [53.6, 409.0], [53.7, 411.0], [53.8, 412.0], [53.9, 412.0], [54.0, 414.0], [54.1, 414.0], [54.2, 417.0], [54.3, 418.0], [54.4, 421.0], [54.5, 421.0], [54.6, 421.0], [54.7, 421.0], [54.8, 422.0], [54.9, 423.0], [55.0, 424.0], [55.1, 424.0], [55.2, 426.0], [55.3, 426.0], [55.4, 427.0], [55.5, 427.0], [55.6, 428.0], [55.7, 428.0], [55.8, 429.0], [55.9, 431.0], [56.0, 433.0], [56.1, 438.0], [56.2, 440.0], [56.3, 449.0], [56.4, 458.0], [56.5, 458.0], [56.6, 461.0], [56.7, 462.0], [56.8, 463.0], [56.9, 466.0], [57.0, 466.0], [57.1, 468.0], [57.2, 471.0], [57.3, 472.0], [57.4, 475.0], [57.5, 476.0], [57.6, 477.0], [57.7, 478.0], [57.8, 478.0], [57.9, 479.0], [58.0, 479.0], [58.1, 480.0], [58.2, 481.0], [58.3, 481.0], [58.4, 482.0], [58.5, 482.0], [58.6, 483.0], [58.7, 483.0], [58.8, 483.0], [58.9, 484.0], [59.0, 484.0], [59.1, 485.0], [59.2, 486.0], [59.3, 487.0], [59.4, 487.0], [59.5, 487.0], [59.6, 487.0], [59.7, 488.0], [59.8, 489.0], [59.9, 490.0], [60.0, 491.0], [60.1, 492.0], [60.2, 493.0], [60.3, 493.0], [60.4, 495.0], [60.5, 495.0], [60.6, 496.0], [60.7, 497.0], [60.8, 497.0], [60.9, 497.0], [61.0, 497.0], [61.1, 498.0], [61.2, 498.0], [61.3, 499.0], [61.4, 500.0], [61.5, 500.0], [61.6, 501.0], [61.7, 502.0], [61.8, 502.0], [61.9, 503.0], [62.0, 503.0], [62.1, 504.0], [62.2, 507.0], [62.3, 508.0], [62.4, 511.0], [62.5, 511.0], [62.6, 512.0], [62.7, 512.0], [62.8, 515.0], [62.9, 518.0], [63.0, 518.0], [63.1, 519.0], [63.2, 521.0], [63.3, 523.0], [63.4, 525.0], [63.5, 525.0], [63.6, 525.0], [63.7, 527.0], [63.8, 530.0], [63.9, 541.0], [64.0, 548.0], [64.1, 555.0], [64.2, 559.0], [64.3, 563.0], [64.4, 568.0], [64.5, 569.0], [64.6, 571.0], [64.7, 572.0], [64.8, 574.0], [64.9, 576.0], [65.0, 577.0], [65.1, 580.0], [65.2, 582.0], [65.3, 584.0], [65.4, 586.0], [65.5, 587.0], [65.6, 590.0], [65.7, 590.0], [65.8, 591.0], [65.9, 592.0], [66.0, 593.0], [66.1, 594.0], [66.2, 595.0], [66.3, 596.0], [66.4, 598.0], [66.5, 598.0], [66.6, 599.0], [66.7, 599.0], [66.8, 604.0], [66.9, 607.0], [67.0, 608.0], [67.1, 609.0], [67.2, 611.0], [67.3, 613.0], [67.4, 613.0], [67.5, 614.0], [67.6, 616.0], [67.7, 619.0], [67.8, 621.0], [67.9, 622.0], [68.0, 625.0], [68.1, 627.0], [68.2, 629.0], [68.3, 632.0], [68.4, 637.0], [68.5, 637.0], [68.6, 639.0], [68.7, 649.0], [68.8, 669.0], [68.9, 680.0], [69.0, 682.0], [69.1, 684.0], [69.2, 685.0], [69.3, 686.0], [69.4, 687.0], [69.5, 689.0], [69.6, 690.0], [69.7, 691.0], [69.8, 692.0], [69.9, 693.0], [70.0, 695.0], [70.1, 696.0], [70.2, 697.0], [70.3, 698.0], [70.4, 698.0], [70.5, 699.0], [70.6, 699.0], [70.7, 700.0], [70.8, 702.0], [70.9, 703.0], [71.0, 703.0], [71.1, 704.0], [71.2, 708.0], [71.3, 709.0], [71.4, 712.0], [71.5, 712.0], [71.6, 714.0], [71.7, 715.0], [71.8, 716.0], [71.9, 717.0], [72.0, 717.0], [72.1, 718.0], [72.2, 720.0], [72.3, 721.0], [72.4, 723.0], [72.5, 723.0], [72.6, 724.0], [72.7, 725.0], [72.8, 728.0], [72.9, 729.0], [73.0, 730.0], [73.1, 732.0], [73.2, 733.0], [73.3, 735.0], [73.4, 736.0], [73.5, 738.0], [73.6, 741.0], [73.7, 744.0], [73.8, 757.0], [73.9, 760.0], [74.0, 760.0], [74.1, 766.0], [74.2, 767.0], [74.3, 767.0], [74.4, 770.0], [74.5, 770.0], [74.6, 772.0], [74.7, 772.0], [74.8, 773.0], [74.9, 774.0], [75.0, 774.0], [75.1, 776.0], [75.2, 776.0], [75.3, 778.0], [75.4, 779.0], [75.5, 781.0], [75.6, 782.0], [75.7, 783.0], [75.8, 783.0], [75.9, 785.0], [76.0, 786.0], [76.1, 788.0], [76.2, 791.0], [76.3, 792.0], [76.4, 792.0], [76.5, 794.0], [76.6, 794.0], [76.7, 796.0], [76.8, 796.0], [76.9, 798.0], [77.0, 798.0], [77.1, 800.0], [77.2, 801.0], [77.3, 803.0], [77.4, 805.0], [77.5, 806.0], [77.6, 810.0], [77.7, 812.0], [77.8, 813.0], [77.9, 815.0], [78.0, 816.0], [78.1, 820.0], [78.2, 826.0], [78.3, 829.0], [78.4, 832.0], [78.5, 832.0], [78.6, 834.0], [78.7, 835.0], [78.8, 841.0], [78.9, 845.0], [79.0, 845.0], [79.1, 846.0], [79.2, 858.0], [79.3, 864.0], [79.4, 870.0], [79.5, 871.0], [79.6, 874.0], [79.7, 877.0], [79.8, 880.0], [79.9, 882.0], [80.0, 883.0], [80.1, 884.0], [80.2, 885.0], [80.3, 888.0], [80.4, 889.0], [80.5, 890.0], [80.6, 890.0], [80.7, 892.0], [80.8, 892.0], [80.9, 892.0], [81.0, 892.0], [81.1, 893.0], [81.2, 894.0], [81.3, 895.0], [81.4, 896.0], [81.5, 896.0], [81.6, 897.0], [81.7, 898.0], [81.8, 899.0], [81.9, 900.0], [82.0, 901.0], [82.1, 902.0], [82.2, 903.0], [82.3, 905.0], [82.4, 905.0], [82.5, 906.0], [82.6, 907.0], [82.7, 909.0], [82.8, 910.0], [82.9, 916.0], [83.0, 916.0], [83.1, 918.0], [83.2, 919.0], [83.3, 920.0], [83.4, 920.0], [83.5, 922.0], [83.6, 923.0], [83.7, 924.0], [83.8, 927.0], [83.9, 932.0], [84.0, 932.0], [84.1, 941.0], [84.2, 942.0], [84.3, 952.0], [84.4, 956.0], [84.5, 956.0], [84.6, 962.0], [84.7, 963.0], [84.8, 966.0], [84.9, 971.0], [85.0, 971.0], [85.1, 973.0], [85.2, 976.0], [85.3, 978.0], [85.4, 979.0], [85.5, 980.0], [85.6, 981.0], [85.7, 983.0], [85.8, 984.0], [85.9, 984.0], [86.0, 984.0], [86.1, 986.0], [86.2, 989.0], [86.3, 990.0], [86.4, 990.0], [86.5, 991.0], [86.6, 991.0], [86.7, 993.0], [86.8, 993.0], [86.9, 994.0], [87.0, 995.0], [87.1, 996.0], [87.2, 998.0], [87.3, 999.0], [87.4, 1000.0], [87.5, 1000.0], [87.6, 1001.0], [87.7, 1003.0], [87.8, 1006.0], [87.9, 1008.0], [88.0, 1008.0], [88.1, 1009.0], [88.2, 1009.0], [88.3, 1010.0], [88.4, 1011.0], [88.5, 1011.0], [88.6, 1014.0], [88.7, 1017.0], [88.8, 1018.0], [88.9, 1020.0], [89.0, 1020.0], [89.1, 1022.0], [89.2, 1023.0], [89.3, 1027.0], [89.4, 1029.0], [89.5, 1031.0], [89.6, 1032.0], [89.7, 1042.0], [89.8, 1045.0], [89.9, 1055.0], [90.0, 1061.0], [90.1, 1072.0], [90.2, 1075.0], [90.3, 1075.0], [90.4, 1079.0], [90.5, 1080.0], [90.6, 1083.0], [90.7, 1088.0], [90.8, 1090.0], [90.9, 1094.0], [91.0, 1095.0], [91.1, 1098.0], [91.2, 1098.0], [91.3, 1103.0], [91.4, 1104.0], [91.5, 1107.0], [91.6, 1108.0], [91.7, 1110.0], [91.8, 1117.0], [91.9, 1121.0], [92.0, 1127.0], [92.1, 1128.0], [92.2, 1129.0], [92.3, 1134.0], [92.4, 1137.0], [92.5, 1160.0], [92.6, 1162.0], [92.7, 1171.0], [92.8, 1178.0], [92.9, 1182.0], [93.0, 1182.0], [93.1, 1185.0], [93.2, 1188.0], [93.3, 1189.0], [93.4, 1193.0], [93.5, 1193.0], [93.6, 1196.0], [93.7, 1201.0], [93.8, 1203.0], [93.9, 1208.0], [94.0, 1211.0], [94.1, 1213.0], [94.2, 1223.0], [94.3, 1261.0], [94.4, 1263.0], [94.5, 1271.0], [94.6, 1273.0], [94.7, 1279.0], [94.8, 1282.0], [94.9, 1283.0], [95.0, 1284.0], [95.1, 1296.0], [95.2, 1307.0], [95.3, 1312.0], [95.4, 1321.0], [95.5, 1330.0], [95.6, 1337.0], [95.7, 1357.0], [95.8, 1373.0], [95.9, 1390.0], [96.0, 1397.0], [96.1, 1400.0], [96.2, 1401.0], [96.3, 1408.0], [96.4, 1425.0], [96.5, 1448.0], [96.6, 1464.0], [96.7, 1515.0], [96.8, 1551.0], [96.9, 1614.0], [97.0, 1621.0], [97.1, 1626.0], [97.2, 1877.0], [97.3, 1986.0], [97.4, 1993.0], [97.5, 2014.0], [97.6, 2076.0], [97.7, 2200.0], [97.8, 2214.0], [97.9, 2282.0], [98.0, 2424.0], [98.1, 2482.0], [98.2, 2482.0], [98.3, 2521.0], [98.4, 2674.0], [98.5, 2684.0], [98.6, 2690.0], [98.7, 2699.0], [98.8, 2721.0], [98.9, 2732.0], [99.0, 2778.0], [99.1, 2845.0], [99.2, 3000.0], [99.3, 3076.0], [99.4, 3091.0], [99.5, 3109.0], [99.6, 3185.0], [99.7, 3400.0], [99.8, 3541.0], [99.9, 4182.0], [100.0, 4211.0]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[0.0, 5.0], [0.1, 6.0], [0.2, 6.0], [0.3, 6.0], [0.4, 6.0], [0.5, 7.0], [0.6, 7.0], [0.7, 7.0], [0.8, 7.0], [0.9, 7.0], [1.0, 7.0], [1.1, 8.0], [1.2, 8.0], [1.3, 8.0], [1.4, 8.0], [1.5, 8.0], [1.6, 8.0], [1.7, 9.0], [1.8, 9.0], [1.9, 9.0], [2.0, 9.0], [2.1, 9.0], [2.2, 9.0], [2.3, 9.0], [2.4, 9.0], [2.5, 9.0], [2.6, 10.0], [2.7, 10.0], [2.8, 10.0], [2.9, 10.0], [3.0, 10.0], [3.1, 10.0], [3.2, 10.0], [3.3, 10.0], [3.4, 10.0], [3.5, 10.0], [3.6, 10.0], [3.7, 10.0], [3.8, 10.0], [3.9, 11.0], [4.0, 11.0], [4.1, 11.0], [4.2, 11.0], [4.3, 11.0], [4.4, 11.0], [4.5, 11.0], [4.6, 11.0], [4.7, 12.0], [4.8, 12.0], [4.9, 12.0], [5.0, 12.0], [5.1, 12.0], [5.2, 12.0], [5.3, 12.0], [5.4, 12.0], [5.5, 12.0], [5.6, 12.0], [5.7, 12.0], [5.8, 13.0], [5.9, 13.0], [6.0, 13.0], [6.1, 13.0], [6.2, 13.0], [6.3, 14.0], [6.4, 14.0], [6.5, 14.0], [6.6, 14.0], [6.7, 14.0], [6.8, 14.0], [6.9, 14.0], [7.0, 14.0], [7.1, 14.0], [7.2, 15.0], [7.3, 15.0], [7.4, 15.0], [7.5, 15.0], [7.6, 15.0], [7.7, 15.0], [7.8, 15.0], [7.9, 15.0], [8.0, 15.0], [8.1, 15.0], [8.2, 16.0], [8.3, 16.0], [8.4, 16.0], [8.5, 16.0], [8.6, 16.0], [8.7, 16.0], [8.8, 16.0], [8.9, 17.0], [9.0, 17.0], [9.1, 17.0], [9.2, 17.0], [9.3, 17.0], [9.4, 18.0], [9.5, 18.0], [9.6, 18.0], [9.7, 19.0], [9.8, 19.0], [9.9, 19.0], [10.0, 20.0], [10.1, 20.0], [10.2, 20.0], [10.3, 21.0], [10.4, 21.0], [10.5, 21.0], [10.6, 21.0], [10.7, 21.0], [10.8, 22.0], [10.9, 23.0], [11.0, 23.0], [11.1, 23.0], [11.2, 23.0], [11.3, 24.0], [11.4, 25.0], [11.5, 25.0], [11.6, 25.0], [11.7, 26.0], [11.8, 27.0], [11.9, 27.0], [12.0, 28.0], [12.1, 28.0], [12.2, 28.0], [12.3, 29.0], [12.4, 29.0], [12.5, 29.0], [12.6, 31.0], [12.7, 32.0], [12.8, 32.0], [12.9, 32.0], [13.0, 33.0], [13.1, 37.0], [13.2, 41.0], [13.3, 42.0], [13.4, 48.0], [13.5, 49.0], [13.6, 50.0], [13.7, 51.0], [13.8, 54.0], [13.9, 54.0], [14.0, 57.0], [14.1, 57.0], [14.2, 62.0], [14.3, 65.0], [14.4, 66.0], [14.5, 67.0], [14.6, 67.0], [14.7, 70.0], [14.8, 74.0], [14.9, 78.0], [15.0, 80.0], [15.1, 80.0], [15.2, 80.0], [15.3, 85.0], [15.4, 88.0], [15.5, 90.0], [15.6, 91.0], [15.7, 91.0], [15.8, 92.0], [15.9, 92.0], [16.0, 94.0], [16.1, 95.0], [16.2, 96.0], [16.3, 98.0], [16.4, 99.0], [16.5, 100.0], [16.6, 100.0], [16.7, 101.0], [16.8, 102.0], [16.9, 104.0], [17.0, 105.0], [17.1, 107.0], [17.2, 108.0], [17.3, 109.0], [17.4, 112.0], [17.5, 113.0], [17.6, 114.0], [17.7, 116.0], [17.8, 116.0], [17.9, 117.0], [18.0, 118.0], [18.1, 119.0], [18.2, 119.0], [18.3, 120.0], [18.4, 122.0], [18.5, 124.0], [18.6, 125.0], [18.7, 126.0], [18.8, 127.0], [18.9, 127.0], [19.0, 128.0], [19.1, 131.0], [19.2, 132.0], [19.3, 133.0], [19.4, 134.0], [19.5, 134.0], [19.6, 158.0], [19.7, 160.0], [19.8, 160.0], [19.9, 165.0], [20.0, 165.0], [20.1, 170.0], [20.2, 171.0], [20.3, 172.0], [20.4, 175.0], [20.5, 178.0], [20.6, 179.0], [20.7, 180.0], [20.8, 181.0], [20.9, 181.0], [21.0, 181.0], [21.1, 183.0], [21.2, 184.0], [21.3, 184.0], [21.4, 186.0], [21.5, 186.0], [21.6, 189.0], [21.7, 189.0], [21.8, 189.0], [21.9, 191.0], [22.0, 191.0], [22.1, 191.0], [22.2, 192.0], [22.3, 193.0], [22.4, 193.0], [22.5, 194.0], [22.6, 194.0], [22.7, 195.0], [22.8, 195.0], [22.9, 196.0], [23.0, 197.0], [23.1, 198.0], [23.2, 198.0], [23.3, 199.0], [23.4, 199.0], [23.5, 200.0], [23.6, 202.0], [23.7, 202.0], [23.8, 203.0], [23.9, 203.0], [24.0, 203.0], [24.1, 205.0], [24.2, 206.0], [24.3, 207.0], [24.4, 208.0], [24.5, 208.0], [24.6, 208.0], [24.7, 209.0], [24.8, 210.0], [24.9, 210.0], [25.0, 212.0], [25.1, 213.0], [25.2, 213.0], [25.3, 215.0], [25.4, 216.0], [25.5, 218.0], [25.6, 219.0], [25.7, 220.0], [25.8, 221.0], [25.9, 222.0], [26.0, 222.0], [26.1, 224.0], [26.2, 227.0], [26.3, 228.0], [26.4, 231.0], [26.5, 231.0], [26.6, 248.0], [26.7, 256.0], [26.8, 264.0], [26.9, 266.0], [27.0, 266.0], [27.1, 268.0], [27.2, 269.0], [27.3, 270.0], [27.4, 272.0], [27.5, 272.0], [27.6, 274.0], [27.7, 280.0], [27.8, 282.0], [27.9, 286.0], [28.0, 286.0], [28.1, 286.0], [28.2, 287.0], [28.3, 289.0], [28.4, 291.0], [28.5, 294.0], [28.6, 297.0], [28.7, 299.0], [28.8, 300.0], [28.9, 302.0], [29.0, 305.0], [29.1, 307.0], [29.2, 308.0], [29.3, 310.0], [29.4, 311.0], [29.5, 312.0], [29.6, 315.0], [29.7, 316.0], [29.8, 318.0], [29.9, 324.0], [30.0, 325.0], [30.1, 332.0], [30.2, 341.0], [30.3, 353.0], [30.4, 359.0], [30.5, 365.0], [30.6, 366.0], [30.7, 371.0], [30.8, 374.0], [30.9, 377.0], [31.0, 379.0], [31.1, 381.0], [31.2, 384.0], [31.3, 385.0], [31.4, 386.0], [31.5, 386.0], [31.6, 387.0], [31.7, 388.0], [31.8, 389.0], [31.9, 391.0], [32.0, 392.0], [32.1, 393.0], [32.2, 394.0], [32.3, 394.0], [32.4, 395.0], [32.5, 396.0], [32.6, 396.0], [32.7, 396.0], [32.8, 397.0], [32.9, 398.0], [33.0, 398.0], [33.1, 399.0], [33.2, 400.0], [33.3, 401.0], [33.4, 402.0], [33.5, 402.0], [33.6, 402.0], [33.7, 403.0], [33.8, 404.0], [33.9, 406.0], [34.0, 407.0], [34.1, 407.0], [34.2, 408.0], [34.3, 408.0], [34.4, 408.0], [34.5, 408.0], [34.6, 409.0], [34.7, 409.0], [34.8, 410.0], [34.9, 411.0], [35.0, 411.0], [35.1, 412.0], [35.2, 413.0], [35.3, 413.0], [35.4, 415.0], [35.5, 415.0], [35.6, 419.0], [35.7, 420.0], [35.8, 422.0], [35.9, 423.0], [36.0, 424.0], [36.1, 424.0], [36.2, 425.0], [36.3, 426.0], [36.4, 427.0], [36.5, 429.0], [36.6, 431.0], [36.7, 432.0], [36.8, 439.0], [36.9, 465.0], [37.0, 465.0], [37.1, 469.0], [37.2, 470.0], [37.3, 472.0], [37.4, 475.0], [37.5, 475.0], [37.6, 477.0], [37.7, 479.0], [37.8, 479.0], [37.9, 480.0], [38.0, 480.0], [38.1, 481.0], [38.2, 481.0], [38.3, 482.0], [38.4, 484.0], [38.5, 485.0], [38.6, 485.0], [38.7, 486.0], [38.8, 486.0], [38.9, 487.0], [39.0, 487.0], [39.1, 487.0], [39.2, 488.0], [39.3, 490.0], [39.4, 491.0], [39.5, 492.0], [39.6, 492.0], [39.7, 493.0], [39.8, 494.0], [39.9, 495.0], [40.0, 495.0], [40.1, 496.0], [40.2, 496.0], [40.3, 496.0], [40.4, 497.0], [40.5, 497.0], [40.6, 498.0], [40.7, 499.0], [40.8, 499.0], [40.9, 501.0], [41.0, 501.0], [41.1, 502.0], [41.2, 503.0], [41.3, 503.0], [41.4, 503.0], [41.5, 504.0], [41.6, 505.0], [41.7, 506.0], [41.8, 507.0], [41.9, 507.0], [42.0, 507.0], [42.1, 508.0], [42.2, 508.0], [42.3, 510.0], [42.4, 512.0], [42.5, 513.0], [42.6, 514.0], [42.7, 515.0], [42.8, 516.0], [42.9, 517.0], [43.0, 518.0], [43.1, 518.0], [43.2, 519.0], [43.3, 519.0], [43.4, 521.0], [43.5, 522.0], [43.6, 523.0], [43.7, 523.0], [43.8, 525.0], [43.9, 529.0], [44.0, 529.0], [44.1, 533.0], [44.2, 536.0], [44.3, 553.0], [44.4, 558.0], [44.5, 563.0], [44.6, 565.0], [44.7, 567.0], [44.8, 570.0], [44.9, 573.0], [45.0, 573.0], [45.1, 574.0], [45.2, 574.0], [45.3, 576.0], [45.4, 578.0], [45.5, 578.0], [45.6, 580.0], [45.7, 580.0], [45.8, 582.0], [45.9, 583.0], [46.0, 583.0], [46.1, 583.0], [46.2, 585.0], [46.3, 586.0], [46.4, 587.0], [46.5, 587.0], [46.6, 588.0], [46.7, 589.0], [46.8, 589.0], [46.9, 589.0], [47.0, 590.0], [47.1, 591.0], [47.2, 593.0], [47.3, 593.0], [47.4, 594.0], [47.5, 594.0], [47.6, 594.0], [47.7, 595.0], [47.8, 596.0], [47.9, 596.0], [48.0, 596.0], [48.1, 597.0], [48.2, 598.0], [48.3, 599.0], [48.4, 599.0], [48.5, 599.0], [48.6, 600.0], [48.7, 601.0], [48.8, 603.0], [48.9, 606.0], [49.0, 607.0], [49.1, 610.0], [49.2, 611.0], [49.3, 613.0], [49.4, 616.0], [49.5, 616.0], [49.6, 623.0], [49.7, 626.0], [49.8, 629.0], [49.9, 632.0], [50.0, 637.0], [50.1, 638.0], [50.2, 648.0], [50.3, 654.0], [50.4, 660.0], [50.5, 660.0], [50.6, 663.0], [50.7, 664.0], [50.8, 667.0], [50.9, 673.0], [51.0, 673.0], [51.1, 677.0], [51.2, 679.0], [51.3, 680.0], [51.4, 684.0], [51.5, 686.0], [51.6, 687.0], [51.7, 688.0], [51.8, 689.0], [51.9, 690.0], [52.0, 690.0], [52.1, 691.0], [52.2, 692.0], [52.3, 695.0], [52.4, 695.0], [52.5, 695.0], [52.6, 697.0], [52.7, 699.0], [52.8, 701.0], [52.9, 701.0], [53.0, 702.0], [53.1, 703.0], [53.2, 706.0], [53.3, 706.0], [53.4, 708.0], [53.5, 708.0], [53.6, 709.0], [53.7, 711.0], [53.8, 713.0], [53.9, 715.0], [54.0, 715.0], [54.1, 717.0], [54.2, 717.0], [54.3, 720.0], [54.4, 721.0], [54.5, 721.0], [54.6, 723.0], [54.7, 724.0], [54.8, 727.0], [54.9, 729.0], [55.0, 729.0], [55.1, 731.0], [55.2, 735.0], [55.3, 736.0], [55.4, 740.0], [55.5, 742.0], [55.6, 751.0], [55.7, 758.0], [55.8, 763.0], [55.9, 764.0], [56.0, 765.0], [56.1, 766.0], [56.2, 769.0], [56.3, 771.0], [56.4, 773.0], [56.5, 774.0], [56.6, 777.0], [56.7, 778.0], [56.8, 779.0], [56.9, 780.0], [57.0, 780.0], [57.1, 781.0], [57.2, 781.0], [57.3, 784.0], [57.4, 787.0], [57.5, 788.0], [57.6, 788.0], [57.7, 789.0], [57.8, 791.0], [57.9, 791.0], [58.0, 792.0], [58.1, 794.0], [58.2, 794.0], [58.3, 795.0], [58.4, 797.0], [58.5, 797.0], [58.6, 798.0], [58.7, 799.0], [58.8, 800.0], [58.9, 801.0], [59.0, 801.0], [59.1, 801.0], [59.2, 802.0], [59.3, 804.0], [59.4, 805.0], [59.5, 805.0], [59.6, 806.0], [59.7, 806.0], [59.8, 807.0], [59.9, 808.0], [60.0, 810.0], [60.1, 810.0], [60.2, 811.0], [60.3, 812.0], [60.4, 812.0], [60.5, 813.0], [60.6, 813.0], [60.7, 815.0], [60.8, 823.0], [60.9, 826.0], [61.0, 829.0], [61.1, 830.0], [61.2, 845.0], [61.3, 852.0], [61.4, 858.0], [61.5, 859.0], [61.6, 862.0], [61.7, 863.0], [61.8, 865.0], [61.9, 867.0], [62.0, 868.0], [62.1, 868.0], [62.2, 872.0], [62.3, 874.0], [62.4, 875.0], [62.5, 875.0], [62.6, 879.0], [62.7, 882.0], [62.8, 887.0], [62.9, 889.0], [63.0, 889.0], [63.1, 890.0], [63.2, 891.0], [63.3, 891.0], [63.4, 892.0], [63.5, 892.0], [63.6, 895.0], [63.7, 897.0], [63.8, 899.0], [63.9, 903.0], [64.0, 903.0], [64.1, 904.0], [64.2, 905.0], [64.3, 906.0], [64.4, 908.0], [64.5, 911.0], [64.6, 914.0], [64.7, 915.0], [64.8, 916.0], [64.9, 917.0], [65.0, 918.0], [65.1, 918.0], [65.2, 920.0], [65.3, 921.0], [65.4, 922.0], [65.5, 923.0], [65.6, 925.0], [65.7, 926.0], [65.8, 927.0], [65.9, 928.0], [66.0, 929.0], [66.1, 931.0], [66.2, 934.0], [66.3, 942.0], [66.4, 960.0], [66.5, 960.0], [66.6, 961.0], [66.7, 967.0], [66.8, 970.0], [66.9, 973.0], [67.0, 975.0], [67.1, 975.0], [67.2, 976.0], [67.3, 978.0], [67.4, 983.0], [67.5, 983.0], [67.6, 983.0], [67.7, 983.0], [67.8, 985.0], [67.9, 986.0], [68.0, 986.0], [68.1, 989.0], [68.2, 989.0], [68.3, 989.0], [68.4, 990.0], [68.5, 991.0], [68.6, 991.0], [68.7, 993.0], [68.8, 995.0], [68.9, 996.0], [69.0, 997.0], [69.1, 999.0], [69.2, 1001.0], [69.3, 1001.0], [69.4, 1002.0], [69.5, 1004.0], [69.6, 1005.0], [69.7, 1009.0], [69.8, 1012.0], [69.9, 1013.0], [70.0, 1014.0], [70.1, 1016.0], [70.2, 1017.0], [70.3, 1021.0], [70.4, 1022.0], [70.5, 1023.0], [70.6, 1024.0], [70.7, 1026.0], [70.8, 1030.0], [70.9, 1031.0], [71.0, 1031.0], [71.1, 1033.0], [71.2, 1037.0], [71.3, 1038.0], [71.4, 1052.0], [71.5, 1053.0], [71.6, 1061.0], [71.7, 1065.0], [71.8, 1070.0], [71.9, 1071.0], [72.0, 1071.0], [72.1, 1072.0], [72.2, 1075.0], [72.3, 1076.0], [72.4, 1078.0], [72.5, 1080.0], [72.6, 1081.0], [72.7, 1083.0], [72.8, 1083.0], [72.9, 1087.0], [73.0, 1088.0], [73.1, 1092.0], [73.2, 1093.0], [73.3, 1096.0], [73.4, 1096.0], [73.5, 1096.0], [73.6, 1098.0], [73.7, 1098.0], [73.8, 1103.0], [73.9, 1106.0], [74.0, 1108.0], [74.1, 1112.0], [74.2, 1113.0], [74.3, 1117.0], [74.4, 1120.0], [74.5, 1123.0], [74.6, 1125.0], [74.7, 1131.0], [74.8, 1138.0], [74.9, 1150.0], [75.0, 1155.0], [75.1, 1164.0], [75.2, 1172.0], [75.3, 1174.0], [75.4, 1175.0], [75.5, 1176.0], [75.6, 1177.0], [75.7, 1178.0], [75.8, 1181.0], [75.9, 1182.0], [76.0, 1184.0], [76.1, 1185.0], [76.2, 1186.0], [76.3, 1189.0], [76.4, 1190.0], [76.5, 1191.0], [76.6, 1192.0], [76.7, 1194.0], [76.8, 1196.0], [76.9, 1198.0], [77.0, 1200.0], [77.1, 1201.0], [77.2, 1205.0], [77.3, 1207.0], [77.4, 1209.0], [77.5, 1213.0], [77.6, 1217.0], [77.7, 1219.0], [77.8, 1237.0], [77.9, 1259.0], [78.0, 1259.0], [78.1, 1263.0], [78.2, 1271.0], [78.3, 1274.0], [78.4, 1279.0], [78.5, 1280.0], [78.6, 1282.0], [78.7, 1283.0], [78.8, 1288.0], [78.9, 1289.0], [79.0, 1292.0], [79.1, 1293.0], [79.2, 1296.0], [79.3, 1297.0], [79.4, 1299.0], [79.5, 1299.0], [79.6, 1305.0], [79.7, 1311.0], [79.8, 1324.0], [79.9, 1357.0], [80.0, 1362.0], [80.1, 1380.0], [80.2, 1384.0], [80.3, 1389.0], [80.4, 1403.0], [80.5, 1407.0], [80.6, 1413.0], [80.7, 1437.0], [80.8, 1453.0], [80.9, 1472.0], [81.0, 1476.0], [81.1, 1484.0], [81.2, 1488.0], [81.3, 1491.0], [81.4, 1494.0], [81.5, 1501.0], [81.6, 1508.0], [81.7, 1509.0], [81.8, 1514.0], [81.9, 1539.0], [82.0, 1541.0], [82.1, 1544.0], [82.2, 1548.0], [82.3, 1553.0], [82.4, 1566.0], [82.5, 1566.0], [82.6, 1571.0], [82.7, 1581.0], [82.8, 1592.0], [82.9, 1597.0], [83.0, 1598.0], [83.1, 1600.0], [83.2, 1619.0], [83.3, 1630.0], [83.4, 1639.0], [83.5, 1644.0], [83.6, 1650.0], [83.7, 1662.0], [83.8, 1672.0], [83.9, 1681.0], [84.0, 1682.0], [84.1, 1688.0], [84.2, 1696.0], [84.3, 1708.0], [84.4, 1732.0], [84.5, 1735.0], [84.6, 1751.0], [84.7, 1755.0], [84.8, 1758.0], [84.9, 1778.0], [85.0, 1780.0], [85.1, 1782.0], [85.2, 1787.0], [85.3, 1797.0], [85.4, 1807.0], [85.5, 1809.0], [85.6, 1845.0], [85.7, 1851.0], [85.8, 1863.0], [85.9, 1869.0], [86.0, 1871.0], [86.1, 1880.0], [86.2, 1892.0], [86.3, 1897.0], [86.4, 1913.0], [86.5, 1917.0], [86.6, 1922.0], [86.7, 1929.0], [86.8, 1930.0], [86.9, 1938.0], [87.0, 1945.0], [87.1, 1965.0], [87.2, 1967.0], [87.3, 1971.0], [87.4, 1987.0], [87.5, 1988.0], [87.6, 1994.0], [87.7, 2018.0], [87.8, 2024.0], [87.9, 2044.0], [88.0, 2047.0], [88.1, 2051.0], [88.2, 2057.0], [88.3, 2070.0], [88.4, 2073.0], [88.5, 2074.0], [88.6, 2080.0], [88.7, 2089.0], [88.8, 2101.0], [88.9, 2107.0], [89.0, 2112.0], [89.1, 2127.0], [89.2, 2147.0], [89.3, 2155.0], [89.4, 2165.0], [89.5, 2167.0], [89.6, 2171.0], [89.7, 2173.0], [89.8, 2176.0], [89.9, 2194.0], [90.0, 2194.0], [90.1, 2211.0], [90.2, 2212.0], [90.3, 2239.0], [90.4, 2243.0], [90.5, 2244.0], [90.6, 2246.0], [90.7, 2251.0], [90.8, 2258.0], [90.9, 2263.0], [91.0, 2288.0], [91.1, 2303.0], [91.2, 2330.0], [91.3, 2351.0], [91.4, 2362.0], [91.5, 2378.0], [91.6, 2389.0], [91.7, 2399.0], [91.8, 2420.0], [91.9, 2443.0], [92.0, 2444.0], [92.1, 2467.0], [92.2, 2479.0], [92.3, 2489.0], [92.4, 2520.0], [92.5, 2527.0], [92.6, 2553.0], [92.7, 2568.0], [92.8, 2592.0], [92.9, 2607.0], [93.0, 2609.0], [93.1, 2627.0], [93.2, 2648.0], [93.3, 2670.0], [93.4, 2673.0], [93.5, 2676.0], [93.6, 2682.0], [93.7, 2698.0], [93.8, 2709.0], [93.9, 2757.0], [94.0, 2759.0], [94.1, 2763.0], [94.2, 2768.0], [94.3, 2773.0], [94.4, 2789.0], [94.5, 2797.0], [94.6, 2804.0], [94.7, 2834.0], [94.8, 2840.0], [94.9, 2880.0], [95.0, 2886.0], [95.1, 2888.0], [95.2, 2890.0], [95.3, 2978.0], [95.4, 2990.0], [95.5, 3036.0], [95.6, 3073.0], [95.7, 3098.0], [95.8, 3145.0], [95.9, 3168.0], [96.0, 3177.0], [96.1, 3192.0], [96.2, 3240.0], [96.3, 3280.0], [96.4, 3284.0], [96.5, 3287.0], [96.6, 3298.0], [96.7, 3335.0], [96.8, 3377.0], [96.9, 3471.0], [97.0, 3489.0], [97.1, 3494.0], [97.2, 3562.0], [97.3, 3577.0], [97.4, 3589.0], [97.5, 3589.0], [97.6, 3618.0], [97.7, 3653.0], [97.8, 3669.0], [97.9, 3699.0], [98.0, 3706.0], [98.1, 3771.0], [98.2, 3812.0], [98.3, 3822.0], [98.4, 3873.0], [98.5, 3879.0], [98.6, 4000.0], [98.7, 4034.0], [98.8, 4121.0], [98.9, 4180.0], [99.0, 4250.0], [99.1, 4415.0], [99.2, 4470.0], [99.3, 4483.0], [99.4, 4836.0], [99.5, 4896.0], [99.6, 4978.0], [99.7, 5485.0], [99.8, 5570.0], [99.9, 5574.0], [100.0, 5974.0]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[0.0, 5.0], [0.1, 8.0], [0.2, 11.0], [0.3, 12.0], [0.4, 13.0], [0.5, 13.0], [0.6, 13.0], [0.7, 13.0], [0.8, 14.0], [0.9, 15.0], [1.0, 15.0], [1.1, 15.0], [1.2, 16.0], [1.3, 16.0], [1.4, 17.0], [1.5, 17.0], [1.6, 17.0], [1.7, 17.0], [1.8, 17.0], [1.9, 17.0], [2.0, 18.0], [2.1, 18.0], [2.2, 18.0], [2.3, 18.0], [2.4, 19.0], [2.5, 19.0], [2.6, 19.0], [2.7, 19.0], [2.8, 19.0], [2.9, 19.0], [3.0, 19.0], [3.1, 19.0], [3.2, 20.0], [3.3, 20.0], [3.4, 21.0], [3.5, 21.0], [3.6, 22.0], [3.7, 22.0], [3.8, 23.0], [3.9, 23.0], [4.0, 23.0], [4.1, 24.0], [4.2, 24.0], [4.3, 24.0], [4.4, 25.0], [4.5, 25.0], [4.6, 25.0], [4.7, 25.0], [4.8, 26.0], [4.9, 26.0], [5.0, 26.0], [5.1, 26.0], [5.2, 27.0], [5.3, 28.0], [5.4, 28.0], [5.5, 29.0], [5.6, 30.0], [5.7, 31.0], [5.8, 31.0], [5.9, 31.0], [6.0, 31.0], [6.1, 31.0], [6.2, 32.0], [6.3, 32.0], [6.4, 32.0], [6.5, 33.0], [6.6, 33.0], [6.7, 34.0], [6.8, 35.0], [6.9, 36.0], [7.0, 36.0], [7.1, 37.0], [7.2, 37.0], [7.3, 38.0], [7.4, 39.0], [7.5, 41.0], [7.6, 42.0], [7.7, 43.0], [7.8, 44.0], [7.9, 46.0], [8.0, 48.0], [8.1, 51.0], [8.2, 53.0], [8.3, 54.0], [8.4, 56.0], [8.5, 57.0], [8.6, 60.0], [8.7, 65.0], [8.8, 66.0], [8.9, 71.0], [9.0, 77.0], [9.1, 83.0], [9.2, 87.0], [9.3, 93.0], [9.4, 97.0], [9.5, 98.0], [9.6, 99.0], [9.7, 100.0], [9.8, 102.0], [9.9, 105.0], [10.0, 105.0], [10.1, 106.0], [10.2, 108.0], [10.3, 110.0], [10.4, 113.0], [10.5, 114.0], [10.6, 115.0], [10.7, 118.0], [10.8, 120.0], [10.9, 121.0], [11.0, 121.0], [11.1, 122.0], [11.2, 123.0], [11.3, 125.0], [11.4, 130.0], [11.5, 134.0], [11.6, 135.0], [11.7, 137.0], [11.8, 139.0], [11.9, 141.0], [12.0, 151.0], [12.1, 153.0], [12.2, 159.0], [12.3, 162.0], [12.4, 171.0], [12.5, 172.0], [12.6, 174.0], [12.7, 181.0], [12.8, 182.0], [12.9, 183.0], [13.0, 185.0], [13.1, 187.0], [13.2, 188.0], [13.3, 191.0], [13.4, 191.0], [13.5, 193.0], [13.6, 194.0], [13.7, 195.0], [13.8, 196.0], [13.9, 197.0], [14.0, 197.0], [14.1, 198.0], [14.2, 200.0], [14.3, 200.0], [14.4, 201.0], [14.5, 201.0], [14.6, 201.0], [14.7, 203.0], [14.8, 204.0], [14.9, 206.0], [15.0, 206.0], [15.1, 207.0], [15.2, 207.0], [15.3, 208.0], [15.4, 209.0], [15.5, 212.0], [15.6, 212.0], [15.7, 213.0], [15.8, 213.0], [15.9, 213.0], [16.0, 215.0], [16.1, 215.0], [16.2, 216.0], [16.3, 216.0], [16.4, 218.0], [16.5, 220.0], [16.6, 220.0], [16.7, 220.0], [16.8, 221.0], [16.9, 222.0], [17.0, 223.0], [17.1, 223.0], [17.2, 224.0], [17.3, 225.0], [17.4, 226.0], [17.5, 227.0], [17.6, 227.0], [17.7, 230.0], [17.8, 233.0], [17.9, 235.0], [18.0, 239.0], [18.1, 240.0], [18.2, 244.0], [18.3, 248.0], [18.4, 252.0], [18.5, 255.0], [18.6, 256.0], [18.7, 262.0], [18.8, 265.0], [18.9, 269.0], [19.0, 271.0], [19.1, 272.0], [19.2, 275.0], [19.3, 277.0], [19.4, 278.0], [19.5, 278.0], [19.6, 279.0], [19.7, 280.0], [19.8, 282.0], [19.9, 283.0], [20.0, 284.0], [20.1, 285.0], [20.2, 286.0], [20.3, 288.0], [20.4, 289.0], [20.5, 289.0], [20.6, 289.0], [20.7, 290.0], [20.8, 291.0], [20.9, 291.0], [21.0, 291.0], [21.1, 292.0], [21.2, 294.0], [21.3, 294.0], [21.4, 295.0], [21.5, 295.0], [21.6, 296.0], [21.7, 298.0], [21.8, 299.0], [21.9, 299.0], [22.0, 300.0], [22.1, 302.0], [22.2, 303.0], [22.3, 304.0], [22.4, 306.0], [22.5, 306.0], [22.6, 308.0], [22.7, 310.0], [22.8, 310.0], [22.9, 312.0], [23.0, 312.0], [23.1, 315.0], [23.2, 318.0], [23.3, 319.0], [23.4, 323.0], [23.5, 326.0], [23.6, 328.0], [23.7, 329.0], [23.8, 337.0], [23.9, 367.0], [24.0, 367.0], [24.1, 373.0], [24.2, 378.0], [24.3, 381.0], [24.4, 386.0], [24.5, 387.0], [24.6, 388.0], [24.7, 390.0], [24.8, 390.0], [24.9, 391.0], [25.0, 392.0], [25.1, 393.0], [25.2, 393.0], [25.3, 394.0], [25.4, 395.0], [25.5, 396.0], [25.6, 399.0], [25.7, 400.0], [25.8, 404.0], [25.9, 411.0], [26.0, 411.0], [26.1, 414.0], [26.2, 415.0], [26.3, 417.0], [26.4, 421.0], [26.5, 421.0], [26.6, 424.0], [26.7, 426.0], [26.8, 427.0], [26.9, 431.0], [27.0, 431.0], [27.1, 434.0], [27.2, 435.0], [27.3, 438.0], [27.4, 444.0], [27.5, 445.0], [27.6, 467.0], [27.7, 471.0], [27.8, 473.0], [27.9, 476.0], [28.0, 476.0], [28.1, 477.0], [28.2, 477.0], [28.3, 478.0], [28.4, 482.0], [28.5, 482.0], [28.6, 483.0], [28.7, 484.0], [28.8, 485.0], [28.9, 486.0], [29.0, 486.0], [29.1, 488.0], [29.2, 489.0], [29.3, 490.0], [29.4, 490.0], [29.5, 491.0], [29.6, 491.0], [29.7, 492.0], [29.8, 492.0], [29.9, 494.0], [30.0, 494.0], [30.1, 495.0], [30.2, 496.0], [30.3, 497.0], [30.4, 498.0], [30.5, 498.0], [30.6, 498.0], [30.7, 499.0], [30.8, 500.0], [30.9, 500.0], [31.0, 501.0], [31.1, 501.0], [31.2, 502.0], [31.3, 502.0], [31.4, 503.0], [31.5, 503.0], [31.6, 503.0], [31.7, 504.0], [31.8, 505.0], [31.9, 505.0], [32.0, 506.0], [32.1, 507.0], [32.2, 507.0], [32.3, 508.0], [32.4, 508.0], [32.5, 508.0], [32.6, 509.0], [32.7, 509.0], [32.8, 510.0], [32.9, 511.0], [33.0, 511.0], [33.1, 511.0], [33.2, 511.0], [33.3, 512.0], [33.4, 513.0], [33.5, 513.0], [33.6, 513.0], [33.7, 517.0], [33.8, 517.0], [33.9, 518.0], [34.0, 518.0], [34.1, 521.0], [34.2, 521.0], [34.3, 522.0], [34.4, 522.0], [34.5, 523.0], [34.6, 526.0], [34.7, 527.0], [34.8, 528.0], [34.9, 528.0], [35.0, 529.0], [35.1, 529.0], [35.2, 532.0], [35.3, 534.0], [35.4, 535.0], [35.5, 542.0], [35.6, 557.0], [35.7, 561.0], [35.8, 563.0], [35.9, 566.0], [36.0, 567.0], [36.1, 568.0], [36.2, 571.0], [36.3, 572.0], [36.4, 573.0], [36.5, 573.0], [36.6, 576.0], [36.7, 577.0], [36.8, 578.0], [36.9, 579.0], [37.0, 579.0], [37.1, 580.0], [37.2, 581.0], [37.3, 581.0], [37.4, 583.0], [37.5, 583.0], [37.6, 584.0], [37.7, 585.0], [37.8, 588.0], [37.9, 588.0], [38.0, 588.0], [38.1, 589.0], [38.2, 590.0], [38.3, 590.0], [38.4, 592.0], [38.5, 592.0], [38.6, 593.0], [38.7, 593.0], [38.8, 594.0], [38.9, 595.0], [39.0, 595.0], [39.1, 596.0], [39.2, 596.0], [39.3, 597.0], [39.4, 597.0], [39.5, 597.0], [39.6, 598.0], [39.7, 598.0], [39.8, 599.0], [39.9, 600.0], [40.0, 600.0], [40.1, 600.0], [40.2, 601.0], [40.3, 602.0], [40.4, 602.0], [40.5, 603.0], [40.6, 604.0], [40.7, 604.0], [40.8, 604.0], [40.9, 604.0], [41.0, 604.0], [41.1, 605.0], [41.2, 605.0], [41.3, 606.0], [41.4, 606.0], [41.5, 607.0], [41.6, 609.0], [41.7, 609.0], [41.8, 609.0], [41.9, 610.0], [42.0, 610.0], [42.1, 612.0], [42.2, 613.0], [42.3, 616.0], [42.4, 618.0], [42.5, 619.0], [42.6, 620.0], [42.7, 621.0], [42.8, 625.0], [42.9, 627.0], [43.0, 627.0], [43.1, 630.0], [43.2, 634.0], [43.3, 648.0], [43.4, 658.0], [43.5, 663.0], [43.6, 666.0], [43.7, 671.0], [43.8, 671.0], [43.9, 674.0], [44.0, 675.0], [44.1, 675.0], [44.2, 676.0], [44.3, 679.0], [44.4, 681.0], [44.5, 684.0], [44.6, 687.0], [44.7, 688.0], [44.8, 690.0], [44.9, 695.0], [45.0, 696.0], [45.1, 697.0], [45.2, 700.0], [45.3, 704.0], [45.4, 705.0], [45.5, 706.0], [45.6, 711.0], [45.7, 712.0], [45.8, 714.0], [45.9, 715.0], [46.0, 716.0], [46.1, 721.0], [46.2, 722.0], [46.3, 729.0], [46.4, 732.0], [46.5, 735.0], [46.6, 739.0], [46.7, 740.0], [46.8, 761.0], [46.9, 766.0], [47.0, 767.0], [47.1, 770.0], [47.2, 773.0], [47.3, 774.0], [47.4, 779.0], [47.5, 779.0], [47.6, 781.0], [47.7, 783.0], [47.8, 784.0], [47.9, 785.0], [48.0, 785.0], [48.1, 786.0], [48.2, 788.0], [48.3, 789.0], [48.4, 789.0], [48.5, 791.0], [48.6, 793.0], [48.7, 794.0], [48.8, 794.0], [48.9, 795.0], [49.0, 796.0], [49.1, 798.0], [49.2, 799.0], [49.3, 800.0], [49.4, 801.0], [49.5, 801.0], [49.6, 804.0], [49.7, 804.0], [49.8, 805.0], [49.9, 805.0], [50.0, 805.0], [50.1, 809.0], [50.2, 810.0], [50.3, 810.0], [50.4, 811.0], [50.5, 812.0], [50.6, 814.0], [50.7, 815.0], [50.8, 818.0], [50.9, 818.0], [51.0, 818.0], [51.1, 818.0], [51.2, 820.0], [51.3, 821.0], [51.4, 825.0], [51.5, 826.0], [51.6, 826.0], [51.7, 826.0], [51.8, 828.0], [51.9, 829.0], [52.0, 830.0], [52.1, 835.0], [52.2, 840.0], [52.3, 841.0], [52.4, 847.0], [52.5, 850.0], [52.6, 855.0], [52.7, 861.0], [52.8, 863.0], [52.9, 866.0], [53.0, 868.0], [53.1, 871.0], [53.2, 875.0], [53.3, 878.0], [53.4, 879.0], [53.5, 880.0], [53.6, 880.0], [53.7, 881.0], [53.8, 883.0], [53.9, 887.0], [54.0, 889.0], [54.1, 890.0], [54.2, 891.0], [54.3, 894.0], [54.4, 894.0], [54.5, 895.0], [54.6, 900.0], [54.7, 900.0], [54.8, 902.0], [54.9, 903.0], [55.0, 904.0], [55.1, 905.0], [55.2, 908.0], [55.3, 912.0], [55.4, 914.0], [55.5, 915.0], [55.6, 916.0], [55.7, 917.0], [55.8, 919.0], [55.9, 923.0], [56.0, 923.0], [56.1, 926.0], [56.2, 927.0], [56.3, 928.0], [56.4, 933.0], [56.5, 943.0], [56.6, 945.0], [56.7, 954.0], [56.8, 955.0], [56.9, 967.0], [57.0, 969.0], [57.1, 972.0], [57.2, 973.0], [57.3, 977.0], [57.4, 980.0], [57.5, 981.0], [57.6, 982.0], [57.7, 983.0], [57.8, 984.0], [57.9, 984.0], [58.0, 985.0], [58.1, 987.0], [58.2, 988.0], [58.3, 988.0], [58.4, 989.0], [58.5, 990.0], [58.6, 991.0], [58.7, 992.0], [58.8, 995.0], [58.9, 995.0], [59.0, 995.0], [59.1, 997.0], [59.2, 998.0], [59.3, 1001.0], [59.4, 1001.0], [59.5, 1001.0], [59.6, 1003.0], [59.7, 1004.0], [59.8, 1004.0], [59.9, 1005.0], [60.0, 1007.0], [60.1, 1008.0], [60.2, 1010.0], [60.3, 1011.0], [60.4, 1013.0], [60.5, 1013.0], [60.6, 1014.0], [60.7, 1015.0], [60.8, 1015.0], [60.9, 1017.0], [61.0, 1019.0], [61.1, 1021.0], [61.2, 1024.0], [61.3, 1026.0], [61.4, 1030.0], [61.5, 1030.0], [61.6, 1034.0], [61.7, 1038.0], [61.8, 1042.0], [61.9, 1042.0], [62.0, 1049.0], [62.1, 1053.0], [62.2, 1056.0], [62.3, 1062.0], [62.4, 1068.0], [62.5, 1070.0], [62.6, 1076.0], [62.7, 1077.0], [62.8, 1080.0], [62.9, 1082.0], [63.0, 1082.0], [63.1, 1083.0], [63.2, 1084.0], [63.3, 1088.0], [63.4, 1089.0], [63.5, 1090.0], [63.6, 1090.0], [63.7, 1092.0], [63.8, 1095.0], [63.9, 1096.0], [64.0, 1097.0], [64.1, 1097.0], [64.2, 1099.0], [64.3, 1101.0], [64.4, 1102.0], [64.5, 1102.0], [64.6, 1103.0], [64.7, 1105.0], [64.8, 1106.0], [64.9, 1107.0], [65.0, 1107.0], [65.1, 1108.0], [65.2, 1110.0], [65.3, 1112.0], [65.4, 1114.0], [65.5, 1119.0], [65.6, 1120.0], [65.7, 1124.0], [65.8, 1125.0], [65.9, 1126.0], [66.0, 1128.0], [66.1, 1130.0], [66.2, 1132.0], [66.3, 1138.0], [66.4, 1141.0], [66.5, 1146.0], [66.6, 1153.0], [66.7, 1161.0], [66.8, 1166.0], [66.9, 1169.0], [67.0, 1169.0], [67.1, 1172.0], [67.2, 1173.0], [67.3, 1175.0], [67.4, 1176.0], [67.5, 1180.0], [67.6, 1187.0], [67.7, 1188.0], [67.8, 1193.0], [67.9, 1195.0], [68.0, 1197.0], [68.1, 1200.0], [68.2, 1201.0], [68.3, 1204.0], [68.4, 1205.0], [68.5, 1206.0], [68.6, 1212.0], [68.7, 1214.0], [68.8, 1216.0], [68.9, 1219.0], [69.0, 1219.0], [69.1, 1235.0], [69.2, 1255.0], [69.3, 1266.0], [69.4, 1269.0], [69.5, 1270.0], [69.6, 1271.0], [69.7, 1281.0], [69.8, 1283.0], [69.9, 1284.0], [70.0, 1286.0], [70.1, 1291.0], [70.2, 1294.0], [70.3, 1299.0], [70.4, 1300.0], [70.5, 1300.0], [70.6, 1305.0], [70.7, 1307.0], [70.8, 1308.0], [70.9, 1311.0], [71.0, 1313.0], [71.1, 1314.0], [71.2, 1320.0], [71.3, 1335.0], [71.4, 1338.0], [71.5, 1339.0], [71.6, 1342.0], [71.7, 1344.0], [71.8, 1369.0], [71.9, 1373.0], [72.0, 1376.0], [72.1, 1385.0], [72.2, 1390.0], [72.3, 1395.0], [72.4, 1399.0], [72.5, 1402.0], [72.6, 1408.0], [72.7, 1413.0], [72.8, 1420.0], [72.9, 1433.0], [73.0, 1456.0], [73.1, 1466.0], [73.2, 1475.0], [73.3, 1483.0], [73.4, 1489.0], [73.5, 1492.0], [73.6, 1501.0], [73.7, 1501.0], [73.8, 1503.0], [73.9, 1507.0], [74.0, 1508.0], [74.1, 1516.0], [74.2, 1517.0], [74.3, 1528.0], [74.4, 1532.0], [74.5, 1537.0], [74.6, 1541.0], [74.7, 1552.0], [74.8, 1564.0], [74.9, 1570.0], [75.0, 1577.0], [75.1, 1586.0], [75.2, 1591.0], [75.3, 1599.0], [75.4, 1617.0], [75.5, 1628.0], [75.6, 1632.0], [75.7, 1638.0], [75.8, 1658.0], [75.9, 1666.0], [76.0, 1700.0], [76.1, 1701.0], [76.2, 1725.0], [76.3, 1736.0], [76.4, 1737.0], [76.5, 1748.0], [76.6, 1767.0], [76.7, 1776.0], [76.8, 1791.0], [76.9, 1794.0], [77.0, 1796.0], [77.1, 1801.0], [77.2, 1803.0], [77.3, 1816.0], [77.4, 1829.0], [77.5, 1845.0], [77.6, 1887.0], [77.7, 1906.0], [77.8, 1927.0], [77.9, 1941.0], [78.0, 1947.0], [78.1, 1974.0], [78.2, 1990.0], [78.3, 1996.0], [78.4, 1998.0], [78.5, 2006.0], [78.6, 2014.0], [78.7, 2031.0], [78.8, 2042.0], [78.9, 2070.0], [79.0, 2073.0], [79.1, 2083.0], [79.2, 2087.0], [79.3, 2093.0], [79.4, 2101.0], [79.5, 2102.0], [79.6, 2106.0], [79.7, 2108.0], [79.8, 2114.0], [79.9, 2127.0], [80.0, 2138.0], [80.1, 2151.0], [80.2, 2157.0], [80.3, 2163.0], [80.4, 2172.0], [80.5, 2174.0], [80.6, 2200.0], [80.7, 2216.0], [80.8, 2229.0], [80.9, 2258.0], [81.0, 2261.0], [81.1, 2263.0], [81.2, 2264.0], [81.3, 2292.0], [81.4, 2316.0], [81.5, 2319.0], [81.6, 2346.0], [81.7, 2360.0], [81.8, 2382.0], [81.9, 2395.0], [82.0, 2398.0], [82.1, 2412.0], [82.2, 2439.0], [82.3, 2463.0], [82.4, 2491.0], [82.5, 2501.0], [82.6, 2572.0], [82.7, 2595.0], [82.8, 2623.0], [82.9, 2645.0], [83.0, 2645.0], [83.1, 2672.0], [83.2, 2699.0], [83.3, 2706.0], [83.4, 2715.0], [83.5, 2716.0], [83.6, 2782.0], [83.7, 2804.0], [83.8, 2842.0], [83.9, 2868.0], [84.0, 2876.0], [84.1, 2890.0], [84.2, 2945.0], [84.3, 2981.0], [84.4, 3014.0], [84.5, 3035.0], [84.6, 3071.0], [84.7, 3087.0], [84.8, 3136.0], [84.9, 3152.0], [85.0, 3172.0], [85.1, 3197.0], [85.2, 3210.0], [85.3, 3222.0], [85.4, 3277.0], [85.5, 3287.0], [85.6, 3300.0], [85.7, 3345.0], [85.8, 3379.0], [85.9, 3406.0], [86.0, 3438.0], [86.1, 3474.0], [86.2, 3504.0], [86.3, 3615.0], [86.4, 3686.0], [86.5, 3721.0], [86.6, 3792.0], [86.7, 3821.0], [86.8, 3830.0], [86.9, 3858.0], [87.0, 3912.0], [87.1, 4016.0], [87.2, 4039.0], [87.3, 4087.0], [87.4, 4107.0], [87.5, 4178.0], [87.6, 4204.0], [87.7, 4446.0], [87.8, 4491.0], [87.9, 4548.0], [88.0, 4666.0], [88.1, 4705.0], [88.2, 4846.0], [88.3, 4872.0], [88.4, 4912.0], [88.5, 4967.0], [88.6, 5016.0], [88.7, 5070.0], [88.8, 5102.0], [88.9, 5304.0], [89.0, 5500.0], [89.1, 5549.0], [89.2, 5692.0], [89.3, 5816.0], [89.4, 5956.0], [89.5, 6070.0], [89.6, 6806.0], [89.7, 7626.0], [89.8, 8287.0], [89.9, 8593.0], [90.0, 8862.0], [90.1, 8943.0], [90.2, 9463.0], [90.3, 10301.0], [90.4, 11645.0], [90.5, 11696.0], [90.6, 11743.0], [90.7, 11811.0], [90.8, 11816.0], [90.9, 11831.0], [91.0, 11840.0], [91.1, 11888.0], [91.2, 11915.0], [91.3, 11929.0], [91.4, 11984.0], [91.5, 12008.0], [91.6, 12045.0], [91.7, 12376.0], [91.8, 12521.0], [91.9, 12528.0], [92.0, 12609.0], [92.1, 12614.0], [92.2, 12786.0], [92.3, 12901.0], [92.4, 13009.0], [92.5, 13039.0], [92.6, 13414.0], [92.7, 13474.0], [92.8, 13506.0], [92.9, 13624.0], [93.0, 13641.0], [93.1, 13684.0], [93.2, 14210.0], [93.3, 14330.0], [93.4, 14510.0], [93.5, 14534.0], [93.6, 14895.0], [93.7, 14933.0], [93.8, 15704.0], [93.9, 15775.0], [94.0, 15888.0], [94.1, 15945.0], [94.2, 16493.0], [94.3, 16498.0], [94.4, 16574.0], [94.5, 16600.0], [94.6, 17440.0], [94.7, 17684.0], [94.8, 18524.0], [94.9, 19176.0], [95.0, 19199.0], [95.1, 20005.0], [95.2, 20092.0], [95.3, 20156.0], [95.4, 20177.0], [95.5, 20193.0], [95.6, 20212.0], [95.7, 20272.0], [95.8, 20296.0], [95.9, 20300.0], [96.0, 20314.0], [96.1, 20322.0], [96.2, 20391.0], [96.3, 20425.0], [96.4, 20502.0], [96.5, 20561.0], [96.6, 20584.0], [96.7, 20608.0], [96.8, 20669.0], [96.9, 20758.0], [97.0, 20768.0], [97.1, 20892.0], [97.2, 20906.0], [97.3, 20989.0], [97.4, 21045.0], [97.5, 21067.0], [97.6, 21080.0], [97.7, 21106.0], [97.8, 21123.0], [97.9, 21297.0], [98.0, 21370.0], [98.1, 21516.0], [98.2, 21599.0], [98.3, 21712.0], [98.4, 21719.0], [98.5, 21742.0], [98.6, 21777.0], [98.7, 21815.0], [98.8, 22096.0], [98.9, 22178.0], [99.0, 22184.0], [99.1, 22204.0], [99.2, 22276.0], [99.3, 22391.0], [99.4, 22415.0], [99.5, 22423.0], [99.6, 22672.0], [99.7, 22807.0], [99.8, 23852.0], [99.9, 25306.0], [100.0, 26647.0]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[0.0, 6.0], [0.1, 6.0], [0.2, 6.0], [0.3, 6.0], [0.4, 6.0], [0.5, 7.0], [0.6, 7.0], [0.7, 7.0], [0.8, 7.0], [0.9, 7.0], [1.0, 7.0], [1.1, 7.0], [1.2, 8.0], [1.3, 8.0], [1.4, 8.0], [1.5, 8.0], [1.6, 8.0], [1.7, 8.0], [1.8, 8.0], [1.9, 8.0], [2.0, 9.0], [2.1, 9.0], [2.2, 9.0], [2.3, 9.0], [2.4, 9.0], [2.5, 9.0], [2.6, 9.0], [2.7, 9.0], [2.8, 10.0], [2.9, 10.0], [3.0, 10.0], [3.1, 10.0], [3.2, 10.0], [3.3, 11.0], [3.4, 11.0], [3.5, 11.0], [3.6, 11.0], [3.7, 11.0], [3.8, 12.0], [3.9, 12.0], [4.0, 12.0], [4.1, 12.0], [4.2, 12.0], [4.3, 12.0], [4.4, 13.0], [4.5, 13.0], [4.6, 13.0], [4.7, 14.0], [4.8, 14.0], [4.9, 14.0], [5.0, 14.0], [5.1, 14.0], [5.2, 14.0], [5.3, 14.0], [5.4, 15.0], [5.5, 15.0], [5.6, 15.0], [5.7, 15.0], [5.8, 15.0], [5.9, 16.0], [6.0, 16.0], [6.1, 17.0], [6.2, 17.0], [6.3, 17.0], [6.4, 18.0], [6.5, 19.0], [6.6, 19.0], [6.7, 20.0], [6.8, 20.0], [6.9, 20.0], [7.0, 20.0], [7.1, 21.0], [7.2, 21.0], [7.3, 22.0], [7.4, 22.0], [7.5, 22.0], [7.6, 22.0], [7.7, 23.0], [7.8, 23.0], [7.9, 23.0], [8.0, 23.0], [8.1, 24.0], [8.2, 24.0], [8.3, 25.0], [8.4, 27.0], [8.5, 28.0], [8.6, 28.0], [8.7, 29.0], [8.8, 30.0], [8.9, 31.0], [9.0, 31.0], [9.1, 31.0], [9.2, 33.0], [9.3, 33.0], [9.4, 36.0], [9.5, 36.0], [9.6, 37.0], [9.7, 38.0], [9.8, 40.0], [9.9, 46.0], [10.0, 49.0], [10.1, 51.0], [10.2, 51.0], [10.3, 53.0], [10.4, 56.0], [10.5, 60.0], [10.6, 60.0], [10.7, 66.0], [10.8, 67.0], [10.9, 71.0], [11.0, 75.0], [11.1, 77.0], [11.2, 78.0], [11.3, 79.0], [11.4, 80.0], [11.5, 82.0], [11.6, 82.0], [11.7, 83.0], [11.8, 84.0], [11.9, 87.0], [12.0, 89.0], [12.1, 89.0], [12.2, 89.0], [12.3, 92.0], [12.4, 94.0], [12.5, 96.0], [12.6, 96.0], [12.7, 97.0], [12.8, 98.0], [12.9, 99.0], [13.0, 102.0], [13.1, 102.0], [13.2, 103.0], [13.3, 104.0], [13.4, 104.0], [13.5, 105.0], [13.6, 106.0], [13.7, 107.0], [13.8, 109.0], [13.9, 111.0], [14.0, 114.0], [14.1, 114.0], [14.2, 116.0], [14.3, 116.0], [14.4, 117.0], [14.5, 118.0], [14.6, 120.0], [14.7, 121.0], [14.8, 122.0], [14.9, 124.0], [15.0, 124.0], [15.1, 125.0], [15.2, 126.0], [15.3, 128.0], [15.4, 130.0], [15.5, 132.0], [15.6, 133.0], [15.7, 136.0], [15.8, 137.0], [15.9, 150.0], [16.0, 157.0], [16.1, 159.0], [16.2, 163.0], [16.3, 164.0], [16.4, 164.0], [16.5, 170.0], [16.6, 170.0], [16.7, 174.0], [16.8, 174.0], [16.9, 177.0], [17.0, 179.0], [17.1, 179.0], [17.2, 180.0], [17.3, 181.0], [17.4, 185.0], [17.5, 187.0], [17.6, 187.0], [17.7, 188.0], [17.8, 189.0], [17.9, 190.0], [18.0, 190.0], [18.1, 190.0], [18.2, 191.0], [18.3, 191.0], [18.4, 191.0], [18.5, 192.0], [18.6, 192.0], [18.7, 192.0], [18.8, 193.0], [18.9, 195.0], [19.0, 195.0], [19.1, 196.0], [19.2, 196.0], [19.3, 197.0], [19.4, 198.0], [19.5, 199.0], [19.6, 199.0], [19.7, 200.0], [19.8, 200.0], [19.9, 201.0], [20.0, 201.0], [20.1, 201.0], [20.2, 202.0], [20.3, 203.0], [20.4, 204.0], [20.5, 204.0], [20.6, 204.0], [20.7, 204.0], [20.8, 205.0], [20.9, 206.0], [21.0, 208.0], [21.1, 208.0], [21.2, 209.0], [21.3, 210.0], [21.4, 210.0], [21.5, 211.0], [21.6, 211.0], [21.7, 213.0], [21.8, 213.0], [21.9, 213.0], [22.0, 214.0], [22.1, 214.0], [22.2, 215.0], [22.3, 217.0], [22.4, 218.0], [22.5, 219.0], [22.6, 221.0], [22.7, 222.0], [22.8, 225.0], [22.9, 237.0], [23.0, 253.0], [23.1, 270.0], [23.2, 272.0], [23.3, 273.0], [23.4, 275.0], [23.5, 278.0], [23.6, 279.0], [23.7, 280.0], [23.8, 282.0], [23.9, 284.0], [24.0, 287.0], [24.1, 290.0], [24.2, 291.0], [24.3, 293.0], [24.4, 296.0], [24.5, 296.0], [24.6, 297.0], [24.7, 297.0], [24.8, 299.0], [24.9, 301.0], [25.0, 301.0], [25.1, 304.0], [25.2, 305.0], [25.3, 310.0], [25.4, 311.0], [25.5, 312.0], [25.6, 314.0], [25.7, 316.0], [25.8, 320.0], [25.9, 322.0], [26.0, 323.0], [26.1, 326.0], [26.2, 332.0], [26.3, 333.0], [26.4, 351.0], [26.5, 357.0], [26.6, 363.0], [26.7, 372.0], [26.8, 377.0], [26.9, 379.0], [27.0, 381.0], [27.1, 382.0], [27.2, 385.0], [27.3, 386.0], [27.4, 388.0], [27.5, 390.0], [27.6, 390.0], [27.7, 391.0], [27.8, 392.0], [27.9, 392.0], [28.0, 392.0], [28.1, 394.0], [28.2, 396.0], [28.3, 396.0], [28.4, 396.0], [28.5, 397.0], [28.6, 399.0], [28.7, 401.0], [28.8, 402.0], [28.9, 404.0], [29.0, 405.0], [29.1, 406.0], [29.2, 406.0], [29.3, 407.0], [29.4, 407.0], [29.5, 408.0], [29.6, 409.0], [29.7, 410.0], [29.8, 410.0], [29.9, 412.0], [30.0, 412.0], [30.1, 412.0], [30.2, 414.0], [30.3, 415.0], [30.4, 418.0], [30.5, 418.0], [30.6, 419.0], [30.7, 420.0], [30.8, 420.0], [30.9, 420.0], [31.0, 421.0], [31.1, 422.0], [31.2, 425.0], [31.3, 427.0], [31.4, 428.0], [31.5, 429.0], [31.6, 430.0], [31.7, 431.0], [31.8, 434.0], [31.9, 437.0], [32.0, 438.0], [32.1, 452.0], [32.2, 460.0], [32.3, 462.0], [32.4, 468.0], [32.5, 469.0], [32.6, 475.0], [32.7, 477.0], [32.8, 478.0], [32.9, 479.0], [33.0, 480.0], [33.1, 483.0], [33.2, 484.0], [33.3, 486.0], [33.4, 487.0], [33.5, 487.0], [33.6, 488.0], [33.7, 489.0], [33.8, 490.0], [33.9, 490.0], [34.0, 491.0], [34.1, 491.0], [34.2, 492.0], [34.3, 492.0], [34.4, 493.0], [34.5, 493.0], [34.6, 494.0], [34.7, 496.0], [34.8, 496.0], [34.9, 496.0], [35.0, 496.0], [35.1, 497.0], [35.2, 498.0], [35.3, 498.0], [35.4, 499.0], [35.5, 499.0], [35.6, 499.0], [35.7, 500.0], [35.8, 500.0], [35.9, 500.0], [36.0, 501.0], [36.1, 501.0], [36.2, 501.0], [36.3, 502.0], [36.4, 502.0], [36.5, 502.0], [36.6, 503.0], [36.7, 503.0], [36.8, 503.0], [36.9, 504.0], [37.0, 504.0], [37.1, 505.0], [37.2, 505.0], [37.3, 506.0], [37.4, 506.0], [37.5, 507.0], [37.6, 508.0], [37.7, 509.0], [37.8, 510.0], [37.9, 510.0], [38.0, 510.0], [38.1, 511.0], [38.2, 512.0], [38.3, 513.0], [38.4, 513.0], [38.5, 513.0], [38.6, 514.0], [38.7, 515.0], [38.8, 515.0], [38.9, 517.0], [39.0, 518.0], [39.1, 520.0], [39.2, 521.0], [39.3, 522.0], [39.4, 523.0], [39.5, 523.0], [39.6, 524.0], [39.7, 526.0], [39.8, 528.0], [39.9, 532.0], [40.0, 533.0], [40.1, 538.0], [40.2, 562.0], [40.3, 566.0], [40.4, 569.0], [40.5, 570.0], [40.6, 572.0], [40.7, 574.0], [40.8, 574.0], [40.9, 575.0], [41.0, 575.0], [41.1, 576.0], [41.2, 577.0], [41.3, 577.0], [41.4, 580.0], [41.5, 580.0], [41.6, 581.0], [41.7, 582.0], [41.8, 584.0], [41.9, 586.0], [42.0, 588.0], [42.1, 588.0], [42.2, 588.0], [42.3, 590.0], [42.4, 590.0], [42.5, 592.0], [42.6, 593.0], [42.7, 594.0], [42.8, 595.0], [42.9, 596.0], [43.0, 596.0], [43.1, 597.0], [43.2, 599.0], [43.3, 601.0], [43.4, 601.0], [43.5, 602.0], [43.6, 603.0], [43.7, 604.0], [43.8, 606.0], [43.9, 608.0], [44.0, 608.0], [44.1, 609.0], [44.2, 611.0], [44.3, 612.0], [44.4, 616.0], [44.5, 617.0], [44.6, 618.0], [44.7, 619.0], [44.8, 621.0], [44.9, 624.0], [45.0, 626.0], [45.1, 627.0], [45.2, 631.0], [45.3, 655.0], [45.4, 670.0], [45.5, 673.0], [45.6, 674.0], [45.7, 678.0], [45.8, 680.0], [45.9, 683.0], [46.0, 684.0], [46.1, 685.0], [46.2, 686.0], [46.3, 687.0], [46.4, 688.0], [46.5, 690.0], [46.6, 693.0], [46.7, 694.0], [46.8, 697.0], [46.9, 697.0], [47.0, 698.0], [47.1, 698.0], [47.2, 699.0], [47.3, 699.0], [47.4, 701.0], [47.5, 701.0], [47.6, 703.0], [47.7, 704.0], [47.8, 706.0], [47.9, 708.0], [48.0, 708.0], [48.1, 709.0], [48.2, 714.0], [48.3, 715.0], [48.4, 716.0], [48.5, 717.0], [48.6, 721.0], [48.7, 726.0], [48.8, 730.0], [48.9, 731.0], [49.0, 733.0], [49.1, 743.0], [49.2, 748.0], [49.3, 755.0], [49.4, 764.0], [49.5, 767.0], [49.6, 767.0], [49.7, 771.0], [49.8, 776.0], [49.9, 778.0], [50.0, 778.0], [50.1, 778.0], [50.2, 779.0], [50.3, 780.0], [50.4, 782.0], [50.5, 783.0], [50.6, 786.0], [50.7, 786.0], [50.8, 787.0], [50.9, 789.0], [51.0, 789.0], [51.1, 790.0], [51.2, 791.0], [51.3, 792.0], [51.4, 793.0], [51.5, 793.0], [51.6, 794.0], [51.7, 795.0], [51.8, 797.0], [51.9, 798.0], [52.0, 799.0], [52.1, 799.0], [52.2, 800.0], [52.3, 801.0], [52.4, 801.0], [52.5, 802.0], [52.6, 802.0], [52.7, 803.0], [52.8, 804.0], [52.9, 805.0], [53.0, 805.0], [53.1, 806.0], [53.2, 807.0], [53.3, 808.0], [53.4, 811.0], [53.5, 812.0], [53.6, 812.0], [53.7, 815.0], [53.8, 815.0], [53.9, 816.0], [54.0, 816.0], [54.1, 818.0], [54.2, 818.0], [54.3, 820.0], [54.4, 821.0], [54.5, 821.0], [54.6, 822.0], [54.7, 824.0], [54.8, 828.0], [54.9, 829.0], [55.0, 830.0], [55.1, 832.0], [55.2, 833.0], [55.3, 840.0], [55.4, 843.0], [55.5, 846.0], [55.6, 850.0], [55.7, 858.0], [55.8, 862.0], [55.9, 867.0], [56.0, 867.0], [56.1, 868.0], [56.2, 875.0], [56.3, 878.0], [56.4, 882.0], [56.5, 883.0], [56.6, 884.0], [56.7, 885.0], [56.8, 888.0], [56.9, 890.0], [57.0, 892.0], [57.1, 895.0], [57.2, 897.0], [57.3, 898.0], [57.4, 902.0], [57.5, 902.0], [57.6, 903.0], [57.7, 904.0], [57.8, 905.0], [57.9, 906.0], [58.0, 906.0], [58.1, 908.0], [58.2, 910.0], [58.3, 911.0], [58.4, 912.0], [58.5, 912.0], [58.6, 914.0], [58.7, 916.0], [58.8, 924.0], [58.9, 925.0], [59.0, 927.0], [59.1, 932.0], [59.2, 935.0], [59.3, 937.0], [59.4, 939.0], [59.5, 940.0], [59.6, 943.0], [59.7, 952.0], [59.8, 957.0], [59.9, 960.0], [60.0, 964.0], [60.1, 965.0], [60.2, 966.0], [60.3, 968.0], [60.4, 971.0], [60.5, 972.0], [60.6, 974.0], [60.7, 975.0], [60.8, 976.0], [60.9, 976.0], [61.0, 977.0], [61.1, 980.0], [61.2, 981.0], [61.3, 983.0], [61.4, 983.0], [61.5, 984.0], [61.6, 986.0], [61.7, 988.0], [61.8, 988.0], [61.9, 990.0], [62.0, 991.0], [62.1, 992.0], [62.2, 993.0], [62.3, 994.0], [62.4, 994.0], [62.5, 995.0], [62.6, 999.0], [62.7, 1001.0], [62.8, 1002.0], [62.9, 1004.0], [63.0, 1005.0], [63.1, 1006.0], [63.2, 1008.0], [63.3, 1008.0], [63.4, 1009.0], [63.5, 1009.0], [63.6, 1012.0], [63.7, 1014.0], [63.8, 1017.0], [63.9, 1018.0], [64.0, 1018.0], [64.1, 1019.0], [64.2, 1019.0], [64.3, 1024.0], [64.4, 1028.0], [64.5, 1029.0], [64.6, 1030.0], [64.7, 1036.0], [64.8, 1039.0], [64.9, 1056.0], [65.0, 1059.0], [65.1, 1061.0], [65.2, 1064.0], [65.3, 1067.0], [65.4, 1069.0], [65.5, 1071.0], [65.6, 1074.0], [65.7, 1075.0], [65.8, 1076.0], [65.9, 1077.0], [66.0, 1079.0], [66.1, 1082.0], [66.2, 1082.0], [66.3, 1082.0], [66.4, 1084.0], [66.5, 1088.0], [66.6, 1092.0], [66.7, 1093.0], [66.8, 1093.0], [66.9, 1095.0], [67.0, 1095.0], [67.1, 1096.0], [67.2, 1096.0], [67.3, 1097.0], [67.4, 1098.0], [67.5, 1098.0], [67.6, 1099.0], [67.7, 1100.0], [67.8, 1101.0], [67.9, 1102.0], [68.0, 1102.0], [68.1, 1103.0], [68.2, 1104.0], [68.3, 1107.0], [68.4, 1109.0], [68.5, 1110.0], [68.6, 1114.0], [68.7, 1116.0], [68.8, 1118.0], [68.9, 1118.0], [69.0, 1121.0], [69.1, 1122.0], [69.2, 1123.0], [69.3, 1126.0], [69.4, 1132.0], [69.5, 1133.0], [69.6, 1137.0], [69.7, 1154.0], [69.8, 1169.0], [69.9, 1173.0], [70.0, 1173.0], [70.1, 1174.0], [70.2, 1179.0], [70.3, 1182.0], [70.4, 1185.0], [70.5, 1188.0], [70.6, 1191.0], [70.7, 1197.0], [70.8, 1197.0], [70.9, 1197.0], [71.0, 1199.0], [71.1, 1202.0], [71.2, 1205.0], [71.3, 1206.0], [71.4, 1207.0], [71.5, 1209.0], [71.6, 1219.0], [71.7, 1224.0], [71.8, 1225.0], [71.9, 1226.0], [72.0, 1227.0], [72.1, 1232.0], [72.2, 1245.0], [72.3, 1253.0], [72.4, 1257.0], [72.5, 1264.0], [72.6, 1269.0], [72.7, 1273.0], [72.8, 1277.0], [72.9, 1281.0], [73.0, 1283.0], [73.1, 1286.0], [73.2, 1288.0], [73.3, 1291.0], [73.4, 1292.0], [73.5, 1295.0], [73.6, 1298.0], [73.7, 1303.0], [73.8, 1308.0], [73.9, 1314.0], [74.0, 1314.0], [74.1, 1334.0], [74.2, 1350.0], [74.3, 1360.0], [74.4, 1366.0], [74.5, 1371.0], [74.6, 1379.0], [74.7, 1384.0], [74.8, 1398.0], [74.9, 1401.0], [75.0, 1403.0], [75.1, 1412.0], [75.2, 1433.0], [75.3, 1440.0], [75.4, 1450.0], [75.5, 1458.0], [75.6, 1475.0], [75.7, 1479.0], [75.8, 1485.0], [75.9, 1487.0], [76.0, 1488.0], [76.1, 1490.0], [76.2, 1499.0], [76.3, 1503.0], [76.4, 1519.0], [76.5, 1529.0], [76.6, 1545.0], [76.7, 1550.0], [76.8, 1577.0], [76.9, 1585.0], [77.0, 1589.0], [77.1, 1600.0], [77.2, 1615.0], [77.3, 1629.0], [77.4, 1648.0], [77.5, 1650.0], [77.6, 1695.0], [77.7, 1700.0], [77.8, 1706.0], [77.9, 1730.0], [78.0, 1733.0], [78.1, 1743.0], [78.2, 1747.0], [78.3, 1752.0], [78.4, 1764.0], [78.5, 1769.0], [78.6, 1781.0], [78.7, 1788.0], [78.8, 1794.0], [78.9, 1801.0], [79.0, 1809.0], [79.1, 1821.0], [79.2, 1821.0], [79.3, 1843.0], [79.4, 1883.0], [79.5, 1887.0], [79.6, 1889.0], [79.7, 1892.0], [79.8, 1905.0], [79.9, 1909.0], [80.0, 1910.0], [80.1, 1916.0], [80.2, 1922.0], [80.3, 1934.0], [80.4, 1943.0], [80.5, 1943.0], [80.6, 1960.0], [80.7, 1972.0], [80.8, 1988.0], [80.9, 1993.0], [81.0, 1994.0], [81.1, 2003.0], [81.2, 2012.0], [81.3, 2013.0], [81.4, 2040.0], [81.5, 2052.0], [81.6, 2076.0], [81.7, 2083.0], [81.8, 2095.0], [81.9, 2101.0], [82.0, 2105.0], [82.1, 2106.0], [82.2, 2116.0], [82.3, 2123.0], [82.4, 2132.0], [82.5, 2146.0], [82.6, 2161.0], [82.7, 2173.0], [82.8, 2195.0], [82.9, 2212.0], [83.0, 2220.0], [83.1, 2248.0], [83.2, 2267.0], [83.3, 2275.0], [83.4, 2278.0], [83.5, 2280.0], [83.6, 2289.0], [83.7, 2298.0], [83.8, 2310.0], [83.9, 2323.0], [84.0, 2345.0], [84.1, 2366.0], [84.2, 2394.0], [84.3, 2402.0], [84.4, 2435.0], [84.5, 2436.0], [84.6, 2487.0], [84.7, 2516.0], [84.8, 2518.0], [84.9, 2521.0], [85.0, 2522.0], [85.1, 2527.0], [85.2, 2544.0], [85.3, 2580.0], [85.4, 2587.0], [85.5, 2591.0], [85.6, 2605.0], [85.7, 2608.0], [85.8, 2618.0], [85.9, 2684.0], [86.0, 2684.0], [86.1, 2688.0], [86.2, 2716.0], [86.3, 2752.0], [86.4, 2771.0], [86.5, 2773.0], [86.6, 2786.0], [86.7, 2798.0], [86.8, 2799.0], [86.9, 2801.0], [87.0, 2809.0], [87.1, 2833.0], [87.2, 2842.0], [87.3, 2850.0], [87.4, 2868.0], [87.5, 2875.0], [87.6, 2891.0], [87.7, 2906.0], [87.8, 2917.0], [87.9, 2945.0], [88.0, 2957.0], [88.1, 2984.0], [88.2, 2989.0], [88.3, 2992.0], [88.4, 3018.0], [88.5, 3061.0], [88.6, 3078.0], [88.7, 3093.0], [88.8, 3100.0], [88.9, 3118.0], [89.0, 3118.0], [89.1, 3122.0], [89.2, 3134.0], [89.3, 3157.0], [89.4, 3186.0], [89.5, 3194.0], [89.6, 3216.0], [89.7, 3228.0], [89.8, 3241.0], [89.9, 3258.0], [90.0, 3260.0], [90.1, 3281.0], [90.2, 3302.0], [90.3, 3375.0], [90.4, 3390.0], [90.5, 3393.0], [90.6, 3467.0], [90.7, 3473.0], [90.8, 3477.0], [90.9, 3542.0], [91.0, 3542.0], [91.1, 3548.0], [91.2, 3571.0], [91.3, 3583.0], [91.4, 3588.0], [91.5, 3589.0], [91.6, 3617.0], [91.7, 3632.0], [91.8, 3664.0], [91.9, 3694.0], [92.0, 3700.0], [92.1, 3706.0], [92.2, 3760.0], [92.3, 3762.0], [92.4, 3772.0], [92.5, 3777.0], [92.6, 3803.0], [92.7, 3809.0], [92.8, 3824.0], [92.9, 3878.0], [93.0, 3881.0], [93.1, 3916.0], [93.2, 3928.0], [93.3, 3958.0], [93.4, 4025.0], [93.5, 4029.0], [93.6, 4065.0], [93.7, 4083.0], [93.8, 4098.0], [93.9, 4113.0], [94.0, 4120.0], [94.1, 4146.0], [94.2, 4162.0], [94.3, 4208.0], [94.4, 4237.0], [94.5, 4259.0], [94.6, 4297.0], [94.7, 4308.0], [94.8, 4322.0], [94.9, 4382.0], [95.0, 4399.0], [95.1, 4414.0], [95.2, 4426.0], [95.3, 4468.0], [95.4, 4495.0], [95.5, 4512.0], [95.6, 4625.0], [95.7, 4705.0], [95.8, 4792.0], [95.9, 4880.0], [96.0, 4891.0], [96.1, 4913.0], [96.2, 4923.0], [96.3, 5009.0], [96.4, 5121.0], [96.5, 5123.0], [96.6, 5140.0], [96.7, 5148.0], [96.8, 5229.0], [96.9, 5277.0], [97.0, 5346.0], [97.1, 5369.0], [97.2, 5396.0], [97.3, 5428.0], [97.4, 5462.0], [97.5, 5495.0], [97.6, 5598.0], [97.7, 5708.0], [97.8, 5809.0], [97.9, 5821.0], [98.0, 5844.0], [98.1, 6022.0], [98.2, 6184.0], [98.3, 6433.0], [98.4, 6509.0], [98.5, 6604.0], [98.6, 6700.0], [98.7, 6833.0], [98.8, 6980.0], [98.9, 7323.0], [99.0, 7401.0], [99.1, 7739.0], [99.2, 7895.0], [99.3, 8311.0], [99.4, 8962.0], [99.5, 9024.0], [99.6, 9201.0], [99.7, 9360.0], [99.8, 10107.0], [99.9, 11660.0], [100.0, 11747.0]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}], "supportsControllersDiscrimination": true, "maxX": 100.0, "title": "Response Time Percentiles"}},
getOptions: function() {
return {
series: {
points: { show: false }
},
legend: {
noColumns: 2,
show: true,
container: '#legendResponseTimePercentiles'
},
xaxis: {
tickDecimals: 1,
axisLabel: "Percentiles",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Percentile value in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s : %x.2 percentile was %y ms"
},
selection: { mode: "xy" },
};
},
createGraph: function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesResponseTimePercentiles"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotResponseTimesPercentiles"), dataset, options);
// setup overview
$.plot($("#overviewResponseTimesPercentiles"), dataset, prepareOverviewOptions(options));
}
};
/**
* @param elementId Id of element where we display message
*/
function setEmptyGraph(elementId) {
$(function() {
$(elementId).text("No graph series with filter="+seriesFilter);
});
}
// Response times percentiles
function refreshResponseTimePercentiles() {
var infos = responseTimePercentilesInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyResponseTimePercentiles");
return;
}
if (isGraph($("#flotResponseTimesPercentiles"))){
infos.createGraph();
} else {
var choiceContainer = $("#choicesResponseTimePercentiles");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotResponseTimesPercentiles", "#overviewResponseTimesPercentiles");
$('#bodyResponseTimePercentiles .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
}
var responseTimeDistributionInfos = {
data: {"result": {"minY": 1.0, "minX": 0.0, "maxY": 613.0, "series": [{"data": [[0.0, 613.0], [600.0, 70.0], [700.0, 116.0], [800.0, 86.0], [900.0, 99.0], [1000.0, 70.0], [1100.0, 44.0], [1200.0, 27.0], [1300.0, 16.0], [1400.0, 10.0], [1500.0, 5.0], [100.0, 156.0], [1600.0, 4.0], [1700.0, 1.0], [1800.0, 2.0], [1900.0, 3.0], [2000.0, 3.0], [2100.0, 1.0], [2200.0, 5.0], [2400.0, 6.0], [2500.0, 2.0], [2600.0, 6.0], [2800.0, 3.0], [2700.0, 5.0], [3000.0, 5.0], [3100.0, 3.0], [200.0, 68.0], [3200.0, 1.0], [3400.0, 2.0], [3500.0, 1.0], [3700.0, 1.0], [4200.0, 1.0], [4100.0, 1.0], [300.0, 110.0], [400.0, 157.0], [500.0, 97.0]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[0.0, 297.0], [600.0, 76.0], [700.0, 108.0], [800.0, 92.0], [900.0, 96.0], [1000.0, 82.0], [1100.0, 58.0], [1200.0, 46.0], [1300.0, 16.0], [1400.0, 19.0], [1500.0, 29.0], [1600.0, 21.0], [1700.0, 20.0], [1800.0, 18.0], [1900.0, 23.0], [2000.0, 21.0], [2100.0, 23.0], [2300.0, 12.0], [2200.0, 18.0], [2400.0, 11.0], [2500.0, 10.0], [2600.0, 15.0], [2700.0, 14.0], [2800.0, 13.0], [2900.0, 4.0], [3000.0, 5.0], [3100.0, 7.0], [3200.0, 9.0], [3300.0, 4.0], [3400.0, 6.0], [3500.0, 6.0], [3600.0, 8.0], [3700.0, 3.0], [3800.0, 8.0], [4000.0, 4.0], [4100.0, 3.0], [4200.0, 1.0], [4300.0, 1.0], [4400.0, 5.0], [4700.0, 1.0], [4800.0, 2.0], [4900.0, 2.0], [5200.0, 1.0], [5500.0, 4.0], [5400.0, 1.0], [5900.0, 1.0], [100.0, 125.0], [200.0, 96.0], [300.0, 78.0], [400.0, 139.0], [500.0, 138.0]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[0.0, 174.0], [100.0, 81.0], [200.0, 140.0], [300.0, 67.0], [400.0, 91.0], [500.0, 165.0], [600.0, 94.0], [700.0, 74.0], [800.0, 96.0], [900.0, 85.0], [1000.0, 89.0], [1100.0, 69.0], [1200.0, 42.0], [1300.0, 37.0], [1400.0, 20.0], [1500.0, 32.0], [1600.0, 11.0], [1700.0, 19.0], [1800.0, 11.0], [1900.0, 15.0], [2000.0, 16.0], [2100.0, 22.0], [2300.0, 11.0], [2200.0, 15.0], [2400.0, 8.0], [2500.0, 5.0], [2600.0, 9.0], [2800.0, 9.0], [2700.0, 8.0], [2900.0, 4.0], [3000.0, 6.0], [3100.0, 8.0], [3200.0, 7.0], [3300.0, 6.0], [3400.0, 5.0], [3500.0, 2.0], [3700.0, 3.0], [3600.0, 3.0], [3800.0, 6.0], [3900.0, 2.0], [4000.0, 6.0], [4100.0, 3.0], [4200.0, 2.0], [4400.0, 3.0], [4600.0, 2.0], [4500.0, 2.0], [4700.0, 2.0], [4800.0, 4.0], [4900.0, 3.0], [5000.0, 4.0], [5100.0, 1.0], [5300.0, 1.0], [5200.0, 1.0], [5600.0, 2.0], [5500.0, 3.0], [5700.0, 1.0], [5800.0, 1.0], [6000.0, 1.0], [5900.0, 2.0], [6100.0, 1.0], [6800.0, 2.0], [7600.0, 1.0], [7700.0, 1.0], [8200.0, 1.0], [8400.0, 1.0], [8500.0, 1.0], [8900.0, 2.0], [8800.0, 2.0], [9500.0, 1.0], [9400.0, 1.0], [10300.0, 1.0], [11700.0, 3.0], [11600.0, 3.0], [12000.0, 3.0], [11900.0, 6.0], [11800.0, 8.0], [12100.0, 1.0], [12300.0, 1.0], [12600.0, 4.0], [12500.0, 3.0], [12400.0, 1.0], [12700.0, 1.0], [12800.0, 1.0], [12900.0, 2.0], [13000.0, 2.0], [13200.0, 1.0], [13400.0, 4.0], [13500.0, 2.0], [13600.0, 4.0], [14200.0, 1.0], [14300.0, 3.0], [13900.0, 1.0], [14800.0, 2.0], [14700.0, 1.0], [14500.0, 2.0], [14900.0, 1.0], [15700.0, 3.0], [15800.0, 1.0], [15400.0, 1.0], [15900.0, 2.0], [16300.0, 1.0], [16500.0, 2.0], [16400.0, 3.0], [17100.0, 1.0], [16600.0, 1.0], [17400.0, 1.0], [17900.0, 1.0], [17500.0, 1.0], [17600.0, 1.0], [19100.0, 2.0], [18500.0, 2.0], [19200.0, 1.0], [20400.0, 3.0], [20300.0, 6.0], [20100.0, 5.0], [20200.0, 7.0], [20000.0, 3.0], [21400.0, 1.0], [21100.0, 4.0], [21000.0, 5.0], [20900.0, 3.0], [20800.0, 3.0], [21500.0, 3.0], [21200.0, 2.0], [20500.0, 4.0], [20600.0, 5.0], [20700.0, 2.0], [21300.0, 1.0], [22400.0, 4.0], [21700.0, 7.0], [22200.0, 3.0], [22300.0, 2.0], [22100.0, 4.0], [21800.0, 2.0], [22000.0, 1.0], [21600.0, 1.0], [22800.0, 2.0], [22600.0, 1.0], [23000.0, 1.0], [24200.0, 1.0], [23800.0, 1.0], [25300.0, 1.0], [26600.0, 1.0]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[0.0, 233.0], [600.0, 74.0], [700.0, 86.0], [800.0, 95.0], [900.0, 94.0], [1000.0, 91.0], [1100.0, 60.0], [1200.0, 47.0], [1300.0, 23.0], [1400.0, 24.0], [1500.0, 15.0], [1600.0, 11.0], [1700.0, 21.0], [1800.0, 16.0], [1900.0, 24.0], [2000.0, 14.0], [2100.0, 19.0], [2200.0, 15.0], [2300.0, 10.0], [2400.0, 6.0], [2500.0, 17.0], [2600.0, 10.0], [2800.0, 14.0], [2700.0, 14.0], [2900.0, 12.0], [3000.0, 8.0], [3100.0, 13.0], [3300.0, 7.0], [3200.0, 12.0], [3400.0, 5.0], [3500.0, 12.0], [3600.0, 8.0], [3700.0, 11.0], [3800.0, 9.0], [3900.0, 6.0], [4000.0, 8.0], [4300.0, 7.0], [4200.0, 6.0], [4100.0, 8.0], [4400.0, 8.0], [4500.0, 2.0], [4600.0, 2.0], [4800.0, 4.0], [4700.0, 3.0], [5000.0, 2.0], [5100.0, 6.0], [4900.0, 4.0], [5200.0, 4.0], [5300.0, 5.0], [5400.0, 5.0], [5500.0, 2.0], [5600.0, 1.0], [5800.0, 4.0], [5700.0, 2.0], [5900.0, 1.0], [6100.0, 1.0], [6000.0, 2.0], [6200.0, 1.0], [6600.0, 2.0], [6500.0, 1.0], [6400.0, 2.0], [6800.0, 2.0], [6700.0, 2.0], [6900.0, 1.0], [7000.0, 1.0], [7400.0, 2.0], [7300.0, 1.0], [7800.0, 2.0], [7700.0, 1.0], [8100.0, 1.0], [8300.0, 2.0], [8900.0, 1.0], [9000.0, 1.0], [9200.0, 1.0], [9100.0, 1.0], [9300.0, 2.0], [9400.0, 1.0], [10100.0, 1.0], [10400.0, 1.0], [11700.0, 1.0], [11600.0, 1.0], [100.0, 120.0], [200.0, 94.0], [300.0, 68.0], [400.0, 126.0], [500.0, 137.0]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 100, "maxX": 26600.0, "title": "Response Time Distribution"}},
getOptions: function() {
var granularity = this.data.result.granularity;
return {
legend: {
noColumns: 2,
show: true,
container: '#legendResponseTimeDistribution'
},
xaxis:{
axisLabel: "Response times in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of responses",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
bars : {
show: true,
barWidth: this.data.result.granularity
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: function(label, xval, yval, flotItem){
return yval + " responses for " + label + " were between " + xval + " and " + (xval + granularity) + " ms";
}
}
};
},
createGraph: function() {
var data = this.data;
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotResponseTimeDistribution"), prepareData(data.result.series, $("#choicesResponseTimeDistribution")), options);
}
};
// Response time distribution
function refreshResponseTimeDistribution() {
var infos = responseTimeDistributionInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyResponseTimeDistribution");
return;
}
if (isGraph($("#flotResponseTimeDistribution"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesResponseTimeDistribution");
createLegend(choiceContainer, infos);
infos.createGraph();
$('#footerResponseTimeDistribution .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var syntheticResponseTimeDistributionInfos = {
data: {"result": {"minY": 50.0, "minX": 0.0, "ticks": [[0, "Requests having \nresponse time <= 500ms"], [1, "Requests having \nresponse time > 500ms and <= 1,500ms"], [2, "Requests having \nresponse time > 1,500ms"], [3, "Requests in error"]], "maxY": 3012.0, "series": [{"data": [[0.0, 3012.0]], "color": "#9ACD32", "isOverall": false, "label": "Requests having \nresponse time <= 500ms", "isController": false}, {"data": [[1.0, 2843.0]], "color": "yellow", "isOverall": false, "label": "Requests having \nresponse time > 500ms and <= 1,500ms", "isController": false}, {"data": [[2.0, 1295.0]], "color": "orange", "isOverall": false, "label": "Requests having \nresponse time > 1,500ms", "isController": false}, {"data": [[3.0, 50.0]], "color": "#FF6347", "isOverall": false, "label": "Requests in error", "isController": false}], "supportsControllersDiscrimination": false, "maxX": 3.0, "title": "Synthetic Response Times Distribution"}},
getOptions: function() {
return {
legend: {
noColumns: 2,
show: true,
container: '#legendSyntheticResponseTimeDistribution'
},
xaxis:{
axisLabel: "Response times ranges",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
tickLength:0,
min:-0.5,
max:3.5
},
yaxis: {
axisLabel: "Number of responses",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
bars : {
show: true,
align: "center",
barWidth: 0.25,
fill:.75
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: function(label, xval, yval, flotItem){
return yval + " " + label;
}
}
};
},
createGraph: function() {
var data = this.data;
var options = this.getOptions();
prepareOptions(options, data);
options.xaxis.ticks = data.result.ticks;
$.plot($("#flotSyntheticResponseTimeDistribution"), prepareData(data.result.series, $("#choicesSyntheticResponseTimeDistribution")), options);
}
};
// Response time distribution
function refreshSyntheticResponseTimeDistribution() {
var infos = syntheticResponseTimeDistributionInfos;
prepareSeries(infos.data, true);
if (isGraph($("#flotSyntheticResponseTimeDistribution"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesSyntheticResponseTimeDistribution");
createLegend(choiceContainer, infos);
infos.createGraph();
$('#footerSyntheticResponseTimeDistribution .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var activeThreadsOverTimeInfos = {
data: {"result": {"minY": 22.2259786476868, "minX": 1.64670336E12, "maxY": 73.03512484130353, "series": [{"data": [[1.64670342E12, 73.03512484130353], [1.64670336E12, 36.98305722891572], [1.64670354E12, 22.2259786476868], [1.64670348E12, 56.295861642989564]], "isOverall": false, "label": "API_gateway tests", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 60000, "maxX": 1.64670354E12, "title": "Active Threads Over Time"}},
getOptions: function() {
return {
series: {
stack: true,
lines: {
show: true,
fill: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of active threads",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
legend: {
noColumns: 6,
show: true,
container: '#legendActiveThreadsOverTime'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
selection: {
mode: 'xy'
},
tooltip: true,
tooltipOpts: {
content: "%s : At %x there were %y active threads"
}
};
},
createGraph: function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesActiveThreadsOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotActiveThreadsOverTime"), dataset, options);
// setup overview
$.plot($("#overviewActiveThreadsOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Active Threads Over Time
function refreshActiveThreadsOverTime(fixTimestamps) {
var infos = activeThreadsOverTimeInfos;
prepareSeries(infos.data);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotActiveThreadsOverTime"))) {
infos.createGraph();
}else{
var choiceContainer = $("#choicesActiveThreadsOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotActiveThreadsOverTime", "#overviewActiveThreadsOverTime");
$('#footerActiveThreadsOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var timeVsThreadsInfos = {
data: {"result": {"minY": 7.6, "minX": 1.0, "maxY": 15147.552380952378, "series": [{"data": [[2.0, 8.374999999999998], [3.0, 12.6], [4.0, 17.999999999999996], [5.0, 45.375], [6.0, 120.0909090909091], [7.0, 47.1111111111111], [8.0, 57.99999999999999], [9.0, 98.83333333333334], [10.0, 80.08333333333333], [11.0, 126.50000000000001], [12.0, 62.73333333333333], [13.0, 280.55555555555554], [14.0, 96.33333333333333], [15.0, 143.60000000000002], [16.0, 127.19999999999999], [17.0, 198.60000000000002], [18.0, 227.5], [19.0, 384.66666666666663], [20.0, 113.38888888888889], [21.0, 119.56521739130436], [22.0, 169.39130434782606], [23.0, 193.88235294117646], [24.0, 148.48000000000002], [25.0, 342.0], [26.0, 295.3], [27.0, 460.49999999999994], [28.0, 291.64705882352933], [29.0, 480.25], [30.0, 308.2857142857143], [31.0, 423.9], [32.0, 371.2857142857143], [33.0, 341.8], [34.0, 262.4583333333333], [35.0, 279.31578947368416], [36.0, 371.44444444444446], [37.0, 484.625], [38.0, 340.0], [39.0, 264.16], [40.0, 361.9230769230769], [41.0, 185.80645161290326], [42.0, 288.66666666666663], [43.0, 442.89473684210526], [44.0, 482.75], [45.0, 291.5454545454546], [46.0, 455.33333333333337], [47.0, 314.27586206896547], [48.0, 466.6363636363636], [49.0, 520.2], [50.0, 387.0], [51.0, 449.44444444444446], [52.0, 500.06666666666666], [53.0, 461.6904761904763], [54.0, 492.25], [55.0, 226.46875000000003], [56.0, 728.1538461538462], [57.0, 384.05263157894734], [58.0, 553.1875], [59.0, 829.2857142857144], [60.0, 575.4444444444445], [61.0, 559.9166666666666], [62.0, 578.5714285714287], [63.0, 543.9166666666666], [64.0, 725.2586206896553], [65.0, 407.48275862068965], [66.0, 253.18181818181824], [67.0, 802.5641025641027], [68.0, 839.109090909091], [69.0, 699.9230769230765], [70.0, 982.9200000000002], [71.0, 548.7538461538463], [72.0, 634.9545454545456], [73.0, 328.5409836065571], [74.0, 460.26666666666665], [75.0, 160.70212765957444], [76.0, 724.8399999999999], [77.0, 1008.6739130434783], [78.0, 1140.3333333333333], [79.0, 1043.6562500000005], [1.0, 7.6]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[52.158888888888946, 478.07277777777716]], "isOverall": false, "label": "getAllInfo-Aggregated", "isController": false}, {"data": [[2.0, 20.555555555555557], [3.0, 29.75], [4.0, 67.0], [5.0, 82.375], [6.0, 88.375], [7.0, 241.6], [8.0, 100.5], [9.0, 179.0], [10.0, 189.22222222222223], [11.0, 191.28571428571428], [12.0, 327.91666666666663], [13.0, 186.6], [14.0, 391.41666666666663], [15.0, 365.2352941176471], [16.0, 167.36363636363637], [17.0, 629.875], [18.0, 238.14285714285717], [19.0, 440.8888888888889], [20.0, 492.5199999999999], [21.0, 440.35], [22.0, 278.3333333333333], [23.0, 593.9444444444445], [24.0, 363.6363636363636], [25.0, 553.0], [26.0, 471.61538461538464], [27.0, 713.0909090909091], [28.0, 600.5], [29.0, 498.8666666666666], [30.0, 336.5], [31.0, 699.3333333333334], [32.0, 417.57142857142856], [33.0, 818.7058823529412], [34.0, 555.0476190476189], [35.0, 312.20000000000005], [36.0, 542.8461538461538], [37.0, 839.125], [38.0, 562.5454545454545], [39.0, 1081.030303030303], [40.0, 609.7692307692307], [41.0, 354.37254901960785], [42.0, 456.5], [43.0, 473.27272727272725], [44.0, 471.1818181818182], [45.0, 422.0625], [46.0, 477.91666666666663], [47.0, 574.2962962962963], [48.0, 621.7500000000001], [49.0, 708.2499999999999], [50.0, 785.842105263158], [51.0, 686.2222222222222], [52.0, 1075.05], [53.0, 756.1666666666666], [54.0, 605.2727272727273], [55.0, 1329.2499999999998], [56.0, 925.7272727272727], [57.0, 1014.1470588235292], [58.0, 854.8666666666667], [59.0, 1603.2941176470592], [60.0, 1098.4615384615386], [61.0, 1028.125], [62.0, 1077.2380952380954], [63.0, 1012.0833333333333], [64.0, 1787.6296296296296], [65.0, 1869.5208333333335], [66.0, 1122.5151515151517], [67.0, 1115.5416666666665], [68.0, 1642.0476190476186], [69.0, 1243.923076923077], [70.0, 598.5714285714286], [71.0, 1438.629213483146], [72.0, 1216.5178571428573], [73.0, 1580.6567164179105], [74.0, 883.3846153846154], [75.0, 306.64], [76.0, 774.0], [77.0, 1067.066666666667], [78.0, 1148.285714285714], [79.0, 1098.0370370370374], [1.0, 13.75]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[52.03777777777769, 905.4011111111115]], "isOverall": false, "label": "getAllStatus-Aggregated", "isController": false}, {"data": [[2.0, 116.33333333333334], [3.0, 129.6], [4.0, 141.57142857142858], [5.0, 160.875], [6.0, 185.5], [7.0, 139.125], [8.0, 107.0], [9.0, 243.37499999999997], [10.0, 351.45454545454544], [11.0, 209.42857142857142], [12.0, 181.15384615384613], [13.0, 263.0], [14.0, 196.6], [15.0, 443.43749999999994], [16.0, 194.85714285714283], [17.0, 431.19999999999993], [18.0, 199.95833333333331], [19.0, 273.3], [20.0, 478.05263157894734], [21.0, 394.77272727272737], [22.0, 253.43478260869566], [23.0, 459.78571428571433], [24.0, 489.1923076923075], [25.0, 540.0833333333333], [26.0, 1102.857142857143], [27.0, 1192.875], [28.0, 793.8333333333334], [29.0, 1117.7857142857142], [30.0, 641.2], [31.0, 497.42857142857144], [32.0, 478.875], [33.0, 833.1111111111111], [34.0, 1185.4761904761904], [35.0, 721.95], [36.0, 426.5], [37.0, 559.6249999999999], [38.0, 610.9], [39.0, 804.8800000000001], [40.0, 593.4285714285713], [41.0, 11201.999999999998], [42.0, 424.7692307692308], [43.0, 529.0952380952382], [44.0, 517.9], [45.0, 391.1764705882353], [46.0, 480.9230769230769], [47.0, 537.3076923076923], [48.0, 786.8888888888888], [49.0, 662.9230769230769], [50.0, 569.5714285714287], [51.0, 646.6923076923077], [52.0, 636.4444444444445], [53.0, 649.1282051282052], [54.0, 769.8571428571429], [55.0, 1073.545454545454], [56.0, 999.0], [57.0, 1315.742857142857], [58.0, 1032.0416666666667], [59.0, 1894.6279069767445], [60.0, 1328.5], [61.0, 1140.230769230769], [62.0, 1210.0666666666666], [63.0, 1361.909090909091], [64.0, 1875.428571428571], [65.0, 2049.0], [66.0, 8903.108108108107], [67.0, 10368.357142857143], [68.0, 2204.3939393939395], [69.0, 1207.4729729729725], [70.0, 609.9999999999999], [71.0, 1491.8082191780818], [72.0, 1557.333333333333], [73.0, 1404.813559322034], [74.0, 901.1538461538461], [75.0, 15147.552380952378], [76.0, 3166.272727272727], [77.0, 1080.1000000000001], [78.0, 1206.1818181818185], [79.0, 1171.2068965517242], [1.0, 1410.5]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[51.94055555555562, 2660.5549999999994]], "isOverall": false, "label": "postNewRequest-Aggregated", "isController": false}, {"data": [[2.0, 18.500000000000004], [3.0, 363.16666666666663], [4.0, 58.666666666666664], [5.0, 565.0000000000001], [6.0, 546.4444444444445], [7.0, 834.0], [8.0, 229.22222222222223], [9.0, 846.2857142857143], [10.0, 401.40000000000003], [11.0, 404.625], [12.0, 777.1428571428572], [13.0, 451.44444444444446], [14.0, 1028.375], [15.0, 494.43750000000006], [16.0, 391.81818181818176], [17.0, 389.44444444444446], [18.0, 792.7619047619048], [19.0, 511.49999999999994], [20.0, 1057.28], [21.0, 1188.571428571429], [22.0, 238.23809523809518], [23.0, 654.6666666666666], [24.0, 1268.2608695652175], [25.0, 791.25], [26.0, 1592.375], [27.0, 1993.9285714285713], [28.0, 1588.9999999999998], [29.0, 1488.6923076923076], [30.0, 309.1], [31.0, 406.2857142857143], [32.0, 821.5], [33.0, 1395.1333333333334], [34.0, 1370.8260869565215], [35.0, 1278.8095238095236], [36.0, 601.0], [37.0, 737.8333333333334], [38.0, 1195.0], [39.0, 814.2857142857143], [40.0, 629.2307692307693], [41.0, 371.26666666666677], [42.0, 568.1111111111111], [43.0, 506.89473684210526], [44.0, 528.3333333333333], [45.0, 1002.4285714285713], [46.0, 507.00000000000006], [47.0, 949.6296296296298], [48.0, 1478.125], [49.0, 757.7272727272727], [50.0, 635.2142857142856], [51.0, 856.8571428571429], [52.0, 942.2857142857142], [53.0, 945.8780487804877], [54.0, 461.54545454545456], [55.0, 2436.0781249999995], [56.0, 1335.9999999999998], [57.0, 1647.7368421052631], [58.0, 749.0588235294118], [59.0, 2286.118644067797], [60.0, 1048.5], [61.0, 975.8749999999999], [62.0, 1558.7058823529412], [63.0, 1296.6666666666667], [64.0, 2412.0333333333324], [65.0, 2584.275862068967], [66.0, 964.75], [67.0, 964.5925925925927], [68.0, 1837.5806451612902], [69.0, 1852.4761904761904], [70.0, 1126.9473684210525], [71.0, 1782.8750000000002], [72.0, 1614.4285714285713], [73.0, 1737.1746031746036], [74.0, 786.0000000000001], [75.0, 351.4399999999999], [76.0, 805.6551724137931], [77.0, 1054.8791208791208], [78.0, 1190.782608695652], [79.0, 1109.7600000000002], [1.0, 429.6]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}, {"data": [[51.886666666666756, 1250.181666666669]], "isOverall": false, "label": "getDataOfRequestID-Aggregated", "isController": false}], "supportsControllersDiscrimination": true, "maxX": 79.0, "title": "Time VS Threads"}},
getOptions: function() {
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
axisLabel: "Number of active threads",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response times in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
legend: { noColumns: 2,show: true, container: '#legendTimeVsThreads' },
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to work
},
tooltip: true,
tooltipOpts: {
content: "%s: At %x.2 active threads, Average response time was %y.2 ms"
}
};
},
createGraph: function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesTimeVsThreads"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotTimesVsThreads"), dataset, options);
// setup overview
$.plot($("#overviewTimesVsThreads"), dataset, prepareOverviewOptions(options));
}
};
// Time vs threads
function refreshTimeVsThreads(){
var infos = timeVsThreadsInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyTimeVsThreads");
return;
}
if(isGraph($("#flotTimesVsThreads"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesTimeVsThreads");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotTimesVsThreads", "#overviewTimesVsThreads");
$('#footerTimeVsThreads .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var bytesThroughputOverTimeInfos = {
data : {"result": {"minY": 2226.35, "minX": 1.64670336E12, "maxY": 7314275.266666667, "series": [{"data": [[1.64670342E12, 3484493.8666666667], [1.64670336E12, 84147.7], [1.64670354E12, 5364223.9], [1.64670348E12, 7314275.266666667]], "isOverall": false, "label": "Bytes received per second", "isController": false}, {"data": [[1.64670342E12, 9202.0], [1.64670336E12, 10393.166666666666], [1.64670354E12, 2226.35], [1.64670348E12, 6438.483333333334]], "isOverall": false, "label": "Bytes sent per second", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 60000, "maxX": 1.64670354E12, "title": "Bytes Throughput Over Time"}},
getOptions : function(){
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity) ,
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Bytes / sec",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendBytesThroughputOverTime'
},
selection: {
mode: "xy"
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s at %x was %y"
}
};
},
createGraph : function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesBytesThroughputOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotBytesThroughputOverTime"), dataset, options);
// setup overview
$.plot($("#overviewBytesThroughputOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Bytes throughput Over Time
function refreshBytesThroughputOverTime(fixTimestamps) {
var infos = bytesThroughputOverTimeInfos;
prepareSeries(infos.data);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotBytesThroughputOverTime"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesBytesThroughputOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotBytesThroughputOverTime", "#overviewBytesThroughputOverTime");
$('#footerBytesThroughputOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
}
var responseTimesOverTimeInfos = {
data: {"result": {"minY": 195.48799999999991, "minX": 1.64670336E12, "maxY": 4875.391608391609, "series": [{"data": [[1.64670342E12, 700.3556280587286], [1.64670336E12, 405.0086705202314], [1.64670354E12, 195.48799999999991], [1.64670348E12, 341.92162162162174]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[1.64670342E12, 1173.9760273972609], [1.64670336E12, 447.91590214067315], [1.64670354E12, 736.8142857142856], [1.64670348E12, 1298.6469194312801]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[1.64670342E12, 3950.9416961130787], [1.64670336E12, 493.654761904762], [1.64670354E12, 973.5864661654136], [1.64670348E12, 4875.391608391609]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[1.64670342E12, 1397.3399999999992], [1.64670336E12, 445.2836990595612], [1.64670354E12, 2034.1280487804886], [1.64670348E12, 1995.5653266331665]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 60000, "maxX": 1.64670354E12, "title": "Response Time Over Time"}},
getOptions: function(){
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response time in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendResponseTimesOverTime'
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average response time was %y ms"
}
};
},
createGraph: function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesResponseTimesOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotResponseTimesOverTime"), dataset, options);
// setup overview
$.plot($("#overviewResponseTimesOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Response Times Over Time
function refreshResponseTimeOverTime(fixTimestamps) {
var infos = responseTimesOverTimeInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyResponseTimeOverTime");
return;
}
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotResponseTimesOverTime"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesResponseTimesOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotResponseTimesOverTime", "#overviewResponseTimesOverTime");
$('#footerResponseTimesOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var latenciesOverTimeInfos = {
data: {"result": {"minY": 195.376, "minX": 1.64670336E12, "maxY": 4875.312354312353, "series": [{"data": [[1.64670342E12, 700.2577487765084], [1.64670336E12, 404.9277456647399], [1.64670354E12, 195.376], [1.64670348E12, 341.8270270270274]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[1.64670342E12, 1173.9143835616424], [1.64670336E12, 447.8639143730889], [1.64670354E12, 736.6999999999999], [1.64670348E12, 1298.5876777251171]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[1.64670342E12, 3950.8604240282693], [1.64670336E12, 493.5699404761905], [1.64670354E12, 973.503759398496], [1.64670348E12, 4875.312354312353]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[1.64670342E12, 1395.9966666666662], [1.64670336E12, 445.1959247648903], [1.64670354E12, 2030.439024390243], [1.64670348E12, 1992.5226130653261]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 60000, "maxX": 1.64670354E12, "title": "Latencies Over Time"}},
getOptions: function() {
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average response latencies in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendLatenciesOverTime'
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average latency was %y ms"
}
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesLatenciesOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotLatenciesOverTime"), dataset, options);
// setup overview
$.plot($("#overviewLatenciesOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Latencies Over Time
function refreshLatenciesOverTime(fixTimestamps) {
var infos = latenciesOverTimeInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyLatenciesOverTime");
return;
}
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotLatenciesOverTime"))) {
infos.createGraph();
}else {
var choiceContainer = $("#choicesLatenciesOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotLatenciesOverTime", "#overviewLatenciesOverTime");
$('#footerLatenciesOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var connectTimeOverTimeInfos = {
data: {"result": {"minY": 0.2285714285714286, "minX": 1.64670336E12, "maxY": 0.5291375291375292, "series": [{"data": [[1.64670342E12, 0.39967373572593834], [1.64670336E12, 0.4566473988439307], [1.64670354E12, 0.3200000000000002], [1.64670348E12, 0.3837837837837837]], "isOverall": false, "label": "getAllInfo", "isController": false}, {"data": [[1.64670342E12, 0.3510273972602742], [1.64670336E12, 0.4541284403669726], [1.64670354E12, 0.2285714285714286], [1.64670348E12, 0.3436018957345968]], "isOverall": false, "label": "getAllStatus", "isController": false}, {"data": [[1.64670342E12, 0.4257950530035337], [1.64670336E12, 0.4702380952380954], [1.64670354E12, 0.31578947368421056], [1.64670348E12, 0.5291375291375292]], "isOverall": false, "label": "postNewRequest", "isController": false}, {"data": [[1.64670342E12, 0.4466666666666669], [1.64670336E12, 0.4482758620689656], [1.64670354E12, 0.2987804878048781], [1.64670348E12, 0.36683417085427156]], "isOverall": false, "label": "getDataOfRequestID", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 60000, "maxX": 1.64670354E12, "title": "Connect Time Over Time"}},
getOptions: function() {
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getConnectTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Average Connect Time in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendConnectTimeOverTime'
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Average connect time was %y ms"
}
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesConnectTimeOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotConnectTimeOverTime"), dataset, options);
// setup overview
$.plot($("#overviewConnectTimeOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Connect Time Over Time
function refreshConnectTimeOverTime(fixTimestamps) {
var infos = connectTimeOverTimeInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyConnectTimeOverTime");
return;
}
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotConnectTimeOverTime"))) {
infos.createGraph();
}else {
var choiceContainer = $("#choicesConnectTimeOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotConnectTimeOverTime", "#overviewConnectTimeOverTime");
$('#footerConnectTimeOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var responseTimePercentilesOverTimeInfos = {
data: {"result": {"minY": 1.0, "minX": 1.64670336E12, "maxY": 26647.0, "series": [{"data": [[1.64670342E12, 22423.0], [1.64670336E12, 988.0], [1.64670354E12, 11660.0], [1.64670348E12, 26647.0]], "isOverall": false, "label": "Max", "isController": false}, {"data": [[1.64670342E12, 2985.2], [1.64670336E12, 789.3000000000002], [1.64670354E12, 3211.5], [1.64670348E12, 5143.200000000001]], "isOverall": false, "label": "90th percentile", "isController": false}, {"data": [[1.64670342E12, 21517.440000000002], [1.64670336E12, 894.0], [1.64670354E12, 7626.159999999984], [1.64670348E12, 20075.659999999996]], "isOverall": false, "label": "99th percentile", "isController": false}, {"data": [[1.64670342E12, 4207.199999999999], [1.64670336E12, 815.0], [1.64670354E12, 4143.099999999999], [1.64670348E12, 12000.799999999996]], "isOverall": false, "label": "95th percentile", "isController": false}, {"data": [[1.64670342E12, 1.0], [1.64670336E12, 2.0], [1.64670354E12, 1.0], [1.64670348E12, 1.0]], "isOverall": false, "label": "Min", "isController": false}, {"data": [[1.64670342E12, 1009.0], [1.64670336E12, 477.0], [1.64670354E12, 470.5], [1.64670348E12, 928.0]], "isOverall": false, "label": "Median", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 60000, "maxX": 1.64670354E12, "title": "Response Time Percentiles Over Time (successful requests only)"}},
getOptions: function() {
return {
series: {
lines: {
show: true,
fill: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Response Time in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendResponseTimePercentilesOverTime'
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s : at %x Response time was %y ms"
}
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesResponseTimePercentilesOverTime"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotResponseTimePercentilesOverTime"), dataset, options);
// setup overview
$.plot($("#overviewResponseTimePercentilesOverTime"), dataset, prepareOverviewOptions(options));
}
};
// Response Time Percentiles Over Time
function refreshResponseTimePercentilesOverTime(fixTimestamps) {
var infos = responseTimePercentilesOverTimeInfos;
prepareSeries(infos.data);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotResponseTimePercentilesOverTime"))) {
infos.createGraph();
}else {
var choiceContainer = $("#choicesResponseTimePercentilesOverTime");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotResponseTimePercentilesOverTime", "#overviewResponseTimePercentilesOverTime");
$('#footerResponseTimePercentilesOverTime .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var responseTimeVsRequestInfos = {
data: {"result": {"minY": 7.0, "minX": 3.0, "maxY": 11636.0, "series": [{"data": [[3.0, 16.0], [5.0, 1514.0], [6.0, 299.0], [7.0, 17.0], [8.0, 8.0], [9.0, 22.5], [10.0, 1098.0], [13.0, 142.0], [14.0, 881.0], [15.0, 195.5], [16.0, 3754.5], [17.0, 186.0], [18.0, 1166.0], [19.0, 372.0], [20.0, 814.0], [21.0, 1112.0], [22.0, 642.0], [23.0, 1124.0], [25.0, 23.5], [26.0, 1447.0], [27.0, 1180.5], [28.0, 611.0], [29.0, 998.0], [30.0, 915.0], [33.0, 524.5], [32.0, 25.5], [34.0, 575.5], [36.0, 712.0], [37.0, 1865.0], [39.0, 725.0], [38.0, 1217.0], [40.0, 1307.5], [41.0, 916.0], [42.0, 1198.5], [43.0, 1040.0], [45.0, 1478.5], [44.0, 3045.0], [49.0, 1083.5], [48.0, 921.5], [51.0, 1419.0], [50.0, 670.5], [53.0, 997.5], [54.0, 137.0], [56.0, 168.0], [57.0, 1116.0], [58.0, 20.0], [59.0, 414.5], [61.0, 1186.0], [60.0, 1328.5], [63.0, 1110.5], [62.0, 1212.0], [67.0, 807.0], [66.0, 1002.0], [69.0, 917.5], [71.0, 975.0], [73.0, 94.0], [75.0, 900.0], [74.0, 505.0], [72.0, 814.0], [79.0, 703.0], [77.0, 487.0], [76.0, 525.5], [80.0, 408.0], [82.0, 495.5], [85.0, 680.0], [84.0, 837.0], [86.0, 732.0], [91.0, 180.0], [89.0, 385.5], [93.0, 533.0], [92.0, 508.0], [98.0, 216.5], [99.0, 213.0], [96.0, 532.0], [116.0, 594.0], [129.0, 11636.0], [182.0, 246.0]], "isOverall": false, "label": "Successes", "isController": false}, {"data": [[17.0, 11.0], [36.0, 7.0], [80.0, 45.5], [44.0, 1316.0], [26.0, 8.0], [62.0, 21.0]], "isOverall": false, "label": "Failures", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 1000, "maxX": 182.0, "title": "Response Time Vs Request"}},
getOptions: function() {
return {
series: {
lines: {
show: false
},
points: {
show: true
}
},
xaxis: {
axisLabel: "Global number of requests per second",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Median Response Time in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: '#legendResponseTimeVsRequest'
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to work
},
tooltip: true,
tooltipOpts: {
content: "%s : Median response time at %x req/s was %y ms"
},
colors: ["#9ACD32", "#FF6347"]
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesResponseTimeVsRequest"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotResponseTimeVsRequest"), dataset, options);
// setup overview
$.plot($("#overviewResponseTimeVsRequest"), dataset, prepareOverviewOptions(options));
}
};
// Response Time vs Request
function refreshResponseTimeVsRequest() {
var infos = responseTimeVsRequestInfos;
prepareSeries(infos.data);
if (isGraph($("#flotResponseTimeVsRequest"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesResponseTimeVsRequest");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotResponseTimeVsRequest", "#overviewResponseTimeVsRequest");
$('#footerResponseRimeVsRequest .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var latenciesVsRequestInfos = {
data: {"result": {"minY": 6.0, "minX": 3.0, "maxY": 11636.0, "series": [{"data": [[3.0, 16.0], [5.0, 1514.0], [6.0, 299.0], [7.0, 16.0], [8.0, 8.0], [9.0, 22.5], [10.0, 1098.0], [13.0, 142.0], [14.0, 881.0], [15.0, 195.5], [16.0, 3754.5], [17.0, 185.0], [18.0, 1165.5], [19.0, 372.0], [20.0, 814.0], [21.0, 1112.0], [22.0, 642.0], [23.0, 1124.0], [25.0, 23.5], [26.0, 1447.0], [27.0, 1180.5], [28.0, 611.0], [29.0, 998.0], [30.0, 915.0], [33.0, 524.5], [32.0, 25.5], [34.0, 575.5], [36.0, 712.0], [37.0, 1865.0], [39.0, 725.0], [38.0, 1217.0], [40.0, 1307.5], [41.0, 916.0], [42.0, 1198.5], [43.0, 1040.0], [45.0, 1478.5], [44.0, 3045.0], [49.0, 1083.5], [48.0, 921.5], [51.0, 1419.0], [50.0, 670.5], [53.0, 997.5], [54.0, 136.5], [56.0, 167.5], [57.0, 1116.0], [58.0, 19.5], [59.0, 414.5], [61.0, 1186.0], [60.0, 1328.5], [63.0, 1110.5], [62.0, 1212.0], [67.0, 807.0], [66.0, 1002.0], [69.0, 917.5], [71.0, 975.0], [73.0, 94.0], [75.0, 900.0], [74.0, 505.0], [72.0, 814.0], [79.0, 703.0], [77.0, 487.0], [76.0, 525.5], [80.0, 408.0], [82.0, 495.5], [85.0, 680.0], [84.0, 837.0], [86.0, 732.0], [91.0, 180.0], [89.0, 385.0], [93.0, 533.0], [92.0, 508.0], [98.0, 216.5], [99.0, 213.0], [96.0, 532.0], [116.0, 594.0], [129.0, 11636.0], [182.0, 245.5]], "isOverall": false, "label": "Successes", "isController": false}, {"data": [[17.0, 11.0], [36.0, 6.0], [80.0, 45.0], [44.0, 1316.0], [26.0, 8.0], [62.0, 21.0]], "isOverall": false, "label": "Failures", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 1000, "maxX": 182.0, "title": "Latencies Vs Request"}},
getOptions: function() {
return{
series: {
lines: {
show: false
},
points: {
show: true
}
},
xaxis: {
axisLabel: "Global number of requests per second",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Median Latency in ms",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: { noColumns: 2,show: true, container: '#legendLatencyVsRequest' },
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to work
},
tooltip: true,
tooltipOpts: {
content: "%s : Median Latency time at %x req/s was %y ms"
},
colors: ["#9ACD32", "#FF6347"]
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesLatencyVsRequest"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotLatenciesVsRequest"), dataset, options);
// setup overview
$.plot($("#overviewLatenciesVsRequest"), dataset, prepareOverviewOptions(options));
}
};
// Latencies vs Request
function refreshLatenciesVsRequest() {
var infos = latenciesVsRequestInfos;
prepareSeries(infos.data);
if(isGraph($("#flotLatenciesVsRequest"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesLatencyVsRequest");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotLatenciesVsRequest", "#overviewLatenciesVsRequest");
$('#footerLatenciesVsRequest .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var hitsPerSecondInfos = {
data: {"result": {"minY": 8.716666666666667, "minX": 1.64670336E12, "maxY": 45.416666666666664, "series": [{"data": [[1.64670342E12, 39.35], [1.64670336E12, 45.416666666666664], [1.64670354E12, 8.716666666666667], [1.64670348E12, 26.516666666666666]], "isOverall": false, "label": "hitsPerSecond", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 60000, "maxX": 1.64670354E12, "title": "Hits Per Second"}},
getOptions: function() {
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of hits / sec",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
legend: {
noColumns: 2,
show: true,
container: "#legendHitsPerSecond"
},
selection: {
mode : 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s at %x was %y.2 hits/sec"
}
};
},
createGraph: function createGraph() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesHitsPerSecond"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotHitsPerSecond"), dataset, options);
// setup overview
$.plot($("#overviewHitsPerSecond"), dataset, prepareOverviewOptions(options));
}
};
// Hits per second
function refreshHitsPerSecond(fixTimestamps) {
var infos = hitsPerSecondInfos;
prepareSeries(infos.data);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if (isGraph($("#flotHitsPerSecond"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesHitsPerSecond");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotHitsPerSecond", "#overviewHitsPerSecond");
$('#footerHitsPerSecond .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
}
var codesPerSecondInfos = {
data: {"result": {"minY": 0.26666666666666666, "minX": 1.64670336E12, "maxY": 44.266666666666666, "series": [{"data": [[1.64670342E12, 39.38333333333333], [1.64670336E12, 44.266666666666666], [1.64670354E12, 9.1], [1.64670348E12, 26.416666666666668]], "isOverall": false, "label": "200", "isController": false}, {"data": [[1.64670354E12, 0.26666666666666666], [1.64670348E12, 0.5666666666666667]], "isOverall": false, "label": "500", "isController": false}], "supportsControllersDiscrimination": false, "granularity": 60000, "maxX": 1.64670354E12, "title": "Codes Per Second"}},
getOptions: function(){
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of responses / sec",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
legend: {
noColumns: 2,
show: true,
container: "#legendCodesPerSecond"
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "Number of Response Codes %s at %x was %y.2 responses / sec"
}
};
},
createGraph: function() {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesCodesPerSecond"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotCodesPerSecond"), dataset, options);
// setup overview
$.plot($("#overviewCodesPerSecond"), dataset, prepareOverviewOptions(options));
}
};
// Codes per second
function refreshCodesPerSecond(fixTimestamps) {
var infos = codesPerSecondInfos;
prepareSeries(infos.data);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotCodesPerSecond"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesCodesPerSecond");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotCodesPerSecond", "#overviewCodesPerSecond");
$('#footerCodesPerSecond .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var transactionsPerSecondInfos = {
data: {"result": {"minY": 0.06666666666666667, "minX": 1.64670336E12, "maxY": 11.533333333333333, "series": [{"data": [[1.64670342E12, 9.433333333333334], [1.64670336E12, 11.2], [1.64670354E12, 2.1166666666666667], [1.64670348E12, 6.866666666666666]], "isOverall": false, "label": "postNewRequest-success", "isController": false}, {"data": [[1.64670354E12, 0.1], [1.64670348E12, 0.2833333333333333]], "isOverall": false, "label": "postNewRequest-failure", "isController": false}, {"data": [[1.64670354E12, 0.06666666666666667], [1.64670348E12, 0.15]], "isOverall": false, "label": "getAllStatus-failure", "isController": false}, {"data": [[1.64670342E12, 10.216666666666667], [1.64670336E12, 11.533333333333333], [1.64670354E12, 2.0833333333333335], [1.64670348E12, 6.166666666666667]], "isOverall": false, "label": "getAllInfo-success", "isController": false}, {"data": [[1.64670342E12, 10.0], [1.64670336E12, 10.633333333333333], [1.64670354E12, 2.6333333333333333], [1.64670348E12, 6.5]], "isOverall": false, "label": "getDataOfRequestID-success", "isController": false}, {"data": [[1.64670354E12, 0.1], [1.64670348E12, 0.13333333333333333]], "isOverall": false, "label": "getDataOfRequestID-failure", "isController": false}, {"data": [[1.64670342E12, 9.733333333333333], [1.64670336E12, 10.9], [1.64670354E12, 2.2666666666666666], [1.64670348E12, 6.883333333333334]], "isOverall": false, "label": "getAllStatus-success", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 60000, "maxX": 1.64670354E12, "title": "Transactions Per Second"}},
getOptions: function(){
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of transactions / sec",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
legend: {
noColumns: 2,
show: true,
container: "#legendTransactionsPerSecond"
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s at %x was %y transactions / sec"
}
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesTransactionsPerSecond"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotTransactionsPerSecond"), dataset, options);
// setup overview
$.plot($("#overviewTransactionsPerSecond"), dataset, prepareOverviewOptions(options));
}
};
// Transactions per second
function refreshTransactionsPerSecond(fixTimestamps) {
var infos = transactionsPerSecondInfos;
prepareSeries(infos.data);
if(infos.data.result.series.length == 0) {
setEmptyGraph("#bodyTransactionsPerSecond");
return;
}
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotTransactionsPerSecond"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesTransactionsPerSecond");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotTransactionsPerSecond", "#overviewTransactionsPerSecond");
$('#footerTransactionsPerSecond .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
var totalTPSInfos = {
data: {"result": {"minY": 0.26666666666666666, "minX": 1.64670336E12, "maxY": 44.266666666666666, "series": [{"data": [[1.64670342E12, 39.38333333333333], [1.64670336E12, 44.266666666666666], [1.64670354E12, 9.1], [1.64670348E12, 26.416666666666668]], "isOverall": false, "label": "Transaction-success", "isController": false}, {"data": [[1.64670354E12, 0.26666666666666666], [1.64670348E12, 0.5666666666666667]], "isOverall": false, "label": "Transaction-failure", "isController": false}], "supportsControllersDiscrimination": true, "granularity": 60000, "maxX": 1.64670354E12, "title": "Total Transactions Per Second"}},
getOptions: function(){
return {
series: {
lines: {
show: true
},
points: {
show: true
}
},
xaxis: {
mode: "time",
timeformat: getTimeFormat(this.data.result.granularity),
axisLabel: getElapsedTimeLabel(this.data.result.granularity),
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20,
},
yaxis: {
axisLabel: "Number of transactions / sec",
axisLabelUseCanvas: true,
axisLabelFontSizePixels: 12,
axisLabelFontFamily: 'Verdana, Arial',
axisLabelPadding: 20
},
legend: {
noColumns: 2,
show: true,
container: "#legendTotalTPS"
},
selection: {
mode: 'xy'
},
grid: {
hoverable: true // IMPORTANT! this is needed for tooltip to
// work
},
tooltip: true,
tooltipOpts: {
content: "%s at %x was %y transactions / sec"
},
colors: ["#9ACD32", "#FF6347"]
};
},
createGraph: function () {
var data = this.data;
var dataset = prepareData(data.result.series, $("#choicesTotalTPS"));
var options = this.getOptions();
prepareOptions(options, data);
$.plot($("#flotTotalTPS"), dataset, options);
// setup overview
$.plot($("#overviewTotalTPS"), dataset, prepareOverviewOptions(options));
}
};
// Total Transactions per second
function refreshTotalTPS(fixTimestamps) {
var infos = totalTPSInfos;
// We want to ignore seriesFilter
prepareSeries(infos.data, false, true);
if(fixTimestamps) {
fixTimeStamps(infos.data.result.series, -18000000);
}
if(isGraph($("#flotTotalTPS"))){
infos.createGraph();
}else{
var choiceContainer = $("#choicesTotalTPS");
createLegend(choiceContainer, infos);
infos.createGraph();
setGraphZoomable("#flotTotalTPS", "#overviewTotalTPS");
$('#footerTotalTPS .legendColorBox > div').each(function(i){
$(this).clone().prependTo(choiceContainer.find("li").eq(i));
});
}
};
// Collapse the graph matching the specified DOM element depending the collapsed
// status
function collapse(elem, collapsed){
if(collapsed){
$(elem).parent().find(".fa-chevron-up").removeClass("fa-chevron-up").addClass("fa-chevron-down");
} else {
$(elem).parent().find(".fa-chevron-down").removeClass("fa-chevron-down").addClass("fa-chevron-up");
if (elem.id == "bodyBytesThroughputOverTime") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshBytesThroughputOverTime(true);
}
document.location.href="#bytesThroughputOverTime";
} else if (elem.id == "bodyLatenciesOverTime") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshLatenciesOverTime(true);
}
document.location.href="#latenciesOverTime";
} else if (elem.id == "bodyCustomGraph") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshCustomGraph(true);
}
document.location.href="#responseCustomGraph";
} else if (elem.id == "bodyConnectTimeOverTime") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshConnectTimeOverTime(true);
}
document.location.href="#connectTimeOverTime";
} else if (elem.id == "bodyResponseTimePercentilesOverTime") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshResponseTimePercentilesOverTime(true);
}
document.location.href="#responseTimePercentilesOverTime";
} else if (elem.id == "bodyResponseTimeDistribution") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshResponseTimeDistribution();
}
document.location.href="#responseTimeDistribution" ;
} else if (elem.id == "bodySyntheticResponseTimeDistribution") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshSyntheticResponseTimeDistribution();
}
document.location.href="#syntheticResponseTimeDistribution" ;
} else if (elem.id == "bodyActiveThreadsOverTime") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshActiveThreadsOverTime(true);
}
document.location.href="#activeThreadsOverTime";
} else if (elem.id == "bodyTimeVsThreads") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshTimeVsThreads();
}
document.location.href="#timeVsThreads" ;
} else if (elem.id == "bodyCodesPerSecond") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshCodesPerSecond(true);
}
document.location.href="#codesPerSecond";
} else if (elem.id == "bodyTransactionsPerSecond") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshTransactionsPerSecond(true);
}
document.location.href="#transactionsPerSecond";
} else if (elem.id == "bodyTotalTPS") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshTotalTPS(true);
}
document.location.href="#totalTPS";
} else if (elem.id == "bodyResponseTimeVsRequest") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshResponseTimeVsRequest();
}
document.location.href="#responseTimeVsRequest";
} else if (elem.id == "bodyLatenciesVsRequest") {
if (isGraph($(elem).find('.flot-chart-content')) == false) {
refreshLatenciesVsRequest();
}
document.location.href="#latencyVsRequest";
}
}
}
/*
* Activates or deactivates all series of the specified graph (represented by id parameter)
* depending on checked argument.
*/
function toggleAll(id, checked){
var placeholder = document.getElementById(id);
var cases = $(placeholder).find(':checkbox');
cases.prop('checked', checked);
$(cases).parent().children().children().toggleClass("legend-disabled", !checked);
var choiceContainer;
if ( id == "choicesBytesThroughputOverTime"){
choiceContainer = $("#choicesBytesThroughputOverTime");
refreshBytesThroughputOverTime(false);
} else if(id == "choicesResponseTimesOverTime"){
choiceContainer = $("#choicesResponseTimesOverTime");
refreshResponseTimeOverTime(false);
}else if(id == "choicesResponseCustomGraph"){
choiceContainer = $("#choicesResponseCustomGraph");
refreshCustomGraph(false);
} else if ( id == "choicesLatenciesOverTime"){
choiceContainer = $("#choicesLatenciesOverTime");
refreshLatenciesOverTime(false);
} else if ( id == "choicesConnectTimeOverTime"){
choiceContainer = $("#choicesConnectTimeOverTime");
refreshConnectTimeOverTime(false);
} else if ( id == "choicesResponseTimePercentilesOverTime"){
choiceContainer = $("#choicesResponseTimePercentilesOverTime");
refreshResponseTimePercentilesOverTime(false);
} else if ( id == "choicesResponseTimePercentiles"){
choiceContainer = $("#choicesResponseTimePercentiles");
refreshResponseTimePercentiles();
} else if(id == "choicesActiveThreadsOverTime"){
choiceContainer = $("#choicesActiveThreadsOverTime");
refreshActiveThreadsOverTime(false);
} else if ( id == "choicesTimeVsThreads"){
choiceContainer = $("#choicesTimeVsThreads");
refreshTimeVsThreads();
} else if ( id == "choicesSyntheticResponseTimeDistribution"){
choiceContainer = $("#choicesSyntheticResponseTimeDistribution");
refreshSyntheticResponseTimeDistribution();
} else if ( id == "choicesResponseTimeDistribution"){
choiceContainer = $("#choicesResponseTimeDistribution");
refreshResponseTimeDistribution();
} else if ( id == "choicesHitsPerSecond"){
choiceContainer = $("#choicesHitsPerSecond");
refreshHitsPerSecond(false);
} else if(id == "choicesCodesPerSecond"){
choiceContainer = $("#choicesCodesPerSecond");
refreshCodesPerSecond(false);
} else if ( id == "choicesTransactionsPerSecond"){
choiceContainer = $("#choicesTransactionsPerSecond");
refreshTransactionsPerSecond(false);
} else if ( id == "choicesTotalTPS"){
choiceContainer = $("#choicesTotalTPS");
refreshTotalTPS(false);
} else if ( id == "choicesResponseTimeVsRequest"){
choiceContainer = $("#choicesResponseTimeVsRequest");
refreshResponseTimeVsRequest();
} else if ( id == "choicesLatencyVsRequest"){
choiceContainer = $("#choicesLatencyVsRequest");
refreshLatenciesVsRequest();
}
var color = checked ? "black" : "#818181";
if(choiceContainer != null) {
choiceContainer.find("label").each(function(){
this.style.color = color;
});
}
}
|
'use strict';
const validateGroupInput = require('./validation/group');
const _ = require('lodash');
/**
* Groups controller
*/
module.exports = {
/**
* GET /groups handler
* Returns a list of available groups
* @param {Object} ctx - koa context
*/
async getGroups(ctx) {
const service = strapi.plugins['content-type-builder'].services.groups;
const data = service.getGroups();
ctx.send({ data });
},
/**
* GET /groups/:uid
* Returns a specific group
* @param {Object} ctx - koa context
*/
async getGroup(ctx) {
const { uid } = ctx.params;
const service = strapi.plugins['content-type-builder'].services.groups;
const group = service.getGroup(uid);
if (!group) {
return ctx.send({ error: 'group.notFound' }, 404);
}
ctx.send({ data: group });
},
/**
* POST /groups
* Creates a group and returns its infos
* @param {Object} ctx - koa context
*/
async createGroup(ctx) {
const { body } = ctx.request;
try {
await validateGroupInput(body);
} catch (error) {
return ctx.send({ error }, 400);
}
const service = strapi.plugins['content-type-builder'].services.groups;
const uid = service.createGroupUID(body.name);
if (service.getGroup(uid)) {
return ctx.send({ error: 'group.alreadyExists' }, 400);
}
strapi.reload.isWatching = false;
const newGroup = await service.createGroup(uid, body);
strapi.reload();
ctx.send({ data: newGroup }, 201);
},
/**
* PUT /groups/:uid
* Updates a group and return its infos
* @param {Object} ctx - koa context - enhanced koa context
*/
async updateGroup(ctx) {
const { uid } = ctx.params;
const { body } = ctx.request;
const service = strapi.plugins['content-type-builder'].services.groups;
const group = service.getGroup(uid);
if (!group) {
return ctx.send({ error: 'group.notFound' }, 404);
}
// convert zero length string on default attributes to undefined
if (_.has(body, 'attributes')) {
Object.keys(body.attributes).forEach(attribute => {
if (body.attributes[attribute].default === '') {
body.attributes[attribute].default = undefined;
}
});
}
try {
await validateGroupInput(body);
} catch (error) {
return ctx.send({ error }, 400);
}
strapi.reload.isWatching = false;
const updatedGroup = await service.updateGroup(group, body);
await service.updateGroupInModels(group.uid, updatedGroup.uid);
strapi.reload();
ctx.send({ data: updatedGroup }, 200);
},
/**
* DELETE /groups/:uid
* Deletes a groups and returns its old infos
* @param {Object} ctx - koa context
*/
async deleteGroup(ctx) {
const { uid } = ctx.params;
const service = strapi.plugins['content-type-builder'].services.groups;
const group = service.getGroup(uid);
if (!group) {
return ctx.send({ error: 'group.notFound' }, 404);
}
strapi.reload.isWatching = false;
await service.deleteGroup(group);
await service.deleteGroupInModels(group.uid);
strapi.reload();
ctx.send({ data: { uid } }, 200);
},
};
|
// =========================================================================
// Copyright � 2017 T-Mobile USA, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// =========================================================================
/**
Helper functions for Service-Catalog
@module: utils.js
@description: Defines functions like format the output as per Service-Catalog schema etc.
@author:
@version: 1.0
**/
const AWS = require('aws-sdk');
// function to convert key name in schema to database column name
var getDatabaseKeyName = function(key) {
// Some of the keys in schema may be reserved keywords, so it may need some manipulation
if (key === undefined || key === null) {
return null;
}
if (key === 'service') {
return 'SERVICE_NAME';
} else {
return 'SERVICE_' + key.toUpperCase();
}
};
// convert object returned from the database, as per schema
var formatService = function(service, format) {
if (service === undefined || service === null) {
return {};
}
var service_obj;
if (format !== undefined) {
service_obj = {
'id': service.SERVICE_ID.S,
'timestamp': service.TIMESTAMP.S
};
} else {
service_obj = {
'id': service.SERVICE_ID,
'timestamp': service.TIMESTAMP
};
}
var parseValue = function(value) {
var type = Object.keys(value)[0];
var parsed_value = value[type];
if (type === 'NULL') {
return null;
} else if (type === 'N') {
return Number(value);
} else if (type === 'NS') {
return parsed_value.map(Number);
} else if (type === 'S') {
return parsed_value;
} else if (type === 'SS') {
return parsed_value;
} else if (type === 'M') {
var parsed_value_map = {};
try {
Object.keys(parsed_value).forEach(function(key) {
parsed_value_map[key] = parseValue(parsed_value[key]);
});
} catch (e) {}
return parsed_value_map;
} else if (type === 'L') {
var parsed_value_list = [];
try {
for (var i = 0; i < parsed_value.length; i++) {
parsed_value_list.push(parseValue(parsed_value[i]));
}
} catch (e) {}
return parsed_value_list;
} else {
// probably should be error
return (parsed_value);
}
};
global.config.service_return_fields.forEach(function(key) {
var key_name = getDatabaseKeyName(key);
var value = service[key_name];
if (value !== null && value !== undefined) {
if (format !== undefined) {
service_obj[key] = parseValue(value);
} else {
service_obj[key] = (value);
}
}
});
return service_obj;
};
// initialize document CLient for dynamodb
var initDocClient = function() {
AWS.config.update({ region: global.config.ddb_region });
var docClient = new AWS.DynamoDB.DocumentClient();
return docClient;
};
var initDynamodb = function() {
AWS.config.update({ region: global.config.ddb_region });
var dynamodb = new AWS.DynamoDB();
return dynamodb;
};
module.exports = () => {
return {
initDynamodb: initDynamodb,
initDocClient: initDocClient,
getDatabaseKeyName: getDatabaseKeyName,
formatService: formatService
};
};
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
const vamtiger_create_directory_1 = require("vamtiger-create-directory");
const vamtiger_create_file_1 = require("vamtiger-create-file");
const export_empty_string_1 = require("./snippet/export-empty-string");
const { cwd } = process;
const folder = path_1.resolve(cwd(), 'source', 'html');
const htmlPath = path_1.resolve(folder, 'index.html');
const modulePath = path_1.resolve(folder, 'index.ts');
async function default_1() {
await vamtiger_create_directory_1.default(folder);
await Promise.all([
vamtiger_create_file_1.default(htmlPath, ''),
vamtiger_create_file_1.default(modulePath, export_empty_string_1.default)
]);
}
exports.default = default_1;
//# sourceMappingURL=create-web-component-html.js.map
|
import React from "react";
// reactstrap components
import { Container } from "reactstrap";
// core components
import Header from "components/Headers/Header.js";
import PaginationOrder from "./TableOrders/Pagination";
import TableProductsUser from "./TableProducts/Table";
// const MapWrapper = () => {
// return (
// <>
// <div className="map-canvas">
// <h1> Products Page</h1>
// </div>
// </>
// );
// };
const Products = () => {
return (
<>
<Header />
{/* Page content */}
<Container className="mt--7" fluid>
{/* <Row>
<div className="col">
<Card className="shadow border-0">
<MapWrapper />
</Card>
</div>
</Row> */}
<div style={{
paddingTop: "10px",
backgroundColor: "white",
borderRadius: "20px",
}}>
<div>
{/* <div className="row d-flex justify-content-between mx-auto mt-4 mb-3"> */}
<div id="Filter-Serach">
{/* <div className="col-lg-8 col-md-12"> */}
<div className="row justify-content-end">
<i
className="fa fa-search"
id="iconSearch4Orders"
aria-hidden="true"
></i>
<div className="input-group col-lg-10 col-md-12 SearchProducts">
<div className="input-group-prepend ">
{/* <i className="fa fa-search" aria-hidden="true" ></i> */}
<input
className="form-control"
id="search-box-orders"
type="text"
name="search"
placeholder="Search "
required="required"
/>
</div>
<div className="input-group-append">
<select
className="form-control rounded-0 text-capitalize"
id="search-filter"
name="search-filter"
>
<option value="listitem">All Dates</option>
<option value="Type">date1</option>
<option value="Vendor">Date2</option>
</select>
</div>
<div className="input-group-append statusBox">
<select
className="form-control rounded-0 text-capitalize"
id="search-filter"
name="search-filter"
>
<option value="listitem">Status</option>
<option value="Type">Status1</option>
<option value="Vendor">Status2</option>
</select>
</div>
</div>
<br></br><br></br><br></br>
<TableProductsUser />
</div>
</div>
</div>
</div>
<br></br>
{/* Pagination */}
<PaginationOrder />
</Container>
</>
);
};
export default Products;
|
(function(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj;
})({}, Symbol.iterator, 0)[Symbol.nonsense];
|
module.exports = class TaskPsychomotorLevelOfLearning extends EcRemoteLinkedData {
psychoIterId;
psychoLoL;
taskLoLChar;
taskKSAGaps;
orgInfos;
docs;
rmks;
uid;
uri;
crud;
getPsychoIterId() {
return psychoIterId;
}
setPsychoIterId( value) {
this.psychoIterId = value;
}
getPsychoLoL() {
return psychoLoL;
}
setPsychoLoL( value) {
this.psychoLoL = value;
}
getTaskLoLChar() {
return taskLoLChar;
}
setTaskLoLChar( value) {
this.taskLoLChar = value;
}
getTaskKSAGaps() {
return taskKSAGaps;
}
setTaskKSAGaps( value) {
this.taskKSAGaps = value;
}
getOrgInfos() {
return orgInfos;
}
setOrgInfos( value) {
this.orgInfos = value;
}
getDocs() {
return docs;
}
setDocs( value) {
this.docs = value;
}
getRmks() {
return rmks;
}
setRmks( value) {
this.rmks = value;
}
getUid() {
return uid;
}
setUid( value) {
this.uid = value;
}
getUri() {
return uri;
}
setUri( value) {
this.uri = value;
}
getCrud() {
if (this.crud == null) {
return CrudCodeValues.I;
} else {
return crud;
}
}
setCrud( value) {
this.crud = value;
}
constructor() {
super("http://www.asd-europe.org/s-series/s3000l", "TaskPsychomotorLevelOfLearning");
}
};
|
import React from "react";
// Using the datalist element we can create autofill suggestions based on the props.breeds array
function SearchForm(props) {
return (
<div className="container">
<form className="search">
<div className="form-group">
<label>Search Employee:</label>
<input
onChange={props.handleInputChange}
value={props.search}
name="search"
type="text"
className="form-control"
placeholder="Search for Employee"
id="search"
/>
</div>
</form>
</div>
);
}
export default SearchForm;
|
// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW Slider 8.8
//
//***********************************************
// Obfuscated by Javascript Obfuscator
// http://javascript-source.com
//***********************************************
function ws_glass_parallax(d,l,m){var f=jQuery;var i=f(this);var j=d.parallax||0.25;var k=f("<div>").css({position:"absolute",display:"none",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_glass_parallax").appendTo(m);var h=!d.noCanvas&&!window.opera&&!!document.createElement("canvas").getContext;if(h){try{document.createElement("canvas").getContext("2d").getImageData(0,0,1,1)}catch(q){h=0}}function t(e){return Math.round(e*1000)/1000}var u=f("<div>").css({position:"absolute",left:0,top:0,overflow:"hidden",width:"100%",height:"100%",transform:"translate3d(0,0,0)",zIndex:1}).appendTo(k);var s=u.clone().appendTo(k);var r=u.clone().css({width:"20%"}).appendTo(k);var c;var p=u.clone().appendTo(k).css({zIndex:0});this.go=function(C,A,x){var e=f(l.get(A));e={position:"absolute",width:e.width(),height:e.height(),marginTop:e.css("marginTop"),marginLeft:e.css("marginLeft")};x=x?1:-1;var E=f(l.get(A)).clone().css(e).appendTo(u);var z=f(l.get(C)).clone().css(e).appendTo(s);var v=f(l.get(C)).clone().css(e).appendTo(r);if(x==-1){r.css({left:"auto",right:0});v.css({left:"auto",right:0})}else{r.css({left:0,right:"auto"});v.css({left:0,right:"auto"})}var D=(m.width()||d.width)*1.3;var B=m.height()||d.height;var y;if(h){if(!c){c=f("<canvas>").css({position:"absolute",left:0,top:0}).attr({width:e.width,height:e.height}).appendTo(p)}c.css(e).attr({width:e.width,height:e.height});y=o(f(l.get(C)),e,10,c.get(0))}if(!h||!y){h=0}wowAnimate(function(G){G=f.easing.swing(G);var L=t(x*G*D),F=t(x*(-D+G*D-(1-G)*D*0.2)),J=t(x*(-D*1.4+G*(D*1.4+D/1.3))),w=t(-x*D*j*G),H=t(x*D*j*(1-G)),I=t(-x*D*(j+0.2)*G),K=t(x*(-D*0.2+G*D*0.4));if(d.support.transform){u.css("transform","translate3d("+L+"px,0,0)");E.css("transform","translate3d("+w+"px,0,0)");s.css("transform","translate3d("+F+"px,0,0)");z.css("transform","translate3d("+H+"px,0,0)");r.css("transform","translate3d("+J+"px,0,0)");v.css("transform","scale(1.6) translate3d("+I+"px,0,0)");p.css("transform","translate3d("+K+"px,0,0)")}else{u.css("left",L);E.css("margin-left",w);s.css("left",F);z.css("margin-left",H);r.css("left",J);v.css("margin-left",I);p.css("left",K)}},0,1,d.duration,function(){k.hide();E.remove();z.remove();v.remove();i.trigger("effectEnd")})};function o(C,A,B,v){var F=(parseInt(C.parent().css("z-index"))||0)+1;if(h){var I=v.getContext("2d");I.drawImage(C.get(0),0,0,A.width,A.height);if(!a(I,0,0,v.width,v.height,B)){return 0}return f(v)}var J=f("<div></div>").css({position:"absolute","z-index":F,left:0,top:0}).css(A).appendTo(v);var H=(Math.sqrt(5)+1)/2;var w=1-H/2;for(var z=0;w*z<B;z++){var D=Math.PI*H*z;var e=(w*z+1);var G=e*Math.cos(D);var E=e*Math.sin(D);f(document.createElement("img")).attr("src",C.attr("src")).css({opacity:1/(z/1.8+1),position:"absolute","z-index":F,left:Math.round(G)+"px",top:Math.round(E)+"px",width:"100%",height:"100%"}).appendTo(J)}return J}var g=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var n=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function a(am,U,S,v,w,ad){if(isNaN(ad)||ad<1){return}ad|=0;var ah;try{ah=am.getImageData(U,S,v,w)}catch(al){console.log("error:unable to access image data: "+al);return false}var C=ah.data;var ab,aa,aj,ag,J,M,G,A,B,R,H,T,P,X,ac,K,F,L,N,W;var ak=ad+ad+1;var Y=v<<2;var I=v-1;var af=w-1;var E=ad+1;var ae=E*(E+1)/2;var V=new b();var Q=V;for(aj=1;aj<ak;aj++){Q=Q.next=new b();if(aj==E){var D=Q}}Q.next=V;var ai=null;var Z=null;G=M=0;var O=g[ad];var z=n[ad];for(aa=0;aa<w;aa++){X=ac=K=A=B=R=0;H=E*(F=C[M]);T=E*(L=C[M+1]);P=E*(N=C[M+2]);A+=ae*F;B+=ae*L;R+=ae*N;Q=V;for(aj=0;aj<E;aj++){Q.r=F;Q.g=L;Q.b=N;Q=Q.next}for(aj=1;aj<E;aj++){ag=M+((I<aj?I:aj)<<2);A+=(Q.r=(F=C[ag]))*(W=E-aj);B+=(Q.g=(L=C[ag+1]))*W;R+=(Q.b=(N=C[ag+2]))*W;X+=F;ac+=L;K+=N;Q=Q.next}ai=V;Z=D;for(ab=0;ab<v;ab++){C[M]=(A*O)>>z;C[M+1]=(B*O)>>z;C[M+2]=(R*O)>>z;A-=H;B-=T;R-=P;H-=ai.r;T-=ai.g;P-=ai.b;ag=(G+((ag=ab+ad+1)<I?ag:I))<<2;X+=(ai.r=C[ag]);ac+=(ai.g=C[ag+1]);K+=(ai.b=C[ag+2]);A+=X;B+=ac;R+=K;ai=ai.next;H+=(F=Z.r);T+=(L=Z.g);P+=(N=Z.b);X-=F;ac-=L;K-=N;Z=Z.next;M+=4}G+=v}for(ab=0;ab<v;ab++){ac=K=X=B=R=A=0;M=ab<<2;H=E*(F=C[M]);T=E*(L=C[M+1]);P=E*(N=C[M+2]);A+=ae*F;B+=ae*L;R+=ae*N;Q=V;for(aj=0;aj<E;aj++){Q.r=F;Q.g=L;Q.b=N;Q=Q.next}J=v;for(aj=1;aj<=ad;aj++){M=(J+ab)<<2;A+=(Q.r=(F=C[M]))*(W=E-aj);B+=(Q.g=(L=C[M+1]))*W;R+=(Q.b=(N=C[M+2]))*W;X+=F;ac+=L;K+=N;Q=Q.next;if(aj<af){J+=v}}M=ab;ai=V;Z=D;for(aa=0;aa<w;aa++){ag=M<<2;C[ag]=(A*O)>>z;C[ag+1]=(B*O)>>z;C[ag+2]=(R*O)>>z;A-=H;B-=T;R-=P;H-=ai.r;T-=ai.g;P-=ai.b;ag=(ab+(((ag=aa+E)<af?ag:af)*v))<<2;A+=(X+=(ai.r=C[ag]));B+=(ac+=(ai.g=C[ag+1]));R+=(K+=(ai.b=C[ag+2]));ai=ai.next;H+=(F=Z.r);T+=(L=Z.g);P+=(N=Z.b);X-=F;ac-=L;K-=N;Z=Z.next;M+=v}}am.putImageData(ah,U,S);return true}function b(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}};// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW Slider 8.8
//
//***********************************************
// Obfuscated by Javascript Obfuscator
// http://javascript-source.com
//***********************************************
jQuery("#wowslider-container1").wowSlider({effect:"glass_parallax",prev:"",next:"",duration:20*100,delay:20*100,width:830,height:360,autoPlay:true,autoPlayVideo:false,playPause:true,stopOnHover:false,loop:false,bullets:1,caption:true,captionEffect:"parallax",controls:true,controlsThumb:["data1/images/slider1.jpg", "data1/images/slider2.jpg", "data1/images/slider3.jpg"],responsive:1,fullScreen:false,gestures:2,onBeforeStep:0,images:0});
|
const {
applicationContext,
testPdfDoc,
} = require('../../test/createTestApplicationContext');
const {
CASE_TYPES_MAP,
CONTACT_TYPES,
COUNTRY_TYPES,
DOCKET_SECTION,
DOCUMENT_PROCESSING_STATUS_OPTIONS,
PARTY_TYPES,
ROLES,
SERVICE_INDICATOR_TYPES,
} = require('../../entities/EntityConstants');
const {
completeDocketEntryQCInteractor,
getNeedsNewCoversheet,
} = require('./completeDocketEntryQCInteractor');
describe('completeDocketEntryQCInteractor', () => {
let caseRecord;
const mockUser = {
name: 'Emmett Lathrop "Doc" Brown, Ph.D.',
role: ROLES.docketClerk,
section: DOCKET_SECTION,
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
};
const mockPrimaryId = '7815b188-3b5f-4bbb-9689-18d234f774fa';
beforeEach(() => {
const PDF_MOCK_BUFFER = 'Hello World';
const workItem = {
docketEntry: {
docketEntryId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: '45678-18',
documentType: 'Answer',
eventCode: 'A',
filedBy: 'Test Petitioner',
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
},
docketNumber: '45678-18',
section: DOCKET_SECTION,
sentBy: 'Test User',
sentByUserId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
updatedAt: applicationContext.getUtilities().createISODateString(),
workItemId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
};
caseRecord = {
caseCaption: 'Caption',
caseType: CASE_TYPES_MAP.deficiency,
createdAt: '',
docketEntries: [
{
addToCoversheet: false,
additionalInfo: 'additional info',
additionalInfo2: 'additional info 2',
certificateOfService: true,
certificateOfServiceDate: '2019-08-25T05:00:00.000Z',
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: '45678-18',
documentTitle: 'Answer',
documentType: 'Answer',
eventCode: 'A',
filedBy: 'Petr. Guy Fieri',
index: 42,
isOnDocketRecord: true,
receivedAt: '2019-08-25T05:00:00.000Z',
servedAt: '2019-08-25T05:00:00.000Z',
servedParties: [{ name: 'Bernard Lowe' }],
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
workItem,
},
{
docketEntryId: 'c54ba5a9-b37b-479d-9201-067ec6e335b2',
docketNumber: '45678-18',
documentType: 'Answer',
eventCode: 'A',
filedBy: 'Test Petitioner',
receivedAt: '2019-08-27T05:00:00.000Z',
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
workItem,
},
{
docketEntryId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: '45678-18',
documentType: 'Answer',
eventCode: 'A',
filedBy: 'Test Petitioner',
receivedAt: '2019-08-29T05:00:00.000Z',
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
workItem,
},
],
docketNumber: '45678-18',
filingType: 'Myself',
partyType: PARTY_TYPES.petitioner,
petitioners: [
{
address1: '123 Main St',
city: 'Somewhere',
contactId: mockPrimaryId,
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
},
],
preferredTrialCity: 'Fresno, California',
procedureType: 'Regular',
role: ROLES.petitioner,
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
};
applicationContext.getCurrentUser.mockReturnValue(mockUser);
applicationContext
.getPersistenceGateway()
.getUserById.mockReturnValue(mockUser);
applicationContext
.getPersistenceGateway()
.getCaseByDocketNumber.mockReturnValue(caseRecord);
applicationContext.getUniqueId.mockReturnValue(
'b6f835aa-bf95-4996-b858-c8e94566db47',
);
applicationContext.getStorageClient().getObject.mockReturnValue({
promise: () => ({
Body: testPdfDoc,
}),
});
applicationContext
.getStorageClient()
.upload.mockImplementation((params, resolve) => resolve());
applicationContext.getChromiumBrowser().newPage.mockReturnValue({
addStyleTag: () => {},
pdf: () => {
return PDF_MOCK_BUFFER;
},
setContent: () => {},
});
applicationContext
.getPersistenceGateway()
.getDownloadPolicyUrl.mockReturnValue({
url: 'www.example.com',
});
applicationContext
.getUseCaseHelpers()
.serveDocumentAndGetPaperServicePdf.mockReturnValue({
pdfUrl: 'www.example.com',
});
});
it('should throw an error if not authorized', async () => {
applicationContext.getCurrentUser.mockReturnValue({});
await expect(
completeDocketEntryQCInteractor(applicationContext, {}),
).rejects.toThrow('Unauthorized');
});
it('adds documents and workitems', async () => {
await expect(
completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'Document Title',
documentType: 'Memorandum in Support',
eventCode: 'MISP',
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
}),
).resolves.not.toThrow();
expect(
applicationContext.getPersistenceGateway().getCaseByDocketNumber,
).toBeCalled();
expect(
applicationContext.getPersistenceGateway()
.saveWorkItemForDocketClerkFilingExternalDocument,
).toBeCalled();
expect(applicationContext.getPersistenceGateway().updateCase).toBeCalled();
});
it('serves the document for electronic-only parties if a notice of docket change is generated', async () => {
caseRecord.petitioners = [
{
address1: '123 Main St',
city: 'Somewhere',
contactId: mockPrimaryId,
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'test@example.com',
name: 'Test Petitioner',
phone: 'n/a',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
state: 'AK',
},
];
const result = await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'Something Else',
documentType: 'Memorandum in Support',
eventCode: 'MISP',
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getPersistenceGateway().getCaseByDocketNumber,
).toBeCalled();
expect(
applicationContext.getPersistenceGateway()
.saveWorkItemForDocketClerkFilingExternalDocument,
).toBeCalled();
expect(applicationContext.getPersistenceGateway().updateCase).toBeCalled();
expect(result.paperServicePdfUrl).toBeUndefined();
expect(result.paperServiceParties.length).toEqual(0);
});
it('should generate a notice of docket change with a new coversheet when additional info fields are added and addToCoversheet is true', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: true,
additionalInfo: '123',
additionalInfo2: 'abc',
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: caseRecord.docketEntries[0].documentTitle,
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Answer 123 abc',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should generate a notice of docket change without a new coversheet when the certificate of service date has been updated', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
...caseRecord.docketEntries[0],
certificateOfService: true,
certificateOfServiceDate: '2019-08-06T07:53:09.001Z',
filedBy: 'Petr. Guy Fieri',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).not.toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Answer additional info (C/S 08/06/19) additional info 2',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should generate a notice of docket change without a new coversheet when attachments has been updated', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
...caseRecord.docketEntries[0],
attachments: true,
filedBy: 'Petr. Guy Fieri',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).not.toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after:
'Answer additional info (C/S 08/25/19) (Attachment(s)) additional info 2',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should generate a notice of docket change with a new coversheet when additional info fields are removed and addToCoversheet is true', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: true,
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: caseRecord.docketEntries[0].documentTitle,
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Answer',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should generate a notice of docket change with a new coversheet when documentTitle has changed and addToCoversheeet is false', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: false,
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: 'Something Different',
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Something Different',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should not generate a new coversheet when the documentTitle has not changed and addToCoversheet is false', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
...caseRecord.docketEntries[0],
addToCoversheet: false,
additionalInfo: 'additional info',
additionalInfo2: 'additional info 2',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).not.toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange,
).not.toBeCalled();
});
it('should generate a new coversheet when additionalInfo is changed and addToCoversheet is true', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: true,
additionalInfo: 'additional info',
additionalInfo2: 'additional info 221',
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: caseRecord.docketEntries[0].documentTitle,
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Answer additional info additional info 221',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should generate a new coversheet when additionalInfo is NOT changed and addToCoversheet is true', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: true,
additionalInfo: 'additional info',
additionalInfo2: 'additional info',
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: caseRecord.docketEntries[0].documentTitle,
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getUseCases().addCoversheetInteractor,
).toBeCalled();
expect(
applicationContext.getDocumentGenerators().noticeOfDocketChange.mock
.calls[0][0].data.filingsAndProceedings,
).toEqual({
after: 'Answer additional info additional info',
before: 'Answer additional info (C/S 08/25/19) additional info 2',
});
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
});
it('should not send the service email if an error occurs while adding a coversheet', async () => {
applicationContext
.getUseCases()
.addCoversheetInteractor.mockRejectedValueOnce(new Error('bad!'));
await expect(
completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
addToCoversheet: true,
additionalInfo: 'additional info',
additionalInfo2: 'additional info',
docketEntryId: caseRecord.docketEntries[0].docketEntryId,
docketNumber: caseRecord.docketNumber,
documentTitle: caseRecord.docketEntries[0].documentTitle,
documentType: caseRecord.docketEntries[0].documentType,
eventCode: caseRecord.docketEntries[0].eventCode,
filedBy: 'Resp.',
filers: [mockPrimaryId],
},
}),
).rejects.toThrow(new Error('bad!'));
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).not.toBeCalled();
});
it('serves the document for parties with paper service if a notice of docket change is generated', async () => {
caseRecord.petitioners = [
{
address1: '123 Main St',
city: 'Somewhere',
contactId: mockPrimaryId,
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
name: 'Test Petitioner',
phone: 'n/a',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_PAPER,
state: 'AK',
},
];
caseRecord.isPaper = true;
caseRecord.mailingDate = '2019-03-01T21:40:46.415Z';
const mockNumberOfPages = 999;
applicationContext
.getUseCaseHelpers()
.countPagesInDocument.mockImplementation(() => {
return mockNumberOfPages;
});
const result = await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'Something Else',
documentType: 'Memorandum in Support',
eventCode: 'MISP',
filedBy: 'Resp',
filers: [mockPrimaryId],
},
});
const noticeOfDocketChange = result.caseDetail.docketEntries.find(
docketEntry => docketEntry.eventCode === 'NODC',
);
expect(
applicationContext.getUseCaseHelpers().countPagesInDocument,
).toHaveBeenCalled();
expect(noticeOfDocketChange).toMatchObject({
isFileAttached: true,
numberOfPages: 999,
processingStatus: DOCUMENT_PROCESSING_STATUS_OPTIONS.COMPLETE,
});
expect(
applicationContext.getPersistenceGateway().getCaseByDocketNumber,
).toBeCalled();
expect(
applicationContext.getPersistenceGateway()
.saveWorkItemForDocketClerkFilingExternalDocument,
).toBeCalled();
expect(
applicationContext.getUseCaseHelpers().serveDocumentAndGetPaperServicePdf,
).toBeCalled();
expect(applicationContext.getPersistenceGateway().updateCase).toBeCalled();
expect(result.paperServicePdfUrl).toEqual('www.example.com');
expect(result.paperServiceParties.length).toEqual(1);
});
it('generates a document for paper service if the document is a Notice of Change of Address and the case has paper service parties', async () => {
caseRecord.petitioners = [
{
address1: '123 Main St',
city: 'Somewhere',
contactId: mockPrimaryId,
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
name: 'Test Petitioner',
phone: 'n/a',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_PAPER,
state: 'AK',
},
];
caseRecord.isPaper = true;
caseRecord.mailingDate = '2019-03-01T21:40:46.415Z';
const result = await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'Notice of Change of Address',
documentType: 'Notice of Change of Address',
eventCode: 'MISP',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getPersistenceGateway().getCaseByDocketNumber,
).toBeCalled();
expect(
applicationContext.getPersistenceGateway()
.saveWorkItemForDocketClerkFilingExternalDocument,
).toBeCalled();
expect(applicationContext.getPersistenceGateway().updateCase).toBeCalled();
expect(result.paperServicePdfUrl).toEqual('www.example.com');
expect(result.paperServiceParties.length).toEqual(1);
});
it('does not generate a document for paper service if the document is a Notice of Change of Address and the case has no paper service parties', async () => {
caseRecord.petitioners = [
{
address1: '123 Main St',
city: 'Somewhere',
contactId: mockPrimaryId,
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'test@example.com',
name: 'Test Petitioner',
phone: 'n/a',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
state: 'AK',
},
];
const result = await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'Notice of Change of Address',
documentType: 'Notice of Change of Address',
eventCode: 'NCA',
filers: [mockPrimaryId],
},
});
expect(
applicationContext.getPersistenceGateway().getCaseByDocketNumber,
).toBeCalled();
expect(
applicationContext.getPersistenceGateway()
.saveWorkItemForDocketClerkFilingExternalDocument,
).toBeCalled();
expect(applicationContext.getPersistenceGateway().updateCase).toBeCalled();
expect(result.paperServicePdfUrl).toEqual(undefined);
expect(result.paperServiceParties.length).toEqual(0);
});
it('should update only allowed editable fields on a docket entry document', async () => {
await completeDocketEntryQCInteractor(applicationContext, {
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'My Edited Document',
documentType: 'Notice of Change of Address',
eventCode: 'NCA',
filedBy: 'Resp.',
filers: [mockPrimaryId],
freeText: 'Some text about this document',
hasOtherFilingParty: true,
isPaper: true,
otherFilingParty: 'Bert Brooks',
},
});
expect(
applicationContext.getPersistenceGateway().updateCase.mock.calls[0][0]
.caseToUpdate.docketEntries[0],
).toMatchObject({
documentTitle: 'My Edited Document',
documentType: 'Notice of Change of Address',
eventCode: 'NCA',
freeText: 'Some text about this document',
hasOtherFilingParty: true,
otherFilingParty: 'Bert Brooks',
});
});
it('updates automaticBlocked on a case and all associated case trial sort mappings', async () => {
expect(caseRecord.automaticBlocked).toBeFalsy();
const { caseDetail } = await completeDocketEntryQCInteractor(
applicationContext,
{
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'My Edited Document',
documentType: 'Notice of Change of Address',
eventCode: 'NCA',
filedBy: 'Resp.',
filers: [mockPrimaryId],
freeText: 'Some text about this document',
hasOtherFilingParty: true,
isPaper: true,
otherFilingParty: 'Bert Brooks',
pending: true,
},
},
);
expect(
applicationContext.getUseCaseHelpers().updateCaseAutomaticBlock,
).toHaveBeenCalled();
expect(
applicationContext.getPersistenceGateway()
.deleteCaseTrialSortMappingRecords,
).toHaveBeenCalled();
expect(caseDetail.automaticBlocked).toBeTruthy();
});
it('normalizes receivedAt dates to ISO string format', async () => {
caseRecord.docketEntries = [
{
addToCoversheet: false,
additionalInfo: 'additional info',
additionalInfo2: 'additional info 2',
certificateOfService: true,
certificateOfServiceDate: '2019-08-25T05:00:00.000Z',
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: '45678-18',
documentTitle: 'Answer',
documentType: 'Answer',
eventCode: 'A',
filedBy: 'Petr. Guy Fieri',
index: 42,
isOnDocketRecord: true,
receivedAt: '2021-01-01', // date only
servedAt: '2019-08-25T05:00:00.000Z',
servedParties: [{ name: 'Bernard Lowe' }],
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
},
];
const { caseDetail } = await completeDocketEntryQCInteractor(
applicationContext,
{
entryMetadata: {
docketEntryId: 'fffba5a9-b37b-479d-9201-067ec6e335bb',
docketNumber: caseRecord.docketNumber,
documentTitle: 'My Edited Document',
documentType: 'Notice of Change of Address',
eventCode: 'NCA',
filedBy: 'Resp.',
filers: [mockPrimaryId],
freeText: 'Some text about this document',
hasOtherFilingParty: true,
isPaper: true,
otherFilingParty: 'Bert Brooks',
pending: true,
receivedAt: '2021-01-01', // date only
},
},
);
expect(caseDetail.docketEntries[0].receivedAt).toEqual(
'2021-01-01T05:00:00.000Z',
);
});
describe('getNeedsNewCoversheet', () => {
it('should return true when receivedAt is updated', () => {
const needsNewCoversheet = getNeedsNewCoversheet({
currentDocketEntry: {
receivedAt: '2019-08-25T05:00:00.000Z',
},
updatedDocketEntry: {
receivedAt: '2020-08-26T05:00:00.000Z',
},
});
expect(needsNewCoversheet).toBeTruthy();
});
it('should return false when receivedAt format is different but the date is the same', () => {
const needsNewCoversheet = getNeedsNewCoversheet({
currentDocketEntry: {
receivedAt: '2019-08-25',
},
updatedDocketEntry: {
receivedAt: '2019-08-25T05:00:00.000Z',
},
});
expect(needsNewCoversheet).toBeFalsy();
});
it('should return true when certificateOfService is updated', () => {
const needsNewCoversheet = getNeedsNewCoversheet({
currentDocketEntry: {
certificateOfService: false,
receivedAt: '2019-08-12T05:00:00.000Z',
},
updatedDocketEntry: {
certificateOfService: true,
receivedAt: '2019-08-12T05:00:00.000Z',
},
});
expect(needsNewCoversheet).toBeTruthy();
});
it('should return false when filedBy is updated', () => {
const needsNewCoversheet = getNeedsNewCoversheet({
currentDocketEntry: {
filedBy: 'petitioner.smith',
receivedAt: '2019-08-12T05:00:00.000Z',
},
updatedDocketEntry: {
filedBy: 'petitioner.high',
receivedAt: '2019-08-12T05:00:00.000Z',
},
});
expect(needsNewCoversheet).toBeFalsy();
});
it('should return true when documentTitle is updated', () => {
const needsNewCoversheet = getNeedsNewCoversheet({
currentDocketEntry: {
documentTitle: 'fake title',
receivedAt: '2019-08-12T05:00:00.000Z',
},
updatedDocketEntry: {
documentTitle: 'fake title 2!!!',
receivedAt: '2019-08-12T05:00:00.000Z',
},
});
expect(needsNewCoversheet).toBeTruthy();
});
});
});
|
var fs = require('fs');
var util = require('util');
var path = require('path');
var pickFiles = require('broccoli-static-compiler');
var transpileES6 = require('broccoli-es6-module-transpiler');
var mergeTrees = require('broccoli-merge-trees');
var defeatureify = require('broccoli-defeatureify');
var concat = require('broccoli-concat');
var uglifyJavaScript = require('broccoli-uglify-js');
var writeFile = require('broccoli-file-creator');
var moveFile = require('broccoli-file-mover');
var removeFile = require('broccoli-file-remover');
var jshintTree = require('broccoli-jshint');
var replace = require('broccoli-replace');
var calculateVersion = require('./lib/calculate-version');
var env = process.env.EMBER_ENV || 'development';
var disableJSHint = !!process.env.NO_JSHINT || false;
var disableDefeatureify = !!process.env.NO_DEFEATUREIFY || env === 'test' || false;
var generateTemplateCompiler = require('./lib/broccoli-ember-template-compiler-generator');
var inlineTemplatePrecompiler = require('./lib/broccoli-ember-inline-template-precompiler');
function defeatureifyConfig(options) {
var stripDebug = false;
var options = options || {};
var configJson = JSON.parse(fs.readFileSync("features.json").toString());
if (configJson.hasOwnProperty('stripDebug')) { stripDebug = configJson.stripDebug; }
if (options.hasOwnProperty('stripDebug')) { stripDebug = options.stripDebug; }
return {
enabled: options.features || configJson.features,
debugStatements: options.debugStatements || configJson.debugStatements,
namespace: options.namespace || configJson.namespace,
enableStripDebug: stripDebug
};
}
function vendoredPackage(packageName) {
var libTree = pickFiles('packages/' + packageName + '/lib', {
files: ['main.js'],
srcDir: '/',
destDir: '/' + packageName
});
return moveFile(libTree, {
srcFile: packageName + '/main.js',
destFile: '/' + packageName + '.js'
});
};
function concatES6(sourceTrees, options) {
var loader = vendoredPackages['loader'];
var inputFiles = options.inputFiles;
var destFile = options.destFile;
if (util.isArray(sourceTrees)) {
sourceTrees = mergeTrees(sourceTrees, {overwrite: true});
}
sourceTrees = transpileES6(sourceTrees, {
moduleName: true
});
if (!disableDefeatureify) {
sourceTrees = defeatureify(sourceTrees, defeatureifyConfig(options.defeatureifyOptions));
}
var concatTrees = [loader, 'generators', iifeStart, iifeStop, sourceTrees];
if (options.includeLoader === true) {
inputFiles.unshift('loader.js');
}
if (options.bootstrapModule) {
var bootstrapTree = writeFile('bootstrap', 'requireModule("' + options.bootstrapModule + '");\n');
concatTrees.push(bootstrapTree);
inputFiles.push('bootstrap');
}
// do not modify inputFiles after here (otherwise IIFE will be messed up)
if (options.wrapInIIFE !== false) {
inputFiles.unshift('iife-start');
inputFiles.push('iife-stop');
}
if (options.includeLicense !== false) {
inputFiles.unshift('license.js');
}
if (options.vendorTrees) { concatTrees.push(options.vendorTrees); }
return concat(mergeTrees(concatTrees), {
wrapInEval: options.wrapInEval,
inputFiles: inputFiles,
outputFile: destFile
});
}
var testConfig = pickFiles('tests', {
srcDir: '/',
files: ['**/*.*'],
destDir: '/tests'
});
testConfig = replace(testConfig, {
files: [ 'tests/ember_configuration.js' ],
patterns: [
{ match: /\{\{FEATURES\}\}/g, replacement: JSON.stringify(defeatureifyConfig().enabled) }
]
});
var bowerFiles = [
pickFiles('config/package_manager_files', {
srcDir: '/',
destDir: '/'
}),
pickFiles('bower_components/qunit/qunit', {
srcDir: '/',
destDir: '/qunit'
}),
pickFiles('bower_components/jquery/dist', {
files: ['jquery.js'],
srcDir: '/',
destDir: '/jquery'
}),
pickFiles('bower_components/handlebars', {
files: ['handlebars.js'],
srcDir: '/',
destDir: '/handlebars'
}),
];
bowerFiles = mergeTrees(bowerFiles);
var iifeStart = writeFile('iife-start', '(function() {');
var iifeStop = writeFile('iife-stop', '})();');
var vendoredPackages = {
'loader': vendoredPackage('loader'),
'rsvp': vendoredPackage('rsvp'),
'metamorph': vendoredPackage('metamorph'),
'backburner': vendoredPackage('backburner'),
'router': vendoredPackage('router'),
'route-recognizer': vendoredPackage('route-recognizer')
};
var emberHandlebarsCompiler = pickFiles('packages/ember-handlebars-compiler/lib', {
files: ['main.js'],
srcDir: '/',
destDir: '/'
});
var templateCompilerTree = generateTemplateCompiler(emberHandlebarsCompiler, { srcFile: 'main.js'});
var packages = require('./lib/packages');
function es6Package(packageName) {
var pkg = packages[packageName],
libTree;
if (pkg['trees']) {
return pkg['trees'];
}
var dependencyTrees = packageDependencyTree(packageName);
var vendorTrees = packages[packageName].vendorTrees;
libTree = pickFiles('packages/' + packageName + '/lib', {
srcDir: '/',
files: ['**/*.js'],
destDir: packageName
});
libTree = moveFile(libTree, {
srcFile: packageName + '/main.js',
destFile: packageName + '.js'
});
libTree = mergeTrees([libTree, templateCompilerTree]);
libTree = inlineTemplatePrecompiler(libTree);
libTree = removeFile(libTree, {
srcFile: 'ember-template-compiler.js'
});
var libJSHintTree = jshintTree(libTree, {
destFile: '/' + packageName + '/tests/lib-jshint.js'
});
var testTree = pickFiles('packages/' + packageName + '/tests', {
srcDir: '/',
files: ['**/*.js'],
destDir: '/' + packageName + '/tests'
});
var testJSHintTree = jshintTree(testTree, {
destFile: '/' + packageName + '/tests/tests-jshint.js'
});
var testTrees;
if (disableJSHint) {
testTrees = testTree;
} else {
testTrees = mergeTrees([testTree, libJSHintTree, testJSHintTree]);
}
var compiledLib = concatES6([dependencyTrees, libTree], {
includeLoader: true,
vendorTrees: vendorTrees,
inputFiles: [packageName + '/**/*.js', packageName + '.js'],
destFile: '/packages/' + packageName + '.js'
})
var compiledTrees = [compiledLib];
var compiledTest = concatES6(testTrees, {
includeLoader: false,
inputFiles: ['**/*.js'],
destFile: '/packages/' + packageName + '-tests.js'
})
if (!pkg.skipTests) { compiledTrees.push(compiledTest); }
compiledTrees = mergeTrees(compiledTrees);
pkg['trees'] = {lib: libTree, compiledTree: compiledTrees, vendorTrees: vendorTrees};
if (!pkg.skipTests) { pkg['trees'].tests = testTrees; }
return pkg.trees;
}
function packageDependencyTree(packageName) {
var dependencyTrees = packages[packageName]['dependencyTrees'];
if (dependencyTrees) {
return dependencyTrees;
} else {
dependencyTrees = [];
}
var requiredDependencies = packages[packageName]['requirements'] || [];
var vendoredDependencies = packages[packageName]['vendorRequirements'] || [];
var libTrees = [];
var vendorTrees = [];
vendoredDependencies.forEach(function(dependency) {
vendorTrees.push(vendoredPackages[dependency]);
});
requiredDependencies.forEach(function(dependency) {
libTrees.concat(packageDependencyTree(dependency));
libTrees.push(es6Package(dependency).lib);
}, this);
packages[packageName]['vendorTrees'] = mergeTrees(vendorTrees, {overwrite: true});
return packages[packageName]['dependencyTrees'] = mergeTrees(libTrees, {overwrite: true});
}
var vendorTrees = [];
var sourceTrees = [];
var testTrees = [];
var compiledPackageTrees = [];
for (var packageName in packages) {
es6Package(packageName);
var currentPackage = packages[packageName];
var packagesTrees = currentPackage['trees'];
if (currentPackage['vendorRequirements']) {
currentPackage['vendorRequirements'].forEach(function(dependency) {
vendorTrees.push(vendoredPackages[dependency]);
});
}
if (packagesTrees.lib) {
sourceTrees.push(packagesTrees.lib);
}
if (packagesTrees.compiledTree) {
compiledPackageTrees.push(packagesTrees.compiledTree);
}
if (packagesTrees.tests) {
testTrees.push(packagesTrees.tests);
}
}
compiledPackageTrees = mergeTrees(compiledPackageTrees);
vendorTrees = mergeTrees(vendorTrees);
sourceTrees = mergeTrees(sourceTrees);
testTrees = mergeTrees(testTrees);
var compiledSource = concatES6(sourceTrees, {
includeLoader: true,
bootstrapModule: 'ember',
vendorTrees: vendorTrees,
inputFiles: ['**/*.js'],
destFile: '/ember.js'
});
function buildRuntimeTree() {
es6Package('ember-runtime');
var runtimeTrees = [packages['ember-runtime'].trees.lib];
var runtimeVendorTrees = packages['ember-runtime'].vendorRequirements.map(function(req){ return vendoredPackages[req] });
packages['ember-runtime'].requirements.forEach(function(req){
es6Package(req);
runtimeTrees.push(packages[req].trees.lib);
(packages[req].vendorRequirements || []).forEach(function(vreq) {
runtimeVendorTrees.push(vendoredPackages[vreq]);
});
});
var compiledRuntime = concatES6(mergeTrees(runtimeTrees), {
includeLoader: true,
bootstrapModule: 'ember-runtime',
vendorTrees: mergeTrees(runtimeVendorTrees),
inputFiles: ['**/*.js'],
destFile: '/ember-runtime.js'
});
return compiledRuntime;
}
var prodCompiledSource = removeFile(sourceTrees, {
srcFile: 'ember-debug.js'
});
prodCompiledSource = concatES6(prodCompiledSource, {
includeLoader: true,
bootstrapModule: 'ember',
vendorTrees: vendorTrees,
inputFiles: ['**/*.js'],
destFile: '/ember.prod.js',
defeatureifyOptions: {stripDebug: true}
});
var minCompiledSource = moveFile(prodCompiledSource, {
srcFile: 'ember.prod.js',
destFile: 'ember.min.js'
});
minCompiledSource = uglifyJavaScript(minCompiledSource);
var compiledTests = concatES6(testTrees, {
includeLoader: true,
inputFiles: ['**/*.js'],
destFile: '/ember-tests.js'
});
var distTrees = [templateCompilerTree, compiledSource, compiledTests, testConfig, bowerFiles];
if (env !== 'development') {
distTrees.push(prodCompiledSource);
distTrees.push(minCompiledSource);
distTrees.push(buildRuntimeTree());
//distTrees.push(compiledPackageTrees);
}
distTrees = mergeTrees(distTrees);
distTrees = replace(distTrees, {
files: [ '**/*.js', '**/*.json' ],
patterns: [
{ match: /VERSION_STRING_PLACEHOLDER/g, replacement: calculateVersion }
]
});
module.exports = distTrees;
|
'use strict';
const SudokuSolver = require('../controllers/sudoku-solver.js');
module.exports = function (app) {
let solver = new SudokuSolver();
app.route('/api/check')
.post((req, res) => {
let {puzzle, coordinate, value} = req.body;
if (!puzzle || !coordinate || !value) {
res.json({ error: 'Required field(s) missing' });
return;
}
let coord_row = solver.convertLetterToNumber(coordinate[0]);
let coord_col = coordinate[1];
if (puzzle.length != 81) {
res.json({ error: 'Expected puzzle to be 81 characters long' });
return;
}
if (!/^[.0-9]+$/.test(puzzle)) {
res.json({ error: 'Invalid characters in puzzle' });
return;
}
if (!/^[A-Ia-i][1-9]$/.test(coordinate)) {
res.json({ error: 'Invalid coordinate' });
return;
}
if (!/^[1-9]$/.test(value)) {
res.json({ error: 'Invalid value' });
return;
}
let conflicts = [];
let puzzleArr = solver.convertStringtoArr(puzzle);
if (!solver.checkRowPlacement(puzzleArr, coord_row - 1, coord_col - 1, value)) {
conflicts.push("row")
}
if (!solver.checkColPlacement(puzzleArr, coord_row - 1, coord_col - 1, value)) {
conflicts.push("column")
}
if (!solver.checkRegionPlacement(puzzleArr, coord_row - 1, coord_col - 1, value)) {
conflicts.push("region")
}
if (conflicts.length > 0) {
res.json({
valid: false,
conflict: conflicts
})
} else {
res.json({ valid: true })
}
});
app.route('/api/solve')
.post((req, res) => {
let puzzle = req.body.puzzle
if (!puzzle) {
res.json({ error: 'Required field missing' })
return;
}
if (!/^[.0-9]+$/.test(puzzle)) {
res.json({ error: 'Invalid characters in puzzle' });
return;
}
if (puzzle.length != 81) {
res.json({ error: 'Expected puzzle to be 81 characters long' });
return;
}
let puzzleArr = solver.convertStringtoArr(puzzle);
let solvedArr = solver.sudokuSolver(puzzleArr);
let solvedString = solver.arrToString(puzzleArr);
if (!/^[0-9]+$/.test(solvedString)) {
res.json({ error: 'Puzzle cannot be solved' });
return;
} else {
res.json({ solution: solvedString })
}
});
};
|
function getEditor(post) {
var simplemde = new SimpleMDE({
toolbar: [
"bold", "italic", "heading-2", "|",
"quote", "unordered-list", "ordered-list", "|",
"link", "code",
{
name: "insertImg",
action: openFileMgr,
className: "fa fa-folder-open",
title: "File Manager"
},
{
name: "insertYoutube",
action: insertYoutube,
className: "fa fa-youtube",
title: "Insert Youtube Video"
},
"|", "preview", "|", "guide"
],
blockStyles: {
bold: "__",
italic: "_"
},
element: document.getElementById("mdEditor"),
indentWithTabs: false,
insertTexts: {
horizontalRule: ["", "\n\n-----\n\n"],
image: [""],
link: ["[", "](#url#)"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"]
},
lineWrapping: true,
minHeight: "300px",
parsingConfig: {
allowAtxHeaderWithoutSpace: true,
strikethrough: false,
underscoresBreakWords: true
},
placeholder: "Type here...",
promptURLs: true,
renderingConfig: {
singleLineBreaks: false,
codeSyntaxHighlighting: true
},
shortcuts: {
drawTable: "Cmd-Alt-T"
},
spellChecker: true,
status: ["lines", "words"],
styleSelectedText: false,
syncSideBySidePreviewScroll: false
});
var txt = post.content ? post.content : '';
simplemde.value(txt
.replace(/
/g, '\r\n')
.replace(/
/g, '')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"'));
return simplemde;
}
var _editor = {};
function openFileMgr(editor) {
_editor = editor;
fileManagerController.open(insertImageCallback);
}
function insertYoutube(editor) {
_editor = editor;
var id = prompt("Please enter video ID", "");
if (id !== null && id !== "") {
var tag = '<iframe width="640" height="480" src="http://www.youtube.com/embed/' + id + '" frameborder="0" allowfullscreen></iframe>';
var cm = _editor.codemirror;
cm.replaceSelection(tag);
}
}
// Create the measurement node for scrollbar
var scrollDiv = document.createElement("div");
scrollDiv.className = "scrollbar-measure";
document.body.appendChild(scrollDiv);
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
document.body.removeChild(scrollDiv);
|
// worker.js
const CACHE_NAME = 'pwa-demo';
self.addEventListener('install', function (event) {
event.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
return cache.addAll(
[
'https://examples.cse135.site/pwa-demo/products.json'
]
);
})
);
});
self.addEventListener('activate', function (event) {
event.waitUntil(self.clients.claim());
});
self.addEventListener('fetch', function (event) {
event.respondWith(
caches.open(CACHE_NAME).then(function (cache) {
return cache.match(event.request).then(function (response) {
return response || fetch(event.request)
.then(function (response) {
cache.put(event.request, response.clone());
return response;
});
});
})
);
});
|
module.exports = {
GraphQLTodo: require('./todo'),
GraphQLProject: require('./project')
};
|
const express = require('express');
const app = express();
const server = require('http').Server(app);
const io = require('socket.io')(server);
var rooms = {};
server.listen(80, function () {
console.log("Server started");
});
app.use(express.static("static"));
function leaveRoom (socket, room) {
let r = rooms[room];
socket.leave(room);
if (r) {
if (r.player1 == socket) r.player1 = null;
else if (r.player2 == socket) r.player2 = null;
if (r.state === "started" && (!r.player1 || !r.player2)) {
r.state = "paused";
r.countdown = 3;
io.to(room).emit("pause");
}
}
}
io.on('connection', function (socket) {
console.log("A fucker joined : " + socket.id);
socket.role = 0;
socket.drawn = false;
socket.room = socket.id;
socket.on("joinroom", function (data) {
if (socket.room !== socket.id) {
leaveRoom(socket, socket.room);
}
socket.join(data.room);
console.log(socket.id + " joined room " + data.room);
socket.room = data.room;
socket.drawn = false;
socket.isDead = false;
socket.ready = false;
socket.score = 0;
if (rooms[data.room]) {
let role = 3;
if (!rooms[data.room].player1) {
rooms[data.room].player1 = socket;
role = 1;
} else if (!rooms[data.room].player2) {
rooms[data.room].player2 = socket;
role = 2;
}
socket.role = role;
} else {
rooms[data.room] = {
player1: socket,
player2: null,
state: "paused",
countdown: 3,
timeoutID: null
};
socket.role = 1;
}
socket.emit(
"joingame",
{ role: socket.role },
() => {
const room = rooms[socket.room];
if (room.state === "started") {
socket.emit("start", {
player1: { drawn: room.player1.drawn },
player2: { drawn: room.player2.drawn },
countdown: room.countdown
});
}
}
);
console.log("Gave " + socket.id + " a role of " + socket.role + " in room " + data.room);
});
socket.on("disconnect", function () {
console.log("A fucker left : " + socket.id + ", room : " + socket.room);
leaveRoom(socket, socket.room);
});
socket.on("handmove", function (handRatio) {
socket.broadcast.to(socket.room).emit("handmove", { role: socket.role, handRatio });
});
socket.on("draw", function () {
socket.drawn = true;
socket.broadcast.to(socket.room).emit("draw", { role: socket.role });
});
socket.on("cock", function () {
socket.broadcast.to(socket.room).emit("cock", { role: socket.role });
});
socket.on("fumble", function () {
socket.broadcast.to(socket.room).emit("fumble", { role: socket.role });
});
socket.on("dodge", function (data) {
socket.broadcast.to(socket.room).emit("dodge", { role: socket.role, side: data.side });
});
socket.on("fire", function (data) {
socket.broadcast.to(socket.room).emit("fire", {
role: socket.role, x: data.x, y: data.y, empty: data.empty
});
});
socket.on("getshot", function (data) {
socket.broadcast.to(socket.room).emit("getshot", { role: data.role });
});
socket.on("die", function (data) {
socket.broadcast.to(socket.room).emit("die", { role: data.role });
const room = rooms[socket.room];
room["player" + data.role].isDead = true;
let id = room.timeoutID;
if (id) clearTimeout(id)
room.timeoutID = setTimeout(function () {
let win = 0;
if (!room.player1.isDead ||
!room.player2.isDead)
{
if (room.player1.isDead) {
room.player2.score++;
win = 2;
}
else {
room.player1.score++;
win = 1;
}
}
io.to(socket.room).emit("roundend", {
win,
player1: room.player1.score,
player2: room.player2.score
});
room.timeoutID = null;
}, 1000);
});
socket.on("ready", function (data) {
const room = rooms[socket.room];
room["player" + socket.role].ready = true;
if (room.player1 && room.player1.ready &&
room.player2 && room.player2.ready) {
room.player1.ready = false;
room.player2.ready = false;
room.player1.isDead = false;
room.player2.isDead = false;
room.player1.drawn = false;
room.player2.drawn = false;
room.state = "started";
room.countdown = 3;
io.to(socket.room).emit("start", {
player1: { drawn: false },
player2: { drawn: false },
countdown: 3
});
let cdInt = setInterval(() => {
room.countdown--;
io.to(socket.room).emit("countdown", { countdown:room.countdown });
if (room.countdown <= 0) clearInterval(cdInt);
}, 1000);
console.log("Game started in room " + socket.room);
}
});
});
|
const UrlParser = {
parseActiveUrlWithCombiner() {
const url = window.location.hash.slice(1).toLowerCase();
const splitedUrl = this._urlSplitter(url);
return this._urlCombiner(splitedUrl);
},
parseActiveUrlWithoutCombiner() {
const url = window.location.hash.slice(1).toLowerCase();
return this._urlSplitter(url);
},
_urlSplitter(url) {
const urlsSplits = url.split('/');
return {
resource: urlsSplits[1] || null,
id: urlsSplits[2] || null,
verb: urlsSplits[3] || null,
};
},
_urlCombiner(splitedUrl) {
return (splitedUrl.resource ? `/${splitedUrl.resource}` : '/')
+ (splitedUrl.id ? '/:id' : '')
+ (splitedUrl.verb ? `/${splitedUrl.verb}` : '');
},
};
export default UrlParser;
|
var Encore = require('@symfony/webpack-encore');
Encore
// directory where compiled assets will be stored
.setOutputPath('web/build/')
.copyFiles({
from: './publics/uploads/images/',
// optional target path, relative to the output dir
//to: 'products',
// if versioning is enabled, add the file hash too
//to: 'images/[path][name].[hash:8].[ext]',
// only copy files matching this pattern
//pattern: /\.(png|jpg|jpeg)$/
})
// public path used by the web server to access the output path
.setPublicPath('/build')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
/*
* ENTRY CONFIG
*
* Add 1 entry for each "page" of your app
* (including one that's included on every page - e.g. "app")
*
* Each entry will result in one JavaScript file (e.g. app.js)
* and one CSS file (e.g. app.css) if you JavaScript imports CSS.
*/
.addEntry('app', './assets/js/app.js')
//.addEntry('page1', './assets/js/page1.js')
//.addEntry('page2', './assets/js/page2.js')
// will require an extra script tag for runtime.js
// but, you probably want this, unless you're building a single-page app
.enableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
// enables hashed filenames (e.g. app.abc123.css)
.enableVersioning(Encore.isProduction())
// uncomment if you use TypeScript
//.enableTypeScriptLoader()
// uncomment if you use Sass/SCSS files
.enableSassLoader()
// uncomment if you're having problems with a jQuery plugin
//.autoProvidejQuery()
;
module.exports = Encore.getWebpackConfig();
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Adds a package to the package.json
*/
function addPackageToPackageJson(host, type, pkg, version) {
if (host.exists('package.json')) {
const sourceText = host.read('package.json').toString('utf-8');
const json = JSON.parse(sourceText);
if (!json[type]) {
json[type] = {};
}
if (!json[type][pkg]) {
json[type][pkg] = version;
}
host.overwrite('package.json', JSON.stringify(json, null, 2));
}
return host;
}
exports.addPackageToPackageJson = addPackageToPackageJson;
//# sourceMappingURL=package.js.map
|
#!/usr/bin/env node
require('./src/util/init');
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const cli = require('command-line-args');
const clu = require('command-line-usage');
const config = require('./src/config');
const cliConfig = require('./src/config/rco/cli');
const cluConfig = require('./src/config/rco/clu');
const history = require('./src/util/history');
const l = require('./src/util/log');
const createCbz = require('./src/util/create-cbz');
const chapterCleanup = require('./src/util/chapter-cleanup');
const options = cli(cliConfig);
const usage = clu(cluConfig);
const getCollection = require('./src/rco/get-collection');
const getChapter = require('./src/rco/get-chapter');
const getPage = require('./src/rco/get-page');
if (!options.url) {
console.log(usage);
process.exit();
} else {
l.log('============================');
l.log(`START using options:`.green);
for (const key in options) {
l.info(` ${key} : ${options[key]}`);
}
history(options.url);
}
// build up collection -> chapter -> img paths
options.collectionPath = `${config.outDir}/rco/${path.basename(options.url)}`;
// RCO adds `-YYYY` to the name
if (options.collectionPath.search(/\-[\d]{4}$/) > -1) {
options.collectionPath = options.collectionPath.substring(0, (options.collectionPath.length - 5));
}
mkdirp.sync(options.collectionPath);
const completedChapters = [];
(async () => {
const chapters = await getCollection(options).catch(err => {
l.error(`@getChapter got error ${err}`);
});
chapters.sort();
l.debug(`chapters`);
l.debug(chapters.join('\n '));
const chapterIsDone = async () => {
if (chapters.length > 0) {
const c = chapters.shift();
l.info(`working on ${c}`);
// /foo/bar/out/rco/comic-name/009
const imgDest = `${options.collectionPath}/${path.basename(c).padStart(3, '0')}`;
mkdirp.sync(imgDest);
// for cleanup
completedChapters.push(imgDest);
// /foo/bar/out/rco/comic-name/comic-name-009.cbz
const cbzDest = `${options.collectionPath}/${path.basename(options.collectionPath)}-${path.basename(c).padStart(3, '0')}.cbz`;
// skip if CBZ exists
if (!fs.existsSync(cbzDest) || options['force-archive'] === true) {
const pages = await getChapter(c, options).catch(err => {
l.error(`[${c}] got error: ${err}`);
});
l.debug(`pages`);
l.debug(pages.join('\n '));
const pageIsDone = async function() {
if (pages.length > 0) {
const page = pages.shift();
const pageDest = `${imgDest}/${path.basename(page).padStart(3, '0')}.jpg`;
if (fs.existsSync(pageDest)) {
l.debug(`found ${pageDest} - skipping`);
pageIsDone();
} else {
getPage(page, pageDest, options)
.then(pageIsDone)
.catch(err => {
l.error(`getPage error: ${err}`);
});
}
} else {
l.debug(`${c} is done`);
await createCbz(imgDest, cbzDest);
chapterIsDone();
}
}
pageIsDone();
} else {
l.warn(`.${cbzDest.replace(__dirname, '')} exists - skipping chapter`);
chapterIsDone();
}
} else {
l.log(`DONE with ${options.url}`);
chapterCleanup(completedChapters);
}
}
chapterIsDone();
})();
|
/**
* Module dependencies.
*/
var express = require('../../');
var app = module.exports = express();
// ignore GET /favicon.ico
app.use(express.favicon());
// pass a secret to cookieParser() for signed cookies
app.use(express.cookieParser('manny is cool'));
// add req.session cookie support
app.use(express.cookieSession());
// do something with the session
app.use(count);
// custom middleware
function count(req, res) {
req.session.count = req.session.count || 0;
var n = req.session.count++;
res.send('viewed ' + n + ' times\n');
}
if (!module.parent) {
app.listen(3000);
console.log('Express server listening on port 3000');
}
|
const knex = require('knex');
const config = require('../../knexfile');
const dbEnv = process.env.DB_ENV || 'development';
module.exports = knex(config[dbEnv]);
|
(function(){
var app = angular.module('directives', ['datas']);
app.directive("ajoutProjetForm", function(Datas) {
return {
templateUrl: 'ajout-projet-form.html',
controller: function(){
this.projet = {};
this.addProjet = function(){
Datas.addProjet(this.projet);
this.projet = {};
};
},
controllerAs: 'ajoutFormCtrl'
};
});
app.directive("filtrageProjetForm", function() {
return {
templateUrl: 'filtrage-projet-form.html'
};
});
app.directive("projet", function() {
return {
templateUrl: 'projet.html'
};
});
app.directive("listeProjets", function() {
return {
templateUrl: 'liste-projets.html'
};
});
})();
|
! function() { "use strict"; var t = { Android: function() { return navigator.userAgent.match(/Android/i) }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i) }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i) }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i) }, Windows: function() { return navigator.userAgent.match(/IEMobile/i) }, any: function() { return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() } },
e = function() { $(".js-counter").countTo({ formatter: function(t, e) { return t.toFixed(e.decimals) } }) },
i = function(t) { var e = $("#navbar > ul");
e.find("li").removeClass("active"), e.each(function() { $(this).find('a[data-nav-section="' + t + '"]').closest("li").addClass("active") }) };
$(function() { var a, n;
t.any() || ($(".js-fullheight").css("height", $(window).height()), $(window).resize(function() { $(".js-fullheight").css("height", $(window).height()) })), e(), $("#colorlib-counter").length > 0 && $("#colorlib-counter").waypoint(function(t) { "down" !== t || $(this.element).hasClass("animated") || (setTimeout(e, 400), $(this.element).addClass("animated")) }, { offset: "90%" }), $(".animate-box").waypoint(function(t) { "down" !== t || $(this.element).hasClass("animated") || ($(this.element).addClass("item-animate"), setTimeout(function() { $("body .animate-box.item-animate").each(function(t) { var e = $(this);
setTimeout(function() { var t = e.data("animate-effect"); "fadeIn" === t ? e.addClass("fadeIn animated") : "fadeInLeft" === t ? e.addClass("fadeInLeft animated") : "fadeInRight" === t ? e.addClass("fadeInRight animated") : e.addClass("fadeInUp animated"), e.removeClass("item-animate") }, 0) }) }, 0)) }, { offset: "85%" }), $(".js-colorlib-nav-toggle").on("click", function(t) { t.preventDefault(); var e = $(this);
$("body").hasClass("offcanvas") ? (e.removeClass("active"), $("body").removeClass("offcanvas")) : (e.addClass("active"), $("body").addClass("offcanvas")) }), $('#navbar a:not([class="external"])').click(function(t) { var e = $(this).data("nav-section"),
i = $("#navbar"); return $('[data-section="' + e + '"]').length && $("html, body").animate({ scrollTop: $('[data-section="' + e + '"]').offset().top - 55 }, 500), i.is(":visible") && (i.removeClass("in"), i.attr("aria-expanded", "false"), $(".js-colorlib-nav-toggle").removeClass("active")), t.preventDefault(), !1 }), (a = $("section[data-section]")).waypoint(function(t) { "down" === t && i($(this.element).data("section")) }, { offset: "150px" }), a.waypoint(function(t) { "up" === t && i($(this.element).data("section")) }, { offset: function() { return 155 - $(this.element).height() } }), $(document).click(function(t) { var e = $("#colorlib-aside, .js-colorlib-nav-toggle");
e.is(t.target) || 0 !== e.has(t.target).length || $("body").hasClass("offcanvas") && ($("body").removeClass("offcanvas"), $(".js-colorlib-nav-toggle").removeClass("active")) }), $(window).scroll(function() { $("body").hasClass("offcanvas") && ($("body").removeClass("offcanvas"), $(".js-colorlib-nav-toggle").removeClass("active")) }), $("#colorlib-hero .flexslider").flexslider({ animation: "fade", slideshowSpeed: 5e3, directionNav: !0, start: function() { setTimeout(function() { $(".slider-text").removeClass("animated fadeInUp"), $(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp") }, 500) }, before: function() { setTimeout(function() { $(".slider-text").removeClass("animated fadeInUp"), $(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp") }, 500) } }), n = $(".image-content").outerHeight(), $(window).width() <= 992 ? $("#sticky_item").trigger("sticky_kit:detach") : ($(".sticky-parent").removeClass("stick-detach"), $("#sticky_item").trigger("sticky_kit:detach"), $("#sticky_item").trigger("sticky_kit:unstick")), $(window).resize(function() { var t = $(".image-content").outerHeight();
$(".sticky-parent").css("height", t), $(window).width() <= 992 ? $("#sticky_item").trigger("sticky_kit:detach") : ($(".sticky-parent").removeClass("stick-detach"), $("#sticky_item").trigger("sticky_kit:detach"), $("#sticky_item").trigger("sticky_kit:unstick"), $("#sticky_item").stick_in_parent()) }), $(".sticky-parent").css("height", n), $("#sticky_item").stick_in_parent(), $(".owl-carousel").owlCarousel({ animateOut: "fadeOut", animateIn: "fadeIn", autoplay: !0, loop: !0, margin: 0, nav: !0, dots: !1, autoHeight: !0, items: 1, navText: ["<i class='icon-arrow-left3 owl-direction'></i>", "<i class='icon-arrow-right3 owl-direction'></i>"] }) }) }();
|
'use strict';
const AWS = require('aws-sdk');
const Slack = require('slack');
/**
* Handles the http request, calls the bot lambda and responds the request with data
* @async
* @param {Object} data
* @return {Object}
*/
module.exports.run = async ( data ) =>
{
const dataObject = JSON.parse( data.body );
// The response we will return to Slack
let response = {
statusCode: 200,
body : {},
// Tell slack we don't want retries, to avoid multiple triggers of this lambda
headers : { 'X-Slack-No-Retry': 1 }
};
try {
// If the Slack retry header is present, ignore the call to avoid triggering the lambda multiple times
if ( !( 'X-Slack-Retry-Num' in data.headers ) )
{
switch ( dataObject.type )
{
case 'url_verification':
response.body = verifyCall( dataObject );
break;
case 'event_callback':
await handleMessage( dataObject.event );
response.body = { ok: true };
break;
default:
response.statusCode = 400,
response.body = 'Empty request';
break;
}
}
}
catch( err )
{
response.statusCode = 500,
response.body = JSON.stringify( err )
}
finally
{
return response;
}
}
/**
* Verifies the URL with a challenge - https://api.slack.com/events/url_verification
* @param {Object} data The event data
*/
function verifyCall( data )
{
if ( data.token === process.env.VERIFICATION_TOKEN )
{
return data.challenge;
}
else {
throw 'Verification failed';
}
}
/**
* Process the message and executes an action based on the message received
* @async
* @param {Object} message The Slack message object
*/
async function handleMessage( message )
{
// Makes sure the bot was actually mentioned
if ( !message.bot_id )
{
// Gets the command from the message
let command = parseMessage( message.text );
// Executes differend commands based in the specified instruction
switch ( command )
{
case 'invalidate_cdn':
const invalidationData = await invalidateDistribution();
await sendSlackMessage( message.channel,
`Sir/Madam, I've just invalidated the cache, this is the invalidation ID. *${invalidationData.Invalidation.Id}*` );
break;
default:
await sendSlackMessage( message.channel,
`Sir/Madam, I don't understand what you need. Please use \`@${process.env.BOT_NAME} invalidate_cdn\` to clear the CDN cache.` );
break;
}
}
}
/**
* Sends a message to Slack
* @param {String} channel
* @param {String} message
* @return {Promise}
*/
function sendSlackMessage( channel, message )
{
const params = {
token : process.env.BOT_TOKEN,
channel: channel,
text : message
};
return Slack.chat.postMessage( params );
}
/**
* Parses the command/intent from the text of a message received by the bot
* @param {String} message
* @return {String}
*/
function parseMessage( message )
{
return message.split( ' ', 2 ).pop();
}
/**
* Creates an invalidation in the configured CloudFront distribution and returns the invalidation ID
* @return {Promise|String}
*/
function invalidateDistribution()
{
const CloudFront = new AWS.CloudFront();
// Invalidation parameters
const params = {
DistributionId: process.env.CDN_DISTRIBUTION,
InvalidationBatch: {
CallerReference: Date.now() + '',
Paths: {
Quantity: '1',
Items: [
'/*'
]
}
}
};
return new Promise( ( resolve, reject ) =>
{
// Call the CloudFront wrapper to invalidate the CDN cache
CloudFront.createInvalidation( params, ( err, data ) =>
{
if ( err ) reject( err );
else resolve( data );
} );
} );
}
|
const express = require("express");
const mongoose = require("mongoose");
const cors = require('cors');
const routes = require('./routes');
const app = express();
mongoose.connect(
"mongodb+srv://omnistack:omnistack@cluster0-qny8w.mongodb.net/week10?retryWrites=true&w=majority",
{
useNewUrlParser: true,
useUnifiedTopology: true
}
);
app.use(cors());
app.use(express.json());
app.use(routes);
app.listen(3333);
|
/**
* University of La Laguna
* Computer engineering
* Subject: Programming of interactive applications
*
* @author Óscar Moreira Estévez
* @author Adal Díaz Fariña
* @date 14-03-2021
* @brief Code for Exercism's challenge "Armstrong Numbers"
*/
'use strict';
/**
* @description Returns whether or not it is an Armstrong Number
* @param {Number} num
* @returns Boolean
*/
const isArmstrongNumber = (num) => {
let number = num.toString();
let exponent = num.toString().length;
let sum = 0;
for (let i = 0; i < exponent; i++) {
sum += Math.pow(Number(number.charAt(i)), exponent);
}
if (sum === num) {
return true;
}
return false;
};
module.exports = {isArmstrongNumber};
|
import Ember from 'ember';
import UsesSettings from '../mixins/uses-settings';
import layout from '../templates/components/md-modal';
import {
EKMixin,
keyUp
} from 'ember-keyboard';
const {
Component,
computed,
computed: {
oneWay
},
String: {
htmlSafe
},
on
} = Ember;
export default Component.extend(EKMixin, UsesSettings, {
layout,
attributeBindings: ['style:inlineStyle'],
concatenatedProperties: ['modalClassNames'],
inlineStyle: computed(function() {
return htmlSafe('z-index: 1000;');
}),
isFooterFixed: oneWay('_mdSettings.modalIsFooterFixed'),
modalClassNames: ['modal', 'show'],
_modalClassString: computed('modalClassNames.[]', 'isFooterFixed', function() {
const names = this.get('modalClassNames');
if (this.get('isFooterFixed')) {
names.push('modal-fixed-footer');
}
return names.join(' ');
}),
init() {
this._super(...arguments);
this.set('keyboardActivated', true);
},
_onEsc: on(keyUp('Escape'), function() {
this.cancel();
}),
cancel() {
this.sendAction('close');
},
actions: {
closeModal() {
this.sendAction('close');
}
}
});
|
/*
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
vis.projectionView = function () {
let projectionView = {},
size = [],
labels = [],
width = 350,
height = 140,
margin = 10,
position = [],
top_k = 5,
canvas,
pred_des = [],
legend_svg,
legend_size = 15,
indent = 5,
font_size;
//=======================
// Public Functions
//=======================
projectionView.position = function(_) {
position = _;
let coord_max = position.reduce((max, p) => +p.x > max ? +p.x : max, position[0].x),
coord_min = position.reduce((min, p) => +p.x < min ? +p.x : min, position[0].x);
xScale = d3.scaleLinear()
.domain([coord_min, coord_max])
.range([margin, size[0]-margin]);
ccoord_max = position.reduce((max, p) => +p.y > max ? +p.y : max, +position[0].y);
coord_min = position.reduce((min, p) => +p.y < min ? +p.y : min, +position[0].y);
yScale = d3.scaleLinear()
.domain([coord_min, coord_max])
.range([margin, size[1]-margin]);
return projectionView;
}
projectionView.model_output = function(_) {
model_output = _;
return projectionView;
}
projectionView.container = function(_) {
canvas = _.select("canvas")
size = [canvas.attr('width'), canvas.attr('height')];
legend_svg = d3.select("#projection_legend");
return projectionView;
}
projectionView.render = function() {
render_list();
return projectionView;
}
projectionView.highlight_subpopulation = function(doc_list, rule_idx=undefined) {
render_list(doc_list, true, rule_idx);
return projectionView;
}
projectionView.make_legend = function() {
legend_svg.append("rect")
.attr("x", indent)
.attr("y", margin)
.attr("width", legend_size)
.attr("height", legend_size)
.attr("fill", vis.projectColor['error'])
.attr("stroke", "none");
legend_svg.append("text")
.attr("x", indent+legend_size+margin)
.attr("y", margin+legend_size)
.text("error");
x_offset = indent + legend_size + 50;
legend_svg.append("rect")
.attr("x", x_offset)
.attr("y", margin)
.attr("width", legend_size)
.attr("height", legend_size)
.attr("fill", vis.projectColor['right'])
.attr("stroke", "none");
legend_svg.append("text")
.attr("x", x_offset+legend_size+margin)
.attr("y", margin+legend_size)
.text("correct");
return projectionView;
}
//=======================
// Private Functions
//=======================
function render_list(doc_list=undefined, highlight=false, rule_idx=undefined) {
let context = canvas.node().getContext('2d');
// clear existing points
context.clearRect(0, 0, size[0], size[1]);
// draw scatterplot
if (highlight) {
for (let i = 0; i < doc_list.length; i++) {
let j = doc_list[i];
let is_error = +(+model_output[j]['y_gt'] !== +model_output[j]['y_pred']);
context.fillStyle = is_error ? vis.projectColor['error'] : vis.projectColor['right'];
drawPoint(xScale(position[j].x), yScale(position[j].y), context);
}
if (rule_idx == undefined) {
d3.select('#proj_rid')
.html("Edited rule")
} else {
d3.select('#proj_rid')
.html(`Rule ${rule_idx+1}`)
}
} else {
for (let i = 0; i < d3.min([position.length, 5000]); i++) {
let is_error = +(+model_output[i]['y_gt'] !== +model_output[i]['y_pred']);
context.fillStyle = is_error ? vis.projectColor['error'] : vis.projectColor['right'];
drawPoint(xScale(position[i].x), yScale(position[i].y), context);
}
d3.select('#proj_rid')
.html("all")
}
}
function drawPoint(x, y, canvas){
canvas.beginPath();
canvas.arc(x, y, 2, 0, 2 * Math.PI, true);
canvas.fill();
}
return projectionView;
}
|
import path from 'path';
import typescript from 'rollup-plugin-typescript2';
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import sass from 'sass';
import scss from 'rollup-plugin-scss';
import postcss from 'postcss';
import autoprefixer from 'autoprefixer';
import serve from 'rollup-plugin-serve';
import livereload from 'rollup-plugin-livereload';
import alphaPkg from './packages/package-alpha/package.json';
import betaPkg from './packages/package-beta/package.json';
const resolve = (...args) => path.resolve(__dirname, ...args);
const IS_DEVELOPMENT = process.env.NODE_ENV !== 'production';
const PRODUCTON_DIR = resolve('packages/package-alpha/dist');
const STATIC_DIR = resolve('public');
const extensions = ['.js', '.ts'];
const alphaPkgInfo = {
name: 'alpha',
path: 'packages/package-alpha',
src: './src/index.ts',
pkg: alphaPkg,
};
const pkgs = [
alphaPkgInfo,
{
name: 'beta',
path: 'packages/package-beta',
src: './lib/index.ts',
pkg: betaPkg,
}
];
const prodConfig = pkgs.map((pkgInfo) => {
const { name, pkg, path: pkgPath, src } = pkgInfo;
const _config = {
input: resolve(pkgPath, src),
output: [
{
format: 'umd',
name,
file: resolve(pkgPath, pkg.main || `dist/${name}.umd.js`),
globals: {
'@babel/runtime/regenerator': 'regeneratorRuntime',
},
},
{
format: 'es',
file: resolve(pkgPath, pkg.module || `dist/${name}.es.js`),
},
],
external: [/@babel\/runtime\/regenerator/, /regenerator\-runtime/],
plugins: [
nodeResolve({
extensions,
modulesOnly: true,
}),
commonjs({
sourceMap: false,
}),
replace({
preventAssignment: true,
values: {
'process.env.NODE_ENV': JSON.stringify('production'),
},
}),
typescript({
tsconfig: './tsconfig.json',
cacheRoot: '.yarn/.cache/rollup-plugin-typescript2',
}),
],
};
return _config;
});
// 开发模式只启用播放器模块
const devConfig = (function() {
const { name, pkg, path: pkgPath, src } = alphaPkgInfo;
return {
input: resolve(pkgPath, src),
output: [
{
format: 'umd',
name,
file: resolve(pkgPath, pkg.main || `dist/${name}.umd.js`),
globals: {
'@babel/runtime/regenerator': 'regeneratorRuntime',
},
},
],
external: [/@babel\/runtime\/regenerator/, /regenerator\-runtime/],
plugins: [
nodeResolve({
extensions,
modulesOnly: true,
}),
commonjs({
sourceMap: false,
}),
typescript({
tsconfig: './tsconfig.json',
cacheRoot: '.yarn/.cache/rollup-plugin-typescript2',
}),
replace({
preventAssignment: true,
values: {
'process.env.NODE_ENV': JSON.stringify('development'),
},
}),
serve({
contentBase: [STATIC_DIR, PRODUCTON_DIR],
open: true,
}),
livereload({
watch: [STATIC_DIR, PRODUCTON_DIR],
}),
scss({
sass,
processor: () => postcss([autoprefixer()]),
output: resolve(PRODUCTON_DIR, 'alpha.css'),
}),
],
};
})();
const config = [];
if (IS_DEVELOPMENT) {
config.push(devConfig);
} else {
config.push(...prodConfig);
}
export default () => config;
|
/* eslint-disable react/display-name */
import React from 'react';
import { Link } from 'gatsby';
import AboutSection from '../components/aboutSection';
import Header from '../components/header';
import SocialNav from '../components/socialNav';
import Galaxy from '../components/galaxy/galaxy';
import styles from './index.module.scss';
export default () => (
<div>
<Galaxy />
<Header />
<div className={styles.linkWrapper}>
<Link to="/" id={styles.link} className={styles.glow}>Home</Link>
</div>
<SocialNav />
<main>
<div className={styles.pageContainer}>
<AboutSection />
</div>
</main>
</div>
);
|
/*
* MinIO Cloud Storage (C) 2016, 2018 MinIO, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from "react"
import { connect } from "react-redux"
import logo from "../../img/logo2.svg"
import Alert from "../alert/Alert"
import * as actionsAlert from "../alert/actions"
import InputGroup from "./InputGroup"
import web from "../web"
import { Redirect, Link } from "react-router-dom"
import OpenIDLoginButton from './OpenIDLoginButton'
export class Login extends React.Component {
constructor(props) {
super(props)
this.state = {
accessKey: "",
secretKey: "",
discoveryDoc: {},
clientId: ""
}
}
// Handle field changes
accessKeyChange(e) {
this.setState({
accessKey: e.target.value
})
}
secretKeyChange(e) {
this.setState({
secretKey: e.target.value
})
}
handleSubmit(event) {
event.preventDefault()
const { showAlert, clearAlert, history } = this.props
let message = ""
if (this.state.accessKey === "") {
message = "Access Key cannot be empty"
}
if (this.state.secretKey === "") {
message = "Secret Key cannot be empty"
}
if (message) {
showAlert("danger", message)
return
}
web
.Login({
username: this.state.accessKey,
password: this.state.secretKey
})
.then(res => {
// Clear alerts from previous login attempts
clearAlert()
history.push("/")
})
.catch(e => {
showAlert("danger", e.message)
})
}
componentWillMount() {
const { clearAlert } = this.props
// Clear out any stale message in the alert of previous page
clearAlert()
document.body.classList.add("is-guest")
}
componentDidMount() {
web.GetDiscoveryDoc().then(({ DiscoveryDoc, clientId }) => {
this.setState({
clientId,
discoveryDoc: DiscoveryDoc
})
})
}
componentWillUnmount() {
document.body.classList.remove("is-guest")
}
render() {
const { clearAlert, alert } = this.props
if (web.LoggedIn()) {
return <Redirect to={"/"} />
}
let alertBox = <Alert {...alert} onDismiss={clearAlert} />
// Make sure you don't show a fading out alert box on the initial web-page load.
if (!alert.message) alertBox = ""
const showOpenID = Boolean(this.state.discoveryDoc && this.state.discoveryDoc.authorization_endpoint)
return (
<div className="login">
{alertBox}
<div className="l-wrap">
<form onSubmit={this.handleSubmit.bind(this)}>
<InputGroup
value={this.state.accessKey}
onChange={this.accessKeyChange.bind(this)}
className="ig-dark"
label="Access Key"
id="accessKey"
name="username"
type="text"
spellCheck="false"
required="required"
autoComplete="username"
/>
<InputGroup
value={this.state.secretKey}
onChange={this.secretKeyChange.bind(this)}
className="ig-dark"
label="Secret Key"
id="secretKey"
name="password"
type="password"
spellCheck="false"
required="required"
/>
<button className="lw-btn" type="submit">
<i className="fas fa-sign-in-alt" />
</button>
</form>
{showOpenID && (
<div className="openid-login">
<div className="or">or</div>
{
this.state.clientId ? (
<OpenIDLoginButton
className="btn openid-btn"
clientId={this.state.clientId}
authEp={this.state.discoveryDoc.authorization_endpoint}
authScopes={this.state.discoveryDoc.scopes_supported}
>
Log in with OpenID
</OpenIDLoginButton>
) : (
<Link to={"/login/openid"} className="btn openid-btn">
Log in with OpenID
</Link>
)
}
</div>
)}
</div>
<div className="l-footer">
<a className="lf-logo" href="">
<img src={logo} alt="" />
</a>
<div className="lf-server">{window.location.host}</div>
</div>
</div>
)
}
}
const mapDispatchToProps = dispatch => {
return {
showAlert: (type, message) =>
dispatch(actionsAlert.set({ type: type, message: message })),
clearAlert: () => dispatch(actionsAlert.clear())
}
}
export default connect(
state => state,
mapDispatchToProps
)(Login)
|
/**
* @license Angular v9.1.13
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@angular/router",["exports","@angular/common","@angular/core","rxjs","rxjs/operators"],e):e(((t=t||self).ng=t.ng||{},t.ng.router={}),t.ng.common,t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,n,o){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function a(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function t(e){for(var r,n=1,o=arguments.length;n<o;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)};function s(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var d,g=function(t){function e(e,r,n,o){void 0===n&&(n="imperative"),void 0===o&&(o=null);var i=t.call(this,e,r)||this;return i.navigationTrigger=n,i.restoredState=o,i}return a(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(d=function d(t,e){this.id=t,this.url=e}),v=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.urlAfterRedirects=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(d),m=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.reason=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(d),y=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.error=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(d),S=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),w=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),b=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r)||this;return a.urlAfterRedirects=n,a.state=o,a.shouldActivate=i,a}return a(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(d),C=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),R=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),U=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),P=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),O=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),_=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),x=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),A=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),T=function(){function t(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),E=s([r.Component({template:"<router-outlet></router-outlet>"})],(function E(){})),j=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function k(t){return new j(t)}function I(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function L(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var a=n[i],u=t[i];if(a.startsWith(":"))o[a.substring(1)]=u;else if(a!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var M=function M(t,e){this.routes=t,this.module=e};function N(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r];q(n,D(e,n))}}function q(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&N(t.children,e)}function D(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function z(t){var e=t.children&&t.children.map(z),r=e?u(u({},t),{children:e}):u({},t);return!r.component&&(e||r.loadChildren)&&r.outlet&&"primary"!==r.outlet&&(r.component=E),r}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function H(t,e){var r,n=Object.keys(t),o=Object.keys(e);if(!n||!o||n.length!=o.length)return!1;for(var i=0;i<n.length;i++)if(!F(t[r=n[i]],e[r]))return!1;return!0}function F(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function B(t){return Array.prototype.concat.apply([],t)}function G(t){return t.length>0?t[t.length-1]:null}function W(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function Q(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?n.from(Promise.resolve(t)):n.of(t)}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function V(t,e,r){return r?function n(t,e){return H(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!K(e.segments,r.segments))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children){if(!e.children[n])return!1;if(!t(e.children[n],r.children[n]))return!1}return!0}(t.root,e.root):function o(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(r){return F(t[r],e[r])}))}(t.queryParams,e.queryParams)&&function t(e,r){return function e(r,n,o){if(r.segments.length>o.length)return!!K(a=r.segments.slice(0,o.length),o)&&!n.hasChildren();if(r.segments.length===o.length){if(!K(r.segments,o))return!1;for(var i in n.children){if(!r.children[i])return!1;if(!t(r.children[i],n.children[i]))return!1}return!0}var a=o.slice(0,r.segments.length),u=o.slice(r.segments.length);return!!K(r.segments,a)&&!!r.children.primary&&e(r.children.primary,n,u)}(e,r,r.segments)}(t.root,e.root)}var Z=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=k(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return et.serialize(this)},t}(),Y=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,W(e,(function(t,e){return t.parent=r}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return rt(this)},t}(),$=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=k(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return st(this)},t}();function K(t,e){return t.length===e.length&&t.every((function(t,r){return t.path===e[r].path}))}function J(t,e){var r=[];return W(t.children,(function(t,n){"primary"===n&&(r=r.concat(e(t,n)))})),W(t.children,(function(t,n){"primary"!==n&&(r=r.concat(e(t,n)))})),r}var X=function X(){},tt=function(){function t(){}return t.prototype.parse=function(t){var e=new ft(t);return new Z(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+function t(e,r){if(!e.hasChildren())return rt(e);if(r){var n=e.children.primary?t(e.children.primary,!1):"",o=[];return W(e.children,(function(e,r){"primary"!==r&&o.push(r+":"+t(e,!1))})),o.length>0?n+"("+o.join("//")+")":n}var i=J(e,(function(r,n){return"primary"===n?[t(e.children.primary,!1)]:[n+":"+t(r,!1)]}));return rt(e)+"/("+i.join("//")+")"}(t.root,!0)+function e(t){var e=Object.keys(t).map((function(e){var r=t[e];return Array.isArray(r)?r.map((function(t){return ot(e)+"="+ot(t)})).join("&"):ot(e)+"="+ot(r)}));return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+function r(t){return encodeURI(t)}(t.fragment):"")},t}(),et=new tt;function rt(t){return t.segments.map((function(t){return st(t)})).join("/")}function nt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(t){return nt(t).replace(/%3B/gi,";")}function it(t){return nt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function ut(t){return at(t.replace(/\+/g,"%20"))}function st(t){return""+it(t.path)+function e(t){return Object.keys(t).map((function(e){return";"+it(e)+"="+it(t[e])})).join("")}(t.parameters)}var ct=/^[^\/()?;=#]+/;function lt(t){var e=t.match(ct);return e?e[0]:""}var pt=/^[^=?&#]+/,ht=/^[^?&#]+/,ft=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r.primary=new Y(t,e)),r},t.prototype.parseSegment=function(){var t=lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $(at(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=lt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=lt(this.remaining);n&&this.capture(r=n)}t[at(e)]=at(r)}},t.prototype.parseQueryParam=function(t){var e=function r(t){var e=t.match(pt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var o=function i(t){var e=t.match(ht);return e?e[0]:""}(this.remaining);o&&this.capture(n=o)}var a=ut(e),u=ut(n);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(u)}else t[a]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=lt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o="primary");var i=this.parseChildren();e[o]=1===Object.keys(i).length?i.primary:new Y([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),dt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=gt(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=vt(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return vt(t,this._root).map((function(t){return t.value}))},t}();function gt(t,e){var r,n;if(t===e.value)return e;try{for(var o=p(e.children),i=o.next();!i.done;i=o.next()){var a=gt(t,i.value);if(a)return a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function vt(t,e){var r,n;if(t===e.value)return[e];try{for(var o=p(e.children),i=o.next();!i.done;i=o.next()){var a=vt(t,i.value);if(a.length)return a.unshift(e),a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return[]}var mt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function yt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var St=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Pt(n,e),n}return a(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(dt);function wt(t,e){var r=function o(t,e){var r=new Rt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Ut("",new mt(r,[]))}(t,e),i=new n.BehaviorSubject([new $("",{})]),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),c=new n.BehaviorSubject(""),l=new bt(i,a,s,c,u,"primary",e,r.root);return l.snapshot=r.root,new St(new mt(l,[]),r)}var bt=function(){function t(t,e,r,n,o,i,a,u){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(o.map((function(t){return k(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(o.map((function(t){return k(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Ct(t,e){void 0===e&&(e="emptyOnly");var r=t.pathFromRoot,n=0;if("always"!==e)for(n=r.length-1;n>=1;){var o=r[n],i=r[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(i.component)break;n--}}return function a(t){return t.reduce((function(t,e){return{params:u(u({},t.params),e.params),data:u(u({},t.data),e.data),resolve:u(u({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(r.slice(n))}var Rt=function(){function t(t,e,r,n,o,i,a,u,s,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=k(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=k(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Ut=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Pt(n,r),n}return a(e,t),e.prototype.toString=function(){return Ot(this._root)},e}(dt);function Pt(t,e){e.value._routerState=t,e.children.forEach((function(e){return Pt(t,e)}))}function Ot(t){var e=t.children.length>0?" { "+t.children.map(Ot).join(", ")+" } ":"";return""+t.value+e}function _t(t){if(t.snapshot){var e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,H(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),H(e.params,r.params)||t.params.next(r.params),function n(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!H(t[r],e[r]))return!1;return!0}(e.url,r.url)||t.url.next(r.url),H(e.data,r.data)||t.data.next(r.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xt(t,e){return H(t.params,e.params)&&function r(t,e){return K(t,e)&&t.every((function(t,r){return H(t.parameters,e[r].parameters)}))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||xt(t.parent,e.parent))}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function At(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Tt(t,e,r,n,o){var i={};return n&&W(n,(function(t,e){i[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),new Z(r.root===t?e:function t(e,r,n){var o={};return W(e.children,(function(e,i){o[i]=e===r?n:t(e,r,n)})),new Y(e.segments,o)}(r.root,t,e),i,o)}var Et=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&At(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(n&&n!==G(r))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),jt=function jt(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r};function kt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function It(t,e,r){if(t||(t=new Y([],{})),0===t.segments.length&&t.hasChildren())return Lt(t,e,r);var n=function o(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var a=t.segments[o],u=kt(r[n]),s=n<r.length-1?r[n+1]:null;if(o>0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Dt(u,s,a))return i;n+=2}else{if(!Dt(u,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var a=new Y(t.segments.slice(0,n.pathIndex),{});return a.children.primary=new Y(t.segments.slice(n.pathIndex),t.children),Lt(a,0,i)}return n.match&&0===i.length?new Y(t.segments,{}):n.match&&!t.hasChildren()?Mt(t,e,r):n.match?Lt(t,0,i):Mt(t,e,r)}function Lt(t,e,r){if(0===r.length)return new Y(t.segments,{});var n=function o(t){var e,r;return"object"!=typeof t[0]?((e={}).primary=t,e):void 0===t[0].outlets?((r={}).primary=t,r):t[0].outlets}(r),i={};return W(n,(function(r,n){null!==r&&(i[n]=It(t.children[n],e,r))})),W(t.children,(function(t,e){void 0===n[e]&&(i[e]=t)})),new Y(t.segments,i)}function Mt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=Nt(r[o].outlets);return new Y(n,i)}if(0===o&&At(r[0]))n.push(new $(t.segments[e].path,r[0])),o++;else{var a=kt(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&At(u)?(n.push(new $(a,qt(u))),o+=2):(n.push(new $(a,{})),o++)}}return new Y(n,{})}function Nt(t){var e={};return W(t,(function(t,r){null!==t&&(e[r]=Mt(new Y([],{}),0,t))})),e}function qt(t){var e={};return W(t,(function(t,r){return e[r]=""+t})),e}function Dt(t,e,r){return t==r.path&&H(e,r.parameters)}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var zt=function(){function t(t,e,r,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=n}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),_t(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=yt(e);t.children.forEach((function(t){var e=t.value.outlet;n.deactivateRoutes(t,o[e],r),delete o[e]})),W(o,(function(t,e){n.deactivateRouteAndItsChildren(t,r)}))},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=r.getContext(n.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=e.getContext(t.value.outlet);if(r&&r.outlet){var n=r.outlet.detach(),o=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var r=this,n=e.getContext(t.value.outlet);if(n){var o=yt(t),i=t.value.component?n.children:e;W(o,(function(t,e){return r.deactivateRouteAndItsChildren(t,i)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=yt(e);t.children.forEach((function(t){n.activateRoutes(t,o[t.value.outlet],r),n.forwardEvent(new A(t.value.snapshot))})),t.children.length&&this.forwardEvent(new _(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(_t(n),n===o)if(n.component){var i=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,r);else if(n.component)if(i=r.getOrCreateContext(n.outlet),this.routeReuseStrategy.shouldAttach(n.snapshot)){var a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.children.onOutletReAttached(a.contexts),i.attachRef=a.componentRef,i.route=a.route.value,i.outlet&&i.outlet.attach(a.componentRef,a.route.value),Ht(a.route)}else{var u=function s(t){for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(n.snapshot),c=u?u.module.componentFactoryResolver:null;i.attachRef=null,i.route=n,i.resolver=c,i.outlet&&i.outlet.activateWith(n,c),this.activateChildRoutes(t,null,i.children)}else this.activateChildRoutes(t,null,r)},t}();function Ht(t){_t(t.value),t.children.forEach(Ht)}function Ft(t){return"function"==typeof t}function Bt(t){return t instanceof Z}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Gt=function Gt(t){this.segmentGroup=t||null},Wt=function Wt(t){this.urlTree=t};function Qt(t){return new n.Observable((function(e){return e.error(new Gt(t))}))}function Vt(t){return new n.Observable((function(e){return e.error(new Wt(t))}))}function Zt(t){return new n.Observable((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))}))}var Yt=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(o.map((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(o.catchError((function(e){if(e instanceof Wt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Gt)throw t.noMatchError(e);throw e})))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(o.map((function(r){return e.createUrlTree(r,t.queryParams,t.fragment)}))).pipe(o.catchError((function(t){if(t instanceof Gt)throw e.noMatchError(t);throw t})))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n,o=t.segments.length>0?new Y([],((n={}).primary=t,n)):t;return new Z(o,e,r)},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(o.map((function(t){return new Y([],t)}))):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var i=this;return function a(t,e){if(0===Object.keys(t).length)return n.of({});var r=[],i=[],a={};return W(t,(function(t,n){var u=e(n,t).pipe(o.map((function(t){return a[n]=t})));"primary"===n?r.push(u):i.push(u)})),n.of.apply(null,r.concat(i)).pipe(o.concatAll(),o.last(),o.map((function(){return a})))}(r.children,(function(r,n){return i.expandSegmentGroup(t,e,n,r)}))},t.prototype.expandSegment=function(t,e,r,i,a,u){var s=this;return n.of.apply(void 0,f(r)).pipe(o.map((function(c){return s.expandSegmentAgainstRoute(t,e,r,c,i,a,u).pipe(o.catchError((function(t){if(t instanceof Gt)return n.of(null);throw t})))})),o.concatAll(),o.first((function(t){return!!t})),o.catchError((function(t,r){if(t instanceof n.EmptyError||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,a))return n.of(new Y([],{}));throw new Gt(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,a){return Xt(n)!==i?Qt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):Qt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var i=this,a=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Vt(a):this.lineralizeSegments(r,a).pipe(o.mergeMap((function(r){var o=new Y(r,{});return i.expandSegment(t,o,e,r,n,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,a){var u=this,s=$t(e,n,i),c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!s.matched)return Qt(e);var h=this.applyRedirectCommands(c,n.redirectTo,p);return n.redirectTo.startsWith("/")?Vt(h):this.lineralizeSegments(n,h).pipe(o.mergeMap((function(n){return u.expandSegment(t,e,r,n.concat(i.slice(l)),a,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,r,i){var a=this;if("**"===r.path)return r.loadChildren?this.configLoader.load(t.injector,r).pipe(o.map((function(t){return r._loadedConfig=t,new Y(i,{})}))):n.of(new Y(i,{}));var s=$t(e,r,i),c=s.consumedSegments,l=s.lastChild;if(!s.matched)return Qt(e);var h=i.slice(l);return this.getChildConfig(t,r,i).pipe(o.mergeMap((function(t){var r=t.module,i=t.routes,s=function l(t,e,r,n){return r.length>0&&function o(t,e,r){return r.some((function(r){return Jt(t,e,r)&&"primary"!==Xt(r)}))}(t,r,n)?{segmentGroup:Kt(new Y(e,function i(t,e){var r,n,o={};o.primary=e;try{for(var i=p(t),a=i.next();!a.done;a=i.next()){var u=a.value;""===u.path&&"primary"!==Xt(u)&&(o[Xt(u)]=new Y([],{}))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}(n,new Y(r,t.children)))),slicedSegments:[]}:0===r.length&&function a(t,e,r){return r.some((function(r){return Jt(t,e,r)}))}(t,r,n)?{segmentGroup:Kt(new Y(t.segments,function s(t,e,r,n){var o,i,a={};try{for(var s=p(r),c=s.next();!c.done;c=s.next()){var l=c.value;Jt(t,e,l)&&!n[Xt(l)]&&(a[Xt(l)]=new Y([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return u(u({},n),a)}(t,r,n,t.children))),slicedSegments:r}:{segmentGroup:t,slicedSegments:r}}(e,c,h,i),f=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&f.hasChildren()?a.expandChildren(r,i,f).pipe(o.map((function(t){return new Y(c,t)}))):0===i.length&&0===d.length?n.of(new Y(c,{})):a.expandSegment(r,f,i,d,"primary",!0).pipe(o.map((function(t){return new Y(c.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,r){var i=this;return e.children?n.of(new M(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?n.of(e._loadedConfig):function a(t,e,r){var i=e.canLoad;return i&&0!==i.length?n.from(i).pipe(o.map((function(n){var o,i=t.get(n);if(function a(t){return t&&Ft(t.canLoad)}(i))o=i.canLoad(e,r);else{if(!Ft(i))throw new Error("Invalid CanLoad guard");o=i(e,r)}return Q(o)}))).pipe(o.concatAll(),o.every((function(t){return!0===t}))):n.of(!0)}(t.injector,e,r).pipe(o.mergeMap((function(r){return r?i.configLoader.load(t.injector,e).pipe(o.map((function(t){return e._loadedConfig=t,t}))):function a(t){return new n.Observable((function(e){return e.error(I("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):n.of(new M([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],o=e.root;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return n.of(r);if(o.numberOfChildren>1||!o.children.primary)return Zt(t.redirectTo);o=o.children.primary}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Z(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return W(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);r[n]=e[o]}else r[n]=t})),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),a={};return W(e.children,(function(e,i){a[i]=o.createSegmentGroup(t,e,r,n)})),new Y(i,a)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map((function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)}))},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){var r,n,o=0;try{for(var i=p(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t},t}();function $t(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||L)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Kt(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Y(t.segments.concat(e.segments),e.children)}return t}function Jt(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function Xt(t){return t.outlet||"primary"}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var te=function te(t){this.path=t,this.route=this.path[this.path.length-1]},ee=function ee(t,e){this.component=t,this.route=e};function re(t,e,r){var n=function o(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(e);return(n?n.module.injector:r).get(t)}function ne(t,e,r,n,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=yt(e);return t.children.forEach((function(t){!function e(t,r,n,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=t.value,u=r?r.value:null,s=n?n.getContext(t.value.outlet):null;if(u&&a.routeConfig===u.routeConfig){var c=function l(t,e,r){if("function"==typeof r)return r(t,e);switch(r){case"pathParamsChange":return!K(t.url,e.url);case"pathParamsOrQueryParamsChange":return!K(t.url,e.url)||!H(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xt(t,e)||!H(t.queryParams,e.queryParams);case"paramsChange":default:return!xt(t,e)}}(u,a,a.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new te(o)):(a.data=u.data,a._resolvedData=u._resolvedData),ne(t,r,a.component?s?s.children:null:n,o,i),c&&i.canDeactivateChecks.push(new ee(s&&s.outlet&&s.outlet.component||null,u))}else u&&oe(r,s,i),i.canActivateChecks.push(new te(o)),ne(t,null,a.component?s?s.children:null:n,o,i)}(t,i[t.value.outlet],r,n.concat([t.value]),o),delete i[t.value.outlet]})),W(i,(function(t,e){return oe(t,r.getContext(e),o)})),o}function oe(t,e,r){var n=yt(t),o=t.value;W(n,(function(t,n){oe(t,o.component?e?e.children.getContext(n):null:e,r)})),r.canDeactivateChecks.push(new ee(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var ie=Symbol("INITIAL_VALUE");function ae(){return o.switchMap((function(t){return n.combineLatest.apply(void 0,f(t.map((function(t){return t.pipe(o.take(1),o.startWith(ie))})))).pipe(o.scan((function(t,e){var r=!1;return e.reduce((function(t,n,o){if(t!==ie)return t;if(n===ie&&(r=!0),!r){if(!1===n)return n;if(o===e.length-1||Bt(n))return n}return t}),t)}),ie),o.filter((function(t){return t!==ie})),o.map((function(t){return Bt(t)?t:!0===t})),o.take(1))}))}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function ue(t,e){return null!==t&&e&&e(new x(t)),n.of(!0)}function se(t,e){return null!==t&&e&&e(new O(t)),n.of(!0)}function ce(t,e,r){var i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return n.of(!0);var a=i.map((function(i){return n.defer((function(){var n,a=re(i,e,r);if(function u(t){return t&&Ft(t.canActivate)}(a))n=Q(a.canActivate(e,t));else{if(!Ft(a))throw new Error("Invalid CanActivate guard");n=Q(a(e,t))}return n.pipe(o.first())}))}));return n.of(a).pipe(ae())}function le(t,e,r){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map((function(t){return function e(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return n.defer((function(){var a=e.guards.map((function(n){var a,u=re(n,e.node,r);if(function s(t){return t&&Ft(t.canActivateChild)}(u))a=Q(u.canActivateChild(i,t));else{if(!Ft(u))throw new Error("Invalid CanActivateChild guard");a=Q(u(i,t))}return a.pipe(o.first())}));return n.of(a).pipe(ae())}))}));return n.of(a).pipe(ae())}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var pe=function Gt(){},he=function(){function t(t,e,r,n,o,i){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=ge(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),r=new Rt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),o=new mt(r,e),i=new Ut(this.url,o);return this.inheritParamsAndData(i._root),n.of(i)}catch(t){return new n.Observable((function(e){return e.error(t)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,r=t.value,n=Ct(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=J(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return function o(t){var e={};t.forEach((function(t){var r=e[t.value.outlet];if(r){var n=r.url.map((function(t){return t.toString()})).join("/"),o=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value}))}(n),function i(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(n),n},t.prototype.processSegment=function(t,e,r,n){var o,i;try{for(var a=p(t),u=a.next();!u.done;u=a.next()){var s=u.value;try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(t){if(!(t instanceof pe))throw t}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,r,n))return[];throw new pe},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new pe;if((t.outlet||"primary")!==n)throw new pe;var o,i=[],a=[];if("**"===t.path){var s=r.length>0?G(r).parameters:{};o=new Rt(r,s,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,ye(t),n,t.component,t,fe(e),de(e)+r.length,Se(t))}else{var c=function l(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new pe;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||L)(r,t,e);if(!n)throw new pe;var o={};W(n.posParams,(function(t,e){o[e]=t.path}));var i=n.consumed.length>0?u(u({},o),n.consumed[n.consumed.length-1].parameters):o;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:i}}(e,t,r);i=c.consumedSegments,a=r.slice(c.lastChild),o=new Rt(i,c.parameters,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,ye(t),n,t.component,t,fe(e),de(e)+i.length,Se(t))}var p=function h(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=ge(e,i,a,p,this.relativeLinkResolution),d=f.segmentGroup,g=f.slicedSegments;if(0===g.length&&d.hasChildren()){var v=this.processChildren(p,d);return[new mt(o,v)]}if(0===p.length&&0===g.length)return[new mt(o,[])];var m=this.processSegment(p,d,g,"primary");return[new mt(o,m)]},t}();function fe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function de(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)r+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ge(t,e,r,n,o){if(r.length>0&&function i(t,e,r){return r.some((function(r){return ve(t,e,r)&&"primary"!==me(r)}))}(t,r,n)){var a=new Y(e,function s(t,e,r,n){var o,i,a={};a.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;try{for(var u=p(r),s=u.next();!s.done;s=u.next()){var c=s.value;if(""===c.path&&"primary"!==me(c)){var l=new Y([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,a[me(c)]=l}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return a}(t,e,n,new Y(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function c(t,e,r){return r.some((function(r){return ve(t,e,r)}))}(t,r,n)){var l=new Y(t.segments,function h(t,e,r,n,o,i){var a,s,c={};try{for(var l=p(n),h=l.next();!h.done;h=l.next()){var f=h.value;if(ve(t,r,f)&&!o[me(f)]){var d=new Y([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===i?t.segments.length:e.length,c[me(f)]=d}}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}return u(u({},o),c)}(t,e,r,n,t.children,o));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:r}}var f=new Y(t.segments,t.children);return f._sourceSegment=t,f._segmentIndexShift=e.length,{segmentGroup:f,slicedSegments:r}}function ve(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function me(t){return t.outlet||"primary"}function ye(t){return t.data||{}}function Se(t){return t.resolve||{}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function we(t,e,r,n){var o=re(t,e,n);return Q(o.resolve?o.resolve(e,r):o(e,r))}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function be(t){return function(e){return e.pipe(o.switchMap((function(e){var r=t(e);return r?n.from(r).pipe(o.map((function(){return e}))):n.from([e])})))}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var Ce=function Ce(){},Re=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ue=new r.InjectionToken("ROUTES"),Pe=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(o.map((function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new M(B(o.injector.get(Ue)).map(z),o)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?n.from(this.loader.load(t)):Q(t()).pipe(o.mergeMap((function(t){return t instanceof r.NgModuleFactory?n.of(t):n.from(e.compiler.compileModuleAsync(t))})))},t}(),Oe=function Oe(){},_e=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function xe(t){throw t}function Ae(t,e,r){return e.parse("/")}function Te(t,e){return n.of(null)}var Ee=function(){function t(t,e,o,i,a,u,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new n.Subject,this.errorHandler=xe,this.malformedUriErrorHandler=Ae,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Te,afterPreactivation:Te},this.urlHandlingStrategy=new _e,this.routeReuseStrategy=new Re,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(r.NgModuleRef),this.console=a.get(r.ɵConsole);var p=a.get(r.NgZone);this.isNgZoneEnabled=p instanceof r.NgZone,this.resetConfig(c),this.currentUrlTree=function h(){return new Z(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pe(u,s,(function(t){return l.triggerEvent(new U(t))}),(function(t){return l.triggerEvent(new P(t))})),this.routerState=wt(this.currentUrlTree,this.rootComponentType),this.transitions=new n.BehaviorSubject({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,r=this.events;return t.pipe(o.filter((function(t){return 0!==t.id})),o.map((function(t){return u(u({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),o.switchMap((function(t){var i,a,s,c=!1,l=!1;return n.of(t).pipe(o.tap((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?u(u({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),o.switchMap((function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return n.of(t).pipe(o.switchMap((function(t){var o=e.transitions.getValue();return r.next(new g(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),o!==e.transitions.getValue()?n.EMPTY:[t]})),o.switchMap((function(t){return Promise.resolve(t)})),function a(t,e,r,n){return function(i){return i.pipe(o.switchMap((function(i){return function a(t,e,r,n,o){return new Yt(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,n).pipe(o.map((function(t){return u(u({},i),{urlAfterRedirects:t})})))})))}}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),o.tap((function(t){e.currentNavigation=u(u({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function s(t,e,r,n,i){return function(a){return a.pipe(o.mergeMap((function(a){return function s(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new he(t,e,r,n,o,i).recognize()}(t,e,a.urlAfterRedirects,r(a.urlAfterRedirects),n,i).pipe(o.map((function(t){return u(u({},a),{targetSnapshot:t})})))})))}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(e.rootComponentType,e.config,(function(t){return e.serializeUrl(t)}),e.paramsInheritanceStrategy,e.relativeLinkResolution),o.tap((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),o.tap((function(t){var n=new S(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);r.next(n)})));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.restoredState,h=t.extras,f=new g(t.id,e.serializeUrl(c),l,p);r.next(f);var d=wt(c,e.rootComponentType).snapshot;return n.of(u(u({},t),{targetSnapshot:d,urlAfterRedirects:c,extras:u(u({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),n.EMPTY})),be((function(t){var r=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})})),o.tap((function(t){var r=new w(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),o.map((function(t){return u(u({},t),{guards:(r=t.targetSnapshot,n=t.currentSnapshot,o=e.rootContexts,i=r._root,ne(i,n?n._root:null,o,[i.value]))});var r,n,o,i})),function h(t,e){return function(r){return r.pipe(o.mergeMap((function(r){var i=r.targetSnapshot,a=r.currentSnapshot,s=r.guards,c=s.canActivateChecks,l=s.canDeactivateChecks;return 0===l.length&&0===c.length?n.of(u(u({},r),{guardsResult:!0})):function p(t,e,r,i){return n.from(t).pipe(o.mergeMap((function(t){return function a(t,e,r,i,u){var s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return n.of(!0);var c=s.map((function(n){var a,s=re(n,e,u);if(function c(t){return t&&Ft(t.canDeactivate)}(s))a=Q(s.canDeactivate(t,e,r,i));else{if(!Ft(s))throw new Error("Invalid CanDeactivate guard");a=Q(s(t,e,r,i))}return a.pipe(o.first())}));return n.of(c).pipe(ae())}(t.component,t.route,r,e,i)})),o.first((function(t){return!0!==t}),!0))}(l,i,a,t).pipe(o.mergeMap((function(r){return r&&function a(t){return"boolean"==typeof t}(r)?function u(t,e,r,i){return n.from(e).pipe(o.concatMap((function(e){return n.from([se(e.route.parent,i),ue(e.route,i),le(t,e.path,r),ce(t,e.route,r)]).pipe(o.concatAll(),o.first((function(t){return!0!==t}),!0))})),o.first((function(t){return!0!==t}),!0))}(i,c,t,e):n.of(r)})),o.map((function(t){return u(u({},r),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),o.tap((function(t){if(Bt(t.guardsResult)){var r=I('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw r.url=t.guardsResult,r}})),o.tap((function(t){var r=new b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)})),o.filter((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new m(t.id,e.serializeUrl(t.extractedUrl),"");return r.next(n),t.resolve(!1),!1}return!0})),be((function(t){if(t.guards.canActivateChecks.length)return n.of(t).pipe(o.tap((function(t){var r=new C(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),function r(t,e){return function(r){return r.pipe(o.mergeMap((function(r){var i=r.targetSnapshot,a=r.guards.canActivateChecks;return a.length?n.from(a).pipe(o.concatMap((function(r){return function a(t,e,r,i){return function a(t,e,r,i){var a=Object.keys(t);if(0===a.length)return n.of({});if(1===a.length){var u=a[0];return we(t[u],e,r,i).pipe(o.map((function(t){var e;return(e={})[u]=t,e})))}var s={};return n.from(a).pipe(o.mergeMap((function(n){return we(t[n],e,r,i).pipe(o.map((function(t){return s[n]=t,t})))}))).pipe(o.last(),o.map((function(){return s})))}(t._resolve,t,e,i).pipe(o.map((function(e){return t._resolvedData=e,t.data=u(u({},t.data),Ct(t,r).resolve),null})))}(r.route,i,t,e)})),o.reduce((function(t,e){return t})),o.map((function(t){return r}))):n.of(r)})))}}(e.paramsInheritanceStrategy,e.ngModule.injector),o.tap((function(t){var r=new R(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})))})),be((function(t){var r=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})})),o.map((function(t){var r=function o(t,e,r){var o=function t(e,r,o){if(o&&e.shouldReuseRoute(r.value,o.value.snapshot)){(c=o.value)._futureSnapshot=r.value;var i=function a(e,r,n){return r.children.map((function(r){var o,i;try{for(var a=p(n.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,r.value))return t(e,r,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,r)}))}(e,r,o);return new mt(c,i)}var u=e.retrieve(r.value);if(u){var s=u.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(r,s),s}var c=function l(t){return new bt(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(r.value);return i=r.children.map((function(r){return t(e,r)})),new mt(c,i)}(t,e._root,r?r._root:void 0);return new St(o,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return u(u({},t),{targetRouterState:r})})),o.tap((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(i=e.rootContexts,a=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},o.map((function(t){return new zt(a,t.targetRouterState,t.currentRouterState,s).activate(i),t}))),o.tap({next:function(){c=!0},complete:function(){c=!0}}),o.finalize((function(){if(!c&&!l){e.resetUrlToCurrentUrlTree();var n=new m(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);r.next(n),t.resolve(!1)}e.currentNavigation=null})),o.catchError((function(o){if(l=!0,function i(t){return t&&t.ngNavigationCancelingError}(o)){var a=Bt(o.url);a||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var u=new m(t.id,e.serializeUrl(t.extractedUrl),o.message);r.next(u),a?setTimeout((function(){var r=e.urlHandlingStrategy.merge(o.url,e.rawUrlTree);return e.scheduleNavigation(r,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var s=new y(t.id,e.serializeUrl(t.extractedUrl),o);r.next(s);try{t.resolve(e.errorHandler(o))}catch(e){t.reject(e)}}return n.EMPTY})))})))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t},t.prototype.setTransition=function(t){this.transitions.next(u(u({},this.getTransition()),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var r=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(r,n,o,{replaceUrl:!0})}),0)})))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){N(t),this.config=t.map(z),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,o=e.queryParams,i=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=c?this.currentUrlTree.fragment:i,h=null;if(s)switch(s){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}else h=a?this.currentUrlTree.queryParams:o||null;return null!==h&&(h=this.removeEmptyProps(h)),function d(t,e,r,n,o){if(0===r.length)return Tt(e.root,e.root,e,n,o);var i=function a(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Et(!0,0,t);var e=0,r=!1,n=t.reduce((function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return W(n.outlets,(function(t,e){i[e]="string"==typeof t?t.split("/"):t})),f(t,[{outlets:i}])}if(n.segmentPath)return f(t,[n.segmentPath])}return"string"!=typeof n?f(t,[n]):0===o?(n.split("/").forEach((function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))})),t):f(t,[n])}),[]);return new Et(r,e,n)}(r);if(i.toRoot())return Tt(e.root,new Y([],{}),e,n,o);var u=function s(t,e,r){if(t.isAbsolute)return new jt(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new jt(r.snapshot._urlSegment,!0,0);var n=At(t.commands[0])?0:1;return function o(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new jt(n,!1,o-i)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(i,e,t),c=u.processChildren?Lt(u.segmentGroup,u.index,i.commands):It(u.segmentGroup,u.index,i.commands);return Tt(u.segmentGroup,c,e,n,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),r.isDevMode()&&this.isNgZoneEnabled&&!r.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Bt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function r(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Bt(t))return V(this.currentUrlTree,t,e);var r=this.parseUrl(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e[r]=n),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new v(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,r,n,o){var i,a,u,s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,u=o.promise):u=new Promise((function(t,e){i=t,a=e}));var c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,r,n){var o=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",u(u({},n),{navigationId:r})):this.location.go(o,"",u(u({},n),{navigationId:r}))},t.prototype.resetStateAndUrl=function(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),je=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Ie(this.skipLocationChange),replaceUrl:Ie(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ie(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ie(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:":not(a):not(area)[routerLink]"}),c(2,r.Attribute("tabindex")),l("design:paramtypes",[Ee,bt,String,r.Renderer2,r.ElementRef])],t)}(),ke=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof v&&n.updateTargetUrlAndHref()}))}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Ie(this.skipLocationChange),replaceUrl:Ie(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ie(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ie(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.HostBinding("attr.target"),r.Input(),l("design:type",String)],t.prototype,"target",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.HostBinding(),l("design:type",String)],t.prototype,"href",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),l("design:type",Function),l("design:paramtypes",[Number,Boolean,Boolean,Boolean]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:"a[routerLink],area[routerLink]"}),l("design:paramtypes",[Ee,bt,e.LocationStrategy])],t)}();function Ie(t){return""===t||!!t}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var Le=function(){function t(t,e,r,n,o){var i=this;this.router=t,this.element=e,this.renderer=r,this.link=n,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(t){t instanceof v&&i.update()}))}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(r){e?t.renderer.addClass(t.element.nativeElement,r):t.renderer.removeClass(t.element.nativeElement,r)})))}))},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)},s([r.ContentChildren(je,{descendants:!0}),l("design:type",r.QueryList)],t.prototype,"links",void 0),s([r.ContentChildren(ke,{descendants:!0}),l("design:type",r.QueryList)],t.prototype,"linksWithHrefs",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"routerLinkActiveOptions",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLinkActive",null),s([r.Directive({selector:"[routerLinkActive]",exportAs:"routerLinkActive"}),c(3,r.Optional()),c(4,r.Optional()),l("design:paramtypes",[Ee,r.ElementRef,r.Renderer2,je,ke])],t)}(),Me=function Me(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ne,this.attachRef=null},Ne=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Me,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),qe=function(){function t(t,e,n,o,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=o||"primary",t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var r=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,o=new De(t,n,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},s([r.Output("activate"),l("design:type",Object)],t.prototype,"activateEvents",void 0),s([r.Output("deactivate"),l("design:type",Object)],t.prototype,"deactivateEvents",void 0),s([r.Directive({selector:"router-outlet",exportAs:"outlet"}),c(3,r.Attribute("name")),l("design:paramtypes",[Ne,r.ViewContainerRef,r.ComponentFactoryResolver,String,r.ChangeDetectorRef])],t)}(),De=function(){function t(t,e,r){this.route=t,this.childContexts=e,this.parent=r}return t.prototype.get=function(t,e){return t===bt?this.route:t===Ne?this.childContexts:this.parent.get(t,e)},t}(),ze=function ze(){},He=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(o.catchError((function(){return n.of(null)})))},t}(),Fe=function(){function t(){}return t.prototype.preload=function(t,e){return n.of(null)},t}(),Be=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o,this.loader=new Pe(e,r,(function(e){return t.triggerEvent(new U(e))}),(function(e){return t.triggerEvent(new P(e))}))}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(o.filter((function(t){return t instanceof v})),o.concatMap((function(){return t.preload()}))).subscribe((function(){}))},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var r,i,a=[];try{for(var u=p(e),s=u.next();!s.done;s=u.next()){var c=s.value;if(c.loadChildren&&!c.canLoad&&c._loadedConfig){var l=c._loadedConfig;a.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?a.push(this.preloadConfig(t,c)):c.children&&a.push(this.processRoutes(t,c.children))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return n.from(a).pipe(o.mergeAll(),o.map((function(t){})))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,(function(){return r.loader.load(t.injector,e).pipe(o.mergeMap((function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})))}))},s([r.Injectable(),l("design:paramtypes",[Ee,r.NgModuleFactoryLoader,r.Compiler,r.Injector,ze])],t)}(),Ge=function(){function t(t,e,r){void 0===r&&(r={}),this.router=t,this.viewportScroller=e,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof g?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof v&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof T&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new T(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),We=[qe,je,ke,Le,E],Qe=new r.InjectionToken("ROUTER_CONFIGURATION"),Ve=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Ze=[e.Location,{provide:X,useClass:tt},{provide:Ee,useFactory:er,deps:[X,Ne,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,Ue,Qe,[Oe,new r.Optional],[Ce,new r.Optional]]},Ne,{provide:bt,useFactory:rr,deps:[Ee]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Be,Fe,He,{provide:Qe,useValue:{enableTracing:!1}}];
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function Ye(){return new r.NgProbeToken("Router",Ee)}var $e=function(){function t(t,e){}var n;return n=t,t.forRoot=function(t,o){return{ngModule:n,providers:[Ze,tr(t),{provide:Ve,useFactory:Xe,deps:[[Ee,new r.Optional,new r.SkipSelf]]},{provide:Qe,useValue:o||{}},{provide:e.LocationStrategy,useFactory:Je,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Qe]},{provide:Ge,useFactory:Ke,deps:[Ee,e.ViewportScroller,Qe]},{provide:ze,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:Fe},{provide:r.NgProbeToken,multi:!0,useFactory:Ye},ur()]}},t.forChild=function(t){return{ngModule:n,providers:[tr(t)]}},n=s([r.NgModule({declarations:We,exports:We,entryComponents:[E]}),c(0,r.Optional()),c(0,r.Inject(Ve)),c(1,r.Optional()),l("design:paramtypes",[Object,Ee])],t)}();function Ke(t,e,r){return r.scrollOffset&&e.setOffset(r.scrollOffset),new Ge(t,e,r)}function Je(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function Xe(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function tr(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Ue,multi:!0,useValue:t}]}function er(t,r,n,o,i,a,u,s,c,l){void 0===s&&(s={});var p=new Ee(null,t,r,n,o,i,a,B(u));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),s.errorHandler&&(p.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(p.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=e.ɵgetDOM();p.events.subscribe((function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(p.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(p.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(p.relativeLinkResolution=s.relativeLinkResolution),p}function rr(t){return t.routerState.root}var nr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new n.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var e=null,r=new Promise((function(t){return e=t})),o=t.injector.get(Ee),i=t.injector.get(Qe);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)o.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");o.hooks.afterPreactivation=function(){return t.initNavigation?n.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},o.initialNavigation()}return r}))},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Qe),n=this.injector.get(Be),o=this.injector.get(Ge),i=this.injector.get(Ee),a=this.injector.get(r.ApplicationRef);t===a.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),o.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},s([r.Injectable(),l("design:paramtypes",[r.Injector])],t)}();function or(t){return t.appInitializer.bind(t)}function ir(t){return t.bootstrapListener.bind(t)}var ar=new r.InjectionToken("Router Initializer");function ur(){return[nr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:or,deps:[nr]},{provide:ar,useFactory:ir,deps:[nr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ar}]}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var sr=new r.Version("9.1.13");
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/t.ActivatedRoute=bt,t.ActivatedRouteSnapshot=Rt,t.ActivationEnd=A,t.ActivationStart=x,t.ChildActivationEnd=_,t.ChildActivationStart=O,t.ChildrenOutletContexts=Ne,t.DefaultUrlSerializer=tt,t.GuardsCheckEnd=b,t.GuardsCheckStart=w,t.NavigationCancel=m,t.NavigationEnd=v,t.NavigationError=y,t.NavigationStart=g,t.NoPreloading=Fe,t.OutletContext=Me,t.PRIMARY_OUTLET="primary",t.PreloadAllModules=He,t.PreloadingStrategy=ze,t.ROUTER_CONFIGURATION=Qe,t.ROUTER_INITIALIZER=ar,t.ROUTES=Ue,t.ResolveEnd=R,t.ResolveStart=C,t.RouteConfigLoadEnd=P,t.RouteConfigLoadStart=U,t.RouteReuseStrategy=Ce,t.Router=Ee,t.RouterEvent=d,t.RouterLink=je,t.RouterLinkActive=Le,t.RouterLinkWithHref=ke,t.RouterModule=$e,t.RouterOutlet=qe,t.RouterPreloader=Be,t.RouterState=St,t.RouterStateSnapshot=Ut,t.RoutesRecognized=S,t.Scroll=T,t.UrlHandlingStrategy=Oe,t.UrlSegment=$,t.UrlSegmentGroup=Y,t.UrlSerializer=X,t.UrlTree=Z,t.VERSION=sr,t.convertToParamMap=k,t.provideRoutes=tr,t.ɵEmptyOutletComponent=E,t.ɵROUTER_PROVIDERS=Ze,t.ɵangular_packages_router_router_a=Ve,t.ɵangular_packages_router_router_b=Ye,t.ɵangular_packages_router_router_c=Ke,t.ɵangular_packages_router_router_d=Je,t.ɵangular_packages_router_router_e=Xe,t.ɵangular_packages_router_router_f=er,t.ɵangular_packages_router_router_g=rr,t.ɵangular_packages_router_router_h=nr,t.ɵangular_packages_router_router_i=or,t.ɵangular_packages_router_router_j=ir,t.ɵangular_packages_router_router_k=ur,t.ɵangular_packages_router_router_l=E,t.ɵangular_packages_router_router_m=dt,t.ɵangular_packages_router_router_n=mt,t.ɵangular_packages_router_router_o=Ge,t.ɵflatten=B,Object.defineProperty(t,"__esModule",{value:!0})}));
|
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var array2iterator = require( '@stdlib/array/to-iterator' );
var iterEvery = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof iterEvery, 'function', 'main export is a function' );
t.end();
});
tape( 'the function throws an error if not provided an iterator', function test( t ) {
var values;
var i;
values = [
'5',
5,
NaN,
true,
false,
null,
void 0,
{},
[],
function noop() {}
];
for ( i = 0; i < values.length; i++ ) {
t.throws( badValue( values[i] ), TypeError, 'throws a type error when provided '+values[i] );
}
t.end();
function badValue( value ) {
return function badValue() {
iterEvery( value );
};
}
});
tape( 'if provided an "empty" iterator, the function returns `true`', function test( t ) {
var bool;
var arr;
arr = array2iterator( [] );
bool = iterEvery( arr );
t.strictEqual( bool, true, 'returns true' );
t.end();
});
tape( 'the function returns `true` if all iterated values are truthy', function test( t ) {
var bool;
var arr;
arr = array2iterator( [ 1, 1, 1, 1, 1 ] );
bool = iterEvery( arr );
t.strictEqual( bool, true, 'returns true' );
t.end();
});
tape( 'the function returns `true` if all iterated values are truthy (value+done)', function test( t ) {
var bool;
var arr;
arr = createIterator( [ 1, 1, 1, 1 ] );
bool = iterEvery( arr );
t.strictEqual( bool, true, 'returns true' );
t.end();
function createIterator( arr ) {
var len;
var it;
var i;
len = arr.length;
i = -1;
it = {};
it.next = next;
return it;
function next() {
i += 1;
if ( i < len-1 ) {
return {
'value': arr[ i ],
'done': false
};
}
if ( i === len-1 ) {
return {
'value': arr[ i ],
'done': true
};
}
return {
'done': true
};
}
}
});
tape( 'the function returns `false` if at least one iterated value is falsy', function test( t ) {
var bool;
var arr;
arr = array2iterator( [ 1, 1, 1, 0 ] );
bool = iterEvery( arr );
t.strictEqual( bool, false, 'returns false' );
t.end();
});
tape( 'the function returns `false` if at least one iterated value is falsy (value+done)', function test( t ) {
var bool;
var arr;
arr = createIterator( [ 1, 1, 1, 0 ] );
bool = iterEvery( arr );
t.strictEqual( bool, false, 'returns false' );
t.end();
function createIterator( arr ) {
var len;
var it;
var i;
len = arr.length;
i = -1;
it = {};
it.next = next;
return it;
function next() {
i += 1;
if ( i < len-1 ) {
return {
'value': arr[ i ],
'done': false
};
}
if ( i === len-1 ) {
return {
'value': arr[ i ],
'done': true
};
}
return {
'done': true
};
}
}
});
|
/* eslint max-params: [2, 25], max-statements: [2, 36], complexity:[2, 10], max-len: [2, 125] */
define([
'vendor/lib/q',
'okta/underscore',
'okta/jquery',
'@okta/okta-auth-js/jquery',
'util/Util',
'shared/util/Util',
'helpers/mocks/Util',
'helpers/dom/PasswordResetForm',
'helpers/dom/Beacon',
'helpers/util/Expect',
'LoginRouter',
'sandbox',
'helpers/xhr/PASSWORD_RESET',
'helpers/xhr/PASSWORD_RESET_withComplexity',
'helpers/xhr/PASSWORD_RESET_error',
'helpers/xhr/200',
'helpers/xhr/SUCCESS'
],
function (Q, _, $, OktaAuth, LoginUtil, SharedUtil, Util, PasswordResetForm, Beacon, Expect, Router,
$sandbox, resPasswordReset, resPasswordResetWithComplexity, resError, res200, resSuccess) {
var itp = Expect.itp;
var tick = Expect.tick;
function deepClone(res) {
return JSON.parse(JSON.stringify(res));
}
function setup(settings) {
settings || (settings = {});
var successSpy = jasmine.createSpy('successSpy');
var passwordResetResponse = resPasswordReset;
var policyComplexityDefaults = {
minLength: 8,
minLowerCase: 1,
minUpperCase: 1,
minNumber: 1,
minSymbol: 1,
excludeUsername: true,
excludeAttributes: getExcludeAttributes(settings.excludeAttributes)
};
var policyAgeMinAge = {
inMinutes: 30,
inHours: 120,
inDays: 2880
};
var policyAgeDefaults = {
historyCount: 7,
minAgeMinutes: policyAgeMinAge.inMinutes
};
if (settings && (settings.policyComplexity || settings.policyAge)) {
passwordResetResponse = deepClone(resPasswordResetWithComplexity);
var responsePolicy = passwordResetResponse.response._embedded.policy;
if (settings.policyComplexity === 'all') {
responsePolicy.complexity = policyComplexityDefaults;
} else if (settings.policyComplexity) {
var policyKey = settings.policyComplexity;
responsePolicy.complexity[policyKey] = policyComplexityDefaults[policyKey];
}
delete settings.policyComplexity;
if (settings.policyAge === 'all') {
responsePolicy.age = policyAgeDefaults;
} else if (settings.policyAge) {
var ageKey = settings.policyAge;
responsePolicy.age[ageKey] = policyAgeDefaults[ageKey];
}
// test when enough minutes for hours
if (settings.policyAge === 'minAgeMinutesinHours') {
responsePolicy.age.minAgeMinutes = policyAgeMinAge.inHours;
}
// test when enough minutes for days
if (settings.policyAge === 'minAgeMinutesinDays') {
responsePolicy.age.minAgeMinutes = policyAgeMinAge.inDays;
}
delete settings.policyAge;
}
var setNextResponse = Util.mockAjax();
var baseUrl = 'https://foo.com';
var authClient = new OktaAuth({url: baseUrl, transformErrorXHR: LoginUtil.transformErrorXHR});
var router = new Router(_.extend({
el: $sandbox,
baseUrl: baseUrl,
authClient: authClient,
globalSuccessFn: successSpy,
processCreds: settings.processCreds
}, settings));
var form = new PasswordResetForm($sandbox);
var beacon = new Beacon($sandbox);
Util.registerRouter(router);
Util.mockRouterNavigate(router);
Util.mockJqueryCss();
setNextResponse(passwordResetResponse);
router.refreshAuthState('dummy-token');
return Expect.waitForPasswordReset({
router: router,
successSpy: successSpy,
form: form,
beacon: beacon,
ac: authClient,
setNextResponse: setNextResponse
});
}
function getExcludeAttributes (excludeAttributes) {
return excludeAttributes || ['firstName', 'lastName'];
}
Expect.describe('PasswordReset', function () {
itp('displays the security beacon if enabled', function () {
return setup({ 'features.securityImage': true }).then(function (test) {
expect(test.beacon.isSecurityBeacon()).toBe(true);
});
});
itp('has a signout link which cancels the current stateToken and navigates to primaryAuth', function () {
return setup()
.then(function (test) {
$.ajax.calls.reset();
test.setNextResponse(res200);
var $link = test.form.signoutLink();
expect($link.length).toBe(1);
$link.click();
return Expect.waitForPrimaryAuth(test);
})
.then(function (test) {
expect($.ajax.calls.count()).toBe(1);
Expect.isJsonPost($.ajax.calls.argsFor(0), {
url: 'https://foo.com/api/v1/authn/cancel',
data: {
stateToken: 'testStateToken'
}
});
Expect.isPrimaryAuth(test.router.controller);
});
});
itp('has a signout link which cancels the current stateToken and redirects to the provided signout url',
function () {
return setup({ signOutLink: 'http://www.goodbye.com' })
.then(function (test) {
spyOn(SharedUtil, 'redirect');
$.ajax.calls.reset();
test.setNextResponse(res200);
var $link = test.form.signoutLink();
expect($link.length).toBe(1);
$link.click();
return tick();
})
.then(function () {
expect($.ajax.calls.count()).toBe(1);
Expect.isJsonPost($.ajax.calls.argsFor(0), {
url: 'https://foo.com/api/v1/authn/cancel',
data: {
stateToken: 'testStateToken'
}
});
expect(SharedUtil.redirect).toHaveBeenCalledWith('http://www.goodbye.com');
});
});
itp('has a valid subtitle if NO password complexity defined', function () {
return setup().then(function (test) {
expect(test.form.subtitleText()).toEqual('');
});
});
itp('has a valid subtitle if only password complexity "minLength" defined', function () {
return setup({policyComplexity: 'minLength'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: at least 8 characters.');
});
});
itp('has a valid subtitle if only password complexity "minLowerCase" defined', function () {
return setup({policyComplexity: 'minLowerCase'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: a lowercase letter.');
});
});
itp('has a valid subtitle if only password complexity "minUpperCase" defined', function () {
return setup({policyComplexity: 'minUpperCase'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: an uppercase letter.');
});
});
itp('has a valid subtitle if only password complexity "minNumber" defined', function () {
return setup({policyComplexity: 'minNumber'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: a number.');
});
});
itp('has a valid subtitle if only password complexity "minSymbol" defined', function () {
return setup({policyComplexity: 'minSymbol'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: a symbol.');
});
});
itp('has a valid subtitle if only password complexity "excludeUsername" defined', function () {
return setup({policyComplexity: 'excludeUsername'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: no parts of your username.');
});
});
itp('has a valid subtitle if only excludeAttributes["firstName","lastName"] is defined', function () {
return setup({policyComplexity: 'excludeAttributes'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: does not include your first name,' +
' does not include your last name.');
});
});
itp('has a valid subtitle if only excludeAttributes["firstName"] is defined', function () {
return setup({policyComplexity: 'excludeAttributes', excludeAttributes: ['firstName']}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: does not include your first name.');
});
});
itp('has a valid subtitle if only excludeAttributes["lastName"] is defined', function () {
return setup({policyComplexity: 'excludeAttributes', excludeAttributes: ['lastName']}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: does not include your last name.');
});
});
itp('has a valid subtitle if only excludeAttributes[] is defined', function () {
return setup({policyComplexity: 'all', excludeAttributes: []}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: at least 8 characters, a lowercase letter,' +
' an uppercase letter, a number, a symbol, no parts of your username.');
});
});
itp('has a valid subtitle if only password age "historyCount" defined', function () {
return setup({policyAge: 'historyCount'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Your password cannot be any of your last 7 passwords.');
});
});
itp('has a valid subtitle in minutes if only password age "minAgeMinutes" defined', function () {
return setup({policyAge: 'minAgeMinutes'}).then(function (test) {
expect(test.form.subtitleText()).toEqual(
'At least 30 minute(s) must have elapsed since you last changed your password.');
});
});
itp('has a valid subtitle in hours if only password age "minAgeMinutesinHours" defined', function () {
return setup({policyAge: 'minAgeMinutesinHours'}).then(function (test) {
expect(test.form.subtitleText()).toEqual(
'At least 2 hour(s) must have elapsed since you last changed your password.');
});
});
itp('has a valid subtitle in days if only password age "minAgeMinutesinDays" defined', function () {
return setup({policyAge: 'minAgeMinutesinDays'}).then(function (test) {
expect(test.form.subtitleText()).toEqual(
'At least 2 day(s) must have elapsed since you last changed your password.');
});
});
itp('has a valid subtitle if password complexity "excludeUsername" and password age "historyCount" defined',
function () {
return setup({policyComplexity: 'excludeUsername', policyAge: 'historyCount'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: no parts of your username.' +
' Your password cannot be any of your last 7 passwords.');
});
}
);
itp('has a valid subtitle if password complexity is defined with all options', function () {
return setup({policyComplexity: 'all'}).then(function (test) {
expect(test.form.subtitleText()).toEqual('Password requirements: at least 8 characters, a lowercase letter,' +
' an uppercase letter, a number, a symbol, no parts of your username,' +
' does not include your first name, does not include your last name.');
});
});
itp('has a valid subtitle in minutes if password age is defined with all options', function () {
return setup({policyAge: 'all'}).then(function (test) {
expect(test.form.subtitleText()).toEqual(
'Your password cannot be any of your last 7 passwords.' +
' At least 30 minute(s) must have elapsed since you last changed your password.');
});
});
itp('has a valid subtitle if password complexity is defined with all options and password age "historyCount" defined',
function () {
return setup({policyComplexity: 'all', policyAge: 'historyCount'}).then(function (test) {
expect(test.form.subtitleText())
.toEqual('Password requirements: at least 8 characters, a lowercase letter,' +
' an uppercase letter, a number, a symbol, no parts of your username,' +
' does not include your first name, does not include your last name.' +
' Your password cannot be any of your last 7 passwords.');
});
});
itp('has a valid subtitle if password age and complexity are defined with all options', function () {
return setup({policyComplexity: 'all', policyAge: 'all'}).then(function (test) {
expect(test.form.subtitleText())
.toEqual('Password requirements: at least 8 characters, a lowercase letter,' +
' an uppercase letter, a number, a symbol, no parts of your username,' +
' does not include your first name, does not include your last name.' +
' Your password cannot be any of your last 7 passwords.' +
' At least 30 minute(s) must have elapsed since you last changed your password.');
});
});
itp('has a password field to enter the new password', function () {
return setup().then(function (test) {
Expect.isPasswordField(test.form.newPasswordField());
});
});
itp('has a password field to confirm the new password', function () {
return setup().then(function (test) {
Expect.isPasswordField(test.form.confirmPasswordField());
});
});
itp('calls processCreds function before saving a model', function () {
var processCredsSpy = jasmine.createSpy('processCredsSpy');
return setup({ processCreds: processCredsSpy })
.then(function (test) {
$.ajax.calls.reset();
test.setNextResponse(resSuccess);
test.form.setNewPassword('newpwd');
test.form.setConfirmPassword('newpwd');
test.form.submit();
return Expect.waitForSpyCall(test.successSpy);
})
.then(function() {
expect(processCredsSpy.calls.count()).toBe(1);
expect(processCredsSpy).toHaveBeenCalledWith({
username: 'administrator1@clouditude.net',
password: 'newpwd'
});
expect($.ajax.calls.count()).toBe(1);
});
});
itp('calls async processCreds function before saving a model', function () {
var processCredsSpy = jasmine.createSpy('processCredsSpy');
return setup({
'processCreds': function(creds, callback) {
processCredsSpy(creds, callback);
callback();
}
})
.then(function (test) {
$.ajax.calls.reset();
test.setNextResponse(resSuccess);
test.form.setNewPassword('newpwd');
test.form.setConfirmPassword('newpwd');
test.form.submit();
return Expect.waitForSpyCall(test.successSpy);
})
.then(function() {
expect(processCredsSpy.calls.count()).toBe(1);
expect(processCredsSpy).toHaveBeenCalledWith({
username: 'administrator1@clouditude.net',
password: 'newpwd'
}, jasmine.any(Function));
expect($.ajax.calls.count()).toBe(1);
});
});
itp('calls async processCreds function and can prevent saving a model', function () {
var processCredsSpy = jasmine.createSpy('processCredsSpy');
return setup({
'processCreds': function(creds, callback) {
processCredsSpy(creds, callback);
}
})
.then(function (test) {
$.ajax.calls.reset();
test.setNextResponse(resSuccess);
test.form.setNewPassword('newpwd');
test.form.setConfirmPassword('newpwd');
test.form.submit();
return tick();
})
.then(function() {
expect(processCredsSpy.calls.count()).toBe(1);
expect(processCredsSpy).toHaveBeenCalledWith({
username: 'administrator1@clouditude.net',
password: 'newpwd'
}, jasmine.any(Function));
expect($.ajax.calls.count()).toBe(0);
});
});
itp('makes the right auth request when form is submitted', function () {
return setup()
.then(function (test) {
$.ajax.calls.reset();
test.form.setNewPassword('imsorrymsjackson');
test.form.setConfirmPassword('imsorrymsjackson');
test.setNextResponse(resSuccess);
test.form.submit();
return Expect.waitForSpyCall(test.successSpy);
})
.then(function () {
expect($.ajax.calls.count()).toBe(1);
Expect.isJsonPost($.ajax.calls.argsFor(0), {
url: 'https://foo.com/api/v1/authn/credentials/reset_password',
data: {
newPassword: 'imsorrymsjackson',
stateToken: 'testStateToken'
}
});
});
});
itp('makes submit button disable when form is submitted', function () {
return setup()
.then(function (test) {
$.ajax.calls.reset();
test.form.setNewPassword('pwd');
test.form.setConfirmPassword('pwd');
test.setNextResponse(resSuccess);
test.form.submit();
return tick(test);
})
.then(function (test) {
var button = test.form.submitButton();
var buttonClass = button.attr('class');
expect(buttonClass).toContain('link-button-disabled');
});
});
itp('makes submit button enabled after error response', function () {
return setup()
.then(function (test) {
$.ajax.calls.reset();
test.form.setNewPassword('pwd');
test.form.setConfirmPassword('pwd');
test.setNextResponse(resError);
test.form.submit();
return Expect.waitForFormError(test.form, test);
})
.then(function (test) {
var button = test.form.submitButton();
var buttonClass = button.attr('class');
expect(buttonClass).not.toContain('link-button-disabled');
});
});
itp('validates that the fields are not empty before submitting', function () {
return setup().then(function (test) {
$.ajax.calls.reset();
test.form.submit();
expect($.ajax).not.toHaveBeenCalled();
expect(test.form.hasErrors()).toBe(true);
Expect.isEmptyFieldError(test.form.newPassFieldError());
Expect.isEmptyFieldError(test.form.confirmPassFieldError());
});
});
itp('validates that the passwords match before submitting', function () {
return setup().then(function (test) {
$.ajax.calls.reset();
test.form.setNewPassword('a');
test.form.setConfirmPassword('z');
test.form.submit();
expect($.ajax).not.toHaveBeenCalled();
expect(test.form.hasErrors()).toBe(true);
});
});
itp('shows an error msg if there is an error submitting', function () {
return setup()
.then(function (test) {
Q.stopUnhandledRejectionTracking();
test.setNextResponse(resError);
test.form.setNewPassword('a');
test.form.setConfirmPassword('a');
test.form.submit();
return tick(test);
})
.then(function (test) {
expect(test.form.hasErrors()).toBe(true);
expect(test.form.errorMessage()).toBe(
'Password requirements were not met. Password requirements: at least 8 characters,' +
' a lowercase letter, an uppercase letter, a number, no parts of your username,' +
' does not include your first name, does not include your last name.'
);
});
});
});
});
|
export default (editor, config = {}) => {
const c = config;
let bm = editor.BlockManager;
if (c.blocks.link) {
bm.add('link', {
label: VjLocalized.Link,
category: VjLocalized.Basic,
attributes: { class: 'fas fa-link' },
content: {
type: 'link',
components: [{
type: "text",
content: "Link"
}],
}
});
}
let domc = editor.DomComponents;
const linkType = domc.getType('link');
const linkModel = linkType.model;
const linkView = linkType.view;
domc.addType('link', {
model: linkModel.extend({
defaults: Object.assign({}, linkModel.prototype.defaults, {
droppable: true,
tagName: 'a',
traits: [
{
label: "Alignment",
type: "toggle_checkbox",
name: "alignment",
UpdateStyles: true,
cssproperties: [{ name: "text-align" }],
options: [
{ id: 'left', name: 'left', image: 'align-left' },
{ id: 'center', name: 'center', image: 'align-center' },
{ id: 'right', name: 'right', image: 'align-right' },
],
value: "none",
changeProp: 1,
}, {
label: "Color",
name: "color",
type: 'custom_color',
cssproperties: [{ name: "color" }],
options: [
{ id: 'primary', name: 'Primary', class: 'text-primary' },
{ id: 'secondary', name: 'Secondary', class: 'text-secondary' },
{ id: 'tertiary', name: 'Tertiary', class: 'text-tertiary' },
{ id: 'quaternary', name: 'Quaternary', class: 'text-quaternary' },
{ id: 'success', name: 'Success', class: 'text-success' },
{ id: 'info', name: 'Info', class: 'text-info' },
{ id: 'warning', name: 'Warning', class: 'text-warning' },
{ id: 'danger', name: 'Danger', class: 'text-danger' },
{ id: 'light', name: 'Light', class: 'text-light' },
{ id: 'dark', name: 'Dark', class: 'text-dark' },
],
value: 'primary',
changeProp: 1,
}, {
label: " ",
name: "href",
type: "href",
href: "",
"data_href_type": "url",
changeProp: 1,
}
]
}),
},
{
isComponent(el) {
if (el && el.tagName && el.tagName.toLowerCase() == 'a') {
return { type: 'link' };
}
}
}),
view: linkView.extend({
onRender() {
var hasClass = this.model.getClasses().find(v => v == 'link')
if (typeof hasClass == 'undefined' && this.model.parent().attributes.type != 'blockwrapper')
this.model.addClass('link');
},
})
});
}
|
import React from 'react';
import {useTranslation} from 'react-i18next';
import {StyleSheet, View} from 'react-native';
import {Divider, Text} from 'src/components';
import {Col, Row} from 'src/containers/Gird';
import Button from 'src/containers/Button';
import {padding} from 'src/components/config/spacing';
const FooterOrderInfo = ({
shipping,
discount,
tax,
total,
onPressConfirm,
loading,
style,
}) => {
const {t} = useTranslation();
return (
<View style={style && style}>
<Divider />
<Row style={styles.viewPrice}>
<Col style={styles.priceLeft}>
<Text colorThird>
{t('cart:text_payment_shipping', {cost: shipping})}
</Text>
<Text colorThird>
{t('cart:text_payment_discount', {cost: discount})}
</Text>
<Text colorThird>{t('cart:text_payment_tax', {cost: tax})}</Text>
</Col>
<Text medium h2>
{total}
</Text>
</Row>
<Button title={t('common:text_confirm')} onPress={onPressConfirm} loading={loading}/>
</View>
);
};
const styles = StyleSheet.create({
viewPrice: {
paddingVertical: padding.large,
alignItems: 'flex-end',
marginLeft: 0,
marginRight: 0,
},
priceLeft: {
paddingLeft: 0,
paddingRight: padding.large,
},
});
export default FooterOrderInfo;
|
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).immer={})}(this,(function(n){function t(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[L]}function e(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);return!t||t===Object.prototype}(n)||Array.isArray(n)||!!n[H]||!!n.constructor[H]||v(n)||s(n))}function i(n,t,r){void 0===r&&(r=!1),0===u(n)?(r?Object.keys:T)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n)})):n.forEach((function(r,e){return t(e,r,n)}))}function u(n){var t=n[L];return t?t.t>3?t.t-4:t.t:Array.isArray(n)?1:v(n)?2:s(n)?3:0}function o(n,t){return 2===u(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function f(n,t){return 2===u(n)?n.get(t):n[t]}function a(n,t,r){var e=u(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function v(n){return X&&n instanceof Map}function s(n){return q&&n instanceof Set}function l(n){return n.i||n.u}function p(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=U(n);delete t[L];for(var r=T(t),e=0;e<r.length;e++){var i=r[e],u=t[i];!1===u.writable&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(t[i]={configurable:!0,writable:!0,enumerable:u.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),t)}function h(n,t){y(n)||r(n)||!e(n)||(u(n)>1&&(n.set=n.add=n.clear=n.delete=d),Object.freeze(n),t&&i(n,(function(n,t){return h(t,!0)}),!0))}function d(){t(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function _(n){var r=V[n];return r||t(19,n),r}function b(n,t){V[n]=t}function m(){return N}function j(n,t){t&&(_("Patches"),n.o=[],n.v=[],n.s=t)}function O(n){w(n),n.l.forEach(M),n.l=null}function w(n){n===N&&(N=n.p)}function S(n){return N={l:[],p:N,h:n,_:!0,m:0}}function M(n){var t=n[L];0===t.t||1===t.t?t.j():t.O=!0}function P(n,r){r.m=r.l.length;var i=r.l[0],u=void 0!==n&&n!==i;return r.h.S||_("ES5").M(r,n,u),u?(i[L].P&&(O(r),t(4)),e(n)&&(n=g(r,n),r.p||x(r,n)),r.o&&_("Patches").g(i[L],n,r.o,r.v)):n=g(r,i,[]),O(r),r.o&&r.s(r.o,r.v),n!==G?n:void 0}function g(n,t,r){if(y(t))return t;var e=t[L];if(!e)return i(t,(function(i,u){return A(n,e,t,i,u,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.u,!0),e.u;if(!e.R){e.R=!0,e.A.m--;var u=4===e.t||5===e.t?e.i=p(e.k):e.i;i(3===e.t?new Set(u):u,(function(t,i){return A(n,e,u,t,i,r)})),x(n,u,!1),r&&n.o&&_("Patches").F(e,r,n.o,n.v)}return e.i}function A(n,t,i,u,f,c){if(r(f)){var v=g(n,f,c&&t&&3!==t.t&&!o(t.D,u)?c.concat(u):void 0);if(a(i,u,v),!r(v))return;n._=!1}if(e(f)&&!y(f)){if(!n.h.K&&n.m<1)return;g(n,f),t&&t.A.p||x(n,f)}}function x(n,t,r){void 0===r&&(r=!1),n.h.K&&n._&&h(t,r)}function z(n,t){var r=n[L];return(r?l(r):n)[t]}function E(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function R(n){n.P||(n.P=!0,n.p&&R(n.p))}function k(n){n.i||(n.i=p(n.u))}function F(n,t,r){var e=v(t)?_("MapSet").$(t,r):s(t)?_("MapSet").C(t,r):n.S?function(n,t){var r=Array.isArray(n),e={t:r?1:0,A:t?t.A:m(),P:!1,R:!1,D:{},p:t,u:n,k:null,i:null,j:null,I:!1},i=e,u=Y;r&&(i=[e],u=Z);var o=Proxy.revocable(i,u),f=o.revoke,a=o.proxy;return e.k=a,e.j=f,a}(t,r):_("ES5").J(t,r);return(r?r.A:m()).l.push(e),e}function D(n){return r(n)||t(22,n),function n(t){if(!e(t))return t;var r,o=t[L],c=u(t);if(o){if(!o.P&&(o.t<4||!_("ES5").N(o)))return o.u;o.R=!0,r=K(t,c),o.R=!1}else r=K(t,c);return i(r,(function(t,e){o&&f(o.u,t)===e||a(r,t,n(e))})),3===c?new Set(r):r}(n)}function K(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return p(n)}function $(){function n(n,t){var r=f[n];return r?r.enumerable=t:f[n]=r={configurable:!0,enumerable:t,get:function(){return Y.get(this[L],n)},set:function(t){Y.set(this[L],n,t)}},r}function t(n){for(var t=n.length-1;t>=0;t--){var r=n[t][L];if(!r.P)switch(r.t){case 5:u(r)&&R(r);break;case 4:e(r)&&R(r)}}}function e(n){for(var t=n.u,r=n.k,e=T(r),i=e.length-1;i>=0;i--){var u=e[i];if(u!==L){var f=t[u];if(void 0===f&&!o(t,u))return!0;var a=r[u],v=a&&a[L];if(v?v.u!==f:!c(a,f))return!0}}var s=!!t[L];return e.length!==T(t).length+(s?0:1)}function u(n){var t=n.k;if(t.length!==n.u.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var f={};b("ES5",{J:function(t,r){var e=Array.isArray(t),i=function(t,r){if(t){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,n(i,!0));return e}var u=U(r);delete u[L];for(var o=T(u),f=0;f<o.length;f++){var a=o[f];u[a]=n(a,t||!!u[a].enumerable)}return Object.create(Object.getPrototypeOf(r),u)}(e,t),u={t:e?5:4,A:r?r.A:m(),P:!1,R:!1,D:{},p:r,u:t,k:i,i:null,O:!1,I:!1};return Object.defineProperty(i,L,{value:u,writable:!0}),i},M:function(n,e,f){f?r(e)&&e[L].A===n&&t(n.l):(n.o&&function n(t){if(t&&"object"==typeof t){var r=t[L];if(r){var e=r.u,f=r.k,a=r.D,c=r.t;if(4===c)i(f,(function(t){t!==L&&(void 0!==e[t]||o(e,t)?a[t]||n(f[t]):(a[t]=!0,R(r)))})),i(e,(function(n){void 0!==f[n]||o(f,n)||(a[n]=!1,R(r))}));else if(5===c){if(u(r)&&(R(r),a.length=!0),f.length<e.length)for(var v=f.length;v<e.length;v++)a[v]=!1;else for(var s=e.length;s<f.length;s++)a[s]=!0;for(var l=Math.min(f.length,e.length),p=0;p<l;p++)void 0===a[p]&&n(f[p])}}}}(n.l[0]),t(n.l))},N:function(n){return 4===n.t?e(n):u(n)}})}function C(){function n(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(n);if(v(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],n(t[1])]})));if(s(t))return new Set(Array.from(t).map(n));var r=Object.create(Object.getPrototypeOf(t));for(var e in t)r[e]=n(t[e]);return r}function e(t){return r(t)?n(t):t}var a="add";b("Patches",{W:function(r,e){return e.forEach((function(e){for(var i=e.path,o=e.op,c=r,v=0;v<i.length-1;v++)"object"!=typeof(c=f(c,i[v]))&&t(15,i.join("/"));var s=u(c),l=n(e.value),p=i[i.length-1];switch(o){case"replace":switch(s){case 2:return c.set(p,l);case 3:t(16);default:return c[p]=l}case a:switch(s){case 1:return c.splice(p,0,l);case 2:return c.set(p,l);case 3:return c.add(l);default:return c[p]=l}case"remove":switch(s){case 1:return c.splice(p,1);case 2:return c.delete(p);case 3:return c.delete(e.value);default:return delete c[p]}default:t(17,o)}})),r},F:function(n,t,r,u){switch(n.t){case 0:case 4:case 2:return function(n,t,r,u){var c=n.u,v=n.i;i(n.D,(function(n,i){var s=f(c,n),l=f(v,n),p=i?o(c,n)?"replace":a:"remove";if(s!==l||"replace"!==p){var h=t.concat(n);r.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:l}),u.push(p===a?{op:"remove",path:h}:"remove"===p?{op:a,path:h,value:e(s)}:{op:"replace",path:h,value:e(s)})}}))}(n,t,r,u);case 5:case 1:return function(n,t,r,i){var u=n.u,o=n.D,f=n.i;if(f.length<u.length){var c=[f,u];u=c[0],f=c[1];var v=[i,r];r=v[0],i=v[1]}for(var s=0;s<u.length;s++)if(o[s]&&f[s]!==u[s]){var l=t.concat([s]);r.push({op:"replace",path:l,value:e(f[s])}),i.push({op:"replace",path:l,value:e(u[s])})}for(var p=u.length;p<f.length;p++){var h=t.concat([p]);r.push({op:a,path:h,value:e(f[p])})}u.length<f.length&&i.push({op:"replace",path:t.concat(["length"]),value:u.length})}(n,t,r,u);case 3:return function(n,t,r,e){var i=n.u,u=n.i,o=0;i.forEach((function(n){if(!u.has(n)){var i=t.concat([o]);r.push({op:"remove",path:i,value:n}),e.unshift({op:a,path:i,value:n})}o++})),o=0,u.forEach((function(n){if(!i.has(n)){var u=t.concat([o]);r.push({op:a,path:u,value:n}),e.unshift({op:"remove",path:u,value:n})}o++}))}(n,t,r,u)}},g:function(n,t,r,e){r.push({op:"replace",path:[],value:t}),e.push({op:"replace",path:[],value:n.u})}})}function I(){function n(n,t){function r(){this.constructor=n}o(n,t),n.prototype=(r.prototype=t.prototype,new r)}function r(n){n.i||(n.D=new Map,n.i=new Map(n.u))}function i(n){n.i||(n.i=new Set,n.u.forEach((function(t){if(e(t)){var r=F(n.A.h,t,n);n.l.set(t,r),n.i.add(r)}else n.i.add(t)})))}function u(n){n.O&&t(3,JSON.stringify(l(n)))}var o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)},f=function(){function t(n,t){return this[L]={t:2,p:t,A:t?t.A:m(),P:!1,R:!1,i:void 0,D:void 0,u:n,k:this,I:!1,O:!1},this}n(t,Map);var i=t.prototype;return Object.defineProperty(i,"size",{get:function(){return l(this[L]).size}}),i.has=function(n){return l(this[L]).has(n)},i.set=function(n,t){var e=this[L];return u(e),l(e).has(n)&&l(e).get(n)===t||(r(e),R(e),e.D.set(n,!0),e.i.set(n,t),e.D.set(n,!0)),this},i.delete=function(n){if(!this.has(n))return!1;var t=this[L];return u(t),r(t),R(t),t.D.set(n,!1),t.i.delete(n),!0},i.clear=function(){var n=this[L];return u(n),r(n),R(n),n.D=new Map,n.i.clear()},i.forEach=function(n,t){var r=this;l(this[L]).forEach((function(e,i){n.call(t,r.get(i),i,r)}))},i.get=function(n){var t=this[L];u(t);var i=l(t).get(n);if(t.R||!e(i))return i;if(i!==t.u.get(n))return i;var o=F(t.A.h,i,t);return r(t),t.i.set(n,o),o},i.keys=function(){return l(this[L]).keys()},i.values=function(){var n,t=this,r=this.keys();return(n={})[Q]=function(){return t.values()},n.next=function(){var n=r.next();return n.done?n:{done:!1,value:t.get(n.value)}},n},i.entries=function(){var n,t=this,r=this.keys();return(n={})[Q]=function(){return t.entries()},n.next=function(){var n=r.next();if(n.done)return n;var e=t.get(n.value);return{done:!1,value:[n.value,e]}},n},i[Q]=function(){return this.entries()},t}(),a=function(){function t(n,t){return this[L]={t:3,p:t,A:t?t.A:m(),P:!1,R:!1,i:void 0,u:n,k:this,l:new Map,O:!1,I:!1},this}n(t,Set);var r=t.prototype;return Object.defineProperty(r,"size",{get:function(){return l(this[L]).size}}),r.has=function(n){var t=this[L];return u(t),t.i?!!t.i.has(n)||!(!t.l.has(n)||!t.i.has(t.l.get(n))):t.u.has(n)},r.add=function(n){var t=this[L];return u(t),this.has(n)||(i(t),R(t),t.i.add(n)),this},r.delete=function(n){if(!this.has(n))return!1;var t=this[L];return u(t),i(t),R(t),t.i.delete(n)||!!t.l.has(n)&&t.i.delete(t.l.get(n))},r.clear=function(){var n=this[L];return u(n),i(n),R(n),n.i.clear()},r.values=function(){var n=this[L];return u(n),i(n),n.i.values()},r.entries=function(){var n=this[L];return u(n),i(n),n.i.entries()},r.keys=function(){return this.values()},r[Q]=function(){return this.values()},r.forEach=function(n,t){for(var r=this.values(),e=r.next();!e.done;)n.call(t,e.value,e.value,this),e=r.next()},t}();b("MapSet",{$:function(n,t){return new f(n,t)},C:function(n,t){return new a(n,t)}})}var J,N,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=W?Symbol.for("immer-nothing"):((J={})["immer-nothing"]=!0,J),H=W?Symbol.for("immer-draftable"):"__$immer_draftable",L=W?Symbol.for("immer-state"):"__$immer_state",Q="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,U=Object.getOwnPropertyDescriptors||function(n){var t={};return T(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},V={},Y={get:function(n,t){if(t===L)return n;var r=l(n);if(!o(r,t))return function(n,t,r){var e,i=E(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,r,t);var i=r[t];return n.R||!e(i)?i:i===z(n.u,t)?(k(n),n.i[t]=F(n.A.h,i,n)):i},has:function(n,t){return t in l(n)},ownKeys:function(n){return Reflect.ownKeys(l(n))},set:function(n,t,r){var e=E(l(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(n.D[t]=!0,!n.P){if(c(r,z(l(n),t))&&(void 0!==r||o(n.u,t)))return!0;k(n),R(n)}return n.i[t]=r,!0},deleteProperty:function(n,t){return void 0!==z(n.u,t)||t in n.u?(n.D[t]=!1,k(n),R(n)):delete n.D[t],n.i&&delete n.i[t],!0},getOwnPropertyDescriptor:function(n,t){var r=l(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.t||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){t(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.u)},setPrototypeOf:function(){t(12)}},Z={};i(Y,(function(n,t){Z[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(n,t){return Y.deleteProperty.call(this,n[0],t)},Z.set=function(n,t,r){return Y.set.call(this,n[0],t,r,n[0])};var nn=function(){function n(n){this.S=B,this.K=!1,"boolean"==typeof(null==n?void 0:n.useProxies)&&this.setUseProxies(n.useProxies),"boolean"==typeof(null==n?void 0:n.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var i=n.prototype;return i.produce=function(n,r,i){if("function"==typeof n&&"function"!=typeof r){var u=r;r=n;var o=this;return function(n){var t=this;void 0===n&&(n=u);for(var e=arguments.length,i=Array(e>1?e-1:0),f=1;f<e;f++)i[f-1]=arguments[f];return o.produce(n,(function(n){var e;return(e=r).call.apply(e,[t,n].concat(i))}))}}var f;if("function"!=typeof r&&t(6),void 0!==i&&"function"!=typeof i&&t(7),e(n)){var a=S(this),c=F(this,n,void 0),v=!0;try{f=r(c),v=!1}finally{v?O(a):w(a)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(a,i),P(n,a)}),(function(n){throw O(a),n})):(j(a,i),P(f,a))}if(!n||"object"!=typeof n){if((f=r(n))===G)return;return void 0===f&&(f=n),this.K&&h(f,!0),f}t(21,n)},i.produceWithPatches=function(n,t){var r,e,i=this;return"function"==typeof n?function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),u=1;u<r;u++)e[u-1]=arguments[u];return i.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(e))}))}:[this.produce(n,t,(function(n,t){r=n,e=t})),r,e]},i.createDraft=function(n){e(n)||t(8),r(n)&&(n=D(n));var i=S(this),u=F(this,n,void 0);return u[L].I=!0,w(i),u},i.finishDraft=function(n,t){var r=(n&&n[L]).A;return j(r,t),P(void 0,r)},i.setAutoFreeze=function(n){this.K=n},i.setUseProxies=function(n){n&&!B&&t(20),this.S=n},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var u=_("Patches").W;return r(n)?u(n,t):this.produce(n,(function(n){return u(n,t.slice(e+1))}))},n}(),tn=new nn,rn=tn.produce,en=tn.produceWithPatches.bind(tn),un=tn.setAutoFreeze.bind(tn),on=tn.setUseProxies.bind(tn),fn=tn.applyPatches.bind(tn),an=tn.createDraft.bind(tn),cn=tn.finishDraft.bind(tn);n.Immer=nn,n.applyPatches=fn,n.castDraft=function(n){return n},n.castImmutable=function(n){return n},n.createDraft=an,n.current=D,n.default=rn,n.enableAllPlugins=function(){$(),I(),C()},n.enableES5=$,n.enableMapSet=I,n.enablePatches=C,n.finishDraft=cn,n.immerable=H,n.isDraft=r,n.isDraftable=e,n.nothing=G,n.original=function(n){return r(n)||t(23,n),n[L].u},n.produce=rn,n.produceWithPatches=en,n.setAutoFreeze=un,n.setUseProxies=on,Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=immer.umd.production.min.js.map
|
import * as Rx from 'rxjs';
import { bufferCount, filter } from 'rxjs/operators';
import ThreadPool from '../lib/index';
// import './decode';
import DecodeWorker from './decode.worker';
const pool = new ThreadPool({
threadCtor: DecodeWorker,
maxThreadsNumber: 4
});
// --------------------- decode tile --------------
const workerObservableDecode$ = Rx.fromEvent(pool, 'message');
workerObservableDecode$.pipe(
filter(value => value.data.action === 'decode'),
bufferCount(4)
).subscribe({
next (value) {
console.timeEnd('decoding');
const timestamps = [];
for (let i = 0; i < value.length; i++) {
const { payload, timestamp } = value[i].data;
// console.log(payload.data);
timestamps.push(timestamp);
}
console.log(Date.now() - Math.max(...timestamps));
}
});
setTimeout(() => {
console.time('decoding');
for (let x = 26983; x < 26985; x++) {
for (let y = 12416; y < 12418; y++) {
const timestamp = Date.now();
pool.postMessage({
action: 'decode',
payload: {
x,
y,
z: 15
},
timestamp
});
}
}
}, 1200);
// ------------------------------------------------
// setTimeout(() => {
// console.log('main post message');
// pool.postMessage({
// action: 'do sum',
// payload: {
// id: 2,
// data: 'hello world'
// }
// });
// pool.postMessage({
// action: 'do filter',
// payload: {
// id: 1,
// data: 'hello world'
// }
// });
// pool.postMessage({
// action: 'do filter',
// payload: {
// id: 2,
// data: 'hello world'
// }
// });
// }, 2000);
// const subjectFilter = new Rx.Subject();
// const workerObservableFilter$ = Rx.fromEvent(pool, 'message');
// workerObservableFilter$.pipe(
// filter(value => value.data.action === 'do filter')
// ).subscribe({
// next (value) {
// const { payload } = value.data;
// subjectFilter.next(payload);
// }
// });
// subjectFilter.pipe(
// bufferCount(2) // 等两个消息都返回
// ).subscribe({
// next (value) {
// console.log(value);
// }
// });
// const sumObservable$ = Rx.fromEvent(pool, 'message');
// sumObservable$.pipe(
// filter(value => value.data.action === 'do sum')
// ).subscribe({
// next (value) {
// console.log(value.data);
// }
// });
|
'use strict';
const SUMATRA_PDF_EXE = "C:\\Program Files (x86)\\SumatraPDF\\SumatraPDF.exe";
const express = require('express')
, multer = require('multer')
, upload = multer({ dest: 'uploads/' })
, spawn = require('child_process').spawn
, EventEmitter = require('events')
, util = require('util')
;
var app = express()
, expressWs = require('express-ws')(app)
, activeJobs = {}
;
app.use(require('express-request-id')());
app.ws('/jobs/:job_id/live', (ws, req) => {
var j = activeJobs[req.params.job_id];
j.lines.forEach(line => {
ws.send(line);
});
if(j.exitCode != -1) {
ws.send(j.exitCode);
}
else {
j.on('line', (line) => {
ws.send(line)
ws.close();
});
j.on('exit', (code) => {
ws.close(code + 4000);
})
}
});
app.post('/print', upload.single('pdf'), (req, res, next) => {
var copies = req.body.copies || 1
, paths = [req.file].map((file) => {
return file.path;
})
;
res.send({job_id: req.id});
activeJobs[req.id] = new PrintPDFsJob(req.id, paths, copies);
});
function PrintPDFsJob(id, paths, copies, cb) {
this.args = [
"-print-to-default",
"-print-settings",
copies + "x"
];
this.lines = [];
this.exitCode = -1;
var addLine = (line) => {
this.lines.push(line);
this.emit('line', line);
}
paths.forEach((path) => {
this.args.push(path);
});
try {
var pdf = spawn(SUMATRA_PDF_EXE, this.args);
pdf.stdout.on('data', (data) => {
addLine('[stdout] ' + data.toString());
});
pdf.stderr.on('data', (data) => {
addLine('[stderr] ' + data.toString());
});
pdf.on('close', (code) => {
this.exitCode = code;
this.emit('exit', code);
// destroy self after 60 seconds of being done
setTimeout(() => {
activeJobs[id] = null;
}, 60 * 1000);
});
}
catch (e) {
console.log(e);
}
EventEmitter.call(this);
return this;
}
util.inherits(PrintPDFsJob, EventEmitter);
app.use(express.static('public'));
app.listen(9517, () => {
console.log("Listening on port 9517");
});
|
'use strict';
const tabs = require('sdk/tabs');
const chromeTabs = require('chrome-tabs-api');
exports['test '] = function(assert, done) {
var url = 'data:text/html,' + encodeURIComponent('<title>Test</title>');
tabs.open({
url: url,
onReady: function(tab) {
assert.ok(tab, 'SDK Tab exists'); // Pre-requisite
testSdkTab(tab);
testSdkTab = function() {}; // Run once
}
});
function testSdkTab(tab) {
var chromeTab = chromeTabs.toChromeTab(tab);
assert.equal(tab.url, chromeTab.url, 'Tab\'s "url" property must be equal');
assert.equal(false, chromeTab.pinned, 'Tab\'s "pinned" property must be false');
var ffTab = chromeTabs.toFirefoxTab(chromeTab);
assert.equal(tab, ffTab, 'toFirefoxTab(toChromeTab(tab)) === tab');
done();
}
};
require('sdk/test').run(exports);
|
const { hooks } = require('@adonisjs/ignitor');
const InitContracts = require('../app/Services/InitContracts');
hooks.after.httpServer(() => {
InitContracts();
});
|
export * from "./Wrappers"
|
import { getCarousel, getNewAlbum, getAlbumInfo } from "./api/recommend";
import { getRankingList, getRankingInfo } from "./api/ranking";
import { getSongVKey } from "./api/song";
import { getHotKey, search } from "./api/search"
import { getSingerList, getSingerInfo } from "./api/singer"
getCarousel().then((res) => {
console.log("获取轮播:");
if (res) {
console.log(res);
}
});
getNewAlbum().then((res) => {
console.log("获取最新专辑:");
if (res) {
console.log(res);
}
});
getAlbumInfo("0007kqbv3ZbOtl").then((res) => {
console.log("获取专辑详情:");
if (res) {
console.log(res);
}
});
getRankingList().then((res) => {
console.log("获取排行榜:");
if (res) {
console.log(res);
}
});
getRankingInfo(4).then((res) => {
console.log("获取排行榜详情:");
if (res) {
console.log(res);
}
});
getSongVKey("000OFXjz0Nljbh").then((res) => {
console.log("获取歌曲vkey:");
if (res) {
console.log(res);
}
});
getHotKey().then((res) => {
console.log("获取热搜:");
if (res) {
console.log(res);
}
});
search("欧阳朵").then((res) => {
console.log("搜索:");
if (res) {
console.log(res);
}
});
getSingerList(1, "all_all_all").then((res) => {
console.log("获取歌手列表:");
if (res) {
console.log(res);
}
});
getSingerInfo("001iI8LW0ZRpXn").then((res) => {
console.log("获取歌手详情:");
if (res) {
console.log(res);
}
});
|
'use strict';
const fs = require('fs');
const path = require('path');
const execa = require('execa');
const pTimeout = require('p-timeout');
const ow = require('ow');
const npmName = require('npm-name');
const chalk = require('chalk');
const pkgDir = require('pkg-dir');
const {verifyRequirementSatisfied} = require('../version');
exports.checkConnection = () => pTimeout(
(async () => {
try {
await execa('npm', ['ping']);
return true;
} catch (_) {
throw new Error('Connection to npm registry failed');
}
})(),
15000,
'Connection to npm registry timed out'
);
exports.username = async ({externalRegistry}) => {
const args = ['whoami'];
if (externalRegistry) {
args.push('--registry', externalRegistry);
}
try {
const {stdout} = await execa('npm', args);
return stdout;
} catch (error) {
throw new Error(/ENEEDAUTH/.test(error.stderr) ?
'You must be logged in. Use `npm login` and try again.' :
'Authentication error. Use `npm whoami` to troubleshoot.');
}
};
exports.collaborators = async pkg => {
const packageName = pkg.name;
ow(packageName, ow.string);
const args = ['access', 'ls-collaborators', packageName];
if (exports.isExternalRegistry(pkg)) {
args.push('--registry', pkg.publishConfig.registry);
}
try {
const {stdout} = await execa('npm', args);
return stdout;
} catch (error) {
// Ignore non-existing package error
if (error.stderr.includes('code E404')) {
return false;
}
throw error;
}
};
exports.prereleaseTags = async packageName => {
ow(packageName, ow.string);
let tags = [];
try {
const {stdout} = await execa('npm', ['view', '--json', packageName, 'dist-tags']);
tags = Object.keys(JSON.parse(stdout))
.filter(tag => tag !== 'latest');
} catch (error) {
if (((JSON.parse(error.stdout) || {}).error || {}).code !== 'E404') {
throw error;
}
}
if (tags.length === 0) {
tags.push('next');
}
return tags;
};
exports.isPackageNameAvailable = async pkg => {
const args = [pkg.name];
const availability = {
isAvailable: false,
isUnknown: false
};
if (exports.isExternalRegistry(pkg)) {
args.push({
registryUrl: pkg.publishConfig.registry
});
}
try {
availability.isAvailable = await npmName(...args) || false;
} catch {
availability.isUnknown = true;
}
return availability;
};
exports.isExternalRegistry = pkg => typeof pkg.publishConfig === 'object' && typeof pkg.publishConfig.registry === 'string';
exports.version = async () => {
const {stdout} = await execa('npm', ['--version']);
return stdout;
};
exports.verifyRecentNpmVersion = async () => {
const npmVersion = await exports.version();
verifyRequirementSatisfied('npm', npmVersion);
};
exports.checkIgnoreStrategy = ({files}) => {
const rootDir = pkgDir.sync();
const npmignoreExists = fs.existsSync(path.resolve(rootDir, '.npmignore'));
if (!files && !npmignoreExists) {
console.log(`
\n${chalk.bold.yellow('Warning:')} No ${chalk.bold.cyan('files')} field specified in ${chalk.bold.magenta('package.json')} nor is a ${chalk.bold.magenta('.npmignore')} file present. Having one of those will prevent you from accidentally publishing development-specific files along with your package's source code to npm.
`);
}
};
exports.getRegistryUrl = async (pkgManager, pkg) => {
const args = ['config', 'get', 'registry'];
if (exports.isExternalRegistry(pkg)) {
args.push('--registry');
args.push(pkg.publishConfig.registry);
}
const {stdout} = await execa(pkgManager, args);
return stdout;
};
|
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-xhr-backend';
import { initReactI18next } from 'react-i18next';
import { ENABLED_LANGUAGES } from '../constants/env';
i18n
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
.init({
fallbackLng: 'en',
debug: false,
load: 'languageOnly',
resources: ENABLED_LANGUAGES.reduce((carry, slug) => {
carry[slug] = {};
return carry;
}, {}),
interpolation: {
escapeValue: false,
},
react: { useSuspense: false },
});
export default i18n;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{119:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return s})),t.d(n,"metadata",(function(){return i})),t.d(n,"toc",(function(){return c})),t.d(n,"default",(function(){return p}));var r=t(3),a=t(8),o=(t(0),t(453)),s={id:"username-email-password",title:"Username / Email & Password"},i={unversionedId:"concepts/credentials/username-email-password",id:"version-v0.2/concepts/credentials/username-email-password",isDocsHomePage:!1,title:"Username / Email & Password",description:"The password method is the most commonly used form of authentication, it",source:"@site/versioned_docs/version-v0.2/concepts/credentials/username-email-password.md",sourceDirName:"concepts/credentials",slug:"/concepts/credentials/username-email-password",permalink:"/kratos/docs/v0.2/concepts/credentials/username-email-password",editUrl:"https://github.com/ory/kratos/edit/master/docs/versioned_docs/version-v0.2/concepts/credentials/username-email-password.md",version:"v0.2",lastUpdatedBy:"aeneasr",lastUpdatedAt:1600065426,formattedLastUpdatedAt:"9/14/2020",frontMatter:{id:"username-email-password",title:"Username / Email & Password"},sidebar:"version-v0.2/docs",previous:{title:"Overview",permalink:"/kratos/docs/v0.2/concepts/credentials"},next:{title:"Social Sign In, OpenID Connect, and OAuth2",permalink:"/kratos/docs/v0.2/concepts/credentials/openid-connect-oidc-oauth2"}},c=[{value:"Configuration",id:"configuration",children:[]},{value:"JSON Schema",id:"json-schema",children:[]},{value:"Example",id:"example",children:[]}],l={toc:c};function p(e){var n=e.components,t=Object(a.a)(e,["components"]);return Object(o.b)("wrapper",Object(r.a)({},l,t,{components:n,mdxType:"MDXLayout"}),Object(o.b)("p",null,"The ",Object(o.b)("inlineCode",{parentName:"p"},"password")," method is the most commonly used form of authentication, it\nrequires an ",Object(o.b)("inlineCode",{parentName:"p"},"identifier")," (username, email, phone number, ...) and a ",Object(o.b)("inlineCode",{parentName:"p"},"password"),"\nduring registration and login."),Object(o.b)("p",null,"ORY Kratos hashes the password after registration, password reset, and password\nchange using ",Object(o.b)("a",{parentName:"p",href:"https://github.com/P-H-C/phc-winner-argon2"},"Argon2"),", the winner of\nthe Password Hashing Competition (PHC)."),Object(o.b)("h2",{id:"configuration"},"Configuration"),Object(o.b)("p",null,"Enabling this method is as easy as setting"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-yaml"},"selfservice:\n strategies:\n password:\n enabled: true\n")),Object(o.b)("p",null,"in your ORY Kratos configuration. You can configure the Argon2 hasher using the\nfollowing options:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-yaml"},"hashers:\n argon2:\n parallelism: 1\n memory: 131072 # 128MB\n iterations: 3\n salt_length: 16\n key_length: 32\n")),Object(o.b)("p",null,"For a complete reference, defaults, and description please check the\n",Object(o.b)("a",{parentName:"p",href:"/kratos/docs/v0.2/reference/configuration"},"Configuration Reference"),"."),Object(o.b)("p",null,"For a better understanding of security implications imposed by Argon2\nConfiguration, head over to ",Object(o.b)("a",{parentName:"p",href:"/kratos/docs/v0.2/concepts/security#argon2"},"Argon2 Security"),"."),Object(o.b)("h2",{id:"json-schema"},"JSON Schema"),Object(o.b)("p",null,"When processing an identity and its traits, the method will use the JSON Schema\nto extract one or more identifiers. Assuming you want your identities to sign up\nwith an email address, and use that email address as a valid identifier during\nlogin, you can use a schema along the lines of:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-json"},'{\n "$id": "https://example.com/example.json",\n "$schema": "http://json-schema.org/draft-07/schema#",\n "title": "Person",\n "type": "object",\n "properties": {\n "email": {\n "type": "string",\n "format": "email",\n "title": "E-Mail",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n }\n }\n}\n')),Object(o.b)("p",null,"If you want a unique username instead, you could write the schema as follows:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-json"},'{\n "$id": "https://example.com/example.json",\n "$schema": "http://json-schema.org/draft-07/schema#",\n "title": "Person",\n "type": "object",\n "properties": {\n "username": {\n "type": "string",\n "title": "Username",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n }\n }\n}\n')),Object(o.b)("p",null,'You are not limited to one identifier per identity. You could also combine both\nfields and support a use case of "username" and "email" as an identifier for\nlogin:'),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-json"},'{\n "$id": "https://example.com/example.json",\n "$schema": "http://json-schema.org/draft-07/schema#",\n "title": "Person",\n "type": "object",\n "properties": {\n "email": {\n "type": "string",\n "format": "email",\n "title": "E-Mail",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n },\n "username": {\n "type": "string",\n "title": "Username",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n }\n }\n}\n')),Object(o.b)("h2",{id:"example"},"Example"),Object(o.b)("p",null,"Assuming your traits schema is as follows:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-json"},'{\n "$id": "https://example.com/example.json",\n "$schema": "http://json-schema.org/draft-07/schema#",\n "title": "Person",\n "type": "object",\n "properties": {\n "first_name": {\n "type": "string"\n },\n "email": {\n "type": "string",\n "format": "email",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n },\n "username": {\n "type": "string",\n "ory.sh/kratos": {\n "credentials": {\n "password": {\n "identifier": true\n }\n }\n }\n }\n },\n "additionalProperties": false\n}\n')),Object(o.b)("p",null,"And an identity registers with the following JSON payload (more on registration\nin\n",Object(o.b)("a",{parentName:"p",href:"/kratos/docs/v0.2/self-service/flows/user-login-user-registration"},"Selfservice Registration"),"):"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-json"},'{\n "traits": {\n "first_name": "John Doe",\n "email": "john.doe@example.org",\n "username": "johndoe123"\n },\n "password": "my-secret-password"\n}\n')),Object(o.b)("p",null,"The ",Object(o.b)("inlineCode",{parentName:"p"},"password")," method would generate a credentials block as follows:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre",className:"language-yaml"},"credentials:\n password:\n id: password\n identifiers:\n - john.doe@example.org\n - johndoe123\n config:\n hashed_password: ... # this would be `argon2(my-secret-password)`\n")),Object(o.b)("p",null,"Because credential identifiers need to be unique, no other identity can be\ncreated that has ",Object(o.b)("inlineCode",{parentName:"p"},"johndoe123")," or ",Object(o.b)("inlineCode",{parentName:"p"},"john.doe@example.org")," as their ",Object(o.b)("inlineCode",{parentName:"p"},"email")," or\n",Object(o.b)("inlineCode",{parentName:"p"},"username"),"."))}p.isMDXComponent=!0},453:function(e,n,t){"use strict";t.d(n,"a",(function(){return d})),t.d(n,"b",(function(){return b}));var r=t(0),a=t.n(r);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=a.a.createContext({}),p=function(e){var n=a.a.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},d=function(e){var n=p(e.components);return a.a.createElement(l.Provider,{value:n},e.children)},m={inlineCode:"code",wrapper:function(e){var n=e.children;return a.a.createElement(a.a.Fragment,{},n)}},u=a.a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),d=p(t),u=r,b=d["".concat(s,".").concat(u)]||d[u]||m[u]||o;return t?a.a.createElement(b,i(i({ref:n},l),{},{components:t})):a.a.createElement(b,i({ref:n},l))}));function b(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=t.length,s=new Array(o);s[0]=u;var i={};for(var c in n)hasOwnProperty.call(n,c)&&(i[c]=n[c]);i.originalType=e,i.mdxType="string"==typeof e?e:r,s[1]=i;for(var l=2;l<o;l++)s[l]=t[l];return a.a.createElement.apply(null,s)}return a.a.createElement.apply(null,t)}u.displayName="MDXCreateElement"}}]);
|
import { LitElement, html, css } from 'lit-element';
import marked from 'marked';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';
import FontStyles from '~/styles/font-styles';
import FlexStyles from '~/styles/flex-styles';
import TableStyles from '~/styles/table-styles';
import InputStyles from '~/styles/input-styles';
import TabStyles from '~/styles/tab-styles';
import BorderStyles from '~/styles/border-styles';
import CustomStyles from '~/styles/custom-styles';
import '~/components/schema-tree';
import '~/components/schema-table';
export default class ApiResponse extends LitElement {
constructor() {
super();
this.selectedStatus = '';
this.headersForEachRespStatus = {};
this.mimeResponsesForEachStatus = {};
this.activeSchemaTab = 'schema';
}
static get properties() {
return {
callback: { type: String },
responses: { type: Object },
parser: { type: Object },
schemaStyle: { type: String, attribute: 'schema-style' },
renderStyle: { type: String, attribute: 'render-style' },
selectedStatus: { type: String, attribute: 'selected-status' },
selectedMimeType: { type: String, attribute: 'selected-mime-type' },
activeSchemaTab: { type: String, attribute: 'active-schema-tab' },
schemaExpandLevel: { type: Number, attribute: 'schema-expand-level' },
schemaDescriptionExpanded: { type: String, attribute: 'schema-description-expanded' },
allowSchemaDescriptionExpandToggle: { type: String, attribute: 'allow-schema-description-expand-toggle' },
schemaHideWriteOnly: { type: String, attribute: 'schema-hide-write-only' },
};
}
static get styles() {
return [
FontStyles,
FlexStyles,
TabStyles,
TableStyles,
InputStyles,
BorderStyles,
css`
.resp-head{
vertical-align: middle;
padding:16px 0 8px;
}
.resp-head.divider{
border-top: 1px solid var(--border-color);
margin-top:10px;
}
.resp-status{
font-weight:bold;
font-size:calc(var(--font-size-small) + 1px);
}
.resp-descr{
font-size:calc(var(--font-size-small) + 1px);
color:var(--light-fg);
}
.top-gap{margin-top:16px;}
.example-panel{
font-size:var(--font-size-small);
margin:0;
}
.focused-mode,
.read-mode {
padding-top:24px;
margin-top:12px;
border-top: 1px dashed var(--border-color);
}`,
CustomStyles,
];
}
render() {
return html`
<div class="col regular-font response-panel ${this.renderStyle}-mode">
<div class=" ${this.callback === 'true' ? 'tiny-title' : 'req-res-title'} ">
${this.callback === 'true' ? 'CALLBACK RESPONSE' : 'RESPONSE'}
</div>
<div>
${this.responseTemplate()}
<div>
</div>
`;
}
resetSelection() {
this.selectedStatus = '';
this.selectedMimeType = '';
}
/* eslint-disable indent */
responseTemplate() {
if (!this.responses) { return ''; }
for (const statusCode in this.responses) {
if (!this.selectedStatus) {
this.selectedStatus = statusCode;
}
const allMimeResp = {};
for (const mimeResp in this.responses[statusCode]?.content) {
const mimeRespObj = this.responses[statusCode].content[mimeResp];
if (!this.selectedMimeType) {
this.selectedMimeType = mimeResp;
}
// Generate Schema
const schemaTree = schemaInObjectNotation(mimeRespObj.schema, {});
// Generate Example
const respExamples = generateExample(
mimeRespObj.examples,
mimeRespObj.example,
mimeRespObj.schema,
mimeResp,
true,
false,
mimeResp.includes('json') ? 'json' : 'text',
);
allMimeResp[mimeResp] = {
description: this.responses[statusCode].description,
examples: respExamples,
selectedExample: respExamples[0]?.exampleId || '',
schemaTree,
};
}
// Headers for each response status
const tempHeaders = [];
for (const key in this.responses[statusCode]?.headers) {
tempHeaders.push({ name: key, ...this.responses[statusCode].headers[key] });
}
this.headersForEachRespStatus[statusCode] = tempHeaders;
this.mimeResponsesForEachStatus[statusCode] = allMimeResp;
}
return html`
${Object.keys(this.responses).length > 1
? html`<div class='row' style='flex-wrap:wrap'>
${Object.keys(this.responses).map((respStatus) => html`
${respStatus === '$$ref' // Swagger-Client parser creates '$$ref' object if JSON references are used to create responses - this should be ignored
? ''
: html`
<button
@click="${() => {
this.selectedStatus = respStatus;
if (this.responses[respStatus].content && Object.keys(this.responses[respStatus].content)[0]) {
this.selectedMimeType = Object.keys(this.responses[respStatus].content)[0];
} else {
this.selectedMimeType = undefined;
}
}}"
class='m-btn small ${this.selectedStatus === respStatus ? 'primary' : ''}'
part="btn--resp ${this.selectedStatus === respStatus ? 'btn-fill--resp' : 'btn-outline--resp'} btn-response-status"
style='margin: 8px 4px 0 0'
>
${respStatus}
</button>`
}`)
}`
: html`<span>${Object.keys(this.responses)[0]}</span>`
}
</div>
${Object.keys(this.responses).map((status) => html`
<div style = 'display: ${status === this.selectedStatus ? 'block' : 'none'}' >
<div class="top-gap">
<span class="resp-descr m-markdown ">${unsafeHTML(marked(this.responses[status]?.description || ''))}</span>
${(this.headersForEachRespStatus[status] && this.headersForEachRespStatus[status]?.length > 0)
? html`${this.responseHeaderListTemplate(this.headersForEachRespStatus[status])}`
: ''
}
</div>
${Object.keys(this.mimeResponsesForEachStatus[status]).length === 0
? ''
: html`
<div class="tab-panel col">
<div class="tab-buttons row" @click="${(e) => { if (e.target.tagName.toLowerCase() === 'button') { this.activeSchemaTab = e.target.dataset.tab; } }}" >
<button class="tab-btn ${this.activeSchemaTab !== 'example' ? 'active' : ''}" data-tab = 'schema' >SCHEMA</button>
<button class="tab-btn ${this.activeSchemaTab === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
<div style="flex:1"></div>
${Object.keys(this.mimeResponsesForEachStatus[status]).length === 1
? html`<span class='small-font-size gray-text' style='align-self:center; margin-top:8px;'> ${Object.keys(this.mimeResponsesForEachStatus[status])[0]} </span>`
: html`${this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[status]))}`
}
</div>
${this.activeSchemaTab === 'example'
? html`<div class ='tab-content col' style = 'flex:1;'>
${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}
</div>`
: html`<div class ='tab-content col' style = 'flex:1;'>
${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}
</div>`
}
</div>
`
}`)
}
`;
}
responseHeaderListTemplate(respHeaders) {
return html`
<div style="padding:16px 0 8px 0" class="resp-headers small-font-size bold-text">RESPONSE HEADERS</div>
<table style="border-collapse: collapse; margin-bottom:16px; border:1px solid var(--border-color); border-radius: var(--border-radius)" class="small-font-size mono-font">
${respHeaders.map((v) => html`
<tr>
<td style="padding:8px; vertical-align: baseline; min-width:120px; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${v.name || ''}
</td>
<td style="padding:4px; vertical-align: baseline; padding:0 5px; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${v.schema.type || ''}
</td>
<td style="padding:8px; vertical-align: baseline; border-top: 1px solid var(--light-border-color);text-overflow: ellipsis;">
<div class="m-markdown-small regular-font" >${unsafeHTML(marked(v.description || ''))}</div>
</td>
<td style="padding:8px; vertical-align: baseline; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${v.schema.example || ''}
</td>
</tr>
`)}
</table>`;
}
mimeTypeDropdownTemplate(mimeTypes) {
return html`
<select @change="${(e) => { this.selectedMimeType = e.target.value; }}" style='margin-bottom: -1px; z-index:1'>
${mimeTypes.map((mimeType) => html`<option value='${mimeType}' ?selected = '${mimeType === this.selectedMimeType}'> ${mimeType} </option>`)}
</select>`;
}
onSelectExample(e) {
const exampleContainerEl = e.target.closest('.example-panel');
const exampleEls = [...exampleContainerEl.querySelectorAll('.example')];
exampleEls.forEach((v) => {
v.style.display = v.dataset.example === e.target.value ? 'block' : 'none';
});
}
mimeExampleTemplate(mimeRespDetails) {
if (!mimeRespDetails) {
return html`
<pre style='color:var(--red)' class = '${this.renderStyle === 'read' ? 'read example-panel border pad-8-16' : 'example-panel border-top'}'> No example provided </pre>
`;
}
return html`
${mimeRespDetails.examples.length === 1
? html`
${mimeRespDetails.examples[0].exampleFormat === 'json'
? html`
<json-tree
render-style = '${this.renderStyle}'
.data="${mimeRespDetails.examples[0].exampleValue}"
class = 'example-panel ${this.renderStyle === 'read' ? 'border pad-8-16' : 'border-top pad-top-8'}'
></json-tree>`
: html`
<pre class = 'example-panel ${this.renderStyle === 'read' ? 'border pad-8-16' : 'border-top pad-top-8'}'>${mimeRespDetails.examples[0].exampleValue}</pre>
`
}`
: html`
<span class = 'example-panel ${this.renderStyle === 'read' ? 'border pad-8-16' : 'border-top pad-top-8'}'>
<select style="min-width:100px; max-width:100%" @change='${(e) => this.onSelectExample(e)}'>
${mimeRespDetails.examples.map((v) => html`<option value="${v.exampleId}" ?selected=${v.exampleId === mimeRespDetails.selectedExample} >
${v.exampleSummary.length > 80 ? v.exampleId : v.exampleSummary}
</option>`)}
</select>
${mimeRespDetails.examples.map((v) => html`
<div class="example" data-example = '${v.exampleId}' style = "display: ${v.exampleId === mimeRespDetails.selectedExample ? 'block' : 'none'}">
${v.exampleSummary && v.exampleSummary.length > 80 ? html`<div style="padding: 4px 0"> ${v.exampleSummary} </div>` : ''}
${v.exampleDescription ? html`<div class="m-markdown-small" style="padding: 4px 0"> ${unsafeHTML(marked(v.exampleDescription || ''))} </div>` : ''}
${v.exampleFormat === 'json'
? html`
<json-tree
render-style = '${this.renderStyle}'
.data = '${v.exampleValue}'
></json-tree>`
: html`<pre>${v.exampleValue}</pre>`
}
</div>
`)}
</span>
`
}
`;
}
mimeSchemaTemplate(mimeRespDetails) {
if (!mimeRespDetails) {
return html`
<pre style='color:var(--red)' class = '${this.renderStyle === 'read' ? 'border pad-8-16' : 'border-top'}'> Schema not found</pre>
`;
}
return html`
${this.schemaStyle === 'table'
? html`
<schema-table
render-style = '${this.renderStyle}'
.data = '${mimeRespDetails.schemaTree}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
schema-hide-read-only = false
schema-hide-write-only = ${this.schemaHideWriteOnly}
> </schema-tree> `
: html`
<schema-tree
render-style = '${this.renderStyle}'
.data = '${mimeRespDetails.schemaTree}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
schema-hide-read-only = false
schema-hide-write-only = ${this.schemaHideWriteOnly}
> </schema-tree>`
}`;
}
/* eslint-enable indent */
}
// Register the element with the browser
customElements.define('api-response', ApiResponse);
|
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient({ apiVersion: '2020-04-16' });
const lambda = new AWS.Lambda({ region: "us-east-2" });
exports.handler = async event => {
var response = 'Data sent.';
let connectionData;
const room = JSON.parse(event.body).room + '.host';
try {
connectionData = await ddb.query({ TableName: "connections", KeyConditionExpression: "room = :room", ExpressionAttributeValues: { ":room": room }, ProjectionExpression: 'connectionId' }).promise();
} catch (e) {
return { statusCode: 500, body: e.stack };
}
const apigwManagementApi = new AWS.ApiGatewayManagementApi({
apiVersion: '2020-04-16',
endpoint: event.requestContext.domainName + '/' + event.requestContext.stage
});
var responseData = JSON.parse(event.body);
responseData.ts = Date.now().toString();
const postData = JSON.stringify(responseData);
const postCalls = connectionData.Items.map(async ({ connectionId }) => {
try {
await apigwManagementApi.postToConnection({ ConnectionId: connectionId, Data: postData }).promise();
} catch (e) {
await ddb.delete({
TableName: "connections",
Key: { "room": room, "connectionId": connectionId }
}).promise();
}
});
try {
await Promise.all(postCalls);
} catch (e) {
return { statusCode: 500, body: e.stack };
}
response = 'storeCatchup';
var payload = { "action": "storeCatchup", "room": room, "originalMessage": responseData };
const params = { FunctionName: "storeCatchup", InvokeArgs: JSON.stringify(payload) };
await lambda.invokeAsync(params, function (err, data) {
response = JSON.stringify(payload);
}).promise();
return { statusCode: 200, body: response };
};
|
import SetCache from './SetCache.js'
import arrayIncludes from './arrayIncludes.js'
import arrayIncludesWith from './arrayIncludesWith.js'
import cacheHas from './cacheHas.js'
import createSet from './createSet.js'
import setToArray from './setToArray.js'
/** Used as the size to enable large array optimizations. 用来限制大数组长度以维持性能 */
const LARGE_ARRAY_SIZE = 200
/**
* The base implementation of `uniqBy`.
* `uniqBy`的基本实现
*
* @private
* @param {Array} array The array to inspect. 要检查的数组A
* @param {Function} [iteratee] The iteratee invoked per element. 应用在每个元素上的迭代器
* @param {Function} [comparator] The comparator invoked per element. 应用在每个元素上的比较器
* @returns {Array} Returns the new duplicate free array. 新的无重复数组
*/
function baseUniq(array, iteratee, comparator) {
let index = -1 // 迭代游标起始位置
let includes = arrayIncludes // 引用includes方法
let isCommon = true // 是否是要查找公有项的标志
const { length } = array // 数组A的长度
const result = [] // 结果数组
let seen = result // 已迭代记录
if (comparator) { // 若指定了比较器,则:
isCommon = false // 不再寻找公有项
includes = arrayIncludesWith // 更改includes为合适的函数
}
else if (length >= LARGE_ARRAY_SIZE) { // 否则若数组A尺寸大于性能阈值,要启用缓存机制
const set = iteratee ? null : createSet(array)
if (set) {
return setToArray(set) // 若未提供迭代器,直接返回set的array形式
}
isCommon = false // 不再寻找公有项
includes = cacheHas // 用缓存对象及其相应来判断
seen = new SetCache // 使用缓存对象记录迭代历史
}
else {
seen = iteratee ? [] : result // 迭代历史记录 在指定了迭代器是为另一个空数组,否则与结果数组为同一个
}
outer:
while (++index < length) { // 正序迭代数组A
let value = array[index] // 数组A的当前迭代项
const computed = iteratee ? iteratee(value) : value // 若指定了迭代器函数,就在此应用
value = (comparator || value !== 0) ? value : 0 // 若 未定义比较器 且 value为0,则确定value为0
if (isCommon && computed === computed) { // 若是要查找公有项 且 computed不是NaN
let seenIndex = seen.length
while (seenIndex--) { // 倒序迭代 迭代历史记录
if (seen[seenIndex] === computed) { // 若 迭代历史记录已存在该值,就直接跳过后续处理,直接进行外层迭代的下一次迭代(即数组A的下一项)
continue outer
}
}
if (iteratee) { // 若定义了迭代器, 则需要在迭代历史记录中添加当前项的值
seen.push(computed)
}
result.push(value) // 将当前项的值追加到结果数组中
}
else if (!includes(seen, computed, comparator)) { // 若不是要查找公有项,则使用includes查找并由指定的比较器决定seen中是否已经存在了当前项的值
if (seen !== result) { // 若 迭代历史记录 与 结果数组 不是同一个
seen.push(computed) // 则需要在迭代历史记录中追加当前项
}
result.push(value) // 将当前项的值追加到结果数组中
}
}
return result // 返回结果数组
}
export default baseUniq
|
angular
.module("umbraco")
.component("umbFormsIntegrationsCrmHubspotFields", {
controller: HubSpotFieldsController,
controllerAs: "vm",
templateUrl: "/App_Plugins/UmbracoForms.Integrations/Crm/Hubspot/hubspot-field-mapper-template.html",
bindings: {
setting: "<"
},
}
);
function HubSpotFieldsController($routeParams, umbracoFormsIntegrationsCrmHubspotResource, pickerResource, overlayService, notificationsService) {
var vm = this;
vm.authorizationCode = "";
vm.authenticationUrl = "";
vm.loading = true;
vm.authorizationStatus = "Unauthenticated";
function getFieldsForMapping() {
// Get the fields for the form.
var formId = $routeParams.id;
if (formId !== -1) {
pickerResource.getAllFields(formId).then(function (response) {
vm.fields = response.data;
});
}
// Get the HubSpot contact fields.
umbracoFormsIntegrationsCrmHubspotResource.getAllProperties().then(function (response) {
vm.hubspotFields = response.map(x => {
return {
value: x.name,
name: x.label,
description: x.description
}
});
vm.loading = false;
});
}
vm.$onInit = function () {
if (!vm.setting.value) {
vm.mappings = [];
} else {
vm.mappings = JSON.parse(vm.setting.value);
}
umbracoFormsIntegrationsCrmHubspotResource.isAuthorizationConfigured().then(function (response) {
if (response !== "Unauthenticated") {
vm.authorizationStatus = response;
getFieldsForMapping();
}
else {
vm.authorizationStatus = "Unauthenticated";
umbracoFormsIntegrationsCrmHubspotResource.getAuthenticationUrl().then(function (response) {
vm.authenticationUrl = response;
vm.loading = false;
});
}
});
};
vm.openAuth = function () {
window.open(vm.authenticationUrl);
};
// Setup the post message handler for automatic authentication without having to copy and paste the code from the proxy site.
window.addEventListener("message", function (event) {
if (event.data.type === "hubspot:oauth:success") {
umbracoFormsIntegrationsCrmHubspotResource.authorize(event.data.code).then(function (response) {
handleAuthorizationCallback(response);
});
}
}, false);
function handleAuthorizationCallback(response) {
if (response.success) {
vm.authorizationStatus = "OAuth";
vm.authorizationCode = "";
notificationsService.showNotification({
type: 0,
header: "Authorization succeeded",
message: "Your Umbraco Forms installation is now connected to your HubSpot account",
});
getFieldsForMapping();
} else {
notificationsService.showNotification({
type: 2,
header: "Authorization failed",
message: response.errorMessage
});
}
};
vm.authorize = function () {
umbracoFormsIntegrationsCrmHubspotResource.authorize(vm.authorizationCode).then(function (response) {
handleAuthorizationCallback(response);
});
}
vm.deauthorize = function () {
var overlay = {
view: "confirm",
title: "Confirmation",
content: "Are you sure you wish to disconnect your HubSpot account?",
closeButtonLabel: "No",
submitButtonLabel: "Yes",
submitButtonStyle: "danger",
close: function () {
overlayService.close();
},
submit: function () {
umbracoFormsIntegrationsCrmHubspotResource.deauthorize().then(function (response) {
if (response.success) {
vm.authorizationStatus = "Unauthenticated";
notificationsService.showNotification({
type: 0,
header: "De-authorization succeeded",
message: "Your Umbraco Forms installation is no longer connected to your HubSpot account",
});
getFieldsForMapping();
} else {
notificationsService.showNotification({
type: 2,
header: "De-authorization failed",
message: response.errorMessage
});
}
overlayService.close();
});
}
};
overlayService.open(overlay);
}
vm.getHubspotFieldDescription = function (value) {
if (!vm.hubspotFields) {
return "";
}
var item = vm.hubspotFields.find(x => {
return x.value === value;
});
if (item) {
return item.description;
}
return "";
}
vm.addMapping = function () {
// Add new empty object into the mappings array.
vm.mappings.push({
formField: "",
hubspotField: ""
});
};
vm.deleteMapping = function (index) {
vm.mappings.splice(index, 1);
vm.setting.value = JSON.stringify(vm.mappings);
};
vm.stringifyValue = function () {
vm.setting.value = JSON.stringify(vm.mappings);
};
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.